Added a field for additional commandline options without quotion to OpenSeeLauncher.
This commit is contained in:
parent
e8e40ef63d
commit
d489ed7d2d
1 changed files with 4 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ public class OpenSeeLauncher : MonoBehaviour {
|
||||||
public string modelPath = "models\\";
|
public string modelPath = "models\\";
|
||||||
[Tooltip("Additional options that should be passed to the face tracker.")]
|
[Tooltip("Additional options that should be passed to the face tracker.")]
|
||||||
public List<string> commandlineOptions = new List<string>(new string[] { "--silent", "1", "--max-threads", "4" });
|
public List<string> commandlineOptions = new List<string>(new string[] { "--silent", "1", "--max-threads", "4" });
|
||||||
|
[Tooltip("This string will be appended at the end of the tracker options without quoting.")]
|
||||||
|
public string extraOptions = "";
|
||||||
[Tooltip("When disabled, OpenCV will be used to read out the camera.")]
|
[Tooltip("When disabled, OpenCV will be used to read out the camera.")]
|
||||||
public bool useEscapi = true;
|
public bool useEscapi = true;
|
||||||
[Tooltip("If set to be greater than -1, camera indices greater or equal this value will use OpenCV.")]
|
[Tooltip("If set to be greater than -1, camera indices greater or equal this value will use OpenCV.")]
|
||||||
|
|
@ -233,6 +235,8 @@ public class OpenSeeLauncher : MonoBehaviour {
|
||||||
arguments.Add(argument);
|
arguments.Add(argument);
|
||||||
}
|
}
|
||||||
string argumentString = EscapeArguments(arguments.ToArray());
|
string argumentString = EscapeArguments(arguments.ToArray());
|
||||||
|
if (extraOptions != "")
|
||||||
|
argumentString = argumentString + " " + extraOptions;
|
||||||
|
|
||||||
StopTracker();
|
StopTracker();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue