diff --git a/camera/camera_window.py b/camera/camera_window.py new file mode 100644 index 0000000..597a764 --- /dev/null +++ b/camera/camera_window.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'camera_window.ui' +# +# Created by: PyQt5 UI code generator 5.15.6 +# +# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt5 import QtCore, QtGui, QtWidgets + + +class Ui_MainWindow(object): + def setupUi(self, MainWindow): + MainWindow.setObjectName("MainWindow") + MainWindow.resize(1363, 1119) + self.centralwidget = QtWidgets.QWidget(MainWindow) + self.centralwidget.setObjectName("centralwidget") + self.formLayout = QtWidgets.QFormLayout(self.centralwidget) + self.formLayout.setObjectName("formLayout") + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.bt_camera_connect = QtWidgets.QPushButton(self.centralwidget) + self.bt_camera_connect.setMinimumSize(QtCore.QSize(101, 51)) + self.bt_camera_connect.setMaximumSize(QtCore.QSize(101, 51)) + self.bt_camera_connect.setObjectName("bt_camera_connect") + self.horizontalLayout.addWidget(self.bt_camera_connect) + self.bt_OneShot = QtWidgets.QPushButton(self.centralwidget) + self.bt_OneShot.setMinimumSize(QtCore.QSize(101, 51)) + self.bt_OneShot.setMaximumSize(QtCore.QSize(101, 51)) + self.bt_OneShot.setObjectName("bt_OneShot") + self.horizontalLayout.addWidget(self.bt_OneShot) + self.bt_KeetShot = QtWidgets.QPushButton(self.centralwidget) + self.bt_KeetShot.setMinimumSize(QtCore.QSize(101, 51)) + self.bt_KeetShot.setMaximumSize(QtCore.QSize(101, 51)) + self.bt_KeetShot.setObjectName("bt_KeetShot") + self.horizontalLayout.addWidget(self.bt_KeetShot) + self.bt_camera_close = QtWidgets.QPushButton(self.centralwidget) + self.bt_camera_close.setMinimumSize(QtCore.QSize(101, 51)) + self.bt_camera_close.setMaximumSize(QtCore.QSize(101, 51)) + self.bt_camera_close.setObjectName("bt_camera_close") + self.horizontalLayout.addWidget(self.bt_camera_close) + self.label_3 = QtWidgets.QLabel(self.centralwidget) + self.label_3.setMinimumSize(QtCore.QSize(91, 31)) + self.label_3.setMaximumSize(QtCore.QSize(91, 31)) + self.label_3.setObjectName("label_3") + self.horizontalLayout.addWidget(self.label_3) + self.Ex_time = QtWidgets.QLineEdit(self.centralwidget) + self.Ex_time.setMinimumSize(QtCore.QSize(100, 30)) + self.Ex_time.setMaximumSize(QtCore.QSize(100, 30)) + self.Ex_time.setObjectName("Ex_time") + self.horizontalLayout.addWidget(self.Ex_time) + self.formLayout.setLayout(3, QtWidgets.QFormLayout.LabelRole, self.horizontalLayout) + self.label = QtWidgets.QLabel(self.centralwidget) + self.label.setMinimumSize(QtCore.QSize(1000, 1000)) + self.label.setMaximumSize(QtCore.QSize(1000, 1000)) + self.label.setObjectName("label") + self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label) + MainWindow.setCentralWidget(self.centralwidget) + self.menubar = QtWidgets.QMenuBar(MainWindow) + self.menubar.setGeometry(QtCore.QRect(0, 0, 1363, 22)) + self.menubar.setObjectName("menubar") + MainWindow.setMenuBar(self.menubar) + self.statusbar = QtWidgets.QStatusBar(MainWindow) + self.statusbar.setObjectName("statusbar") + MainWindow.setStatusBar(self.statusbar) + + self.retranslateUi(MainWindow) + QtCore.QMetaObject.connectSlotsByName(MainWindow) + + def retranslateUi(self, MainWindow): + _translate = QtCore.QCoreApplication.translate + MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) + self.bt_camera_connect.setText(_translate("MainWindow", "相機連線")) + self.bt_OneShot.setText(_translate("MainWindow", "單張擷取")) + self.bt_KeetShot.setText(_translate("MainWindow", "連續取像")) + self.bt_camera_close.setText(_translate("MainWindow", "中斷連線")) + self.label_3.setText(_translate("MainWindow", "曝光時間")) + self.label.setText(_translate("MainWindow", "原圖")) diff --git a/camera/camera_window.ui b/camera/camera_window.ui new file mode 100644 index 0000000..08b11ec --- /dev/null +++ b/camera/camera_window.ui @@ -0,0 +1,168 @@ + + + MainWindow + + + + 0 + 0 + 1363 + 1119 + + + + MainWindow + + + + + + + + + + 101 + 51 + + + + + 101 + 51 + + + + 相機連線 + + + + + + + + 101 + 51 + + + + + 101 + 51 + + + + 單張擷取 + + + + + + + + 101 + 51 + + + + + 101 + 51 + + + + 連續取像 + + + + + + + + 101 + 51 + + + + + 101 + 51 + + + + 中斷連線 + + + + + + + + 91 + 31 + + + + + 91 + 31 + + + + 曝光時間 + + + + + + + + 100 + 30 + + + + + 100 + 30 + + + + + + + + + + + 1000 + 1000 + + + + + 1000 + 1000 + + + + 原圖 + + + + + + + + + 0 + 0 + 1363 + 22 + + + + + + + + diff --git a/image/img0307/Image__2025-03-07__15-30-07.png b/image/img0307/Image__2025-03-07__15-30-07.png new file mode 100644 index 0000000..ca8a7c3 Binary files /dev/null and b/image/img0307/Image__2025-03-07__15-30-07.png differ diff --git a/main.ui b/main.ui new file mode 100644 index 0000000..14843c1 --- /dev/null +++ b/main.ui @@ -0,0 +1,58 @@ + + + MainWindow + + + + 0 + 0 + 1308 + 865 + + + + MainWindow + + + + + + 70 + 110 + 471 + 461 + + + + TextLabel + + + + + + 70 + 40 + 91 + 61 + + + + PushButton + + + + + + + 0 + 0 + 1308 + 22 + + + + + + + +