MegaLandmarkLocalizer Class¶
Description¶
MegaLandmarkLocalizer实现了VPS云定位功能。
isAvailable¶
返回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¶
创建并连接服务器。
- 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¶
位置筛选。
输入GPS信息,返回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¶
请求定位。
输入 InputFrame 进行云定位。 InputFrame 必须包含图像以及相机参数。
message为json格式字串。
- 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¶
停止定位并关闭连接。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()