ChatSim icon indicating copy to clipboard operation
ChatSim copied to clipboard

生成的新场景有3d框吗,以及对应内外参

Open yancx8 opened this issue 1 year ago • 1 comments
trafficstars

生成的新场景有3d框吗,以及对应内外参

yancx8 avatar Jun 06 '24 07:06 yancx8

Hi, the 3D bounding box label is automatically generated with blender rendering if save_cache is enabled. You can find them in ChatSim/results/cache/<EXP_NAME>/blender_output/<FRAME_ID>/label.yaml

yifanlu0227 avatar Jun 17 '24 15:06 yifanlu0227

你好,请问你有尝试过is_ego_motion为True的情况下将label,yaml投影的效果吗,我用veh2cam@vehi2veh0的逆做外参,投影出来的框和我新增的目标差一段距离,不知道是不是外参使用错了

Image

LvRuH avatar Sep 18 '25 03:09 LvRuH

你好,请问你有尝试过is_ego_motion为True的情况下将label,yaml投影的效果吗,我用veh2cam@vehi2veh0的逆做外参,投影出来的框和我新增的目标差一段距离,不知道是不是外参使用错了

Image

现在我找到了问题所在,有以下两点: 1.chatsim/foreground/Blender/utils/blender_utils/camera/set_camera.py里对相机内参的设置有误,只传了focal而未传Cx,Cy,因此在投影时会出现以下情况的偏移。focal_in_mm = get_focal_in_mm(intrinsic['H'], intrinsic['focal'])中的initrinsic['H'],应该改成内参矩阵里的Cy*2。 2.ego_motion为True时应该采用的外参为blender_npz作为world2cam矩阵,因为在chatsim/agents/view_adjust_agent.py中有外参的插值,所以单纯使用veh2cam@vehi2veh0的逆做外参是错误的。

Image

LvRuH avatar Nov 11 '25 12:11 LvRuH