First time here? Check out the FAQ!

Ask Your Question
0

[OSX] Can't find opencv_createsamples & opencv_traincascade

asked Oct 2 '19

updated Oct 2 '19

berak gravatar image

Hi,

Im running on OSX mojave 10.14.6 and im facing issue that it miss 2 scripts after the opencv's installation ..

After installing opencv from the repo github (https://github.com/opencv/opencv), it installed all apps script except opencv_createsamples & opencv_traincascade ..

How i installed the package :

  1. git clone https://github.com/opencv/opencv
  2. cd opencv
  3. mkdir build
  4. cd build
  5. cmake ..

( i remark on this step, in the opencv/build/apps/ directory, there is no createsample & traincascade folder)

  1. make -j 4
  2. sudo make install

Do you guys know why im facing this issue please ?

Thanks by advance for your help

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Oct 2 '19

berak gravatar image

the cascade training tools can no more be built in opencv4, after a lot of arcane C-api code was removed.

since you cloned the github repo, you can easily fall back to the 3.4 branch, where those tools are still intact:

git checkout 3.4

then clean your build folder and restart with cmake.

note: it's 2019, and you should rather use some SSD,RCNN or yolo network for object detection, they're much faster / accurate.

Preview: (hide)

Comments

1

Hi, many thanks for your reply and advise !^^ (i just learned opncv about 4 days ago, im totally new haha)

xShadow gravatar imagexShadow (Oct 2 '19)edit
-1

answered Mar 29 '0

ComputerVisionary gravatar image

I can suggest to use an earlier versions of OpenCV to train the cascades, I'm still using the traincascade in Opencv 2.4.10 and it is still perfectly working and suitable for OpenCV 3 and 4 detectors.

Take a look here: http://www.vision-ary.net/2015/03/lar...

Regards!

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Oct 2 '19

Seen: 2,504 times

Last updated: Mar 29 '20