detectMultiScale函数:检测人脸算法,其参数如下:
image:要检测的输入图像
scaleFactor:表示每次图像尺寸减小的比例
minNeighbors:表示每一个目标至少要被检测到多少次才算是真的人脸...y, w, h in faces:
# 在原图像上绘制矩形标识
cv.rectangle(img=image, pt1=(x, y), pt2=(x+w, y+h),...y, w, h in faces:
# 在原图像上绘制矩形标识
cv.rectangle(img=image, pt1=(x, y), pt2=(x+w, y+h),...for x, y, w, h in face_zone:
cv2.rectangle(frame, pt1=(x, y), pt2=(x + w, y + h), color=...for x, y, w, h in face_zone:
cv.rectangle(frame, pt1=(x, y), pt2=(x + w, y + h), color=[