This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Running openCV 3 with transparent API on Mali GPUs

OpenCV 3 RC1 has been released. It has transparent api to run on CPU or GPU.

to make openCV transparent, it uses OpenCL kernels. To run OpenCV on GPU, the GPU should have openCL 1.2 support.

My questions are:

1- Since Mali T6xxx support OpenCL 1.1, is there any documentation on how to adjust OpenCV to work with it?

2- Is there any documentation on how to optimize openCV to work better on Mali GPUs?

3- Does OpenCV works properly on T7xxx which has OpenCL 1.2 support?

4- Is there any other image processing library out there which is optimized for Mail GPUs?

Parents
  • If you run any OCL test from the OpenCV unit tests it will run the same algorithm once on the CPU and once on the GPU

    Assuming you already have uploaded the "testdata" folder from Itseez/opencv_extra · GitHub to your device, and that you built and installed the android binaries to a "bin" folder, all you need to do is:

    for f in `ls bin | grep opencv_test_`; do

            echo "Running $f ... ";

            adb push bin/$f /data/

            adb shell OPENCV_TEST_DATA_PATH=/sdcard/opencv_testdata /data/$f --gtest_filter=*OCL*

            adb shell rm /data/$f

    done

Reply
  • If you run any OCL test from the OpenCV unit tests it will run the same algorithm once on the CPU and once on the GPU

    Assuming you already have uploaded the "testdata" folder from Itseez/opencv_extra · GitHub to your device, and that you built and installed the android binaries to a "bin" folder, all you need to do is:

    for f in `ls bin | grep opencv_test_`; do

            echo "Running $f ... ";

            adb push bin/$f /data/

            adb shell OPENCV_TEST_DATA_PATH=/sdcard/opencv_testdata /data/$f --gtest_filter=*OCL*

            adb shell rm /data/$f

    done

Children
No data