Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt5.QtGui import *
- from PyQt5.QtWidgets import *
- from PyQt5.QtCore import *
- import PyQt5
- import sys
- import os
- from PyQt5.QtMultimedia import QCameraInfo
- class MainWindow(QMainWindow):
- def __init__(self, *args, **kwargs):
- super(MainWindow, self).__init__(*args, **kwargs)
- self.Kamerazaehlen()
- def Kamerazaehlen(self):
- online_webcams = QCameraInfo.availableCameras()
- print(online_webcams)
- if __name__ == '__main__':
- app = QApplication(sys.argv)
- app.setApplicationName("Webcam")
- windwow = MainWindow()
- app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement