MegaLandmarkLocalizer Class

这个类型是C#语言的 EasyAR Sense API: MegaLandmarkLocalizer 。页面中部分描述可能与Unity环境无关。

这个类型已经完全封装进Unity组件: MegaLandmarkLocalizerFrameFilter MegaLandmarkTrackerFrameFilter 。不需要直接使用这个类型。

Description

MegaLandmarkLocalizer实现了VPS云定位功能。


Methods

isAvailable

C#

public static bool isAvailable()

返回true。

create

C#

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

创建并连接服务器。

filter

C#

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

位置筛选。

输入GPS信息,返回SpotVersionId。

resolve

C#

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

请求定位。

输入 InputFrame 进行云定位。 InputFrame 必须包含图像以及相机参数。

message为json格式字串。

close

C#

public virtual void close()

停止定位并关闭连接。close之后不应继续使用。