I briefly looked at the CascadeClassifier class in modules\objdetect\src\cascadedetect.cpp , and there seems to be a reasonable implementation made using parallel_for_ , the built-in multithreading tool OpenCV.
However, your mileage may vary. At least during the training phase, there seems to be a lot of consistent code, as this thread offers on OpenCV support forums.
So, if you can get OpenCV to compile using OpenMP (maybe the easiest way to configure it), TBB or similar, you should be good to go.
Hope this helps!
source share