forked from openvinotoolkit/model_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
110 lines (110 loc) · 4.22 KB
/
Copy pathconfig.json
File metadata and controls
110 lines (110 loc) · 4.22 KB
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
{
"model_config_list": [
{
"config": {
"name": "east",
"base_path": "/OCR/east_fp32",
"plugin_config": {
"PERFORMANCE_HINT": "LATENCY"
}
}
},
{
"config": {
"name": "text-recognition",
"layout": "NHWC:NCHW",
"base_path": "/OCR/text-recognition"
}
}
],
"custom_node_library_config_list": [
{
"name": "east_image_extractor",
"base_path": "/OCR/lib/libcustom_node_east_ocr.so"
}
],
"pipeline_config_list": [
{
"name": "detect_text_images",
"inputs": ["image"],
"nodes": [
{
"name": "east_node",
"model_name": "east",
"type": "DL model",
"inputs": [
{"input_images": {"node_name": "request",
"data_item": "image"}}
],
"outputs": [
{"data_item": "feature_fusion/Conv_7/Sigmoid",
"alias": "scores"},
{"data_item": "feature_fusion/concat_3",
"alias": "geometry"}
]
},
{
"name": "extract_node",
"library_name": "east_image_extractor",
"type": "custom",
"demultiply_count": 0,
"params": {
"original_image_width": "1920",
"original_image_height": "1024",
"original_image_layout": "NHWC",
"target_image_width": "128",
"target_image_height": "32",
"target_image_layout": "NHWC",
"convert_to_gray_scale": "true",
"confidence_threshold": "0.9",
"overlap_threshold": "0.2",
"max_output_batch": "100",
"box_width_adjustment": "0.1",
"box_height_adjustment": "0.0",
"rotation_angle_threshold": "8",
"debug": "true"
},
"inputs": [
{"image": {"node_name": "request",
"data_item": "image"}},
{"scores": {"node_name": "east_node",
"data_item": "scores"}},
{"geometry": {"node_name": "east_node",
"data_item": "geometry"}}
],
"outputs": [
{"data_item": "text_images",
"alias": "text_images"},
{"data_item": "text_coordinates",
"alias": "text_coordinates"},
{"data_item": "confidence_levels",
"alias": "confidence_levels"}
]
},
{
"name": "text-recognition_node",
"model_name": "text-recognition",
"type": "DL model",
"inputs": [
{"imgs": {"node_name": "extract_node",
"data_item": "text_images"}}
],
"outputs": [
{"data_item": "logits",
"alias": "texts"}
]
}
],
"outputs": [
{"text_images": {"node_name": "extract_node",
"data_item": "text_images"}},
{"text_coordinates": {"node_name": "extract_node",
"data_item": "text_coordinates"}},
{"confidence_levels": {"node_name": "extract_node",
"data_item": "confidence_levels"}},
{"texts": {"node_name": "text-recognition_node",
"data_item": "texts"}}
]
}
]
}