blenderproc.python.modules.loader.ShapeNetLoaderModule module¶
-
class
blenderproc.python.modules.loader.ShapeNetLoaderModule.
ShapeNetLoaderModule
(config)[source]¶ Bases:
blenderproc.python.modules.loader.LoaderInterface.LoaderInterface
This loads an object from ShapeNet based on the given synset_id, which specifies the category of objects to use.
From these objects one is randomly sampled and loaded.
As for all loaders it is possible to add custom properties to the loaded object, for that use add_properties.
Finally it sets all objects to have a category_id corresponding to the void class, so it wouldn’t trigger an exception in the SegMapRenderer.
Note: if this module is used with another loader that loads objects with semantic mapping, make sure the other module is loaded first in the config file.
Configuration:
Parameter Description Type data_path The path to the ShapeNetCore.v2 folder. string used_synset_id The synset id for example: ‘02691156’, check the data_path folder for more ids. More information about synset id available here: http://wordnetweb.princeton.edu/perl/webwn3.0 string used_source_id The identifier of the original model on the online repository from which it was collected to build the ShapeNet dataset. string move_object_origin Moves the object center to the bottom of the bounding box in Z direction and also in the middle of the X and Y plane, this does not change the .location of the object. Default: True bool