Skip to content

Commit c0d75bd

Browse files
authored
change to use jpg instead of png (#518)
1 parent 37ad6ad commit c0d75bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programming/vision/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ from sr.robot3 import *
5353
robot = Robot()
5454

5555
# `robot.usbkey` is the path to your USB drive
56-
robot.camera.save(robot.usbkey / "initial-view.png")
56+
robot.camera.save(robot.usbkey / "initial-view.jpg")
5757
~~~~~
5858

5959
capture
@@ -87,7 +87,7 @@ frame = robot.camera.capture()
8787
markers = robot.camera.see(frame=frame)
8888

8989
# Save the frame with marker annotation
90-
robot.camera.save(robot.usbkey / "photo.png", frame=frame)
90+
robot.camera.save(robot.usbkey / "photo.jpg", frame=frame)
9191

9292
# Do some other vision algorithm with the OpenCV frame here
9393
~~~~~

0 commit comments

Comments
 (0)