Jelajahi Sumber

更新 'GFS-Client/save_result.py'

添加图片描述信息,path,w,h
guqing 2 minggu lalu
induk
melakukan
7765ca76bc
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      GFS-Client/save_result.py

+ 4 - 1
GFS-Client/save_result.py

@@ -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: