From e4880f57f1e2bd586aca522db5e9d6d552aab46d Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 8 Mar 2015 09:52:06 -0400 Subject: [PATCH] Removed unused code, resolves issue #81 --- src/openalpr/textdetection/platemask.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/openalpr/textdetection/platemask.cpp b/src/openalpr/textdetection/platemask.cpp index 459a50c..c746610 100644 --- a/src/openalpr/textdetection/platemask.cpp +++ b/src/openalpr/textdetection/platemask.cpp @@ -96,24 +96,6 @@ namespace alpr if (winningIndex != -1 && bestCharCount >= 3) { - int longestChildIndex = -1; - double longestChildLength = 0; - // Find the child with the longest permiter/arc length ( just for kicks) - for (unsigned int i = 0; i < contours[winningIndex].size(); i++) - { - for (unsigned int j = 0; j < contours[winningIndex].size(); j++) - { - if (contours[winningIndex].hierarchy[j][3] == winningParentId) - { - double arclength = arcLength(contours[winningIndex].contours[j], false); - if (arclength > longestChildLength) - { - longestChildIndex = j; - longestChildLength = arclength; - } - } - } - } Mat mask = Mat::zeros(pipeline_data->thresholds[winningIndex].size(), CV_8U);