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 details)
Built Distribution
File details
Details for the file cv2pencil-0.10.tar.gz
.
File metadata
- Download URL: cv2pencil-0.10.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9ffd36aed7967fe571a5618ee483995afb5b4086aa646f27806b4a7c3e0e90 |
|
MD5 | a8bcd883a2714fec1164ce2f9b9e5c7f |
|
BLAKE2b-256 | e7a08f1b16aa6e493ad35027093419cbda1e48f5db7dc1be3d57584524a327ed |
File details
Details for the file cv2pencil-0.10-py3-none-any.whl
.
File metadata
- Download URL: cv2pencil-0.10-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc34378b68da29788e7211287f5c8ea8c16fe64be5eef073afca9420960e2281 |
|
MD5 | 482e45ffd398f16c4491252220b75f29 |
|
BLAKE2b-256 | 2bf0f5b13c7c10ee303072a6145f59b6497821e4a5bff3e291af86d672a1165d |