pyqt5(2)
-
PyQt와 OpenCV로 카메라 스트리밍 토글하기
그냥 반복에 반복하며 쓰고 있는 코드라서 정리할 겸 작성해봄. 목표 및 설계 연결된 카메라를 이용한 스트리밍을 토글할 수 있는 GUI 카메라 쓰레드는 파일을 따로 생성 cam_id로 특정 카메라 불러오기 (보통 0 또는 1) width, height, fps 설정할 수 있도록.. 1. 설치 pip install pyqt5 pip install opencv-python 2. 코딩 # main.py import sys from camera import CameraThread from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import ( QApplication, QMainWindow, QWidget, QVBoxLayout, QLabel, QPushButton, ..
2023.08.02 -
ImportError: DLL load failed while importing QtWidgets: 지정된 프로시저를 찾을 수 없습니다.
에러 메세지 Traceback (most recent call last): File "test.py", line 12, in from PyQt5.QtWidgets import * ImportError: DLL load failed while importing QtWidgets: 지정된 프로시저를 찾을 수 없습니다. 환경 WindowOS Anaconda Prompt 해결 잘 돌아가던 코드가 안된다. Window나 Conda환경이 업데이트되면서 버전이 안맞아 발생하는 거라 추측된다. 나의 경우에는 아래 커맨드로 에러를 해결할 수 있었다. conda update pyqt PyQt가 Conda를 통해서 잘 설치되어 있었나보다. 이 커맨드로 해결이 안되면, pip uninstall pyqt # 삭제 후, pip ..
2023.02.02