WVR_StopMarkerDetection

WVR_EXPORT WVR_Result WVR_StopMarkerDetection(WVR_MarkerObserverTarget target)

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

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

Version
API Level 13
Parameters
Return Value
  • WVR_Success: stop 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 detecting the Aruco marker, and the Aruco marker detection will be WVR_MarkerObserverState_Detecting


            // Stop detecting Aruco marker
            if (WVR_StopMarkerDetection(WVR_MarkerObserverTarget_Aruco) == WVR_Success)) {
                // The Aruco marker detection will be WVR_MarkerObserverState_Idle
            }
        }

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

        }
    }

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