1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| from PyQt5.QtCore import QDir, Qt, QUrl, QObject from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer from PyQt5.QtMultimediaWidgets import QVideoWidget from PyQt5.QtWidgets import (QApplication, QFileDialog, QHBoxLayout, QLabel, QPushButton, QSizePolicy, QSlider, QStyle, QVBoxLayout, QWidget, QGridLayout, QFileDialog,QMainWindow,QWidget, QPushButton, QAction, QSplitter, QFrame) from PyQt5.QtGui import QIcon, QFont
class Demo(QMainWindow): def __init__(self, numCam=6, parent=None): super(ReIDDemo, self).__init__(parent) self.setWindowTitle("Video Person Re-ID Demo") ...
if __name__ == '__main__': app = QApplication(sys.argv) demo = Demo(numCam=6) demo.setGeometry(400, 30, 1200, 1000) demo.show() sys.exit(app.exec_())
|