The app was still cutting out last command line arg of my test setup.
Later found out it was the run script limiting the command line arg
count to 3. I extended it out to 8 but I'll need to find a better option
to make it limitless.
This commit is contained in:
Maurice ONeal 2023-01-18 21:55:17 -05:00
parent 62a6139f3a
commit 80f8ec07e3
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ cp ./.build-mow/mow /opt/mow/bin
printf "#!/bin/sh\n" > /opt/mow/run printf "#!/bin/sh\n" > /opt/mow/run
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run printf "/opt/mow/bin \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8\n" >> /opt/mow/run
chmod +x /opt/mow/run chmod +x /opt/mow/run
chmod +x /opt/mow/bin chmod +x /opt/mow/bin
rm /usr/bin/mow rm /usr/bin/mow

View File

@ -288,7 +288,7 @@ vector<string> parseForList(const string &arg, int argc, char** argv, bool argOn
auto argCount = 0; auto argCount = 0;
auto ret = vector<string>(); auto ret = vector<string>();
for (auto i = 0; i < argc; ++i) for (auto i = 1; i < argc; ++i)
{ {
auto argInParams = string(argv[i]); auto argInParams = string(argv[i]);

View File

@ -35,7 +35,7 @@ using namespace cv;
using namespace std; using namespace std;
using namespace std::filesystem; using namespace std::filesystem;
#define APP_VER "1.6.t1" #define APP_VER "1.6.t2"
#define APP_NAME "Motion Watch" #define APP_NAME "Motion Watch"
struct shared_t struct shared_t