Igor Bond
Igor Bond

Reputation: 121

How to train cascade using opencv

I want to train my own cascade. At tutorial they say to use opencv_createsamples and

opencv_traincascade command.

However I cant use that commands.

enter image description here

My opencv folder:

opencv>> apps >> annotation      
         build   createsamples            
         cmake   traincascade  
           .     visualisation
           .     CMakeLists.txt  
           .     interactive-calibration  
                 version

My opencv version is 4.1.1

How can I do this?

Upvotes: 0

Views: 1850

Answers (1)

yudhiesh
yudhiesh

Reputation: 6799

With newer versions of OpenCV they do not include the cascade training binaries anymore (because opencv tries to get rid of the old C code). You will have to use an older version if you want it to work. Cascade classifiers trained with older opencv version binaries should still be usable with the latest opencv lib for object detection.

Read this link

Upvotes: 1

Related Questions