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.
Metadata
Release files for cartooner 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cartooner-0.0.2.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cartooner-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / cartooner-0.0.2.tar.gz
| Download URL | cartooner-0.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
198f89e61c72f066ba240756d0fb6f04dccbbcedc42d175cddd1d052c0ff465b
|
|
BLAKE2b-256 checksum How to use checksums |
abcaed83226ad5f2dc933d7cf352d4893933eae79699b21e3a9db854223be956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / cartooner-0.0.2-py3-none-any.whl
| Download URL | cartooner-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56c735be4cb8d8bda3863ca0c97d2d1a648b2bbb75dbe136fe011bb8b92597c7
|
|
BLAKE2b-256 checksum How to use checksums |
fb05db4deea58f2258c94664f606bb1f5799b2208ce645f21a96678af111f263
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|