OpenCV - Open Source Computer Vision Library. Sometimes accelerated with OpenCL/Cuda; Supported on Linux (includng Raspberry Pi), Windows, Linux, iOS, Android;
- General results
- Raspberry Pi 3
- Nvidia Tegra K1
- Intel Core i5-3320M+OpenCL
- Intel Core i5-3320M CPU only
enum Backend
{
//! DNN_BACKEND_DEFAULT equals to DNN_BACKEND_INFERENCE_ENGINE if
//! OpenCV is built with Intel's Inference Engine library or
//! DNN_BACKEND_OPENCV otherwise.
DNN_BACKEND_DEFAULT = 0,
DNN_BACKEND_HALIDE, //1
DNN_BACKEND_INFERENCE_ENGINE, //2
DNN_BACKEND_OPENCV, //3
DNN_BACKEND_VKCOM, //4
DNN_BACKEND_CUDA //5
};
enum Target
{
DNN_TARGET_CPU = 0,
DNN_TARGET_OPENCL, //1
DNN_TARGET_OPENCL_FP16,//2
DNN_TARGET_MYRIAD, //3
DNN_TARGET_VULKAN, ///4
DNN_TARGET_FPGA, //5
DNN_TARGET_CUDA, //6
DNN_TARGET_CUDA_FP16 //7
};
android tools required to be R25.2.5 (need to manually downgrade in 2018 and above)
cmake -D CMAKE_TOOLCHAIN_FILE=../../opencv/platforms/android/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-21 -DBUILD_ANDROID_PROJECTS=OFF ../../opencv
OpenCV should be build with the same compiler/libstd++/stl, as other libs(Qt etc). errors in std::sting and similar appear