Skip to content

pavansai018/img2sketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##img2sketch

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 opencv-python 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 img2sketch.img2sketch 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. Best results in Jupyter Notebook

About

converts your photo into pencil art

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages