コード例 #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
        }
コード例 #2
0
        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
        }
コード例 #3
0
 public Marker AsMarker()
 {
     return(SpectatorViewOpenCVInterface.CreateMarkerFromPositionAndRotation(id, position.AsPosition(), rotation.AsRodriguesRotation(), Matrix4x4.identity));
 }