Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit fac39eb

Browse files
authored
Update Face_detection.py
1 parent 6067061 commit fac39eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Image-Processing/Face_detection/Face_detection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
cap = cv2.VideoCapture(0) ##capturevideo by webcam or your laptop default cam for webcame => 1 and for defalut laptop camera => 2
55

66
while True:
7-
sucess,img = cap.read()
7+
sucess , img = cap.read()
88
gray = cv2.cvtColor( img , cv2.COLOR_BGR2GRAY ) ##before detecting face you should convert img or video into gray image
99
faces = face.detectMultiScale( gray ,1.1 ,5 )
1010

0 commit comments

Comments
 (0)