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

vertices label format #1

Closed
hosseinshirali opened this issue Dec 7, 2020 · 5 comments
Closed

vertices label format #1

hosseinshirali opened this issue Dec 7, 2020 · 5 comments

Comments

@hosseinshirali
Copy link

Hi, thank you for sharing this project
I am trying to create a 3d bounding box on my pint cloud but I could not save it as vertices label format, can you help me how to do that?

@ch-sa
Copy link
Owner

ch-sa commented Dec 7, 2020

Hi @hosseinshirali,

you can set the export format to vertices by changing the config.ini file. Simply change the line with the label format to:

LABEL_FORMAT = vertices

A graphical dialog for changing the settings is in development, currently all settings are set via the config. Simply change the parameters to your setup and restart labelCloud.

EDIT: There was a minor bug with the label export that I just fixed. So you need to pull the current version again.

The resulting label should look like this:

{
	"folder": "pointclouds",
	"filename": "exemplary.ply",
	"path": "pointclouds/exemplary.ply",
	"objects": [
		{
			"name": "cart",
			"vertices": [
				[
					0.05598266176063349,
					-0.2991399608786043,      # front right bottom
					0.18686448825820234
				],
				[
					-0.02056254376740252,
					0.24550747692925945,      # back right bottom
					0.18686448825820234
				],
				[
					-0.7632635953235803,
					0.14112765120921034,      # back left bottom
					0.18686448825820234
				],
				[
					-0.6867183897955443,
					-0.4035197865986534,      # front left bottom
					0.18686448825820234
				],
				[
					0.05598266176063349,
					-0.2991399608786043,      # front right top
					0.33686448825820237
				],
				[
					-0.02056254376740252,
					0.24550747692925945,      # back right top
					0.33686448825820237
				],
				[
					-0.6867183897955443,
					-0.4035197865986534,      # front left top
					0.33686448825820237
				],
				[
					-0.7632635953235803,
					0.14112765120921034,      # back left top
					0.33686448825820237
				]
			]
		}
	]
}

See the comments for the point location (I will probably change that to a more reasonable layout, like bbox with the next version!).

EDIT2: Vertices sequence has now been updated. See documentation.md.

Hope that answers your question!

Best regards,
Christoph

@hosseinshirali
Copy link
Author

@ch-sa thank you so much for your help
great project

@hosseinshirali
Copy link
Author

Hi again
i followed what you said, clone it again and just change this LABEL_FORMAT = vertices but I got this error
first, try with the default setting the second try with vertices , both the same error
Screenshot (14)
can you help me with that?thanks

@hosseinshirali hosseinshirali reopened this Dec 9, 2020
@ch-sa
Copy link
Owner

ch-sa commented Dec 9, 2020

Hi @hosseinshirali,

I am sorry for the inconvenience. I forgot pushing the config.ini with the update.

Please clone again or simply add Z_ROTATION_ONLY = True in the [LABEL] section of your config.ini.

That should fix it.

@hosseinshirali
Copy link
Author

yes it works great now, thanks for your help

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