Tag: artoolkit

如何在Android的Artoolkitplus中获得MarkerId

我正在使用ARToolkitPlusBenchmark扫描AR标记标记 。 我可以很容易地检测到所有4096 BCH标记 。但是我的问题是我不明白如何检测每个BCH标记ID ? 我从这里find了代码ARToolkitPlusBenchmark 我试图在Markerinfo.java中检测标记 class DetectMarkerWorker extends Thread { private byte[] curFrame; public DetectMarkerWorker() { setPriority(MAX_PRIORITY); start(); } @Override public synchronized void run() { try { wait(); } catch (InterruptedException e) { } while (true) { if(!CurrentConfig.ONLY_CAMERA_PREVIEW){ long tick = System.currentTimeMillis(); if (CurrentConfig.USE_ARTOOLKITPLUS) { timeNativeMarkerDetection = artoolkitPlus_detectmarkers(curFrame, transMatMonitor); nativeMarkerDetectionHistory.add(timeNativeMarkerDetection); if(nativeMarkerDetectionHistory.size()>20){ nativeMarkerDetectionHistory.remove(0); […]