diff --git a/Detection_window.py b/Detection_window.py
index d9adb6b..3f602d7 100644
--- a/Detection_window.py
+++ b/Detection_window.py
@@ -14,44 +14,44 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
- MainWindow.resize(2024, 1118)
+ MainWindow.resize(2182, 1118)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
- self.horizontalLayout = QtWidgets.QHBoxLayout()
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.bt_KeepShot = QtWidgets.QPushButton(self.centralwidget)
- self.bt_KeepShot.setMinimumSize(QtCore.QSize(100, 50))
- self.bt_KeepShot.setMaximumSize(QtCore.QSize(100, 50))
- self.bt_KeepShot.setObjectName("bt_KeepShot")
- self.horizontalLayout.addWidget(self.bt_KeepShot)
- self.bt_StopKeepShot = QtWidgets.QPushButton(self.centralwidget)
- self.bt_StopKeepShot.setMinimumSize(QtCore.QSize(100, 50))
- self.bt_StopKeepShot.setMaximumSize(QtCore.QSize(100, 50))
- self.bt_StopKeepShot.setObjectName("bt_StopKeepShot")
- self.horizontalLayout.addWidget(self.bt_StopKeepShot)
- self.bt_detection = QtWidgets.QPushButton(self.centralwidget)
- self.bt_detection.setMinimumSize(QtCore.QSize(100, 50))
- self.bt_detection.setMaximumSize(QtCore.QSize(100, 50))
- self.bt_detection.setObjectName("bt_detection")
- self.horizontalLayout.addWidget(self.bt_detection)
- spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.horizontalLayout.addItem(spacerItem)
- self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.view_origin = QtWidgets.QLabel(self.centralwidget)
self.view_origin.setMinimumSize(QtCore.QSize(1000, 1000))
self.view_origin.setMaximumSize(QtCore.QSize(1000, 1000))
self.view_origin.setObjectName("view_origin")
- self.gridLayout.addWidget(self.view_origin, 1, 0, 1, 1)
+ self.gridLayout.addWidget(self.view_origin, 2, 0, 1, 1)
self.view_predict = QtWidgets.QLabel(self.centralwidget)
self.view_predict.setMinimumSize(QtCore.QSize(1000, 1000))
self.view_predict.setMaximumSize(QtCore.QSize(1000, 1000))
self.view_predict.setObjectName("view_predict")
- self.gridLayout.addWidget(self.view_predict, 1, 1, 1, 1)
+ self.gridLayout.addWidget(self.view_predict, 2, 1, 1, 1)
+ self.verticalLayout = QtWidgets.QVBoxLayout()
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.bt_KeepShot = QtWidgets.QPushButton(self.centralwidget)
+ self.bt_KeepShot.setMinimumSize(QtCore.QSize(150, 50))
+ self.bt_KeepShot.setMaximumSize(QtCore.QSize(100, 50))
+ self.bt_KeepShot.setObjectName("bt_KeepShot")
+ self.verticalLayout.addWidget(self.bt_KeepShot)
+ self.bt_StopKeepShot = QtWidgets.QPushButton(self.centralwidget)
+ self.bt_StopKeepShot.setMinimumSize(QtCore.QSize(150, 50))
+ self.bt_StopKeepShot.setMaximumSize(QtCore.QSize(100, 50))
+ self.bt_StopKeepShot.setObjectName("bt_StopKeepShot")
+ self.verticalLayout.addWidget(self.bt_StopKeepShot)
+ self.bt_detection = QtWidgets.QPushButton(self.centralwidget)
+ self.bt_detection.setMinimumSize(QtCore.QSize(150, 50))
+ self.bt_detection.setMaximumSize(QtCore.QSize(100, 50))
+ self.bt_detection.setObjectName("bt_detection")
+ self.verticalLayout.addWidget(self.bt_detection)
+ spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem)
+ self.gridLayout.addLayout(self.verticalLayout, 2, 2, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
- self.menubar.setGeometry(QtCore.QRect(0, 0, 2024, 22))
+ self.menubar.setGeometry(QtCore.QRect(0, 0, 2182, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
@@ -64,8 +64,8 @@ class Ui_MainWindow(object):
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
+ self.view_origin.setText(_translate("MainWindow", "原圖影像"))
+ self.view_predict.setText(_translate("MainWindow", "檢測影像"))
self.bt_KeepShot.setText(_translate("MainWindow", "開始連續取像"))
self.bt_StopKeepShot.setText(_translate("MainWindow", "停止連續取像"))
self.bt_detection.setText(_translate("MainWindow", "檢測"))
- self.view_origin.setText(_translate("MainWindow", "原圖影像"))
- self.view_predict.setText(_translate("MainWindow", "檢測影像"))
diff --git a/Detection_window.ui b/Detection_window.ui
index abfef76..06db60e 100644
--- a/Detection_window.ui
+++ b/Detection_window.ui
@@ -6,7 +6,7 @@
0
0
- 2024
+ 2182
1118
@@ -15,81 +15,7 @@
- -
-
-
-
-
-
-
- 100
- 50
-
-
-
-
- 100
- 50
-
-
-
- 開始連續取像
-
-
-
- -
-
-
-
- 100
- 50
-
-
-
-
- 100
- 50
-
-
-
- 停止連續取像
-
-
-
- -
-
-
-
- 100
- 50
-
-
-
-
- 100
- 50
-
-
-
- 檢測
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
-
- -
+
-
@@ -108,7 +34,7 @@
- -
+
-
@@ -127,6 +53,80 @@
+ -
+
+
-
+
+
+
+ 150
+ 50
+
+
+
+
+ 100
+ 50
+
+
+
+ 開始連續取像
+
+
+
+ -
+
+
+
+ 150
+ 50
+
+
+
+
+ 100
+ 50
+
+
+
+ 停止連續取像
+
+
+
+ -
+
+
+
+ 150
+ 50
+
+
+
+
+ 100
+ 50
+
+
+
+ 檢測
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+