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.

AM5728: Build extra_modules into openCV

Part Number: AM5728


Hello,

I am trying to test opencv's dnn module, but it does not look like any of opencv3.1.0's extra modules were built into the TI SDK. Is there a way for me to re-build TI's opencv to include the extra modules like dnn? I've tried building opencv using cmake, and am just getting errors regarding Qt:

CMake Error at modules/highgui/CMakeLists.txt:50 (QT5_ADD_RESOURCES):
Unknown CMake command "QT5_ADD_RESOURCES".

Any assistance is appreciated and thank you in advance.

T

  • Hi T, are you trying to download and build this modules on the EVM's target system? or in your Ubuntu?.. I assume is the first but please let me know what is what you are trying to do and where.

    thank you,

    Paula

  • Hi Paula, yes, build the modules into the EVM's target system. I'm further than the error above and used cmake to build the updated version of openCV into the EVM alongside ti-opencv, but when I use qmake to build the application to run on the EVM it is unable to find the newly built openCV libraries. It finds the ti-opencv libraries just fine however, and I can use

    pkg-config --modversion opencv

    on the EVM to see that opencv4 is installed and the extra modules are there.

    Thank you,

    T

  • Hi T, I typically use YOCTO recipes for installing packages.. I know, no the easiest way, but let me share how I do it. My 2-cents, it in case it can help you:

    You probably would only need to modify and build opencv bitbake recepie (meta-arago/meta-arago-extras/recipes-support/opencv/opencv_3.1.bb)

    • MACHINE=am57xx-evm bitbake opencv
    • New build opencv packages could be found tisdk/build/arago-tmp-external-arm-toolchain/deploy/ipk.
    • Copy those IPK packages in target (maybe in a /home/tmp folder)
    • And install them: opkg install [package_ipk].ipk

    Hope this helps,

    Paula