Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf88a17a47 | |||
| cbb8b935ce |
@ -157,7 +157,8 @@ while cap.isOpened():
|
||||
|
||||
# 根据人脸大小生成空的图像 / create blank image according to the size of face detected
|
||||
im_blank = np.zeros((int(height*2), width*2, 3), np.uint8)
|
||||
|
||||
|
||||
save_flag = 1;
|
||||
if save_flag:
|
||||
# 按下 's' 保存摄像头中的人脸到本地 / press 's' to save faces into local images
|
||||
if kk == ord('s'):
|
||||
@ -193,4 +194,4 @@ while cap.isOpened():
|
||||
# 释放摄像头 / release camera
|
||||
cap.release()
|
||||
|
||||
cv2.destroyAllWindows()
|
||||
cv2.destroyAllWindows()
|
||||
|
||||
Reference in New Issue
Block a user