Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erfaniaa/thatcher-effect-dataset-generator
Apply Thatcher illusion on a set of face photos
https://github.com/erfaniaa/thatcher-effect-dataset-generator
celeba celeba-dataset computer-vision dataset image-processing thatcher-effect thatcher-effect-maker thatcher-illusion thatcher-illusion-maker
Last synced: 2 months ago
JSON representation
Apply Thatcher illusion on a set of face photos
- Host: GitHub
- URL: https://github.com/erfaniaa/thatcher-effect-dataset-generator
- Owner: Erfaniaa
- License: gpl-3.0
- Created: 2019-11-24T12:28:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T16:49:16.000Z (7 months ago)
- Last Synced: 2024-10-14T20:41:49.310Z (3 months ago)
- Topics: celeba, celeba-dataset, computer-vision, dataset, image-processing, thatcher-effect, thatcher-effect-maker, thatcher-illusion, thatcher-illusion-maker
- Language: Python
- Homepage:
- Size: 11.5 MB
- Stars: 36
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thatcher Effect Dataset Generator
Using OpenCV to apply [Thatcher effect](https://en.wikipedia.org/wiki/Thatcher_effect) on a set of face images
## Example
### Input:
![input 1](https://user-images.githubusercontent.com/7780269/74758910-3d44b200-528d-11ea-858d-473e9eabfdf1.png)![input 2](https://user-images.githubusercontent.com/7780269/74758935-46ce1a00-528d-11ea-9820-905ac0d627cd.png)
### Output:
![output 1](https://user-images.githubusercontent.com/7780269/81139360-b6919e00-8f7a-11ea-9e07-2acd7acbf30c.jpg)![output 2](https://user-images.githubusercontent.com/7780269/81139362-b85b6180-8f7a-11ea-9ae0-51e842e598a5.jpg)
Turn the output images upside-down to notice changes.
## Run
1. Put some image files inside _input_images_ directory (some samples from [CelebA dataset](https://www.kaggle.com/jessicali9530/celeba-dataset) are already there).
2. You can change _main.py_ constants if you want.
3. Use Python 3 to run the program:```bash
python3 main.py
```It reads _input_files_ directory files and writes to _output_files_ directory.
## See Also
- [Large-scale CelebFaces Attributes (CelebA) Dataset](http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html)
- [Thatcher Effect Illusion](http://thatchereffect.com/)