From 9e2444b127379f86a1b5f1200a12e0910aedd47a Mon Sep 17 00:00:00 2001 From: jbovee Date: Mon, 15 Oct 2018 02:51:24 -0400 Subject: [PATCH] Fix toCOCO bbox returning undefined --- dataformaters/coco.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataformaters/coco.js b/dataformaters/coco.js index 32aac25..95f1d10 100644 --- a/dataformaters/coco.js +++ b/dataformaters/coco.js @@ -56,7 +56,7 @@ var cocoFormater = { area : area, "iscrowd": 0, "image_id": image_i+1, - "bbox": shape_i.bbox, + "bbox": shape.bbox, "category_id": categories.indexOf(shape.category) + 1, "id": shape_i+1, "ignore": 0