isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.56k stars 2.32k forks source link

AttributeError: module 'open3d.cpu.pybind.geometry' has no attribute 'estimate_normals' #6370

Open nn18339193656 opened 1 year ago

nn18339193656 commented 1 year ago

Checklist

Steps to reproduce the issue

The problematic statement is open3d.geometry.estimate_normals(pcd,search_param=open3d.geometry.KDTreeSearchParamHybrid(radius=0.1, max_nn=30))

Error message

D:\Anaconda3\python.exe "F:\wangluo\Projection correction\PFH.py" 
Traceback (most recent call last):
  File "F:\wangluo\Projection correction\PFH.py", line 7, in <module>
    open3d.geometry.estimate_normals(pcd, search_param=open3d.geometry.KDTreeSearchParamHybrid(radius=0.1, max_nn=30))
AttributeError: module 'open3d.cpu.pybind.geometry' has no attribute 'estimate_normals'

Process finished with exit code 1

Open3D, Python and System information

- Operating system:Windows 11 64-bit
- Python version: Python 3.7 
- Open3D version: 0.15.1
- System architecture: x86 
- Is this a remote workstation?:  no
- How did you install Open3D?: pip 
- Compiler version (if built from source): gcc 7.5 / clang 7.0

Additional information

微信图片_20230914183251

saurabheights commented 1 year ago

Try pcl.estimate_normals(KDTreeSearchParamHybrid(radius=0.05, max_nn=30))

See http://www.open3d.org/docs/0.15.1/python_api/open3d.geometry.PointCloud.html#open3d.geometry.PointCloud.estimate_normals

Make sure you use documentation of right open3d version

The open3d.geometry.estimate_normals is from older Open3D version 0.7.0.