class Ui_NewProject(object): def setupUi(self, NewProject): NewProject.setObjectName("NewProject") NewProject.resize(736, 625) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/VideoGis/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) NewProject.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(NewProject) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.video_frame_2 = QVideoWidget(NewProject) p = self.video_frame_2.palette() p.setColor(QtGui.QPalette.Window, QtCore.Qt.black) self.video_frame_2.setPalette(p) self.video_frame_2.setAttribute(QtCore.Qt.WA_OpaquePaintEvent) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.video_frame_2.sizePolicy().hasHeightForWidth()) self.video_frame_2.setSizePolicy(sizePolicy) self.video_frame_2.setStyleSheet("background-color: rgb(0, 0, 0);") self.video_frame_2.setObjectName("video_frame_2") self.horizontalLayout.addWidget(self.video_frame_2) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 16) self.horizontalSlider = QtWidgets.QSlider(NewProject) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.gridLayout.addWidget(self.horizontalSlider, 1, 0, 1, 16) self.replayPlay_pushButton = QtWidgets.QPushButton(NewProject) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.replayPlay_pushButton.sizePolicy().hasHeightForWidth()) self.replayPlay_pushButton.setSizePolicy(sizePolicy) self.replayPlay_pushButton.setCheckable(False) self.replayPlay_pushButton.setChecked(False) self.replayPlay_pushButton.setObjectName("replayPlay_pushButton") self.gridLayout.addWidget(self.replayPlay_pushButton, 3, 1, 1, 1) self.replayPosition_label = QtWidgets.QLabel(NewProject) self.replayPosition_label.setObjectName("replayPosition_label") self.gridLayout.addWidget(self.replayPosition_label, 3, 4, 1, 1) self.muteButton = QtWidgets.QToolButton(NewProject) self.muteButton.setText("") self.muteButton.setObjectName("muteButton") self.gridLayout.addWidget(self.muteButton, 3, 2, 1, 1) self.comboBox = QtWidgets.QComboBox(NewProject) self.comboBox.setObjectName("comboBox") self.gridLayout.addWidget(self.comboBox, 3, 15, 1, 1) self.pushButton_2 = QtWidgets.QPushButton(NewProject) self.pushButton_2.setObjectName("pushButton_2") self.gridLayout.addWidget(self.pushButton_2, 3, 13, 1, 1) self.toolButton_3 = QtWidgets.QToolButton(NewProject) icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap(":/plugins/VideoGis/mIconFormSelect.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_3.setIcon(icon1) self.toolButton_3.setObjectName("toolButton_3") self.gridLayout.addWidget(self.toolButton_3, 3, 11, 1, 1) self.toolButton_2 = QtWidgets.QToolButton(NewProject) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasNext.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_2.setIcon(icon2) self.toolButton_2.setObjectName("toolButton_2") self.gridLayout.addWidget(self.toolButton_2, 3, 9, 1, 1) self.SkipFortoolButton_8 = QtWidgets.QToolButton(NewProject) self.SkipFortoolButton_8.setStyleSheet("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowRight.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.SkipFortoolButton_8.setIcon(icon3) self.SkipFortoolButton_8.setObjectName("SkipFortoolButton_8") self.gridLayout.addWidget(self.SkipFortoolButton_8, 3, 8, 1, 1) self.SkipBacktoolButton_7 = QtWidgets.QToolButton(NewProject) self.SkipBacktoolButton_7.setStyleSheet("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowLeft.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.SkipBacktoolButton_7.setIcon(icon4) self.SkipBacktoolButton_7.setObjectName("SkipBacktoolButton_7") self.gridLayout.addWidget(self.SkipBacktoolButton_7, 3, 7, 1, 1) self.toolButton = QtWidgets.QToolButton(NewProject) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasPrev.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton.setIcon(icon5) self.toolButton.setObjectName("toolButton") self.gridLayout.addWidget(self.toolButton, 3, 6, 1, 1) self.pushButton = QtWidgets.QPushButton(NewProject) self.pushButton.setObjectName("pushButton") self.gridLayout.addWidget(self.pushButton, 3, 0, 1, 1) self.toolButton_4 = QtWidgets.QToolButton(NewProject) self.toolButton_4.setObjectName("toolButton_4") self.gridLayout.addWidget(self.toolButton_4, 3, 12, 1, 1) self.checkBox = QtWidgets.QCheckBox(NewProject) self.checkBox.setObjectName("checkBox") self.gridLayout.addWidget(self.checkBox, 3, 14, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.retranslateUi(NewProject) QtCore.QMetaObject.connectSlotsByName(NewProject) def retranslateUi(self, NewProject): _translate = QtCore.QCoreApplication.translate NewProject.setWindowTitle( _translate("NewProject", "Video UAV Tracker - New Project")) self.replayPlay_pushButton.setText( _translate("NewProject", "Play/Pause")) self.replayPosition_label.setText(_translate("NewProject", "-:- / -:-")) self.pushButton_2.setToolTip( _translate( "NewProject", "<html><head/><body><p>Synchronize actual video frame with selected GPS time</p></body></html>" )) self.comboBox.setToolTip( _translate("NewProject", "<html><head/><body><p> GPS time</p></body></html>")) self.pushButton_2.setText(_translate("NewProject", "Synchronize!")) self.toolButton_3.setToolTip( _translate( "NewProject", "<html><head/><body><p>Add point shape database to project</p></body></html>" )) #self.toolButton_3.setText(_translate("NewProject", "DB")) self.toolButton_2.setToolTip( _translate("NewProject", "<html><head/><body><p>Next second</p></body></html>")) self.toolButton_2.setText(_translate("NewProject", ">>")) self.SkipFortoolButton_8.setToolTip( _translate("NewProject", "<html><head/><body><p>Next frame</p></body></html>")) self.SkipFortoolButton_8.setText(_translate("NewProject", ">")) self.SkipBacktoolButton_7.setToolTip( _translate( "NewProject", "<html><head/><body><p>Previous frame</p></body></html>")) self.SkipBacktoolButton_7.setText(_translate("NewProject", "<")) self.toolButton.setToolTip( _translate( "NewProject", "<html><head/><body><p>Previous second</p></body></html>")) self.toolButton.setText(_translate("NewProject", "<<")) self.pushButton.setToolTip( _translate( "NewProject", "<html><head/><body><p>Select video and relative gpx</p></body></html>" )) self.pushButton.setText( _translate("NewProject", "Select Video and GPX")) self.toolButton_4.setText(_translate("NewProject", "3D")) self.checkBox.setToolTip( _translate( "NewProject", "<html><head/><body><p>Activate Pixel value conversion and display (see README)</p></body></html>" ))
class Ui_NewProject(object): def setupUi(self, NewProject): NewProject.setObjectName("NewProject") NewProject.resize(736, 625) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/Video_UAV_Tracker/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) NewProject.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(NewProject) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.video_frame_2 = QVideoWidget(NewProject) p = self.video_frame_2.palette() p.setColor(QtGui.QPalette.Window, QtCore.Qt.black) self.video_frame_2.setPalette(p) self.video_frame_2.setAttribute(QtCore.Qt.WA_OpaquePaintEvent) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.video_frame_2.sizePolicy().hasHeightForWidth()) self.video_frame_2.setSizePolicy(sizePolicy) self.video_frame_2.setStyleSheet("background-color: rgb(0, 0, 0);") self.video_frame_2.setObjectName("video_frame_2") self.horizontalLayout.addWidget(self.video_frame_2) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 15) self.horizontalSlider = QtWidgets.QSlider(NewProject) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.gridLayout.addWidget(self.horizontalSlider, 1, 0, 1, 15) self.replayPlay_pushButton = QtWidgets.QPushButton(NewProject) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.replayPlay_pushButton.sizePolicy().hasHeightForWidth()) self.replayPlay_pushButton.setSizePolicy(sizePolicy) self.replayPlay_pushButton.setCheckable(False) self.replayPlay_pushButton.setChecked(False) self.replayPlay_pushButton.setObjectName("replayPlay_pushButton") self.gridLayout.addWidget(self.replayPlay_pushButton, 3, 1, 1, 1) self.replayPosition_label = QtWidgets.QLabel(NewProject) self.replayPosition_label.setObjectName("replayPosition_label") self.gridLayout.addWidget(self.replayPosition_label, 3, 4, 1, 1) self.muteButton = QtWidgets.QToolButton(NewProject) self.muteButton.setText("") self.muteButton.setObjectName("muteButton") self.gridLayout.addWidget(self.muteButton, 3, 2, 1, 1) self.comboBox = QtWidgets.QComboBox(NewProject) self.comboBox.setObjectName("comboBox") self.gridLayout.addWidget(self.comboBox, 3, 14, 1, 1) self.pushButton_2 = QtWidgets.QPushButton(NewProject) self.pushButton_2.setObjectName("pushButton_2") self.gridLayout.addWidget(self.pushButton_2, 3, 12, 1, 1) self.toolButton_3 = QtWidgets.QToolButton(NewProject) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/plugins/Video_UAV_Tracker/mIconFormSelect.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_3.setIcon(icon1) self.toolButton_3.setObjectName("toolButton_3") self.gridLayout.addWidget(self.toolButton_3, 3, 11, 1, 1) self.toolButton_2 = QtWidgets.QToolButton(NewProject) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasNext.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_2.setIcon(icon2) self.toolButton_2.setObjectName("toolButton_2") self.gridLayout.addWidget(self.toolButton_2, 3, 9, 1, 1) self.SkipFortoolButton_8 = QtWidgets.QToolButton(NewProject) self.SkipFortoolButton_8.setStyleSheet("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowRight.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.SkipFortoolButton_8.setIcon(icon3) self.SkipFortoolButton_8.setObjectName("SkipFortoolButton_8") self.gridLayout.addWidget(self.SkipFortoolButton_8, 3, 8, 1, 1) self.SkipBacktoolButton_7 = QtWidgets.QToolButton(NewProject) self.SkipBacktoolButton_7.setStyleSheet("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowLeft.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.SkipBacktoolButton_7.setIcon(icon4) self.SkipBacktoolButton_7.setObjectName("SkipBacktoolButton_7") self.gridLayout.addWidget(self.SkipBacktoolButton_7, 3, 7, 1, 1) self.toolButton = QtWidgets.QToolButton(NewProject) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasPrev.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton.setIcon(icon5) self.toolButton.setObjectName("toolButton") self.gridLayout.addWidget(self.toolButton, 3, 6, 1, 1) self.pushButton = QtWidgets.QPushButton(NewProject) self.pushButton.setObjectName("pushButton") self.gridLayout.addWidget(self.pushButton, 3, 0, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.retranslateUi(NewProject) QtCore.QMetaObject.connectSlotsByName(NewProject) def retranslateUi(self, NewProject): _translate = QtCore.QCoreApplication.translate NewProject.setWindowTitle(_translate("NewProject", "Video UAV Tracker - New Project")) self.replayPlay_pushButton.setText(_translate("NewProject", "Play/Pause")) self.replayPosition_label.setText(_translate("NewProject", "-:- / -:-")) self.pushButton_2.setToolTip(_translate("NewProject", "<html><head/><body><p>Synchronize actual video frame with selected GPS time</p></body></html>")) self.comboBox.setToolTip(_translate("NewProject", "<html><head/><body><p> GPS time</p></body></html>")) self.pushButton_2.setText(_translate("NewProject", "Synchronize!")) self.toolButton_3.setToolTip(_translate("NewProject", "<html><head/><body><p>Add point shape database to project</p></body></html>")) #self.toolButton_3.setText(_translate("NewProject", "DB")) self.toolButton_2.setToolTip(_translate("NewProject", "<html><head/><body><p>Next second</p></body></html>")) self.toolButton_2.setText(_translate("NewProject", ">>")) self.SkipFortoolButton_8.setToolTip(_translate("NewProject", "<html><head/><body><p>Next frame</p></body></html>")) self.SkipFortoolButton_8.setText(_translate("NewProject", ">")) self.SkipBacktoolButton_7.setToolTip(_translate("NewProject", "<html><head/><body><p>Previous frame</p></body></html>")) self.SkipBacktoolButton_7.setText(_translate("NewProject", "<")) self.toolButton.setToolTip(_translate("NewProject", "<html><head/><body><p>Previous second</p></body></html>")) self.toolButton.setText(_translate("NewProject", "<<")) self.pushButton.setToolTip(_translate("NewProject", "<html><head/><body><p>Select video and relative gpx</p></body></html>")) self.pushButton.setText(_translate("NewProject", "Select Video and GPX"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(706, 493) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/Video_UAV_Tracker/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Form.setWindowIcon(icon) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.pushButton_3 = QtWidgets.QPushButton(Form) font = QtGui.QFont() font.setKerning(True) self.pushButton_3.setFont(font) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/VgisIcon/Hand-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.pushButton_3.setIcon(icon1) self.pushButton_3.setAutoExclusive(False) self.pushButton_3.setAutoDefault(False) self.pushButton_3.setDefault(False) self.pushButton_3.setFlat(False) self.pushButton_3.setObjectName("pushButton_3") self.horizontalLayout.addWidget(self.pushButton_3) self.toolButton_6 = QtWidgets.QToolButton(Form) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/plugins/Video_UAV_Tracker/iconNewTabEditorConsole.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_6.setIcon(icon2) self.toolButton_6.setObjectName("toolButton_6") self.horizontalLayout.addWidget(self.toolButton_6) spacerItem = QtWidgets.QSpacerItem(23, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.toolButton_4 = QtWidgets.QToolButton(Form) self.toolButton_4.setStyleSheet("background: url(/mnt/574916AB2EEEC400/LAVORO/Sviluppo_VUT_StandAlone/Progetto_VUT/115757-magic-marker-icon-people-things-hand22-sc48.png)") self.toolButton_4.setObjectName("toolButton_4") self.horizontalLayout.addWidget(self.toolButton_4) self.toolButton_5 = QtWidgets.QToolButton(Form) self.toolButton_5.setObjectName("toolButton_5") self.horizontalLayout.addWidget(self.toolButton_5) self.verticalLayout_3.addLayout(self.horizontalLayout) self.dockWidget_2 = QtWidgets.QDockWidget(Form) self.dockWidget_2.setFeatures(QtWidgets.QDockWidget.NoDockWidgetFeatures) self.dockWidget_2.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea|QtCore.Qt.RightDockWidgetArea) self.dockWidget_2.setObjectName("dockWidget_2") self.dockWidgetContents_7 = QtWidgets.QWidget() self.dockWidgetContents_7.setObjectName("dockWidgetContents_7") self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents_7) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.video_frame = QVideoWidget(Form) p = self.video_frame.palette() p.setColor(QtGui.QPalette.Window, QtCore.Qt.black) self.video_frame.setPalette(p) self.video_frame.setAttribute(QtCore.Qt.WA_OpaquePaintEvent) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.video_frame.sizePolicy().hasHeightForWidth()) self.video_frame.setSizePolicy(sizePolicy) self.video_frame.setMinimumSize(QtCore.QSize(200, 200)) self.video_frame.setStyleSheet("background-color: rgb(0, 0, 0);") self.video_frame.setObjectName("video_frame") self.verticalLayout.addWidget(self.video_frame) self.horizontalSlider = QtWidgets.QSlider(self.dockWidgetContents_7) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.verticalLayout.addWidget(self.horizontalSlider) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem1 = QtWidgets.QSpacerItem(98, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.toolButton_11 = QtWidgets.QToolButton(self.dockWidgetContents_7) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowLeft.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.toolButton_11.setIcon(icon3) self.toolButton_11.setObjectName("toolButton_11") self.horizontalLayout_3.addWidget(self.toolButton_11) self.SkipBacktoolButton_8 = QtWidgets.QToolButton(self.dockWidgetContents_7) self.SkipBacktoolButton_8.setStyleSheet("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasPrev.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.SkipBacktoolButton_8.setIcon(icon4) self.SkipBacktoolButton_8.setObjectName("SkipBacktoolButton_8") self.horizontalLayout_3.addWidget(self.SkipBacktoolButton_8) self.playButton = QtWidgets.QToolButton(self.dockWidgetContents_7) self.playButton.setObjectName("playButton") self.horizontalLayout_3.addWidget(self.playButton) self.muteButton = QtWidgets.QToolButton(self.dockWidgetContents_7) self.muteButton.setText("") self.muteButton.setObjectName("muteButton") self.horizontalLayout_3.addWidget(self.muteButton) self.replayPosition_label = QtWidgets.QLabel(self.dockWidgetContents_7) self.replayPosition_label.setObjectName("replayPosition_label") self.horizontalLayout_3.addWidget(self.replayPosition_label) self.SkipFortoolButton_9 = QtWidgets.QToolButton(self.dockWidgetContents_7) self.SkipFortoolButton_9.setStyleSheet("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasNext.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.SkipFortoolButton_9.setIcon(icon5) self.SkipFortoolButton_9.setObjectName("SkipFortoolButton_9") self.horizontalLayout_3.addWidget(self.SkipFortoolButton_9) self.toolButton_12 = QtWidgets.QToolButton(self.dockWidgetContents_7) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowRight.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.toolButton_12.setIcon(icon6) self.toolButton_12.setObjectName("toolButton_12") self.horizontalLayout_3.addWidget(self.toolButton_12) spacerItem2 = QtWidgets.QSpacerItem(98, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) self.dockWidget_2.setWidget(self.dockWidgetContents_7) self.verticalLayout_3.addWidget(self.dockWidget_2) self.dockWidget_4 = QtWidgets.QDockWidget(Form) self.dockWidget_4.setMaximumSize(QtCore.QSize(524287, 121)) self.dockWidget_4.setFeatures(QtWidgets.QDockWidget.NoDockWidgetFeatures) self.dockWidget_4.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) self.dockWidget_4.setObjectName("dockWidget_4") self.dockWidgetContents_6 = QtWidgets.QWidget() self.dockWidgetContents_6.setObjectName("dockWidgetContents_6") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.dockWidgetContents_6) self.verticalLayout_2.setObjectName("verticalLayout_2") self.label = QtWidgets.QLabel(self.dockWidgetContents_6) self.label.setObjectName("label") self.verticalLayout_2.addWidget(self.label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetFixedSize) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.pushButtonCutA_6 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButtonCutA_6.setEnabled(True) self.pushButtonCutA_6.setObjectName("pushButtonCutA_6") self.horizontalLayout_2.addWidget(self.pushButtonCutA_6) self.pushButtonCutB_6 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButtonCutB_6.setObjectName("pushButtonCutB_6") self.horizontalLayout_2.addWidget(self.pushButtonCutB_6) self.label_7 = QtWidgets.QLabel(self.dockWidgetContents_6) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(self.dockWidgetContents_6) self.doubleSpinBox_2.setObjectName("doubleSpinBox_2") self.horizontalLayout_2.addWidget(self.doubleSpinBox_2) self.comboBox_6 = QtWidgets.QComboBox(self.dockWidgetContents_6) self.comboBox_6.setObjectName("comboBox_6") self.comboBox_6.addItem("") self.comboBox_6.addItem("") self.horizontalLayout_2.addWidget(self.comboBox_6) self.pushButton_5 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButton_5.setObjectName("pushButton_5") self.horizontalLayout_2.addWidget(self.pushButton_5) self.pushButtonCut_2 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButtonCut_2.setObjectName("pushButtonCut_2") self.horizontalLayout_2.addWidget(self.pushButtonCut_2) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.progressBar = QtWidgets.QProgressBar(self.dockWidgetContents_6) self.progressBar.setProperty("value", 24) self.progressBar.setObjectName("progressBar") self.verticalLayout_2.addWidget(self.progressBar) self.dockWidget_4.setWidget(self.dockWidgetContents_6) self.verticalLayout_3.addWidget(self.dockWidget_4) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Video UAV Tracker - Player")) self.pushButton_3.setToolTip(_translate("Form", "<html><head/><body><p>Move along Video directly clicking on gps track</p></body></html>")) self.pushButton_3.setText(_translate("Form", "MapTool ")) self.toolButton_6.setToolTip(_translate("Form", "<html><head/><body><p>Add point</p></body></html>")) self.toolButton_6.setText(_translate("Form", "o")) self.toolButton_4.setToolTip(_translate("Form", "<html><head/><body><p>Enable extract frames toolbox</p><p><br/></p></body></html>")) self.toolButton_4.setText(_translate("Form", "Extract frames")) self.toolButton_5.setText(_translate("Form", "Close")) self.toolButton_11.setText(_translate("Form", "<<")) self.SkipBacktoolButton_8.setText(_translate("Form", "<")) self.playButton.setText(_translate("Form", "> / ||")) self.replayPosition_label.setText(_translate("Form", "-:- / -:-")) self.SkipFortoolButton_9.setText(_translate("Form", ">")) self.toolButton_12.setText(_translate("Form", ">>")) self.label.setText(_translate("Form", "Export Frames Tool")) self.pushButtonCutA_6.setToolTip(_translate("Form", "<html><head/><body><p>Export from actual Video Frame</p></body></html>")) self.pushButtonCutA_6.setText(_translate("Form", "From A")) self.pushButtonCutB_6.setToolTip(_translate("Form", "<html><head/><body><p>Export to actual Video Frame</p></body></html>")) self.pushButtonCutB_6.setText(_translate("Form", "To B")) self.label_7.setText(_translate("Form", "Pick one frame every")) self.comboBox_6.setItemText(0, _translate("Form", "meters")) self.comboBox_6.setItemText(1, _translate("Form", "seconds")) self.pushButton_5.setText(_translate("Form", "Cancel")) self.pushButtonCut_2.setText(_translate("Form", "Extract!"))
class VideoWindow(QMainWindow): def __init__(self, parent=None): super(VideoWindow, self).__init__(parent) self.setFixedSize(900, 600) self.setWindowTitle( "Automatic mosaic editing of videos using deep learning") self.setWindowIcon(QIcon('kwicon.jpg')) #self._mutex = QtCore.QMutex() self.mediaPlayer = QMediaPlayer(None, QMediaPlayer.VideoSurface) self.mediaPlayer_1 = QMediaPlayer(None, QMediaPlayer.VideoSurface) self.videoWidget = QVideoWidget() self.videoWidget_1 = QVideoWidget() p = self.videoWidget.palette() p_1 = self.videoWidget_1.palette() p.setColor(self.backgroundRole(), Qt.black) p_1.setColor(self.backgroundRole(), Qt.black) self.videoWidget.setPalette(p) self.videoWidget_1.setPalette(p_1) self.video_path = video_path self.tmp_result_name = 'tmp_result.mp4' self.tmp_result_path = "C:/Users/mmlab/PycharmProjects/UI_pyqt/" + self.tmp_result_name self.playButton = QPushButton() self.playButton.setEnabled(True) self.playButton.setIcon(self.style().standardIcon(QStyle.SP_MediaPlay)) self.playButton.clicked.connect(self.play) self.playButton.setStyleSheet('background:white') self.pauseButton = QPushButton() self.pauseButton.setEnabled(True) self.pauseButton.setIcon(self.style().standardIcon( QStyle.SP_MediaPause)) self.pauseButton.clicked.connect(self.pause) self.pauseButton.setStyleSheet('background:white') self.stopButton = QPushButton() self.stopButton.setEnabled(True) self.stopButton.setIcon(self.style().standardIcon(QStyle.SP_MediaStop)) self.stopButton.clicked.connect(self.stop) self.stopButton.setStyleSheet('background:white') self.openButton = QPushButton() self.openButton.setEnabled(True) self.openButton.setText("OPEN") self.openButton.setFixedHeight(25) self.openButton.setFixedWidth(50) self.openButton.clicked.connect(lambda: self.openFile(self.grid)) self.openButton.setStyleSheet('background:white') self.saveButton = QPushButton() self.saveButton.setEnabled(True) self.saveButton.setText("SAVE") self.saveButton.setFixedHeight(25) self.saveButton.setFixedWidth(50) self.saveButton.clicked.connect(self.saveFile) self.saveButton.setStyleSheet('background:white') self.positionSlider = QSlider(Qt.Horizontal) self.positionSlider.setRange(0, 0) self.positionSlider.sliderMoved.connect(self.setPosition) # Image ScrollArea self.grid = QtWidgets.QGridLayout() # Create Grid Layout self.bg = QtWidgets.QButtonGroup(self) # Create Button Group flen = len( os.listdir( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/cluster_people')) self.f = [] self.cont01 = 0 mod = sys.modules[__name__] for i in range(0, flen): self.f.append( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/cluster_people/{}'. format(i) + 'human/{}'.format(i) + 'human1.png') a = 0 check = [] vBox = QtWidgets.QHBoxLayout() self._databases_checked = [] positions = [(0, j) for j in range(flen)] for position, title in zip(positions, self.f): if title == '': continue QLabel = QtWidgets.QLabel() QLabel.setFixedWidth(150) QLabel.setFixedHeight(150) image = self.f[self.cont01] num = [] num.append(self.cont01) self.qp = QPixmap() self.qp.load(image) self.qp = self.qp.scaled(150, 150) QLabel.setPixmap(self.qp) vBox.addWidget(QLabel) cb = QCheckBox(str(a)) cb.stateChanged.connect(self.on_stateChanged) vBox.addWidget(cb) self.grid.addLayout(vBox, *position) self.cont01 += 1 a += 1 setattr #RUN 버튼 self.okButton = QPushButton() self.okButton.setEnabled(True) self.okButton.clicked.connect(self.RunFile) self.okButton.setFixedWidth(50) self.okButton.setFixedHeight(25) self.okButton.setText("RUN") self.okButton.setStyleSheet('background:yellow') self.okButton.setFont(QFont("굴림", 10, QFont.Bold)) # 확인버튼 # grid2 = QtWidgets.QGridLayout() wid = QWidget(self) self.setCentralWidget(wid) # CREATION OF SCROLL AREA frame = QFrame() frame.setLayout(self.grid) scroll = QScrollArea() scroll.setWidget(frame) scroll.setWidgetResizable(False) scroll.setFixedHeight(210) self.scrollbar = scroll.verticalScrollBar() # Create a QVBoxLayout layout_scroll = QVBoxLayout(self) # Add the Widget QScrollArea to the QVBoxLayout layout_scroll.addWidget(scroll) # Create new action openAction = QAction(QIcon('open.png'), '&Open', self) openAction.setShortcut('Ctrl+O') openAction.setStatusTip('Open video') openAction.triggered.connect(self.openFile) # Create save action saveAction = QAction(QIcon('save.png'), '&Save', self) saveAction.setShortcut('Ctrl+S') saveAction.setStatusTip('Save video') saveAction.triggered.connect(self.saveFile) # Create exit action exitAction = QAction(QIcon('exit.png'), '&Exit', self) exitAction.setShortcut('Ctrl+Q') exitAction.setStatusTip('Exit application') exitAction.triggered.connect(self.exitCall) # Create menu bar and add action menuBar = self.menuBar() fileMenu = menuBar.addMenu('&File') fileMenu.addAction(openAction) fileMenu.addAction(saveAction) fileMenu.addAction(exitAction) editMenu = menuBar.addMenu('&Edit') viewMenu = menuBar.addMenu('&View') toolMenu = menuBar.addMenu('&Tools') helpMenu = menuBar.addMenu('&Help') # Create a widget for window contents wid = QWidget(self) self.setCentralWidget(wid) # Create layouts to place inside widget controlLayout = QHBoxLayout() controlLayout.setContentsMargins(0, 0, 0, 0) controlLayout.addWidget(self.playButton) controlLayout.addWidget(self.pauseButton) controlLayout.addWidget(self.stopButton) controlLayout.addWidget(self.positionSlider) controlLayout.addWidget(self.openButton) controlLayout.addWidget(self.okButton) controlLayout.addWidget(self.saveButton) self.videoLayout = QHBoxLayout() self.videoLayout.setContentsMargins(0, 0, 0, 0) self.videoLayout.addWidget(self.videoWidget) self.videoLayout.addWidget(self.videoWidget_1) #bLayout = QHBoxLayout() #bLayout.setContentsMargins(0, 0, 0, 0) #bLayout.addWidget(self.okButton) layout = QVBoxLayout() layout.addLayout(self.videoLayout) layout.addLayout(controlLayout) layout.addLayout(layout_scroll) #layout.addLayout(bLayout) #layout.addWidget(self.errorLabel) # Set widget to contain window contents wid.setLayout(layout) self.mediaPlayer.setVideoOutput(self.videoWidget) self.mediaPlayer.positionChanged.connect(self.positionChanged) self.mediaPlayer.durationChanged.connect(self.durationChanged) # self.mediaPlayer.error.connect(self.handleError) self.mediaPlayer_1.setVideoOutput(self.videoWidget_1) self.mediaPlayer_1.positionChanged.connect(self.positionChanged) self.mediaPlayer_1.durationChanged.connect(self.durationChanged) # self.mediaPlayer_1.error.connect(self.handleError) fileName2 = "C:/Users/mmlab/PycharmProjects/UI_pyqt/tmp_result1.mp4" self.mediaPlayer.setMedia(QMediaContent( QUrl.fromLocalFile(video_path))) self.mediaPlayer_1.setMedia( QMediaContent(QUrl.fromLocalFile(fileName2))) def on_stateChanged(self, state): checkbox = self.sender() text = checkbox.text() + 'human' if state == Qt.Checked: self._databases_checked.append(text) else: self._databases_checked.remove(text) print(self._databases_checked) def model_image(self, grid): flen = len( os.listdir( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/cluster_people')) self.f = [] self.cont01 = 0 for i in range(0, flen): self.f.append( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/cluster_people/{}'. format(i) + 'human/{}'.format(i) + 'human1.png') a = 0 self.check = [] positions = [(0, j) for j in range(flen)] for position, title in zip(positions, self.f): if title == '': continue vBox = QtWidgets.QVBoxLayout() QLabel = QtWidgets.QLabel() QLabel.setFixedWidth(150) QLabel.setFixedHeight(150) image = self.f[self.cont01] num = [] num.append(self.cont01) self.qp = QPixmap() self.qp.load(image) self.qp = self.qp.scaled(150, 150) QLabel.setPixmap(self.qp) vBox.addWidget(QLabel) self.check.append(QCheckBox()) vBox.addWidget(self.check[a]) self.check[a].setText(str(a)) self.check[a].clicked.connect(self.c(self.check[a])) grid.addLayout(vBox, *position) self.cont01 += 1 a += 1 # if self.check.isChecked(): # print(self.check.text()) # print(self.check.text()) self.mediaPlayer = QMediaPlayer(None, QMediaPlayer.VideoSurface) self.mediaPlayer_1 = QMediaPlayer(None, QMediaPlayer.VideoSurface) p = self.videoWidget.palette() p_1 = self.videoWidget_1.palette() p.setColor(self.backgroundRole(), Qt.black) p_1.setColor(self.backgroundRole(), Qt.black) self.videoWidget.setPalette(p) self.videoWidget_1.setPalette(p_1) self.video_path = '' self.tmp_result_name = 'tmp_result.mp4' self.tmp_result_path = "C:/Users/mmlab/PycharmProjects/UI_pyqt/" + self.tmp_result_name self.playButton = QPushButton() self.playButton.setEnabled(True) self.playButton.setIcon(self.style().standardIcon(QStyle.SP_MediaPlay)) self.playButton.clicked.connect(self.play) self.playButton.setStyleSheet('background:white') self.pauseButton = QPushButton() self.pauseButton.setEnabled(True) self.pauseButton.setIcon(self.style().standardIcon( QStyle.SP_MediaPause)) self.pauseButton.clicked.connect(self.pause) self.pauseButton.setStyleSheet('background:white') self.stopButton = QPushButton() self.stopButton.setEnabled(True) self.stopButton.setIcon(self.style().standardIcon(QStyle.SP_MediaStop)) self.stopButton.clicked.connect(self.stop) self.stopButton.setStyleSheet('background:white') self.openButton = QPushButton() self.openButton.setEnabled(True) self.openButton.setText("OPEN") self.openButton.setFixedHeight(25) self.openButton.setFixedWidth(50) self.openButton.clicked.connect(lambda: self.openFile(grid)) self.openButton.setStyleSheet('background:white') self.saveButton = QPushButton() self.saveButton.setEnabled(True) self.saveButton.setText("SAVE") self.saveButton.setFixedHeight(25) self.saveButton.setFixedWidth(50) self.saveButton.clicked.connect(self.saveFile) self.saveButton.setStyleSheet('background:white') self.positionSlider = QSlider(Qt.Horizontal) self.positionSlider.setRange(0, 0) self.positionSlider.sliderMoved.connect(self.setPosition) self.bg = QtWidgets.QButtonGroup(self) # Create Button Group self.okButton = QPushButton() self.okButton.setEnabled(True) self.okButton.clicked.connect(self.RunFile) self.okButton.setFixedWidth(50) self.okButton.setFixedHeight(25) self.okButton.setText("RUN") self.okButton.setStyleSheet('background:yellow') self.okButton.setFont(QFont("굴림", 10, QFont.Bold)) wid = QWidget(self) self.setCentralWidget(wid) frame = QFrame() frame.setLayout(grid) scroll = QScrollArea() scroll.setWidget(frame) scroll.setWidgetResizable(False) scroll.setFixedHeight(210) self.scrollbar = scroll.verticalScrollBar() layout_scroll = QVBoxLayout(self) layout_scroll.addWidget(scroll) controlLayout = QHBoxLayout() controlLayout.setContentsMargins(0, 0, 0, 0) controlLayout.addWidget(self.playButton) controlLayout.addWidget(self.pauseButton) controlLayout.addWidget(self.stopButton) controlLayout.addWidget(self.positionSlider) controlLayout.addWidget(self.openButton) controlLayout.addWidget(self.okButton) controlLayout.addWidget(self.saveButton) self.videoLayout = QHBoxLayout() self.videoLayout.setContentsMargins(0, 0, 0, 0) self.videoLayout.addWidget(self.videoWidget) self.videoLayout.addWidget(self.videoWidget_1) layout = QVBoxLayout() layout.addLayout(self.videoLayout) layout.addLayout(controlLayout) layout.addLayout(layout_scroll) # Set widget to contain window contents wid.setLayout(layout) self.mediaPlayer.setVideoOutput(self.videoWidget) self.mediaPlayer.positionChanged.connect(self.positionChanged) self.mediaPlayer.durationChanged.connect(self.durationChanged) self.mediaPlayer_1.setVideoOutput(self.videoWidget_1) self.mediaPlayer_1.positionChanged.connect(self.positionChanged) self.mediaPlayer_1.durationChanged.connect(self.durationChanged) def openFile(self, grid): if os.path.exists( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/src/test_file'): for file in os.scandir( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/src/test_file'): os.remove(file.path) if os.path.exists( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/src/out_dir'): for file in os.scandir( 'C:/Users/mmlab/PycharmProjects/UI_pyqt/src/out_dir'): os.remove(file.path) window2 = MyWindow() window2.OnOpenDocument() video_p(window2.video_path) tmp_result_name = 'tmp_result.mp4' tmp_result_path = "C:/Users/mmlab/PycharmProjects/UI_pyqt/" + tmp_result_name if video_path != "": print(video_path) # make.main(video_path) # clu.main() # classifier.main() # mosaic2.main(video_path, tmp_result_name) player.close() player2 = VideoWindow() player2.show() def RunFile(self): checkdemo() def saveFile(self, grid): fileName1 = QFileDialog.getSaveFileName(self, "Save Video", "*.mp4", QDir.homePath()) def exitCall(self): sys.exit(app.exec_()) def play(self): if self.mediaPlayer.state() == QMediaPlayer.PlayingState: self.mediaPlayer.pause() self.mediaPlayer_1.pause() else: self.mediaPlayer.play() self.mediaPlayer_1.play() def pause(self): if self.mediaPlayer.state() == QMediaPlayer.PausedState: self.mediaPlayer.play() self.mediaPlayer_1.play() else: self.mediaPlayer.pause() self.mediaPlayer_1.pause() def stop(self): if self.mediaPlayer.state() == QMediaPlayer.StoppedState: self.mediaPlayer.play() self.mediaPlayer_1.play() else: self.mediaPlayer.stop() self.mediaPlayer_1.stop() def positionChanged(self, position): self.positionSlider.setValue(position) def durationChanged(self, duration): self.positionSlider.setRange(0, duration) def setPosition(self, position): self.mediaPlayer.setPosition(position) self.mediaPlayer_1.setPosition(position) def handleError(self): self.playButton.setEnabled(False) self.errorLabel.setText("Error: " + self.mediaPlayer.errorString())
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(706, 493) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/VideoGis/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Form.setWindowIcon(icon) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.pushButton_3 = QtWidgets.QPushButton(Form) font = QtGui.QFont() font.setKerning(True) self.pushButton_3.setFont(font) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/VgisIcon/Hand-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.pushButton_3.setIcon(icon1) self.pushButton_3.setAutoExclusive(False) self.pushButton_3.setAutoDefault(False) self.pushButton_3.setDefault(False) self.pushButton_3.setFlat(False) self.pushButton_3.setObjectName("pushButton_3") self.horizontalLayout.addWidget(self.pushButton_3) self.toolButton_6 = QtWidgets.QToolButton(Form) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap(":/plugins/VideoGis/iconNewTabEditorConsole.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton_6.setIcon(icon2) self.toolButton_6.setObjectName("toolButton_6") self.horizontalLayout.addWidget(self.toolButton_6) self.toolButton_7 = QtWidgets.QToolButton(Form) self.toolButton_7.setEnabled(False) self.toolButton_7.setCheckable(True) self.toolButton_7.setObjectName("toolButton_7") self.horizontalLayout.addWidget(self.toolButton_7) self.pushButton = QtWidgets.QPushButton(Form) self.pushButton.setEnabled(False) self.pushButton.setCheckable(True) self.pushButton.setObjectName("pushButton") self.horizontalLayout.addWidget(self.pushButton) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setEnabled(False) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setEnabled(False) self.spinBox.setMinimum(1) self.spinBox.setSingleStep(10) self.spinBox.setProperty("value", 25) self.spinBox.setObjectName("spinBox") self.horizontalLayout.addWidget(self.spinBox) spacerItem = QtWidgets.QSpacerItem(23, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.toolButton_4 = QtWidgets.QToolButton(Form) self.toolButton_4.setObjectName("toolButton_4") self.horizontalLayout.addWidget(self.toolButton_4) self.toolButton_5 = QtWidgets.QToolButton(Form) self.toolButton_5.setObjectName("toolButton_5") self.horizontalLayout.addWidget(self.toolButton_5) self.verticalLayout_3.addLayout(self.horizontalLayout) self.dockWidget_2 = QtWidgets.QDockWidget(Form) self.dockWidget_2.setFeatures( QtWidgets.QDockWidget.NoDockWidgetFeatures) self.dockWidget_2.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea | QtCore.Qt.RightDockWidgetArea) self.dockWidget_2.setObjectName("dockWidget_2") self.dockWidgetContents_7 = QtWidgets.QWidget() self.dockWidgetContents_7.setObjectName("dockWidgetContents_7") self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents_7) self.gridLayout_2.setObjectName("gridLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.video_frame = QVideoWidget(Form) p = self.video_frame.palette() p.setColor(QtGui.QPalette.Window, QtCore.Qt.black) self.video_frame.setPalette(p) self.video_frame.setAttribute(QtCore.Qt.WA_OpaquePaintEvent) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.video_frame.sizePolicy().hasHeightForWidth()) self.video_frame.setSizePolicy(sizePolicy) self.video_frame.setMinimumSize(QtCore.QSize(200, 200)) self.video_frame.setStyleSheet("background-color: rgb(0, 0, 0);") self.video_frame.setObjectName("video_frame") self.verticalLayout.addWidget(self.video_frame) self.horizontalSlider = QtWidgets.QSlider(self.dockWidgetContents_7) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.verticalLayout.addWidget(self.horizontalSlider) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem1 = QtWidgets.QSpacerItem(98, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.toolButton_11 = QtWidgets.QToolButton(self.dockWidgetContents_7) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowLeft.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.toolButton_11.setIcon(icon3) self.toolButton_11.setObjectName("toolButton_11") self.horizontalLayout_3.addWidget(self.toolButton_11) self.SkipBacktoolButton_8 = QtWidgets.QToolButton( self.dockWidgetContents_7) self.SkipBacktoolButton_8.setStyleSheet("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasPrev.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.SkipBacktoolButton_8.setIcon(icon4) self.SkipBacktoolButton_8.setObjectName("SkipBacktoolButton_8") self.horizontalLayout_3.addWidget(self.SkipBacktoolButton_8) self.playButton = QtWidgets.QToolButton(self.dockWidgetContents_7) self.playButton.setObjectName("playButton") self.horizontalLayout_3.addWidget(self.playButton) self.muteButton = QtWidgets.QToolButton(self.dockWidgetContents_7) self.muteButton.setText("") self.muteButton.setObjectName("muteButton") self.horizontalLayout_3.addWidget(self.muteButton) self.replayPosition_label = QtWidgets.QLabel(self.dockWidgetContents_7) self.replayPosition_label.setObjectName("replayPosition_label") self.horizontalLayout_3.addWidget(self.replayPosition_label) self.SkipFortoolButton_9 = QtWidgets.QToolButton( self.dockWidgetContents_7) self.SkipFortoolButton_9.setStyleSheet("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionAtlasNext.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.SkipFortoolButton_9.setIcon(icon5) self.SkipFortoolButton_9.setObjectName("SkipFortoolButton_9") self.horizontalLayout_3.addWidget(self.SkipFortoolButton_9) self.toolButton_12 = QtWidgets.QToolButton(self.dockWidgetContents_7) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/VgisIcon/mActionArrowRight.svg"), QtGui.QIcon.Normal, QtGui.QIcon.On) self.toolButton_12.setIcon(icon6) self.toolButton_12.setObjectName("toolButton_12") self.horizontalLayout_3.addWidget(self.toolButton_12) spacerItem2 = QtWidgets.QSpacerItem(98, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.lcdNumber = QtWidgets.QLCDNumber(self.dockWidgetContents_7) self.lcdNumber.setObjectName("lcdNumber") self.horizontalLayout_3.addWidget(self.lcdNumber) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) self.dockWidget_2.setWidget(self.dockWidgetContents_7) self.verticalLayout_3.addWidget(self.dockWidget_2) self.dockWidget_4 = QtWidgets.QDockWidget(Form) self.dockWidget_4.setMaximumSize(QtCore.QSize(524287, 121)) self.dockWidget_4.setFeatures( QtWidgets.QDockWidget.NoDockWidgetFeatures) self.dockWidget_4.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea) self.dockWidget_4.setObjectName("dockWidget_4") self.dockWidgetContents_6 = QtWidgets.QWidget() self.dockWidgetContents_6.setObjectName("dockWidgetContents_6") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.dockWidgetContents_6) self.verticalLayout_2.setObjectName("verticalLayout_2") self.label = QtWidgets.QLabel(self.dockWidgetContents_6) self.label.setObjectName("label") self.verticalLayout_2.addWidget(self.label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSizeConstraint( QtWidgets.QLayout.SetFixedSize) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.pushButtonCutA_6 = QtWidgets.QPushButton( self.dockWidgetContents_6) self.pushButtonCutA_6.setEnabled(True) self.pushButtonCutA_6.setObjectName("pushButtonCutA_6") self.horizontalLayout_2.addWidget(self.pushButtonCutA_6) self.pushButtonCutB_6 = QtWidgets.QPushButton( self.dockWidgetContents_6) self.pushButtonCutB_6.setObjectName("pushButtonCutB_6") self.horizontalLayout_2.addWidget(self.pushButtonCutB_6) self.label_7 = QtWidgets.QLabel(self.dockWidgetContents_6) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox( self.dockWidgetContents_6) self.doubleSpinBox_2.setObjectName("doubleSpinBox_2") self.horizontalLayout_2.addWidget(self.doubleSpinBox_2) self.comboBox_6 = QtWidgets.QComboBox(self.dockWidgetContents_6) self.comboBox_6.setObjectName("comboBox_6") self.comboBox_6.addItem("") self.comboBox_6.addItem("") self.horizontalLayout_2.addWidget(self.comboBox_6) self.pushButton_5 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButton_5.setObjectName("pushButton_5") self.horizontalLayout_2.addWidget(self.pushButton_5) self.pushButtonCut_2 = QtWidgets.QPushButton(self.dockWidgetContents_6) self.pushButtonCut_2.setObjectName("pushButtonCut_2") self.horizontalLayout_2.addWidget(self.pushButtonCut_2) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.progressBar = QtWidgets.QProgressBar(self.dockWidgetContents_6) self.progressBar.setProperty("value", 24) self.progressBar.setObjectName("progressBar") self.verticalLayout_2.addWidget(self.progressBar) self.dockWidget_4.setWidget(self.dockWidgetContents_6) self.verticalLayout_3.addWidget(self.dockWidget_4) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Video UAV Tracker - Player")) self.pushButton_3.setToolTip( _translate( "Form", "<html><head/><body><p>Move along Video directly clicking on gps track</p></body></html>" )) self.pushButton_3.setText(_translate("Form", "MapTool ")) self.label_2.setText(_translate("Form", "Overlap %")) self.toolButton_6.setToolTip( _translate("Form", "<html><head/><body><p>Add point</p></body></html>")) self.toolButton_6.setText(_translate("Form", "o")) self.toolButton_4.setToolTip( _translate( "Form", "<html><head/><body><p>Enable extract frames toolbox</p><p><br/></p></body></html>" )) self.toolButton_4.setText(_translate("Form", "Extract frames")) self.toolButton_5.setText(_translate("Form", "Close")) self.toolButton_11.setText(_translate("Form", "<<")) self.SkipBacktoolButton_8.setText(_translate("Form", "<")) self.playButton.setText(_translate("Form", "> / ||")) self.replayPosition_label.setText(_translate("Form", "-:- / -:-")) self.SkipFortoolButton_9.setText(_translate("Form", ">")) self.toolButton_12.setText(_translate("Form", ">>")) self.label.setText(_translate("Form", "Export Frames Tool")) self.pushButtonCutA_6.setToolTip( _translate( "Form", "<html><head/><body><p>Export from actual Video Frame</p></body></html>" )) self.pushButtonCutA_6.setText(_translate("Form", "From A")) self.pushButtonCutB_6.setToolTip( _translate( "Form", "<html><head/><body><p>Export to actual Video Frame</p></body></html>" )) self.pushButtonCutB_6.setText(_translate("Form", "To B")) self.label_7.setText(_translate("Form", "Pick one frame every")) self.comboBox_6.setItemText(0, _translate("Form", "meters")) self.comboBox_6.setItemText(1, _translate("Form", "seconds")) self.pushButton_5.setText(_translate("Form", "Cancel")) self.pushButtonCut_2.setText(_translate("Form", "Extract!")) self.toolButton_7.setText(_translate("Form", "3D")) self.pushButton.setText(_translate("Form", "Create Mosaic"))