Skip to content

Commit 316fb30

Browse files
authored
Merge pull request shantnu#6 from furetosan/master
OpenCV3 support
2 parents 6499d31 + f102577 commit 316fb30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Run the code like this:
55
If you want to understand how the code works, the details are here:
66

77
https://realpython.com/blog/python/face-recognition-with-python/
8+
9+
EDIT: now works with OpenCV3.

face_detect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
gray,
1818
scaleFactor=1.1,
1919
minNeighbors=5,
20-
minSize=(30, 30),
21-
flags = cv2.cv.CV_HAAR_SCALE_IMAGE
20+
minSize=(30, 30)
21+
#flags = cv2.CV_HAAR_SCALE_IMAGE
2222
)
2323

2424
print "Found {0} faces!".format(len(faces))

0 commit comments

Comments
 (0)