WVR_StopScenePerception

WVR_EXPORT WVR_Result WVR_StopScenePerception(WVR_ScenePerceptionTarget target)

Function is used to stop scene perception.

This API will stop perception related to input perception target and release the underlying related resources.

Version
API Level 11
Parameters
Return Value
  • WVR_Success: Stop scene perception successfully.
  • others: WVR_Result mean failure.

How to use

Sample function:

#include <wvr/wvr_scene.h>

if (WVR_StartScene() == WVR_Success) {
    if (WVR_StartScenePerception(WVR_ScenePerceptionTarget_2dPlane) == WVR_Success) {
        WVR_ScenePerceptionState state;
        if (WVR_GetScenePerceptionState(WVR_ScenePerceptionTarget_2dPlane, &state) == WVR_SUCCESS) {
            // wait until state is WVR_ScenePerceptionState_Completed
            if (state == WVR_ScenePerceptionState_Completed) {
                // Start scene perception with WVR_ScenePerceptionTarget_2dPlane successfully and get the state as completed.
                // Developers can call WVR_GetScenePlanes to get scene plane data
            }
        }
    } else {
        // start perception with WVR_ScenePerceptionTarget_2dPlane failed
    }
    // ...
    WVR_StopScenePerception(WVR_ScenePerceptionTarget_2dPlane);
    WVR_StopScene();
} else {
    // start scene failed!
}