how to detect the color of a region is black?
Dear everyone, Could you please help to detect a region whether it is black or not from a RGB/HSV image? Thank you!
Dear everyone, Could you please help to detect a region whether it is black or not from a RGB/HSV image? Thank you!
If you look at what the HSV colorspace is, it should be pretty obvious. Take the V channel (or covert RGB to gray, basically same thing) and look for very low values.
Exactly 0 is perfect black, and some threshold above is what appears black to you. You have to manually pick that threshold, there's no exact value.
Dear Tetragram, if the image in an environment with brightness, can you suggest any method to recognize the region (like without brightness circumstances), eliminate all glare. Thank you so much!
What you have said could mean many things. Could you post an example picture of before/after for what you mean?
Asked: 2016-09-30 12:10:00 -0600
Seen: 217 times
Last updated: Sep 30 '16