Webcam Video streaming with avicap32.dll

thedee

New member
Joined
Jun 6, 2012
Messages
3
Programming Experience
10+
Hi all,
I got an application that detects motion that takes place in front of my webcam. I am using the avicap32 library with vb.net. Basically I the video is fed to a picturebox after this is called:

SendMessage(captureHandle, WM_CAP_SET_PREVIEW, 1, 0)

This all works great. The problem I am having right now is if the window is minimized or if there is another window on top of my picturebox. If I move a window on top of the picturebox it includes that in the video feed. It is like your window has to be on top and not minimized in order for this to work. I figured that what ever is in front of the webcam should be in the picturebox but when I move a window over my picturebox it overlaps it.

Any ideas on a work around?
 

Latest posts

Back
Top