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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file img2sketch-0.0.7.tar.gz.
File metadata
- Download URL: img2sketch-0.0.7.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac8b32bfe360433b373708d7062702a6dafb0b24151820d8cde18f06a54d44f9
|
|
| MD5 |
5cd7ef39bc3caa44da33dc73dde67e72
|
|
| BLAKE2b-256 |
abefe5a9818db5605f9f27b68cd41ea2d503cab7374651b333843b4423d1de1e
|
File details
Details for the file img2sketch-0.0.7-py3-none-any.whl.
File metadata
- Download URL: img2sketch-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22aae8cea9d2914ba6caa7cb85af201ea8f6e24915beeaaa29d37370ff6e130e
|
|
| MD5 |
34fc6d7dae728255a43ed925b48cf9bc
|
|
| BLAKE2b-256 |
b95e31e26c2c9d93f3d64799b8cb0b5451374a608652b1d68a1e3e5612ccf7b9
|