Jump to content
  • Advertisement
Sign in to follow this  
kostja

plane grey image on opencv cam capture

This topic is 3124 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i am trying to capture frames and display them using my inbuilt cam in a dell precision m4400 with openCV 2.1 and MSVS2008 under Win7. I have tried various tutorials for grabbing the cam output, including the one in The OpenCV Book, the cam LED lights up, but all i get is a plain grey image. Searched in forums and faqs for hours but was unable to find anything helpful or even anybody having the same problem The capture is initialized by capture = cvCreateCameraCapture(-1), cvGrabFrame(capture) and cvRetrieveFrame(capture) are used to retrieve the image and cvShowImage to draw it. I would post the complete code on request. Any helpful information would be highly appreciated. i mean ANY ;) kostja

Share this post


Link to post
Share on other sites
Advertisement
did you tried the compiled samples that come with the OpenCv?
If they work then the problem is in the code,
if they don't try upgrading the drivers,

The best way to get Open Cv working ok is to build the entire OpenCV solution and modify into what you want to do ,a working sample

Share this post


Link to post
Share on other sites
Hi, Makaan,

Thank you for the answer. That is exactly what i did - i compiled the bundled samples and tried them, but with the ones that use the cam i got the grey image, althought the cam led lit up. Then i tried other tutorials i found in the Learning openCV book and on the net, modifying the openCV tutorials first, creating own projects later, but the result was the same shade of grey.
The cam works perfectly with apps like skype.

Any ideas?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!