OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.0/index.html ) for the details of the argument of the method.
|
OpenCV Debug utilities. More...
Static Public Member Functions | |
static bool | IsDebugMode () |
Gets whether debug mode is enabled. | |
static bool | IsThrowException () |
Gets whether OpenCV exceptions are thrown. | |
static void | SetDebugMode (bool debugMode, bool throwException, Action< string > callback) |
Sets the debug mode with a callback. | |
static void | SetDebugMode (bool debugMode, bool throwException=false) |
Sets the debug mode. | |
OpenCV Debug utilities.
|
static |
Gets whether debug mode is enabled.
|
static |
Gets whether OpenCV exceptions are thrown.
|
static |
Sets the debug mode with a callback.
If debugMode is true, The error log of the Native side OpenCV will be displayed on the Unity Editor Console.However, if throwException is true, CvException is thrown instead of calling Debug.LogError (msg). The callback is maintained even when debug mode is turned off, allowing it to be reused when debug mode is turned on again. To clear the callback, call this method with null as the callback parameter.
Please use as follows.
debugMode | If true, The error log of the Native side OpenCV will be displayed on the Unity Editor Console. |
throwException | If true, CvException is thrown instead of calling Debug.LogError (msg). |
callback | Callback called when an OpenCV error occurs on the Native side. The callback is maintained even when debug mode is turned off. To clear the callback, pass null as this parameter. |
|
static |
Sets the debug mode.
If debugMode is true, The error log of the Native side OpenCV will be displayed on the Unity Editor Console.However, if throwException is true, CvException is thrown instead of calling Debug.LogError (msg).
Please use as follows.
debugMode | If true, The error log of the Native side OpenCV will be displayed on the Unity Editor Console. |
throwException | If true, CvException is thrown instead of calling Debug.LogError (msg). |