Prechádzať zdrojové kódy

修改百度桩的返回josn对象

lideyin 5 rokov pred
rodič
commit
811b752e82

+ 30 - 59
examcloud-exchange-starter/src/main/resources/mock/baiduLiveness_success.json

@@ -1,63 +1,34 @@
 {
-	"face_num": 1,
-	"face_list": [{
-		"face_token": "35235asfas21421fakghktyfdgh68bio",
-		"location": {
-			"left": 117,
-			"top": 131,
-			"width": 172,
-			"height": 170,
-			"rotation": 4
+	"result": {
+		"thresholds": {
+			"frr_1e-3": 0.3,
+			"frr_1e-2": 0.9,
+			"frr_1e-4": 0.05
 		},
-		"face_probability": 1,
-		"angle": {
-			"yaw": -0.34859421849251,
-			"pitch": 1.9135693311691,
-			"roll": 2.3033397197723
-		},
-		"landmark": [{
-			"x": 161.74819946289,
-			"y": 163.30244445801
-		}],
-		"landmark72": [{
-			"x": 115.86531066895,
-			"y": 170.0546875
-		}],
-		"age": 29.298097610474,
-		"beauty": 55.128883361816,
-		"expression": {
-			"type": "smile",
-			"probability": 0.5543018579483
-		},
-		"gender": {
-			"type": "male",
-			"probability": 0.99979132413864
-		},
-		"glasses": {
-			"type": "sun",
-			"probability": 0.99999964237213
-		},
-		"race": {
-			"type": "yellow",
-			"probability": 0.99999976158142
-		},
-		"face_shape": {
-			"type": "triangle",
-			"probability": 0.5543018579483
-		},
-		"quality": {
-			"occlusion": {
-				"left_eye": 0,
-				"right_eye": 0,
-				"nose": 0,
-				"mouth": 0,
-				"left_cheek": 0.0064102564938366,
-				"right_cheek": 0.0057411273010075,
-				"chin": 0
+		"face_liveness": 1,
+		"face_list": [{
+			"liveness": {
+				"livemapscore": 1
+			},
+			"angle": {
+				"roll": 2.47,
+				"pitch": -6.56,
+				"yaw": -42.87
+			},
+			"face_token": "7a26ad2ecb45bdef4bc1249f94f7267d",
+			"location": {
+				"top": -1.72,
+				"left": 110.01,
+				"rotation": 10,
+				"width": 58,
+				"height": 65
 			},
-			"blur": 1.1886881756684e-10,
-			"illumination": 141,
-			"completeness": 1
-		}
-	}]
+			"face_probability": 0.91
+		}]
+	},
+	"log_id": 1368654458592553271,
+	"error_msg": "SUCCESS",
+	"cached": 0,
+	"error_code": 0,
+	"timestamp": 1565859255
 }