Skip to main content
Version: 20 Mar 2024

MLMarkerTrackerDecodedTypedData

Module: Fiducial Marker Tracking

Structure type selector. More...

#include <ml_marker_tracking.h>

Public Attributes

TypeName
MLMarkerTrackingDecodedDataTypetype

Detailed Description

struct MLMarkerTrackerDecodedTypedData;

Structure type selector.

Different Marker Decoders will produce different data. Use this structure to find what the data structure is.

switch ( data->type ) {
case MLMarkerTrackingDecodedDataType_Aruco:
MLMarkerTrackerDecodedArucoData * aruco = reinterpret_cast<MLMarkerTrackerDecodedArucoData*>(data);
MLog(Verbose, "Received Aruco Code %u", aruco->id);
break;
default:
MLog(Verbose, "Unhandled type received");
}
Deprecated

Deprecated since 1.6.0. Scheduled for removal.

API Level:

  • 20

Public Attributes Documentation

type

MLMarkerTrackingDecodedDataType type;
TypeDescription
MLMarkerTrackingDecodedDataTypeDecoded Data Type enumeration.

Type selector for the structure.