cv2pencil-0.10
توضیحات
Converts images to pencil sketches
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cv2pencil-0.10 |
| نام | cv2pencil |
| نسخه کتابخانه | 0.10 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Johannes Fischer |
| ایمیل نویسنده | <aulasparticularesdealemaosp@gmail.com> |
| آدرس صفحه اصلی | https://github.com/hansalemaos/cv2pencil |
| آدرس اینترنتی | https://pypi.org/project/cv2pencil/ |
| مجوز | MIT |
<h2>Converts images to pencil sketches</h2>
```python
$pip install cv2pencil
from cv2pencil import get_pencil_drawing
# Allowed image formats: url/path/buffer/base64/PIL/np
# save_diff / save_norm are optional
a, b = get_pencil_drawing(
r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png",
dilate=(9, 9),
blur=7,
save_diff="f:\\pencildrawing\\diff.png",
save_norm="f:\\pencildrawing\\norm.png",
)
```
<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/merg1.png"/>
<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png"/>
<img src="https://raw.githubusercontent.com/hansalemaos/screenshots/main/norm.png"/>
نیازمندی
| مقدار | نام |
|---|---|
| - | a-cv-imwrite-imread-plus |
| - | numpy |
| - | opencv-python |
نحوه نصب
نصب پکیج whl cv2pencil-0.10:
pip install cv2pencil-0.10.whl
نصب پکیج tar.gz cv2pencil-0.10:
pip install cv2pencil-0.10.tar.gz