Avoid `can't open camera by index`, when testing with cv2, all cam connected

前端 未结 0 460
鱼传尺愫
鱼传尺愫 2021-01-07 04:57

I want to detect all cameras pluged to a linuxbox.

The best I found is this:

import cv2

def test_open_cam():
    connected_cam = []
    for port in ra         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题