TransportAPIOptions

Interface

Propertiesโ€‹

NameTypeDescription
apiKeystringThe API key to be used for authentication.
cloudServiceRegion?"AUTO" | "EU" | "US"The cloud service region to use - "AUTO" for latency-based
automatic routing (default), "EU" for Europe and "US" for
the United States. Has no effect if endpoint is also set.
disableAdditionalCode?booleanDisables additional code reading (such as the ISO equipment/type code) for
the iso and eu-rail code types. Sends X-Disable-Additional-Code.
Supported by OCR engines from 7.3.20.46; other code types ignore it.
When set, it takes precedence over disableISOCode, including when its
value is false.
disableChecksumCheck?booleanDeprecated. Checksum checks are not configurable from OCR engine
7.3.20.46 onward.

Sends the legacy X-Disable-Checksum-Check header, kept for older OCR
engines. From 7.3.20.46 the engine handles checksum checks internally
and they cannot be configured, so this option has no effect there.
disableISOCode?booleanDeprecated. Use disableAdditionalCode instead.

Legacy additional-code switch for the iso and eu-rail code types.
Sends X-Disable-Iso-Code. On OCR engines from 7.3.20.46 it is only a
fallback, used when disableAdditionalCode is not set.
disableImageResizing?booleanThe service resizes large images to Full HD resolution by bicubic
interpolation. Resizing can make reading many times faster, but
it can reduce the recognition efficiency. If you don't want the
service to resize your images, turn this feature on by setting the
property value to true. By disabling image resizing, you may also
need to enable wide range analysis.
enableFullUsAccrCode?booleanEnables full US ACCR code recognition.

Sends X-Enable-Full-Us-Accr-Code. Applies only to the truck code type;
other code types ignore it.
enableWideRangeAnalysis?booleanIf you cannot guarantee that the uploaded image meets all the
required parameters (see the Input Images tab on the How To Use page),
you can turn on the wide-range analysis by setting this property's
value to true. Attention! The duration of the analysis may increase
several times.
endpoint?stringThe URL of the API endpoint to call. Optional
if cloudServiceRegion is also set. Overrides
cloudServiceRegion if both properties are set.
maxReads?numberAn optional parameter, it specifies the maximum number of
vehicle/license plate searches per image. Use this parameter
carefully, because every search increases the processing time.
The system will stop searching when there is no more vehicle/license
plate in the image, or the number of searches reaches the value of
maxreads. Its value is 1 by default, the maximum is 5.
retryCount?numberHow many times the request should be retried in case of a 5XX response
status code. Default: 3.
typeCodeTypeThe type of code to read.

Source: transport/options.ts:31