A plugin that is used with @nativescript/mlkit-core to enable Object Detection and provide the ObjectResult type for the object detection event data.
Install @nativescript/mlkit-object-detection
by running the following command:
npm install @nativescript/mlkit-object-detection
For an example, read Use @nativescript/mlkit-core and Object Detection.
The type of object detection event data.
interface ObjectResult {
trackingId?: number
bounds: Bounds
labels: ObjectLabeling[]
}
interface ObjectLabeling {
text?: string
confidence?: number
index?: number
}
interface Bounds {
origin: Origin
size: Size
}
export interface Origin {
x: number
y: number
}
interface Size {
width: number
height: number
}
Apache License Version 2.0