cartoon-face-detection

所属分类:模式识别(视觉/语音等)
开发工具:Python
文件大小:51174KB
下载次数:0
上传日期:2020-03-07 23:30:37
上 传 者sh-1993
说明:  维奥拉·琼斯的人脸识别用于卡通图像。
(Viola Jones face recognition used on images from cartoons.)

文件列表:
LICENSE (1071, 2020-03-08)
data (0, 2020-03-08)
data\raw (0, 2020-03-08)
data\raw\frozen (0, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10018.jpg (188981, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1008.jpg (201481, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10252.jpg (224950, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10346.jpg (270557, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10415.jpg (377298, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10492.jpg (261015, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10658.jpg (220818, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-10792.jpg (287791, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1121.jpg (154245, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1429.jpg (281538, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1472.jpg (348874, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1523.jpg (272090, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1694.jpg (163435, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1889.jpg (218759, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-1948.jpg (220966, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2012.jpg (239668, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2034.jpg (218384, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2040.jpg (238783, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2094.jpg (242184, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2103.jpg (199410, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2179.jpg (234280, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2256.jpg (184979, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2305.jpg (185122, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2342.jpg (201468, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2352.jpg (175483, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2616.jpg (229268, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2660.jpg (231008, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-2841.jpg (268925, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-3007.jpg (218316, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-3129.jpg (188005, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-3212.jpg (296900, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-3309.jpg (190516, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-340.jpg (227346, 2020-03-08)
data\raw\frozen\frozen-disneyscreencaps.com-3766.jpg (135066, 2020-03-08)
... ...

# Cartoon face-off: Detecting human cartoon characters using Viola-Jones We observe how the Viola-Jones face detection algorithm performs on "non-human human" faces, i.e. cartoon characters. Our data consists of screenshots from three cartoons with very different drawing styles: Frozen, The Simpsons and South Park. We evaluate our detections using Intersection over Union (IoU) and also by counting misdetections and correct detections compared to number of all faces in the dataset. In the end we also try to enhance the detector by combining the Viola-Jones face and eye classifier. ![Example](https://github.com/ggapac/cartoon-face-detection/blob/master/example.png) #### Requirements - Anaconda Python Distribution, Python 3.7.4, installed from: [https://www.anaconda.com/distribution/](https://github.com/ggapac/cartoon-face-detection/blob/master/https://www.anaconda.com/distribution/). - R version 3.6.1, installed from: [https://www.r-project.org/](https://github.com/ggapac/cartoon-face-detection/blob/master/https://www.r-project.org/). #### Environment setup - Setup the environment using environment.yml file you find in the directory: `conda env create -f environment.yml`. - Activate the environment: `conda activate cartoon-face-detection`. #### Folder structure . ├── data │ ├── raw # screenshots in cartoon subfolders │ └── test # preprocessed images in cartoon subfolders, annotation json files ├── output # detection output in cartoon subfolders, results json file, plots ├── src # Python and R scripts ├── environment.yml # conda environment file ├── example.png └── README.md #### Run experiments Run `script.py` to obtain detections. The script will take care of preprocessing, detection and will also evaluate the detections. Its output is a json file `results.json` containing Intersection over Union (IoU) values for each of the input images. Before running the script, user can change the following parameters: - `cartoons` **list** List of cartoons we want to use in our experiment. - `max_width` **integer** Maximum width for the input images in px or `None` if you don't want to resize the images. - `rgb2gray` **boolean** True if you want to convert the input images to grayscale. - `use_combined_detection` **boolean** True if you want to use our combined VJ detector. - `save_faces` **boolean** True if you want to draw the detections on the images and save them. #### Analyze results Result analysis is done by three R scripts: - `IoU_analysis.R`: reads `results.json`, bootstraps the IoU values for each cartoon, plots 95% bootstrap percentile confidence intervals, saves the plot. - `count_detections_analysis.R`: reads `{cartoon}_table.csv` files, which we made manually by counting detections from our output images. Plots number of misdetections and number of correct detections compared to number of all faces in the dataset per cartoon, saves the plot. - `vj_combo_analysis.R`: reads `frozen_table.csv` and `frozen_table_2.csv` (file, made manually by counting detections if we used the combined VJ detector). Plots a barplot for detector comparison, saves plot. To run the scripts set the value of variable `path` (first line in all scripts) to path to your project root directory. Project directory structure is assumed to stay the same.

近期下载者

相关文件


收藏者