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

OAK-D-SR Camera save color image and depth image by record.py #485

Open
Jalen-Xu opened this issue Jun 16, 2023 · 3 comments · May be fixed by #480
Open

OAK-D-SR Camera save color image and depth image by record.py #485

Jalen-Xu opened this issue Jun 16, 2023 · 3 comments · May be fixed by #480

Comments

@Jalen-Xu
Copy link

Hi,

I want to save some RGB images and depth images from SR camera by running record.py file, but it reports an error.
save

@Erol444 Erol444 linked a pull request Jun 16, 2023 that will close this issue
@ToonTielen
Copy link

Above stated error from @Jalen-Xu is fixed by the commit of @Erol444. However I am running in the following error:

Closing OAK camera
Traceback (most recent call last):
  File "/home/mic-733ao/depthai-experiments/gen2-record-replay/record.py", line 95, in <module>
    cam = create_cam(socket)
  File "/home/mic-733ao/depthai-experiments/gen2-record-replay/record.py", line 52, in create_cam
    cam = oak.create_camera(socket, encode=dai.VideoEncoderProperties.Profile.MJPEG)
  File "/home/mic-733ao/.local/lib/python3.8/site-packages/depthai_sdk/oak_camera.py", line 126, in create_camera
    comp = CameraComponent(self._pipeline,
  File "/home/mic-733ao/.local/lib/python3.8/site-packages/depthai_sdk/components/camera_component.py", line 61, in __init__
    self._create_node(self._pipeline, source.upper())
AttributeError: 'depthai.CameraBoardSocket' object has no attribute 'upper'

@Erol444
Copy link
Member

Erol444 commented Jun 26, 2023

@ToonTielen what's the args you are using? I'll fix asap

@ToonTielen
Copy link

@ToonTielen what's the args you are using? I'll fix asap

I did not give any arguments, so all are on default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants