DEV Community

Cover image for Create Artistic Sketches from Photos using Python
MITHIN DEV
MITHIN DEV

Posted on

Create Artistic Sketches from Photos using Python

While exploring Computer Vision and Image Processing recently, I stumbled upon something fascinating! πŸ’‘I have already done some basic image processing in C before, but Python adds a whole new layer of excitement to it. With just a few lines of Python code, you can turn any image into a sketch. πŸ–ŒοΈβœ¨

Here's a quick rundown of what I've done:

βœ… Imported essential libraries
βœ… Loaded and displayed the image
βœ… Converted RGB to Gray scale
βœ… Transformed the gray image into an inverted one
βœ… Applied Gaussian blur for that artistic touch
βœ… Inverted the blurred image (yes, twice!)
βœ… Wrapped it all up neatly in one function
βœ… Voila! Extracted a sketch from the image using the function

Curious to learn more? I've detailed my process in this article [https://lnkd.in/dpi4bEk9] where I spill all the beans. πŸ“

But wait, there's more! I'm planning a series on image processing using Python, where I'll dig deeper into every aspect. Stay tuned for more exciting updates on [https://lnkd.in/dmJ5eaZ5] where I'll be publishing these articles. βœ’οΈ
Image description

Top comments (0)