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

@ -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'):