Skip to content

Commit d396e0a

Browse files
authored
Merge pull request #501 from srobo/jdp-tweak-vision
2 parents b702522 + 9647235 commit d396e0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

programming/vision/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ while True:
3434
print("I can see", len(markers), "markers:")
3535

3636
for marker in markers:
37-
print(" - Marker #{0} is {1} metres away".format(marker.id, marker.distance / 1000))
37+
print("Marker #{0} is {1} metres away".format(
38+
marker.id,
39+
marker.position.distance / 1000,
40+
))
3841
~~~~~
3942

4043
<div class="info">

0 commit comments

Comments
 (0)