WVR_StartMarkerDetection

WVR_EXPORT WVR_Result WVR_StartMarkerDetection(WVR_MarkerObserverTarget target)

Function is used to start marker detection with the target parameter.

This API will start marker detection related to the input observer target.

Version
API Level 13
Parameters
Return Value
  • WVR_Success: Start marker detection successfully.
  • others: WVR_Result mean failure.

How to use

Sample function:

#include <wvr/wvr_marker.h>

if (WVR_StartMarker() == WVR_Success) {
    // start marker observer
    if (WVR_StartMarkerObserver(WVR_MarkerObserverTarget_Aruco) == WVR_Success) {
        // Start Aruco marker observer related resources success

        if (WVR_StartMarkerDetection(WVR_MarkerObserverTarget_Aruco) == WVR_Success)) {
            // Start to detection the Aruco marker, and the Aruco marker detection will be WVR_MarkerObserverState_Detecting
        }

        // release Aruco marker observer related resources success
        if (WVR_StopMarkerObserver(WVR_MarkerObserverTarget_Aruco) == WVR_Success) {

        }
    }

    WVR_StopMarker();
} else {
    // start marker failed!
}