blenderproc.python.renderer.NOCSRendererUtility module

Provides functionality to render a Normalized Object Coordinate Space (NOCS) image.

class blenderproc.python.renderer.NOCSRendererUtility._NOCSRendererUtility[source]

Bases: object

static create_nocs_material()[source]

Creates the material which visualizes the NOCS.

Return type:

Material

Returns:

The created material.

blenderproc.python.renderer.NOCSRendererUtility.render_nocs(output_dir=None, file_prefix='nocs_', output_key='nocs', return_data=True, verbose=False)[source]

Renders the Normalized Object Coordinate Space (NOCS).

Colors each object based on its local coordinates. The coordinates [-1, 1] are mapped into the [0, 1] colorspace. It is therefore, recommended that all local vertex coordinates are in range [-1, 1]. The world background is rendered transparent.

Parameters:
  • output_dir (Optional[str]) – The directory to write images to. If None is given, the temp dir is used.

  • file_prefix (str) – The prefix to use for writing the images.

  • output_key (str) – The key to use for registering the output.

  • return_data (bool) – Whether to load and return generated data.

  • verbose (bool) – If True, more details about the rendering process are printed.

Return type:

Dict[str, List[ndarray]]

Returns:

A dict containing one entry “nocs” which points to the list of rendered frames.