Skip to content

Commit 64d0b31

Browse files
committed
fixed haar cascade path for face detection tutorial
1 parent 5947121 commit 64d0b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: machine-learning/face_detection/live_face_detection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
cap = cv2.VideoCapture(0)
55

66
# initialize the face recognizer (default face haar cascade)
7-
face_cascade = cv2.CascadeClassifier("C:/Users/STRIX/Desktop/vscodes/repos/pythoncode-tutorials/machine-learning/face_detection/cascades/haarcascade_fontalface_default.xml")
7+
face_cascade = cv2.CascadeClassifier("cascades/haarcascade_fontalface_default.xml")
88

99
while True:
1010
# read the image from the cam

0 commit comments

Comments
 (0)