Camera Resolution

172 viewsCode
0

Is it possible to change the resolution of the image taken by the camera mid-round, to allow the camera to see further in range?

Thanks in advance for any replies!

1

It is indeed possible and was a feature added in the update V2, see the original blog post.
Make sure you are running the update. Then call R.see with a valid resolution argument e.g.


from sr.robot import *
R = robot()
markers = R.see(res=(640, 480))
#DoStuff
#Now later in program
markers = R.see(res(1920×1440))
#Code that can see clearly now...

For all the arguments that can be used .see() the see github line 345

Question and answer is powered by AnsPress.io