loading
 
roborealm counting
Rizwan from Malaysia  [4 posts]
6 years
hi..im new to roborealm..i want to use it to detect and count the number of balls of a particular color. so far i used the rgb filter to detect the color..kindly let me know how i can count.
Awaiting your reply.
thanks
Anonymous 6 years
You can use various modules to count objects. For example the color stats will do that. Or the blob filter will if you need to filter out the objects.

If you have an example image and robofile to share that will make things easier.

STeven.
Rizwan from Malaysia  [4 posts] 6 years
first of all..thank u for he reply..
i have attached the picture..i have orange and white balls, i want to count the number of balls of each color..
i have attached the picture..
awaiting ur reply..

 
Anonymous 6 years
Perhaps something like the attached?

STeven.
program.robo
Rizwan from Malaysia  [4 posts] 6 years
i am getting an error while opening the file
invalid Tagset<blob filter>...</filter>
Rizwan from Malaysia  [4 posts] 6 years
hi..thanks for the file..
is there any way i can seperate the white from orange?
Anonymous 6 years
Rizwan,

Updating to the latest version should get rid of that xml tag error. The Blob filter was upgraded to better support deletion of attributes so the file I sent you is in that new format.

As for separating orange from white, have a look at the checkboxes in the RGB_Filter module. Just play around with that for a bit and you should see how this could be accomplished.

STeven.
Anonymous 6 years
Thanks for the reply,
I managed to get the colors, however, i want display the number of blobs of each color. have been trying to assign weights and separate using weights, but its not working out.. i have too many blobs.
kindly let me know how i can reduce the number of blobs, or if there is any other way to go about it.
Awaiting your reply.
thanks
Anonymous 6 years
Could you include the robofile that you have been trying with the above image? What do you mean by too many blobs? Having your robofile will help us understand what your situation is.

Thanks,
STeven.
Anonymous 6 years
Steve,
the image that i'm using is attached..
for the previous image, i managed to count the number of blobs for one color, however, i could not display the number of blobs of each color. i have to display something like this:

number of orange balls:xx
number of white balls:xx

guide me on how to go about this..

after this, i will attach a camera to a lynxmotion arm and use it to pick the balls. how can i figure out the distance between the camera and the ball..i'm using only one camera..

 
Anonymous 6 years
Try the attached on the image posted here.

The main trick is to use the Flood fill (in fast mode) to segment the image into individual areas. Once this is done it is easy to identify the balls based on their color/intensity and use the blob label module to count them.

Keep in mind that Blob Filter also produces a blob_count variable so if you need to do additional filtering that also works (i.e. in addition to the blob's size).

STeven.
program.robo

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index