introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

Question: I'm detecting the same Object four times using Multidetection but only get one set of coordinates. #54

Closed PKran closed 6 years ago

PKran commented 6 years ago

Hello, I'm using find object to detect multiple Objects of the same kind. in order to pick one up I need to have its coordinates, but the multidetection only publishes one set of coordinates. Is there a way to fix that? All the objects get detected using the same ID. Thank you, Phil

matlabbe commented 6 years ago

Hi Phil,

The 3D example didn't work with multiDetection enabled. I updated the code so that it can work. See referred commit above. Some results: screenshot_2018-05-29_14-49-54

Note however there are no guarantees that "object_1" and "object_1_b" will refer always to same object (e.g., TF may swap between both between detections).

cheers, Mathieu

PKran commented 6 years ago

Hi Mathieu,

Thank you very much for your reply. I will test this as soon as possible. It looks exactly like the thing I want to do.

Thank you very much, Phil

PKran commented 6 years ago

Hi Mathieu,

The code you provided does exactly what I was trying do to. Tank you very much.