neozhaoliang / surround-view-system-introduction

A full Python implementation for real car surround view system
MIT License
858 stars 303 forks source link

关于4个摄像头占用带宽的问题 #65

Closed SLBiuBiu closed 1 year ago

SLBiuBiu commented 1 year ago

您好,大佬!现在我正在复现您的项目,关于4个USB摄像头占用带宽太大,两个就超了USB2.0的480Mbps。我之前有遇到过这个问题,我的解决办法是在capture_thread.py中的connect_camera方法里使用self.cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc(*"MJPG"))将默认的编码改为MJPG,可以大大的降低带宽。 在test_cameras.py中同样也是这行代码 我实际测试一个USB口是可以带动4个摄像头的,但是实际带宽我没有计算过。

neozhaoliang commented 1 year ago

赞!这是个很有用的发现,可以麻烦你提个 PR 不?

SLBiuBiu commented 1 year ago

其实也就这一行代码,这个问题我之前操作多个摄像头的时候有遇到过。我现在复现这个项目,遇到了不少问题,我看到了您的微信号,能否加个微信请教您一下

neozhaoliang commented 1 year ago

没问题。

SLBiuBiu @.***> 于2023年8月17日周四 20:32写道:

其实也就这一行代码,这个问题我之前操作多个摄像头的时候有遇到过。我现在复现这个项目,遇到了不少问题,我看到了您的微信号,能否加个微信请教您一下

— Reply to this email directly, view it on GitHub https://github.com/neozhaoliang/surround-view-system-introduction/issues/65#issuecomment-1682204071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFR2HJRDAFVI3VSHWSS2WU3XVYFOXANCNFSM6AAAAAA3TLJVL4 . You are receiving this because you commented.Message ID: <neozhaoliang/surround-view-system-introduction/issues/65/1682204071@ github.com>