Skip to main content
POST
Detect portrait image

Authorizations

Authorization
string
header
default:YOUR_TOKEN
required

Use the bearer token provided through the Neural4D website.

Body

multipart/form-data
image
file
required

Portrait image to inspect. Supported formats are JPG, JPEG, and PNG.

Response

200 - application/json

Detection result

statusCode
enum<integer>
required

Detection status. 0 means the result is valid and -1 means the result is invalid.

Available options:
-1,
0
result
boolean
required

Whether a human portrait was detected in the uploaded image.

message
string
required