Skip to content

How to save the debug or point cloud from dbscan in csv format? #3629

Answered by ssheorey
vimalchawda asked this question in Q&A
Discussion options

You must be logged in to vote

That tutorial converts the obtained cluster labels to a Numpy array. You can then save the Numpy array as csv with np.savetext. Something like:

np.savetxt('pcd_labels.csv', np.hstack((np.asarray(pcd.points), labels)), delimiter=',')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by germanros1987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants