From 3f6d4b194305e5dba1513b51f75e5d05c3ec17fb Mon Sep 17 00:00:00 2001 From: injetlee Date: Sat, 16 Jun 2018 19:56:19 +0800 Subject: [PATCH] fix --- wechat/face_id.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wechat/face_id.py b/wechat/face_id.py index b394690..6726f15 100644 --- a/wechat/face_id.py +++ b/wechat/face_id.py @@ -132,6 +132,6 @@ def access_api(img): draw.rectangle((x, y, x + w, y + h), outline="#4CB050") # 画出人脸方框 cv2img = cv2.cvtColor(np.array(pil_img), cv2.COLOR_RGB2BGR) # 把 pil 格式转换为 cv cv2.imwrite('faces/{}'.format(os.path.basename(img)), cv2img) # 保存图片到 face 文件夹下 - return '检测成功' + return 'success' else: - return '检测失败' \ No newline at end of file + return 'fail' \ No newline at end of file