/* global __object_detection_plugin */ import type { Frame } from "react-native-vision-camera"; import { Double } from "react-native/Libraries/Types/CodegenTypes"; declare let _WORKLET: true | undefined; export function objectDetectionPlugin( frame: Frame, iouThreshold: Double, confidenceThreshold: Double ): string { "worklet"; if (!_WORKLET) throw new Error("objectDetectionPlugin must be called from a frame processor!"); // @ts-expect-error because this function is dynamically injected by VisionCamera return __object_detection_plugin(frame, { iouThreshold: iouThreshold, confidenceThreshold: confidenceThreshold, }); }