Skip to content

Commit

Permalink
change to use jpg instead of png (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
8BitJosh authored Sep 18, 2023
1 parent 37ad6ad commit c0d75bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programming/vision/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ from sr.robot3 import *
robot = Robot()

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

capture
Expand Down Expand Up @@ -87,7 +87,7 @@ frame = robot.camera.capture()
markers = robot.camera.see(frame=frame)

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

# Do some other vision algorithm with the OpenCV frame here
~~~~~
Expand Down

0 comments on commit c0d75bd

Please sign in to comment.