Ask Your Question
0

Train Cascade

asked 2020-11-03 18:51:38 -0600

I am new using OpenCV. My project consist in detect cattle. I would like train a cascade to it. But my OpenCV install don't have opencv_createsamples. I read it was descontinued, how can I make trainning? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-11-04 02:38:50 -0600

berak gravatar image

updated 2020-11-04 08:59:59 -0600

indeed, the tools to train cascades do no more build with current opencv4, if you need those, you have to checkout the 3.4 branch

My project consist in detect cattle.

cascades are a bad idea for this, they are for rigid things, any variation in texture or pose will degrade the detection, it simply won't work.

you also should have told us, in which situation you want to detect animals, outside ? inside ? distance ? from above ? things are less universal here, than you might think.

there's a pretrained cow detector you could try with the dpm module from contrib which works nicely on outdoor scenes

you could also try pretrained cnn's like yolo or mobilenet, which have cattle classes, and optionally fine tune those with own data

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-03 18:51:38 -0600

Seen: 401 times

Last updated: Nov 04 '20