Question

The dat file showing where the negatives are is as shown below:

C:\Users\Adam\Desktop\NegativeNose\1.png
C:\Users\Adam\Desktop\NegativeNose\2.png
C:\Users\Adam\Desktop\NegativeNose\3.png
C:\Users\Adam\Desktop\NegativeNose\4.png
C:\Users\Adam\Desktop\NegativeNose\5.png
C:\Users\Adam\Desktop\NegativeNose\6.png
C:\Users\Adam\Desktop\NegativeNose\7.png
C:\Users\Adam\Desktop\NegativeNose\8.png
C:\Users\Adam\Desktop\NegativeNose\9.png

every time i run the haartraining i get the error:

"Error: Unspecified error (Unable to read negative images) in cvCreateTreeCascadeClassifier,"

any help would be greatly appreciated as i have been stuck on this for the past hour or two.

Was it helpful?

Solution

Instead make your entries in the bg file like--

1.png
2.png
3.png
4.png
....

That will do the trick

Regards

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top