WVR_StartMarkerObserver¶
-
WVR_EXPORT WVR_Result WVR_StartMarkerObserver(WVR_MarkerObserverTarget target)
Function is used to enable marker observer with the target parameter type.
This API will enable marker observer type related to the input observer target.
- Version
- API Level 13
- Parameters
target
: the observer target that developers would like to use. (refer to WVR_MarkerObserverTarget)
- Return Value
WVR_Success
: Start marker observer successfully.others
: WVR_Result mean failure.
How to use¶
Sample function:
#include <wvr/wvr_marker.h>
if (WVR_StartMarker() == WVR_Success) {
// Start specified target marker observer
if (WVR_StartMarkerObserver(WVR_MarkerObserverTarget_Aruco) == WVR_Success) {
// Start Aruco marker observer success
}
WVR_StopMarker();
} else {
// start marker failed!
}