Home > Back-end >  Opencv faceMark loading has been training model error
Opencv faceMark loading has been training model error

Time:09-15

CascadeClassifier faceDetector (" lbpcascade_frontalface. XML ");
Ptr Facemark=FacemarkLBF: : create ();
Facemark - & gt; LoadModel (" lbfmodel. Yaml ");

Loaded lbfmodel. Yaml files in the project directory

Error message is as follows:


Loading data from: lbfmodel yaml
Libc++ abi. Dylib: terminating with uncaught exception of type CV: : exception: OpenCV (4.1.0)/TMP/OpenCV MFLLQH - 20190416-79810-1/OpenCV - 4.1.0/opencv_contrib/modules/face/SRC/facemarkLBF CPP: 454: error: (5: Bad argument) No valid input file was given, do check the given filename. The in function 'loadModel

CodePudding user response:

 

CascadeClassifier faceDetector (" lbpcascade_frontalface. XML ");
Ptr Facemark=FacemarkLBF: : create ();
Facemark - & gt; LoadModel (" lbfmodel. Yaml ");
VideoCapture CAM (0);

CodePudding user response:

He asked me to check the file name, my name is correct, but always this error, please feel free to comment

CodePudding user response:

Then find out why
  • Related