opencv-face-recognition-python
opencv-face-recognition-python copied to clipboard
OpenCV-Face-Recognition-Python.py, Line 223, in <Module>
OpenCV (3.4.1) Error: Assertion Failed <ssize.width> 0 && ssize.height > 0> in cv::resize, file resize.cpp, line 4044
OpenCV-Face-Recognition-Python.py, Line 223, in <Module> faces, labels = prepare_training_data("training-data")
File "OpenCV-Face-Recognition-Python.py, Line 178, in prepare_training_data cv2.imshow("Training on image...", cv2.resize<image, (400,500)))
cv2.imshow("Training on image...", cv2.resize(image, (400, 500))) cv2.error: OpenCV(3.4.1) resize.cpp:4044: error <215> ssize.width > 0 && ssize height > 0 in function cv::resize
Please is there a solution to this?
Try using LBHP instead of eigen function
The picture for testing also needs to be in your training set as well. There is no logic in place that deals with no match found so error will be reported.