Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
injetlee committed Jun 16, 2018
1 parent f4d2e38 commit 3f6d4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wechat/face_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '检测失败'
return 'fail'

0 comments on commit 3f6d4b1

Please sign in to comment.