Face Detection

<p><strong>Brief Description</strong></p> <ul> <li>Users provide self-photographing, and the application platform provides face detection for the images provided, and returns up to 16 face coordinates and head length.</li> </ul> <p><strong>Use Constraints</strong></p> <ul> <li>The photo types is restrict to PNG/JPG/JPEG/BMP,the capacity is restrict to under 2MB.</li> </ul> <p><strong>Request URL</strong></p> <ul> <li><a href="https://biap-is.yun.pingan.com/ApiGateway/biap/face/v1/detections">https://biap-is.yun.pingan.com/biap/face/v1/detections</a></li> </ul> <p><strong>Request Method</strong></p> <ul> <li>&nbsp;HTTP 1.1 (Post + body)</li> </ul> <p><strong>Request Parameter Description</strong></p> <ul> <li>Content-Type: &#39;application/json; charset=utf-8&#39;</li> </ul> <pre> <code> { "request_id":"0", // [string] identification of user’s http request which was generated by client "person_id":"554111265879451123", // [string] It could be identity card number or unique network identification. "multiple_face":false, // [bool] true: multiple_face(Not supported in this version),false: single_face "device":{ "plat":"3", // [string] Platform, platform types of clients (1-&gt;android, 2-&gt;ios, 3-&gt;pc, 4-&gt;server) "version":"10.3.3", // [string] Version "model":"MBP 2017" // [string] Model }, "file":{ "type":"jpeg", // [string] file type "data":"XXXX" // [string] image content after Base64 encoding } } </code></pre> <p><strong>Return Parameter Description</strong></p> <ul> <li>Content-Type: &#39;application/json; charset=utf-8&#39;</li> </ul> <pre> <code> { "code":"0", // [string] interface status codes "msg":"", // [string] result description "request_id":"0", // [string] unique identification of request "data":{ "person_id":"554111265879451123", // [string] It could be identity card number or unique network identification. "faces":[ { "rect": { "x":45, // [int] X coordinate: top left corner of face contour "y":60, // [int] Y coordinate: top left corner of face contour "width":75, // [int] Width of face contour "height":75 // [int] Height of face contour } } ] } } </code></pre> <p>&nbsp;</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products