Part Number: TDA2EVM5777
Hi,
I have few queries related to opencv support on DSP for TDA2X Platform.
1. How to build a sample code with opencv functions for DSP ?
2. How to run a sample code with opencv fully on DSP without A15 ?
3. What are the changes required in the normal opencv based code to run it on DSP ?
4. Can we build opencv 3.4 using the steps mentioned in the openc_compute docs folder inside Vision SDK? Do you find any issues to run newly build opencv 3.4 on DSP ?
5. I referred a profiling test example http://processors.wiki.ti.com/index.php/OpenCV
For first run, I am getting different result. After that I am always getting same execution time with OPENCL and without OPENCL
Please check the log.
First Run : root@dra7xx-evm:/opt/vision_sdk# ./a.out BGR2GRAY tdiff=23.288173 ms GaussBlur tdiff=25.809181 ms Canny tdiff=45.344797 ms Second Run : root@dra7xx-evm:/opt/vision_sdk# ./a.out BGR2GRAY tdiff=2.687742 ms GaussBlur tdiff=6.167669 ms Canny tdiff=11.114363 ms After Enabling OPENCL root@dra7xx-evm:/opt/vision_sdk# export TI_OCL_LOAD_KERNELS_ONCHIP=Y root@dra7xx-evm:/opt/vision_sdk# export TI_OCL_CACHE_KERNELS=Y root@dra7xx-evm:/opt/vision_sdk# export OPENCV_OPENCL_DEVICE='TI DRA7:ACCELERATOR:TI Multicore C66 DSP' Third Run: root@dra7xx-evm:/opt/vision_sdk# ./a.out BGR2GRAY tdiff=2.687742 ms GaussBlur tdiff=6.167669 ms Canny tdiff=11.114363 ms
Regards,
Sagar