Preparing search index...

    Tracks 2D objects in the camera feed using ML classification.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    const obj = scene.createSceneObject('ObjectTracker');
    const tracking = obj.addComponent('ObjectTracking') as Editor.Components.ObjectTracking;

    tracking.trackingType = Editor.Components.ObjectTrackingType.Cat;
    console.log(`ObjectTracking trackingType: ${tracking.trackingType}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean

    Whether the component is active.

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    Name of the component.

    sceneObject: SceneObject

    Scene object this component is attached to.

    trackingType: ObjectTrackingType

    Type of object to detect and track.

    type: string

    The entity's type.

    Methods

    • Beta

      Returns the name of this object's type.

      Returns string

    • Beta

      Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean