Alessio Grancini commited on
Commit
d4a489e
·
verified ·
1 Parent(s): c98e585

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -271,12 +271,12 @@ def get_detection_data(image_data):
271
 
272
  response = {
273
  "detections": detections,
274
- "segmentation_url": save_image_to_url(image_segmentation),
275
- "depth_url": save_image_to_url(depth_colormap),
276
- "distance_url": save_image_to_url(utils.draw_depth_info(image, depthmap, objects_data)),
277
- "point_cloud_url": save_plot_to_url(utils.generate_obj_pcd(depthmap, objects_data)),
278
- "camera_matrix": get_camera_matrix(depth_estimator),
279
- "camera_position": [0, 0, 0] # Assumed at origin based on camera intrinsics
280
  }
281
  return response
282
 
 
271
 
272
  response = {
273
  "detections": detections,
274
+ #"segmentation_url": save_image_to_url(image_segmentation),
275
+ #"depth_url": save_image_to_url(depth_colormap),
276
+ #"distance_url": save_image_to_url(utils.draw_depth_info(image, depthmap, objects_data)),
277
+ #"point_cloud_url": save_plot_to_url(utils.generate_obj_pcd(depthmap, objects_data)),
278
+ #"camera_matrix": get_camera_matrix(depth_estimator),
279
+ #"camera_position": [0, 0, 0] # Assumed at origin based on camera intrinsics
280
  }
281
  return response
282