Coder Social home page Coder Social logo

vertices label format about labelcloud HOT 5 CLOSED

ch-sa avatar ch-sa commented on May 21, 2024
vertices label format

from labelcloud.

Comments (5)

ch-sa avatar ch-sa commented on May 21, 2024

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

from labelcloud.

hosseinshirali avatar hosseinshirali commented on May 21, 2024

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

from labelcloud.

hosseinshirali avatar hosseinshirali commented on May 21, 2024

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

from labelcloud.

ch-sa avatar ch-sa commented on May 21, 2024

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.

from labelcloud.

hosseinshirali avatar hosseinshirali commented on May 21, 2024

yes it works great now, thanks for your help

from labelcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.