php-opencv / php-opencv-examples

Tutorial for computer vision and machine learning in PHP 7/8 by opencv (installation + examples + documentation)

Repository from Github https://github.comphp-opencv/php-opencv-examplesRepository from Github https://github.comphp-opencv/php-opencv-examples

why function predict not return value -1!

lethehung opened this issue · comments

Hello, I am trying to use the php opencv library to recognize faces. However, the predict function always returns one of the labels I've trained, even though the face is untrained. And if only one tag is trained, no matter what the input image is, the result will always first label . How to fix it !!