![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
This class is used to lock OpenCL in OpenCV when using DNN. More...
Public Member Functions | |
| void | relockOpenCL () |
| void | unlockOpenCL () |
It is used to prevent OpenCL from being used when DNN is not compatible with it.
It's used much like a QMutexLocker. Simply create an instance of this class and it will set OpenCV to use the correct OpenCL settings for DNN usage. When the instance is destroyed, it will revert the OpenCL settings back to the global value.