From 090fcb6601190914e6a84f8e91c676f935d1fb25 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 21 Mar 2016 11:55:50 -0400 Subject: [PATCH] Use canny pruning for OCL detector --- src/openalpr/detection/detectorocl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openalpr/detection/detectorocl.cpp b/src/openalpr/detection/detectorocl.cpp index 42c6630..84124d2 100644 --- a/src/openalpr/detection/detectorocl.cpp +++ b/src/openalpr/detection/detectorocl.cpp @@ -118,7 +118,7 @@ namespace alpr equalizeHist( openclFrame, openclFrame ); plate_cascade.detectMultiScale( openclFrame, plates, config->detection_iteration_increase, config->detectionStrictness, - 0, + CV_HAAR_DO_CANNY_PRUNING, min_plate_size, max_plate_size ); ocl_detector_mutex_m.unlock(); @@ -128,7 +128,7 @@ namespace alpr equalizeHist( orig_frame, orig_frame ); plate_cascade.detectMultiScale( orig_frame, plates, config->detection_iteration_increase, config->detectionStrictness, - 0, + CV_HAAR_DO_CANNY_PRUNING, min_plate_size, max_plate_size ); }