1 | initial version |
I did what I just said, defining an upper and a lower Scalar which defines a range for the color I want. Using inrange() i get the mask then. That works for some colors, but for example in HSV color space, red has two color ranges. So I ended up getting 2 masks, and add them together to get red working.
Anyways, if there is someone who has a better solution for this, or more stuff I could try out, please let me know. Also @LBerger, could you explain your first comment a little more? Summing up rows to find color values?