【发布时间】:2011-11-08 22:05:29
【问题描述】:
我正在通过“opencv_createsamples.exe”在 opencv 2.1 中创建示例,但在第 1 行出现解析错误。
文件positives.txt 包含:
c:\haar\Positives\PosImg_0.jpg 1 175,120,275,240
c:\haar\Positives\PosImg_1.jpg 1 175,120,275,240
c:\haar\Positives\PosImg_10.jpg 1 175,120,275,240
...(--and so on )
而我在 cmd 中所做的是:
c:\Haar>C:\OpenCV2.1\bin\opencv_createsamples.exe -info positives.txt -vec Posi
tivesMany.vec -num 15 -w 24 -h 24 PAUSE
Info file name: positives.txt
Img file name: (NULL)
Vec file name: PositivesMany.vec
BG file name: (NULL)
Num: 15
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 40
Max x angle: 1.1
Max y angle: 1.1
Max z angle: 0.5
Show samples: FALSE
Width: 24
Height: 24
Create training samples from images collection...
positives.txt(1) : parse errorDone. Created 0 samples
所有信息文件路径都正确。
【问题讨论】:
标签: c++ xml opencv classification