Show / Hide Table of Contents

    Class ArUcoMarkerDetector

    Class implementing IMarkerDetector capable of detecting ArUco markers

    Inheritance
    Object
    ArUcoMarkerDetector
    Implements
    IMarkerDetector
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class ArUcoMarkerDetector : MonoBehaviour, IMarkerDetector

    Fields

    MarkerInlierStandardDeviationThreshold

    Declaration
    public float MarkerInlierStandardDeviationThreshold
    Field Value
    Type Description
    Single

    MaximumMarkerSampleCount

    Declaration
    public int MaximumMarkerSampleCount
    Field Value
    Type Description
    Int32

    MaximumPositionDistanceStandardDeviation

    Declaration
    public float MaximumPositionDistanceStandardDeviation
    Field Value
    Type Description
    Single

    MaximumRotationAngleStandardDeviation

    Declaration
    public float MaximumRotationAngleStandardDeviation
    Field Value
    Type Description
    Single

    RequiredInlierCount

    Declaration
    public int RequiredInlierCount
    Field Value
    Type Description
    Int32

    RequiredObservations

    Declaration
    public int RequiredObservations
    Field Value
    Type Description
    Int32

    Properties

    MarkerPositionBehavior

    Determines how the marker is expected to be positioned during detection.

    Declaration
    public MarkerPositionBehavior MarkerPositionBehavior { get; set; }
    Property Value
    Type Description
    MarkerPositionBehavior

    Methods

    SetMarkerSize(Single)

    Set the physical size for markers being detected

    Declaration
    public void SetMarkerSize(float size)
    Parameters
    Type Name Description
    Single size

    The physical size (in meters) of markers being detected

    StartDetecting()

    Starts marker detection

    Declaration
    public void StartDetecting()

    StopDetecting()

    Stops marker detection

    Declaration
    public void StopDetecting()

    TryGetMarkerSize(Int32, out Single)

    Tries to obtain the physical size of a detected marker. Returns true if the marker size is known and was determined through detection; otherwise, returns false.

    Declaration
    public bool TryGetMarkerSize(int markerId, out float size)
    Parameters
    Type Name Description
    Int32 markerId

    id of detected marker

    Single size

    The physical size (in meters) of the detected marker

    Returns
    Type Description
    Boolean

    True if the size was located

    Events

    MarkersUpdated

    Event called when any observed markers have been updated

    Declaration
    public event MarkersUpdatedHandler MarkersUpdated
    Event Type
    Type Description
    MarkersUpdatedHandler

    Implements

    IMarkerDetector
    Back to top Generated by DocFX