Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Need help with training cascade classifier

I have annotated all of my positive images and put it into a file called "info.txt", I only want to use my own positive examples and don't want to generate artificial examples out I have tried using the following command (-num 389, the number 389 is the total positive images that I'm currently having)

!opencv_createsamples -vec faces.vec -num 389 -info info.txt -w 24 -h 24

But it returned with an error, saying https://pastebin.com/ecG1wFfM I have tried searching everywhere but hasn't found a solution yet.

Need help with training cascade classifier

I have annotated all of my positive images and put it into a file called "info.txt", I only want to use my own positive examples and don't want to generate artificial examples out examples. I have tried using the following command (-num 389, the number 389 is the total positive images that I'm currently having)

!opencv_createsamples -vec faces.vec -num 389 -info info.txt -w 24 -h 24

But it returned with an error, saying https://pastebin.com/ecG1wFfM I have tried searching everywhere but hasn't found a solution yet.

Need help with training cascade classifier

I have annotated all of my positive images and put it into a file called "info.txt", I only want to use my own positive examples and don't want to generate artificial examples. I have tried using the following command (-num 389, the number 389 is the total positive images that I'm currently having)

!opencv_createsamples opencv_createsamples -vec faces.vec -num 389 -info info.txt -w 24 -h 24

But it returned with an error, saying https://pastebin.com/ecG1wFfM I have tried searching everywhere but hasn't found a solution yet.

Need help with training cascade classifier

I have annotated all of my positive images and put it into a file called "info.txt", I only want to use my own positive examples and don't want to generate artificial examples. I have tried using the following command (-num 389, the number 389 is the total positive images that I'm currently having)

opencv_createsamples -vec faces.vec -num 389 -info info.txt -w 24 -h 24

But it returned with an error, saying https://pastebin.com/ecG1wFfM saying

Info file name: info.txt

Img file name: (NULL) Vec file name: fire.vec BG file name: (NULL) Num: 389 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 Max Scale: -1 Create training samples from images collection... OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp, line 3492 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

I have tried searching everywhere but hasn't found a solution yet.

Need help with training cascade classifier

I have annotated all of my positive images and put it into a file called "info.txt", I only want to use my own positive examples and don't want to generate artificial examples. I have tried using the following command (-num 389, the number 389 is the total positive images that I'm currently having)

opencv_createsamples -vec faces.vec -num 389 -info info.txt -w 24 -h 24

But it returned with an error, saying

Info file name: info.txt

Img file name: (NULL) Vec file name: fire.vec BG file name: (NULL) Num: 389 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 Max Scale: -1 Create training samples from images collection... OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp, line 3492 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

saying https://pastebin.com/FKArU9vX I have tried searching everywhere but hasn't found a solution yet.