代码视频讲解:PyQt5的视频监控系统:基于python PyQt5的视频监控系统 完整代码可直接运行_哔哩哔哩_bilibili
import sys import cv2 from PyQt5.Qt import * from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import * from Camera import SmallScreen, BigScreen class ListenWorkThread1(QThread): def __init__(self, parent=None): super(ListenWorkThread1, self).__init__() self.parent = parent self.working = True def __del__(self): self.working = False def run(self): self.cap = cv2.VideoCapture('rtsp://admin:123456@192.168.50.12:8554/live') while self.cap.isOpened(): ret, frame = self.ca