Show / Hide Table of Contents

    Class ArucoObjectsTracker

    Detects ArucoObject, displays detections and applies the estimated transforms to gameObjects associated to the ArUco objects.

    See the OpenCV documentation for more information about the marker detection: http://docs.opencv.org/3.2.0/d5/dae/tutorial_aruco_detection.html

    Inheritance
    Object
    Controller
    ArucoCameraController
    ArucoObjectDetector
    ArucoObjectsController
    ArucoObjectsTracker
    Implements
    IArucoObjectsTracker
    IArucoCameraController
    IController
    IArucoObjectsController
    IHasDetectorParameter
    Inherited Members
    ArucoObjectsController.ArucoObjectAdded
    ArucoObjectsController.ArucoObjectRemoved
    ArucoObjectsController.DictionaryAdded
    ArucoObjectsController.DictionaryRemoved
    ArucoObjectsController.ArucoObjects
    ArucoObjectsController.Start()
    ArucoObjectsController.AddArucoObject(ArucoObject)
    ArucoObjectsController.RemoveArucoObject(ArucoObject)
    ArucoObjectsController.GetArucoObjects<U>(Aruco.Dictionary)
    ArucoObjectsController.ArucoObject_PropertyUpdating(ArucoObject)
    ArucoObjectsController.ArucoObject_PropertyUpdated(ArucoObject)
    ArucoObjectDetector.DetectorParameters
    ArucoCameraController.ArucoCamera
    Controller.Configured
    Controller.Ready
    Controller.Started
    Controller.Stopped
    Controller.AutoStart
    Controller.IsConfigured
    Controller.IsReady
    Controller.IsStarted
    Controller.OnDestroy()
    Controller.AddDependency(IController)
    Controller.RemoveDependency(IController)
    Controller.GetDependencies()
    Controller.Configure()
    Controller.StartController()
    Controller.StopController()
    Controller.OnConfigured()
    Controller.OnStarted()
    Controller.OnStopped()
    Namespace: ArucoUnity.Objects.Trackers
    Assembly: Assembly-CSharp.dll
    Syntax
    public class ArucoObjectsTracker : ArucoObjectsController, IArucoObjectsTracker, IArucoCameraController, IController, IArucoObjectsController, IHasDetectorParameter

    Fields

    | Improve this Doc View Source

    additionalTrackers

    Declaration
    protected Dictionary<Type, ArucoObjectTracker> additionalTrackers
    Field Value
    Type Description
    Dictionary<Type, ArucoObjectTracker>
    | Improve this Doc View Source

    trackingThread

    Declaration
    protected ArucoCameraSeparateThread trackingThread
    Field Value
    Type Description
    ArucoCameraSeparateThread

    Properties

    | Improve this Doc View Source

    ArucoCameraDisplay

    Declaration
    public IArucoCameraDisplay ArucoCameraDisplay { get; set; }
    Property Value
    Type Description
    IArucoCameraDisplay
    | Improve this Doc View Source

    DrawAxes

    Declaration
    public bool DrawAxes { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    DrawDetectedCharucoMarkers

    Declaration
    public bool DrawDetectedCharucoMarkers { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    DrawDetectedDiamonds

    Declaration
    public bool DrawDetectedDiamonds { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    DrawDetectedMarkers

    Declaration
    public bool DrawDetectedMarkers { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    DrawRejectedCandidates

    Declaration
    public bool DrawRejectedCandidates { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    MarkerTracker

    Declaration
    public ArucoMarkerTracker MarkerTracker { get; protected set; }
    Property Value
    Type Description
    ArucoMarkerTracker
    | Improve this Doc View Source

    RefineDetectedMarkers

    Declaration
    public bool RefineDetectedMarkers { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    ArucoCamera_ImagesUpdated()

    Updates the tracking thread with , calls DeactivateArucoObjects() and UpdateTransforms() and stops if there was an exception from this thread.

    Declaration
    protected void ArucoCamera_ImagesUpdated()
    | Improve this Doc View Source

    ArucoObjectsController_ArucoObjectAdded(ArucoObject)

    Activates the tracker associated with the arucoObject and configure its gameObject.

    Declaration
    protected virtual void ArucoObjectsController_ArucoObjectAdded(ArucoObject arucoObject)
    Parameters
    Type Name Description
    ArucoObject arucoObject

    The added ArUco object.

    | Improve this Doc View Source

    ArucoObjectsController_ArucoObjectRemoved(ArucoObject)

    Deactivates the tracker associated with the arucoObject if it was the last one of this type.

    Declaration
    protected virtual void ArucoObjectsController_ArucoObjectRemoved(ArucoObject arucoObject)
    Parameters
    Type Name Description
    ArucoObject arucoObject

    The removed

    | Improve this Doc View Source

    Awake()

    Initializes the trackers list and sets ArucoCameraDisplay from editor field if not null.

    Declaration
    protected override void Awake()
    Overrides
    ArucoObjectsController.Awake()
    | Improve this Doc View Source

    Configuring()

    Add ArucoCameraDisplay as dependency.

    Declaration
    protected override void Configuring()
    Overrides
    ArucoObjectDetector.Configuring()
    | Improve this Doc View Source

    DeactivateArucoObjects()

    Declaration
    public void DeactivateArucoObjects()
    | Improve this Doc View Source

    Detect()

    Declaration
    public void Detect()
    | Improve this Doc View Source

    Detect(Cv.Mat[])

    Declaration
    public void Detect(Cv.Mat[] images)
    Parameters
    Type Name Description
    Cv.Mat[] images
    | Improve this Doc View Source

    Draw()

    Declaration
    public void Draw()
    | Improve this Doc View Source

    Draw(Cv.Mat[])

    Declaration
    public void Draw(Cv.Mat[] images)
    Parameters
    Type Name Description
    Cv.Mat[] images
    | Improve this Doc View Source

    EstimateTransforms()

    Declaration
    public void EstimateTransforms()
    | Improve this Doc View Source

    ExecuteOnActivatedTrackers(Action<ArucoObjectTracker, Int32, Aruco.Dictionary>)

    Executes an actionOnTracker on all the activated ArucoObjectTracker.

    Declaration
    protected void ExecuteOnActivatedTrackers(Action<ArucoObjectTracker, int, Aruco.Dictionary> actionOnTracker)
    Parameters
    Type Name Description
    Action<ArucoObjectTracker, Int32, Aruco.Dictionary> actionOnTracker
    | Improve this Doc View Source

    Starting()

    Initializes the tracking, activates the trackers, susbcribes to the and events and starts the tracking thread.

    Declaration
    protected override void Starting()
    Overrides
    Controller.Starting()
    | Improve this Doc View Source

    Stopping()

    Unsuscribes from ArucoObjectController events, deactivates the trackers and abort the tracking thread and stops the tracking thread.

    Declaration
    protected override void Stopping()
    Overrides
    Controller.Stopping()
    | Improve this Doc View Source

    TrackArucoObjects(Cv.Mat[])

    Detects and estimates the transforms of the detected ArUco objects. Executed on a separated tracking thread.

    Declaration
    protected void TrackArucoObjects(Cv.Mat[] images)
    Parameters
    Type Name Description
    Cv.Mat[] images
    | Improve this Doc View Source

    UpdateTransforms()

    Declaration
    public void UpdateTransforms()

    Implements

    IArucoObjectsTracker
    IArucoCameraController
    IController
    IArucoObjectsController
    IHasDetectorParameter
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • additionalTrackers
      • trackingThread
    • Properties
      • ArucoCameraDisplay
      • DrawAxes
      • DrawDetectedCharucoMarkers
      • DrawDetectedDiamonds
      • DrawDetectedMarkers
      • DrawRejectedCandidates
      • MarkerTracker
      • RefineDetectedMarkers
    • Methods
      • ArucoCamera_ImagesUpdated()
      • ArucoObjectsController_ArucoObjectAdded(ArucoObject)
      • ArucoObjectsController_ArucoObjectRemoved(ArucoObject)
      • Awake()
      • Configuring()
      • DeactivateArucoObjects()
      • Detect()
      • Detect(Cv.Mat[])
      • Draw()
      • Draw(Cv.Mat[])
      • EstimateTransforms()
      • ExecuteOnActivatedTrackers(Action<ArucoObjectTracker, Int32, Aruco.Dictionary>)
      • Starting()
      • Stopping()
      • TrackArucoObjects(Cv.Mat[])
      • UpdateTransforms()
    • Implements
    Back to top Aruco Unity - Erwan Normand