plugin  0.1.0
default_flags.hpp
1 // Copyright (C) 2020-2024 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <gflags/gflags.h>
8 
9 #define DEFINE_INPUT_FLAGS \
10 DEFINE_string(i, "", input_message); \
11 DEFINE_bool(loop, false, loop_message);
12 
13 #define DEFINE_OUTPUT_FLAGS \
14 DEFINE_string(o, "", output_message); \
15 DEFINE_uint32(limit, 1000, limit_message);
16 
17 static const char input_message[] = "Required. An input to process. The input must be a single image, a folder of "
18  "images, video file or camera id.";
19 static const char loop_message[] = "Optional. Enable reading the input in a loop.";
20 static const char output_message[] = "Optional. Name of the output file(s) to save. Frames of odd width or height can be truncated. See https://github.com/opencv/opencv/pull/24086";
21 static const char limit_message[] = "Optional. Number of frames to store in output. If 0 is set, all frames are stored.";