Skip to content

@camera.ui/sdk / plugin / LicensePlateDetectionInterface

Interface: LicensePlateDetectionInterface

Defined in: plugin/interfaces.ts:289

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:297

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:299

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:291

Run detection on a single image captured by the UI test panel and return the result for preview rendering.

Parameters

imageData

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

metadata

ImageMetadata

config

Record<string, unknown>

Returns

Promise<LicensePlateDetectionPluginResponse | undefined>