Does OpenCV have any multi threading under the hood?
I'm looking to use the random forests algorithm in OpenCV, and I'm wondering about whether the predict method optimizes using multiple threads, or if it's single threaded.
A broader question: Is there any multithreading in OpenCV?
Many thanks!
https://github.com/opencv/opencv/sear...
Thank you for that pointer. I will assume that since I did not see predict() in that search that the answer to the first question is No while the answer to the second question is Yes.
imho, you hit it exactly.
By the way, why doesn't opencv use multithreading by default? Is it being planned to introduce such a functionality? New C++11 and above has native support for threads, so no 3rd party libraries are needed anymore.