Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems while using open3d with depth pro #73

Open
GLY-123 opened this issue Nov 27, 2024 · 0 comments
Open

Some problems while using open3d with depth pro #73

GLY-123 opened this issue Nov 27, 2024 · 0 comments

Comments

@GLY-123
Copy link

GLY-123 commented Nov 27, 2024

When I use depth map that genreate from Depth Pro compareing with that from Kinect Dk,there are some point behind the suface .I think it should be like the Figure 1.I want to know what is the reason,and is it normal.there is the code.thank you Thanks♪(・ω・)ノ

`import open3d as o3d
import numpy as np
import cv2

color_image=o3d.io.read_image(r"E:\NJAU\code\function\My_open3d\test_plant\00000.jpg")
depth_image=o3d.io.read_image(r"E:\NJAU\code\function\My_open3d\test_plant\00000_pro.png")
print(f"dept_image,min:{np.min(depth_image)},max:{np.max(depth_image)}")

rgbd_image=o3d.geometry.RGBDImage.create_from_color_and_depth(color_image,depth_image)
print(rgbd_image)

matrix = np.array([[605.0721435546875, 0.0,644.199462890625],
[0.0, 604.8974609375, 364.885986328125],
[0.0, 0.0, 1.0]], dtype=np.float64)
pcd=o3d.geometry.PointCloud.create_from_rgbd_image(
rgbd_image,
o3d.camera.PinholeCameraIntrinsic(height=720,width=1280,
intrinsic_matrix=matrix)
)
pcd.transform([[1,0,0,0],[0,-1,0,0],[0,0,-1,0],[0,0,0,1]])
o3d.visualization.draw_geometries([pcd])
`
Figure 1 is Using depth map from Kinect DK
image
Figure 1
Figure 2 is using depth map from Depth Pro
image
Figure 2

@GLY-123 GLY-123 changed the title Some problems while using open2d with depth pro Some problems while using open3d with depth pro Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant