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)