I'm trying to create a .vec file with 1200 samples as the following:
C:\opencv3\build\install\x64\vc12\bin>opencv_createsamplesd -vec vec.vec -bg tl_neg_2.txt -info tl_pos_vec_2\filenames.txt -num 1100 -maxxangle 0.1 -maxyangle 0.1 -maxzangle 0 -w 24 -h 24
The tl_neg_2.txt (1200 objects):
tl_neg\neg-0.jpg
tl_neg\neg-1.jpg
tl_neg\neg-2.jpg
tl_neg\neg-3.jpg
tl_neg\neg-4.jpg
tl_neg\neg-5.jpg
tl_neg\neg-6.jpg
tl_neg\neg-7.jpg
tl_neg\neg-8.jpg
tl_neg\neg-9.jpg
tl_neg\neg-10.jpg
tl_neg\neg-11.jpg
tl_neg\neg-12.jpg
tl_neg\neg-13.jpg
tl_neg\neg-14.jpg
tl_neg\neg-15.jpg
tl_neg\neg-16.jpg
tl_neg\neg-17.jpg
tl_neg\neg-18.jpg
tl_neg\neg-19.jpg
tl_neg\neg-20.jpg
...
The tl_pos_vec_2\filenames.txt (27 objects):
0.jpg 1 0 0 40 40
1.jpg 1 0 0 40 40
10.jpg 1 0 0 40 40
11.jpg 1 0 0 40 40
12.jpg 1 0 0 40 40
13.jpg 1 0 0 40 40
14.jpg 1 0 0 40 40
15.jpg 1 0 0 40 40
16.jpg 1 0 0 40 40
17.jpg 1 0 0 40 40
18.jpg 1 0 0 40 40
19.jpg 1 0 0 40 40
2.jpg 1 0 0 40 40
...
I get:
Info file name: tl_pos_vec_2\filenames.txt
Img file name: (NULL)
Vec file name: vec.vec
BG file name: tl_neg_2.txt
Num: 1100
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 40
Max x angle: 0.1
Max y angle: 0.1
Max z angle: 0
Show samples: FALSE
Width: 24
Height: 24
Max Scale: -1
Create training samples from images collection...
tl_pos_vec_2\filenames.txt(28) : parse errorDone. Created 27 samples
So instead of 1200 samples I get a .vec file containing only 27, what should I do to fix this problem?
Thank you, Dan.