neozhaoliang / surround-view-system-introduction

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

Extrinsic parameter calib problem #74

Closed Yangbit666 closed 8 months ago

Yangbit666 commented 9 months ago

55014023a9123006d1e042187569757 61b6dd42fbce38b86bb431bee5e2037 您好!首先非常感谢您的开源项目 内参标定正常情况下,每一个相机图片过宽。与parameter_setting的哪个参数有关? doc中说明每个像素代表一厘米,但是对于小车1cm>>1piexel,请问如何换算?

rwb1123 commented 9 months ago

您好,4个usb摄像头 同时插入四个摄像头,四个都可以检测到,但是不工作,请问如何降低带宽,让四个摄像头同时工作 ? 我用的是jetson nx设备

rwb1123 commented 9 months ago

@Yangbit666

neozhaoliang commented 9 months ago

@Yangbit666

https://github.com/neozhaoliang/surround-view-system-introduction/blob/master/run_calibrate_camera.py#L12

相机接受一个 resolution 参数。标定以后的 yaml 文件里面会记录这个分辨率。

doc中说明每个像素代表一厘米,但是对于小车1cm>>1piexel,请问如何换算?

这个根据你的标定板尺寸,视野范围,相应比例换算标志点的像素位置即可。比如你希望视野是 100cm x 100cm,front 相机投影后是 400x200像素,那么你的左上角 (10cm, 10cm) 位置的点就应该对应图像中左上角的 (40, 20) 像素。

rwb1123 commented 8 months ago

您好 请问在测试demo时出现一下情况: Traceback (most recent call last): File "/home/rwb/Downloads/surround-view-system-introduction-master/surround_view/birdview.py", line 329, in run self.make_luminance_balance().stitch_all_parts() File "/home/rwb/Downloads/surround-view-system-introduction-master/surround_view/birdview.py", line 225, in make_luminance_balance a1 = utils.mean_luminance_ratio(RII(Rb), FII(Fb), m2) File "/home/rwb/Downloads/surround-view-system-introduction-master/surround_view/utils.py", line 56, in mean_luminance_ratio return get_mean_statistisc(grayA, mask) / get_mean_statistisc(grayB, mask) File "/home/rwb/Downloads/surround-view-system-introduction-master/surround_view/utils.py", line 52, in get_mean_statistisc return np.sum(gray * mask) ValueError: operands could not be broadcast together with shapes (500,1600) (550,500) Aborted (core dumped) mask和weight图片的尺寸一致