Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nagadomi/animeface-2009
Face and Landmark Detector for Anime/Manga. This is 2009s version of Imager::AnimeFace, but it works on recent system.
https://github.com/nagadomi/animeface-2009
face-detector
Last synced: 2 months ago
JSON representation
Face and Landmark Detector for Anime/Manga. This is 2009s version of Imager::AnimeFace, but it works on recent system.
- Host: GitHub
- URL: https://github.com/nagadomi/animeface-2009
- Owner: nagadomi
- License: mit
- Created: 2017-02-17T20:38:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T06:58:14.000Z (almost 6 years ago)
- Last Synced: 2024-01-26T09:02:05.874Z (5 months ago)
- Topics: face-detector
- Language: C
- Homepage:
- Size: 8.95 MB
- Stars: 297
- Watchers: 9
- Forks: 40
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-acg - animeface-2009 - Face and Landmark Detector for Anime/Manga. Similar to lbpcascade_animeface but more accurate. [English] (Image Recognition)
README
# AnimeFace 2009
The face detector for anime/manga.
This is similar to [lbpcascade_animeface](https://github.com/nagadomi/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](https://user-images.githubusercontent.com/287255/43184397-6a8dd6ca-9023-11e8-8eaa-31a178680878.png)
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](https://aur.archlinux.org/),
and then run `./build.sh`.## Run sample code (Ruby)
```
cd animeface-ruby
ruby sample.rb
```
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
```Each of the lines in the `` is a JSON string corresponding to a file in ``.
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 --dest --threshold <0.0~1.0, default: 0.2> --margin <0.0~, default: 0.1>
```
3. Delete false positive images using windows explorer or something.
4. Make annotation data from the filename (filename is formatted as `${orignal_file_name_without_extension}_${x}_${y}_${width}_${height}.png`, see [example](./animeface-ruby/face2xml.rb))