Git Product home page Git Product logo

pico-detect's Introduction

crates-badge docs-badge license-badge

pico-detect

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).

Example

To run CLI example, which takes an image, finds all faces, detects some landmarks and pupils:

NOTE: Git LFS is needed to resolve binary files with git clone.

If you don't want to use Git LFS you can download models (and test image) direct from this repo (see model column in the table below) and put them under models/ directory.

cargo run --release --example detect-faces -- --models-dir models -i "assets/test.png" --score 35.0 -o result.png

Output image result.png should be like this:

visualization example

Models

Each algorithm requires to be loaded with correspondent binary model.

model algorithm source Description
face.detector.bin Detector pico Human face classifier
pupil.localizer.bin Localizer puploc Human eye pupil localizer
face-5.shaper.bin Shaper shape_predictor_5_face_landmarks Human 5 face landmarks

References

  1. N. Markus, M. Frljak, I. S. Pandzic, J. Ahlberg and R. Forchheimer, "Object Detection with Pixel Intensity Comparisons Organized in Decision Trees"

  2. Eye pupil localization with an ensemble of randomized trees

  3. One Millisecond Face Alignment with an Ensemble of Regression Trees

pico-detect's People

Contributors

rostyq avatar 19h avatar merzlikina avatar

Stargazers

 avatar Tom avatar Ronnie Curtis avatar flyingtimeice avatar  avatar Stefan Boca avatar Christian M avatar Ed Lepedus avatar OutofMemory avatar Diego Caravana avatar Jeff Carpenter avatar Christoffer Lantz avatar Jia Ye avatar dzNET avatar Jurriaan Barkey Wolf avatar  avatar

Watchers

 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.