Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cloud-annotations/object-tracking-js

Repository files navigation

Object Tracking JavaScript SDK

NPM Version NPM Downloads

Demo

Edit cranky-keller-cp4ms

Simple object tracking with TensorFlow.js.

Just draw a box and track it as it moves across the video, no training required.

Installation

npm install @cloud-annotations/object-tracking

Usage

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

<script src="https://cdn.jsdelivr.net/npm/@cloud-annotations/object-tracking"></script>

About

Track an object as it moves in a video with no training

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /