Ellipse angle wrong when importing annotations from COCO format
I annotated images in my dataset using VIA 2.0.8 using polygons, circles and ellipses. When loading a project from the JSON the annotations are correct, but when I load from the coco annotations ellipse regions are incorrectly oriented vertically or horizontally:
JSON Annotations Import Results in VIA:
COCO Annotations Import Results in VIA:
This becomes a problem when I try to use the coco annotations to train a MASK RCNN because the instance masks will be incorrect. When using the cocoapi show annotations function (showAnn) the polygon and circle shapes are fine, but the ellipses again incorrect.
COCO Annotations Import Results in COCOAPI:
I am doing my own investigations into via's source code and wonder in the issue originates in the via_region_shape_to_coco_annotation
function in the via.js file? I'm not sure it's accurately accounting for the ellipse's starting angle when encoding the ellipse shape as a polygon or possibly there's a rounding issue:
via_region_shape_to_coco_annotation
These issues also occur in Version 3. Any help/guidance on this issue is much appreciated!