From 9eb07af9a00dea7d82c39ae1e740236ee793c895 Mon Sep 17 00:00:00 2001 From: Ammar Qammaz Date: Thu, 15 Oct 2020 18:00:07 +0300 Subject: [PATCH] adding headless mode https://github.com/FORTH-ModelBasedTracker/MocapNET/issues/33 --- .../applicationLogic/parseCommandlineOptions.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/MocapNET2/MocapNETLib2/applicationLogic/parseCommandlineOptions.cpp b/src/MocapNET2/MocapNETLib2/applicationLogic/parseCommandlineOptions.cpp index 65d2ede..09eb468 100644 --- a/src/MocapNET2/MocapNETLib2/applicationLogic/parseCommandlineOptions.cpp +++ b/src/MocapNET2/MocapNETLib2/applicationLogic/parseCommandlineOptions.cpp @@ -215,6 +215,16 @@ int loadOptionsFromCommandlineOptions(struct MocapNET2Options * options,int argc else { argumentError(i,4,argc,argv); } } + else if (strcmp(argv[i],"-nv")==0) + { + fprintf(stderr,"Visualization disabled\n"); + options->visualize=0; + } + else if (strcmp(argv[i],"--novisualization")==0) + { + fprintf(stderr,"Visualization disabled\n"); + options->visualize=0; + } else if (strcmp(argv[i],"-v")==0) { fprintf(stderr,"Visualization enabled\n"); @@ -591,4 +601,4 @@ int takeCareOfScalingInputAndAddingNoiseAccordingToOptions(struct MocapNET2Opti perturbSerializedSkeletonUsingGaussianNoise(skeleton,options->addNormalizedPixelGaussianNoiseX,options->addNormalizedPixelGaussianNoiseY); } return 1; -} \ No newline at end of file +}