|
static string | getVersion () |
|
static void | matToTexture2D (Mat mat, Texture2D texture2D, bool flip=true, int flipCode=0, bool flipAfter=false, bool updateMipmaps=false, bool makeNoLongerReadable=false) |
|
static void | matToTexture2D (Mat mat, Texture2D texture2D, Color32[] pixels32Buffer, byte[] rawTextureDataBuffer=null, bool flip=true, int flipCode=0, bool flipAfter=false, bool updateMipmaps=false, bool makeNoLongerReadable=false) |
|
static void | fastMatToTexture2D (Mat mat, Texture2D texture2D, bool flip=true, int flipCode=0, bool flipAfter=false, bool updateMipmaps=false, bool makeNoLongerReadable=false) |
|
static void | texture2DToMat (Texture2D texture2D, Mat mat, bool flipAfter=true, int flipCode=0) |
|
static void | fastTexture2DToMat (Texture2D texture2D, Mat mat, bool flipAfter=true, int flipCode=0) |
|
static void | webCamTextureToMat (WebCamTexture webCamTexture, Mat mat, bool flipAfter=true, int flipCode=0) |
|
static void | webCamTextureToMat (WebCamTexture webCamTexture, Mat mat, Color32[] pixels32Buffer, bool flipAfter=true, int flipCode=0) |
|
static void | textureToTexture2D (Texture texture, Texture2D texture2D) |
|
static string | getFilePath (string filepath, bool refresh=false, int timeout=0) |
|
static List< string > | getMultipleFilePaths (IList< string > filepaths, bool refresh=false, int timeout=0) |
|
static IEnumerator | getFilePathAsync (string filepath, Action< string > completed, bool refresh=false, int timeout=0) |
|
static IEnumerator | getFilePathAsync (string filepath, Action< string > completed, Action< string, float > progressChanged, bool refresh=false, int timeout=0) |
|
static IEnumerator | getFilePathAsync (string filepath, Action< string > completed, Action< string, float > progressChanged, Action< string, string, long > errorOccurred, bool refresh=false, int timeout=0) |
|
static IEnumerator | getMultipleFilePathsAsync (IList< string > filepaths, Action< List< string >> allCompleted, bool refresh=false, int timeout=0) |
|
static IEnumerator | getMultipleFilePathsAsync (IList< string > filepaths, Action< List< string >> allCompleted, Action< string > completed, bool refresh=false, int timeout=0) |
|
static IEnumerator | getMultipleFilePathsAsync (IList< string > filepaths, Action< List< string >> allCompleted, Action< string > completed, Action< string, float > progressChanged, bool refresh=false, int timeout=0) |
|
static IEnumerator | getMultipleFilePathsAsync (IList< string > filepaths, Action< List< string >> allCompleted, Action< string > completed, Action< string, float > progressChanged, Action< string, string, long > errorOccurred, bool refresh=false, int timeout=0) |
|
static void | setDebugMode (bool debugMode, bool throwException=false, Action< string > callback=null) |
|
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getFilePathAsync |
( |
string |
filepath, |
|
|
Action< string > |
completed, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the readable path of a file in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepath | a relative file path starting from the "StreamingAssets" folder. |
completed | a callback method that is called when the process is completed. Returns a readable file path in case of success and returns empty in case of error. |
refresh | [Android][WebGL] If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getFilePathAsync |
( |
string |
filepath, |
|
|
Action< string > |
completed, |
|
|
Action< string, float > |
progressChanged, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the readable path of a file in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepath | a relative file path starting from the "StreamingAssets" folder. |
completed | a callback method that is called when the process is completed. Returns a readable file path in case of success and returns empty in case of error. |
progressChanged | a callback method that is called when the process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
refresh | [Android][WebGL] If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getFilePathAsync |
( |
string |
filepath, |
|
|
Action< string > |
completed, |
|
|
Action< string, float > |
progressChanged, |
|
|
Action< string, string, long > |
errorOccurred, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the readable path of a file in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepath | a relative file path starting from the "StreamingAssets" folder. |
completed | a callback method that is called when the process is completed. Returns a readable file path in case of success and returns empty in case of error. |
progressChanged | a callback method that is called when the process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | a callback method 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 refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getMultipleFilePathsAsync |
( |
IList< string > |
filepaths, |
|
|
Action< List< string >> |
allCompleted, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the multiple readable paths of files in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepaths | a list of relative file paths starting from the "StreamingAssets" folder. |
allCompleted | a callback method 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 empty in case of error. |
refresh | [Android][WebGL] If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getMultipleFilePathsAsync |
( |
IList< string > |
filepaths, |
|
|
Action< List< string >> |
allCompleted, |
|
|
Action< string > |
completed, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the multiple readable paths of files in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepaths | a list of relative file paths starting from the "StreamingAssets" folder. |
allCompleted | a callback method 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 empty in case of error. |
completed | a callback method that is called when one process is completed. Returns a readable file path in case of success and returns empty in case of error. |
refresh | [Android][WebGL] If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getMultipleFilePathsAsync |
( |
IList< string > |
filepaths, |
|
|
Action< List< string >> |
allCompleted, |
|
|
Action< string > |
completed, |
|
|
Action< string, float > |
progressChanged, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the multiple readable paths of files in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepaths | a list of relative file paths starting from the "StreamingAssets" folder. |
allCompleted | a callback method 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 empty in case of error. |
completed | a callback method 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 | a callback method that is called when one process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.
static IEnumerator OpenCVForUnity.UnityUtils.Utils.getMultipleFilePathsAsync |
( |
IList< string > |
filepaths, |
|
|
Action< List< string >> |
allCompleted, |
|
|
Action< string > |
completed, |
|
|
Action< string, float > |
progressChanged, |
|
|
Action< string, string, long > |
errorOccurred, |
|
|
bool |
refresh = false , |
|
|
int |
timeout = 0 |
|
) |
| |
|
static |
Gets the multiple readable paths of files in the "StreamingAssets" folder by using coroutines.
Set a relative file path from the starting point of the "StreamingAssets" folder. e.g. "foobar.txt" or "hogehoge/foobar.txt".
[Android] The target file that exists in the "StreamingAssets" folder is copied into the folder of the Application.persistentDataPath. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
[WebGL] The target file in the "StreamingAssets" folder is copied to the WebGL's virtual filesystem. If refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied.
- Parameters
-
filepaths | a list of relative file paths starting from the "StreamingAssets" folder. |
allCompleted | a callback method 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 empty in case of error. |
completed | a callback method 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 | a callback method that is called when one process is the progress. Returns the file path and a progress value (0.0 to 1.0). |
errorOccurred | a callback method 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 refresh flag is false, when the file has already been copied, the file is not copied. If refresh flag is true, the file is always copied. |
timeout | [Android 2017.1+][WebGL] Sets UnityWebRequest to attempt to abort after the number of seconds in timeout has passed. No timeout is applied when timeout is set to 0 and this property defaults to 0. |
- Returns
- returns an IEnumerator object. Yielding the IEnumerator inside a coroutine will cause the coroutine to pause until the UnityWebRequest encounters a system error or finishes communicating.