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