Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -236,8 +236,8 @@ def pano_depth_to_world_points(depth):
|
|
236 |
lon = lon.flatten()
|
237 |
lat = lat.flatten()
|
238 |
|
239 |
-
pts3d = [[]]
|
240 |
-
uv = [[]]
|
241 |
for i in range(0, 1): #(0,2)
|
242 |
for j in range(0, 1): #(0,2)
|
243 |
#rnd_lon = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
@@ -299,7 +299,7 @@ def get_mesh(image, depth, blur_data, loadall):
|
|
299 |
rgba = cv2.cvtColor(blur_img, cv2.COLOR_RGB2RGBA)
|
300 |
np.delete(rgba[mask>0])
|
301 |
colors = rgba.reshape(-1, 4)
|
302 |
-
clrs = [[]]
|
303 |
|
304 |
for i in range(0,1): #(0,4)
|
305 |
clrs = np.concatenate((clrs, colors), axis=0)
|
|
|
236 |
lon = lon.flatten()
|
237 |
lat = lat.flatten()
|
238 |
|
239 |
+
pts3d = [[255,255,255]]
|
240 |
+
uv = [[1,1]]
|
241 |
for i in range(0, 1): #(0,2)
|
242 |
for j in range(0, 1): #(0,2)
|
243 |
#rnd_lon = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
|
|
299 |
rgba = cv2.cvtColor(blur_img, cv2.COLOR_RGB2RGBA)
|
300 |
np.delete(rgba[mask>0])
|
301 |
colors = rgba.reshape(-1, 4)
|
302 |
+
clrs = [[128,128,128,0]]
|
303 |
|
304 |
for i in range(0,1): #(0,4)
|
305 |
clrs = np.concatenate((clrs, colors), axis=0)
|