Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

unable to create .vec files with create samples file #50

Closed
saideepthik opened this issue Feb 13, 2018 · 1 comment
Closed

unable to create .vec files with create samples file #50

saideepthik opened this issue Feb 13, 2018 · 1 comment

Comments

@saideepthik
Copy link

i used below ccommand
perl bin/createsamples.pl positives.txt negatives.txt samples 5000\ "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.5 \ -maxyangle 1.5 maxzangle 0.5 -maxidev 40 -w 50 -h 50"
its working fine with python 2.7v, opencv 3.2.0
the problem was i installed with same specification in another pc. i am getting like below when i'm creating .vec samples.
positive images :2900
negative images :500

opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1676.jpg -bg tmp -vec samples/pics1676.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics2860.jpg -bg tmp -vec samples/pics2860.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics726.jpg -bg tmp -vec samples/pics726.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1090.jpg -bg tmp -vec samples/pics1090.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics2752.jpg -bg tmp -vec samples/pics2752.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics454.jpg -bg tmp -vec samples/pics454.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics498.jpg -bg tmp -vec samples/pics498.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics2183.jpg -bg tmp -vec samples/pics2183.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1130.jpg -bg tmp -vec samples/pics1130.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1493.jpg -bg tmp -vec samples/pics1493.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics766.jpg -bg tmp -vec samples/pics766.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1553.jpg -bg tmp -vec samples/pics1553.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics2287.jpg -bg tmp -vec samples/pics2287.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1060.jpg -bg tmp -vec samples/pics1060.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1814.jpg -bg tmp -vec samples/pics1814.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics0.jpg -bg tmp -vec samples/pics0.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1546.jpg -bg tmp -vec samples/pics1546.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1169.jpg -bg tmp -vec samples/pics1169.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics2443.jpg -bg tmp -vec samples/pics2443.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics496.jpg -bg tmp -vec samples/pics496.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1749.jpg -bg tmp -vec samples/pics1749.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics1519.jpg -bg tmp -vec samples/pics1519.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics402.jpg -bg tmp -vec samples/pics402.jpg.vec -num 0
opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/pics133.jpg -bg tmp -vec samples/pics133.jpg.vec -num 0

please let me what the problem here and why?
thanks in advance

@saideepthik
Copy link
Author

issue resolved when i increase the number in negative images to 750.
but i want know how it will process this positives and negative and in which ratio we should we should give.
if anyone have in depth concept of this machanism. please share with me.
thankyou.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants