From a5209c4882294ba38241978c237ee6dcf49fea9d Mon Sep 17 00:00:00 2001 From: Jason Martin Date: Thu, 28 May 2020 21:29:10 -0500 Subject: [PATCH] Fixed cascadedetect convert from old cascade to new --- modules/objdetect/src/cascadedetect_convert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/src/cascadedetect_convert.cpp b/modules/objdetect/src/cascadedetect_convert.cpp index 28dc019ded..1172cb7c8a 100644 --- a/modules/objdetect/src/cascadedetect_convert.cpp +++ b/modules/objdetect/src/cascadedetect_convert.cpp @@ -205,8 +205,8 @@ static bool convert(const String& oldcascade, const String& newcascade) newfs << "cascade" << "{:opencv-cascade-classifier" << "stageType" << "BOOST" << "featureType" << "HAAR" - << "height" << cascadesize.width - << "width" << cascadesize.height + << "width" << cascadesize.width + << "height" << cascadesize.height << "stageParams" << "{" << "maxWeakCount" << (int)maxWeakCount << "}"