diff --git a/sim_scenes/interest/utils/body_utils.py b/sim_scenes/interest/utils/body_utils.py index a296ce1dd2ccc01c94d2eebb8549476ddb664e04..1a7533a16c8364d15a27e666f147618028ec7e7d 100644 --- a/sim_scenes/interest/utils/body_utils.py +++ b/sim_scenes/interest/utils/body_utils.py @@ -44,7 +44,7 @@ def gen_bodies_from_image(pixel_image, params, body_template=None): # 对于纯白色的颜色,就忽略,不生成星球(这样图片中,纯白色越多,对电脑的压力就越小) if pixel[0] >= 255 and pixel[1] >= 255 and pixel[1] >= 255: continue - body_str = body_template % (f"星球{h}:{w}", pixel[0], pixel[1], pixel[2], scale, + body_str = body_template % (f"星球{w}:{h}", pixel[0], pixel[1], pixel[2], scale, (width - w) * interval_factor, (height - h) * interval_factor, scale) bodies_str += body_str + ",\n"