loading
 
Objects coordinates after shape match on conveyor
Alicja Adamkiewicz from Poland  [1 posts]
8 months
Hi,


I've used Shape_match module and succesfully get results. Shapes are moving on belt just like in the shape matching tutorial.
Is there a possibility to get coordinates of each shape but counted only once (something like line_counter but for detected shapes)?

I need coordinates of these moving shapes for a robot to pick it up from the belt.
How to achieve this task?

In short I need:
1. Recoginze shape on moving belt with constant known speed
2. The shape move along and then after half a meter it is picked up by robot and put on correct basket sorted by the shape.

Could you please give any advice?

Thank you.

Steven Gentner from United States  [1408 posts] 3 months
Alicja,

In order to have the robot pick up the part you would need to calculate the real world position of the object relative to the robot and take into consideration where the center of the object is in the image. Because objects near one side of the image are further away from the robot than the other side the pixel to cm or inch ratio will need to be know. This will depend on your camera setup.

Once you know the true distance from the object to the robot you can actually use that to determine overlapping detections. I.e. if two objects are X cm from the robot with the same shape, then it is a duplicate detection and one of the entries can just be ignored. You can do this in multiple ways but for a small number of objects simply comparing a table of past matches to the current matches will allow you to determine this.

There are multiple ways to do duplicate detection but using an existing table check will allow parts to fail detection multiple times but as long as they are detected once it will work.

Note, you also probably want to filter out any objects that are touching the image borders (see blob filter) to avoid partial matches from causing issues.

If you need additional help, you can post a sample video online somewhere and link to it from this forum so we have an example to work with as each setup is a bit different. Or if you can deduce what you need from our example video we can update that tutorial to include duplicate detection.

STeven.

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