Update detectormorph.cpp

This commit is contained in:
LordF
2015-02-23 14:17:52 -03:00
committed by Matt Hill
parent 52cdd397af
commit e74fb5f359

View File

@@ -44,7 +44,7 @@ namespace alpr
vector<PlateRegion> detectedRegions; vector<PlateRegion> detectedRegions;
for (int i = 0; i < regionsOfInterest.size(); i++) for (int i = 0; i < regionsOfInterest.size(); i++)
{ {
Mat img_sobel, edges, img_open, img_result; Mat img_open, img_result;
Mat element = getStructuringElement(MORPH_RECT, Size(30, 4)); Mat element = getStructuringElement(MORPH_RECT, Size(30, 4));
morphologyEx(frame_gray, img_open, CV_MOP_OPEN, element, cv::Point(-1, -1)); morphologyEx(frame_gray, img_open, CV_MOP_OPEN, element, cv::Point(-1, -1));