[][src]Function opencv::core::get_cuda_enabled_device_count

pub fn get_cuda_enabled_device_count() -> Result<i32>

Returns the number of installed CUDA-enabled devices.

Use this function before any other CUDA functions calls. If OpenCV is compiled without CUDA support, this function returns 0. If the CUDA driver is not installed, or is incompatible, this function returns -1.