Open llooiicc opened 3 hours ago
UPDATE : I delete all PyQt classes and run just pyvcam :
import sys
from PyQt5.QtWidgets import QApplication, QLabel, QVBoxLayout, QWidget, QPushButton
from PyQt5.QtGui import QPixmap, QImage
import numpy as np
from pyvcam import pvc
from pyvcam.camera import Camera
pvc.init_pvcam()
cam = Camera('PMUSBCam00') # Remplacez par le nom de votre caméra
cam.open()
def getframe():
print("test1")
print(cam.is_open)
frame = cam.get_frame(exp_time=0.2)
print("test2")
print(frame)
if __name__ == '__main__':
getframe()
Same problem occur...
Then I delete all PyQt imports:
import sys
import numpy as np
from pyvcam import pvc
from pyvcam.camera import Camera
pvc.init_pvcam()
cam = Camera('PMUSBCam00') # Remplacez par le nom de votre caméra
cam.open()
def getframe():
print("test1")
print(cam.is_open)
frame = cam.get_frame(exp_time=0.2)
print("test2")
print(frame)
if __name__ == '__main__':
getframe()
It works
Hi,
I tried to display an image with PyQt5 using a simple get_frame() but it doesn't work. The method get_frame doesn't return any array.
I tried with Tk and then it work well.
Has anyone had this problem and solved it?
Thanks