Cloud trackers will send the image(s) taken by the camera to the Cloud Recognition server. The server will then do the hard work of trying to match the image with your targets in the specified cloud archive.
More...
|
OnTrackerFinishedLoadingEvent | OnTrackerFinishedLoading = new OnTrackerFinishedLoadingEvent() |
| Called when a cloud tracker successfully loaded with the given authentication token and target collection ID. More...
|
|
OnRecognitionSuccessfulEvent | OnRecognitionSuccessful = new OnRecognitionSuccessfulEvent() |
| Is called when recognition was successful, regardless of the evaluation result. More...
|
|
OnRecognitionFailedEvent | OnRecognitionFailed = new OnRecognitionFailedEvent() |
| Called when the device/server communication could not be established or any other error occured. More...
|
|
OnRecognitionInterruptionEvent | OnRecognitionInterruption = new OnRecognitionInterruptionEvent() |
| Called when the given interval is to short in order to process one request after the other. More...
|
|
Cloud trackers will send the image(s) taken by the camera to the Cloud Recognition server. The server will then do the hard work of trying to match the image with your targets in the specified cloud archive.
When cloud trackers are created at runtime, make sure that all the relevant properties are set before the Start method is called by Unity. At start, the native tracker is created and all information needs to be available.
void Wikitude.CloudTracker.Recognize |
( |
| ) |
|
|
inline |
Triggers a single device/server communication to find out if a image target occurs in the current camera frame.
This includes capturing the current camera frame, sending it to the Wikitude cloud recognition server, evaluate the frame and sending back the response.
If the server could process the camera frame, onRecognitionSuccessful is called, independent of the evaluation result.
If no connection to the server could be established or any other problem occured, onRecognitionFailed is called, providing more information about what went wrong.
void Wikitude.CloudTracker.StartContinuousRecognition |
( |
double |
interval | ) |
|
|
inline |
Starts a continuous cloud recognition session.
Calling this method does essentially the same as a single call to recognize(), but repeats this with the given interval. If the given interval is too short and the previous request hasn't finished when the next one should be send, the interruption handler is called with a newly suggested interval.
So within the interruption handler, the current continuous recognition session should be stopped and started again with the given interval. If not, requests will be dropped.
- Parameters
-
interval | Interval at which new images are sent to the cloud. |