Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloud-annotations/object-tracking-js
Track an object as it moves in a video with no training
https://github.com/cloud-annotations/object-tracking-js
mosse tensorflow tracking
Last synced: about 1 month ago
JSON representation
Track an object as it moves in a video with no training
- Host: GitHub
- URL: https://github.com/cloud-annotations/object-tracking-js
- Owner: cloud-annotations
- License: mit
- Created: 2019-09-25T21:59:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T21:57:16.000Z (almost 3 years ago)
- Last Synced: 2024-10-27T10:04:40.387Z (about 2 months ago)
- Topics: mosse, tensorflow, tracking
- Language: JavaScript
- Homepage:
- Size: 12.5 MB
- Stars: 187
- Watchers: 6
- Forks: 41
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - object-tracking-js - annotations | 177 | (JavaScript)
README
# Object Tracking JavaScript SDK
[![NPM Version](https://img.shields.io/npm/v/@cloud-annotations/object-tracking.svg)](https://npmjs.org/package/@cloud-annotations/object-tracking)
[![NPM Downloads](https://img.shields.io/npm/dm/@cloud-annotations/object-tracking.svg)](https://npmjs.org/package/@cloud-annotations/object-tracking)![Demo](object-track.gif)
[![Edit cranky-keller-cp4ms](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/cranky-keller-cp4ms?fontsize=14&hidenavigation=1&theme=dark)
### Simple object tracking with TensorFlow.js.
Just draw a box and track it as it moves across the video, no training required.
## Installation
```bash
npm install @cloud-annotations/object-tracking
```## Usage
```js
import objectTracker from '@cloud-annotations/object-tracking'const frame1 = document.getElementById('img1')
const frame2 = document.getElementById('img2')
const frame3 = document.getElementById('img3')
// ...
const frameN = document.getElementById('imgN')const tracker = objectTracker.init(frame1, [x, y, width, height])
const box2 = await tracker.next(frame2)
const box3 = await tracker.next(frame3)
// ...
const boxN = await tracker.next(frameN)// box =>
[x, y, width, height]
```## Usage via Script Tag
```html```