Reputation: 31
Given a 2D image of blade and its corresponding 3D Scan data in stl/ply/pcd format. Is it possible to map the 2D image onto the 3D scan data using python? Or is it possible that we extract the color information from the 2D Image and map the color texture onto the 3D scan data using python libraries? I am working on a project where I want to localize the defect position on the blade, I have already implemented AI algorithm to locate the defect on the 2D image, but now I want to transfer this information to the 3D CAD Data.
Ps. I am new to handling 3D data, so any suggestion would be of great help.
Upvotes: 0
Views: 1166
Reputation: 132
if your 3d data means a point cloud data from a lidar device in one timestamp, you can calculate the transformation from your camera to your lidar and project your lidar to the image plane and get color. And you can reference code from here
if your 3d was collected from stereo vision software, like colmap
. There is also a pose relationship between images and the 3d model. You can make the same approach as situation 1.
the worst condition is that your model doesn't have any relative pose between the images and the 3d model. The solution is to calculate an image-to-geometry
result. image-to-geometry
methods will guess the 3d pose of the images relative to the 3d model.
if you only want to know how to map a texture to a 3d model. There is an answer.
Upvotes: 1