This tool converts your photo into a cartoon-like image
Project description
Cartooner
This tool converts your photo into a cartoon-like image
Samples
install
pip install cartooner
how to use
from cartooner import cartoonize
import cv2
import os
import time
input_file = ... # input image file name
output_file = ... # output image file name
image = cv2.imread(input_file)
output = cartoonize(image)
cv2.imwrite(output_file, output)
Dependences
- numpy
- scipy
- opencv-python
pip install -r requirement.txt
How it works
This cartoonizer uses K-means algorithm to cluster the histogram of image. The value K is auto selected by the method in this paper.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cartooner-0.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cartooner-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c735be4cb8d8bda3863ca0c97d2d1a648b2bbb75dbe136fe011bb8b92597c7 |
|
MD5 | 4e5a71550d5af2591129e534c39b1261 |
|
BLAKE2b-256 | fb05db4deea58f2258c94664f606bb1f5799b2208ce645f21a96678af111f263 |