From 7c90a599f086c78a4a791e67c50968f91d1616dc Mon Sep 17 00:00:00 2001 From: LordF Date: Mon, 23 Feb 2015 12:58:25 -0300 Subject: [PATCH] Update detectormorph.cpp --- src/openalpr/detection/detectormorph.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/openalpr/detection/detectormorph.cpp b/src/openalpr/detection/detectormorph.cpp index c9f4790..bfdd14a 100644 --- a/src/openalpr/detection/detectormorph.cpp +++ b/src/openalpr/detection/detectormorph.cpp @@ -64,20 +64,17 @@ namespace alpr imshow("Threshold Detector", img_threshold); } - Mat circularElement = getStructuringElement(cv::MORPH_ELLIPSE, Size(5, 5)); morphologyEx(img_threshold, img_open2, CV_MOP_OPEN, circularElement, cv::Point(-1, -1)); Mat rectElement = getStructuringElement(cv::MORPH_RECT, Size(20, 4)); morphologyEx(img_open2, img_threshold, CV_MOP_CLOSE, rectElement, cv::Point(-1, -1)); - if (config->debugShowImages) { imshow("Close", img_threshold); waitKey(0); } - //Find contours of possibles plates vector< vector< Point> > contours; findContours(img_threshold,