A visualisation of Viola-Jone's haar cascade algorithm.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Ruben van de Ven 1319e644b1 README comment 1 year ago
.vscode Load haar features and draw matched ones to canvas 1 year ago
src make size of minimum face variable 1 year ago
.gitignore Being able to draw webcam to canvas, yay 1 year ago
Cargo.lock xml file is now a argument for the lib 1 year ago
Cargo.toml Nannou is optional 1 year ago
README.md README comment 1 year ago

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

Notes

It could be that the code in commit f9b066a166fb0d2f042c6f745fa0ffbcce100666 is actually faster than the current master. While this is certainly not the case in a debug build (HEAD is way faster!), a release build seems to bring it up to higher speeds... confusing :-)