This site (https://www.pro-s.co.jp/engineerblog/opencv/post_6202.html) The method is written in, but I stumbled on various things, so I will write it as a memo. The environment is win10.
Obtain and install opencv 2.4.13. (Create samples and train cascade are not included after opencv3. I wonder if support has disappeared?)
When preparing the correct image with createsamples, reduce it as much as possible. (Since the NG image is reduced to the size of the correct image in traincascade, learning efficiency is poor unless it is small.)
Fill in the list of NG images used in traincascade with the full path. Otherwise you will get an error.
The line feed code is LF in the list of NG images used in traincascade. Otherwise you will get an error.
The traincascade error message is super confusing. But even if it stops with an error in the middle, I think it's okay because the cascade file can be used for the time being.
Recommended Posts