neozhaoliang / surround-view-system-introduction

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

Cannot open camera 2 #67

Closed rwb1123 closed 5 months ago

rwb1123 commented 11 months ago

python run_calibrate_camera. py -i 2 -grid 9x6 -o fisheye.yaml --resolution 1280x720 --fisheye Cannot open camera 2 cannot open device

SLBiuBiu commented 10 months ago

What operating system are you using?

neozhaoliang commented 10 months ago

检查一下你的设备 2 是否对应相机,并且在 usb 相机的情况下加上 --no_gst 参数。

rwb1123 commented 9 months ago

Ubuntu18.04 用的4个usb摄像头

SLBiuBiu commented 9 months ago

Ubuntu18.04 用的4个usb摄像头 可能是这个ID没有对应这个相机,你可以执行test_cameras.py 注意看打印的相机列表,这个列表是可以打开相机的ID,但是他的范围只从0-24。 你可以执行 ls /dev/video* 看一下相机设备,一个USB相机可能会生成两个,其中一个是虚拟的。例如你接了两个相机,执行命令之后的结果应该是 /dev/video0 /dev/video1 /dev/video2 /dev/video3 其中可能0,2才是真正的相机ID

rwb1123 commented 9 months ago

您好运行完  出现这个问题是什么导致的?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年11月9日(星期四) 下午5:39 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [neozhaoliang/surround-view-system-introduction] Cannot open camera 2 (Issue #67)

Ubuntu18.04 用的4个usb摄像头 可能是这个ID没有对应这个相机,你可以执行test_cameras.py 注意看打印的相机列表,这个列表是可以打开相机的ID,但是他的范围只从0-24。 你可以执行 ls /dev/video* 看一下相机设备,一个USB相机可能会生成两个,其中一个是虚拟的。例如你接了两个相机,执行命令之后的结果应该是 /dev/video0 /dev/video1 /dev/video2 /dev/video3 其中可能0,2才是真正的相机ID

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SLBiuBiu commented 9 months ago

什么问题?

rwb1123 commented 9 months ago

------------------ 原始邮件 ------------------ 发件人: "neozhaoliang/surround-view-system-introduction" @.>; 发送时间: 2023年11月9日(星期四) 晚上7:01 @.>; @.**@.>; 主题: Re: [neozhaoliang/surround-view-system-introduction] Cannot open camera 2 (Issue #67)

什么问题?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SLBiuBiu commented 9 months ago

看不到你的问题......

rwb1123 commented 9 months ago

@.***:~/Downloads/surround1$ python surroundview.py [INFO] openning camera devices. [INFO] loading camera intrinsic parameters... [INFO] loading weight matrices... Traceback (most recent call last): File "surroundview py", Line 189, in ‹modules main() File "surroundview py", line 103, in main frame = cv2. remap(frame, map1, map2, interpolation=cv2. INTER_LINEAR, border ode=cv2. BORDER_CONSTANT) cv2. error: OpenCV(4.5.5) /io/opencv/modules/improc/src/imgwarp.cpp:668: error: (-215: Assertion failed) !ssize. empty() in function 'remapBilinear'

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年11月9日(星期四) 晚上7:06 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [neozhaoliang/surround-view-system-introduction] Cannot open camera 2 (Issue #67)

看不到你的问题......

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

SLBiuBiu commented 9 months ago

加vx吧,这看的费劲,17330722027

rwb1123 commented 9 months ago

4个usb摄像头 同时插入四个摄像头,有一个可以检测到,但是不工作,请问如何降低带宽 ?

SLBiuBiu commented 9 months ago

4个usb摄像头 同时插入四个摄像头,有一个可以检测到,但是不工作,请问如何降低带宽 ?

1.打开相机使用mjpg压缩,一个USB控制器链接两个摄像头 2.问USB摄像头生产厂家要降低带宽的固件 3.PCIE拓展USB(这个我没试过)

rwb1123 commented 9 months ago

您好 请问有没有 试过使用两个CSI摄像头和两个USB摄像头的组合来实现?

SLBiuBiu commented 9 months ago

您好 请问有没有 试过使用两个CSI摄像头和两个USB摄像头的组合来实现?

没有