getCudaEnabledDeviceCount (cv.Utils) - MATLAB File Help
cv.Utils.getCudaEnabledDeviceCount

Returns the number of installed CUDA-enabled devices

num = cv.Utils.getCudaEnabledDeviceCount()

Output

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.

Other CUDA functions will throw if no CUDA support.

See also
Method Details
Access public
Sealed false
Static true