Find the length, thickness and center of mass of a line

I need to find the length of the skeleton of the line, the thickness of the line (minimum, maximum, average) and the center of mass of the object.
found skeleton (in white):

Can you please tell me, maybe there are already ready-made solutions for these tasks? or if you write your own algorithm, give advice on where to start. thanks in advance!