cartooner-0.0.2
توضیحات
This tool converts your photo into a cartoon-like image
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cartooner-0.0.2 |
| نام | cartooner |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tianming LU |
| ایمیل نویسنده | tianming.lu@foxmail.com |
| آدرس صفحه اصلی | https://github.com/lutianming/cartoonizer |
| آدرس اینترنتی | https://pypi.org/project/cartooner/ |
| مجوز | - |
## Cartooner
This tool converts your photo into a cartoon-like image
## Samples


## install
```
pip install cartooner
```
## how to use
```python
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
```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](http://papers.nips.cc/paper/2526-learning-the-k-in-k-means.pdf).
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | scipy |
| - | opencv-python |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cartooner-0.0.2:
pip install cartooner-0.0.2.whl
نصب پکیج tar.gz cartooner-0.0.2:
pip install cartooner-0.0.2.tar.gz