protected void Start() { #if UNITY_WSA && !UNITY_EDITOR _api = new SpectatorViewOpenCVInterface(); if (!_api.Initialize(_markerSize)) { Debug.LogError("Issue loading SpectatorView.OpenCV dll"); } _markerObservations = new Dictionary <int, List <Marker> >(); #endif }
private void OnEnable() { UpdateDetectionCompletionStrategy(); #if UNITY_WSA && !UNITY_EDITOR _api = new SpectatorViewOpenCVInterface(); if (!_api.Initialize(_markerSize)) { Debug.LogError("Issue loading SpectatorView.OpenCV dll"); } _markerObservations = new Dictionary <int, List <Marker> >(); #endif }
public Marker AsMarker() { return(SpectatorViewOpenCVInterface.CreateMarkerFromPositionAndRotation(id, position.AsPosition(), rotation.AsRodriguesRotation(), Matrix4x4.identity)); }