Fit Average Line Between A Set of Lines

Hi! I’m exploring ways to read images of architectural/structural raster plans and convert them into curves in Grasshopper. I tried the Bitmap plugin and found a way to kind of do it decently. It reads the lines and outputs curves, but it reads the thickness of the lines as two different lines. Does someone know a good way to make an average curvature between all these lines in grasshopper?

Read PDFs (37.8 KB)