Giter VIP home page Giter VIP logo

haarcascadevisualizer's Introduction

This fork is just a Processing 2 adaptation of Adam Harvey's code. Almost the only change is the xml parser. I've replaced the problematic xml calls for new ones. Also I'm using controlP5 as as a GUI instead of interfascia. So you need to add controlP5 as a library.

You might need to increase Processing heap space to render all the stages of the algorithm. With 1.2 GB (WTF! ) runs for me. 

Thanks to Adam for his great and inspirational work.

------------------ Adam original README.txt: --------

This is a test for CV Dazzle's future github push.

Here's a visualizer I made that allows you to render the haarfeatures from the cascade files.

Notes:

1. The XML library changed in Processing 2.0 and is causing problems with getChild(). I added the old XML library from 1.5 to my libraries location for the sketch to run. This will need to be fixed>

2. You can change the cascade file in the top of the sketch

	String cascadeFile = "haarcascade_frontalface_default.xml";

3. Clicking "Render first" will render only the first stage, a quick test.

4. Clicking "Render all" will render all stages. This can take while and is a good workout for your CPU. The files are saved into a folder within the sketch's directory, as .tif images.



* There is a more complete version of this that is animated, but it was made in Eclipse. It's part of the CV Dazzle code package and will be released later this year.

Thanks,
Adam Harvey
ahprojects.com

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.