result.image_list, along with the original and cropped dimensions, the crop corner coordinates, and the detected orientation angle.
Response overview
The
image value below is truncated for readability. The real response contains the full Base64-encoded JPG.Top-level fields
result fields
image_list fields
Each item in image_list represents one processed image. image_list always contains a single item: for image input there is one result, and for PDF input only the first page is processed.
Crop coordinates
position is an array of 8 values describing the four corner points of the cropped region in the original image:
Coordinates are in pixels, relative to the original image.
Orientation angle
angle is always present in each image_list item. It reports the detected orientation of the input document, using the values below. Orientation is detected only when correct_direction=1; otherwise, or when detection fails, the value is -1.
Save the processed image
Theimage field is a Base64-encoded JPG. It is raw Base64 without a data:image/jpeg;base64, prefix, so add the prefix yourself if you embed it directly in an HTML <img> tag. Decode it to write the file to disk:
Related resources
Quickstart
Process your first image.
Configuration
Control cropping, correction, and enhancement.
API Reference
Full request and response schema with an interactive playground.
Errors
Error codes and how to resolve them.

