# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'surface.ui' # # Created by: PyQt5 UI code generator 5.15.10 # # 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(832, 441) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.btnOpenCamera = QtWidgets.QPushButton(self.centralwidget) self.btnOpenCamera.setGeometry(QtCore.QRect(50, 240, 75, 23)) self.btnOpenCamera.setObjectName("btnOpenCamera") self.btnCapture = QtWidgets.QPushButton(self.centralwidget) self.btnCapture.setGeometry(QtCore.QRect(190, 240, 75, 23)) self.btnCapture.setObjectName("btnCapture") self.btnReadImage = QtWidgets.QPushButton(self.centralwidget) self.btnReadImage.setGeometry(QtCore.QRect(330, 240, 75, 23)) self.btnReadImage.setObjectName("btnReadImage") self.btnThreshold = QtWidgets.QPushButton(self.centralwidget) self.btnThreshold.setGeometry(QtCore.QRect(50, 310, 75, 23)) self.btnThreshold.setObjectName("btnThreshold") self.btnGray = QtWidgets.QPushButton(self.centralwidget) self.btnGray.setGeometry(QtCore.QRect(190, 310, 75, 23)) self.btnGray.setObjectName("btnGray") self.labelCamera = QtWidgets.QLabel(self.centralwidget) self.labelCamera.setGeometry(QtCore.QRect(0, 40, 150, 150)) self.labelCamera.setFrameShadow(QtWidgets.QFrame.Plain) self.labelCamera.setObjectName("labelCamera") self.labelCapture = QtWidgets.QLabel(self.centralwidget) self.labelCapture.setGeometry(QtCore.QRect(150, 40, 150, 150)) self.labelCapture.setObjectName("labelCapture") self.labelResult = QtWidgets.QLabel(self.centralwidget) self.labelResult.setGeometry(QtCore.QRect(310, 40, 150, 150)) self.labelResult.setObjectName("labelResult") self.btnDenoising = QtWidgets.QPushButton(self.centralwidget) self.btnDenoising.setGeometry(QtCore.QRect(330, 310, 75, 23)) self.btnDenoising.setObjectName("btnDenoising") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 832, 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) self.btnOpenCamera.clicked.connect(MainWindow.btnOpenCamera_Clicked) # type: ignore self.btnCapture.clicked.connect(MainWindow.btnCapture_Clicked) # type: ignore self.btnReadImage.clicked.connect(MainWindow.btnReadImage_Clicked) # type: ignore self.btnThreshold.clicked.connect(MainWindow.btnThreshold_Clicked) # type: ignore self.btnGray.clicked.connect(MainWindow.btnGray_Clicked) # type: ignore self.btnDenoising.clicked.connect(MainWindow.btnDenoising_Clicked) # type: ignore QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.btnOpenCamera, self.btnCapture) MainWindow.setTabOrder(self.btnCapture, self.btnReadImage) MainWindow.setTabOrder(self.btnReadImage, self.btnThreshold) MainWindow.setTabOrder(self.btnThreshold, self.btnGray) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.btnOpenCamera.setText(_translate("MainWindow", "打开摄像头")) self.btnCapture.setText(_translate("MainWindow", "捕获图片")) self.btnReadImage.setText(_translate("MainWindow", "打开图片")) self.btnThreshold.setText(_translate("MainWindow", "阈值分割")) self.btnGray.setText(_translate("MainWindow", "灰度化")) self.labelCamera.setText(_translate("MainWindow", "摄像头")) self.labelCapture.setText(_translate("MainWindow", "捕获图")) self.labelResult.setText(_translate("MainWindow", "结果图")) self.btnDenoising.setText(_translate("MainWindow", "加噪"))