This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: Camera Input and Monitor Output Demo

Part Number: SK-TDA4VM

Good Evening,

Referencing this demo: https://dev.ti.com/tirex/explore/node?node=A__AJz.4xv-RszwGrcUaOTg4Q__com.ti.Jacinto%20EdgeAI%20Academy__Y9QU2Ei__LATEST

We have previously successfully run this demo on the kit. Recently we have been trying to get our own code to take in camera input and provide output to monitor. As we were debugging we referenced back to this demo and are now getting errors. Could it be related to opencv versions? We need to get the demos to work so we can get a better understanding when debugging our code. Our .yaml file is identical to the one in the demo.

Could you please advise if the opencv versions on the SDK are causing this error? These errors are persisting after running ./setup_script.sh.

  • Hi Archish,

    I would also assume the OpenCV version is causing the error. If modifications have been done to the libraries which makes the demo no longer run, the recommendation is to flash a separate SD card with the SDK image and check any differences between current SD card and new SD card.

    For reference, below is the version of OpenCV packaged and used in our example by default:

    root@tda4vm-sk:/usr/lib/python3.8/site-packages/cv2# python3
    Python 3.8.13 (default, Aug 30 2022, 09:34:07)
    [GCC 9.2.1 20191025] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import cv2
    >>> cv2.__version__
    '4.1.0'
    >>> exit()
    root@tda4vm-sk:/usr/lib/python3.8/site-packages/cv2#

    As OpenCV has dependencies to underlying native libraries, installing via pip3 may not be enough to use. In the default SDK image, OpenCV does not show up in the dependency list that is based on pip3, but the library should still exist under /usr/lib/python3.8/site-packages.

    Regards,

    Takuma

  • Thank you so much for your response Takuma. Would it be possible to share the result of "pip3 list | grep opencv" on your SDK so we can compare what all OpenCV libraries/versions you have before we do the reflash process on our end? 

  • Hi Archish,

    Sure, here are the logs:

    root@tda4vm-sk:/opt/edge_ai_apps/scripts#
    root@tda4vm-sk:/opt/edge_ai_apps/scripts# pip3 list | grep opencv
    root@tda4vm-sk:/opt/edge_ai_apps/scripts# pip3 list | grep cv
    root@tda4vm-sk:/opt/edge_ai_apps/scripts# ls /usr/lib/python3.8/site-packages | grep cv
    cv2
    root@tda4vm-sk:/opt/edge_ai_apps/scripts# 

    As mentioned in my previous post, OpenCV does not show up in pip3, but the packages should exist within /usr/lib/python3.8.

    Regards,

    Takuma