wufan-tb / yolo_slowfast

Yolov5+SlowFast: Realtime Action Detection Based on PytorchVideo
438 stars 55 forks source link

Unable to open the camera. #27

Open 123abcdea opened 1 year ago

123abcdea commented 1 year ago

When I try to use the camera for recognition, I cannot see the image. How can I resolve this issue?

dzj0727 commented 1 year ago

Did you run the code on windows operation system? I have the same problem

dzj0727 commented 1 year ago

if vis:

im=cv2.cvtColor(im,cv2.COLOR_RGB2BGR)

        cv2.imshow('camear', im) # 建立名为‘image’ 的窗口并显示图像
        k = cv2.waitKey(1)