-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhsDetection.h
49 lines (41 loc) · 1.08 KB
/
hsDetection.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
#ifndef __HS_DETECTION_H__
#define __HS_DETECTION_H__
#include <ctime>
#include <math.h>
#include <stdio.h>
#include <iomanip>
#include <vector>
#include <string>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <curl/curl.h>
#include <bits/stdc++.h>
#include <jetson-utils/filesystem.h>
#include <jetson-utils/commandLine.h>
#include <jetson-inference/detectNet.h>
#include "home-security.h"
using namespace std;
#define TIME_SLICE_DURATION 60 /* In seconds */
class hsDetection {
/* Member Variables */
bool mActive;
bool mEmailAllowed;
time_t mSlicetime;
double mDuration;
string mCapImageFilename;
string mUplImageFilename;
int mImageSequenceNumber; /* may wrap around */
public:
hsDetection();
~hsDetection();
void setActive( bool );
bool isActive( void );
void handleTimeSlice( void );
void setEmailAllowed( bool );
bool isEmailAllowed( void );
void setImageFilename( void );
const char* getCapImageFilename( void );
const char* getUplImageFilename( void );
};
#endif /* __HS_DETECTION_H__ */