Giter VIP home page Giter VIP logo

daface's Introduction

DAFace --- Face Detection and Alignment

Description

DAFace is an open source c++ project to deal with face image pre-process. It contains five parts:

  • Detect(det)---use SeetaFace to detect face region & 5 facial points
  • Clean(clean)---clean the invalid facial points data
  • Draw(draw)---draw facial pionts
  • Crop(crop)---crop facial region & resize to unified size
  • Normalize(norm)---align face & resize to unified size

Required

  • SeetaFace
  • OpenCV Library
  • Boost C++ Libraries (do not need to compile)

Compile

mkdir build && cd build
cmake ..
make

Usage

-h [ --help ]          display help message

  Detect      detect face region & 5 facial points
  (det)       ./proc --mode=det --src_dir=sdir [--dst_dir=ddir]
  Clean       clean the invalid facial points data
  (clean)     ./proc --mode=clean --info_file=textfile [--dst_dir=ddir]
  Draw        draw facial pionts
  (draw)      ./proc --mode=draw --info_file=textfile [--dst_dir=ddir]
  Crop        crop facial region & resize to unified size
  (crop)      ./proc --mode=crop --info_file=textfile [--dst_dir=ddir] [--new_size=256]
  Normalize   align face & resize to unified size
  (norm)      ./proc --mode=norm --info_file=textfile [--dst_dir=ddir] [--new_size=256]

Args
--mode arg             [required] work mode
                       currently supported: det | clean | draw | crop | norm
--src_dir arg          [required] source directory
                       directory to store the source images
                       better to use absolute path
--dst_dir arg          [optional] destination directory
                       directory to store the processed images
                       default: current folder
--info_file arg        [required] information file
                       textfile to store the facial points information
--new_size arg         [optional] unified size, effective range [64, 1280]
                       default: 256
--parse_type arg       [optional] parse type: cmdline | config
                       parse parameters from command line or config file
                       default: cmdline
--config_file arg      config file
                       required if parse parameters from config file

Example

example

Contact Info

If you have any problem on this project, please contact me by sending email to [email protected].

daface's People

Contributors

binlearning avatar

Watchers

James Cloos avatar GreedyIsGood 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.