0.0.8 • Published 5 years ago

@cloud-annotations/object-detection v0.0.8

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

Object Detection JavaScript SDK

The Cloud Annotations Object Detection SDK makes it easy to use your custom trained object detection models in the browser or on the backend with TensorFlow.js. Simply point the object detector to your model_web folder and pass the loaded model a <canvas>, <img> or <video> reference.

Installation

npm install @cloud-annotations/object-detection

Usage

import objectDetector from '@cloud-annotations/object-detection'

const img = document.getElementById('img')

const model = await objectDetector.load('/model_web')
const predictions = await model.detect(img)

// predictions =>
[{
  bbox: [x, y, width, height],
  class: 'dog',
  score: 0.92
},
{
  bbox: [x, y, width, height],
  class: 'cat',
  score: 0.72
}]

Example usage: Real-Time Object Detection With React.

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago