CPU version

The CPU version is distributed onto the CPU cores by the parallel_for statement. The CascadeClassifier::detectMultiScale() method calls CascadeClassifier::detectSingleScale() which uses the parallel_for statement: