Showing capture webcam picture problem :(
-
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.