Ask Your Question

Cheqrd's profile - activity

2016-08-12 02:51:18 -0600 commented answer wateshed not working

if it runs when you type python watershed.py on terminal. There will be an image of fruits and it should work. try rebuilding your opencv.

2016-08-12 01:26:51 -0600 answered a question wateshed not working

Select a marker first by clicking numbers 1-9

2016-08-12 00:11:22 -0600 commented question Get the color of an object

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.

2016-08-11 23:44:20 -0600 commented question Java | Get OpenCV working on other PC

From what I know. There are DLL files needed to include together with your jar file. It's inside your build folder for opencv for this to be able to run on windows.

2016-08-11 23:44:20 -0600 answered a question Converting c++ to java

Hierarchy should be a Mat type and yes you can simply use something like this.

while(hierarchy.get(k, 2) != -1)
{
     (int)k = hierarchy.get(k, 2) // type casting to integer
     c++;
}
2016-08-11 23:44:20 -0600 commented question wateshed not working

can you show us your code

2016-08-11 23:44:20 -0600 asked a question 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.

image description

and Here's the result after Core.Mean();

image description

Hope someone will guid me. TIA