R
RobertH

  • Oct 20, 2024
  • Joined Jan 30, 2024
  • 0 best answers
  • Hi @RobertH,
    Yes, in general, you would set the color order for preview output using cam_rgb.setColorOrder(dai.ColorCameraProperties.ColorOrder.RGB or BGR).

    Let me know if that works.

    Thanks,
    Jaka

  • Hi @RobertH
    Sorry, didn't see the second image was UVC. It kinda looks like the wrong color order.

    You can do frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR) to fix this in the video cap script.

    Thanks,
    Jaka

  • Hi @RobertH
    And could you screenshot the UVC image you are getting? I tested your code (removed flashing since it shouldn't be done) and it works as expected.

    Thanks,
    Jaka

  • Hi @RobertH
    The frame type has to be NV12, otherwise it doesn't work.
    Could you test the image using cam_test.py or rgb_preview.py? Maybe it's a sensor issue.

    Thanks,
    Jaka

  • Hi @RobertH
    Unfortunately there are no mobile apps for rae and there likely won't be any in the future.

    Thanks,
    Jaka

    • Hi @RobertH

      RobertH (Question 1) If I don't want to double-click invoke D:\Python\Python311\Scripts\depthai-viewer.exe dirtectly and use prompt to invoke it instead, what commands do I type in prompt command environment?

      You would need to add the the viewer and the site-packages to system PATH, they don't get added automatically.

      RobertH (Question 2) Depthai Viewer is to use SDK or API (or both) and to use Rust(listed in GitHub) or Python language to implement this application?

      The viewer uses SDK. The depthai side is python based, while the viewer (RERUN) side is written in Rust (window updates and dynamic changes..).

      RobertH (Question 3) I would like to trace the source code of depthai-viewer porject (what functions in SDK or API are used one by one) for my application of depth information extraction from 2D camera frame. Do you think depthai-viewer is a good starting-point project or any other project you suggest? My preferenced programming language is Python.

      There is a bunch... Here they are. The viewer is not a good starting point unless you like pain 🙂. For python starting point and getting used to depthai, I'd recommend our examples: https://docs.luxonis.com/projects/api/en/latest/tutorials/code_samples/.
      Should be much easier to learn not having to deal with rust's quirks.

      Thanks,
      Jaka