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 << "}"