Create Artistic Sketches from Photos using Python
MITHIN DEV
Posted on August 26, 2023
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. āļø
Posted on August 26, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.