C Specification

The type of marker to be tracked is specified via XrMarkerDetectorML:

// Provided by XR_ML_marker_understanding
typedef enum XrMarkerTypeML {
    XR_MARKER_TYPE_ARUCO_ML = 0,
    XR_MARKER_TYPE_APRIL_TAG_ML = 1,
    XR_MARKER_TYPE_QR_ML = 2,
    XR_MARKER_TYPE_EAN_13_ML = 3,
    XR_MARKER_TYPE_UPC_A_ML = 4,
    XR_MARKER_TYPE_CODE_128_ML = 5,
    XR_MARKER_TYPE_MAX_ENUM_ML = 0x7FFFFFFF
} XrMarkerTypeML;

Description

Enumerant Descriptions
  • XR_MARKER_TYPE_ARUCO_ML — Aruco Marker detection and localization. The marker id of the Aruco marker is available via xrGetMarkerNumberML.

  • XR_MARKER_TYPE_APRIL_TAG_ML — AprilTag detection and localization. The marker id of the AprilTags is available via xrGetMarkerNumberML.

  • XR_MARKER_TYPE_QR_ML — QR code detection and localization. The contents of the QR code is available via xrGetMarkerStringML.

  • XR_MARKER_TYPE_EAN_13_ML — EAN-13, detection only, not locatable. The contents of the barcode is available via xrGetMarkerStringML.

  • XR_MARKER_TYPE_UPC_A_ML — UPC-A, detection only, not locatable. The contents of the barcode is available via xrGetMarkerStringML.

  • XR_MARKER_TYPE_CODE_128_ML — Code 128, detection only, not locatable. The contents of the barcode is available via xrGetMarkerStringML.

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2024, The Khronos Group Inc.