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

Can't visualize .pcd files in webpage #128

Open
Oscarstenstad opened this issue Mar 26, 2021 · 17 comments
Open

Can't visualize .pcd files in webpage #128

Oscarstenstad opened this issue Mar 26, 2021 · 17 comments

Comments

@Oscarstenstad
Copy link

Hi,
I have been trying to use this software on .pcd files and everything seems to be working fine until I get in to the actual Segmentation page of the webpage. I can choose a .pcd file from the directory I have chosen but the image doesn't show in the next page. Anyone know how to fix this? I have tried with both meteor 1.6 and 2.1 and neither work.
Screenshot from 2021-03-26 11-08-46

@dmandrioli
Copy link
Member

Hi, does the sample pcd file work?
If not, could you please share your problematic pcd file?
Thanks.

@Oscarstenstad
Copy link
Author

Hi again,
I can open the bitmap file, but the sample pcd does not work either, it just says "loading objects..." in the bottom right corner, as it did when I tried with my own file. I have let it load for a really long time but nothing happens.

The header of the file I am trying to open looks like this:
Screenshot from 2021-03-26 11-44-51

And here is a .txt file with the content of the pcd file
txt_cloud.txt

@dmandrioli
Copy link
Member

Hi, could you please provide the original PCD file which is in binary format according to headers.
Thanks.

@jobberz77
Copy link

I had trouble with displaying the sample pointcloud and others aswell in the newest version. For some reason going back to version 1.5.2 fixed that for me

@Oscarstenstad
Copy link
Author

I tried your suggestion and it works here as well. Thank you for the suggestion :)

@jiarui-zhang-atlas
Copy link

I had trouble with displaying the sample pointcloud and others aswell in the newest version. For some reason going back to version 1.5.2 fixed that for me

Hi @jobberz77 and @Oscarstenstad I am new to Meteor and this software, may I ask how you used the 1.5.2 version to run this software? this software seems to built by [email protected] version. Thank you in advance!

@jobberz77
Copy link

Hello @Atlaszjr-star, I was referring to version 1.5.2 of the labeling tool, not the Meteor version. You can get the 1.5.2 version of the labeling tool by downloading the branch of that version. You don't need to change the Meteor version.
Let me know if you need more help!

@jiarui-zhang-atlas
Copy link

Hi @jobberz77 , thank you so much for your advice, I just realized it's the labeling tool's version ;-) it does work right now!
Thanks again!

@robertson-oa
Copy link

Hello can anyone kindly help me with some PCD files. I am trying to run a couple of them on version 1.5.2 and seems not be working. It keeps on loading objects at the bottom right. Any link to download such files could help thanks.

@jobberz77
Copy link

@robertson-oa This has to do with the sort of PCD file you are using. If you have converted some point cloud into PCD format through CloudCompare, they will not work in the labeling tool. You have to do this manually in a notebook. It's been a while since I worked with point clouds so I'm not sure which library I used for the conversion. it might have been Open3D but I can't say for sure

@robertson-oa
Copy link

@jobberz77 alright will search into that and get back if I encounter any challenge. Thanks for the response.

@robertson-oa
Copy link

@jobberz77 I am able to read the PCD files thanks

@xipi702
Copy link

xipi702 commented Oct 17, 2021

@robertson-oa
Hi, bro, would you like to help me? how did you solve it? using version 1.5.2?

@amansth
Copy link

amansth commented Nov 5, 2021

@jobberz77 I'm having the same problem with Cloudcompare generated file. Did you get it working by changing the data to ASCII and changing the headers ?

I'm trying the latter but I'm not sure what the _ field should be.

Current header that doesn't work:

.PCD v0.7 - Point Cloud Data file format

VERSION 0.7
FIELDS Classification rgb x y z _
SIZE 4 4 4 4 4 1
TYPE F F F F F U
COUNT 1 1 1 1 1 4
WIDTH 505622
HEIGHT 1
VIEWPOINT 0 0 0 1 0 0 0
POINTS 505622
DATA binary

Header, which works:

.PCD v.7 - Point Cloud Data file format

VERSION .7
FIELDS x y z rgb
SIZE 4 4 4 4
TYPE F F F F
COUNT 1 1 1 1
WIDTH 213
HEIGHT 1
VIEWPOINT 0 0 0 1 0 0 0
POINTS 213
DATA ascii

@amansth
Copy link

amansth commented Nov 5, 2021

Actually never mind, I just managed to fix it.

The solution for me was as @jobberz77 suggested: use open3d.

For anyone still stuck and found their way here,
the functions of interest are:
open3d.io.read_point_cloud - to open pcd file with incorrect header from cloudcompare
open3d.visualisation.draw_geometries - to verify that the model looks as it should
open3d.io.write_point_cloud - to write in the correct format.

pip3 install open3d , then you can use this small script:

import numpy as np
from open3d import *

def main():
cloud = open3d.io.read_point_cloud("path to pcd")
open3d.visualization.draw_geometries([cloud])
open3d.io.write_point_cloud("path for pcd")

if name== "main":
main()

@wsn
Copy link

wsn commented Dec 28, 2021

@jobberz77 I still can't read sample .pcd file through 1.5.2 tool and meteor 2.5.1, the result is following and another problem is that when run start ,it always report "Browserslist: caniuse-lite is outdated". It would be much appreciated if anyone could help me.
image

@jobberz77
Copy link

@wsn I have seen that caniuse-lite error before and I don't think you should worry about it too much. For the black screen you are getting though, its different from the error I had which is an infinite loading loop when using the wrong type of .pcd files.

Honestly, I'm not sure if I can help you with this. Maybe changing up the Meteor version fixes the problem but I can't say for sure. Good luck!

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

8 participants