opencv-face-recognition-python icon indicating copy to clipboard operation
opencv-face-recognition-python copied to clipboard

AttributeError: 'NoneType' object has no attribute 'copy'

Open Shefaligokarn opened this issue 6 years ago • 3 comments


AttributeError Traceback (most recent call last) in () 9 #perform a prediction 10 predicted_img1 = predict(test_img1) ---> 11 predicted_img2 = predict(test_img2) 12 print("Prediction complete") 13

in predict(test_img) 4 def predict(test_img): 5 #make a copy of the image as we don't want to chang original image ----> 6 img = test_img.copy() 7 #detect face from the image 8 face, rect = detect_face(img)

Shefaligokarn avatar Sep 19 '18 18:09 Shefaligokarn

Add more no. Of testing data.. The program cant recognize your face.. Or set a condition is confidence is greater than threshold print no face

AyushTejwani avatar Sep 19 '18 19:09 AyushTejwani

thank you.

Shefaligokarn avatar Sep 19 '18 19:09 Shefaligokarn

If you want my project mail me on [email protected] i can send the code of my project.. It is more easier to work on

AyushTejwani avatar Sep 19 '18 20:09 AyushTejwani