opencv_traincascade build intermediate result

前端 未结 2 1599
深忆病人
深忆病人 2020-12-22 09:07

I\'m training a haar cascade using opencv_trainscascade. Its running fine, but I\'d like to combine the various xml files generated from each stage into a usable output. Usi

相关标签:
2条回答
  • 2020-12-22 09:42

    Some digging around yielded this:

    convert_cascade is for cascades trained by haartraining application and it does not support a format of cascades trained by traincascade application.

    To do this with traincascade, just run opencv_traincascade again with the same "-data" but set "-numStages" to the point you want to generate up to. The application will load the trained stages, realize that there is required number of stages, write the result cascade in xml and finish a work. Interrupting the process during a stage could result in corrupt data, so if you're best off deleting the stage in completion.

    0 讨论(0)
  • 2020-12-22 09:46

    The only way I was able to fix this was to change the character encoding from UTF-8 to ANSI with Notepad++. It worked fine after that.

    0 讨论(0)
提交回复
热议问题