Fig. 1 - Database Schema
python3 main.py init
python3 main.py insert
Dataset tree:
- root
- images
- label_1
- image1.jpg
- image2.jpg
- ...
- label_2
- image1.jpg
- image2.jpg
- ...
- label_3
- ...
- label_1
- labels.csv
- images
labels.csv columns name image
, label
Dataset tree:
- root
- images
- image1.jpg
- image2.jpg
- ...
- labels
- label1.xlm
- label2.xlm
- ...
- images
<annotation>
<filename>000005.jpg</filename>
<size>
<width>500</width>
<height>375</height>
<depth>3</depth>
</size>
<object>
<name>chair</name>
<bndbox>
<xmin>263</xmin>
<ymin>211</ymin>
<xmax>324</xmax>
<ymax>339</ymax>
</bndbox>
</object>
<object>
<name>chair</name>
<bndbox>
<xmin>165</xmin>
<ymin>264</ymin>
<xmax>253</xmax>
<ymax>372</ymax>
</bndbox>
</object>
<object>
<name>chair</name>
<bndbox>
<xmin>5</xmin>
<ymin>244</ymin>
<xmax>67</xmax>
<ymax>374</ymax>
</bndbox>
</object>
<object>
<name>chair</name>
<bndbox>
<xmin>241</xmin>
<ymin>194</ymin>
<xmax>295</xmax>
<ymax>299</ymax>
</bndbox>
</object>
<object>
<name>chair</name>
<bndbox>
<xmin>277</xmin>
<ymin>186</ymin>
<xmax>312</xmax>
<ymax>220</ymax>
</bndbox>
</object>
</annotation>
Dataset tree:
- root
- images
- image1.jpg
- image2.jpg
- ...
- labels.csv
- images
labels.csv columns name image
, label
, xmin
, ymin
, xmax
, ymax
python3 main.py create
The description of the new dataset is a json file :
{
"type": "[classif|detection|segmentation]",
"path": "/path/to/the/root/directory",
"classes": {
"label_1": ["other_label_1", "other_label_1"],
"label_2": [],
"label_3": ["other_label_3"]
}
}
python3 main.py list
python3 main.py clear