Click here to Skip to main content
15,917,328 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I was searching for a forum on Aforge and webcam use, and somehow ended up here.

Here's the question if it's appropriate to ask you:

I copied the code from this example:

http://haryoktav.wordpress.com/2009/03/21/webcam-in-c-aforgenet/

I don't get a picture (black). There are no code errors, USB device is found, frames are received, rates change if I block the lens, my camera works fine on Skype, e.g., ...

I know the example works from the comments at that site.

Also, I used a similar aforge example from another site and I have the same exact problem.

Is there a Windows setting thing I'm supposed to do?

-gf
Posted
Comments
Sergey Alexandrovich Kryukov 4-Mar-11 22:10pm    
"There are no code errors...": how so?.. :-)
--SA
gf0 4-Mar-11 23:15pm    
I know, I know. I should have said no outright code errors that I need help in - no compile errors or runtime exceptions that I need help in. Some folks can't read between the words! :)

Sergey Alexandrovich Kryukov 4-Mar-11 23:20pm    
All right, I'm just trying to make fun. Unfortunately, I don't have a camera at the moment to check up. My first idea was: flash some more light :-) But you say your camera show OK with other programs, right? May be you simply need to adjust some parameters up (gain, alpfa/lightness, etc.)?
--SA
gf0 4-Mar-11 23:52pm    
I think you're right - some parameter or flag needs to be set, programmatically or in some camera setup place. The frame event handlers does get frames that are not null, puts in it the picturebox as an image, no problem, but the picture is completely black. It's a Creative camera. Perhaps it needs extra prodding to get it to spit data out? I don't have another USB cam handy now to try.
milenalukic 10-Mar-11 20:26pm    
I had a similar problem which was quite silly when I solved it. I was trying to run the camera while transmitting on another program. If so just switch the other off.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900