-
Notifications
You must be signed in to change notification settings - Fork 2
/
structure.drawio
189 lines (189 loc) · 14.5 KB
/
structure.drawio
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<mxfile host="65bd71144e">
<diagram id="qNYdzE1W9-3PB3t89IW_" name="Page-1">
<mxGraphModel dx="1865" dy="1060" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="10000" pageHeight="10000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="37" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="5">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="2" value="OpenCV" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="180" y="80" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="38" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="6">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="5" value="Find Face" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="180" y="170" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="39" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="7">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="240" y="330"/>
<mxPoint x="170" y="330"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="40" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="8">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="240" y="330"/>
<mxPoint x="310" y="330"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="6" value="Tag Face with id" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="180" y="260" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="7" value="Track Face across frames" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="110" y="350" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="8" value="Add Face Recognition Request to Queue" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="250" y="350" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="41" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="11" target="12">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="11" value="Whisper" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="460" y="80" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="42" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="12" target="13">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="12" value="Append text to context" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="460" y="170" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="13" value="Context" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" vertex="1" parent="1">
<mxGeometry x="478.75" y="260" width="82.5" height="110" as="geometry"/>
</mxCell>
<mxCell id="14" value="GPT" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="745" y="80" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="16" value="Assign Name" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="730" y="175" width="150" height="80" as="geometry"/>
</mxCell>
<mxCell id="17" value="Answer Question" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="730" y="380" width="150" height="80" as="geometry"/>
</mxCell>
<mxCell id="18" value="Wait for more <br>Text Context" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="730" y="480" width="155" height="80" as="geometry"/>
</mxCell>
<mxCell id="19" value="Discard Context" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="730" y="590" width="155" height="80" as="geometry"/>
</mxCell>
<mxCell id="43" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="20" target="21">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="20" value="Map id to a name" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="915" y="185" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="44" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="22">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="21" value="Find face with id" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1065" y="185" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="22" value="Assign name to face" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1225" y="185" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="24" value="Req Visual Context" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="730" y="280" width="155" height="80" as="geometry"/>
</mxCell>
<mxCell id="25" value="Add Text Recognition Req to Event Queue" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="915" y="290" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="27" value="Add TTS Req to Event Queue" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="915" y="390" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="29" value="Skip to next GPT Iteration" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="915" y="490" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="45" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="30" target="32">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="30" value="Empty Context" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="915" y="590" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="32" value="Context" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" vertex="1" parent="1">
<mxGeometry x="1093.75" y="565" width="82.5" height="110" as="geometry"/>
</mxCell>
<mxCell id="36" value="Runs every n seconds" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="900" y="70" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="53" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="49" target="50">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="49" value="Dashboard" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1530" y="80" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="54" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="50" target="51">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1590" y="230"/>
<mxPoint x="1520" y="230"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="55" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.541;entryY=0.004;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="50" target="52">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1590" y="230"/>
<mxPoint x="1665" y="230"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="50" value="Analytics" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1530" y="160" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="51" value="People encountered" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1460" y="245" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="52" value="Q&amp;A History" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="1600" y="245" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="56" value="" style="swimlane;startSize=0;" vertex="1" parent="1">
<mxGeometry x="700" y="30" width="1060" height="720" as="geometry"/>
</mxCell>
<mxCell id="57" value="Next.js Server" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="56">
<mxGeometry width="120" height="30" as="geometry"/>
</mxCell>
<mxCell id="58" value="" style="swimlane;startSize=0;" vertex="1" parent="1">
<mxGeometry x="80" y="30" width="590" height="720" as="geometry"/>
</mxCell>
<mxCell id="3" value="GCP" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="180" y="470" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="4" value="Event Queue" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="58">
<mxGeometry x="30" y="420" width="120" height="30" as="geometry"/>
</mxCell>
<mxCell id="46" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="58" source="10" target="3">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="10" value="Face Recognition Req" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="30" y="470" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="28" value="Eleven Labs?" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="180" y="630" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="33" value="Text Recognition <br>Req" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="30" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="34" value="GCP" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="180" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="47" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="58" source="33" target="34">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="48" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="58" source="35" target="28">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="35" value="TTS Req" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="58">
<mxGeometry x="30" y="630" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="59" value="Python Client" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="80" y="30" width="120" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>