Skip to content

mlison/object-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6851894 · Nov 14, 2016

History

4 Commits
Nov 14, 2016
Nov 14, 2016
Nov 14, 2016
Nov 14, 2016
Nov 14, 2016
Nov 14, 2016

Repository files navigation

Object tracking with Node.js and OpenCV

Proof of concept implementation of tracking object from web camera using node.js and OpenCV.

Detection uses HAAR definitions to target objects, just plug in your own and you're set to go.

Two classifiers are included in the repository, one for face detection (works fine) and a hot dog classifier (poorly trained). OpenCV also comes with a few predefined classifiers, and there's plenty more to be found on the internet.

prerequisities

You need to have OpenCV binaries install before you install node bindings. I also suggest a recent enough version of node (this was tested on 7.10).

get started

npm i
node .

You should see notifications about any detections in your console. Each object will be circled, and the resulting image will be stored in screencaps/ folder

classifier training

You can train you own classifiers using tools provided by OpenCV. mrnugget wrote down a very practical guide on haar classifier training.

For more on the topic, check out Torsten Ball's blogpost on the same topic - there's plenty more material in the references section at the end.

About

Object tracking with Node.js and OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published