How can I set each skeleton line into different colors?

I labeled an anmial by DeepLabCut, and I connected the bodyparts by skeleton lines.
Can I change the each skeleton line into different colors? e.g. left_shoulder – left_elbow – left_wrist set to red; right_shoulder – right_elbow – right_wrist set to yellow.

Thank you so much!

This is currently not supported. That being said, if you take a look at the code here and there, one way to achieve it would be to extend color_for_skeleton to be a 2D array of colors (n_skeleton_lines X 3) and something like:

for i, (bpt1, bpt2) in enumerate(bpts2connect):
    ...
    image[rr, cc] = color_for_skeleton[i]

I hope that helps :slight_smile:

1 Like

Hi Jessy,
Thank you so much! It works very well!
Hope you have a nice day.