コード例 #1
0
    def setupUi(self, PlayerWindow):
        PlayerWindow.setObjectName("PlayerWindow")
        PlayerWindow.resize(742, 951)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            PlayerWindow.sizePolicy().hasHeightForWidth())
        PlayerWindow.setSizePolicy(sizePolicy)
        PlayerWindow.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        PlayerWindow.setAcceptDrops(True)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/imgFMV/images/icon.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        PlayerWindow.setWindowIcon(icon)
        PlayerWindow.setWindowOpacity(1.0)
        PlayerWindow.setLocale(
            QtCore.QLocale(QtCore.QLocale.English,
                           QtCore.QLocale.UnitedStates))
        PlayerWindow.setDockNestingEnabled(True)
        self.centralwidget = QtWidgets.QWidget(PlayerWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.videoWidget2 = VideoWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(
            self.videoWidget2.sizePolicy().hasHeightForWidth())
        self.videoWidget2.setSizePolicy(sizePolicy)
        self.videoWidget2.setMinimumSize(QtCore.QSize(0, 350))
        self.videoWidget2.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.videoWidget2.setVisible(True)
        self.videoWidget2.setToolTip("")
        self.videoWidget2.setStyleSheet("QWidget {\n"
                                        " background-color:red;\n"
                                        " } ")
        self.videoWidget2.setObjectName("videoWidget2")
        self.verticalLayout.addWidget(self.videoWidget2)
        self.videoWidget = VideoWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(
            self.videoWidget.sizePolicy().hasHeightForWidth())
        self.videoWidget.setSizePolicy(sizePolicy)
        self.videoWidget.setMinimumSize(QtCore.QSize(0, 350))
        self.videoWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.videoWidget.setToolTip("")
        self.videoWidget.setStyleSheet("QWidget {\n"
                                       " background-color:black;\n"
                                       " } ")
        self.videoWidget.setObjectName("videoWidget")
        self.verticalLayout.addWidget(self.videoWidget)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.sliderDuration = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sliderDuration.sizePolicy().hasHeightForWidth())
        self.sliderDuration.setSizePolicy(sizePolicy)
        self.sliderDuration.setMinimum(0)
        self.sliderDuration.setMaximum(100)
        self.sliderDuration.setOrientation(QtCore.Qt.Horizontal)
        self.sliderDuration.setObjectName("sliderDuration")
        self.horizontalLayout_2.addWidget(self.sliderDuration)
        self.labelDuration = QtWidgets.QLabel(self.centralwidget)
        self.labelDuration.setText("")
        self.labelDuration.setObjectName("labelDuration")
        self.horizontalLayout_2.addWidget(self.labelDuration)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btn_Color = QtWidgets.QPushButton(self.groupBox)
        self.btn_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_Color.sizePolicy().hasHeightForWidth())
        self.btn_Color.setSizePolicy(sizePolicy)
        self.btn_Color.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Color.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/imgFMV/images/color_picker.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_Color.setIcon(icon1)
        self.btn_Color.setFlat(True)
        self.btn_Color.setObjectName("btn_Color")
        self.horizontalLayout_3.addWidget(self.btn_Color)
        self.btn_Rec = QtWidgets.QPushButton(self.groupBox)
        self.btn_Rec.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Rec.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/record.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/rec_on.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.btn_Rec.setIcon(icon2)
        self.btn_Rec.setCheckable(True)
        self.btn_Rec.setFlat(True)
        self.btn_Rec.setObjectName("btn_Rec")
        self.horizontalLayout_3.addWidget(self.btn_Rec)
        self.btn_GeoReferencing = QtWidgets.QPushButton(self.groupBox)
        self.btn_GeoReferencing.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_GeoReferencing.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/imgFMV/images/mosaic.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_GeoReferencing.setIcon(icon3)
        self.btn_GeoReferencing.setCheckable(True)
        self.btn_GeoReferencing.setFlat(True)
        self.btn_GeoReferencing.setObjectName("btn_GeoReferencing")
        self.horizontalLayout_3.addWidget(self.btn_GeoReferencing)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.lb_cursor_coord = QtWidgets.QLabel(self.groupBox)
        self.lb_cursor_coord.setText("")
        self.lb_cursor_coord.setAlignment(QtCore.Qt.AlignCenter)
        self.lb_cursor_coord.setObjectName("lb_cursor_coord")
        self.horizontalLayout_3.addWidget(self.lb_cursor_coord)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.btn_CaptureFrame = QtWidgets.QPushButton(self.groupBox)
        self.btn_CaptureFrame.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_CaptureFrame.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/imgFMV/images/screenshot.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_CaptureFrame.setIcon(icon4)
        self.btn_CaptureFrame.setFlat(True)
        self.btn_CaptureFrame.setObjectName("btn_CaptureFrame")
        self.horizontalLayout_3.addWidget(self.btn_CaptureFrame)
        self.verticalLayout.addWidget(self.groupBox)
        self.gb_PlayerControls = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gb_PlayerControls.sizePolicy().hasHeightForWidth())
        self.gb_PlayerControls.setSizePolicy(sizePolicy)
        self.gb_PlayerControls.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.gb_PlayerControls.setStyleSheet(
            "QGroupBox::indicator {\n"
            "                 width: 13px;\n"
            "                 height: 13px;\n"
            "            }  \n"
            "           QGroupBox::indicator:unchecked {\n"
            "                 image: url(:/imgFMV/images/up.png);\n"
            "            }\n"
            "           QGroupBox::indicator:checked {\n"
            "               image: url(:/imgFMV/images/down.png);\n"
            "                }")
        self.gb_PlayerControls.setFlat(True)
        self.gb_PlayerControls.setCheckable(True)
        self.gb_PlayerControls.setObjectName("gb_PlayerControls")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.gb_PlayerControls)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btn_previous = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_previous.setCursor(QtGui.QCursor(
            QtCore.Qt.PointingHandCursor))
        self.btn_previous.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-previous.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_previous.setIcon(icon5)
        self.btn_previous.setFlat(True)
        self.btn_previous.setObjectName("btn_previous")
        self.horizontalLayout.addWidget(self.btn_previous)
        self.btn_rewind = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_rewind.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_rewind.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-rewind.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_rewind.setIcon(icon6)
        self.btn_rewind.setCheckable(False)
        self.btn_rewind.setFlat(True)
        self.btn_rewind.setObjectName("btn_rewind")
        self.horizontalLayout.addWidget(self.btn_rewind)
        self.btn_stop = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_stop.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_stop.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/imgFMV/images/stop.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_stop.setIcon(icon7)
        self.btn_stop.setFlat(True)
        self.btn_stop.setObjectName("btn_stop")
        self.horizontalLayout.addWidget(self.btn_stop)
        self.btn_play = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_play.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_play.setText("")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/imgFMV/images/play-arrow.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_play.setIcon(icon8)
        self.btn_play.setFlat(True)
        self.btn_play.setObjectName("btn_play")
        self.horizontalLayout.addWidget(self.btn_play)
        self.btn_forward = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_forward.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_forward.setText("")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-forward.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_forward.setIcon(icon9)
        self.btn_forward.setCheckable(False)
        self.btn_forward.setAutoDefault(True)
        self.btn_forward.setFlat(True)
        self.btn_forward.setObjectName("btn_forward")
        self.horizontalLayout.addWidget(self.btn_forward)
        self.btn_next = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_next.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_next.setText("")
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-next.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_next.setIcon(icon10)
        self.btn_next.setFlat(True)
        self.btn_next.setObjectName("btn_next")
        self.horizontalLayout.addWidget(self.btn_next)
        self.btn_repeat = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_repeat.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_repeat.setText("")
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(":/imgFMV/images/repeat.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_repeat.setIcon(icon11)
        self.btn_repeat.setCheckable(True)
        self.btn_repeat.setFlat(True)
        self.btn_repeat.setObjectName("btn_repeat")
        self.horizontalLayout.addWidget(self.btn_repeat)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.btn_volume = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_volume.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_volume.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.btn_volume.setText("")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/imgFMV/images/volume_up.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_volume.setIcon(icon12)
        self.btn_volume.setFlat(True)
        self.btn_volume.setObjectName("btn_volume")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.btn_volume)
        self.volumeSlider = QtWidgets.QSlider(self.gb_PlayerControls)
        self.volumeSlider.setMaximum(100)
        self.volumeSlider.setProperty("value", 100)
        self.volumeSlider.setOrientation(QtCore.Qt.Horizontal)
        self.volumeSlider.setObjectName("volumeSlider")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.volumeSlider)
        self.horizontalLayout.addLayout(self.formLayout)
        self.v_label = QtWidgets.QLabel(self.gb_PlayerControls)
        self.v_label.setStyleSheet("color: #898989")
        self.v_label.setObjectName("v_label")
        self.horizontalLayout.addWidget(self.v_label)
        self.verticalLayout.addWidget(self.gb_PlayerControls)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.progressBarProcessor = QtWidgets.QProgressBar(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressBarProcessor.sizePolicy().hasHeightForWidth())
        self.progressBarProcessor.setSizePolicy(sizePolicy)
        self.progressBarProcessor.setMinimumSize(QtCore.QSize(0, 13))
        self.progressBarProcessor.setMaximumSize(QtCore.QSize(16777215, 13))
        font = QtGui.QFont()
        font.setFamily("Calibri")
        font.setPointSize(5)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.progressBarProcessor.setFont(font)
        self.progressBarProcessor.setStyleSheet(
            "QProgressBar\n"
            "{\n"
            "    border: 0px solid grey;\n"
            "    border-radius: 5px;\n"
            "    text-align: center;\n"
            "}\n"
            "QProgressBar::chunk\n"
            "{\n"
            "    background-color: #2196f3;\n"
            "    width: 2px;\n"
            "    margin: 0.2px;\n"
            "}")
        self.progressBarProcessor.setProperty("value", 0)
        self.progressBarProcessor.setInvertedAppearance(False)
        self.progressBarProcessor.setObjectName("progressBarProcessor")
        self.horizontalLayout_4.addWidget(self.progressBarProcessor)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        PlayerWindow.setCentralWidget(self.centralwidget)
        self.menubarwidget = QtWidgets.QMenuBar(PlayerWindow)
        self.menubarwidget.setGeometry(QtCore.QRect(0, 0, 742, 21))
        self.menubarwidget.setStyleSheet("QMenuBar {\n"
                                         "    background-color: transparent;\n"
                                         "}")
        self.menubarwidget.setObjectName("menubarwidget")
        self.menuFile = QtWidgets.QMenu(self.menubarwidget)
        self.menuFile.setObjectName("menuFile")
        self.menuFrames = QtWidgets.QMenu(self.menubarwidget)
        self.menuFrames.setObjectName("menuFrames")
        self.menuMetadata = QtWidgets.QMenu(self.menubarwidget)
        self.menuMetadata.setObjectName("menuMetadata")
        self.menuConverter = QtWidgets.QMenu(self.menubarwidget)
        self.menuConverter.setObjectName("menuConverter")
        self.menuInfo = QtWidgets.QMenu(self.menubarwidget)
        self.menuInfo.setObjectName("menuInfo")
        self.menuPlot_Bitrate = QtWidgets.QMenu(self.menubarwidget)
        self.menuPlot_Bitrate.setObjectName("menuPlot_Bitrate")
        self.menuUtils = QtWidgets.QMenu(self.menubarwidget)
        self.menuUtils.setObjectName("menuUtils")
        PlayerWindow.setMenuBar(self.menubarwidget)
        self.statusbar = QtWidgets.QStatusBar(PlayerWindow)
        self.statusbar.setObjectName("statusbar")
        PlayerWindow.setStatusBar(self.statusbar)
        self.actionGray = QtWidgets.QAction(PlayerWindow)
        self.actionGray.setCheckable(True)
        self.actionGray.setObjectName("actionGray")
        self.actionEdge_Detection = QtWidgets.QAction(PlayerWindow)
        self.actionEdge_Detection.setCheckable(True)
        self.actionEdge_Detection.setObjectName("actionEdge_Detection")
        self.actionCapture_Current_Frame = QtWidgets.QAction(PlayerWindow)
        self.actionCapture_Current_Frame.setObjectName(
            "actionCapture_Current_Frame")
        self.actionExtract_All_Frames = QtWidgets.QAction(PlayerWindow)
        self.actionExtract_All_Frames.setObjectName("actionExtract_All_Frames")
        self.actionShow_Metadata = QtWidgets.QAction(PlayerWindow)
        self.actionShow_Metadata.setObjectName("actionShow_Metadata")
        self.actionConverter_Video = QtWidgets.QAction(PlayerWindow)
        self.actionConverter_Video.setObjectName("actionConverter_Video")
        self.actionSave_Video_Info = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Video_Info.setObjectName("actionSave_Video_Info")
        self.actionAudio = QtWidgets.QAction(PlayerWindow)
        self.actionAudio.setObjectName("actionAudio")
        self.actionVideo = QtWidgets.QAction(PlayerWindow)
        self.actionVideo.setObjectName("actionVideo")
        self.actionAudio_Video = QtWidgets.QAction(PlayerWindow)
        self.actionAudio_Video.setObjectName("actionAudio_Video")
        self.actionSave_Audio = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Audio.setObjectName("actionSave_Audio")
        self.actionSave_Video = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Video.setObjectName("actionSave_Video")
        self.actionSave_All = QtWidgets.QAction(PlayerWindow)
        self.actionSave_All.setObjectName("actionSave_All")
        self.actionShow_Video_Info = QtWidgets.QAction(PlayerWindow)
        self.actionShow_Video_Info.setObjectName("actionShow_Video_Info")
        self.actionInvert_Color = QtWidgets.QAction(PlayerWindow)
        self.actionInvert_Color.setCheckable(True)
        self.actionInvert_Color.setObjectName("actionInvert_Color")
        self.actionMono_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionMono_Filter.setCheckable(True)
        self.actionMono_Filter.setObjectName("actionMono_Filter")
        self.actionCanny_edge_detection = QtWidgets.QAction(PlayerWindow)
        self.actionCanny_edge_detection.setCheckable(True)
        self.actionCanny_edge_detection.setObjectName(
            "actionCanny_edge_detection")
        self.actionZoom_Rectangle = QtWidgets.QAction(PlayerWindow)
        self.actionZoom_Rectangle.setCheckable(True)
        self.actionZoom_Rectangle.setEnabled(False)
        self.actionZoom_Rectangle.setObjectName("actionZoom_Rectangle")
        self.actionMagnifying_glass = QtWidgets.QAction(PlayerWindow)
        self.actionMagnifying_glass.setCheckable(True)
        self.actionMagnifying_glass.setObjectName("actionMagnifying_glass")
        self.actionAuto_Contrast_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionAuto_Contrast_Filter.setCheckable(True)
        self.actionAuto_Contrast_Filter.setObjectName(
            "actionAuto_Contrast_Filter")
        self.actionCreate_Mosaic = QtWidgets.QAction(PlayerWindow)
        self.actionCreate_Mosaic.setObjectName("actionCreate_Mosaic")
        self.actionDraw_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Pinpoint.setCheckable(True)
        self.actionDraw_Pinpoint.setObjectName("actionDraw_Pinpoint")
        self.actionDraw_Line = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Line.setCheckable(True)
        self.actionDraw_Line.setObjectName("actionDraw_Line")
        self.menuFile.addAction(self.actionGray)
        self.menuFile.addAction(self.actionInvert_Color)
        self.menuFile.addAction(self.actionMono_Filter)
        self.menuFile.addAction(self.actionCanny_edge_detection)
        self.menuFile.addAction(self.actionAuto_Contrast_Filter)
        self.menuFrames.addAction(self.actionCapture_Current_Frame)
        self.menuFrames.addAction(self.actionExtract_All_Frames)
        self.menuMetadata.addAction(self.actionShow_Metadata)
        self.menuConverter.addAction(self.actionConverter_Video)
        self.menuInfo.addAction(self.actionShow_Video_Info)
        self.menuInfo.addSeparator()
        self.menuInfo.addAction(self.actionSave_Video_Info)
        self.menuPlot_Bitrate.addAction(self.actionAudio)
        self.menuPlot_Bitrate.addAction(self.actionVideo)
        self.menuPlot_Bitrate.addSeparator()
        self.menuPlot_Bitrate.addAction(self.actionSave_Audio)
        self.menuPlot_Bitrate.addAction(self.actionSave_Video)
        self.menuUtils.addAction(self.actionZoom_Rectangle)
        self.menuUtils.addAction(self.actionMagnifying_glass)
        self.menuUtils.addAction(self.actionDraw_Pinpoint)
        self.menuUtils.addAction(self.actionDraw_Line)
        self.menubarwidget.addAction(self.menuFile.menuAction())
        self.menubarwidget.addAction(self.menuUtils.menuAction())
        self.menubarwidget.addAction(self.menuFrames.menuAction())
        self.menubarwidget.addAction(self.menuMetadata.menuAction())
        self.menubarwidget.addAction(self.menuConverter.menuAction())
        self.menubarwidget.addAction(self.menuInfo.menuAction())
        self.menubarwidget.addAction(self.menuPlot_Bitrate.menuAction())

        self.retranslateUi(PlayerWindow)
        self.gb_PlayerControls.toggled['bool'].connect(
            PlayerWindow.toggleGroup)
        self.btn_play.clicked['bool'].connect(PlayerWindow.playClicked)
        self.sliderDuration.sliderMoved['int'].connect(PlayerWindow.seek)
        self.volumeSlider.sliderMoved['int'].connect(PlayerWindow.setVolume)
        self.actionGray.triggered['bool'].connect(PlayerWindow.grayFilter)
        self.btn_CaptureFrame.clicked.connect(PlayerWindow.ExtractCurrentFrame)
        self.btn_Color.clicked.connect(PlayerWindow.showColorDialog)
        self.btn_volume.clicked.connect(PlayerWindow.setMuted)
        self.btn_stop.clicked['bool'].connect(PlayerWindow.stop)
        self.btn_previous.clicked.connect(PlayerWindow.StartMedia)
        self.btn_next.clicked.connect(PlayerWindow.EndMedia)
        self.btn_repeat.toggled['bool'].connect(PlayerWindow.AutoRepeat)
        self.actionShow_Metadata.triggered.connect(
            PlayerWindow.OpenQgsFmvMetadata)
        self.actionExtract_All_Frames.triggered.connect(
            PlayerWindow.ExtractAllFrames)
        self.actionCapture_Current_Frame.triggered.connect(
            PlayerWindow.ExtractCurrentFrame)
        self.actionSave_Video_Info.triggered.connect(
            PlayerWindow.saveInfoToJson)
        self.actionAudio_Video.triggered.connect(
            PlayerWindow.CreateBitratePlot)
        self.actionAudio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionVideo.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_All.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Audio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Video.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionShow_Video_Info.triggered.connect(
            PlayerWindow.showVideoInfo)
        self.actionConverter_Video.triggered.connect(PlayerWindow.convertVideo)
        self.btn_rewind.clicked.connect(PlayerWindow.rewindMedia)
        self.btn_forward.clicked.connect(PlayerWindow.forwardMedia)
        self.btn_Rec.clicked['bool'].connect(PlayerWindow.RecordVideo)
        self.actionInvert_Color.triggered['bool'].connect(
            PlayerWindow.invertColorFilter)
        self.actionCanny_edge_detection.triggered['bool'].connect(
            PlayerWindow.edgeFilter)
        self.actionMono_Filter.triggered['bool'].connect(
            PlayerWindow.monoFilter)
        self.actionZoom_Rectangle.triggered['bool'].connect(
            PlayerWindow.zoomRect)
        self.actionDraw_Pinpoint.triggered['bool'].connect(
            PlayerWindow.pointDrawer)
        self.actionMagnifying_glass.triggered['bool'].connect(
            PlayerWindow.magnifier)
        self.actionAuto_Contrast_Filter.triggered['bool'].connect(
            PlayerWindow.autoContrastFilter)
        self.actionCreate_Mosaic.triggered['bool'].connect(
            PlayerWindow.createMosaic)
        self.btn_GeoReferencing.clicked['bool'].connect(
            PlayerWindow.createMosaic)
        self.actionDraw_Line.triggered['bool'].connect(PlayerWindow.lineDrawer)
        QtCore.QMetaObject.connectSlotsByName(PlayerWindow)
コード例 #2
0
ファイル: ui_FmvPlayer.py プロジェクト: Mariosmsk/QGISFMV
    def setupUi(self, PlayerWindow):
        PlayerWindow.setObjectName("PlayerWindow")
        PlayerWindow.resize(748, 652)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(PlayerWindow.sizePolicy().hasHeightForWidth())
        PlayerWindow.setSizePolicy(sizePolicy)
        PlayerWindow.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        PlayerWindow.setAcceptDrops(True)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/imgFMV/images/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        PlayerWindow.setWindowIcon(icon)
        PlayerWindow.setWindowOpacity(1.0)
        PlayerWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        PlayerWindow.setAnimated(False)
        PlayerWindow.setDockNestingEnabled(True)
        self.centralwidget = QtWidgets.QWidget(PlayerWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.toolBtn_DPoint = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DPoint.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DPoint.setText("")
        self.toolBtn_DPoint.setAutoExclusive(False)
        self.toolBtn_DPoint.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DPoint.setAutoRaise(False)
        self.toolBtn_DPoint.setObjectName("toolBtn_DPoint")
        self.horizontalLayout_5.addWidget(self.toolBtn_DPoint)
        self.toolBtn_DPolygon = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DPolygon.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DPolygon.setText("")
        self.toolBtn_DPolygon.setAutoExclusive(False)
        self.toolBtn_DPolygon.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DPolygon.setAutoRaise(False)
        self.toolBtn_DPolygon.setObjectName("toolBtn_DPolygon")
        self.horizontalLayout_5.addWidget(self.toolBtn_DPolygon)
        self.toolBtn_Cesure = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_Cesure.setCursor(QtGui.QCursor(QtCore.Qt.OpenHandCursor))
        self.toolBtn_Cesure.setText("")
        self.toolBtn_Cesure.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_Cesure.setObjectName("toolBtn_Cesure")
        self.horizontalLayout_5.addWidget(self.toolBtn_Cesure)
        self.toolBtn_DLine = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DLine.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DLine.setText("")
        self.toolBtn_DLine.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DLine.setObjectName("toolBtn_DLine")
        self.horizontalLayout_5.addWidget(self.toolBtn_DLine)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.videoWidget = VideoWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(self.videoWidget.sizePolicy().hasHeightForWidth())
        self.videoWidget.setSizePolicy(sizePolicy)
        self.videoWidget.setMinimumSize(QtCore.QSize(0, 350))
        self.videoWidget.setMouseTracking(True)
        self.videoWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.videoWidget.setToolTip("")
        self.videoWidget.setStyleSheet("QWidget {\n"
" background-color:black;\n"
" } ")
        self.videoWidget.setObjectName("videoWidget")
        self.verticalLayout.addWidget(self.videoWidget)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.sliderDuration = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sliderDuration.sizePolicy().hasHeightForWidth())
        self.sliderDuration.setSizePolicy(sizePolicy)
        self.sliderDuration.setMinimum(0)
        self.sliderDuration.setMaximum(100)
        self.sliderDuration.setOrientation(QtCore.Qt.Horizontal)
        self.sliderDuration.setObjectName("sliderDuration")
        self.horizontalLayout_2.addWidget(self.sliderDuration)
        self.labelDuration = QtWidgets.QLabel(self.centralwidget)
        self.labelDuration.setText("")
        self.labelDuration.setObjectName("labelDuration")
        self.horizontalLayout_2.addWidget(self.labelDuration)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btn_Color = QtWidgets.QPushButton(self.groupBox)
        self.btn_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_Color.sizePolicy().hasHeightForWidth())
        self.btn_Color.setSizePolicy(sizePolicy)
        self.btn_Color.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Color.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/imgFMV/images/color_picker.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_Color.setIcon(icon1)
        self.btn_Color.setFlat(True)
        self.btn_Color.setObjectName("btn_Color")
        self.horizontalLayout_3.addWidget(self.btn_Color)
        self.btn_Rec = QtWidgets.QPushButton(self.groupBox)
        self.btn_Rec.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Rec.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/record.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/rec_on.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.btn_Rec.setIcon(icon2)
        self.btn_Rec.setCheckable(True)
        self.btn_Rec.setFlat(True)
        self.btn_Rec.setObjectName("btn_Rec")
        self.horizontalLayout_3.addWidget(self.btn_Rec)
        self.btn_GeoReferencing = QtWidgets.QPushButton(self.groupBox)
        self.btn_GeoReferencing.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_GeoReferencing.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/imgFMV/images/mosaic.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_GeoReferencing.setIcon(icon3)
        self.btn_GeoReferencing.setCheckable(True)
        self.btn_GeoReferencing.setFlat(True)
        self.btn_GeoReferencing.setObjectName("btn_GeoReferencing")
        self.horizontalLayout_3.addWidget(self.btn_GeoReferencing)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.lb_cursor_coord = QtWidgets.QLabel(self.groupBox)
        self.lb_cursor_coord.setText("")
        self.lb_cursor_coord.setAlignment(QtCore.Qt.AlignCenter)
        self.lb_cursor_coord.setObjectName("lb_cursor_coord")
        self.horizontalLayout_3.addWidget(self.lb_cursor_coord)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.btn_CaptureFrame = QtWidgets.QPushButton(self.groupBox)
        self.btn_CaptureFrame.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_CaptureFrame.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/imgFMV/images/screenshot.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_CaptureFrame.setIcon(icon4)
        self.btn_CaptureFrame.setFlat(True)
        self.btn_CaptureFrame.setObjectName("btn_CaptureFrame")
        self.horizontalLayout_3.addWidget(self.btn_CaptureFrame)
        self.verticalLayout.addWidget(self.groupBox)
        self.gb_PlayerControls = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gb_PlayerControls.sizePolicy().hasHeightForWidth())
        self.gb_PlayerControls.setSizePolicy(sizePolicy)
        self.gb_PlayerControls.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.gb_PlayerControls.setStyleSheet("QGroupBox::indicator {\n"
"                 width: 13px;\n"
"                 height: 13px;\n"
"            }  \n"
"           QGroupBox::indicator:unchecked {\n"
"                 image: url(:/imgFMV/images/up.png);\n"
"            }\n"
"           QGroupBox::indicator:checked {\n"
"               image: url(:/imgFMV/images/down.png);\n"
"                }")
        self.gb_PlayerControls.setFlat(True)
        self.gb_PlayerControls.setCheckable(True)
        self.gb_PlayerControls.setObjectName("gb_PlayerControls")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.gb_PlayerControls)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btn_previous = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_previous.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_previous.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-previous.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_previous.setIcon(icon5)
        self.btn_previous.setFlat(True)
        self.btn_previous.setObjectName("btn_previous")
        self.horizontalLayout.addWidget(self.btn_previous)
        self.btn_rewind = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_rewind.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_rewind.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-rewind.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_rewind.setIcon(icon6)
        self.btn_rewind.setCheckable(False)
        self.btn_rewind.setFlat(True)
        self.btn_rewind.setObjectName("btn_rewind")
        self.horizontalLayout.addWidget(self.btn_rewind)
        self.btn_stop = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_stop.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_stop.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/imgFMV/images/stop.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_stop.setIcon(icon7)
        self.btn_stop.setFlat(True)
        self.btn_stop.setObjectName("btn_stop")
        self.horizontalLayout.addWidget(self.btn_stop)
        self.btn_play = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_play.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_play.setText("")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/imgFMV/images/play-arrow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_play.setIcon(icon8)
        self.btn_play.setFlat(True)
        self.btn_play.setObjectName("btn_play")
        self.horizontalLayout.addWidget(self.btn_play)
        self.btn_forward = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_forward.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_forward.setText("")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-forward.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_forward.setIcon(icon9)
        self.btn_forward.setCheckable(False)
        self.btn_forward.setAutoDefault(True)
        self.btn_forward.setFlat(True)
        self.btn_forward.setObjectName("btn_forward")
        self.horizontalLayout.addWidget(self.btn_forward)
        self.btn_next = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_next.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_next.setText("")
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-next.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_next.setIcon(icon10)
        self.btn_next.setFlat(True)
        self.btn_next.setObjectName("btn_next")
        self.horizontalLayout.addWidget(self.btn_next)
        self.btn_repeat = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_repeat.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_repeat.setText("")
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(":/imgFMV/images/repeat.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_repeat.setIcon(icon11)
        self.btn_repeat.setCheckable(True)
        self.btn_repeat.setFlat(True)
        self.btn_repeat.setObjectName("btn_repeat")
        self.horizontalLayout.addWidget(self.btn_repeat)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.btn_volume = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_volume.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_volume.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.btn_volume.setStatusTip("")
        self.btn_volume.setWhatsThis("")
        self.btn_volume.setText("")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/imgFMV/images/volume_up.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_volume.setIcon(icon12)
        self.btn_volume.setFlat(True)
        self.btn_volume.setObjectName("btn_volume")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.btn_volume)
        self.volumeSlider = QtWidgets.QSlider(self.gb_PlayerControls)
        self.volumeSlider.setMaximum(100)
        self.volumeSlider.setProperty("value", 100)
        self.volumeSlider.setOrientation(QtCore.Qt.Horizontal)
        self.volumeSlider.setObjectName("volumeSlider")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.volumeSlider)
        self.horizontalLayout.addLayout(self.formLayout)
        self.v_label = QtWidgets.QLabel(self.gb_PlayerControls)
        self.v_label.setStyleSheet("color: #898989")
        self.v_label.setObjectName("v_label")
        self.horizontalLayout.addWidget(self.v_label)
        self.verticalLayout.addWidget(self.gb_PlayerControls)
        PlayerWindow.setCentralWidget(self.centralwidget)
        self.menubarwidget = QtWidgets.QMenuBar(PlayerWindow)
        self.menubarwidget.setGeometry(QtCore.QRect(0, 0, 748, 21))
        self.menubarwidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.menubarwidget.setStyleSheet("QMenuBar {\n"
"    background-color: transparent;\n"
"}")
        self.menubarwidget.setObjectName("menubarwidget")
        self.menuFile = QtWidgets.QMenu(self.menubarwidget)
        self.menuFile.setObjectName("menuFile")
        self.menuFrames = QtWidgets.QMenu(self.menubarwidget)
        self.menuFrames.setObjectName("menuFrames")
        self.menuMetadata = QtWidgets.QMenu(self.menubarwidget)
        self.menuMetadata.setObjectName("menuMetadata")
        self.menuConverter = QtWidgets.QMenu(self.menubarwidget)
        self.menuConverter.setObjectName("menuConverter")
        self.menuInfo = QtWidgets.QMenu(self.menubarwidget)
        self.menuInfo.setObjectName("menuInfo")
        self.menuPlot_Bitrate = QtWidgets.QMenu(self.menubarwidget)
        self.menuPlot_Bitrate.setObjectName("menuPlot_Bitrate")
        self.menuMap = QtWidgets.QMenu(self.menubarwidget)
        self.menuMap.setObjectName("menuMap")
        PlayerWindow.setMenuBar(self.menubarwidget)
        self.statusbar = QtWidgets.QStatusBar(PlayerWindow)
        self.statusbar.setObjectName("statusbar")
        PlayerWindow.setStatusBar(self.statusbar)
        self.DrawToolBar = QtWidgets.QToolBar(PlayerWindow)
        self.DrawToolBar.setObjectName("DrawToolBar")
        PlayerWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.DrawToolBar)
        self.actionGray = QtWidgets.QAction(PlayerWindow)
        self.actionGray.setCheckable(True)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(":/imgFMV/images/grayscale.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionGray.setIcon(icon13)
        self.actionGray.setObjectName("actionGray")
        self.actionEdge_Detection = QtWidgets.QAction(PlayerWindow)
        self.actionEdge_Detection.setCheckable(True)
        self.actionEdge_Detection.setObjectName("actionEdge_Detection")
        self.actionCapture_Current_Frame = QtWidgets.QAction(PlayerWindow)
        self.actionCapture_Current_Frame.setIcon(icon4)
        self.actionCapture_Current_Frame.setObjectName("actionCapture_Current_Frame")
        self.actionExtract_All_Frames = QtWidgets.QAction(PlayerWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(":/imgFMV/images/capture_all_frames.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionExtract_All_Frames.setIcon(icon14)
        self.actionExtract_All_Frames.setObjectName("actionExtract_All_Frames")
        self.actionShow_Metadata = QtWidgets.QAction(PlayerWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(":/imgFMV/images/show-metadata.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShow_Metadata.setIcon(icon15)
        self.actionShow_Metadata.setObjectName("actionShow_Metadata")
        self.actionConverter_Video = QtWidgets.QAction(PlayerWindow)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(":/imgFMV/images/video-converter.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionConverter_Video.setIcon(icon16)
        self.actionConverter_Video.setObjectName("actionConverter_Video")
        self.actionSave_Video_Info = QtWidgets.QAction(PlayerWindow)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(QtGui.QPixmap(":/imgFMV/images/save-video-info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Video_Info.setIcon(icon17)
        self.actionSave_Video_Info.setObjectName("actionSave_Video_Info")
        self.actionAudio = QtWidgets.QAction(PlayerWindow)
        icon18 = QtGui.QIcon()
        icon18.addPixmap(QtGui.QPixmap(":/imgFMV/images/show-bitrate.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAudio.setIcon(icon18)
        self.actionAudio.setObjectName("actionAudio")
        self.actionVideo = QtWidgets.QAction(PlayerWindow)
        self.actionVideo.setIcon(icon18)
        self.actionVideo.setObjectName("actionVideo")
        self.actionAudio_Video = QtWidgets.QAction(PlayerWindow)
        self.actionAudio_Video.setObjectName("actionAudio_Video")
        self.actionSave_Audio = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Audio.setObjectName("actionSave_Audio")
        self.actionSave_Video = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Video.setObjectName("actionSave_Video")
        self.actionSave_All = QtWidgets.QAction(PlayerWindow)
        self.actionSave_All.setObjectName("actionSave_All")
        self.actionShow_Video_Info = QtWidgets.QAction(PlayerWindow)
        icon19 = QtGui.QIcon()
        icon19.addPixmap(QtGui.QPixmap(":/imgFMV/images/video-info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShow_Video_Info.setIcon(icon19)
        self.actionShow_Video_Info.setObjectName("actionShow_Video_Info")
        self.actionInvert_Color = QtWidgets.QAction(PlayerWindow)
        self.actionInvert_Color.setCheckable(True)
        icon20 = QtGui.QIcon()
        icon20.addPixmap(QtGui.QPixmap(":/imgFMV/images/invert-colors.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionInvert_Color.setIcon(icon20)
        self.actionInvert_Color.setObjectName("actionInvert_Color")
        self.actionMono_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionMono_Filter.setCheckable(True)
        icon21 = QtGui.QIcon()
        icon21.addPixmap(QtGui.QPixmap(":/imgFMV/images/mono.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMono_Filter.setIcon(icon21)
        self.actionMono_Filter.setObjectName("actionMono_Filter")
        self.actionCanny_edge_detection = QtWidgets.QAction(PlayerWindow)
        self.actionCanny_edge_detection.setCheckable(True)
        icon22 = QtGui.QIcon()
        icon22.addPixmap(QtGui.QPixmap(":/imgFMV/images/canny.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCanny_edge_detection.setIcon(icon22)
        self.actionCanny_edge_detection.setObjectName("actionCanny_edge_detection")
        self.actionZoom_Rectangle = QtWidgets.QAction(PlayerWindow)
        self.actionZoom_Rectangle.setCheckable(True)
        self.actionZoom_Rectangle.setEnabled(True)
        self.actionZoom_Rectangle.setObjectName("actionZoom_Rectangle")
        self.actionMagnifying_glass = QtWidgets.QAction(PlayerWindow)
        self.actionMagnifying_glass.setCheckable(True)
        icon23 = QtGui.QIcon()
        icon23.addPixmap(QtGui.QPixmap(":/imgFMV/images/magnifier-glass.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMagnifying_glass.setIcon(icon23)
        self.actionMagnifying_glass.setObjectName("actionMagnifying_glass")
        self.actionAuto_Contrast_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionAuto_Contrast_Filter.setCheckable(True)
        icon24 = QtGui.QIcon()
        icon24.addPixmap(QtGui.QPixmap(":/imgFMV/images/automatic-contrast.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAuto_Contrast_Filter.setIcon(icon24)
        self.actionAuto_Contrast_Filter.setObjectName("actionAuto_Contrast_Filter")
        self.actionCreate_Mosaic = QtWidgets.QAction(PlayerWindow)
        self.actionCreate_Mosaic.setIcon(icon3)
        self.actionCreate_Mosaic.setObjectName("actionCreate_Mosaic")
        self.actionDraw_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Pinpoint.setCheckable(True)
        icon25 = QtGui.QIcon()
        icon25.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-point.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Pinpoint.setIcon(icon25)
        self.actionDraw_Pinpoint.setObjectName("actionDraw_Pinpoint")
        self.actionDraw_Line = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Line.setCheckable(True)
        icon26 = QtGui.QIcon()
        icon26.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polyline.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Line.setIcon(icon26)
        self.actionDraw_Line.setObjectName("actionDraw_Line")
        self.actionDraw_Polygon = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon.setCheckable(True)
        icon27 = QtGui.QIcon()
        icon27.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polygon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon.setIcon(icon27)
        self.actionDraw_Polygon.setObjectName("actionDraw_Polygon")
        self.actionObject_Tracking = QtWidgets.QAction(PlayerWindow)
        self.actionObject_Tracking.setCheckable(True)
        icon28 = QtGui.QIcon()
        icon28.addPixmap(QtGui.QPixmap(":/imgFMV/images/object-tracking.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionObject_Tracking.setIcon(icon28)
        self.actionObject_Tracking.setObjectName("actionObject_Tracking")
        self.actionRuler = QtWidgets.QAction(PlayerWindow)
        self.actionRuler.setCheckable(True)
        icon29 = QtGui.QIcon()
        icon29.addPixmap(QtGui.QPixmap(":/imgFMV/images/ruler.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRuler.setIcon(icon29)
        self.actionRuler.setObjectName("actionRuler")
        self.actionHandDraw = QtWidgets.QAction(PlayerWindow)
        self.actionHandDraw.setCheckable(True)
        icon30 = QtGui.QIcon()
        icon30.addPixmap(QtGui.QPixmap(":/imgFMV/images/HandDraw.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionHandDraw.setIcon(icon30)
        self.actionHandDraw.setObjectName("actionHandDraw")
        self.actionMirroredH = QtWidgets.QAction(PlayerWindow)
        self.actionMirroredH.setCheckable(True)
        icon31 = QtGui.QIcon()
        icon31.addPixmap(QtGui.QPixmap(":/imgFMV/images/mirrored.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMirroredH.setIcon(icon31)
        self.actionMirroredH.setObjectName("actionMirroredH")
        self.actionCensure = QtWidgets.QAction(PlayerWindow)
        self.actionCensure.setCheckable(True)
        icon32 = QtGui.QIcon()
        icon32.addPixmap(QtGui.QPixmap(":/imgFMV/images/censure-pencil.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCensure.setIcon(icon32)
        self.actionCensure.setObjectName("actionCensure")
        self.actionRemove_Last_censured = QtWidgets.QAction(PlayerWindow)
        icon33 = QtGui.QIcon()
        icon33.addPixmap(QtGui.QPixmap(":/imgFMV/images/censure-pencil-remove-last.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_censured.setIcon(icon33)
        self.actionRemove_Last_censured.setObjectName("actionRemove_Last_censured")
        self.actionRemove_All_censured = QtWidgets.QAction(PlayerWindow)
        icon34 = QtGui.QIcon()
        icon34.addPixmap(QtGui.QPixmap(":/imgFMV/images/censure-pencil-remove-all.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_censured.setIcon(icon34)
        self.actionRemove_All_censured.setObjectName("actionRemove_All_censured")
        self.actionDraw_Polygon_remove_last = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon_remove_last.setCheckable(False)
        icon35 = QtGui.QIcon()
        icon35.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polygon-remove-last.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon_remove_last.setIcon(icon35)
        self.actionDraw_Polygon_remove_last.setObjectName("actionDraw_Polygon_remove_last")
        self.actionDraw_Polygon_remove_all = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon_remove_all.setCheckable(False)
        icon36 = QtGui.QIcon()
        icon36.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polygon-remove-all.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon_remove_all.setIcon(icon36)
        self.actionDraw_Polygon_remove_all.setObjectName("actionDraw_Polygon_remove_all")
        self.actionRemove_Last_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_Last_Pinpoint.setCheckable(False)
        icon37 = QtGui.QIcon()
        icon37.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-point-remove-last.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_Pinpoint.setIcon(icon37)
        self.actionRemove_Last_Pinpoint.setObjectName("actionRemove_Last_Pinpoint")
        self.actionRemove_All_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_All_Pinpoint.setCheckable(False)
        icon38 = QtGui.QIcon()
        icon38.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-point-remove-all.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_Pinpoint.setIcon(icon38)
        self.actionRemove_All_Pinpoint.setObjectName("actionRemove_All_Pinpoint")
        self.actionRemove_All_Line = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_All_Line.setCheckable(False)
        icon39 = QtGui.QIcon()
        icon39.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polyline-remove-all.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_Line.setIcon(icon39)
        self.actionRemove_All_Line.setObjectName("actionRemove_All_Line")
        self.actionLast_Segment_Line = QtWidgets.QAction(PlayerWindow)
        self.actionLast_Segment_Line.setCheckable(False)
        icon40 = QtGui.QIcon()
        icon40.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polyline-remove-last-segment.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLast_Segment_Line.setIcon(icon40)
        self.actionLast_Segment_Line.setObjectName("actionLast_Segment_Line")
        self.actionRemove_Last_Line = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_Last_Line.setCheckable(False)
        icon41 = QtGui.QIcon()
        icon41.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polyline-remove-last.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_Line.setIcon(icon41)
        self.actionRemove_Last_Line.setObjectName("actionRemove_Last_Line")
        self.actionCenter_on_Platform = QtWidgets.QAction(PlayerWindow)
        self.actionCenter_on_Platform.setCheckable(True)
        icon42 = QtGui.QIcon()
        icon42.addPixmap(QtGui.QPixmap(":/imgFMV/images/center_platform.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCenter_on_Platform.setIcon(icon42)
        self.actionCenter_on_Platform.setObjectName("actionCenter_on_Platform")
        self.actionCenter_on_Footprint = QtWidgets.QAction(PlayerWindow)
        self.actionCenter_on_Footprint.setCheckable(True)
        icon43 = QtGui.QIcon()
        icon43.addPixmap(QtGui.QPixmap(":/imgFMV/images/center_footprint.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCenter_on_Footprint.setIcon(icon43)
        self.actionCenter_on_Footprint.setObjectName("actionCenter_on_Footprint")
        self.actionCenter_Target = QtWidgets.QAction(PlayerWindow)
        self.actionCenter_Target.setCheckable(True)
        self.actionCenter_Target.setChecked(True)
        icon44 = QtGui.QIcon()
        icon44.addPixmap(QtGui.QPixmap(":/imgFMV/images/center_target.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCenter_Target.setIcon(icon44)
        self.actionCenter_Target.setObjectName("actionCenter_Target")
        self.toolBtn_DPoint.addAction(self.actionDraw_Pinpoint)
        self.toolBtn_DPoint.addAction(self.actionRemove_Last_Pinpoint)
        self.toolBtn_DPoint.addAction(self.actionRemove_All_Pinpoint)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon_remove_last)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon_remove_all)
        self.toolBtn_Cesure.addAction(self.actionCensure)
        self.toolBtn_Cesure.addAction(self.actionRemove_Last_censured)
        self.toolBtn_Cesure.addAction(self.actionRemove_All_censured)
        self.toolBtn_DLine.addAction(self.actionDraw_Line)
        self.toolBtn_DLine.addAction(self.actionLast_Segment_Line)
        self.toolBtn_DLine.addAction(self.actionRemove_Last_Line)
        self.toolBtn_DLine.addAction(self.actionRemove_All_Line)
        self.menuFile.addAction(self.actionGray)
        self.menuFile.addAction(self.actionInvert_Color)
        self.menuFile.addAction(self.actionMono_Filter)
        self.menuFile.addAction(self.actionCanny_edge_detection)
        self.menuFile.addAction(self.actionAuto_Contrast_Filter)
        self.menuFile.addAction(self.actionMirroredH)
        self.menuFrames.addAction(self.actionCapture_Current_Frame)
        self.menuFrames.addAction(self.actionExtract_All_Frames)
        self.menuMetadata.addAction(self.actionShow_Metadata)
        self.menuConverter.addAction(self.actionConverter_Video)
        self.menuInfo.addAction(self.actionShow_Video_Info)
        self.menuInfo.addSeparator()
        self.menuInfo.addAction(self.actionSave_Video_Info)
        self.menuPlot_Bitrate.addAction(self.actionAudio)
        self.menuPlot_Bitrate.addAction(self.actionVideo)
        self.menuPlot_Bitrate.addSeparator()
        self.menuPlot_Bitrate.addAction(self.actionSave_Audio)
        self.menuPlot_Bitrate.addAction(self.actionSave_Video)
        self.menuMap.addAction(self.actionCenter_on_Platform)
        self.menuMap.addAction(self.actionCenter_on_Footprint)
        self.menuMap.addAction(self.actionCenter_Target)
        self.menubarwidget.addAction(self.menuFile.menuAction())
        self.menubarwidget.addAction(self.menuFrames.menuAction())
        self.menubarwidget.addAction(self.menuMetadata.menuAction())
        self.menubarwidget.addAction(self.menuConverter.menuAction())
        self.menubarwidget.addAction(self.menuInfo.menuAction())
        self.menubarwidget.addAction(self.menuPlot_Bitrate.menuAction())
        self.menubarwidget.addAction(self.menuMap.menuAction())

        self.retranslateUi(PlayerWindow)
        self.gb_PlayerControls.toggled['bool'].connect(PlayerWindow.toggleGroup)
        self.btn_play.clicked['bool'].connect(PlayerWindow.playClicked)
        self.sliderDuration.sliderMoved['int'].connect(PlayerWindow.seek)
        self.volumeSlider.sliderMoved['int'].connect(PlayerWindow.setVolume)
        self.actionGray.triggered['bool'].connect(PlayerWindow.grayFilter)
        self.btn_CaptureFrame.clicked.connect(PlayerWindow.ExtractCurrentFrame)
        self.btn_Color.clicked.connect(PlayerWindow.showColorDialog)
        self.btn_volume.clicked.connect(PlayerWindow.setMuted)
        self.btn_stop.clicked['bool'].connect(PlayerWindow.stop)
        self.btn_previous.clicked.connect(PlayerWindow.StartMedia)
        self.btn_next.clicked.connect(PlayerWindow.EndMedia)
        self.btn_repeat.toggled['bool'].connect(PlayerWindow.AutoRepeat)
        self.actionShow_Metadata.triggered.connect(PlayerWindow.OpenQgsFmvMetadata)
        self.actionExtract_All_Frames.triggered.connect(PlayerWindow.ExtractAllFrames)
        self.actionCapture_Current_Frame.triggered.connect(PlayerWindow.ExtractCurrentFrame)
        self.actionSave_Video_Info.triggered.connect(PlayerWindow.saveInfoToJson)
        self.actionAudio_Video.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionAudio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionVideo.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_All.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Audio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Video.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionShow_Video_Info.triggered.connect(PlayerWindow.showVideoInfo)
        self.actionConverter_Video.triggered.connect(PlayerWindow.convertVideo)
        self.btn_rewind.clicked.connect(PlayerWindow.rewindMedia)
        self.btn_forward.clicked.connect(PlayerWindow.forwardMedia)
        self.btn_Rec.clicked['bool'].connect(PlayerWindow.RecordVideo)
        self.actionInvert_Color.triggered['bool'].connect(PlayerWindow.invertColorFilter)
        self.actionCanny_edge_detection.triggered['bool'].connect(PlayerWindow.edgeFilter)
        self.actionMono_Filter.triggered['bool'].connect(PlayerWindow.monoFilter)
        self.actionDraw_Pinpoint.triggered['bool'].connect(PlayerWindow.pointDrawer)
        self.actionMagnifying_glass.triggered['bool'].connect(PlayerWindow.magnifier)
        self.actionAuto_Contrast_Filter.triggered['bool'].connect(PlayerWindow.autoContrastFilter)
        self.actionCreate_Mosaic.triggered['bool'].connect(PlayerWindow.createMosaic)
        self.btn_GeoReferencing.clicked['bool'].connect(PlayerWindow.createMosaic)
        self.actionDraw_Line.triggered['bool'].connect(PlayerWindow.lineDrawer)
        self.actionObject_Tracking.triggered['bool'].connect(PlayerWindow.ojectTracking)
        self.actionDraw_Polygon.triggered['bool'].connect(PlayerWindow.polygonDrawer)
        self.actionRuler.triggered['bool'].connect(PlayerWindow.VideoRuler)
        self.actionHandDraw.triggered['bool'].connect(PlayerWindow.VideoHandDraw)
        self.actionMirroredH.triggered['bool'].connect(PlayerWindow.MirrorHorizontalFilter)
        self.actionCensure.triggered['bool'].connect(PlayerWindow.VideoCensure)
        self.actionRemove_All_censured.triggered.connect(self.videoWidget.removeAllCensure)
        self.actionRemove_Last_censured.triggered.connect(self.videoWidget.removeLastCensured)
        self.actionDraw_Polygon_remove_last.triggered.connect(self.videoWidget.removeLastPolygon)
        self.actionDraw_Polygon_remove_all.triggered.connect(self.videoWidget.removeAllPolygon)
        self.actionRemove_Last_Pinpoint.triggered.connect(self.videoWidget.removeLastPoint)
        self.actionRemove_All_Pinpoint.triggered.connect(self.videoWidget.removeAllPoint)
        self.actionRemove_All_Line.triggered.connect(self.videoWidget.removeAllLines)
        self.actionRemove_Last_Line.triggered.connect(self.videoWidget.removeLastLine)
        self.actionLast_Segment_Line.triggered.connect(self.videoWidget.removeLastSegmentLine)
        self.actionCenter_on_Footprint.toggled['bool'].connect(PlayerWindow.centerMapFootprint)
        self.actionCenter_on_Platform.toggled['bool'].connect(PlayerWindow.centerMapPlatform)
        self.actionCenter_Target.toggled['bool'].connect(PlayerWindow.centerMapTarget)
        QtCore.QMetaObject.connectSlotsByName(PlayerWindow)
コード例 #3
0
class Ui_PlayerWindow(object):
    def setupUi(self, PlayerWindow):
        PlayerWindow.setObjectName("PlayerWindow")
        PlayerWindow.resize(748, 679)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            PlayerWindow.sizePolicy().hasHeightForWidth())
        PlayerWindow.setSizePolicy(sizePolicy)
        PlayerWindow.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        PlayerWindow.setAcceptDrops(True)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/imgFMV/images/icon.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        PlayerWindow.setWindowIcon(icon)
        PlayerWindow.setWindowOpacity(1.0)
        PlayerWindow.setLocale(
            QtCore.QLocale(QtCore.QLocale.English,
                           QtCore.QLocale.UnitedStates))
        PlayerWindow.setDockNestingEnabled(True)
        self.centralwidget = QtWidgets.QWidget(PlayerWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.toolBtn_DPoint = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DPoint.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DPoint.setText("")
        self.toolBtn_DPoint.setAutoExclusive(False)
        self.toolBtn_DPoint.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DPoint.setAutoRaise(False)
        self.toolBtn_DPoint.setObjectName("toolBtn_DPoint")
        self.horizontalLayout_5.addWidget(self.toolBtn_DPoint)
        self.toolBtn_DPolygon = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DPolygon.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DPolygon.setText("")
        self.toolBtn_DPolygon.setAutoExclusive(False)
        self.toolBtn_DPolygon.setPopupMode(
            QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DPolygon.setAutoRaise(False)
        self.toolBtn_DPolygon.setObjectName("toolBtn_DPolygon")
        self.horizontalLayout_5.addWidget(self.toolBtn_DPolygon)
        self.toolBtn_Cesure = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_Cesure.setCursor(QtGui.QCursor(QtCore.Qt.OpenHandCursor))
        self.toolBtn_Cesure.setText("")
        self.toolBtn_Cesure.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_Cesure.setObjectName("toolBtn_Cesure")
        self.horizontalLayout_5.addWidget(self.toolBtn_Cesure)
        self.toolBtn_DLine = QtWidgets.QToolButton(self.centralwidget)
        self.toolBtn_DLine.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.toolBtn_DLine.setText("")
        self.toolBtn_DLine.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.toolBtn_DLine.setObjectName("toolBtn_DLine")
        self.horizontalLayout_5.addWidget(self.toolBtn_DLine)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.videoWidget = VideoWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(
            self.videoWidget.sizePolicy().hasHeightForWidth())
        self.videoWidget.setSizePolicy(sizePolicy)
        self.videoWidget.setMinimumSize(QtCore.QSize(0, 350))
        self.videoWidget.setMouseTracking(True)
        self.videoWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.videoWidget.setToolTip("")
        self.videoWidget.setStyleSheet("QWidget {\n"
                                       " background-color:black;\n"
                                       " } ")
        self.videoWidget.setObjectName("videoWidget")
        self.verticalLayout.addWidget(self.videoWidget)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.sliderDuration = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sliderDuration.sizePolicy().hasHeightForWidth())
        self.sliderDuration.setSizePolicy(sizePolicy)
        self.sliderDuration.setMinimum(0)
        self.sliderDuration.setMaximum(100)
        self.sliderDuration.setOrientation(QtCore.Qt.Horizontal)
        self.sliderDuration.setObjectName("sliderDuration")
        self.horizontalLayout_2.addWidget(self.sliderDuration)
        self.labelDuration = QtWidgets.QLabel(self.centralwidget)
        self.labelDuration.setText("")
        self.labelDuration.setObjectName("labelDuration")
        self.horizontalLayout_2.addWidget(self.labelDuration)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btn_Color = QtWidgets.QPushButton(self.groupBox)
        self.btn_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_Color.sizePolicy().hasHeightForWidth())
        self.btn_Color.setSizePolicy(sizePolicy)
        self.btn_Color.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Color.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/imgFMV/images/color_picker.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_Color.setIcon(icon1)
        self.btn_Color.setFlat(True)
        self.btn_Color.setObjectName("btn_Color")
        self.horizontalLayout_3.addWidget(self.btn_Color)
        self.btn_Rec = QtWidgets.QPushButton(self.groupBox)
        self.btn_Rec.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_Rec.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/record.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        icon2.addPixmap(QtGui.QPixmap(":/imgFMV/images/rec_on.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.On)
        self.btn_Rec.setIcon(icon2)
        self.btn_Rec.setCheckable(True)
        self.btn_Rec.setFlat(True)
        self.btn_Rec.setObjectName("btn_Rec")
        self.horizontalLayout_3.addWidget(self.btn_Rec)
        self.btn_GeoReferencing = QtWidgets.QPushButton(self.groupBox)
        self.btn_GeoReferencing.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_GeoReferencing.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/imgFMV/images/mosaic.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_GeoReferencing.setIcon(icon3)
        self.btn_GeoReferencing.setCheckable(True)
        self.btn_GeoReferencing.setFlat(True)
        self.btn_GeoReferencing.setObjectName("btn_GeoReferencing")
        self.horizontalLayout_3.addWidget(self.btn_GeoReferencing)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.lb_cursor_coord = QtWidgets.QLabel(self.groupBox)
        self.lb_cursor_coord.setText("")
        self.lb_cursor_coord.setAlignment(QtCore.Qt.AlignCenter)
        self.lb_cursor_coord.setObjectName("lb_cursor_coord")
        self.horizontalLayout_3.addWidget(self.lb_cursor_coord)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.btn_CaptureFrame = QtWidgets.QPushButton(self.groupBox)
        self.btn_CaptureFrame.setCursor(
            QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_CaptureFrame.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/imgFMV/images/screenshot.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_CaptureFrame.setIcon(icon4)
        self.btn_CaptureFrame.setFlat(True)
        self.btn_CaptureFrame.setObjectName("btn_CaptureFrame")
        self.horizontalLayout_3.addWidget(self.btn_CaptureFrame)
        self.verticalLayout.addWidget(self.groupBox)
        self.gb_PlayerControls = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gb_PlayerControls.sizePolicy().hasHeightForWidth())
        self.gb_PlayerControls.setSizePolicy(sizePolicy)
        self.gb_PlayerControls.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.gb_PlayerControls.setStyleSheet(
            "QGroupBox::indicator {\n"
            "                 width: 13px;\n"
            "                 height: 13px;\n"
            "            }  \n"
            "           QGroupBox::indicator:unchecked {\n"
            "                 image: url(:/imgFMV/images/up.png);\n"
            "            }\n"
            "           QGroupBox::indicator:checked {\n"
            "               image: url(:/imgFMV/images/down.png);\n"
            "                }")
        self.gb_PlayerControls.setFlat(True)
        self.gb_PlayerControls.setCheckable(True)
        self.gb_PlayerControls.setObjectName("gb_PlayerControls")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.gb_PlayerControls)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btn_previous = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_previous.setCursor(QtGui.QCursor(
            QtCore.Qt.PointingHandCursor))
        self.btn_previous.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-previous.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_previous.setIcon(icon5)
        self.btn_previous.setFlat(True)
        self.btn_previous.setObjectName("btn_previous")
        self.horizontalLayout.addWidget(self.btn_previous)
        self.btn_rewind = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_rewind.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_rewind.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-rewind.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_rewind.setIcon(icon6)
        self.btn_rewind.setCheckable(False)
        self.btn_rewind.setFlat(True)
        self.btn_rewind.setObjectName("btn_rewind")
        self.horizontalLayout.addWidget(self.btn_rewind)
        self.btn_stop = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_stop.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_stop.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/imgFMV/images/stop.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_stop.setIcon(icon7)
        self.btn_stop.setFlat(True)
        self.btn_stop.setObjectName("btn_stop")
        self.horizontalLayout.addWidget(self.btn_stop)
        self.btn_play = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_play.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_play.setText("")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/imgFMV/images/play-arrow.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_play.setIcon(icon8)
        self.btn_play.setFlat(True)
        self.btn_play.setObjectName("btn_play")
        self.horizontalLayout.addWidget(self.btn_play)
        self.btn_forward = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_forward.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_forward.setText("")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/imgFMV/images/fast-forward.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_forward.setIcon(icon9)
        self.btn_forward.setCheckable(False)
        self.btn_forward.setAutoDefault(True)
        self.btn_forward.setFlat(True)
        self.btn_forward.setObjectName("btn_forward")
        self.horizontalLayout.addWidget(self.btn_forward)
        self.btn_next = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_next.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_next.setText("")
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(":/imgFMV/images/skip-next.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_next.setIcon(icon10)
        self.btn_next.setFlat(True)
        self.btn_next.setObjectName("btn_next")
        self.horizontalLayout.addWidget(self.btn_next)
        self.btn_repeat = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_repeat.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_repeat.setText("")
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap(":/imgFMV/images/repeat.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_repeat.setIcon(icon11)
        self.btn_repeat.setCheckable(True)
        self.btn_repeat.setFlat(True)
        self.btn_repeat.setObjectName("btn_repeat")
        self.horizontalLayout.addWidget(self.btn_repeat)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.btn_volume = QtWidgets.QPushButton(self.gb_PlayerControls)
        self.btn_volume.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.btn_volume.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.btn_volume.setStatusTip("")
        self.btn_volume.setWhatsThis("")
        self.btn_volume.setText("")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/imgFMV/images/volume_up.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_volume.setIcon(icon12)
        self.btn_volume.setFlat(True)
        self.btn_volume.setObjectName("btn_volume")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.btn_volume)
        self.volumeSlider = QtWidgets.QSlider(self.gb_PlayerControls)
        self.volumeSlider.setMaximum(100)
        self.volumeSlider.setProperty("value", 100)
        self.volumeSlider.setOrientation(QtCore.Qt.Horizontal)
        self.volumeSlider.setObjectName("volumeSlider")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.volumeSlider)
        self.horizontalLayout.addLayout(self.formLayout)
        self.v_label = QtWidgets.QLabel(self.gb_PlayerControls)
        self.v_label.setStyleSheet("color: #898989")
        self.v_label.setObjectName("v_label")
        self.horizontalLayout.addWidget(self.v_label)
        self.verticalLayout.addWidget(self.gb_PlayerControls)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.progressBarProcessor = QtWidgets.QProgressBar(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressBarProcessor.sizePolicy().hasHeightForWidth())
        self.progressBarProcessor.setSizePolicy(sizePolicy)
        self.progressBarProcessor.setMinimumSize(QtCore.QSize(0, 13))
        self.progressBarProcessor.setMaximumSize(QtCore.QSize(16777215, 13))
        font = QtGui.QFont()
        font.setFamily("Calibri")
        font.setPointSize(5)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.progressBarProcessor.setFont(font)
        self.progressBarProcessor.setStyleSheet(
            "QProgressBar\n"
            "{\n"
            "    border: 0px solid grey;\n"
            "    border-radius: 5px;\n"
            "    text-align: center;\n"
            "}\n"
            "QProgressBar::chunk\n"
            "{\n"
            "    background-color: #2196f3;\n"
            "    width: 2px;\n"
            "    margin: 0.2px;\n"
            "}")
        self.progressBarProcessor.setProperty("value", 0)
        self.progressBarProcessor.setInvertedAppearance(False)
        self.progressBarProcessor.setObjectName("progressBarProcessor")
        self.horizontalLayout_4.addWidget(self.progressBarProcessor)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        PlayerWindow.setCentralWidget(self.centralwidget)
        self.menubarwidget = QtWidgets.QMenuBar(PlayerWindow)
        self.menubarwidget.setGeometry(QtCore.QRect(0, 0, 748, 21))
        self.menubarwidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.menubarwidget.setStyleSheet("QMenuBar {\n"
                                         "    background-color: transparent;\n"
                                         "}")
        self.menubarwidget.setObjectName("menubarwidget")
        self.menuFile = QtWidgets.QMenu(self.menubarwidget)
        self.menuFile.setObjectName("menuFile")
        self.menuFrames = QtWidgets.QMenu(self.menubarwidget)
        self.menuFrames.setObjectName("menuFrames")
        self.menuMetadata = QtWidgets.QMenu(self.menubarwidget)
        self.menuMetadata.setObjectName("menuMetadata")
        self.menuConverter = QtWidgets.QMenu(self.menubarwidget)
        self.menuConverter.setObjectName("menuConverter")
        self.menuInfo = QtWidgets.QMenu(self.menubarwidget)
        self.menuInfo.setObjectName("menuInfo")
        self.menuPlot_Bitrate = QtWidgets.QMenu(self.menubarwidget)
        self.menuPlot_Bitrate.setObjectName("menuPlot_Bitrate")
        PlayerWindow.setMenuBar(self.menubarwidget)
        self.statusbar = QtWidgets.QStatusBar(PlayerWindow)
        self.statusbar.setObjectName("statusbar")
        PlayerWindow.setStatusBar(self.statusbar)
        self.DrawToolBar = QtWidgets.QToolBar(PlayerWindow)
        self.DrawToolBar.setObjectName("DrawToolBar")
        PlayerWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.DrawToolBar)
        self.actionGray = QtWidgets.QAction(PlayerWindow)
        self.actionGray.setCheckable(True)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(":/imgFMV/images/grayscale.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionGray.setIcon(icon13)
        self.actionGray.setObjectName("actionGray")
        self.actionEdge_Detection = QtWidgets.QAction(PlayerWindow)
        self.actionEdge_Detection.setCheckable(True)
        self.actionEdge_Detection.setObjectName("actionEdge_Detection")
        self.actionCapture_Current_Frame = QtWidgets.QAction(PlayerWindow)
        self.actionCapture_Current_Frame.setObjectName(
            "actionCapture_Current_Frame")
        self.actionExtract_All_Frames = QtWidgets.QAction(PlayerWindow)
        self.actionExtract_All_Frames.setObjectName("actionExtract_All_Frames")
        self.actionShow_Metadata = QtWidgets.QAction(PlayerWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap(":/imgFMV/images/show-metadata.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShow_Metadata.setIcon(icon14)
        self.actionShow_Metadata.setObjectName("actionShow_Metadata")
        self.actionConverter_Video = QtWidgets.QAction(PlayerWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(":/imgFMV/images/video-converter.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionConverter_Video.setIcon(icon15)
        self.actionConverter_Video.setObjectName("actionConverter_Video")
        self.actionSave_Video_Info = QtWidgets.QAction(PlayerWindow)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(":/imgFMV/images/save-video-info.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_Video_Info.setIcon(icon16)
        self.actionSave_Video_Info.setObjectName("actionSave_Video_Info")
        self.actionAudio = QtWidgets.QAction(PlayerWindow)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(QtGui.QPixmap(":/imgFMV/images/show-bitrate.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAudio.setIcon(icon17)
        self.actionAudio.setObjectName("actionAudio")
        self.actionVideo = QtWidgets.QAction(PlayerWindow)
        self.actionVideo.setIcon(icon17)
        self.actionVideo.setObjectName("actionVideo")
        self.actionAudio_Video = QtWidgets.QAction(PlayerWindow)
        self.actionAudio_Video.setObjectName("actionAudio_Video")
        self.actionSave_Audio = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Audio.setObjectName("actionSave_Audio")
        self.actionSave_Video = QtWidgets.QAction(PlayerWindow)
        self.actionSave_Video.setObjectName("actionSave_Video")
        self.actionSave_All = QtWidgets.QAction(PlayerWindow)
        self.actionSave_All.setObjectName("actionSave_All")
        self.actionShow_Video_Info = QtWidgets.QAction(PlayerWindow)
        icon18 = QtGui.QIcon()
        icon18.addPixmap(QtGui.QPixmap(":/imgFMV/images/video-info.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShow_Video_Info.setIcon(icon18)
        self.actionShow_Video_Info.setObjectName("actionShow_Video_Info")
        self.actionInvert_Color = QtWidgets.QAction(PlayerWindow)
        self.actionInvert_Color.setCheckable(True)
        icon19 = QtGui.QIcon()
        icon19.addPixmap(QtGui.QPixmap(":/imgFMV/images/invert-colors.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionInvert_Color.setIcon(icon19)
        self.actionInvert_Color.setObjectName("actionInvert_Color")
        self.actionMono_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionMono_Filter.setCheckable(True)
        self.actionMono_Filter.setObjectName("actionMono_Filter")
        self.actionCanny_edge_detection = QtWidgets.QAction(PlayerWindow)
        self.actionCanny_edge_detection.setCheckable(True)
        self.actionCanny_edge_detection.setObjectName(
            "actionCanny_edge_detection")
        self.actionZoom_Rectangle = QtWidgets.QAction(PlayerWindow)
        self.actionZoom_Rectangle.setCheckable(True)
        self.actionZoom_Rectangle.setEnabled(True)
        self.actionZoom_Rectangle.setObjectName("actionZoom_Rectangle")
        self.actionMagnifying_glass = QtWidgets.QAction(PlayerWindow)
        self.actionMagnifying_glass.setCheckable(True)
        icon20 = QtGui.QIcon()
        icon20.addPixmap(QtGui.QPixmap(":/imgFMV/images/magnifier-glass.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMagnifying_glass.setIcon(icon20)
        self.actionMagnifying_glass.setObjectName("actionMagnifying_glass")
        self.actionAuto_Contrast_Filter = QtWidgets.QAction(PlayerWindow)
        self.actionAuto_Contrast_Filter.setCheckable(True)
        icon21 = QtGui.QIcon()
        icon21.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/automatic-contrast.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAuto_Contrast_Filter.setIcon(icon21)
        self.actionAuto_Contrast_Filter.setObjectName(
            "actionAuto_Contrast_Filter")
        self.actionCreate_Mosaic = QtWidgets.QAction(PlayerWindow)
        self.actionCreate_Mosaic.setIcon(icon3)
        self.actionCreate_Mosaic.setObjectName("actionCreate_Mosaic")
        self.actionDraw_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Pinpoint.setCheckable(True)
        icon22 = QtGui.QIcon()
        icon22.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-point.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Pinpoint.setIcon(icon22)
        self.actionDraw_Pinpoint.setObjectName("actionDraw_Pinpoint")
        self.actionDraw_Line = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Line.setCheckable(True)
        icon23 = QtGui.QIcon()
        icon23.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polyline.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Line.setIcon(icon23)
        self.actionDraw_Line.setObjectName("actionDraw_Line")
        self.actionDraw_Polygon = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon.setCheckable(True)
        icon24 = QtGui.QIcon()
        icon24.addPixmap(QtGui.QPixmap(":/imgFMV/images/draw-polygon.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon.setIcon(icon24)
        self.actionDraw_Polygon.setObjectName("actionDraw_Polygon")
        self.actionObject_Tracking = QtWidgets.QAction(PlayerWindow)
        self.actionObject_Tracking.setCheckable(True)
        icon25 = QtGui.QIcon()
        icon25.addPixmap(QtGui.QPixmap(":/imgFMV/images/object-tracking.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionObject_Tracking.setIcon(icon25)
        self.actionObject_Tracking.setObjectName("actionObject_Tracking")
        self.actionRuler = QtWidgets.QAction(PlayerWindow)
        self.actionRuler.setCheckable(True)
        icon26 = QtGui.QIcon()
        icon26.addPixmap(QtGui.QPixmap(":/imgFMV/images/ruler.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRuler.setIcon(icon26)
        self.actionRuler.setObjectName("actionRuler")
        self.actionMirroredH = QtWidgets.QAction(PlayerWindow)
        self.actionMirroredH.setCheckable(True)
        icon27 = QtGui.QIcon()
        icon27.addPixmap(QtGui.QPixmap(":/imgFMV/images/mirrored.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMirroredH.setIcon(icon27)
        self.actionMirroredH.setObjectName("actionMirroredH")
        self.actionCensure = QtWidgets.QAction(PlayerWindow)
        self.actionCensure.setCheckable(True)
        icon28 = QtGui.QIcon()
        icon28.addPixmap(QtGui.QPixmap(":/imgFMV/images/censure-pencil.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionCensure.setIcon(icon28)
        self.actionCensure.setObjectName("actionCensure")
        self.actionRemove_Last_censured = QtWidgets.QAction(PlayerWindow)
        icon29 = QtGui.QIcon()
        icon29.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/censure-pencil-remove-last.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_censured.setIcon(icon29)
        self.actionRemove_Last_censured.setObjectName(
            "actionRemove_Last_censured")
        self.actionRemove_All_censured = QtWidgets.QAction(PlayerWindow)
        icon30 = QtGui.QIcon()
        icon30.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/censure-pencil-remove-all.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_censured.setIcon(icon30)
        self.actionRemove_All_censured.setObjectName(
            "actionRemove_All_censured")
        self.actionDraw_Polygon_remove_last = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon_remove_last.setCheckable(False)
        icon31 = QtGui.QIcon()
        icon31.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-polygon-remove-last.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon_remove_last.setIcon(icon31)
        self.actionDraw_Polygon_remove_last.setObjectName(
            "actionDraw_Polygon_remove_last")
        self.actionDraw_Polygon_remove_all = QtWidgets.QAction(PlayerWindow)
        self.actionDraw_Polygon_remove_all.setCheckable(False)
        icon32 = QtGui.QIcon()
        icon32.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-polygon-remove-all.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDraw_Polygon_remove_all.setIcon(icon32)
        self.actionDraw_Polygon_remove_all.setObjectName(
            "actionDraw_Polygon_remove_all")
        self.actionRemove_Last_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_Last_Pinpoint.setCheckable(False)
        icon33 = QtGui.QIcon()
        icon33.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-point-remove-last.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_Pinpoint.setIcon(icon33)
        self.actionRemove_Last_Pinpoint.setObjectName(
            "actionRemove_Last_Pinpoint")
        self.actionRemove_All_Pinpoint = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_All_Pinpoint.setCheckable(False)
        icon34 = QtGui.QIcon()
        icon34.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-point-remove-all.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_Pinpoint.setIcon(icon34)
        self.actionRemove_All_Pinpoint.setObjectName(
            "actionRemove_All_Pinpoint")
        self.actionRemove_All_Line = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_All_Line.setCheckable(False)
        icon35 = QtGui.QIcon()
        icon35.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-polyline-remove-all.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_All_Line.setIcon(icon35)
        self.actionRemove_All_Line.setObjectName("actionRemove_All_Line")
        self.actionLast_Segment_Line = QtWidgets.QAction(PlayerWindow)
        self.actionLast_Segment_Line.setCheckable(False)
        icon36 = QtGui.QIcon()
        icon36.addPixmap(
            QtGui.QPixmap(
                ":/imgFMV/images/draw-polyline-remove-last-segment.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLast_Segment_Line.setIcon(icon36)
        self.actionLast_Segment_Line.setObjectName("actionLast_Segment_Line")
        self.actionRemove_Last_Line = QtWidgets.QAction(PlayerWindow)
        self.actionRemove_Last_Line.setCheckable(False)
        icon37 = QtGui.QIcon()
        icon37.addPixmap(
            QtGui.QPixmap(":/imgFMV/images/draw-polyline-remove-last.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRemove_Last_Line.setIcon(icon37)
        self.actionRemove_Last_Line.setObjectName("actionRemove_Last_Line")
        self.toolBtn_DPoint.addAction(self.actionDraw_Pinpoint)
        self.toolBtn_DPoint.addAction(self.actionRemove_Last_Pinpoint)
        self.toolBtn_DPoint.addAction(self.actionRemove_All_Pinpoint)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon_remove_last)
        self.toolBtn_DPolygon.addAction(self.actionDraw_Polygon_remove_all)
        self.toolBtn_Cesure.addAction(self.actionCensure)
        self.toolBtn_Cesure.addAction(self.actionRemove_Last_censured)
        self.toolBtn_Cesure.addAction(self.actionRemove_All_censured)
        self.toolBtn_DLine.addAction(self.actionDraw_Line)
        self.toolBtn_DLine.addAction(self.actionLast_Segment_Line)
        self.toolBtn_DLine.addAction(self.actionRemove_Last_Line)
        self.toolBtn_DLine.addAction(self.actionRemove_All_Line)
        self.menuFile.addAction(self.actionGray)
        self.menuFile.addAction(self.actionInvert_Color)
        self.menuFile.addAction(self.actionMono_Filter)
        self.menuFile.addAction(self.actionCanny_edge_detection)
        self.menuFile.addAction(self.actionAuto_Contrast_Filter)
        self.menuFile.addAction(self.actionMirroredH)
        self.menuFrames.addAction(self.actionCapture_Current_Frame)
        self.menuFrames.addAction(self.actionExtract_All_Frames)
        self.menuMetadata.addAction(self.actionShow_Metadata)
        self.menuConverter.addAction(self.actionConverter_Video)
        self.menuInfo.addAction(self.actionShow_Video_Info)
        self.menuInfo.addSeparator()
        self.menuInfo.addAction(self.actionSave_Video_Info)
        self.menuPlot_Bitrate.addAction(self.actionAudio)
        self.menuPlot_Bitrate.addAction(self.actionVideo)
        self.menuPlot_Bitrate.addSeparator()
        self.menuPlot_Bitrate.addAction(self.actionSave_Audio)
        self.menuPlot_Bitrate.addAction(self.actionSave_Video)
        self.menubarwidget.addAction(self.menuFile.menuAction())
        self.menubarwidget.addAction(self.menuFrames.menuAction())
        self.menubarwidget.addAction(self.menuMetadata.menuAction())
        self.menubarwidget.addAction(self.menuConverter.menuAction())
        self.menubarwidget.addAction(self.menuInfo.menuAction())
        self.menubarwidget.addAction(self.menuPlot_Bitrate.menuAction())

        self.retranslateUi(PlayerWindow)
        self.gb_PlayerControls.toggled['bool'].connect(
            PlayerWindow.toggleGroup)
        self.btn_play.clicked['bool'].connect(PlayerWindow.playClicked)
        self.sliderDuration.sliderMoved['int'].connect(PlayerWindow.seek)
        self.volumeSlider.sliderMoved['int'].connect(PlayerWindow.setVolume)
        self.actionGray.triggered['bool'].connect(PlayerWindow.grayFilter)
        self.btn_CaptureFrame.clicked.connect(PlayerWindow.ExtractCurrentFrame)
        self.btn_Color.clicked.connect(PlayerWindow.showColorDialog)
        self.btn_volume.clicked.connect(PlayerWindow.setMuted)
        self.btn_stop.clicked['bool'].connect(PlayerWindow.stop)
        self.btn_previous.clicked.connect(PlayerWindow.StartMedia)
        self.btn_next.clicked.connect(PlayerWindow.EndMedia)
        self.btn_repeat.toggled['bool'].connect(PlayerWindow.AutoRepeat)
        self.actionShow_Metadata.triggered.connect(
            PlayerWindow.OpenQgsFmvMetadata)
        self.actionExtract_All_Frames.triggered.connect(
            PlayerWindow.ExtractAllFrames)
        self.actionCapture_Current_Frame.triggered.connect(
            PlayerWindow.ExtractCurrentFrame)
        self.actionSave_Video_Info.triggered.connect(
            PlayerWindow.saveInfoToJson)
        self.actionAudio_Video.triggered.connect(
            PlayerWindow.CreateBitratePlot)
        self.actionAudio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionVideo.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_All.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Audio.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionSave_Video.triggered.connect(PlayerWindow.CreateBitratePlot)
        self.actionShow_Video_Info.triggered.connect(
            PlayerWindow.showVideoInfo)
        self.actionConverter_Video.triggered.connect(PlayerWindow.convertVideo)
        self.btn_rewind.clicked.connect(PlayerWindow.rewindMedia)
        self.btn_forward.clicked.connect(PlayerWindow.forwardMedia)
        self.btn_Rec.clicked['bool'].connect(PlayerWindow.RecordVideo)
        self.actionInvert_Color.triggered['bool'].connect(
            PlayerWindow.invertColorFilter)
        self.actionCanny_edge_detection.triggered['bool'].connect(
            PlayerWindow.edgeFilter)
        self.actionMono_Filter.triggered['bool'].connect(
            PlayerWindow.monoFilter)
        self.actionDraw_Pinpoint.triggered['bool'].connect(
            PlayerWindow.pointDrawer)
        self.actionMagnifying_glass.triggered['bool'].connect(
            PlayerWindow.magnifier)
        self.actionAuto_Contrast_Filter.triggered['bool'].connect(
            PlayerWindow.autoContrastFilter)
        self.actionCreate_Mosaic.triggered['bool'].connect(
            PlayerWindow.createMosaic)
        self.btn_GeoReferencing.clicked['bool'].connect(
            PlayerWindow.createMosaic)
        self.actionDraw_Line.triggered['bool'].connect(PlayerWindow.lineDrawer)
        self.actionObject_Tracking.triggered['bool'].connect(
            PlayerWindow.ojectTracking)
        self.actionDraw_Polygon.triggered['bool'].connect(
            PlayerWindow.polygonDrawer)
        self.actionRuler.triggered['bool'].connect(PlayerWindow.VideoRuler)
        self.actionMirroredH.triggered['bool'].connect(
            PlayerWindow.MirrorHorizontalFilter)
        self.actionCensure.triggered['bool'].connect(PlayerWindow.VideoCensure)
        self.actionRemove_All_censured.triggered.connect(
            self.videoWidget.removeAllCensure)
        self.actionRemove_Last_censured.triggered.connect(
            self.videoWidget.removeLastCensured)
        self.actionDraw_Polygon_remove_last.triggered.connect(
            self.videoWidget.removeLastPolygon)
        self.actionDraw_Polygon_remove_all.triggered.connect(
            self.videoWidget.removeAllPolygon)
        self.actionRemove_Last_Pinpoint.triggered.connect(
            self.videoWidget.removeLastPoint)
        self.actionRemove_All_Pinpoint.triggered.connect(
            self.videoWidget.removeAllPoint)
        self.actionRemove_All_Line.triggered.connect(
            self.videoWidget.removeAllLines)
        self.actionRemove_Last_Line.triggered.connect(
            self.videoWidget.removeLastLine)
        self.actionLast_Segment_Line.triggered.connect(
            self.videoWidget.removeLastSegmentLine)
        QtCore.QMetaObject.connectSlotsByName(PlayerWindow)

    def retranslateUi(self, PlayerWindow):
        _translate = QtCore.QCoreApplication.translate
        PlayerWindow.setWindowTitle(_translate("PlayerWindow", "Player"))
        self.groupBox.setTitle(_translate("PlayerWindow", "Video Tools"))
        self.btn_Color.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Color dialog</p></body></html>"))
        self.btn_Color.setShortcut(_translate("PlayerWindow", "Ctrl+C"))
        self.btn_Rec.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Record</p></body></html>"))
        self.btn_Rec.setShortcut(_translate("PlayerWindow", "Ctrl+Shift+R"))
        self.btn_GeoReferencing.setToolTip(
            _translate(
                "PlayerWindow",
                "<html><head/><body><p>Create Mosaic</p></body></html>"))
        self.btn_GeoReferencing.setShortcut(
            _translate("PlayerWindow", "Ctrl+Shift+M"))
        self.btn_CaptureFrame.setToolTip(
            _translate(
                "PlayerWindow",
                "<html><head/><body><p>Capture current frame</p></body></html>"
            ))
        self.btn_CaptureFrame.setShortcut(
            _translate("PlayerWindow", "Ctrl+Shift+Q"))
        self.gb_PlayerControls.setTitle(_translate("PlayerWindow", "Controls"))
        self.btn_previous.setToolTip(
            _translate(
                "PlayerWindow",
                "<html><head/><body><p>Start Of Media</p></body></html>"))
        self.btn_rewind.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Rewind</p></body></html>"))
        self.btn_stop.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Stop</p></body></html>"))
        self.btn_play.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Play/Pause</p></body></html>"))
        self.btn_forward.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Forward</p></body></html>"))
        self.btn_next.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>End Of Media</p></body></html>"))
        self.btn_repeat.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Repeat</p></body></html>"))
        self.btn_volume.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Mute/Unmute</p></body></html>"))
        self.btn_volume.setShortcut(_translate("PlayerWindow", "Ctrl+Shift+U"))
        self.volumeSlider.setToolTip(
            _translate("PlayerWindow",
                       "<html><head/><body><p>Volume</p></body></html>"))
        self.v_label.setText(_translate("PlayerWindow", "100%"))
        self.progressBarProcessor.setFormat(
            _translate("PlayerWindow", "Background Progress . . . %p%"))
        self.menuFile.setTitle(_translate("PlayerWindow", "Filters"))
        self.menuFrames.setTitle(_translate("PlayerWindow", "Frames"))
        self.menuMetadata.setTitle(_translate("PlayerWindow", "Metadata"))
        self.menuConverter.setTitle(_translate("PlayerWindow", "Converter"))
        self.menuInfo.setTitle(_translate("PlayerWindow", "Information"))
        self.menuPlot_Bitrate.setTitle(
            _translate("PlayerWindow", "Plot Bitrate"))
        self.DrawToolBar.setWindowTitle(
            _translate("PlayerWindow", "Utils ToolBar"))
        self.DrawToolBar.setToolTip(_translate("PlayerWindow",
                                               "Utils ToolBar"))
        self.actionGray.setText(_translate("PlayerWindow", "Gray Scale"))
        self.actionEdge_Detection.setText(
            _translate("PlayerWindow", "Edge Detection"))
        self.actionCapture_Current_Frame.setText(
            _translate("PlayerWindow", "Capture Current Frame"))
        self.actionCapture_Current_Frame.setShortcut(
            _translate("PlayerWindow", "Ctrl+Shift+Q"))
        self.actionExtract_All_Frames.setText(
            _translate("PlayerWindow", "Extract All Frames"))
        self.actionExtract_All_Frames.setShortcut(
            _translate("PlayerWindow", "Ctrl+Shift+A"))
        self.actionShow_Metadata.setText(
            _translate("PlayerWindow", "Show Metadata"))
        self.actionShow_Metadata.setShortcut(
            _translate("PlayerWindow", "Ctrl+Shift+M"))
        self.actionConverter_Video.setText(
            _translate("PlayerWindow", "Converter Video"))
        self.actionSave_Video_Info.setText(
            _translate("PlayerWindow", "Save Video Info to Json"))
        self.actionAudio.setText(_translate("PlayerWindow", "Show Audio"))
        self.actionVideo.setText(_translate("PlayerWindow", "Show Video"))
        self.actionAudio_Video.setText(_translate("PlayerWindow", "Show All"))
        self.actionSave_Audio.setText(_translate("PlayerWindow", "Save Audio"))
        self.actionSave_Video.setText(_translate("PlayerWindow", "Save Video"))
        self.actionSave_All.setText(_translate("PlayerWindow", "Save All"))
        self.actionShow_Video_Info.setText(
            _translate("PlayerWindow", "Show Video Info"))
        self.actionInvert_Color.setText(
            _translate("PlayerWindow", "Invert Color"))
        self.actionMono_Filter.setText(
            _translate("PlayerWindow", "Mono Filter"))
        self.actionCanny_edge_detection.setText(
            _translate("PlayerWindow", "Canny edge detection"))
        self.actionZoom_Rectangle.setText(
            _translate("PlayerWindow", "Zoom Rectangle"))
        self.actionMagnifying_glass.setText(
            _translate("PlayerWindow", "Magnifying glass"))
        self.actionAuto_Contrast_Filter.setText(
            _translate("PlayerWindow", "Auto Contrast Filter"))
        self.actionCreate_Mosaic.setText(
            _translate("PlayerWindow", "Create Mosaic"))
        self.actionDraw_Pinpoint.setText(
            _translate("PlayerWindow", "Draw Pinpoint"))
        self.actionDraw_Line.setText(_translate("PlayerWindow", "Draw Line"))
        self.actionDraw_Polygon.setText(
            _translate("PlayerWindow", "Draw Polygon"))
        self.actionDraw_Polygon.setIconText(
            _translate("PlayerWindow", "Draw Polygon"))
        self.actionDraw_Polygon.setToolTip(
            _translate("PlayerWindow", "Draw Polygon"))
        self.actionObject_Tracking.setText(
            _translate("PlayerWindow", "Object Tracking"))
        self.actionRuler.setText(_translate("PlayerWindow", "Ruler"))
        self.actionMirroredH.setText(
            _translate("PlayerWindow", "Horizontal Mirrored"))
        self.actionCensure.setText(_translate("PlayerWindow", "Censure"))
        self.actionCensure.setToolTip(_translate("PlayerWindow", "Censure"))
        self.actionRemove_Last_censured.setText(
            _translate("PlayerWindow", "Remove Last"))
        self.actionRemove_All_censured.setText(
            _translate("PlayerWindow", "Remove All"))
        self.actionDraw_Polygon_remove_last.setText(
            _translate("PlayerWindow", "Remove Last Polygon"))
        self.actionDraw_Polygon_remove_last.setIconText(
            _translate("PlayerWindow", "Draw Polygon"))
        self.actionDraw_Polygon_remove_last.setToolTip(
            _translate("PlayerWindow", "Remove Last Polygon"))
        self.actionDraw_Polygon_remove_all.setText(
            _translate("PlayerWindow", "Remove All Polygon"))
        self.actionDraw_Polygon_remove_all.setIconText(
            _translate("PlayerWindow", "Draw Polygon"))
        self.actionDraw_Polygon_remove_all.setToolTip(
            _translate("PlayerWindow", "Remove All Polygon"))
        self.actionRemove_Last_Pinpoint.setText(
            _translate("PlayerWindow", "Remove Last Pinpoint"))
        self.actionRemove_Last_Pinpoint.setToolTip(
            _translate("PlayerWindow", "Remove Last Pinpoint"))
        self.actionRemove_All_Pinpoint.setText(
            _translate("PlayerWindow", "Remove All Pinpoint"))
        self.actionRemove_All_Pinpoint.setToolTip(
            _translate("PlayerWindow", "Remove All Pinpoint"))
        self.actionRemove_All_Line.setText(
            _translate("PlayerWindow", "Remove All"))
        self.actionRemove_All_Line.setToolTip(
            _translate("PlayerWindow", "Remove All"))
        self.actionLast_Segment_Line.setText(
            _translate("PlayerWindow", "Remove Last Segment"))
        self.actionLast_Segment_Line.setToolTip(
            _translate("PlayerWindow", "Remove Last Segment"))
        self.actionRemove_Last_Line.setText(
            _translate("PlayerWindow", "Remove Last Line"))
        self.actionRemove_Last_Line.setToolTip(
            _translate("PlayerWindow", "Remove Last Line"))