Plugins
Object Detection
@nativescript/mlkit-object-detection β
A plugin that is used with @nativescript/mlkit-core to enable Object Detection and provide the ObjectResult type for the object detection event data.
Contents β
- Installation
- Use @nativescript/mlkit-object-detection
- ObjectResult
- API
- [ObjectResult]
Installation β
Install @nativescript/mlkit-object-detection
by running the following command:
cli
npm install @nativescript/mlkit-object-detection
Use @nativescript/mlkit-object-detection β
For an example, read Use @nativescript/mlkit-core and Object Detection.
API β
ObjectResult β
The type of object detection event data.
ts
interfaceObjectResult {
trackingId?:number
bounds:Bounds
labels:ObjectLabeling[]
}
ObjectLabeling β
ts
interfaceObjectLabeling {
text?:string
confidence?:number
index?:number
}
Bounds β
ts
interfaceBounds {
origin:Origin
size:Size
}
Origin β
ts
exportinterfaceOrigin {
x:number
y:number
}
Size β
ts
interfaceSize {
width:number
height:number
}
License β
Apache License Version 2.0
- Previous
- Image Labeling
- Next
- Pose Detection