mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #17420 from nosajthenitram:fix_cascadedetect_convert_bug_for_old_cascade
This commit is contained in:
commit
e6c9e2fa50
@ -205,8 +205,8 @@ static bool convert(const String& oldcascade, const String& newcascade)
|
|||||||
newfs << "cascade" << "{:opencv-cascade-classifier"
|
newfs << "cascade" << "{:opencv-cascade-classifier"
|
||||||
<< "stageType" << "BOOST"
|
<< "stageType" << "BOOST"
|
||||||
<< "featureType" << "HAAR"
|
<< "featureType" << "HAAR"
|
||||||
<< "height" << cascadesize.width
|
<< "width" << cascadesize.width
|
||||||
<< "width" << cascadesize.height
|
<< "height" << cascadesize.height
|
||||||
<< "stageParams" << "{"
|
<< "stageParams" << "{"
|
||||||
<< "maxWeakCount" << (int)maxWeakCount
|
<< "maxWeakCount" << (int)maxWeakCount
|
||||||
<< "}"
|
<< "}"
|
||||||
|
Loading…
Reference in New Issue
Block a user