Class ArucoObjectTracker
Base for detecting and estimating the transform of an ArUco object.
Inheritance
Namespace: ArucoUnity.Objects.Trackers
Assembly: Assembly-CSharp.dll
Syntax
public abstract class ArucoObjectTracker
Fields
| Improve this Doc View SourcearucoCamera
Declaration
protected IArucoCamera arucoCamera
Field Value
Type | Description |
---|---|
IArucoCamera |
arucoCameraDisplay
Declaration
protected IArucoCameraDisplay arucoCameraDisplay
Field Value
Type | Description |
---|---|
IArucoCameraDisplay |
arucoCameraUndistortion
Declaration
protected IArucoCameraUndistortion arucoCameraUndistortion
Field Value
Type | Description |
---|---|
IArucoCameraUndistortion |
arucoTracker
Declaration
protected IArucoObjectsTracker arucoTracker
Field Value
Type | Description |
---|---|
IArucoObjectsTracker |
Properties
| Improve this Doc View SourceIsActivated
Is the tracker configured and activated?
Declaration
public bool IsActivated { get; protected set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceActivate(IArucoObjectsTracker)
Configure and activate the tracker.
Declaration
public virtual void Activate(IArucoObjectsTracker arucoTracker)
Parameters
Type | Name | Description |
---|---|---|
IArucoObjectsTracker | arucoTracker |
ArucoObjectsController_DictionaryAdded(Aruco.Dictionary)
Update the properties when a new dictionary is added.
Declaration
protected virtual void ArucoObjectsController_DictionaryAdded(Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Aruco.Dictionary | dictionary | The new dictionary. |
ArucoObjectsController_DictionaryRemoved(Aruco.Dictionary)
Update the properties when a dictionary is removed.
Declaration
protected virtual void ArucoObjectsController_DictionaryRemoved(Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Aruco.Dictionary | dictionary | The removed dictionary. |
Deactivate()
Deactivate the tracker.
Declaration
public virtual void Deactivate()
Detect(Int32, Aruco.Dictionary)
Detect the ArUco objects on the current image of a camera.
Declaration
public virtual void Detect(int cameraId, Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera to use. |
Aruco.Dictionary | dictionary | The dictionary to use for the detection. |
Detect(Int32, Aruco.Dictionary, Cv.Mat)
Detect the ArUco objects for a camera on an custom image.
Declaration
public virtual void Detect(int cameraId, Aruco.Dictionary dictionary, Cv.Mat image)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera. |
Aruco.Dictionary | dictionary | The dictionary to use for the detection. |
Cv.Mat | image | The image to use for the detection. |
Draw(Int32, Aruco.Dictionary)
Draw the detected ArUco objects on the current image of a camera.
Declaration
public virtual void Draw(int cameraId, Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera to use. |
Aruco.Dictionary | dictionary | The dictionary to use. |
Draw(Int32, Aruco.Dictionary, Cv.Mat)
Draw the detected ArUco objects for a camera on a custom image.
Declaration
public virtual void Draw(int cameraId, Aruco.Dictionary dictionary, Cv.Mat image)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera to use. |
Aruco.Dictionary | dictionary | The dictionary to use. |
Cv.Mat | image | Draw on this image. |
EstimateTransforms(Int32, Aruco.Dictionary)
Estimate the gameObject's transform of each detected ArUco object.
Declaration
public virtual void EstimateTransforms(int cameraId, Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera to use. |
Aruco.Dictionary | dictionary | The dictionary to use. |
UpdateTransforms(Int32, Aruco.Dictionary)
Place and orient the detected ArUco objects relative to a camera.
Declaration
public virtual void UpdateTransforms(int cameraId, Aruco.Dictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraId | The id of the camera to use. |
Aruco.Dictionary | dictionary | The dictionary to use. |