Skip to content

@camera.ui/sdk / plugin / LicensePlateDetectionInterface

Interface: LicensePlateDetectionInterface ​

Defined in: plugin/interfaces.ts:467

Implemented by plugins that locate license plates and run OCR on them.

Methods ​

detectLicensePlates()? ​

optional detectLicensePlates(frame, config?): Promise<LicensePlateDetectionPluginResponse | undefined>

Defined in: plugin/interfaces.ts:478

Run detection on a pre-decoded video frame.

Parameters ​

frame ​

VideoFrameData

config? ​

Record<string, unknown>

Returns ​

Promise<LicensePlateDetectionPluginResponse | undefined>


licensePlateDetectionSettings()? ​

optional licensePlateDetectionSettings(): Promise<JsonSchema[] | undefined>

Defined in: plugin/interfaces.ts:480

Return the JSON schema for the license-plate-detection settings form in the UI, or undefined for no schema.

Returns ​

Promise<JsonSchema[] | undefined>


testLicensePlateDetection() ​

testLicensePlateDetection(imageData, metadata, config): Promise<LicensePlateDetectionPluginResponse | undefined>

Defined in: plugin/interfaces.ts:472

Run detection on a single image captured by the UI test panel and return the result for preview rendering. A number in config.threshold is the lowest confidence to return, without it the plugin's default applies.

Parameters ​

imageData ​

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

metadata ​

ImageMetadata

config ​

Record<string, unknown>

Returns ​

Promise<LicensePlateDetectionPluginResponse | undefined>