CloudRecognizer Class

This type is an EasyAR Sense API in C#: CloudRecognizer . Some descriptions may not apply to Unity environment on this page.

This type is fully wrapped into Unity components: CloudRecognizerFrameFilter . There is no need to use this type directly.


CloudRecognizer implements cloud recognition. It can only be used after created a recognition image library on the cloud. Please refer to EasyAR CRS documentation.

When the component is not needed anymore, call close function to close it. It shall not be used after calling close.

Before using a CloudRecognizer, an ImageTracker must be setup and prepared. Any target returned from cloud should be manually put into the ImageTracker using ImageTracker.loadTarget if it need to be tracked. Then the target can be used as same as a local target after loaded into the tracker. When a target is recognized, you can get it from callback, and you should use target uid to distinguish different targets. The target runtimeID is dynamically created and cannot be used as unique identifier in the cloud situation.




public static bool isAvailable()

Returns true.



public static CloudRecognizer create(string cloudRecognitionServiceServerAddress, string apiKey, string apiSecret, string cloudRecognitionServiceAppId)

Creates an instance and connects to the server.



public static CloudRecognizer createByCloudSecret(string cloudRecognitionServiceServerAddress, string cloudRecognitionServiceSecret, string cloudRecognitionServiceAppId)

Creates an instance and connects to the server with Cloud Secret.



public virtual void resolve( InputFrame inputFrame, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action< CloudRecognizationResult > callback)

Send recognition request. The lowest available request interval is 300ms.



public virtual void close()

Stops the recognition and closes connection. The component shall not be used after calling close.