Control VideoCapture Multithreading

asked 2016-09-09 02:09:15 -0600

Is there a way to limit the number of threads (or even just cpu cores) that VideoCapture().read() can use?

I am processing h264 encoded videos in a parallelized program and want to be able to control how much system resources my calls to VideoCapture().read() use. It's running on a shared server and to stay friends with my peers, I need to avoid hogging cpus.

I'm running OpenCV 3.1.0 with Python 3 bindings on a Debian machine

edit retag flag offensive close merge delete

Comments

Have you try with setNumthreads

LBerger gravatar imageLBerger ( 2016-09-09 13:36:50 -0600 )edit