Closed farazirfan47 closed 2 years ago
I am detecting most representative color from an image but I also want to detect if detected color is white or black. Is there any way we can do that ?
Black is 0 and white is 16777215, so you could compare the colors to see if they match those (or are within a small distance away).
0
16777215
I am detecting most representative color from an image but I also want to detect if detected color is white or black. Is there any way we can do that ?