Skip to content

@camera.ui/sdk / plugin / ClassifierDetectionInterface

Interface: ClassifierDetectionInterface

Defined in: plugin/interfaces.ts:272

Interface for plugins that provide classifier detection. Implement testClassifierDetection() to handle detection test requests from the UI.

Methods

classifierDetectionSettings()?

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

Defined in: plugin/interfaces.ts:282

Optional settings schema for classifier detection configuration UI

Returns

Promise<JsonSchema[] | undefined>


detectClassifications()?

optional detectClassifications(frame, config?): Promise<ClassifierDetectionPluginResponse | undefined>

Defined in: plugin/interfaces.ts:280

Run classifier detection on a pre-processed frame. Used by automations/benchmarks.

Parameters

frame

VideoFrameData

config?

Record<string, unknown>

Returns

Promise<ClassifierDetectionPluginResponse | undefined>


testClassifierDetection()

testClassifierDetection(imageData, metadata, config): Promise<ClassifierDetectionPluginResponse | undefined>

Defined in: plugin/interfaces.ts:274

Run classifier detection on image data. Used by the UI for testing/previewing.

Parameters

imageData

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

metadata

ImageMetadata

config

Record<string, unknown>

Returns

Promise<ClassifierDetectionPluginResponse | undefined>