GithubHelp home page GithubHelp logo

web5design / js-objectdetect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtschirs/js-objectdetect

0.0 3.0 0.0 18.52 MB

computer vision in your browser - javascript real-time object detection

License: GNU General Public License v3.0

js-objectdetect's Introduction

js-objectdetect

js-objectdetect is a javascript library for real-time object detection.

This library is based on the work of Paul Viola and Rainer Lienhart and compatible to stump based cascade classifiers used by the OpenCV object detector.

All modern browsers including IE 9+, Safari and Opera Mobile are supported.

Classifiers

js-objectdetect is compatible to stump based classifiers used by OpenCV. Classifiers for face, hand and eye detection are already included. More can be found on the web (classifier repository). However, not all classifiers have the same performance and some are quite sensitive to lighting conditions.

face upper body fist hand eye

Examples

js-objectdetect can be used for object detection, tracking and, in combination with mordern HTML5 features such as WebRTC, for all sorts of augmented reality applications that run in the browser without any plugin.

glasses gesture

A live demo of the glasses example can be found here (currently Chrome, FF Nightly, Opera Next and Opera Mobile-only due to usage of WebRTC).

Usage - jQuery

The provided jQuery plugin provides a simple interface to the object detection library:

<script src="js/objectdetect.js"></script>
<script src="js/objectdetect.frontalface.js"></script>

<script src="js/jquery.js"></script>
<script src="js/jquery.objectdetect.js"></script>

<img id="image" src="image.png">
<script>
	$("#image").objectdetect("all", {classifier: objectdetect.frontalface}, function(coords) {
		...
	});
</script>

More examples can be found in the repository.

Download

License

js-objectdetect is distributed under GPL3. The included classifiers are subject to their own licenses.

Credits

Thanks to Audun Mathias Øygard (auduno) for his inspirational headtrackr library, Brandon Jones (toji) for his valuable javascript performance tipps and Nikos (foo123) for his port of JViolaJones on which the canny pruning algorithm is based on.

js-objectdetect's People

Contributors

mtschirs avatar

Watchers

JT5D avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.