We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b9d97 commit 229a7f1Copy full SHA for 229a7f1
mode/libraries/ar/examples/ImageMarkers/ImageMarkers.pde
@@ -10,8 +10,16 @@ void setup() {
10
tracker = new ARTracker(this);
11
12
PImage earthImg = loadImage("earth.jpg");
13
- tracker.start();
+ tracker.start();
14
+
15
+ // Add the image to use as a marker to the AR tracker
16
tracker.addImage("earth", earthImg);
17
18
+ // If you know the size (in meters) of the image in the physical space,
19
+ // you can specify it in the addImage(), this is optional but it would
20
+ // speed up the detection since the AR library will know the size of the
21
+ // marker beforehand
22
+ // tracker.addImage("earth", earthImg, 0.25);
23
24
earth = createShape(SPHERE, 0.5);
25
}
0 commit comments