MLMarkerTrackerDecodedTypedData
Module: Fiducial Marker Tracking
Structure type selector. More...
#include <ml_marker_tracking.h>
Public Attributes
Type | Name |
---|---|
MLMarkerTrackingDecodedDataType | type |
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;
Type | Description |
---|---|
MLMarkerTrackingDecodedDataType | Decoded Data Type enumeration. |
Type selector for the structure.