diff --git a/Samples/kangaroo_1.jpg b/Samples/images/kangaroo_1.jpg similarity index 100% rename from Samples/kangaroo_1.jpg rename to Samples/images/kangaroo_1.jpg diff --git a/Samples/images/kangaroo_1.txt b/Samples/images/kangaroo_1.txt new file mode 100644 index 0000000..e69de29 diff --git a/Samples/kangaroo_2.png b/Samples/images/kangaroo_2.png similarity index 100% rename from Samples/kangaroo_2.png rename to Samples/images/kangaroo_2.png diff --git a/Samples/images/kangaroo_2.txt b/Samples/images/kangaroo_2.txt new file mode 100644 index 0000000..dfdd423 --- /dev/null +++ b/Samples/images/kangaroo_2.txt @@ -0,0 +1 @@ +1 0.647461 0.537500 0.373047 0.908929 \ No newline at end of file diff --git a/Samples/kangaroo_3.jpg b/Samples/images/kangaroo_3.jpg similarity index 100% rename from Samples/kangaroo_3.jpg rename to Samples/images/kangaroo_3.jpg diff --git a/Samples/images/kangaroo_3.txt b/Samples/images/kangaroo_3.txt new file mode 100644 index 0000000..4618db7 --- /dev/null +++ b/Samples/images/kangaroo_3.txt @@ -0,0 +1 @@ +1 0.522222 0.476667 0.335556 0.785000 \ No newline at end of file diff --git a/Samples/kangaroo_4.jpg b/Samples/images/kangaroo_4.jpg similarity index 100% rename from Samples/kangaroo_4.jpg rename to Samples/images/kangaroo_4.jpg diff --git a/Samples/images/kangaroo_4.txt b/Samples/images/kangaroo_4.txt new file mode 100644 index 0000000..e69de29 diff --git a/Samples/kangaroo_5.jpg b/Samples/images/kangaroo_5.jpg similarity index 100% rename from Samples/kangaroo_5.jpg rename to Samples/images/kangaroo_5.jpg diff --git a/Samples/images/kangaroo_5.txt b/Samples/images/kangaroo_5.txt new file mode 100644 index 0000000..9165dc7 --- /dev/null +++ b/Samples/images/kangaroo_5.txt @@ -0,0 +1,3 @@ +1 0.739258 0.571429 0.235352 0.651786 +1 0.458008 0.498214 0.311523 0.848214 +1 0.209961 0.460714 0.178711 0.576786 \ No newline at end of file diff --git a/Samples/raccoon_1.jpg b/Samples/images/raccoon_1.jpg similarity index 100% rename from Samples/raccoon_1.jpg rename to Samples/images/raccoon_1.jpg diff --git a/Samples/images/raccoon_1.txt b/Samples/images/raccoon_1.txt new file mode 100644 index 0000000..fb0607e --- /dev/null +++ b/Samples/images/raccoon_1.txt @@ -0,0 +1 @@ +0 0.660417 0.615625 0.427083 0.746875 \ No newline at end of file diff --git a/Samples/raccoon_2.jpg b/Samples/images/raccoon_2.jpg similarity index 100% rename from Samples/raccoon_2.jpg rename to Samples/images/raccoon_2.jpg diff --git a/Samples/images/raccoon_2.txt b/Samples/images/raccoon_2.txt new file mode 100644 index 0000000..84b8267 --- /dev/null +++ b/Samples/images/raccoon_2.txt @@ -0,0 +1,3 @@ +0 0.457627 0.338983 0.351695 0.377119 +0 0.237288 0.703390 0.368644 0.427966 +0 0.792373 0.444915 0.317797 0.444915 \ No newline at end of file diff --git a/Samples/raccoon_3.jpg b/Samples/images/raccoon_3.jpg similarity index 100% rename from Samples/raccoon_3.jpg rename to Samples/images/raccoon_3.jpg diff --git a/Samples/images/raccoon_3.txt b/Samples/images/raccoon_3.txt new file mode 100644 index 0000000..e69de29 diff --git a/Samples/raccoon_4.jpg b/Samples/images/raccoon_4.jpg similarity index 100% rename from Samples/raccoon_4.jpg rename to Samples/images/raccoon_4.jpg diff --git a/Samples/images/raccoon_4.txt b/Samples/images/raccoon_4.txt new file mode 100644 index 0000000..e69de29 diff --git a/Samples/raccoon_5.jpg b/Samples/images/raccoon_5.jpg similarity index 100% rename from Samples/raccoon_5.jpg rename to Samples/images/raccoon_5.jpg diff --git a/Samples/images/raccoon_5.txt b/Samples/images/raccoon_5.txt new file mode 100644 index 0000000..e69de29 diff --git a/Samples/labelist.txt b/Samples/obj_names.txt similarity index 100% rename from Samples/labelist.txt rename to Samples/obj_names.txt diff --git a/label_img.cpp b/label_img.cpp index e0916ea..f118b5e 100644 --- a/label_img.cpp +++ b/label_img.cpp @@ -103,7 +103,6 @@ void label_img::openImage(const QString &qstrImg) m_aspectRatioHeight = static_cast(m_inputImg.height()) / this->height(); m_objBoundingBoxes.clear(); - m_drawObjectBoxColor.clear(); m_objStartPoint = QPoint(); diff --git a/mainwindow.cpp b/mainwindow.cpp index 24d8ed6..76c4aa5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -217,6 +217,7 @@ void MainWindow::load_label_list_data(QString qstrLabelListFile) ui->tableWidget_label->removeRow(ui->tableWidget_label->currentRow()); m_labelNameList.clear(); + ui->label_image->m_drawObjectBoxColor.clear(); string strLabel; QStringList verticalHeaderLabels;