Inferences
Shipping Label Inference
You can have the inference via the API or the vision-SDK while the vision-SDK will do the network request for you, the responses from this document will remain the same.
New Inference
To create a new inference for shipping-labels, you'll need to pass the image_url
as a base64 encoded data URL or public web URL. There's a soft cap of about 7.5MB per image for the base64 URL.
You're also able to specify what type of image the parser is looking at, so it can better extract data accurately along with other helpful information listed below:
image_url string
(required)
Base64 encoded data URL.
barcode_values Array.<String>
Any existing values you've already extracted from the barcode.
location_id String
The ID of the location you want to attribute to this scan.
options Object
Option contains different other optional parameters you can provide along with the image. Those parameters are described below
Show Details
match Object
All the options associated with matching contacts logic.
(These parameter are only required if you are using contact matching)
Show Details
postprocess Object
Optional postprocessing parameters
Show Details
tracker Object
This parameter is optional and serves to track the package. It is only required if you intend to create a tracker object. If you are using the OCR API only, you do not need to specify these parameters.