blenderproc.python.modules.provider.getter.POI module

class blenderproc.python.modules.provider.getter.POI.POI(config)[source]

Bases: blenderproc.python.modules.main.Provider.Provider

Computes a point of interest in the scene. Point is defined as a location of the one of the selected objects that is the closest one to the mean location of the bboxes of the selected objects.

Example 1: Return a location of the object that is the closest one to the mean bbox location of all MESH objects.

{
  "provider": "getter.POI"
}

Example 2: Return a location of the object that is the closest one to the mean bbox location of MESH objects that have their custom property set to True.

{
  "provider": "getter.POI",
  "selector": {
    "provider": "getter.Entity",
    "conditions": {
      "cp_shape_net_object": True,
      "type": "MESH"
    }
  }
}

Configuration:

Parameter Description Type
selector Objects to take part in the POI computation. Default: all mesh objects. Provider
run()[source]
Returns:Point of interest in the scene. Type: mathutils.Vector.