Commit dbbcc365b67a8db7b6917190185667002be47f90
1 parent
d5213d95
11
Showing
1 changed file
with
3 additions
and
2 deletions
packageD/pages/AI-test-skin/analyse/analyse.js
@@ -235,6 +235,7 @@ Page({ | @@ -235,6 +235,7 @@ Page({ | ||
235 | console.log(check_data); | 235 | console.log(check_data); |
236 | //检查睁眼闭眼 | 236 | //检查睁眼闭眼 |
237 | var eye_status = check_data.eye_status; | 237 | var eye_status = check_data.eye_status; |
238 | + console.log('eye_status',eye_status); | ||
238 | if (eye_status.left_eye > 0.1 || eye_status.right_eye > 0.1) { | 239 | if (eye_status.left_eye > 0.1 || eye_status.right_eye > 0.1) { |
239 | // var msg = "未闭眼拍照"; | 240 | // var msg = "未闭眼拍照"; |
240 | // th.go_error(msg); | 241 | // th.go_error(msg); |
@@ -272,7 +273,7 @@ Page({ | @@ -272,7 +273,7 @@ Page({ | ||
272 | // return false; | 273 | // return false; |
273 | fail_result.push({ | 274 | fail_result.push({ |
274 | type: 4, | 275 | type: 4, |
275 | - reason: "图片质量不佳" | 276 | + reason: "质量检测未通过" |
276 | }) | 277 | }) |
277 | } | 278 | } |
278 | 279 | ||
@@ -464,7 +465,7 @@ Page({ | @@ -464,7 +465,7 @@ Page({ | ||
464 | } | 465 | } |
465 | if (fail_result.length > 0) { | 466 | if (fail_result.length > 0) { |
466 | fail_result = JSON.stringify(fail_result); | 467 | fail_result = JSON.stringify(fail_result); |
467 | - th.go_error1(fail_result); | 468 | + th.go_error(fail_result); |
468 | return false; | 469 | return false; |
469 | } | 470 | } |
470 | th.analyse_by_mt(img_info,analyse_info); | 471 | th.analyse_by_mt(img_info,analyse_info); |