c++ - Haar create sample parse error -
Creating samples in opencv 2.1 by "Opencv_createsamples.exe", but I got a parse error on line1.
file And what have I done in CMD: All information files paths are correct. I had only one problem, and in my case I explained it to opencv_creates-samples -num parameter The image described in the file resolved by passing with the total number of samples. I think passing a small number will also work. Note that excepting the -num parameter also gives a parse error, even if it is clearly a redundant parameter when you want to process all the samples described. positives.txt includes:
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) < / Pre>
C: \ HigherC> C: OpenCVI 2.1 Bin \ opencv_createsamples.exe -info positives.txt -vec Posi tivesMany.vec -num 15 -w 24-h 24 PAUSE information File name: positives.txt Img file name: (NULL) VAC file name: Positivis.me.bg file name: (NULL) Number: 15bg Color: 0bg thresh Wold: 80 Inverted: Wrong maximum intensity deviation: 40 Max x Angle: 1.1 Maximum Y angle: 1.1 Maximum Z angle: Show the samples: Wrong Width: 24 Height: 24 Create training samples from the picture collection ... positives.txt ( 1): Parsed Error Don 0 Samples Created
Comments
Post a Comment