Spaces:
Running
on
T4
Running
on
T4
Uploaded all examples
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- app/examples/empty_examples/empty.obj +3 -0
- app/examples/empty_examples/sample.ply +0 -0
- app/examples/empty_examples/sample.step +0 -0
- app/examples/empty_examples/sample.stl +0 -0
- app/examples/mvr.png +3 -0
- app/examples/mvr_examples/00017462_img0.png +0 -0
- app/examples/mvr_examples/00017462_img1.png +0 -0
- app/examples/mvr_examples/00017462_img2.png +0 -0
- app/examples/mvr_examples/00017462_img3.png +0 -0
- app/examples/mvr_examples/00131007_img0.png +0 -0
- app/examples/mvr_examples/00131007_img1.png +0 -0
- app/examples/mvr_examples/00131007_img2.png +0 -0
- app/examples/mvr_examples/00131007_img3.png +0 -0
- app/examples/mvr_examples/00189220_img0.png +0 -0
- app/examples/mvr_examples/00189220_img1.png +0 -0
- app/examples/mvr_examples/00189220_img2.png +0 -0
- app/examples/mvr_examples/00189220_img3.png +0 -0
- app/examples/mvr_examples/00218887_img0.png +0 -0
- app/examples/mvr_examples/00218887_img1.png +0 -0
- app/examples/mvr_examples/00218887_img2.png +0 -0
- app/examples/mvr_examples/00218887_img3.png +0 -0
- app/examples/pc_examples/00052336/pc.ply +3 -0
- app/examples/pc_examples/00052336/pc.png +3 -0
- app/examples/pc_examples/00058704/pc.ply +3 -0
- app/examples/pc_examples/00058704/pc.png +3 -0
- app/examples/pc_examples/00181288/pc.ply +3 -0
- app/examples/pc_examples/00181288/pc.png +3 -0
- app/examples/pc_examples/00200380/pc.ply +3 -0
- app/examples/pc_examples/00200380/pc.png +3 -0
- app/examples/pc_examples/00268284/pc.ply +3 -0
- app/examples/pc_examples/00268284/pc.png +3 -0
- app/examples/pc_examples/00352224/pc.ply +3 -0
- app/examples/pc_examples/00352224/pc.png +3 -0
- app/examples/pc_examples/00423708/pc.ply +3 -0
- app/examples/pc_examples/00423708/pc.png +3 -0
- app/examples/pc_examples/00471383/pc.ply +3 -0
- app/examples/pc_examples/00471383/pc.png +3 -0
- app/examples/pc_examples/00480992/pc.ply +3 -0
- app/examples/pc_examples/00480992/pc.png +3 -0
- app/examples/pc_examples/00518919/pc.ply +3 -0
- app/examples/pc_examples/00518919/pc.png +3 -0
- app/examples/pc_examples/00773954/pc.ply +3 -0
- app/examples/pc_examples/00773954/pc.png +3 -0
- app/examples/pc_examples/00847353/pc.ply +3 -0
- app/examples/pc_examples/00847353/pc.png +3 -0
- app/examples/pc_examples/take_photo.py +42 -0
- app/examples/sketch_examples/1.png +0 -0
- app/examples/sketch_examples/10.png +0 -0
- app/examples/sketch_examples/11.png +0 -0
- app/examples/sketch_examples/12.png +0 -0
app/examples/empty_examples/empty.obj
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
# https://github.com/mikedh/trimesh
|
2 |
+
|
3 |
+
|
app/examples/empty_examples/sample.ply
ADDED
File without changes
|
app/examples/empty_examples/sample.step
ADDED
File without changes
|
app/examples/empty_examples/sample.stl
ADDED
File without changes
|
app/examples/mvr.png
ADDED
![]() |
Git LFS Details
|
app/examples/mvr_examples/00017462_img0.png
ADDED
![]() |
app/examples/mvr_examples/00017462_img1.png
ADDED
![]() |
app/examples/mvr_examples/00017462_img2.png
ADDED
![]() |
app/examples/mvr_examples/00017462_img3.png
ADDED
![]() |
app/examples/mvr_examples/00131007_img0.png
ADDED
![]() |
app/examples/mvr_examples/00131007_img1.png
ADDED
![]() |
app/examples/mvr_examples/00131007_img2.png
ADDED
![]() |
app/examples/mvr_examples/00131007_img3.png
ADDED
![]() |
app/examples/mvr_examples/00189220_img0.png
ADDED
![]() |
app/examples/mvr_examples/00189220_img1.png
ADDED
![]() |
app/examples/mvr_examples/00189220_img2.png
ADDED
![]() |
app/examples/mvr_examples/00189220_img3.png
ADDED
![]() |
app/examples/mvr_examples/00218887_img0.png
ADDED
![]() |
app/examples/mvr_examples/00218887_img1.png
ADDED
![]() |
app/examples/mvr_examples/00218887_img2.png
ADDED
![]() |
app/examples/mvr_examples/00218887_img3.png
ADDED
![]() |
app/examples/pc_examples/00052336/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bb7905774a06c8cb38040827ad7447492b6afa8b39d03ba3784f4055e219ee0
|
3 |
+
size 196812
|
app/examples/pc_examples/00052336/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00058704/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e3feffef15f00b188f013277dc3bf1119d399580d5aed303c94f879f69cd2ab
|
3 |
+
size 196812
|
app/examples/pc_examples/00058704/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00181288/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7762751847420e48daa58dadb8de740139562099119e37a800ac36b20d1c51a
|
3 |
+
size 196812
|
app/examples/pc_examples/00181288/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00200380/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e5bf63cebcc08dfdca1a18f13ac469e2bb13059f4d8d4288176d651290b55a82
|
3 |
+
size 196812
|
app/examples/pc_examples/00200380/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00268284/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05ee7880afbe3ab412fe047096b0d2027d1d261ae9bea6d8e92b0f5b51c9cff1
|
3 |
+
size 196812
|
app/examples/pc_examples/00268284/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00352224/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec2f84984a15a9238304fb91195216cc2331283d68c2bb32588fc577f700ce10
|
3 |
+
size 196812
|
app/examples/pc_examples/00352224/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00423708/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb2107556c05c1e373451e1b2c731b1275a008af47f295997d3b6192eb41d13f
|
3 |
+
size 196812
|
app/examples/pc_examples/00423708/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00471383/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2bdf5bd5b0d05c31683f87dc873bd46409f036b964a65212191e94256c5005ed
|
3 |
+
size 196812
|
app/examples/pc_examples/00471383/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00480992/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ad123ada11c26d990e94d8b908917f8c02c40813c8f5e9b9dd0a5fcec1fe988
|
3 |
+
size 196812
|
app/examples/pc_examples/00480992/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00518919/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:942c4b6a2a1c0ac2b4a1b91111470b73783f25434c9ca2449f2075c544fc6177
|
3 |
+
size 196812
|
app/examples/pc_examples/00518919/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00773954/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae0705d1f827546f6e36b497d282b3f4eac1f32c12aee4137bd7fc8ffab5e051
|
3 |
+
size 196812
|
app/examples/pc_examples/00773954/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/00847353/pc.ply
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f50d94a1bac62cc519a7e3734c3ab48ddc5d7fbbf03c9b7544c8f7b82d3859b
|
3 |
+
size 196812
|
app/examples/pc_examples/00847353/pc.png
ADDED
![]() |
Git LFS Details
|
app/examples/pc_examples/take_photo.py
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import open3d as o3d
|
2 |
+
import numpy as np
|
3 |
+
import os
|
4 |
+
from pathlib import Path
|
5 |
+
|
6 |
+
from PIL import Image
|
7 |
+
import os
|
8 |
+
from pathlib import Path
|
9 |
+
|
10 |
+
for folder_name in os.listdir("."):
|
11 |
+
if folder_name != "take_photo.py" and os.path.isdir(folder_name):
|
12 |
+
img_path = Path(folder_name) / "pc.png"
|
13 |
+
if img_path.exists():
|
14 |
+
with Image.open(img_path) as img:
|
15 |
+
new_size = (img.width // 4, img.height // 4)
|
16 |
+
img_resized = img.resize(new_size, Image.Resampling.LANCZOS)
|
17 |
+
img_resized.save( Path(folder_name) / 'pc_resized.png') # Overwrite original image
|
18 |
+
|
19 |
+
# for folder_name in os.listdir("."):
|
20 |
+
# if folder_name != "take_photo.py":
|
21 |
+
# # Load point cloud
|
22 |
+
# pcd = o3d.io.read_point_cloud(Path(folder_name) / "pc.ply")
|
23 |
+
|
24 |
+
# # Set black points
|
25 |
+
# pcd.paint_uniform_color([0, 0, 0])
|
26 |
+
|
27 |
+
# # Create a visualizer
|
28 |
+
# vis = o3d.visualization.Visualizer()
|
29 |
+
# vis.create_window(width=800, height=800) # Keep same size for all images
|
30 |
+
# vis.add_geometry(pcd)
|
31 |
+
|
32 |
+
# # Set transparent background
|
33 |
+
# opt = vis.get_render_option()
|
34 |
+
# opt.background_color = np.array([1, 1, 1]) # White background (no transparency)
|
35 |
+
|
36 |
+
|
37 |
+
# # Capture Image
|
38 |
+
# vis.poll_events()
|
39 |
+
# vis.update_renderer()
|
40 |
+
# vis.capture_screen_image(Path(folder_name) / "pc.png", do_render=True)
|
41 |
+
|
42 |
+
# vis.destroy_window()
|
app/examples/sketch_examples/1.png
ADDED
![]() |
app/examples/sketch_examples/10.png
ADDED
![]() |
app/examples/sketch_examples/11.png
ADDED
![]() |
app/examples/sketch_examples/12.png
ADDED
![]() |