Jump to content
Sign in to follow this  
jim

opencv2 and capture.retrieve not working

Recommended Posts

I am using opencv2. I am able to capture frames from my web cam using cap.read() but not with cap.retrieve(). I like retrieve() because it does not block and my frame speed is faster. Both functions return true in the return status. I must have installed something like the wrong usb driver. I am using Ubuntu linux on a pcduino2. 

Share this post


Link to post
Share on other sites

After reading the docs and performing many tests, I realized the I had not grabbed a frame before calling retrieve(). My thought was that the USB driver would automatically tick in the web cameras image into a buffer. Then, at any time, I could read that video frame's memory with having to wait.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×