Hi !
Super quick post today with a cool scenario to support my TikTok videos in Spanish (I know ๐):
How to convert to grayscale an image and show a single color using python and opencv
Here is the output with an original photo from my office and a new image with this effect:
_ Disclaimer: I got this example in my notes from long time ago. I thik I got this code from a blog post or a public repository, however, I canโt find the original source. If you know it, please let me know so I can mention the author._
Sample code:
Happy coding!
Greetings
El Bruno
OpenCV and Python
- Easy way to install OpenCV and TensorFlow with Anaconda
- Convert an OpenCV frame to PIL image and viceversa
- Open a video file ๐ฅ and save each frame as a PNG ๐ผ file to a folder ๐
- How to add a watermark text to an image ๐ผ
- How to add a Pencil Sketch effect to an image ๐ผ using Python
- How to convert to grayscale and show a single color an image ๐ผ using Python ๐