neha01 / FaceRecognition

Face Recognition using OpenCV in Python
163 stars 146 forks source link

opencv error #4

Closed IAmMarvel closed 5 years ago

IAmMarvel commented 5 years ago

File "tester.py", line 9, in faces_detected,gray_img=fr.faceDetection(test_img) File "C:\Users\sunil\Desktop\ml_project\me\face_recognition.py", line 6, in faceDetection gray_img=cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY) cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

this is the error i m getting.Can you tell me what to do in that