Skip to content

Commit 2d93e11

Browse files
authored
Update README.md
1 parent cf226bd commit 2d93e11

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

README.md

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ In future, I may make the config.ini auto-generated from CMake options.
9696
* `Location` (string) -> Points to the file location in which the logs are stored. Default is `log.txt`.
9797
* `DLIB`
9898
* `ReferenceFile` (string) -> Specifies the file containing reference face data for face recognition. iot-facerecognition-server will try to find faces that are specified in this file in the input stream. Default is `faces.json`. This file must be in JSON format. See below for example:
99-
100-
[
99+
100+
[
101101
{
102102
"tag": "trump",
103103
"photos": [
104-
"trump.jpg", "trump2.jpg"
104+
"trump.jpg",
105+
"trump2.jpg"
105106
]
106107
},
107108
{
@@ -128,36 +129,34 @@ Sample face recognition result:
128129

129130
```json
130131
[
131-
{
132-
"tag": "trump",
133-
134-
"x": 10,
135-
"y": 200,
136-
"width": 128,
137-
"height": 128
138-
},
139-
{
140-
"tag": "",
141-
142-
"x": 35,
143-
"y": 50,
144-
"width": 64,
145-
"height": 86
146-
},
132+
{
133+
"tag": "trump",
134+
"x": 10,
135+
"y": 200,
136+
"width": 128,
137+
"height": 128
138+
},
139+
{
140+
"tag": "",
141+
"x": 35,
142+
"y": 50,
143+
"width": 64,
144+
"height": 86
145+
}
147146
]
148147
```
149148

150149
Sample object recognition result:
151150
```json
152151
[
153-
{
154-
"label": "King penguin",
155-
"prediction": 0.15
156-
},
157-
{
158-
"label": "Chihuahua",
159-
"prediction": 0.0005
160-
},
152+
{
153+
"label": "King penguin",
154+
"prediction": 0.15
155+
},
156+
{
157+
"label": "Chihuahua",
158+
"prediction": 0.0005
159+
}
161160
]
162161
```
163162

@@ -274,17 +273,15 @@ An example command (the command that contains facial recognition results):
274273
```json
275274
{
276275
"command": 3,
277-
"context": {
278-
[
279-
{
280-
"tag": "trump",
281-
"x": 10,
282-
"y": 200,
283-
"width": 128,
284-
"height": 128
285-
}
286-
]
287-
}
276+
"context": [
277+
{
278+
"tag": "trump",
279+
"x": 10,
280+
"y": 200,
281+
"width": 128,
282+
"height": 128
283+
}
284+
]
288285
}
289286
```
290287

0 commit comments

Comments
 (0)