-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideoSlice.py
173 lines (166 loc) · 8.43 KB
/
videoSlice.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'videoSlice.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# 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(1328, 889)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setMinimumSize(QtCore.QSize(1080, 755))
self.label.setInputMethodHints(QtCore.Qt.ImhDate)
self.label.setFrameShape(QtWidgets.QFrame.Box)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.horizontalLayout_3.addWidget(self.label)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.label_9 = QtWidgets.QLabel(self.centralwidget)
self.label_9.setMaximumSize(QtCore.QSize(16777215, 20))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_9.setFont(font)
self.label_9.setAlignment(QtCore.Qt.AlignCenter)
self.label_9.setObjectName("label_9")
self.verticalLayout.addWidget(self.label_9)
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setMinimumSize(QtCore.QSize(220, 0))
self.label_4.setMaximumSize(QtCore.QSize(211, 130))
self.label_4.setLayoutDirection(QtCore.Qt.LeftToRight)
self.label_4.setInputMethodHints(QtCore.Qt.ImhNone)
self.label_4.setFrameShape(QtWidgets.QFrame.Box)
self.label_4.setObjectName("label_4")
self.verticalLayout.addWidget(self.label_4)
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setMinimumSize(QtCore.QSize(220, 0))
self.label_3.setMaximumSize(QtCore.QSize(211, 130))
self.label_3.setFrameShape(QtWidgets.QFrame.Box)
self.label_3.setObjectName("label_3")
self.verticalLayout.addWidget(self.label_3)
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setMinimumSize(QtCore.QSize(220, 0))
self.label_6.setMaximumSize(QtCore.QSize(211, 130))
self.label_6.setFrameShape(QtWidgets.QFrame.Box)
self.label_6.setObjectName("label_6")
self.verticalLayout.addWidget(self.label_6)
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setMinimumSize(QtCore.QSize(220, 0))
self.label_5.setMaximumSize(QtCore.QSize(211, 130))
self.label_5.setFrameShape(QtWidgets.QFrame.Box)
self.label_5.setObjectName("label_5")
self.verticalLayout.addWidget(self.label_5)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setMinimumSize(QtCore.QSize(220, 0))
self.label_2.setMaximumSize(QtCore.QSize(211, 130))
self.label_2.setFrameShape(QtWidgets.QFrame.Box)
self.label_2.setObjectName("label_2")
self.verticalLayout.addWidget(self.label_2)
self.horizontalLayout_3.addLayout(self.verticalLayout)
self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setContentsMargins(10, -1, 10, -1)
self.gridLayout_2.setObjectName("gridLayout_2")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setMaximumSize(QtCore.QSize(100, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.pushButton.setFont(font)
self.pushButton.setStyleSheet("background-color: rgb(0, 170, 255);")
self.pushButton.setObjectName("pushButton")
self.gridLayout_2.addWidget(self.pushButton, 0, 0, 1, 1)
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setMaximumSize(QtCore.QSize(250, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.pushButton_2.setFont(font)
self.pushButton_2.setStyleSheet("background-color: rgb(85, 170, 0);")
self.pushButton_2.setObjectName("pushButton_2")
self.gridLayout_2.addWidget(self.pushButton_2, 0, 6, 1, 1)
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setMaximumSize(QtCore.QSize(100, 16777215))
self.lineEdit.setToolTip("")
self.lineEdit.setStatusTip("")
self.lineEdit.setWhatsThis("")
self.lineEdit.setAccessibleDescription("")
self.lineEdit.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit.setObjectName("lineEdit")
self.gridLayout_2.addWidget(self.lineEdit, 0, 4, 1, 1)
self.label_7 = QtWidgets.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setStyleSheet("color: rgb(78, 154, 6);")
self.label_7.setText("")
self.label_7.setObjectName("label_7")
self.gridLayout_2.addWidget(self.label_7, 0, 2, 1, 1)
self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.pushButton_3.setFont(font)
self.pushButton_3.setStyleSheet("background-color: rgb(114, 159, 207);")
self.pushButton_3.setObjectName("pushButton_3")
self.gridLayout_2.addWidget(self.pushButton_3, 0, 1, 1, 1)
self.label_8 = QtWidgets.QLabel(self.centralwidget)
self.label_8.setMaximumSize(QtCore.QSize(180, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setObjectName("label_8")
self.gridLayout_2.addWidget(self.label_8, 0, 3, 1, 1)
self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.pushButton_4.setFont(font)
self.pushButton_4.setStyleSheet("background-color: rgb(239, 41, 41);")
self.pushButton_4.setObjectName("pushButton_4")
self.gridLayout_2.addWidget(self.pushButton_4, 0, 7, 1, 1)
self.verticalLayout_2.addLayout(self.gridLayout_2)
self.gridLayout.addLayout(self.verticalLayout_2, 1, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1328, 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.label.setText(_translate("MainWindow", "No Video"))
self.label_9.setText(_translate("MainWindow", "Kayıt Edilen Frameler"))
self.label_4.setText(_translate("MainWindow", "Frame 5"))
self.label_3.setText(_translate("MainWindow", "Frame 4"))
self.label_6.setText(_translate("MainWindow", "Frame 3"))
self.label_5.setText(_translate("MainWindow", "Frame 2"))
self.label_2.setText(_translate("MainWindow", "Frame 1"))
self.pushButton.setText(_translate("MainWindow", "Video Yükle"))
self.pushButton_2.setText(_translate("MainWindow", "Bölme işlemini Başlat"))
self.pushButton_3.setText(_translate("MainWindow", "Kayıt Klasörü Seç"))
self.label_8.setText(_translate("MainWindow", "Kaç Frame de bir Bölünsün :"))
self.pushButton_4.setText(_translate("MainWindow", "Bölme işlemini Durdur"))