Skip to content

Instantly share code, notes, and snippets.

@Erol444
Created September 6, 2023 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erol444/d4caf54b3c3eed6a6e361d0170c65af2 to your computer and use it in GitHub Desktop.
Save Erol444/d4caf54b3c3eed6a6e361d0170c65af2 to your computer and use it in GitHub Desktop.
DepthAI read lens position at calibration for all camera sensors
import depthai as dai
# Connect Device
with dai.Device() as device:
calibData = device.readCalibration()
for cam in device.getConnectedCameraFeatures():
print(f'{cam.name} lens position during calibration: {calibData.getLensPosition(cam.socket)}')
@Erol444
Copy link
Author

Erol444 commented Sep 6, 2023

Example output:

bash-3.2$ python3 calibration_reader.py 
color lens position during calibration: 130
left lens position during calibration: 0
right lens position during calibration: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment