COCO bug in cell coordinates

COCO bug in cell coordinates  

  By: XLABInsights on May 10, 2022, 4:37 p.m.

I found examples such as:

{'id': 17, 'file_name': './images/TCGA-OL-A66P-01Z-00-DX1.5ADD0D6D-37C6-4BC9-8C2B-64DB18BE99B3_[8813, 5395, 8879, 5461].png', 'height': 66, 'width': 66, 'date_captured': '16-12-2021 10:30:43'}

{'id': 45, 'category_id': 1, 'iscrowd': 0, 'image_id': 17, 'area': 144.0, 'bbox': [7, -3, 12, 12]} {'id': 46, 'category_id': 1, 'iscrowd': 0, 'image_id': 17, 'area': 144.0, 'bbox': [43, 1, 12, 12]} {'id': 47, 'category_id': 1, 'iscrowd': 0, 'image_id': 17, 'area': 144.0, 'bbox': [27, 10, 12, 12]} {'id': 48, 'category_id': 1, 'iscrowd': 0, 'image_id': 17, 'area': 144.0, 'bbox': [3, 22, 12, 12]}

1) Negative coordinates are present 2) x/y + (width/height) /2 == out of bounds (e.g. lower case with 63 + 6 = 69 -> centroid out of bounds)

Did I understand something wrong?

Thanks!

Re: COCO bug in cell coordinates  

  By: mart.vanrijthoven on May 12, 2022, 7:07 a.m.

Dear Dejan Stepec,

Thank you for your message.

The negative value and out of bound values are not a bug but occur due to how the annotations were made.

Please see the orginal annotations in xml files, e.g.,:

TCGA-OL-A66P-01Z-00-DX1.5ADD0D6D-37C6-4BC9-8C2B-64DB18BE99B3 @ x1=8813, y1=5395, x2=8879, y2=5461

Best wishes, Mart