-
Notifications
You must be signed in to change notification settings - Fork 21
/
fake_event.js
98 lines (97 loc) · 1.88 KB
/
fake_event.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// https://docs.frigate.video/integrations/api/#get-apievents
const event = {
"before": {
"id": "1733152597.08157-flkir5",
"camera": "driveway_camera",
"frame_time": 1733152597.08157,
"snapshot": null,
"label": "person",
"sub_label": null,
"top_score": 0,
"false_positive": true,
"start_time": 1733152597.08157,
"end_time": null,
"score": 0.5859375,
"box": [
695,
71,
719,
119
],
"area": 1152,
"ratio": 0.5,
"region": [
576,
0,
896,
320
],
"stationary": false,
"motionless_count": 0,
"position_changes": 0,
"current_zones": [],
"entered_zones": [],
"has_clip": false,
"has_snapshot": false,
"attributes": {},
"current_attributes": []
},
"after": {
"id": "1733152597.08157-flkir5",
"camera": "driveway_camera",
"frame_time": 1733152600.076167,
"snapshot": { // will this exist if has_snapshot is false?
"frame_time": 1733152600.076167,
"box": [
542,
14,
588,
104
],
"area": 4140,
"region": [
432,
0,
752,
320
],
"score": 0.76953125,
"attributes": []
},
"label": "person",
"sub_label": null,
"top_score": 0.724609375,
"false_positive": false,
"start_time": 1733152597.08157,
"end_time": null,
"score": 0.76953125,
"box": [
542,
14,
588,
104
],
"area": 4140,
"ratio": 0.5111111111111111,
"region": [
432,
0,
752,
320
],
"stationary": false,
"motionless_count": 0,
"position_changes": 1,
"current_zones": [
"mailbox"
],
"entered_zones": [
"mailbox"
],
"has_clip": true,
"has_snapshot": true,
"attributes": {},
"current_attributes": []
},
"type": "new" // can be new. update, end
}