Update app.py
Browse files
app.py
CHANGED
|
@@ -55,13 +55,13 @@ def sample_info(sample_id_str, fieldn):
|
|
| 55 |
[ 0, 0, 0, 1]])
|
| 56 |
|
| 57 |
# render scene
|
| 58 |
-
|
| 59 |
-
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
|
| 67 |
|
|
|
|
| 55 |
[ 0, 0, 0, 1]])
|
| 56 |
|
| 57 |
# render scene
|
| 58 |
+
r = pyrender.OffscreenRenderer(512, 512)
|
| 59 |
+
color, _ = r.render(scene)
|
| 60 |
|
| 61 |
+
plt.figure(figsize=(8,8))
|
| 62 |
+
plt.imshow(color)
|
| 63 |
|
| 64 |
+
plt.savefig("test.png")
|
| 65 |
|
| 66 |
|
| 67 |
|