Class: DetectedObject<T>
Defined in: src/world/objects/DetectedObject.ts:8
Represents a single detected object in the XR environment and holds metadata
about the object's properties. Note: 3D object position is stored in the
position property of Three.Object3D.
Extends
Type Parameters
T
T
Constructors
Constructor
new DetectedObject<
T>(label,image,detection2DBoundingBox,data):DetectedObject<T>
Defined in: src/world/objects/DetectedObject.ts:19
Parameters
label
string
The semantic label of the object.
image
The base64 encoded cropped image of the object.
null | string
detection2DBoundingBox
The 2D bounding box of the detected object in normalized screen coordinates. Values are between 0 and 1. Centerpoint of this bounding is used for backproject to obtain 3D object position (i.e., this.position).
data
T
Additional properties from the detector. This includes any object proparties that is requested through the schema but is not assigned a class property by default (e.g., color, size).
Returns
DetectedObject<T>
Overrides
THREE.Object3D.constructor
Properties
data
data:
T
Defined in: src/world/objects/DetectedObject.ts:23
Additional properties from the detector. This includes any object proparties that is requested through the schema but is not assigned a class property by default (e.g., color, size).
detection2DBoundingBox
detection2DBoundingBox:
Box2
Defined in: src/world/objects/DetectedObject.ts:22
The 2D bounding box of the detected object in normalized screen coordinates. Values are between 0 and 1. Centerpoint of this bounding is used for backproject to obtain 3D object position (i.e., this.position).
image
image:
null|string
Defined in: src/world/objects/DetectedObject.ts:21
The base64 encoded cropped image of the object.
label
label:
string
Defined in: src/world/objects/DetectedObject.ts:20
The semantic label of the object.