EasyAR implements SLAM on Android and iOS devices with special optimizations, it is not recommended to run SLAM on Windows or Mac. The algorithm effects will be totally different. SLAM for Windows and Mac is only for development purpose, to ease content creation.
An ARSceneTracker is a class for SLAM tracking.
ARSceneTracker tracks ARScene. You need to call attachStreamer to attach a FrameStreamer to tracker first, then the images from the FrameStreamer are used for by the tracker. You can call start/stop to enable/disable the track process. start and stop are very lightweight calls.
+ (easyar_ARSceneTracker *) create¶
public convenience init()¶
Attach FrameStreamer to the tracker. Tracker will not start to track until a FrameStreamer is attached.
Attach null object will detach previous attached FrameStreamer from tracker.
easyar_ARSceneTracker_attachStreamer(easyar_ARSceneTracker* This, easyar_FrameStreamer* obj)¶
public native boolean attachStreamer(FrameStreamer obj)¶
- (bool)attachStreamer:(easyar_FrameStreamer *)obj¶
public override func attachStreamer(_ obj: FrameStreamer?) -> Bool¶
Starts the track algorithm. The track will not actually start until a FrameStreamer is attached.
public native boolean start()¶
public override func start() -> Bool¶
Stops the track algorithm. Call start to start the track again.
public native boolean stop()¶
public override func stop() -> Bool¶