DEV Community

El Bruno for Microsoft Azure

Posted on • Originally published at elbruno.com on

#OpenCV – Convert camera feed 🎦 to Grayscale and resalt Blue πŸ”΅ and Red ❀️

Hi !

A new twist on these days demos, this time:

  • Open a camera feed
  • Convert each frame to grayscale
  • Use a hue mask to resalt colors, Blue and Red

Here is a live sample from my office.

Convert image to GraysScale and resalt red and blue

Note: I created a mask that identifies the Captain America shield, SpyderGwen poster and Ahsoka frame, but it’s missing the Canada flag 🍁 ! Still, my guitar and working desk are converted to grayscale.

Another funny scenario !

And the sample code:

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.


Top comments (0)