From ef61964768548999855bb1b652b1396ab5909fbf Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Tue, 7 Jan 2014 00:11:33 +0100 Subject: [PATCH] Update py_face_detection.rst bug in example --- .../py_objdetect/py_face_detection/py_face_detection.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.rst b/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.rst index a10d5907c5..e1716eb4ce 100644 --- a/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.rst +++ b/doc/py_tutorials/py_objdetect/py_face_detection/py_face_detection.rst @@ -73,7 +73,7 @@ Now we find the faces in the image. If faces are found, it returns the positions faces = face_cascade.detectMultiScale(gray, 1.3, 5) for (x,y,w,h) in faces: - img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) + cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) roi_gray = gray[y:y+h, x:x+w] roi_color = img[y:y+h, x:x+w] eyes = eye_cascade.detectMultiScale(roi_gray)