Coder Social home page Coder Social logo

nilportugues / animeface-2009 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nagadomi/animeface-2009

0.0 2.0 0.0 9.16 MB

Face and Landmark Detector for Anime/Manga. This is 2009s version of Imager::AnimeFace, but it works on recent system.

License: MIT License

Ruby 0.03% C 99.09% C++ 0.01% Cuda 0.05% Shell 0.56% Makefile 0.26% Batchfile 0.01% Pawn 0.01% M4 0.01%

animeface-2009's Introduction

AnimeFace 2009

The face detector for anime/manga. This is similar to lbpcascade_animeface, but it's more accurate and supports facial landmark detection. I developed this library in 2008~2009.

Original website: http://anime.udp.jp/ (in Japanese)

demo

Figure (c) namco

Installation

Requirements

  • Ruby
  • ImageMagick
  • gcc, make

Ubuntu

sudo apt-get install libmagickwand-dev
sudo gem install rmagick
./build.sh

Arch Linux

Install imagemagick-full and ruby-rmagick from AUR, and then run ./build.sh.

Run sample code (Ruby)

cd animeface-ruby
ruby sample.rb <input image>

View at ${input_image}_out.png

Extract landmarks for a folder of images (Ruby)

First install Ruby package progress_bar. Then run:

cd animeface-ruby
ruby proc_folder.rb <input image folder> <output landmark file>

Each of the lines in the <output landmark file> is a JSON string corresponding to a file in <input image folder>. View the output file for more details.

Alternatively, replace proc_folder.rb with proc_folder_parallel.rb leads to image processing in parallel. This requires Ruby package parallel and ruby-progressbar

Create new dataset with animeface-ruby

  1. Prepare images first.
  2. Extract face images with animeface-ruby/face_collector.rb
face_collector.rb --src <image dir> --dest <output dir> --threshold <0.0~1.0, default: 0.2> --margin <0.0~, default: 0.1>
  1. Delete false positive images using windows explorer or something.
  2. Make annotation data from the filename (filename is formatted as ${orignal_file_name_without_extension}_${x}_${y}_${width}_${height}.png, see example)

animeface-2009's People

Contributors

aixile avatar alantian avatar nagadomi avatar

Watchers

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