-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoon.py
97 lines (91 loc) · 4.97 KB
/
moon.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'moon.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(684, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
self.graphicsView.setObjectName("graphicsView")
self.horizontalLayout.addWidget(self.graphicsView)
self.options = QtWidgets.QGroupBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.options.sizePolicy().hasHeightForWidth())
self.options.setSizePolicy(sizePolicy)
self.options.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.options.setAcceptDrops(False)
self.options.setObjectName("options")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.options)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.label = QtWidgets.QLabel(self.options)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setObjectName("label")
self.verticalLayout_3.addWidget(self.label)
self.model_selector = QtWidgets.QComboBox(self.options)
self.model_selector.setObjectName("model_selector")
self.verticalLayout_3.addWidget(self.model_selector)
self.btn_choose_pic = QtWidgets.QPushButton(self.options)
self.btn_choose_pic.setObjectName("btn_choose_pic")
self.verticalLayout_3.addWidget(self.btn_choose_pic)
self.btn_detect = QtWidgets.QPushButton(self.options)
self.btn_detect.setObjectName("btn_detect")
self.verticalLayout_3.addWidget(self.btn_detect)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.btn_pre = QtWidgets.QPushButton(self.options)
self.btn_pre.setObjectName("btn_pre")
self.horizontalLayout_4.addWidget(self.btn_pre)
self.btn_next = QtWidgets.QPushButton(self.options)
self.btn_next.setObjectName("btn_next")
self.horizontalLayout_4.addWidget(self.btn_next)
self.verticalLayout_3.addLayout(self.horizontalLayout_4)
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_4.addItem(spacerItem)
self.verticalLayout_3.addLayout(self.verticalLayout_4)
self.verticalLayout_3.setStretch(0, 1)
self.verticalLayout_3.setStretch(1, 1)
self.verticalLayout_3.setStretch(2, 1)
self.verticalLayout_3.setStretch(3, 1)
self.verticalLayout_3.setStretch(4, 1)
self.verticalLayout_3.setStretch(5, 10)
self.horizontalLayout.addWidget(self.options)
self.horizontalLayout.setStretch(0, 5)
self.horizontalLayout.setStretch(1, 2)
self.horizontalLayout_2.addLayout(self.horizontalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 684, 20))
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.options.setTitle(_translate("MainWindow", "OPTIONS"))
self.label.setText(_translate("MainWindow", "Choose Model"))
self.btn_choose_pic.setText(_translate("MainWindow", "Choose Picture"))
self.btn_detect.setText(_translate("MainWindow", "Detect"))
self.btn_pre.setText(_translate("MainWindow", "pre"))
self.btn_next.setText(_translate("MainWindow", "next"))