how to create .vec file to train harr cascade ?

asked 2015-01-04 00:20:09 -0600

whenever I run this command:- opencv_createsamples -info pos.info -num 1192 -w 24 -h 24 -vec pos.vec I get error like this please help me about this error.

pi@raspberrypi~/Desktop $ opencv_createsamples -info pos.info -num 1192 -w 24 -h 24 -vec pos.vec Info file name: pos.info Img file name: (NULL) Vec file name: pos.vec BG file name: (NULL) Num: 1192 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 Original image will be scaled to: Width: $backgroundWidth / 24 Height: $backgroundHeight / 24 Create training samples from images collection... pos.info(1) : parse errorDone. Created 0 samples

edit retag flag offensive close merge delete

Comments

it seems, your info file could not be parsed.

can you show the first few lines ?

(and i hope, you don't really run that on a raspi, you might not live long enough, to see the outcome...)

http://docs.opencv.org/doc/user_guide...

berak gravatar imageberak ( 2015-01-04 08:10:18 -0600 )edit