2.1 /quality/face/stateless

Perform a quality check of the photo.

The photo file can contain multiple faces.

For photo standards, refer to Chapter 3 Photo and Video Standards in the Operation Manual.

Request mode

POST

Request URL

http://ip:port/quality/face/stateless

Request parameters

Name

Type

Required

Description

encrypted_image

string

Yes

Encrypted photo Encryption method reference: [Photo and Video Encryption]

Normal response

Name

Type

Description

code

int

System response code: 1000

faces

Array

Information about the quality of each face in the photo

request_id

string

The ID of this request

Abnormal response

Name

Type

Instructions

code

int

System response code

message

string

Error Messages

request_id

string

The ID of this request

System response code

code

Field value

Description

1200

invalid argument

Invalid input parameter

2003

invalid image size

The image size (height and width in pixel) does not meet the requirements

2004

invalid content length

The image file size does not meet the requirements

2005

invalid image type or corrupted

The image type does not meet the requirements

4000

detection failed

Feature extraction failed, no face detected in the image

Possible HTTP status codes

status

Description

400

BAD_REQUEST

404

NOT_FOUND

411

LENGTH_REQUIRED

413

PAYLOAD_TOO_LARGE

500

INTERNAL_ERROR

Sample

Last updated

Was this helpful?