-
-
Notifications
You must be signed in to change notification settings - Fork 617
Open
Description
If a dlib xml is imported and the data is exported as pascal VOC the xmax and ymax values are wrong. It seems like the additions in lines 38/39 of pascal_voc.js are receiving string values for shape.bbox.x and shape.bbox.w this leads to a string concatenation when an int addition is intended.
To Reproduce
Steps to reproduce the behavior:
- import data in dlib xml format
- Click on save --> Pascal VOC XML
- See error in exported file
Quick fix by changing lines 38/39 of pascal_voc.js from
<xmax>${shape.bbox.x + shape.bbox.w}</xmax>
<ymax>${shape.bbox.y + shape.bbox.h}</ymax>
to
<xmax>${parseInt(shape.bbox.x) + parseInt(shape.bbox.w)}</xmax>
<ymax>${parseInt(shape.bbox.y) + parseInt(shape.bbox.h)}</ymax>
Metadata
Metadata
Assignees
Labels
No labels