mv:自动对焦代码
try:# The camera will now focus on whatever is in front of it.sensor.ioctl(sensor.IOCTL_TRIGGER_AUTO_FOCUS)
except:raise (Exception("Auto focus is not supported by your sensor/board combination."))
try:# The camera will now focus on whatever is in front of it.sensor.ioctl(sensor.IOCTL_TRIGGER_AUTO_FOCUS)
except:raise (Exception("Auto focus is not supported by your sensor/board combination."))