Ask Your Question

Trying to create own haarcascade xml file for pens

asked 2019-04-13 14:49:38 -0500

updated 2019-04-13 15:07:53 -0500

Hi experts, I am trying to create own xml for detecting pens in real time video. For this i followed the link I followed all the steps but after using xml file in python program. Programe is not detection pens. There are approximately hundred of triangles but all the triangles are so small as comparison to pen in real time video. I have zip file which contains all the necessary files. Attaching files for reference.

Can you check and guide to find out what is the issue ?

Thanks Pardeep

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-04-15 04:50:32 -0500

Your files and models are not available yet. However, you might want to follow the official tutorials:

Make sure you stick to OpenCV 3.4, because in 4.x it is completely gone :)

edit flag offensive delete link more


Thanks for the answer. Is CNN is alternative of haarcascade ?

pardeep gravatar imagepardeep ( 2019-04-15 12:30:14 -0500 )edit

Boosted cascades are just one of the many classifiers that can be used for object detection. Convolutional neural networks and all their variants are another type. However, they have beaten boosted cascades by a long stretch if you have enough training data. Have a look here:

StevenPuttemans gravatar imageStevenPuttemans ( 2019-04-16 02:42:23 -0500 )edit

Question Tools


Asked: 2019-04-13 14:49:38 -0500

Seen: 857 times

Last updated: Apr 15 '19