Processing for Android

EN ES

ARTracker

At least one ARTracker object is needed in the sketch to handle all trackable entities (only planes at this point) detected in the scene.


import processing.ar.*;

ARTracker tracker;
ARAnchor anchor;

void setup() {
  fullScreen(AR);
  tracker = new ARTracker(this);
  tracker.start();  
}

void draw() {
  for (int i = 0; i < tracker.count(); i++) {
    ARTrackable trackable = tracker.get(i);
    // ...
  }
}