-
Notifications
You must be signed in to change notification settings - Fork 0
/
cascade.py
52 lines (48 loc) · 1.06 KB
/
cascade.py
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
"""
https://github.com/jsongraph/json-graph-specification
|-> Age/Gender
Person -> Face ->|
|-> Emotions
"""
{
"graph": {
"directed": True,
"type": "graph type",
"label": "graph label",
"metadata": {
"description": "Get age, gender and emotions from an image."
},
"nodes": {
"0": {
"label": "Person detection", #
"metadata": {
"external_id": "123210",
"source": "Intel",
"type": {
"name": "Object Detector"
},
"objects": ["person", "bus"],
"selected": ["person"]
}
},
"1": {
"label": "Face detection",
"metadata": {
"type": {
"name": "object_detector"
},
"user-defined": "values"
}
}
},
"edges": [
{
"source": "0",
"relation": "edge relationship",
"target": "1",
"directed": False,
"label": "edge label",
}
]
}
}