![crates-badge] ![docs-badge] ![license-badge]
This library is a reimplementation of Pixel Intensity Comparison-based Object (PICO) detection algorithms in Rust:
Detector
: Cascade of binary classifiers from [pico];Localizer
: Localization with an ensemble of randomized trees from picojs (see lploc.js
);Shaper
: Alignment with an ensemble of regression trees from dlib (see shape_predictor
).To run CLI example, which takes an image, finds all faces, detects some landmarks and pupils:
sh
cargo run --release --example cli -- --input tests/assets/Lenna_\(test_image\).png --output result.png
Output image result.png
should be like this:
Each algorithm requires to be loaded with correspondent binary model.
| model | algorithm | source | Description |
|---------------------------|-------------|------------------------------------|---------------------------|
| [facefinder] | Detector
| [pico] | Human face classifier |
| [puploc] | Localizer
| [puploc source] | Human eye pupil localizer |
| [shaper5facelandmarks] | Shaper
| [shapepredictor5face_landmarks] | Human 5 face landmarks |
wasm32-unknown-unknown
target) and web example.