This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18624|Reply: 0

[Plugin Library] opencv appears img/pos.txt(1) : parse errorDone. Created 0 samples

[Copy link]
Posted on 11/30/2015 12:58:14 PM | | | |


Create a training sample from an image collection...
IMG/pos.txt(1): Parsed errordone. Create 0 samples


Command:
opencv_createsamples.exe -vec pos.vec
  -info img/pos.txt -bg img/neg.txt -w 20 -h 20 -num100

Solution:

1: It may be in incorrect formatting:

txt file format:
1.jpg 1 0 0 20 20
2.jpg 1 0 0 20 20
3.jpg 1 0 0 20 20
4.jpg 1 0 0 20 20
5.jpg 1 0 0 20 20
6.jpg 1 0 0 20 20
7.jpg 1 0 0 20 20
8.jpg 1 0 0 20 20
9.jpg 1 0 0 20 20
10.jpg 1 0 0 20 20
11.jpg 1 0 0 20 20
12.jpg 1 0 0 20 20
13.jpg 1 0 0 20 20
14.jpg 1 0 0 20 20
15.jpg 1 0 0 20 20
16.jpg 1 0 0 20 20
17.jpg 1 0 0 20 20
18.jpg 1 0 0 20 20
19.jpg 1 0 0 20 20
20.jpg 1 0 0 20 20
21.jpg 1 0 0 20 20
22.jpg 1 0 0 20 20
23.jpg 1 0 0 20 20
24.jpg 1 0 0 20 20
2: Inconsistent numbers:

The number in the txt file is inconsistent with the number after -num

3:

When generating a VEC file, an error is reported

dressPantsPositives.txt(421) : parse errorDone. Created 583 samples
Analysis: Because when calling the default parameters, the system defaults to 1000 positive samples, if you train less than 1000 positive samples, parse errorDone will appear.

The number of positive samples can be increased to more than 1000.






Previous:$.messager.alert callback function in easyUI
Next:Lenovo's official channel notebook quotation on December 1
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com