|
|
@@ -351,7 +351,10 @@ def process_and_draw_bboxes(picture_name, floor_path, raw_bbox_data, floor_id, o
|
|
|
|
|
|
output_3d_json_data = {
|
|
|
"shapes": shapes_3d,
|
|
|
- "version": "4Dage_Furniture_Detection_0.0.1_3D_final"
|
|
|
+ "imageHeight": img_height,
|
|
|
+ "imagePath": os.path.basename(picture_name),
|
|
|
+ "imageWidth": img_width,
|
|
|
+ "version": "4Dage_Furniture_Detection_0.0.1"
|
|
|
}
|
|
|
os.makedirs(os.path.dirname(output_3d_json_path), exist_ok=True)
|
|
|
with open(output_3d_json_path, 'w', encoding='utf-8') as f:
|