Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

VideoCapture::read frame drops with dark pixels.

$
0
0
Hello, I have a strange performance problem with a standard and very simple webcam capture prototype. I am using openCV inside Unreal engine (if that changes anything). I `read()` a frame from my webcam every .033s (30fps capped) at 640x480. The CPU is not a problem :) If my webcam is pointed at light colors, mainly a white frame, the fps is at 120 (the whole app is capped at 120). But whenever I move the webcam, to record things with darker colors, the fps drops to **8** frame per second! I've been profiling a lot, and all my cycles are coming from 1 line: `cap.read(f)`. This is extremely strange to me, and I am going to guess maybe openCV has defaults that do image processing? Anyone has experienced this before? Should the `read` method be deterministic? Thank you for any help, I am just starting out with openCV, so it could be something really simple :) P.S. Using windows build (x64) v3.1.0. These are unmodified from the download.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>