https://github.com/jazlopez/py-sketch-image
Generate sketch version from images. It uses python3 and OpenCV to create sketch version of your image.
https://github.com/jazlopez/py-sketch-image
image-processing opencv python sketch
Last synced: 2 months ago
JSON representation
Generate sketch version from images. It uses python3 and OpenCV to create sketch version of your image.
- Host: GitHub
- URL: https://github.com/jazlopez/py-sketch-image
- Owner: jazlopez
- Created: 2019-08-28T04:06:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T06:27:10.000Z (over 4 years ago)
- Last Synced: 2024-07-30T20:14:31.502Z (almost 2 years ago)
- Topics: image-processing, opencv, python, sketch
- Language: Python
- Homepage: https://jazlopez.github.io/py-sketch-image/
- Size: 224 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# py-sketch-image
Generate sketch version from images. It uses python3 and OpenCV to create sketch version of your image.
It works by creating a gray version of your image and applying a sketch effect to the new file. Sketch version of your image will be stored at the same directory of original image.
* Original image is not affected at all.
Example:
### ORIGINAL

#### SKETCH

#### 1. INSTALLATION
```
pip3 install -r requirements.txt
```
#### 2. USAGE
Run sketch.py providing the path of the image you want to sketch.
```
python3 sketch.py --source /image/path/to/original.png
# above command will create a new file in directory where sketch.png exists whose file name starts with default prefix "sketch_" plus the original file name:
# /image/path/to/original.png -> /image/path/to/sketch_original.png
# You can change the prefix to another string with the optional argument --prefix
python3 sketch.py --source /image/path/to/original.png --prefix new_sketch_
# output file: /image/path/to/new_sketch_original.png
# For advanced users you can set optional arguments to control SIGMA_S SIGMA_R SHADE_FACTOR:
python3 sketch.py --source original.png --sigma_s 9 --sigma_r 0.09 --shade 0.07
```
#### 3. TODO:
- Create image sketch version bulk mode
#### 4. VERSION
1.0.0 Initial
#### 5. CONTACT
If you have any idea on how to improve the software drop me a message at the link below.
Jaziel Lopez, Software Engineer
> *DISCLAIMER:* Be aware the softtware is provided as is without any support nor liability in any country and/or jurisdiction. Do not contact the author with complains and/or legal issues you may think the author is responsible of. In all time software author is not responsible for others actions.