Skip to content

sketching yourself and saving it as a image with opencv's canny edge detection library

Notifications You must be signed in to change notification settings

yshastri66/sketch_yourself

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sketch Yourself

Clone this repository by downloading zip or by running following command in Git or terminal :

https://github.com/yshastri66/sketch_yourself.git

Create a new python environment and install the requirments using requirment.txt file by executing following commands :

conda create -n env_name
conda activate env_name
pip install -r requirment.txt

You can draw yourself like an artist by just running one command in your terminal or Anaconda prompt :

python sketch_yourself.py

Here I used OpenCV library for getting sketch. I used Gaussian Blur for cleaning up noises. Canny library to get edges or lines in the image.

You can adjust the contrast by using 'Trackbar' which will be at the bottom left corner of the window as shown in below image :

toolbar image

Press 'S' to save the image when you like the image.The resulting image will be of '.jpg' format and saved in the name of sketch.jpg. An example is shown below :

example image

About

sketching yourself and saving it as a image with opencv's canny edge detection library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages