Haartraining, Why do i keep getting the error "unable to read negative images"

StackOverflow https://stackoverflow.com/questions/21291663

  •  01-10-2022
  •  | 
  •  

Вопрос

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.

Это было полезно?

Решение

Instead make your entries in the bg file like--

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

That will do the trick

Regards

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top