POST api/FaceV1/FaceDetection
人脸检测接口
Request Information
URI Parameters
None.
Body Parameters
请求参数
ParametersOfFaceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | FaceDto |
None. |
|
| Key |
密匙(炎麟提供) |
string |
None. |
| ChannelID |
渠道ID(炎麟提供) |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Data": {
"FacePhotoBase64": "sample string 1"
},
"Key": "sample string 1",
"ChannelID": 2
}
application/xml, text/xml
Sample:
<ParametersOfFaceDto_SR_SkLznh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLWebApi.Dtos">
<ChannelID>2</ChannelID>
<Key>sample string 1</Key>
<Data>
<FacePhotoBase64>sample string 1</FacePhotoBase64>
</Data>
</ParametersOfFaceDto_SR_SkLznh>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultDtoOfFaceDetectionResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | FaceDetectionResult |
None. |
|
| Code |
代码200=成功,400=异常,500=失败 |
integer |
None. |
| Message |
应答描述 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"face_num": 1,
"face_list": [
{
"location": {
"left": 1.1,
"top": 2.1,
"width": 3.1,
"height": 4.1,
"rotation": 5
},
"face_probability": 1.1,
"angle": {
"yaw": 1.1,
"pitch": 2.1,
"roll": 3.1
},
"liveness": {
"livemapscore": 1.1
},
"glasses": {
"type": "sample string 1",
"probability": 2.1
},
"eye_status": {
"left_eye": 1.1,
"right_eye": 2.1
},
"quality": {
"occlusion": {
"left_eye": 1.1,
"right_eye": 2.1,
"nose": 3.1,
"mouth": 4.1,
"left_cheek": 5.1,
"right_cheek": 6.1,
"chin_contour": 7.1
},
"blur": 1.1,
"illumination": 2.1,
"completeness": 3
},
"face_type": {
"type": "sample string 1",
"probability": 2.1
}
},
{
"location": {
"left": 1.1,
"top": 2.1,
"width": 3.1,
"height": 4.1,
"rotation": 5
},
"face_probability": 1.1,
"angle": {
"yaw": 1.1,
"pitch": 2.1,
"roll": 3.1
},
"liveness": {
"livemapscore": 1.1
},
"glasses": {
"type": "sample string 1",
"probability": 2.1
},
"eye_status": {
"left_eye": 1.1,
"right_eye": 2.1
},
"quality": {
"occlusion": {
"left_eye": 1.1,
"right_eye": 2.1,
"nose": 3.1,
"mouth": 4.1,
"left_cheek": 5.1,
"right_cheek": 6.1,
"chin_contour": 7.1
},
"blur": 1.1,
"illumination": 2.1,
"completeness": 3
},
"face_type": {
"type": "sample string 1",
"probability": 2.1
}
}
]
},
"Code": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<ResultDtoOfFaceDetectionResult_SR_SkLznh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLWebApi.Models">
<Code>1</Code>
<Message>sample string 2</Message>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/YLWebApi.Dtos">
<d2p1:FaceList>
<d2p1:FaceInfo>
<d2p1:Angle>
<d2p1:Pitch>2.1</d2p1:Pitch>
<d2p1:Roll>3.1</d2p1:Roll>
<d2p1:Yaw>1.1</d2p1:Yaw>
</d2p1:Angle>
<d2p1:EyeStatus>
<d2p1:LeftEye>1.1</d2p1:LeftEye>
<d2p1:RightEye>2.1</d2p1:RightEye>
</d2p1:EyeStatus>
<d2p1:FaceProbability>1.1</d2p1:FaceProbability>
<d2p1:FaceType>
<d2p1:Probability>2.1</d2p1:Probability>
<d2p1:Type>sample string 1</d2p1:Type>
</d2p1:FaceType>
<d2p1:Glasses>
<d2p1:Probability>2.1</d2p1:Probability>
<d2p1:Type>sample string 1</d2p1:Type>
</d2p1:Glasses>
<d2p1:Liveness>
<d2p1:Livemapscore>1.1</d2p1:Livemapscore>
</d2p1:Liveness>
<d2p1:Location>
<d2p1:Height>4.1</d2p1:Height>
<d2p1:Left>1.1</d2p1:Left>
<d2p1:Rotation>5</d2p1:Rotation>
<d2p1:Top>2.1</d2p1:Top>
<d2p1:Width>3.1</d2p1:Width>
</d2p1:Location>
<d2p1:Quality>
<d2p1:Blur>1.1</d2p1:Blur>
<d2p1:Completeness>3</d2p1:Completeness>
<d2p1:Illumination>2.1</d2p1:Illumination>
<d2p1:Occlusion>
<d2p1:ChinContour>7.1</d2p1:ChinContour>
<d2p1:LeftCheek>5.1</d2p1:LeftCheek>
<d2p1:LeftEye>1.1</d2p1:LeftEye>
<d2p1:Mouth>4.1</d2p1:Mouth>
<d2p1:Nose>3.1</d2p1:Nose>
<d2p1:RightCheek>6.1</d2p1:RightCheek>
<d2p1:RightEye>2.1</d2p1:RightEye>
</d2p1:Occlusion>
</d2p1:Quality>
</d2p1:FaceInfo>
<d2p1:FaceInfo>
<d2p1:Angle>
<d2p1:Pitch>2.1</d2p1:Pitch>
<d2p1:Roll>3.1</d2p1:Roll>
<d2p1:Yaw>1.1</d2p1:Yaw>
</d2p1:Angle>
<d2p1:EyeStatus>
<d2p1:LeftEye>1.1</d2p1:LeftEye>
<d2p1:RightEye>2.1</d2p1:RightEye>
</d2p1:EyeStatus>
<d2p1:FaceProbability>1.1</d2p1:FaceProbability>
<d2p1:FaceType>
<d2p1:Probability>2.1</d2p1:Probability>
<d2p1:Type>sample string 1</d2p1:Type>
</d2p1:FaceType>
<d2p1:Glasses>
<d2p1:Probability>2.1</d2p1:Probability>
<d2p1:Type>sample string 1</d2p1:Type>
</d2p1:Glasses>
<d2p1:Liveness>
<d2p1:Livemapscore>1.1</d2p1:Livemapscore>
</d2p1:Liveness>
<d2p1:Location>
<d2p1:Height>4.1</d2p1:Height>
<d2p1:Left>1.1</d2p1:Left>
<d2p1:Rotation>5</d2p1:Rotation>
<d2p1:Top>2.1</d2p1:Top>
<d2p1:Width>3.1</d2p1:Width>
</d2p1:Location>
<d2p1:Quality>
<d2p1:Blur>1.1</d2p1:Blur>
<d2p1:Completeness>3</d2p1:Completeness>
<d2p1:Illumination>2.1</d2p1:Illumination>
<d2p1:Occlusion>
<d2p1:ChinContour>7.1</d2p1:ChinContour>
<d2p1:LeftCheek>5.1</d2p1:LeftCheek>
<d2p1:LeftEye>1.1</d2p1:LeftEye>
<d2p1:Mouth>4.1</d2p1:Mouth>
<d2p1:Nose>3.1</d2p1:Nose>
<d2p1:RightCheek>6.1</d2p1:RightCheek>
<d2p1:RightEye>2.1</d2p1:RightEye>
</d2p1:Occlusion>
</d2p1:Quality>
</d2p1:FaceInfo>
</d2p1:FaceList>
<d2p1:FaceNum>1</d2p1:FaceNum>
</Data>
</ResultDtoOfFaceDetectionResult_SR_SkLznh>