diff --git a/install.sh b/install.sh index ac8de0e..23498fe 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ cp ./.build-mow/mow /opt/mow/bin printf "#!/bin/sh\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 "/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/bin rm /usr/bin/mow diff --git a/src/common.cpp b/src/common.cpp index 39df460..8291956 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -288,7 +288,7 @@ vector parseForList(const string &arg, int argc, char** argv, bool argOn auto argCount = 0; auto ret = vector(); - for (auto i = 0; i < argc; ++i) + for (auto i = 1; i < argc; ++i) { auto argInParams = string(argv[i]); diff --git a/src/common.h b/src/common.h index 5c74e7f..c375b5f 100644 --- a/src/common.h +++ b/src/common.h @@ -35,7 +35,7 @@ using namespace cv; using namespace std; using namespace std::filesystem; -#define APP_VER "1.6.t1" +#define APP_VER "1.6.t2" #define APP_NAME "Motion Watch" struct shared_t