Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Showing capture webcam picture problem :(

Showing capture webcam picture problem :(

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomgraphicsgame-devtutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimCom
    wrote on last edited by
    #1

    Hello dear friends, I've a problem in showing video captured from webcam :(( First I wanted to learn to do this by using the CAvicap, but it didn't work and I couldn't find anybody who can tell me what I did wrong. So I was a bit desperate and searched another method and that was using the DirectShow of DirectX SDK. Well, I've still not coded, because I want to know how Directx and COM work. But the main problem is still that I don't know how to display the video from the webcam on the screen. :doh: The part to show the video using webcam with the Avicap class is here: void CCamSampDlg::OnStart() //when button start is clicked { //than the previewing must begin CRect rectangular; GetClientRect(&rectangular); // Here I try to display the imagestream WebCam.Create(WS_CHILD|WS_VISIBLE,rectangular,this,TRUE); WebCam.ConnectWithDriver(-1); WebCam.SetPreviewRate(15); WebCam.StartPreview(TRUE); } The only thing wat happens when I execute, is the Led blinking of my webcam, wich means that there is some activity going on. But I see not a window opening to show the captured video. :sigh: So I hope you smart guys can help this dumb boy, so I can give my wife more attention :-> If you want the whole project, I can send it to you by email If my application works, I forget all my problems.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups