bbynku commited on
Commit
ef9960e
·
verified ·
1 Parent(s): 7248ffa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -116,10 +116,11 @@ def put_mask(image,mask,color_rgb=None,border_mask=False,color_temp='jet',num_c=
116
 
117
 
118
 
119
- result = overlay_mask(to_pil_image(image.astype(np.uint8)), to_pil_image(mask), colormap = color_temp, alpha=0.4)
120
-
121
 
122
  return np.array(result)
 
123
 
124
 
125
  def visualize_geometry_prior(RGB_path, Depth_path, index_list=[[584]], cmap_list = ['jet_r'],x=0,y=0):
 
116
 
117
 
118
 
119
+ heatmap = cv2.applyColorMap((mask * 255).astype(np.uint8), cv2.COLORMAP_JET)
120
+ result = cv2.addWeighted(image, 0.6, heatmap, 0.4, 0)
121
 
122
  return np.array(result)
123
+
124
 
125
 
126
  def visualize_geometry_prior(RGB_path, Depth_path, index_list=[[584]], cmap_list = ['jet_r'],x=0,y=0):