Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object cluster & image color segment matching for object point cloud refinement #138

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

pliam1105
Copy link
Contributor

@pliam1105 pliam1105 commented Dec 11, 2024

The code clusters (based on color difference and euclidean distance) the points that are in each object's bounding box (detected by the object detection node) when projected onto the image, then performs color segmentation on the image depending on the color that YOLOv8/color segmentation algorithm detected, creating multiple clusters and contours, between which it then takes the optimal pair based on an optimality metric that takes into account the similarity to the color detected by YOLOv8, the distance between the cluster points when projected onto the image and the color segment points, and the size of the cluster and the color segments, thus selecting the cluster and color segment that best correspond to the object detected.

…tected point clouds from the image to the point cloud.
…de each detected object's bounding box (when projected onto the image), with the respective labels and probabilities, colcon build succesful, didn't test yet
…throws some out of range errors but I catched them and made them warnings and it seems to work fine)
…ions in resize, may be the wrong order in terms of channels so may need to change the order both in resize() and in at() again), seems to correctly select the points in the objects detected
…l meaningful clusters based on the detections
…on, need to find a euclidean clustering algorithm for n-dimensional data or with customizable distance function, or just one that takes color into account (there are some in PCL but they mostly rely on color thresholds or difference limits rather than adding their squared difference to the distance) or implement it from scratch (and KD-tree from scratch?)
…izing them in RViz (not tested or built yet)
…formulas for the choosing & matching metrics
…n the actual object, but more testing/tuning would be good)
@pliam1105 pliam1105 added the enhancement New feature or request label Dec 11, 2024
@pliam1105 pliam1105 self-assigned this Dec 11, 2024
… by publishing unorganized point clouds (channels don't matter anyways in visualization)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant