Hello ,for an internship I need to detect and count some pigs. I can separate them to the background but not separate one to another when they are too close. I'm starting to learn image processing and OpenCv so maybe I'm doing bad.
I tried two approaches ,one with haartraining and one with color and contours of pigs.
That is my command to create the cascade :
haartraining.exe -data cascades -vec vector/vector.vec -bg negative/bg.txt -npos 35 -nneg 25 -nstages 15 -mem 1024 -mode ALL -w 24 -h 24 -bt DAB
My programme to detect :
cascade.detectMultiScale( frame, faces, 1.1, 1, 0|CASCADE_SCALE_IMAGE, Size(150, 150) );