Beispiel #1
0
        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
        }