Jalen_Xu Please use latest develop commit of depthai-python;

git checkout develop
git pull

Hi  Erik,

Thank you for your reply.

We downloaded the developer version and the debugging results are as follows.

    Jalen_Xu You should force to color mode; python cam_test.py -cams left,c right,c to get color streams.

    Thanks for your reply and support!

    Now it can get color streams. But if I don't have a SDK interface like depthai-viewer or depthai-demo, it will be inconvenient for me to debug the parameters while shooting images.

      Thank you very much. I understand it now.

      I also want to know if it's because there are still some bugs that are not debugged so I can't connect to the oak-d-sr camera via depthai-viewer? If so, roughly when will these bugs be fixed and then we can connect to oak-d-sr via depthai-viewer?

        Hi Jalen_Xu
        Depthai-viewer is in very early stages of development. The feature is probably just not added yet. I think depthai_demo is currently your best bet for SR support. It shouldn't take long for our engineers to add SR support to it now that it's out of early access.

        Thanks,
        Jaka

        5 days later

        Thanks for your reply!

        When I run the color camera control example, I am prompted with some error messages.

        The error messages are as follows:
        [1844301071C55D1200] [1.4] [1.094] [ColorCamera(0)] [error] Camera not detected on socket: 0 0.5 0.5 1280 360

          Hi Jalen_Xu
          Did you change the script to allow double color camera configuration?
          That is:

          • removing mono cameras
          • adding another color camera
          • correctly linking both cameras to the output

          If you still have errors, it's best to add a MRE of your modified code so we can debug.

          Thanks,
          Jaka

          Thank you very much!

          Could you provide us with an example program that can debug parameters like exposure and iso of SR camera? Besides that, how do I get the depth data on each pixel point? Is there an API or example for us to use?

          • erik replied to this.

            Jalen_Xu

            1. For rgb-camera-control example you'd need to specify the camera socket which you want to control. By default it will take CAM_A socket, while OAK-D-SR only has 2 color cameras on sockets CAM_B and CAM_C. To change that, use:
              camRgb = pipeline.create(dai.node.ColorCamera)
              camRgb.setBoardSocket(dai.CameraBoardSocket.CAM_B) # Or different socket
            2. To get depth at some point, I'd suggest using SpatialLocationCalculator.

            Thanks!

            When I am running SpatialLocationCalculator, I get some error messages.

            As shown below.

            [1844301071C55D1200] [1.3] [775.632] [system] [error] Attempted to start Mono Left camera - NOT detected! [1844301071C55D1200] [1.3] [775.632] [system] [error] Attempted to start Mono Right camera - NOT detected! Use WASD keys to move ROI. Use 'r' and 'f' to change ROI size.

            • erik replied to this.

              Jalen_Xu do you have latest depthai version? Works as expected for me on the oak-d-sr (depthai 2.22).

              Thanks for your support!

              Great! I updated depthai to the latest version and now it can acquire depth images.

              Hi,

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

              Please create an issue on the depthai-experiments repo for this issue.

              Sorry, I don't know how I can post this question to depthai-experiments. Could you send me a link? Thank you!

              • erik replied to this.