A visualisation of Viola-Jone's haar cascade algorithm.
Go to file
Ruben van de Ven a6ac50c3b3 Nannou is optional 2020-10-02 14:39:10 +02:00
.vscode Load haar features and draw matched ones to canvas 2020-08-19 21:47:29 +02:00
src make size of minimum face variable 2020-10-02 13:48:01 +02:00
.gitignore Being able to draw webcam to canvas, yay 2020-06-05 16:30:39 +02:00
Cargo.lock xml file is now a argument for the lib 2020-09-23 16:01:31 +02:00
Cargo.toml Nannou is optional 2020-10-02 14:39:10 +02:00
README.md Comment to use release build so that it becomes _way_ faster 2020-10-02 14:01:25 +02:00

README.md

Viola-Jones' Haarcascade visualisation

This is an unusual visualisation of haarcascades. Often, only haarcascade features are drawn. This visualisation however, adds up all matching features in an image. Resulting in a sort of lense which shows the contrasts in the image that the algorithm picks up on most.

  • The visual_haarcascades binary (main.rs) uses V4L to capture webcam input and renders to a canvas.
  • test.rs binary is an ugly program that looks hard-coded for haarcascade_frontalface_alt2.xml and test.png. It renders the output to test-output.png.
  • The library is made for use with eg. Python through cffi. See eg. this repo

build

Most importantly

cargo build --lib --release