abidrahmank / OpenCV2-Python-Tutorials

This repo contains tutorials on OpenCV-Python library using new cv2 interface
1.25k stars 887 forks source link

Bug in the Face Detection using Haar Cascades #121

Open KuangyiXing opened 7 years ago

KuangyiXing commented 7 years ago

Hi, kindly remind that "img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)" should be converted into "cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)" to fix the bug "TypeError: 'NoneType' object has no attribute 'getitem'"

chensteven commented 7 years ago

I get the same error as well