GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs/content/plugins/mlkit-object-detection.md at docs/linux · NativeScript/docs

Expand file tree

/

mlkit-object-detection.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
89 lines (64 loc) · 1.61 KB
/

mlkit-object-detection.md

Copy path

File metadata and controls

89 lines (64 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
title Object Detection
editUrl https://github.com/NativeScript/mlkit/tree/main/packages/mlkit-object-detection/README.md

@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:

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

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.