https://github.com/coolreader18/imagemapping
Map an image into a perspective transform under another one.
https://github.com/coolreader18/imagemapping
Last synced: 10 months ago
JSON representation
Map an image into a perspective transform under another one.
- Host: GitHub
- URL: https://github.com/coolreader18/imagemapping
- Owner: coolreader18
- License: mit
- Created: 2019-08-07T04:36:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-08T01:16:46.000Z (over 4 years ago)
- Last Synced: 2025-01-25T10:28:23.932Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 310 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagemapping
> Map an image into a perspective transform under another one.
Useful for memes.
## Usage
```sh
python3 imagemapping.py input.png output.png \
--template tmpl.png \
--coords '[(0, 0), (256, 0), (256, 256), (0, 256)]'
```
e.g., with the template provided in the tree:
```sh
python3 imagemapping.py input.png output.png -t kid.png -f kidcoords.png
```
## License
This project is licensed under the MIT license. Please see the
[LICENSE](LICENSE) file for more details.