2 Commits

Author SHA1 Message Date
cf88a17a47 no "out of range" warning 2019-03-26 10:49:22 +08:00
cbb8b935ce print the shape of image captured 2019-03-26 10:42:15 +08:00

View File

@ -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()