@camera.ui/sdk / plugin / MotionDetectionInterface
Interface: MotionDetectionInterface
Defined in: plugin/interfaces.ts:201
Interface for plugins that provide motion detection. Implement testMotionDetection() to handle detection test requests from the UI.
Methods
detectMotion()?
optionaldetectMotion(frames,config?):Promise<MotionDetectionPluginResponse|undefined>
Defined in: plugin/interfaces.ts:205
Run motion detection on pre-processed video frames. Used by automations/benchmarks.
Parameters
frames
config?
Record<string, unknown>
Returns
Promise<MotionDetectionPluginResponse | undefined>
motionDetectionSettings()?
optionalmotionDetectionSettings():Promise<JsonSchema[] |undefined>
Defined in: plugin/interfaces.ts:207
Optional settings schema for motion detection configuration UI
Returns
Promise<JsonSchema[] | undefined>
testMotionDetection()
testMotionDetection(
videoData,config):Promise<MotionDetectionPluginResponse|undefined>
Defined in: plugin/interfaces.ts:203
Run motion detection on video data. Used by the UI for testing/previewing.
Parameters
videoData
Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>
config
Record<string, unknown>
Returns
Promise<MotionDetectionPluginResponse | undefined>