Use canny pruning for OCL detector

This commit is contained in:
Matt Hill
2016-03-21 11:55:50 -04:00
parent de51cd2995
commit 090fcb6601

View File

@@ -118,7 +118,7 @@ namespace alpr
equalizeHist( openclFrame, openclFrame ); equalizeHist( openclFrame, openclFrame );
plate_cascade.detectMultiScale( openclFrame, plates, config->detection_iteration_increase, config->detectionStrictness, plate_cascade.detectMultiScale( openclFrame, plates, config->detection_iteration_increase, config->detectionStrictness,
0, CV_HAAR_DO_CANNY_PRUNING,
min_plate_size, max_plate_size ); min_plate_size, max_plate_size );
ocl_detector_mutex_m.unlock(); ocl_detector_mutex_m.unlock();
@@ -128,7 +128,7 @@ namespace alpr
equalizeHist( orig_frame, orig_frame ); equalizeHist( orig_frame, orig_frame );
plate_cascade.detectMultiScale( orig_frame, plates, config->detection_iteration_increase, config->detectionStrictness, plate_cascade.detectMultiScale( orig_frame, plates, config->detection_iteration_increase, config->detectionStrictness,
0, CV_HAAR_DO_CANNY_PRUNING,
min_plate_size, max_plate_size ); min_plate_size, max_plate_size );
} }