Giter Site home page Giter Site logo

jviolajones's Introduction

JViolaJones

http://code.google.com/p/jviolajones/

Description

This package is a Java implementation of the Viola-Jones algorithm, able to load OpenCV XML files.

It can be used to detect either faces or any objects you have learned a cascade classifier from.

However, this project does not implement the learning part of the Viola-Jones algorithm (you still have to learn examples with OpenCV tools).

Update

I just added the Canny Prunning algorithm, as in OpenCV, to identify regions unlikely to contain faces and speed up detection.

As I've seen some of you have downloaded the jar, I'd like to know if you found it useful (and if it did work !). Why not raise an issue telling what you think about it ?

CLI app

Compile the code:

mvn assembly:assembly

Run an example, the first parameter is the image and the second is the haar xml file.

java -jar target/jviolajones-1.0.2-jar-with-dependencies.jar src/test/resources/lena.jpg src/main/resources/haarcascade_frontalface_alt2.xml

Use

If you want to integrate this package in your code, this should work :

import jviolajones.Detector;

String fileName="yourfile.jpg";
Detector detector=new Detector("haarcascade_frontalface_default.xml");
List<Rectangle> res=detector.getFaces(fileName, 2, 1.25f, 0.1f,3,true);
If you don't detect enough faces (or too much), please adjust the Parameters.

jviolajones's People

Contributors

tc avatar

Stargazers

Raphael Javaux avatar

Watchers

James Cloos avatar Raphael Javaux 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.