-
Notifications
You must be signed in to change notification settings - Fork 1
/
home-security.h
50 lines (41 loc) · 1.08 KB
/
home-security.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __HOME_SECURITY_H__
#define __HOME_SECURITY_H__
#include <chrono>
#include <glib.h>
#include <thread>
#include <stdio.h>
#include <signal.h>
#include <iostream>
#include <curl/curl.h>
#include <jetson-utils/imageIO.h>
#include <jetson-utils/gstCamera.h>
#include <jetson-utils/commandLine.h>
#include <jetson-inference/detectNet.h>
#include "hsDetection.h"
#include "hsEmailMessage.h"
#include "hsFTP.h"
#include "hsRTSP.h"
using namespace std;
static bool program_running = true;
static const char *capture_subdir = "cap";
static const char *uploads_subdir = "upl";
static const char *extension_photo = "_jn.jpeg";
static const char *delimiter = "\n";
static const string& gotodetection = "gotodetection";
static const string& gotostreaming = "gotostreaming";
enum States {
PREPARE_DETECTION,
DETECTION,
PREPARE_STREAMING,
STREAMING,
STOPPING
};
struct MemoryStruct {
char *memory;
size_t size;
};
inline bool hsFileExist (const std::string& name) {
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
};
#endif /* __HOME_SECURITY_H__ */