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)