rpi-rx5808-stream.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:rpi-rx5808-stream 作者: xythobuz 项目源码 文件源码
def determineVideoDevice():
    global video_device_searched

    if video_device != None:
        video_device_searched = video_device
        print("Selected \"{}\" as video device...".format(video_device_searched))
        return

    path = "/dev/"
    files = []
    for i in os.listdir(path):
        f = os.path.join(path, i)
        if "/dev/video" in f:
            files.append(f)

    if len(files) > 0:
        video_device_searched = files[0]
        print("Selected \"{}\" as video device...".format(video_device_searched))
    else:
        video_device_searched = None
        print("No video device found!")
        os.abort()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号