i m so sad
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import cv2 as cv
|
||||
import dlib
|
||||
from matplotlib import pyplot as plot
|
||||
def draw_rect(img, faces):
|
||||
for face in faces:
|
||||
cv.rectangle(img,(face.left(),face.top()),(face.right(),face.bottom()),(0,255,0),2)
|
||||
return img
|
||||
|
||||
if __name__ == '__main__':
|
||||
cap = cv.VideoCapture(1)
|
||||
cap = cv.VideoCapture(0)
|
||||
while True:
|
||||
ret, frame = cap.read()
|
||||
if not ret:
|
||||
|
||||
Reference in New Issue
Block a user