Ejemplo n.º 1
0
        public TrackingStatus GetTrackingStatus()
        {
            CloudRecognitionController cloudRecognitionController = CloudRecognitionController.Instance;

            if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_START)
            {
                return(TrackingStatus.START);
            }
            else if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_STOP)
            {
                return(TrackingStatus.STOP);
            }
            else if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_TRACKING)
            {
                return(TrackingStatus.TRACKING);
            }
            else if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_CONNECTING)
            {
                return(TrackingStatus.CLOUD_CONNECTING);
            }
            else if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_CONNECT)
            {
                return(TrackingStatus.CLOUD_CONNECTING);
            }
            else if (cloudRecognitionController.GetCloudStatus() == CloudRecognitionController.CloudState.CLOUDSTATE_FEATURE_COLLECT_READY)
            {
                return(TrackingStatus.RECOGNITION);
            }
            else
            {
                return(TrackingStatus.STATUS_UNKNOWN);
            }
        }
 /// <summary>Start Tracker.</summary>
 /// <param name="trackerType">Bit mask of tracker type.</param>
 public void StartTracker(int trackerType)
 {
     if (trackerType == TRACKER_TYPE_CLOUD_RECOGNIZER)
     {
         cloudRecognitionController = CloudRecognitionController.Instance;
         cloudRecognitionController.setCloudRecognitionSecretIdAndSecretKey(this.secretId, this.secretKey);
         cloudRecognitionController.startTracker();
     }
     else
     {
         NativeAPI.TrackerManager_startTracker(trackerType);
     }
 }
Ejemplo n.º 3
0
 private void InitializeCloud()
 {
     cloudRecognitionController = CloudRecognitionController.Instance;
 }