MegaLandmarkLocalizer Class

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

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

Description

MegaLandmarkLocalizer implements cloud based visual positioning localization.


Methods

isAvailable

C#

public static bool isAvailable()

Returns true.

create

C#

public static MegaLandmarkLocalizer create(string server, string apiKey, string apiSecret, string appId)

Creates an instance and connects to the server.

filter

C#

public virtual void filter( LocationResult gps, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action< MegaLandmarkLocalizerFilterResult > callback)

Location filtering.

Send GPS information to get SpotVersionId.

resolve

C#

public virtual void resolve( InputFrame inputFrame, string message, DeviceAuxiliaryInfo deviceAuxInfo, string spotVersionId, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action< MegaLandmarkLocalizerResult > callback)

Send localization request.

Send InputFrame to resolve a cloud localization. InputFrame should have at least image data and camera parameters.

message input is a json string.

close

C#

public virtual void close()

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