maps-as-data / MapReader

A computer vision pipeline for exploring and analyzing images at scale
https://mapreader.readthedocs.io/en/latest/
Other
92 stars 11 forks source link

Add polygon to centroid option to text spotting #498

Open rwood-97 opened 2 months ago

rwood-97 commented 2 months ago

The text spotting code outputs text as polygons. This is useful for some use cases but creates a lot of data. It would be good to add a convert_polygons_to_centroids method in the text spotting code to give users the option of outputting just centroids as a simpler option for outputting text.

rwood-97 commented 3 days ago

Could we also translate the polygon to a chosen point (e.g. lower left corner?)