POST api/Common/YearCard/Ticket/FaceImage/Cut
客人在手机上拍照,图片发往百度验证完成之后,调用本方法进行切图。 切图的过程会将原来发往百度验证的图片缩放并切片成标准图片。
Request Information
URI Parameters
None.
Body Parameters
YearCardFaceImgCutParmName | Description | Type | Additional information |
---|---|---|---|
left |
人脸识别算法返回的人脸位置left |
integer |
Required |
top |
人脸识别算法返回的人脸位置top |
integer |
Required |
width |
人脸识别算法返回的人脸的宽度 |
integer |
Required |
height |
人脸识别算法返回的人脸的高度 |
integer |
Required |
sourceimgbugger |
发往百度进行人脸识别的图片本身。 最大两M 图片base64编码 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "left": 1, "top": 2, "width": 3, "height": 4, "sourceimgbugger": "sample string 5" }
application/xml, text/xml
Sample:
<YearCardFaceImgCutParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <height>4</height> <left>1</left> <sourceimgbugger>sample string 5</sourceimgbugger> <top>2</top> <width>3</width> </YearCardFaceImgCutParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
客人在手机上拍照,图片发往百度验证完成之后,调用本方法进行切图。 切图的过程会将原来发往百度验证的图片缩放并切片成标准图片。
CommonOperationResultWithTagOfStringName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResultWithTagOfstring>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.