• Video Window Does not render

jakaskerl

Here is the output from first running mono_preview.py which does work:

(base) Brians-MacBook-Pro:examples brianhouse$ pipeline_graph run "python3 MonoCamera/mono_preview.py"

Pipeline schema retrieved

Program exited.

0. MonoCamera.out (10) -> XLinkOut.in (2)

1. MonoCamera.out (6) -> XLinkOut.in (1)

Here is the output from rgb_preview.py which does not work:

(base) Brians-MacBook-Pro:examples brianhouse$ pipeline_graph run "python3 ColorCamera/rgb_preview.py"

Pipeline schema retrieved

Program exited.

0. ColorCamera.preview (8) -> XLinkOut.in (1)

  • erik replied to this.

    Hi BrianHouse ,
    We apologize for taking this long to debug.. Could you just try the last thing, the cam_test.py, and copy the terminal output? My guess is that ColorCam is connected, but will stream 0 FPS, which means the cable isn't properly connected on the PCBA. In such case, we will replace the device asap.
    Sorry again!

      erik

      Are there other modules I am going to need"?

      (base) Brians-MacBook-Pro:tests brianhouse$ python3 cam_test.py 

      Traceback (most recent call last):

        File "cam_test.py", line 45, in <module>

          import cam_test_gui

      ModuleNotFoundError: No module named 'cam_test_gui'

      (base) Brians-MacBook-Pro:tests brianhouse$ 

      also I noticed it has a lot of options which ones do you want me to run?

        BrianHouse

        ok, I figured out all the dependencies. I have Camera Test working. I guess I take all the defaults to the prompts and 'connect' to the device"?

          BrianHouse

          Here is the output:

          (base) Brians-MacBook-Pro:tests brianhouse$ python3 cam_test.py 

          Enabled cameras:

              rgb : color

             left : mono

            right : mono

             camd : color

          DepthAI version: 2.21.2.0

          DepthAI path: /Users/brianhouse/Library/Python/3.8/lib/python/site-packages/depthai.cpython-38-darwin.so

          [184430100149620E00] [20.4.2] [0.989] [ColorCamera(8)] [error] Camera not detected on socket: 3

          [184430100149620E00] [20.4.2] [0.990] [MonoCamera(6)] [error] OV7251 only supports THE_480_P/THE_400_P resolutions, defaulting to THE_480_P

          [184430100149620E00] [20.4.2] [0.990] [MonoCamera(4)] [error] OV7251 only supports THE_480_P/THE_400_P resolutions, defaulting to THE_480_P

          Connected cameras:

           -socket RGB   : IMX214 4208 x 3120 focus:auto  - COLOR

           -socket LEFT  : OV7251  640 x  480 focus:fixed - MONO

           -socket RIGHT : OV7251  640 x  480 focus:fixed - MONO

          USB speed: SUPER

          IR drivers: []

          Cam:      rgb           left          right         camd     [host | capture timestamp]

          FPS:   0.00|  0.00  30.15| 30.01  30.16| 30.01   0.00|  0.00Exiting cleanly

            5 days later

            How long did it take to get your replacement?

            Another one with the same issue. Super frustrating way to run support on a forum!

            PS C:\Users\Adam\source\repos\depthai-python\utilities> python cam_test.py

            Enabled cameras:

            rgb : color

            left : mono

            right : mono

            camd : color

            DepthAI version: 2.21.2.0

            DepthAI path: C:\Users\Adam\AppData\Roaming\Python\Python311\site-packages\depthai.cp311-win_amd64.pyd

            [1844301071BC600E00] [1.3] [0.713] [ColorCamera(8)] [error] Camera not detected on socket: 3

            [1844301071BC600E00] [1.3] [0.713] [MonoCamera(6)] [error] OV7251 only supports THE_480_P/THE_400_P resolutions, defaulting to THE_480_P

            [1844301071BC600E00] [1.3] [0.714] [MonoCamera(4)] [error] OV7251 only supports THE_480_P/THE_400_P resolutions, defaulting to THE_480_P

            Connected cameras:

            -socket RGB : IMX214 4208 x 3120 focus:auto - COLOR

            -socket LEFT : OV7251 640 x 480 focus:fixed - MONO

            -socket RIGHT : OV7251 640 x 480 focus:fixed - MONO

            USB speed: SUPER

            IR drivers: []

            Cam: rgb left right camd [host | capture timestamp]

            FPS: 0.00| 0.00 30.00| 30.01 30.00| 30.01 0.00| 0.00Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'rgb' (X_LINK_ERROR)'

            Exiting cleanly

              AdamShortland

              Hi Adam,

              I have not received it yet. I also asked them for tracking info which I have not received yet.

              Brian