Skip to content

Commit 3f6d4b1

Browse files
committed
fix
1 parent f4d2e38 commit 3f6d4b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wechat/face_id.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ def access_api(img):
132132
draw.rectangle((x, y, x + w, y + h), outline="#4CB050") # 画出人脸方框
133133
cv2img = cv2.cvtColor(np.array(pil_img), cv2.COLOR_RGB2BGR) # 把 pil 格式转换为 cv
134134
cv2.imwrite('faces/{}'.format(os.path.basename(img)), cv2img) # 保存图片到 face 文件夹下
135-
return '检测成功'
135+
return 'success'
136136
else:
137-
return '检测失败'
137+
return 'fail'

0 commit comments

Comments
 (0)