Ver Fonte

1.将百度活体检测和face++图片比对接口的地址改为放到系统配置表中读取
2.exchange新加两个测试结果json
3.修改图片处理队列已满时,休眠的时间由5秒改为30秒

lideyin há 6 anos atrás
pai
commit
c3a550f670

+ 69 - 0
examcloud-exchange-starter/src/main/resources/mock/baiduLiveness_success.json

@@ -0,0 +1,69 @@
+{
+	"face_num": 1,
+	"face_list": [
+		{
+			"face_token": "35235asfas21421fakghktyfdgh68bio",
+			"location": {
+				"left": 117,
+				"top": 131,
+				"width": 172,
+				"height": 170,
+				"rotation": 4
+			},
+			"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
+				},
+				"blur": 1.1886881756684e-10,
+				"illumination": 141,
+				"completeness": 1
+			}
+		}
+	]
+}

+ 10 - 0
examcloud-exchange-starter/src/main/resources/mock/facePlusPlus_success.json

@@ -0,0 +1,10 @@
+{
+	"time_used": 473,
+	"confidence": 96.46,
+	"thresholds": {
+		"1e-3": 65.3,
+		"1e-5": 76.5,
+		"1e-4": 71.8
+	},
+	"request_id": "1469761507,07174361-027c-46e1-811f-ba0909760b18"
+}