Show / Hide Table of Contents

    Class QRCodeMarkerDetector

    QR code detector that implements IMarkerDetector

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

    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 markerSize)
    Parameters
    Type Name Description
    Single markerSize

    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

    Update()

    Declaration
    protected void Update()

    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