1. The GPU and OCL modules are not enabled for the libraries provided in the Development Kit provided by opencv. Although there are *** GPU. lib/*** GPU. DLL files, they cannot be used. If you call GPU: getcudaenabledevicecount (), return 0. To enable this function, you need to re-compile the library of opencv.
2. Refer to examples,
Qt (GUI), Cuda tool kit, Python and other programs.
3. When using cmake to generate a vs project, you need to enable the Cuda function. You can choose other functions. You need to use cmake to locate your location of TBB, QT, Cuda, and python.
4. If you want to compile a static library, you need to change the vs project. The change settings in different directories are different. The output is. for the EXE project, modify use of MFC to use MFC in a static library and modify it to/MT (d debug or release) in the Runtime Library in C/C ++ ), the output is. for DLL projects, you need to change the output. lib and modify configuration type to static library (. lib)