A Python package to convert your photos into pencil art or pencil sketch.
Project description
This is a simple Python package that converts your beautiful photos to pencil art. The transformed photo just looks like a photo which is drawn using pencil.
For this package to run without any errors the following packages should be installed on your system 1)opencv-python and 2)numpy
All you have to do is just download the package as
pip install img2sketch
You can use this package in your code as
##usage
from Pencil.PencilArt import img2sketch
img2sketch("/path/of/your/original/photo.jpg", "/path/where/your/newphoto/tobe/saved.jpg")
For example: I have pavan.jpg photo under /home/pavan/Desktop/pavan.jpg I want the new transfromed photo at the same folder (Desktop) as new.jpg Here my code looks like
img2sketch("/home/pavan/Desktop/pavan.jpg", "/home/pavan/Desktop/new.jpg")
After the program executes the transformed photo is saved under the path you have provided.
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
Built Distribution
Hashes for img2sketch-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7421f9714803f7e32310d8b569bb5713a2a1ec3fa001ca25774736d213d7c98c |
|
MD5 | d360b220a3d8106be45feafbcc7fc8d7 |
|
BLAKE2b-256 | 82b91e29f11d569957ac832654b2b76303136c9793ecfb32e8d554d8dfc7c9b4 |