Converts images to pencil sketches
Project description
Converts images to pencil sketches
$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",
)
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
cv2pencil-0.10.tar.gz
(3.5 kB
view hashes)