How to convert segmentation labels to a map of pixel coordinates to identified class? #76
-
example label: how can i convert this to a map like: {(1, 100) : 2, i need it so that i can take the information i have from a synchronized depth camera and compute the average depth of an object. i'd take each pixel coordinate from the polygon encoded by the label and then take its depth from the camera image at the same pixel, but i need to know how to decode it. also, how do i take the label info in code? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
figured it on my own and submitted a PR. will clean it up in the following days: |
Beta Was this translation helpful? Give feedback.
-
Great to hear that you could figure it out on your own. Sorry, it took me so long to answer. I have been working on a new YT video over the past few days. |
Beta Was this translation helpful? Give feedback.
figured it on my own and submitted a PR. will clean it up in the following days:
ultralytics/ultralytics#1233