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

ModuleNotFoundError: No module named 'primitives_fitting.py_primitives_fitting' #1

Open
wingvortex opened this issue Aug 3, 2022 · 5 comments

Comments

@wingvortex
Copy link

Hi, when I run import primitives_fitting as pf, I got the this error:
ModuleNotFoundError: No module named 'primitives_fitting.py_primitives_fitting'

Since I only need the primitives fitting, so it is better to install this lib instead of Misc3D. I followed all your steps, except using pre-built open3d library from official website. The installation is successful. The python link path is added.

Could you give any hint why I have this error?

@yuecideng
Copy link
Owner

Hi, could you try to check that your enviroments python version is the same with the python version you used to build the library?

@wingvortex
Copy link
Author

Hi, thanks! It is the issue of the python version!
However, when I run your python example with the default params, no plane was detected. And I played with the params, it was easy to crash. Could you give some advice on how to set these params? Especially along with different voxel sizes?

@yuecideng
Copy link
Owner

Could you paste the code snippet or provide a link of your data? I can help you to check the issue if possible.

@wingvortex
Copy link
Author

I did not modify anything in the demo code, just run python test_primitives_fitting.py --file_path 'test1.ply', here the point cloud is located on your repo: https://github.com/yuecideng/Multiple_Planes_Detection/blob/master/Data/test1.ply
image

Although it detects one plane [-0.22253938 0.01703842 0.9747748 0.14553364], the final visualization seems totally wrong, these colorized points look like outliers instead of a detected plane.
image

Then, I played with the params, for example, with --voxel_size 0.02 --dist_thresh 0.1, the program crashed with the error '1230529 segmentation fault (core dumped)'

@yuecideng
Copy link
Owner

Thanks for your interest. I will check that if I get some bandwidth. Note that this project will not be maintained in the future. You can use segmentation and ransac in Misc3D to get the same functionality as primitives fitting.

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

2 participants