Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hansalemaos/cv2pencil

Converts images to pencil sketches
https://github.com/hansalemaos/cv2pencil

filter numpy opencv pencil python

Last synced: 8 days ago
JSON representation

Converts images to pencil sketches

Awesome Lists containing this project

README

        

Converts images to pencil sketches

```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",
)

```