From d489ed7d2dd0e9f1ce26dc64d2db3e661a9910c1 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Sun, 26 Jul 2020 12:17:39 +0200 Subject: [PATCH] Added a field for additional commandline options without quotion to `OpenSeeLauncher`. --- Unity/OpenSeeLauncher.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Unity/OpenSeeLauncher.cs b/Unity/OpenSeeLauncher.cs index 1ad4d56..d99cf3e 100644 --- a/Unity/OpenSeeLauncher.cs +++ b/Unity/OpenSeeLauncher.cs @@ -45,6 +45,8 @@ public class OpenSeeLauncher : MonoBehaviour { public string modelPath = "models\\"; [Tooltip("Additional options that should be passed to the face tracker.")] public List commandlineOptions = new List(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.")] public bool useEscapi = true; [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); } string argumentString = EscapeArguments(arguments.ToArray()); + if (extraOptions != "") + argumentString = argumentString + " " + extraOptions; StopTracker();