@nativescript/mlkit-object-detection
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@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

Install @nativescript/mlkit-object-detection by running the following command:

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.

interface ObjectResult {
    trackingId?: number
    bounds: Bounds
    labels: ObjectLabeling[]
}

ObjectLabeling

interface ObjectLabeling {
    text?: string
    confidence?: number
    index?: number
}

Bounds

interface Bounds {
    origin: Origin;
    size: Size;
}

Origin

export interface Origin {
    x: number;
    y: number;
}

Size

interface Size {
    width: number;
    height: number;
}

License

Apache License Version 2.0

/@nativescript/mlkit-object-detection/

    Package Sidebar

    Install

    npm i @nativescript/mlkit-object-detection

    Weekly Downloads

    23

    Version

    3.0.0

    License

    Apache-2.0

    Unpacked Size

    14.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • nativescript-user
    • tns-bot
    • lini
    • tachev
    • rosen-vladimirov
    • stoskov
    • rosen_vladimirov
    • walkerrunpdx
    • bradmartin
    • davecoffin
    • rigor789
    • nativescript-bot
    • multishiv19
    • eddyverbruggen
    • edusperoni
    • facetious
    • tdermendjiev
    • sis0k0
    • mukaschultze