# FastCV example for Voxl2

Source: https://forum.modalai.com/topic/1942/fastcv-example-for-voxl2
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-03-14 12:37:12 UTC by DanielHviid
Replies: 3 · Views: 696

## DanielHviid · 2023-03-14 12:37:12 UTC

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.

## Reply by Chad Sweet (ModalAI staff) · 2023-03-29 00:16:43 UTC

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](https://developer.qualcomm.com/software/qualcomm-computer-vision-sdk)

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

## Reply by DanielHviid · 2023-03-30 11:52:57 UTC

I got it to work in a voxl-cross-template based project build in the voxl-cross docker by downloading from [this submenu](https://developer.qualcomm.com/software/qualcomm-computer-vision-sdk/tools) 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.

## Reply by Chad Sweet (ModalAI staff) · 2023-03-30 19:50:13 UTC

Outstanding!
