Skip to content

Commit 229a7f1

Browse files
committed
added comment in ImageMarkers example about adding IRL size of marker
1 parent 71b9d97 commit 229a7f1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mode/libraries/ar/examples/ImageMarkers/ImageMarkers.pde

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ void setup() {
1010
tracker = new ARTracker(this);
1111

1212
PImage earthImg = loadImage("earth.jpg");
13-
tracker.start();
13+
tracker.start();
14+
15+
// Add the image to use as a marker to the AR tracker
1416
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);
1523

1624
earth = createShape(SPHERE, 0.5);
1725
}

0 commit comments

Comments
 (0)