Ask Your Question

Haar cascade - info.lst file not getting created (Object Detection)

asked 2017-09-19 13:49:08 -0500

ash.jo4444 gravatar image

Hi, I am working on Object detection using Haar cascade and I have ONE Positive image with 218 negative images. I gave the following command yet the extra positive images using the 218 negative images is not getting created. opencv_createsamples -img watch.jpg -bg bg.txt -info info/info.lst -pngoutput info -maxxangle 0.5 -maxyangle 0.5 -maxzangle 0.5 -num 200

Also the info.lst file is empty.

My positive image size is 50 X 50 and negative image data size is 100 X 100.

Please suggest what might be the error.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-19 20:16:16 -0500

berak gravatar image

updated 2017-09-19 20:16:56 -0500

"Also the info.lst file is empty." -- that's an input argument (meant to contain a list of positive image annotations, it won't get generated.), please read the tutorial again

also, chances, that you can train anything successfully with a single positive image are low. please rather generate an annotations list from multiple images (100+) using the opencv_annotations tool

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-19 13:49:08 -0500

Seen: 123 times

Last updated: Sep 19 '17