Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Callibration does not work with OAK-D-SR. #1149

Open
skotif opened this issue Jan 29, 2024 · 1 comment
Open

[BUG] Callibration does not work with OAK-D-SR. #1149

skotif opened this issue Jan 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@skotif
Copy link

skotif commented Jan 29, 2024

Describe the bug
When launching command:

python3 calibrate.py -s 3.76 --board OAK-D-SR -nx 17 -ny 9

I get error:

Traceback (most recent call last):
  File "calibrate.py", line 1192, in <module>
    Main().run()
  File "calibrate.py", line 1181, in run
    self.startPipeline()
  File "calibrate.py", line 474, in startPipeline
    pipeline = self.create_pipeline()
  File "calibrate.py", line 565, in create_pipeline
    sensorName = cam_info['sensorName']
KeyError: 'sensorName'

Minimal Reproducible Example
Followed the documentation at:
https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/calibration/?highlight=calibrate
My depthai repo is at e1c1f58.

Additional context
I did little printing from callibrate.py.

cameraProperties = self.device.getConnectedCameraFeatures()
is:
[{socket: RGB/CENTER/CAM_A, sensorName: OV9782, width: 1280, height: 800, orientation: AUTO, supportedTypes: [COLOR, MONO], hasAutofocus: 0, name: color}]

self.board_config
is: {'name': 'OAK-D-SR', 'revision': 'R0M0E0', 'cameras': {'LEFT': {'name': 'left', 'hfov': 71.86, 'type': 'color', 'extrinsics': {'to_cam': 'RIGHT', 'specTranslation': {'x': -2.0, 'y': 0, 'z': 0}, 'rotation': {'r': 0, 'p': 0, 'y': 0}}}, 'RIGHT': {'name': 'right', 'hfov': 71.86, 'type': 'color'}}, 'stereo_config': {'left_cam': 'LEFT', 'right_cam': 'RIGHT'}}

I am able to run

python3 -m depthai_viewer

however the resulting point cloud shows significant barrel distortion when flat wall with dots is viewed:
Screenshot from 2024-01-29 19-46-34

@skotif skotif added the bug Something isn't working label Jan 29, 2024
@jakaskerl
Copy link
Contributor

jakaskerl commented Feb 6, 2024

pip install depthai -U should fix the issue.

EDIT: actually it won't but for different reason. Forwarded this to FW team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants