Codes for collecting and processing character images from the game Granblue Fantasy.
- 2020/12/01 - opened
The codes will collect and process images of characters in Granblue Fantasy from the wiki.
The process.py
can be used to other images (but face detection only works with anime faces).
-
Full body images
-
Deformed images
-
EX pose images
-
Erase EXIF
-
Convert to JPEG with white background
-
Detect and crop faces from images using @nagadomi/lbpcascade_animeface
-
Clone repository and setup.
git clone https://github.com/STomoya/GFDataset.git cd GFDataset ./setup.sh
-
Build Docker image
docker-compose build
-
Scrape images from the wiki
Takes about an hour because it waits at least 1sec between each GET. Run with
--help
option to see options.
Default will save the images todata
directory and erase the temporal files that are created during the process.docker-compose run --rm python python scrape.py
-
Process collected images
Run with
--help
option to see options. Default will use the images indata
directory.docker-compose run --rm python python process.py