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

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay