python No dq3d python package, filterreg deformation model not available.

网友投稿 949 2022-10-01

python No dq3d python package, filterreg deformation model not available.

python No dq3d python package, filterreg deformation model not available.

今天在安装probreg的时候,没有报错,但是在运行代码的时候报错了:

安装命令为:

pip install probreg

示例代码为:

import copyimport numpy as npimport open3d as o3from probreg import cpd# load source and target point cloudsource = o3.io.read_point_cloud('bunny.pcd')target = copy.deepcopy(source)# transform target point cloudth = np.deg2rad(30.0)target.transform(np.array([[np.cos(th), -np.sin(th), 0.0, 0.0], [np.sin(th), np.cos(th), 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]))source = source.voxel_down_sample(voxel_size=0.005)target = target.voxel_down_sample(voxel_size=0.005)# compute cpd registrationtf_param, _, _ = cpd.registration_cpd(source, target)result = copy.deepcopy(source)result.points = tf_param.transform(result.points)# draw resultsource.paint_uniform_color([1, 0, 0])target.paint_uniform_color([0, 1, 0])result.paint_uniform_color([0, 0, 1])o3.visualization.draw_geometries([source, target, result])

错误信息为:

No dq3d python package, filterreg deformation model not available.

解决方法

➜ pip install dq3d Looking in indexes: dq3d Downloading (882 kB) |████████████████████████████████| 882 kB 323 kB/s Requirement already satisfied: pybind11>=2.2 in /home/eric/anaconda3/lib/python3.6/site-packages (from dq3d) (2.5.0)Building wheels for collected packages: dq3d Building wheel for dq3d (setup.py) ... done Created wheel for dq3d: filename=dq3d-0.3.6-cp36-cp36m-linux_x86_64.whl size=1446765 sha256=7d8b094646b3e332475646b50c0def531ee7a916d6812d0e1fd5c70d58f516bc Stored in directory: /home/eric/.cache/pip/wheels/e8/dc/91/c9b0c8156038febce1c17d910af516053e4b22668a42ea1e15Successfully built dq3dInstalling collected packages: dq3dSuccessfully installed dq3d-0.3.6

只需要安装pip install dq3d 就行了

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:SpringBoot详细列举常用注解的说明
下一篇:python3 利用ffmpeg把音频转换为16khz的wav文件
相关文章

 发表评论

暂时没有评论,来抢沙发吧~