Get the color of an object
Hello,
I am trying to extract the dominant color of an object for color analysis but It seems like I don't get the true color using Core.mean() [RGB] in OpenCV3. Do we have a way to get the dominant color or the actual color of an object?
Here's my sample image.
and Here's the result after Core.Mean();
Hope someone will guid me. TIA
Core.mean() returns a Scalar, not an image, so i wonder , how you got that weird result.
I got it form getting the Scalar.val from the function. And that's what I got in return. and then I put it into the largest area of the image which I got from using K-Means Color clustering.
maybe it gets better, if we can see your code ?