ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    FastCV example for Voxl2

    VOXL 2
    2
    4
    284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DanielHviid
      last edited by

      I'm trying to use the dsp to accelerate my computer vision application. There is a basic example for FastCV on the adsp for Voxl1 at https://docs.modalai.com/build-environments/#how-to-build-for-dsp, but there aren't any examples for the rb5/m0054 adsp. I tried building the example anyways with the voxl-hexagon docker from the qrb5165 branch, which didn't work. Is there some resources I haven't found yet, or is adsp support somewhere on the roadmap for voxl2? Thanks.

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        FastCV runs on the CPU and can access the DSP itself. You can try to download and run what Qualcomm has on their website here

        We have not developed tutorials for how to use the cDSP on VOXL 2. We do hope to in the future.

        1 Reply Last reply Reply Quote 0
        • D
          DanielHviid
          last edited by

          I got it to work in a voxl-cross-template based project build in the voxl-cross docker by downloading from this submenu instead of the big advertised linux installer tab (which is exclusively for android builds).

          All that was then needed to include it was to expand target_list_libraries to include fastcv and DL libs:

          target_link_libraries(${TARGET}
              pthread
              ${MODAL_JSON}
              ${MODAL_PIPE}
              ${VOXL_CUTILS}
              ${OpenCV_LIBS} 
              ${CMAKE_SOURCE_DIR}/include/libfastcv.a
              ${CMAKE_DL_LIBS}
          )
          

          Thank you for the assistance.

          1 Reply Last reply Reply Quote 0
          • Chad SweetC
            Chad Sweet ModalAI Team
            last edited by

            Outstanding!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors