Default number of threads in an OpenCV application [closed]

asked 2014-05-23 11:22:55 -0500

Tariq gravatar image

Dear All,

Number of threads in my application jumps from 9 to 39 when I start my threads using OpenCV libraries. I am firing 3 threads inside the my class that uses Opencv. How many threads OpenCV uses/fires by default?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-04 16:38:45.152367


It depends on the implementation of the function you are using.

Anyway, having many parallel threads in image processing is a good thing, so you shouldn't worry about that. OpenCV fires often a different thread for every processed line, or for sub-blocks of different sizes. The number of threads can be even higher on OpenCV/CUDA implementations (as GPGPUs contain thousands of cores).

kbarni gravatar imagekbarni ( 2014-05-26 08:55:29 -0500 )edit