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.
opencv2 and capture.retrieve not working
Posted 13 February 2015 - 07:45 PM
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.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users