# Converting VOC2012 annotation .xml to segmentation .png

Does anyone know a good way to convert VOC2012 annotations files in xml to SegmentationClass (class annotations) files in png?

• Thanks. The download_and_convert_voc2012.sh script seems to take an existing png and remove the colormap. It doesn't process the xml though. I wonder if there's a good way to convert the xml to png. Feb 21 '19 at 3:16