BoundingBoxEditor
BoundingBoxEditor copied to clipboard
CSV export strategy for Rectangle annotations
While I was following this guide I needed BoundingBoxEditor to export the annotations to a CSV file. As the format is pretty specific, I'm not sure if it may be a good addition for this project. But maybe it can be extended to be more flexible in the future. The exporter can only export Rectangle annotations.
What do you think, can this be merged?
I introduced two new dependencies: OpenCSV for writing the CSV file and Jimfs for the unit tests.
Hi Kai! This seems to be an ultra-specific CSV annotation format for this particular dataset that isn't used anywhere (?) else. Imho this makes its usefullness very limited.
In a quick search I could find a "Tensorflow Object Detection CSV format" (e.g. here, basically: filename,width,height,class,xmin,ymin,xmax,ymax
) that seems to be similar and at least more commonly used (as an intermediate format for Tensorflow's TFRecord). I think this format would be more useful as the "CSV"-export format and it would be trivial to "transform" it into your particular format (filename
->name
, class
->label
).
I'd still say we can merge your PR for now and I'll change it to the Tensorflow format in a separate PR later on.
Can you run the LicenseFormat
Gradle task on your updated branch and push the changes? Some of your new files have missing headers which results in the CI error.
Done that. Wow, I didn't know that the CSV format was SO special. That was just a brief excursion into this topic for me.
Codecov Report
Attention: Patch coverage is 78.94737%
with 8 lines
in your changes are missing coverage. Please review.
Project coverage is 86.41%. Comparing base (
f7f1d14
) to head (917c6f1
).
Additional details and impacted files
@@ Coverage Diff @@
## master #122 +/- ##
============================================
- Coverage 86.46% 86.41% -0.06%
- Complexity 1480 1486 +6
============================================
Files 95 96 +1
Lines 5933 5970 +37
Branches 534 540 +6
============================================
+ Hits 5130 5159 +29
- Misses 527 535 +8
Partials 276 276
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.