|
Dlib FaceLandmark Detector 2.0.3
Enox Software
|
Dlib Debug utilities. More...
Static Public Member Functions | |
| static bool | IsDebugMode () |
| Gets whether debug mode is enabled. | |
| static bool | IsThrowException () |
| Gets whether Dlib 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. | |
Dlib Debug utilities.
|
static |
Gets whether debug mode is enabled.
|
static |
Gets whether Dlib exceptions are thrown.
|
static |
Sets the debug mode with a callback.
If debugMode is true, the error log of the Native side Dlib will be displayed via EngineLog. However, if throwException is true, DlibException is thrown instead of calling EngineLog.LogError(object). 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 Dlib will be displayed via EngineLog. |
| throwException | If true, DlibException is thrown instead of calling EngineLog.LogError(object). |
| callback | Callback called when an Dlib 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 Dlib will be displayed via EngineLog. However, if throwException is true, DlibException is thrown instead of calling EngineLog.LogError(object).
Please use as follows.
| debugMode | If true, the error log of the Native side Dlib will be displayed via EngineLog. |
| throwException | If true, DlibException is thrown instead of calling EngineLog.LogError(object). |