Basics
Single processing
It is used to process single photo.
HTTP response statuses
- 200 success,
- 400 when you send a distorted image file,
- 412 when there is no car in the photo you will get this error with the message
"Car not found in the image."
, the original image is returned, - 415 when you send unsupported file types,
- 422 image processing error, please double check input image and processor parameters,
- 429 when you send too many requests at once (only when Throttling Parameter details).
Process photo - jpeg file as a result
/v1/process/single/{configurationName}
configurationName
Name of one of default configuration, your own configuration or decision-making configuration?throttling=true
Throttling supported detailsbody
Jpeg Image max file size 14MB
Example Bash
curl --location --request POST 'https://api.autography.app/v1/process/single/exampleconfiguration' \
--header 'Authorization: FAKE_JWT_TOKEN' \
--header 'Content-Type: image/jpeg' \
--data-binary '@/C:/Users/.../car1.jpg'
Process photo - details as a result
In results there is a json with urls and processing properties (check response below).
/v1/process/single/{configurationName}/details
configurationName
Name of one of default configuration or your own configuration or decision-making configurationthrottling=true
Throttling supported detailsbody
Jpeg Image max file size 14MB
In response
{
"index": 0,
"photo": "https://carsca[...]70b1556",
"mask": "https://carsca.[...]c017660",
"properties": {
"image_quality_score": {
"darkness": 1.0,
"brightness": 0.82,
"blurred": 1.0
},
"segmentation_score": 0.40768818438740423
}
}
index
- for single images always0
photo
- url of photo without backgroundmask
- url of car maskproperties
- photo propertiesimage_quality_score
check image quality processor for detailssegmentation_score
check DetectInteriorMaskProcessor or DetectCarMaskProcessor for details
Throttling Parameter
Some of the process urls supports throttling
parameter.
During high traffic on the server, the response time can increase.
If you want to check that the processing time of the photo does not exceed about 30 seconds, use ?throttling=true
.
If the waiting time is shorter, the image will be processed according to the requested configuration.
If the waiting time in the queue exceeds about 30 seconds, error 429
is returned immediately.
This command can only be used for single
configuration.
Example
/v1/process/single/simple?throttling=true
Additional information
For additional documentation please check process.