Ask Your Question

Hstuart's profile - activity

2020-09-21 06:17:26 -0600 received badge  Notable Question (source)
2020-03-02 07:52:45 -0600 received badge  Popular Question (source)
2019-04-11 07:13:00 -0600 received badge  Famous Question (source)
2018-06-24 23:03:27 -0600 received badge  Notable Question (source)
2018-03-05 00:02:30 -0600 received badge  Popular Question (source)
2017-03-02 09:14:24 -0600 received badge  Scholar (source)
2017-03-02 09:14:18 -0600 received badge  Supporter (source)
2017-02-17 05:03:05 -0600 received badge  Student (source)
2017-02-15 14:05:56 -0600 commented answer How can I best compare two BGR colors to determine how similar/different they are?

What kind of context would determine the similarity between two colors?

2017-02-14 08:53:29 -0600 asked a question How can I best compare two BGR colors to determine how similar/different they are?

I apologize for how basic this question is, please bear with me as I'm a beginner to OpenCV

Say I have two colors in BGR format (though I can convert them to another form if I have to - though an explanation on how to do so would be greatly appreciated) - how can I best quantify how similar/different these two colors are? Say, for example, I have a light green and a dark green - these are pretty similar. A light green and a yellow would also be similar, but a dark red and a light blue would be very different.

Is there any simple way to obtain a value that corresponds with the difference between two colors?

all help and advice is appreciated, thanks!

2017-02-13 08:39:29 -0600 commented answer How to determine the average BGR values of all the pixels in a closed contour?

LBerger - how would contour hierarchy affect this? Sorry I'm very very new to OpenCV

2017-02-11 16:26:04 -0600 asked a question How to determine the average BGR values of all the pixels in a closed contour?

I'm a complete newbie to OpenCV, and trying to distinguish between some brightly-colored targets, and false positives. In both cases, I'm looking at a shape which is recognized as a closed contour, but since the disparity between the color and surrounding area is FAR more dramatic on the target than the false positives, I'm planning on using that to cull the false positives ( I know that this is probably far from the most effective way to do this, but it's simple enough for my beginner skills to grasp most of the idea )

My biggest issue is I'm not sure how I can parse this all the pixels inclosed within the contour so I can determine the average color value, and see if it's a target or not. Does anyone have any extremely newbie-friendly ideas as to how this could be accomplished? Thanks a ton