Turn Off Autofocus on USB Camera

My team just got fancy new USB Cameras, that have autofocus on as a default. They are Logitech HD Pro Webcam C920s. We are running our vision processing on a Raspberry Pi, using the Raspberry Pi image. How can we turn off the autofocus on a USBCamera object, in Python specifically?

First, try going to the CameraServer webpage to see if there’s a setting to disable autofocus. This is http://roborio-TEAM-frc.local:1181/ (or 1182 etc). All available settings for the camera are shown and can be changed live there. The setting names shown on that page can be used with getProperty() to set them in your code.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.