代码展示
import cv2 as cv
import open3d as o3d
modelname = "parasaurolophus_6700"
detector = cv.ppf_match_3d_PPF3DDetector(0.025, 0.05)
print('Loading model...')
pc = cv.ppf_match_3d.loadPLYSimple("data/%s.ply" % modelname, 1)
pt = o3d.geometry.PointCloud()
pt.points = o3d.utility.Vector3dVector(pc[:, :3])
pt.normals = o3d.utility.Vector3dVector(pc[:, 3:])
o3d.visualization.draw_geometries([pt])