How to get 'opencv_createsamples' and other apps for Haar [closed]

asked 2019-07-05 13:51:00 -0500

ikmcdaniel2003 gravatar image

Hi, does anyone know how I can get the apps listed below after I've already downloaded OpenCV?

Needed apps: opencv_createsamples, opencv_annotation, opencv_traincascade and opencv_visualisation

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-26 05:48:51.075010


after I've already downloaded OpenCV?

os ? opencv version ? from where ?

berak gravatar imageberak ( 2019-07-05 14:27:46 -0500 )edit

Sorry, it's version 3.6.4 for windows. I'm programming in Python.

ikmcdaniel2003 gravatar imageikmcdaniel2003 ( 2019-07-05 14:30:23 -0500 )edit

I'm programming in Python.

that's unfortunate, as you will have to rebuild opencv from (c++) src, with cmake -DBUILD_opencv_apps=ON

berak gravatar imageberak ( 2019-07-05 14:32:40 -0500 )edit

what are you trying to detect ? using which data ? why haar cascades ?

(80% of all cases it turns out, that ppl have wrong expectations here)

berak gravatar imageberak ( 2019-07-05 14:34:19 -0500 )edit

Hi Berak, thanks for your help. I'm wanting to detect a softball for women's fast-pitch. His Haar right for my case? If so, would you be able to point me to a tutorial on re-installing opencv using the method you suggest? I think I mentioned I'm using Python; is C++ really necessary? Thanks again!

ikmcdaniel2003 gravatar imageikmcdaniel2003 ( 2019-07-05 19:44:07 -0500 )edit

I'm wanting to detect a softball for women's fast-pitch. His Haar right for my case?

probably not. (no reliable texture or pose). but that's where YOUR research should start. and if you have no idea, ppl can and will tell you any bs.

is C++ really necessary?

to build opencv / the tools, -- yes, ofc. but again, you won't need them, because your idea is most likely broken anyway.

berak gravatar imageberak ( 2019-07-05 23:08:40 -0500 )edit

-1 for not doing the maths first. how fast is your ball, how many fps will you need to seperate positions (nyquist) ? what do you plan to do about blur ?

you seem ill - prepared for this.

berak gravatar imageberak ( 2019-07-05 23:23:48 -0500 )edit

Hi Berak, the speed of the ball is about 60MPH, so 30 FPS should be able to capture many images. My plan is to use these images to create the positive data-set, so blur will be automatically incorporated (I assume). What are your thoughts? Also, after I rebuild OpenCV in C++, will I still be able to write my programs in Python? Thanks again for all the help!

ikmcdaniel2003 gravatar imageikmcdaniel2003 ( 2019-07-06 11:44:26 -0500 )edit

to understand the classifier, -- please have another look at the images here. i don't think, you have anything, those boxes can hook into reliably. (pose, too !)

it'll also be far too slow, ti run even at 5fps, sorry to say that.

again, please consider taking a course or reading books about computer-vision.

berak gravatar imageberak ( 2019-07-06 12:05:57 -0500 )edit

It's OK if it's slow; I don't need it to find the ball real-time. Can you recommend a procedure or tutorial for re-installing openCV as you suggested? Thanks again, Berak!!

ikmcdaniel2003 gravatar imageikmcdaniel2003 ( 2019-07-06 14:15:40 -0500 )edit