xref: /OK3568_Linux_fs/external/rockit/tgi/sdk/conf/aicamera_rockx.json (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1{
2    "pipe_0": {
3        "node_0": {
4            "node_opts": {
5                "node_name"       : "rkisp"
6            },
7            "node_opts_extra": {
8                "node_buff_type"  : 0,
9                "node_buff_count" : 3,
10                "node_buff_size"  : 1382400
11            },
12            "stream_opts": {
13                "stream_output"   : "isp_scale_0",
14                "stream_fmt_out"  : "image:nv12"
15            },
16            "stream_opts_extra": {
17                "opt_entity_name" : "rkispp_scale0",
18                "opt_width"       : 1280,
19                "opt_height"      : 720,
20                "opt_vir_width"   : 1280,
21                "opt_vir_height"  : 720,
22                "opt_buf_type"    : 1,
23                "opt_mem_type"    : 4,
24                "opt_use_libv4l2" : 1,
25                "opt_colorspace"  : 0
26            }
27        },
28        "node_1": {
29            "node_opts": {
30                "node_name"       : "rkisp"
31            },
32            "node_opts_extra": {
33                "node_buff_type"  : 0,
34                "node_buff_count" : 3,
35                "node_buff_size"  : 5529600
36            },
37            "stream_opts": {
38                "stream_output"   : "isp_bypass",
39                "stream_fmt_out"  : "image:nv12"
40            },
41            "stream_opts_extra": {
42                "opt_entity_name" : "rkispp_m_bypass",
43                "opt_width"       : 2560,
44                "opt_height"      : 1440,
45                "opt_vir_width"   : 2560,
46                "opt_vir_height"  : 1440,
47                "opt_buf_type"    : 1,
48                "opt_mem_type"    : 4,
49                "opt_use_libv4l2" : 1,
50                "opt_colorspace"  : 0
51            }
52        },
53        "node_2": {
54            "node_opts": {
55                "node_name"       : "rkisp"
56            },
57            "node_opts_extra": {
58                "node_buff_type"  : 0,
59                "node_buff_count" : 3,
60                "node_buff_size"  : 1382400
61            },
62            "stream_opts": {
63                "stream_output"   : "isp_scale_1",
64                "stream_fmt_out"  : "image:nv12"
65            },
66            "stream_opts_extra": {
67                "opt_entity_name" : "rkispp_scale1",
68                "opt_width"       : 640,
69                "opt_height"      : 360,
70                "opt_vir_width"   : 640,
71                "opt_vir_height"  : 360,
72                "opt_buf_type"    : 1,
73                "opt_mem_type"    : 4,
74                "opt_use_libv4l2" : 1,
75                "opt_colorspace"  : 0
76            }
77        },
78        "node_3": {
79            "node_opts": {
80                "node_name"       : "rkzoom"
81            },
82            "node_opts_extra": {
83                "node_buff_type"  : 1,
84                "node_buff_count" : 0
85            },
86            "stream_opts": {
87                "stream_input"    : "zoom_ctl_in",
88                "stream_output"   : "zoom_ctl_out",
89                "stream_fmt_in"   : "image:nv12",
90                "stream_fmt_out"  : "image:nv12"
91            }
92        },
93        "node_4": {
94            "node_opts": {
95                "node_name"       : "rockx"
96            },
97            "node_opts_extra": {
98                "node_buff_type"  : 1,
99                "node_buff_count" : 2
100            },
101            "stream_opts": {
102                "stream_input"    : "eptz_face_detect_in",
103                "stream_output"   : "eptz_face_detect_out",
104                "stream_fmt_in"   : "image:nv12",
105                "stream_fmt_out"  : "image:rect",
106                "stream_mode_in"  : "remain_newest"
107            },
108            "stream_opts_extra": {
109                "opt_rockx_model" : "rockx_face_detect"
110            }
111        },
112        "node_5": {
113            "node_opts": {
114                "node_name"       : "rkeptz"
115            },
116            "node_opts_extra": {
117                "node_buff_type"  : 1,
118                "node_buff_count" : 0
119            },
120            "stream_opts": {
121                "stream_input_0"  : "image:nv12_0",
122                "stream_input_1"  : "image:rect_10",
123                "stream_output"   : "image:nv12_12",
124                "stream_fmt_in_0" : "image:nv12",
125                "stream_fmt_in_1" : "image:rect",
126                "stream_fmt_out"  : "image:nv12"
127            },
128            "stream_opts_extra": {
129                "opt_ai_algorithm": "rockx",
130                "opt_width"       : 1920,
131                "opt_height"      : 1080,
132                "opt_clip_width"  : 1280,
133                "opt_clip_height" : 720
134            }
135        },
136        "node_6": {
137            "node_opts": {
138                "node_name"       : "rkrga"
139            },
140            "node_opts_extra": {
141                "node_buff_type"  : 0,
142                "node_buff_count" : 3,
143                "node_buff_size"  : 614400
144            },
145            "stream_opts": {
146                "stream_input"    : "eptz_clip_in",
147                "stream_output"   : "eptz_clip_out",
148                "stream_fmt_in"   : "image:nv12",
149                "stream_fmt_out"  : "image:nv12",
150                "stream_mode_in"  : "remain_newest"
151            },
152            "stream_opts_extra": {
153                "opt_trans_rect"  : "(0,0,1920,1080)->(0,0,1280,720)",
154                "opt_trans_rotate": 0
155            }
156        },
157        "node_7": {
158            "node_opts": {
159                "node_name"       : "link_output"
160            },
161            "node_opts_extra": {
162                "node_buff_type"  : 1,
163                "node_buff_count" : 0
164            },
165            "stream_opts": {
166                "stream_input"    : "uvc_link_out_in",
167                "stream_output"   : "uvc_link_out_out",
168                "stream_fmt_in"   : "image:nv12",
169                "stream_fmt_out"  : "image:nv12"
170            }
171        },
172        "node_10": {
173            "node_opts": {
174                "node_name"       : "rkrga"
175            },
176            "node_opts_extra": {
177                "node_buff_type"  : 0,
178                "node_buff_count" : 3,
179                "node_buff_size"  : 1382400
180            },
181            "stream_opts": {
182                "stream_input"    : "nn_data_in",
183                "stream_output"   : "nn_data_out",
184                "stream_fmt_in"   : "image:nv12",
185                "stream_fmt_out"  : "image:nv12",
186                "stream_mode_in"  : "remain_newest"
187            },
188            "stream_opts_extra": {
189                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,1280,720)",
190                "opt_trans_rotate": 0
191            }
192        },
193        "node_8": {
194            "node_opts": {
195                "node_name"       : "link_output"
196            },
197            "node_opts_extra": {
198                "node_buff_type"  : 1,
199                "node_buff_count" : 0
200            },
201            "stream_opts": {
202                "stream_input"    : "nn_link_out_in",
203                "stream_output"   : "nn_link_out_out",
204                "stream_fmt_in"   : "image:nv12",
205                "stream_fmt_out"  : "image:nv12"
206            }
207        },
208        "node_11": {
209            "node_opts": {
210                "node_name"       : "rockx"
211            },
212            "node_opts_extra": {
213                "node_buff_type"  : 1,
214                "node_buff_count" : 2
215            },
216            "stream_opts": {
217                "stream_input"    : "face_detect_in",
218                "stream_output"   : "face_detect_out",
219                "stream_fmt_in"   : "image:nv12",
220                "stream_fmt_out"  : "nn:stream_ai",
221                "stream_mode_in"  : "remain_newest"
222            },
223            "stream_opts_extra": {
224                "opt_rockx_model" : "rockx_face_detect"
225            }
226        },
227        "node_12": {
228            "node_opts": {
229                "node_name"       : "rockx"
230            },
231            "node_opts_extra": {
232                "node_buff_type"  : 1,
233                "node_buff_count" : 2
234            },
235            "stream_opts": {
236                "stream_input"    : "face_landmark_in",
237                "stream_output"   : "face_landmark_out",
238                "stream_fmt_in"   : "image:nv12",
239                "stream_fmt_out"  : "nn:stream_ai",
240                "stream_mode_in"  : "remain_newest"
241            },
242            "stream_opts_extra": {
243                "opt_rockx_model" : "rockx_face_landmark"
244            }
245        },
246        "node_13": {
247            "node_opts": {
248                "node_name"       : "rockx"
249            },
250            "node_opts_extra": {
251                "node_buff_type"  : 1,
252                "node_buff_count" : 2
253            },
254            "stream_opts": {
255                "stream_input"    : "body_in",
256                "stream_output"   : "body_out",
257                "stream_fmt_in"   : "image:nv12",
258                "stream_fmt_out"  : "nn:stream_ai",
259                "stream_mode_in"  : "remain_newest"
260            },
261            "stream_opts_extra": {
262                "opt_rockx_model" : "rockx_pose_body_v2"
263            }
264        },
265        "node_1000": {
266            "node_opts": {
267                "node_name"       : "link_output"
268            },
269            "node_opts_extra": {
270                "node_buff_type"  : 1,
271                "node_buff_count" : 0
272            },
273            "stream_opts": {
274                "stream_input"    : "st_asteria_link_in",
275                "stream_output"   : "st_asteria_link_out",
276                "stream_fmt_in"   : "nn:stream_ai",
277                "stream_fmt_out"  : "nn:stream_ai"
278            }
279        },
280        "node_21": {
281            "node_opts": {
282                "node_name"       : "rkrga"
283            },
284            "node_opts_extra": {
285                "node_buff_type"  : 0,
286                "node_buff_count" : 2,
287                "node_buff_size"  : 115200
288            },
289            "stream_opts": {
290                "stream_input"    : "small_rga_in",
291                "stream_output"   : "small_rga_out",
292                "stream_fmt_in"   : "image:nv12",
293                "stream_fmt_out"  : "image:nv12"
294            },
295            "stream_opts_extra": {
296                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,320,240)",
297                "opt_trans_rotate": 0
298            }
299        },
300        "node_9": {
301            "node_opts": {
302                "node_name"       : "faceline"
303            },
304            "node_opts_extra": {
305                "node_buff_type"  : 1,
306                "node_buff_count" : 0
307            },
308            "stream_opts": {
309                "stream_input_0"  : "image:nv12_1",
310                "stream_input_1"  : "image:rect_11",
311                "stream_output"   : "image:nv12_16",
312                "stream_fmt_in_0" : "image:nv12",
313                "stream_fmt_in_1" : "image:rect",
314                "stream_fmt_out"  : "image:nv12"
315            },
316            "stream_opts_extra": {
317                "opt_ai_algorithm": "rockx",
318                "opt_width"       : 1920,
319                "opt_height"      : 1080,
320                "opt_clip_width"  : 1280,
321                "opt_clip_height" : 720
322            }
323        },
324        "default_mode_link": "none",
325        "link_0": {
326            "link_name"          : "uvc",
327            "link_ship"          : "0,7"
328        },
329        "link_1": {
330            "link_name"          : "nn_isp",
331            "link_ship"          : "2,8-8,11,1000-8,12,1000-8,13,1000"
332        },
333        "link_2": {
334            "link_name"          : "nn_linkout",
335            "link_ship"          : "10,8-8,11,1000-8,12,1000-8,13,1000"
336        },
337        "link_4": {
338            "link_name"          : "uvc_zoom",
339            "link_ship"          : "1,3,6,7-6,10"
340        },
341        "link_5": {
342            "link_name"          : "eptz",
343            "link_ship"          : "1,5,3,6,7-2,4,5-6,10"
344        },
345        "link_6": {
346            "link_name"          : "uvc_bypass",
347            "link_ship"          : "1,3,6,7"
348        },
349        "link_7": {
350            "link_name"          : "face_line",
351            "link_ship"          : "0,9,7-2,4,9"
352        }
353    }
354}
355