I've had a brief look at the class CascadeClassifier
in modules\objdetect\src\cascadedetect.cpp
, and there seems to be a reasonable amount of implementation done with parallel_for_
, the built-in OpenCV multithreading facility.
Your mileage may vary, though. At least for the training phase there seems to be a lot of sequential code, as this thread in the OpenCV support forums suggests.
So if you can get OpenCV to compile with OpenMP (might be easiest to set up), TBB, or similar, you should be good to go.
Hope that helps!