MegaLandmarkLocalizer Class

Description

MegaLandmarkLocalizer implements cloud based visual positioning localization.

isAvailable

Returns true.

C

bool easyar_MegaLandmarkLocalizer_isAvailable(void)

C++

static bool isAvailable()

Java

public static boolean isAvailable()

Kotlin

companion object fun isAvailable(): Boolean

Objective-C

+ (bool)isAvailable

Swift

public static func isAvailable() -> Bool

C#

public static bool isAvailable()

create

Creates an instance and connects to the server.

C

void easyar_MegaLandmarkLocalizer_create(easyar_String * server, easyar_String * apiKey, easyar_String * apiSecret, easyar_String * appId, easyar_MegaLandmarkLocalizer * * Return)

C++

static std::shared_ptr<MegaLandmarkLocalizer> create(std::string server, std::string apiKey, std::string apiSecret, std::string appId)

Java

public static @Nonnull MegaLandmarkLocalizer create(java.lang.@Nonnull String server, java.lang.@Nonnull String apiKey, java.lang.@Nonnull String apiSecret, java.lang.@Nonnull String appId)

Kotlin

companion object fun create(server: String, apiKey: String, apiSecret: String, appId: String): MegaLandmarkLocalizer

Objective-C

+ (easyar_MegaLandmarkLocalizer *)create:(NSString *)server apiKey:(NSString *)apiKey apiSecret:(NSString *)apiSecret appId:(NSString *)appId

Swift

public static func create(_ server: String, _ apiKey: String, _ apiSecret: String, _ appId: String) -> MegaLandmarkLocalizer

C#

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

filter

Location filtering.

Send GPS information to get SpotVersionId.

C

void easyar_MegaLandmarkLocalizer_filter(easyar_MegaLandmarkLocalizer * This, easyar_LocationResult gps, easyar_OptionalOfInt timeoutMilliseconds, easyar_CallbackScheduler * callbackScheduler, easyar_FunctorOfVoidFromMegaLandmarkLocalizerFilterResult callback)

C++

void filter(LocationResult gps, std::optional<int> timeoutMilliseconds, std::shared_ptr<CallbackScheduler> callbackScheduler, std::function<void(std::shared_ptr<MegaLandmarkLocalizerFilterResult>)> callback)

Java

public void filter(@Nonnull LocationResult gps, java.lang.@Nullable Integer timeoutMilliseconds, @Nonnull CallbackScheduler callbackScheduler, @Nonnull FunctorOfVoidFromMegaLandmarkLocalizerFilterResult callback)

Kotlin

fun filter(gps: LocationResult, timeoutMilliseconds: Int?, callbackScheduler: CallbackScheduler, callback: FunctorOfVoidFromMegaLandmarkLocalizerFilterResult): Unit

Objective-C

- (void)filter:(easyar_LocationResult *)gps timeoutMilliseconds:(NSNumber *)timeoutMilliseconds callbackScheduler:(easyar_CallbackScheduler *)callbackScheduler callback:(void (^)(easyar_MegaLandmarkLocalizerFilterResult * result))callback

Swift

public func filter(_ gps: LocationResult, _ timeoutMilliseconds: Int32?, _ callbackScheduler: CallbackScheduler, _ callback: @escaping (MegaLandmarkLocalizerFilterResult) -> Void) -> Void

C#

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

resolve

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.

C

void easyar_MegaLandmarkLocalizer_resolve(easyar_MegaLandmarkLocalizer * This, easyar_InputFrame * inputFrame, easyar_String * message, easyar_DeviceAuxiliaryInfo * deviceAuxInfo, easyar_String * spotVersionId, easyar_OptionalOfInt timeoutMilliseconds, easyar_CallbackScheduler * callbackScheduler, easyar_FunctorOfVoidFromMegaLandmarkLocalizerResult callback)

C++

void resolve(std::shared_ptr<InputFrame> inputFrame, std::string message, std::shared_ptr<DeviceAuxiliaryInfo> deviceAuxInfo, std::string spotVersionId, std::optional<int> timeoutMilliseconds, std::shared_ptr<CallbackScheduler> callbackScheduler, std::function<void(std::shared_ptr<MegaLandmarkLocalizerResult>)> callback)

Java

public void resolve(@Nonnull InputFrame inputFrame, java.lang.@Nonnull String message, @Nonnull DeviceAuxiliaryInfo deviceAuxInfo, java.lang.@Nonnull String spotVersionId, java.lang.@Nullable Integer timeoutMilliseconds, @Nonnull CallbackScheduler callbackScheduler, @Nonnull FunctorOfVoidFromMegaLandmarkLocalizerResult callback)

Kotlin

fun resolve(inputFrame: InputFrame, message: String, deviceAuxInfo: DeviceAuxiliaryInfo, spotVersionId: String, timeoutMilliseconds: Int?, callbackScheduler: CallbackScheduler, callback: FunctorOfVoidFromMegaLandmarkLocalizerResult): Unit

Objective-C

- (void)resolve:(easyar_InputFrame *)inputFrame message:(NSString *)message deviceAuxInfo:(easyar_DeviceAuxiliaryInfo *)deviceAuxInfo spotVersionId:(NSString *)spotVersionId timeoutMilliseconds:(NSNumber *)timeoutMilliseconds callbackScheduler:(easyar_CallbackScheduler *)callbackScheduler callback:(void (^)(easyar_MegaLandmarkLocalizerResult * result))callback

Swift

public func resolve(_ inputFrame: InputFrame, _ message: String, _ deviceAuxInfo: DeviceAuxiliaryInfo, _ spotVersionId: String, _ timeoutMilliseconds: Int32?, _ callbackScheduler: CallbackScheduler, _ callback: @escaping (MegaLandmarkLocalizerResult) -> Void) -> Void

C#

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

close

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

C

void easyar_MegaLandmarkLocalizer_close(easyar_MegaLandmarkLocalizer * This)

C++

void close()

Java

public void close()

Kotlin

fun close(): Unit

Objective-C

- (void)close

Swift

public func close() -> Void

C#

public virtual void close()