-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettings.h
34 lines (30 loc) · 1.42 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __SETTINGS_H__
#define __SETTINGS_H__
#include <string>
#include <iostream>
#define DEFAULT_SECONDS_AFTER 5 /** @see seconds_after */
using namespace std;
class Settings {
public:
string input_source; /** The video we'll detect motion */
string output_name; /** The name used for output recordings */
string cam_name; /** The name used for camera */
string mask_file; /** The name of the mask file to load */
unsigned int seconds_after; /** Seconds to record after motion stops */
unsigned int counter_start; /** Output filename counter start */
unsigned int debug; /** Debug window showing intermediate images */
unsigned int area; /** The threshold area to detect movement */
unsigned int noise; /** The noise reduction gaussian size */
bool show_input; /** Shall we show the input video */
bool timestamp; /** Shall we add the time to the video */
bool mask_template; /** Shall we generate a mask template */
unsigned int fps; /** FPS to process */
unsigned int frames_trigger; /** Number of consecutive frames with motion to trigger motion event */
string command; /** Command to execute when motion is detected */
bool draw_contours; /** Shall we draw contours to the video */
int max_width; /** Max width of frame to be processed */
int load_from_args(int argc, char* argv[]); /** Load settings from arguments */
void print_usage(char* name); /** Load settings from arguments */
Settings();
};
#endif //__SETTINGS_H__