Skip to content

capture_2d not working #41

Open
Open

Description

@YBachmann

Hi :)

I just noticed that the sample script basic/capture_2d_image.py does not work as expected.

  • The first time I run it after powering on the camera (Nano Ultra GL), it enables the projector and successfully captures a 2D image.
  • If I run the script again, it always outputs the same image again and does not activate the projector.
  • Only after I run the script basic/capture_depth_map.py will capture_2d_image.py output an updated 2D image. However it will output the 2D image of the time the depthmap was captured and not of the time the capture_2d_image.py was run.

To me it seems that capture_2d_image.py only captures a new 2D image if no image is already "cached" inside the camera.

I would like to capture 2D images continuously using the python SDK. Is there already a way to do that? Also, what is the framerate when only capturing 2D images?

Activity

  1. wangpeng2-mechmind commented on Mar 5, 2025

    @wangpeng2-mechmind
    Contributor

    Sorry for the late reply. If you do not get the expected results using capture_2d_image.py, you can check the camera logs after running the script to see if there are any corresponding photo-taking log outputs. If the camera indeed only responded to one photo-taking request, you can contact our technical support team to pinpoint the issue.
    Additionally, we currently have a script for continuous photo-taking. You can find capture_periodically.py in the /advanced folder, and using this script will allow you to continuously take photos with the camera. the duration of continuous photo-taking and the interval between photos need to be specified within the script. Currently, the default settings are 5 minutes for the duration and 10 seconds for the interval between photos.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions