Ask Your Question

Test's profile - activity

2015-09-01 05:02:51 -0600 commented answer Opencv Haar trainig Error

It does not by any error , windows tells me only that the program has stop working. Without any errors.

2015-09-01 04:02:05 -0600 answered a question Opencv Haar trainig Error

I resolve this problem, i write the error name. Now it's work but when i run it the dos windows exit with error.

2015-08-31 11:13:37 -0600 received badge  Editor (source)
2015-08-31 11:12:43 -0600 asked a question Opencv: train cascade image reader

i try to training a classifier, i have create a file .vec whit create sample and it's ok.

Info file name: C:\OpenCV\positive.txt
Img file name: (NULL)
Vec file name: C:\OpenCV\sample.vec
BG  file name: (NULL)
Num: 20
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: 50
Height: 50
Create training samples from images collection...
Done. Created 20 samples

and now use training.bat, this is the file:

C:\OpenCV\opencv-2_4\build\x86\vc10\bin\opencv_traincascade.exe -data classifier -vec "C:\OpenCV\samples.vec" -bg "C:\OpenCV\negative.txt" -npos 20 -nneg 16 -numStages 4 -minHitRate 0.999 -maxFalseAllarmRate 0.5 -w 74 -h 100 -mode ALL -precalcvalBuffSize 256 -precalcdxBufSize 256

But when i call training.bat in dos give me this error:

Image reader can not be created from -vec C:\OpenCV\samples.vec and -bg C:\OpenCV\negative.txt.

Can someone help me please?

2015-08-28 05:56:35 -0600 commented question Opencv Haar trainig Error

ah sorry, i add the path and it's the same: Image reader can not be created from -vec C:\OpenCV\samples.vec and -bg C:\OpenCV\negative.txt. You are right, it's only for understand how work and if it's work, i have try to decrease the num of stages to 10 by 1. The next step it's increase the num of positive and negative image!

2015-08-28 05:11:56 -0600 commented question Opencv Haar trainig Error

Me too, the path in the file negativeNew (for ex C:\OpenCV\image\negative\nameOfImage.bmp) and the vec file contains only numbers. Can the image create problem? I take only a image with signal, (like this: http://www.smalteriaemiliana.it/wp-co... convert in bmp).

2015-08-28 04:55:39 -0600 commented question Opencv Haar trainig Error

I control the file negativeNew.txt and the path it's correct, even files in the same folder.

2015-08-28 04:02:10 -0600 asked a question Opencv Haar trainig Error

Hi, I'm new of Opencv and i make a road signal detection and i wanna trainig the algorithm for detect this. I have follow this guide on youtube https://www.youtube.com/watch?v=KFC6j... but in the end they give me an error. this is the file traning.bat

opencv_traincascade.exe -data classifier -vec samples.vec -bg negativeNew.txt -numStages 10 -minHitRate 0.999 -maxFalseAllarmRate 0.5 -numPos 12 -numNeg 1 -w 20 -h 20 -mode ALL -precalcvalBuffSize 256 -precalcdxBufSize 256

And this is the error:

Image reader can not be created from -vec samples.vec and -bg negativeNew.txt.

What I know it would take many more pictures but this is a begin, just for try. Can someone help me with this error? Thanks.