Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hansalemaos/cv2pencil
- Owner: hansalemaos
- License: mit
- Created: 2022-12-29T21:32:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T21:32:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T11:08:25.239Z (about 1 month ago)
- Topics: filter, numpy, opencv, pencil, python
- Language: Python
- Homepage: https://pypi.org/project/cv2pencil/
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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",
)```