From 9a31bd4f515e4ab32d5f7754b17fd004d99cb921 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 21 Oct 2014 17:30:09 -0400 Subject: [PATCH] Fixed classify chars with two-line enhancements --- src/misc_utilities/classifychars.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc_utilities/classifychars.cpp b/src/misc_utilities/classifychars.cpp index 30b09c0..cacc406 100644 --- a/src/misc_utilities/classifychars.cpp +++ b/src/misc_utilities/classifychars.cpp @@ -134,14 +134,14 @@ int main( int argc, const char** argv ) CharacterRegion regionizer(&pipeline_data); - if (abs(regionizer.getTopLine().angle) > 4) + if (abs(pipeline_data.textLines[0].angle) > 4) { // Rotate image: Mat rotated(frame.size(), frame.type()); Mat rot_mat( 2, 3, CV_32FC1 ); Point center = Point( frame.cols/2, frame.rows/2 ); - rot_mat = getRotationMatrix2D( center, regionizer.getTopLine().angle, 1.0 ); + rot_mat = getRotationMatrix2D( center, pipeline_data.textLines[0].angle, 1.0 ); warpAffine( frame, rotated, rot_mat, frame.size() ); rotated.copyTo(frame);