https://github.com/coderham/paintingbynumbersify
Python code for converting any image to a Painting By Numbers version of itself. Now supports GPU acceleration as well.
https://github.com/coderham/paintingbynumbersify
computer-vision gpu-acceleration python
Last synced: 10 months ago
JSON representation
Python code for converting any image to a Painting By Numbers version of itself. Now supports GPU acceleration as well.
- Host: GitHub
- URL: https://github.com/coderham/paintingbynumbersify
- Owner: CoderHam
- Created: 2018-02-24T22:43:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T20:55:04.000Z (over 4 years ago)
- Last Synced: 2024-12-19T05:17:33.541Z (over 1 year ago)
- Topics: computer-vision, gpu-acceleration, python
- Language: Python
- Homepage:
- Size: 1.75 MB
- Stars: 33
- Watchers: 5
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PaintingByNumbersIFY
Python code for converting any image to a Painting By Numbers version of itself.
## Usage
```
python pbnify.py --help
usage: pbnify.py [-h] -i INPUT_IMAGE -o OUTPUT_IMAGE [-k NUM_OF_CLUSTERS]
[--outline]
optional arguments:
-h, --help show this help message and exit
-i INPUT_IMAGE, --input-image INPUT_IMAGE
Path of input image.
-o OUTPUT_IMAGE, --output-image OUTPUT_IMAGE
Path of output image.
-k NUM_OF_CLUSTERS, --num-of-clusters NUM_OF_CLUSTERS
Number of kmeans clusters for dominant color
calculation. Defaults to 15.
--outline Save outline image containing edges.
```
```
python pbnify.py -i images/picasso.jpg -o images/picasso_PBN.jpg --outline -k 15
```
### Original Image/s:

### Image/s converted to their Painting By Number form:

### Outline of Image/s converted to their Painting By Number form: