0

I am doing a project which detects helmets using raspberry pi camera.So I have blue and red color helmets.Now I need to detect both the colors and apply mask. But I know how to detect only one color at a time.

Gab
  • 7,869
  • 4
  • 37
  • 68
Vijin E V
  • 9
  • 1

1 Answers1

0

You just need to call the color detector 2 times with the differents colors ranges. Don't forget that use the image returned from the first detection on the second.

I have an example here