hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
    "pipe_0": {
        "node_0": {
            "node_opts": {
                "node_name"       : "rkisp"
            },
            "node_opts_extra": {
                "node_buff_type"  : 0,
                "node_buff_count" : 3,
                "node_buff_size"  : 1382400
            },
            "stream_opts": {
                "stream_output"   : "isp_scale_0",
                "stream_fmt_out"  : "image:nv12"
            },
            "stream_opts_extra": {
                "opt_entity_name" : "rkispp_scale0",
                "opt_width"       : 1280,
                "opt_height"      : 720,
                "opt_vir_width"   : 1280,
                "opt_vir_height"  : 720,
                "opt_buf_type"    : 1,
                "opt_mem_type"    : 4,
                "opt_use_libv4l2" : 1,
                "opt_colorspace"  : 0
            }
        },
        "node_1": {
            "node_opts": {
                "node_name"       : "rkisp"
            },
            "node_opts_extra": {
                "node_buff_type"  : 0,
                "node_buff_count" : 3,
                "node_buff_size"  : 5529600
            },
            "stream_opts": {
                "stream_output"   : "isp_bypass",
                "stream_fmt_out"  : "image:nv12"
            },
            "stream_opts_extra": {
                "opt_entity_name" : "rkispp_m_bypass",
                "opt_width"       : 2560,
                "opt_height"      : 1440,
                "opt_vir_width"   : 2560,
                "opt_vir_height"  : 1440,
                "opt_buf_type"    : 1,
                "opt_mem_type"    : 4,
                "opt_use_libv4l2" : 1,
                "opt_colorspace"  : 0
            }
        },
        "node_2": {
            "node_opts": {
                "node_name"       : "rkisp"
            },
            "node_opts_extra": {
                "node_buff_type"  : 0,
                "node_buff_count" : 3,
                "node_buff_size"  : 1382400
            },
            "stream_opts": {
                "stream_output"   : "isp_scale_1",
                "stream_fmt_out"  : "image:nv12"
            },
            "stream_opts_extra": {
                "opt_entity_name" : "rkispp_scale1",
                "opt_width"       : 640,
                "opt_height"      : 360,
                "opt_vir_width"   : 640,
                "opt_vir_height"  : 360,
                "opt_buf_type"    : 1,
                "opt_mem_type"    : 4,
                "opt_use_libv4l2" : 1,
                "opt_colorspace"  : 0
            }
        },
        "node_3": {
            "node_opts": {
                "node_name"       : "rkzoom"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 0
            },
            "stream_opts": {
                "stream_input"    : "zoom_ctl_in",
                "stream_output"   : "zoom_ctl_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:nv12"
            }
        },
        "node_4": {
            "node_opts": {
                "node_name"       : "rockx"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 2
            },
            "stream_opts": {
                "stream_input"    : "eptz_face_detect_in",
                "stream_output"   : "eptz_face_detect_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:rect",
                "stream_mode_in"  : "remain_newest"
            },
            "stream_opts_extra": {
                "opt_rockx_model" : "rockx_face_detect_v2_h"
            }
        },
        "node_5": {
            "node_opts": {
                "node_name"       : "rkeptz"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 0
            },
            "stream_opts": {
                "stream_input_0"  : "image:nv12_0",
                "stream_input_1"  : "image:rect_10",
                "stream_output"   : "image:nv12_12",
                "stream_fmt_in_0" : "image:nv12",
                "stream_fmt_in_1" : "image:rect",
                "stream_fmt_out"  : "image:nv12"
            },
            "stream_opts_extra": {
                "opt_ai_algorithm": "rockx",
                "opt_width"       : 1920,
                "opt_height"      : 1080,
                "opt_clip_width"  : 1280,
                "opt_clip_height" : 720
            }
        },
        "node_6": {
            "node_opts": {
                "node_name"       : "rkrga"
            },
            "node_opts_extra": {
                "node_buff_type"  : 0,
                "node_buff_count" : 3,
                "node_buff_size"  : 614400
            },
            "stream_opts": {
                "stream_input"    : "eptz_clip_in",
                "stream_output"   : "eptz_clip_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:nv12",
                "stream_mode_in"  : "remain_newest"
            },
            "stream_opts_extra": {
                "opt_trans_rect"  : "(0,0,1920,1080)->(0,0,1280,720)",
                "opt_trans_rotate": 0
            }
        },
        "node_7": {
            "node_opts": {
                "node_name"       : "link_output"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 0
            },
            "stream_opts": {
                "stream_input"    : "uvc_link_out_in",
                "stream_output"   : "uvc_link_out_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:nv12"
            }
        },
        "node_10": {
            "node_opts": {
                "node_name"       : "rkrga"
            },
            "node_opts_extra": {
                "node_buff_type"  : 0,
                "node_buff_count" : 3,
                "node_buff_size"  : 1382400
            },
            "stream_opts": {
                "stream_input"    : "nn_data_in",
                "stream_output"   : "nn_data_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:nv12",
                "stream_mode_in"  : "remain_newest"
            },
            "stream_opts_extra": {
                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,1280,720)",
                "opt_trans_rotate": 0
            }
        },
        "node_8": {
            "node_opts": {
                "node_name"       : "link_output"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 0
            },
            "stream_opts": {
                "stream_input"    : "nn_link_out_in",
                "stream_output"   : "nn_link_out_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "image:nv12"
            }
        },
        "node_11": {
            "node_opts": {
                "node_name"       : "rockx"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 2
            },
            "stream_opts": {
                "stream_input"    : "face_detect_in",
                "stream_output"   : "face_detect_out",
                "stream_fmt_in"   : "image:nv12",
                "stream_fmt_out"  : "nn:stream_ai",
                "stream_mode_in"  : "remain_newest"
            },
            "stream_opts_extra": {
                "opt_rockx_model" : "rockx_face_detect_v2_h"
            }
        },
        "node_1000": {
            "node_opts": {
                "node_name"       : "link_output"
            },
            "node_opts_extra": {
                "node_buff_type"  : 1,
                "node_buff_count" : 0
            },
            "stream_opts": {
                "stream_input"    : "st_asteria_link_in",
                "stream_output"   : "st_asteria_link_out",
                "stream_fmt_in"   : "nn:stream_ai",
                "stream_fmt_out"  : "nn:stream_ai"
            }
        },
        "default_mode_link": "none",
        "link_0": {
            "link_name"          : "uvc",
            "link_ship"          : "0,7"
        },
        "link_1": {
            "link_name"          : "nn_isp",
            "link_ship"          : "2,8-8,11,1000"
        },
        "link_2": {
            "link_name"          : "nn_linkout",
            "link_ship"          : "10,8-8,11,1000"
        },
        "link_3": {
            "link_name"          : "uvc_zoom",
            "link_ship"          : "1,3,6,7-6,10"
        },
        "link_4": {
            "link_name"          : "eptz",
            "link_ship"          : "1,5,3,6,7-2,4,5-6,10"
        }
    }
}