Ask Your Question
-1

Trying to create own haarcascade xml file for pens

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

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

Hi experts, I am trying to create own xml for detecting pens in real time video. For this i followed the link https://www.researchgate.net/publicat... 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
0

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

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

Comments

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

pardeep gravatar imagepardeep ( 2019-04-15 12:30:14 -0600 )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: https://github.com/opencv/opencv/wiki...

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

Question Tools

Stats

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

Seen: 1,115 times

Last updated: Apr 15 '19