Code for the associated blog post: http://www.andrewjanowczyk.com/exporting-and-re-importing-annotations-from-qupath-for-usage-in-machine-learning/ Which discusses exporting/importing qupath annotations in geojson format, as well as manipulating them in python using a shapely object