ryouchinsa / Rectlabel-support

RectLabel is an offline image annotation tool for object detection and segmentation.
https://rectlabel.com
507 stars 73 forks source link

CSV export just exports JSON with one row per image #193

Closed jimjam-slam closed 2 years ago

jimjam-slam commented 2 years ago

The CSV export appears to just have a column for image path and then an unquoted JSON array column for the labelled objects. It would be more helpful if this CSV was in a tidy format with one row per label.

For example, the TFLite CSV spec takes the following columns with one row per label:

The export doesn't have to precisely follow this specification (especially the first column), but either (a) exporting with rows for each object rather than each image or (b) quoting the JSON array would make processing the export with standardised CSV tools a bit easier!

Thanks!

ryouchinsa commented 2 years ago

Thanks for writing the detailed feedback.

Currently we are porting our Caffe-based object detection code to Tensorflow and PyTorch.

Including the CSV export, we will update our exporting features for the latest version of both Tensorflow and PyTorch.

When we could implement, we will let you know.

jimjam-slam commented 2 years ago

No worries - thanks very much!

ryouchinsa commented 2 years ago

Hi,

We added Row by image and Row by label options to Export CSV file menu. The new update version 32 was released.

スクリーンショット 2022-03-28 21 44 55

When you select Row by label and check on the Convert to boxes checkbox, the format is the same as Tensorflow Object Detection CSV format.

filename,width,height,label,xmin,ymin,xmax,ymax
/Users/ryo/rcam/test_annotations/_raccoon/raccoon-1_jpg,650,417,raccoon,81,88,522,408

The details are here. https://rectlabel.com/help#xml_to_csv

Let us know your opinion.

jimjam-slam commented 2 years ago

That looks great! I'll attempt to test when I can :)

ryouchinsa commented 2 years ago

Currently If you need our support to fix this problem, please let us know.