|
MEAN_COLOR and AREA Anonymous [2 posts] |
16 year
|
I am trying to track two specific colors, red and green. I am using the RGB filter to filter all blue and leave just those two colors. I am also using a blob filter to filter out all of the small blobs. My problem comes with the color statistics portion. I have two distinct blobs and need to discern the color and area of each of these blobs. every time i try and receive the variables from MEAN_COLOR_R(0) and MEAN_COLOR_R(1), I get garbage. one should be 0 and the other should be 255. I know MEAN_COLOR is an array as the number will fluctuate depending on the number of blobs that the camera picks up. any help will be appreciated.
|
|
|
Anonymous |
16 year
|
Kyle,
What do you mean by "receive the variables"? What are you trying to read them with? The API?
Perhaps you can can include a robofile and image such that we can see what you are trying to do?
STeven.
|
|
|
Anonymous [2 posts] |
16 year
|
Don't worry about it, I found the problem. The issue was I needed to import the color data from color statistics and when I looked at the vars it showed MEAN_COLOR_R(0), so when i created a VBS file I thought I could GetVariable("MEAN_COLOR_R(0)") but it doesn't work like that, i needed to GetArrayVariable("MEAN_COLOR_R"). that worked fine, but thanks anyway :)
|
|