• DepthAI-v2
  • Full Resolution Saver Program not working on Raspberry Pi 4

Hi, I've been trying to get the rgb full resolution saver program working on my raspberry pi with my Oak-D Lite, but I've run into some issues. I am using the Y-adapter from Luxonis to split up the power consumption between my Pi and my camera, instead of the camera taking power from the Pi. Running DepthAI in Windows, I am able to capture full resolution images with my camera. However, using my Pi, the program has a lot of latency. It responds to my key presses in the terminal, but I get no confirmation of a jpeg being generated. My terminal says the usb speed is super, so I'm pretty sure that's the USB 3.0 one. I edited the rgb full resolution saver on my Pi to be in 1080p mode, which allows me to take pictures, but I really want to use the 4K or 12MP modes. The depthai_demo.py program works perfectly fine on my Pi, by the way. Let me know if anyone has any suggestions to fix this. Thank you.

    Hi PokeBlu
    Could you add your code as well. I assume you would be getting latency due to decreased processing/R-W power of the RPI.

    Thanks,
    Jaka

      jakaskerl This is the code I am using, without having tried editing anything besides the resolution setting:
      https://docs.luxonis.com/projects/api/en/latest/samples/VideoEncoder/rgb_full_resolution_saver/
      If I knew how to reduce the framerate, I would try that…
      I guess I assumed the depthai demo program ran at full resolution too, so I thought the RPI would be capable of running the rgb full resolution saver as well, but idk.

        Hi PokeBlu
        You can set the FPS using camRgb.setFps(), though i'm not sure if that is the cause:

        PokeBlu but I get no confirmation of a jpeg being generated

        You mean there are no logs with print("Sent 'still' event to the camera!")? Could you try disabling/commenting out the video stream. See if it makes a difference.

        Thanks,
        Jaka

          jakaskerl the line about the “still” was working, but the line about saving an image did not show up. However, lowering the fps allowed it to work! Thank you for your help!