Dlib FaceLandmark Detector 2.0.0
Enox Software
|
Static Public Member Functions | |
static string | getFilePath (string filepath, bool refresh=false, int timeout=0) |
Gets the readable path of a file in the "StreamingAssets" directory. | |
static async Awaitable< string > | getFilePathAsync (string filepath, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Awaitable. | |
static async Task< string > | getFilePathAsyncTask (string filepath, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
static IEnumerator | getFilePathCoroutine (string filepath, Action< string > completed, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0) |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Coroutine. | |
static async Task< string > | getFilePathTaskAsync (string filepath, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Task. | |
static IReadOnlyList< string > | getMultipleFilePaths (IReadOnlyList< string > filepaths, bool refresh=false, int timeout=0) |
Gets the multiple readable paths of a file in the "StreamingAssets" directory. | |
static async Awaitable< IReadOnlyList< string > > | getMultipleFilePathsAsync (IReadOnlyList< string > filepaths, Action< string > completed=null, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Awaitable. | |
static async Task< IReadOnlyList< string > > | getMultipleFilePathsAsyncTask (IReadOnlyList< string > filepaths, Action< string > completed=null, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
static IEnumerator | getMultipleFilePathsCoroutine (IReadOnlyList< string > filepaths, Action< IReadOnlyList< string > > allCompleted, Action< string > completed=null, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0) |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Coroutine. | |
static async Task< IReadOnlyList< string > > | getMultipleFilePathsTaskAsync (IReadOnlyList< string > filepaths, Action< string > completed=null, Action< string, float > progressChanged=null, Action< string, string, long > errorOccurred=null, bool refresh=false, int timeout=0, CancellationToken cancellationToken=default) |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Task. | |
static string | getVersion () |
Returns this "Dlib FaceLandmark Detector" version number. | |
static bool | isDebugMode () |
Gets the current debug mode state. | |
static bool | isThrowException () |
Gets the current exception throwing state. | |
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. | |
|
static |
Gets the readable path of a file in the "StreamingAssets" directory.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] If the target file has not yet been copied to WebGL's virtual filesystem, it is necessary to use getFilePathCoroutine, getFilePathAsync or getFilePathAsyncTask at first.
filepath | A file path relative to the "StreamingAssets" directory. |
refresh | [Android] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
string.Empty
in case of error. ArgumentNullException | Thrown if filepath is null. |
|
static |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Awaitable.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepath | A file path relative to the "StreamingAssets" directory. |
progressChanged | An optional callback that is called when the process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when the process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
cancellationToken | A cancellation token that can be used to cancel the download operation. |
string.Empty
if the download fails. ArgumentNullException | Thrown if filepath is null. |
InvalidOperationException | Thrown if this method is called from a non-main thread. |
OperationCanceledException | Thrown if the download operation is canceled. |
|
static |
|
static |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Coroutine.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepath | A file path relative to the "StreamingAssets" directory. |
completed | A callback that is called when the process is completed. Returns a readable file path in case of success and returns string.Empty in case of error. |
progressChanged | An optional callback that is called when the process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when the process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
ArgumentNullException | Thrown if filepath is null. |
|
static |
Asynchronously retrieves the readable path of a file in the "StreamingAssets" directory using Task.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepath | A file path relative to the "StreamingAssets" directory. |
progressChanged | An optional callback that is called when the process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when the process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
cancellationToken | A cancellation token that can be used to cancel the download operation. |
string.Empty
if the download fails. ArgumentNullException | Thrown if filepath is null. |
InvalidOperationException | Thrown if this method is called from a non-main thread. |
OperationCanceledException | Thrown if the download operation is canceled. |
|
static |
Gets the multiple readable paths of a file in the "StreamingAssets" directory.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] If the target file has not yet been copied to WebGL's virtual filesystem, it is necessary to use getFilePathCoroutine, getFilePathAsync or getFilePathAsyncTask at first.
filepaths | The list of file paths relative to the "StreamingAssets" directory. |
refresh | [Android] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
string.Empty
in case of error. ArgumentNullException | Thrown if filepath is null. |
|
static |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Awaitable.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepaths | The list of file paths relative to the "StreamingAssets" directory. |
completed | An optional callback that is called when one process is completed. Returns a readable file path in case of success and returns empty in case of error. |
progressChanged | An optional callback that is called when one process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when one process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
cancellationToken | A cancellation token that can be used to cancel the download operation. |
string.Empty
if the download fails. ArgumentNullException | Thrown if filepath is null. |
InvalidOperationException | Thrown if this method is called from a non-main thread. |
OperationCanceledException | Thrown if the download operation is canceled. |
|
static |
|
static |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Coroutine.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepaths | The list of file paths relative to the "StreamingAssets" directory. |
allCompleted | A callback that is called when all processes are completed. Returns a list of file paths. Returns a readable file path in case of success and returns string.Empty in case of error. |
completed | An optional callback that is called when one process is completed. Returns a readable file path in case of success and returns empty in case of error. |
progressChanged | An optional callback that is called when one process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when one process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
ArgumentNullException | Thrown if filepath is null. |
|
static |
Asynchronously retrieves the multiple readable paths of files in the "StreamingAssets" directory using Task.
Provide a relative file path based on the "StreamingAssets" directory. e.g., "foobar.txt" or "hogehoge/foobar.txt". [Android] The target file that exists in the "StreamingAssets" directory is copied to the the Application.persistentDataPath directory. [WebGL] The target file in the "StreamingAssets" directory is copied to the WebGL's virtual filesystem.
filepaths | The list of file paths relative to the "StreamingAssets" directory. |
completed | An optional callback that is called when one process is completed. Returns a readable file path in case of success and returns empty in case of error. |
progressChanged | An optional callback that is called when one process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | An optional callback that is called when one process is error occurred. Returns the file path and an error string and an error response code. |
refresh | [Android][WebGL] If false, the file is not copied if it already exists. If true, the file is always copied. |
timeout | [Android][WebGL] Sets the UnityWebRequest to abort after the specified number of seconds. If set to 0, no timeout is applied. The default is 0. |
cancellationToken | A cancellation token that can be used to cancel the download operation. |
string.Empty
if the download fails. ArgumentNullException | Thrown if filepath is null. |
InvalidOperationException | Thrown if this method is called from a non-main thread. |
OperationCanceledException | Thrown if the download operation is canceled. |
|
static |
Returns this "Dlib FaceLandmark Detector" version number.
|
static |
Gets the current debug mode state.
|
static |
Gets the current exception throwing state.
|
static |
Sets the debug mode with a callback.
If debugMode is true, The error log of the Native side Dlib will be displayed on the Unity Editor Console.However, if throwException is true, DlibException 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 Dlib will be displayed on the Unity Editor Console. |
throwException | If true, DlibException is thrown instead of calling Debug.LogError (msg). |
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 on the Unity Editor Console.However, if throwException is true, DlibException is thrown instead of calling Debug.LogError (msg).
Please use as follows.
debugMode | If true, The error log of the Native side Dlib will be displayed on the Unity Editor Console. |
throwException | If true, DlibException is thrown instead of calling Debug.LogError (msg). |