xref: /OK3568_Linux_fs/external/rockit/tgi/sdk/conf/aicamera_stasteria.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"       : 1280,
69                "opt_height"      : 720,
70                "opt_vir_width"   : 1280,
71                "opt_vir_height"  : 720,
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"       : "st_asteria"
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_stasteria_mode"       : "video",
110                "opt_stasteria_sup_mode"   : "video",
111                "opt_stasteria_scene"      : "scene_eptz",
112                "opt_stasteria_sup_detect" : "face",
113                "opt_stasteria_detect"     : "face",
114                "opt_stasteria_skip_interval" : 2
115            }
116        },
117        "node_5": {
118            "node_opts": {
119                "node_name"       : "rkeptz"
120            },
121            "node_opts_extra": {
122                "node_buff_type"  : 1,
123                "node_buff_count" : 0
124            },
125            "stream_opts": {
126                "stream_input_0"  : "image:nv12_0",
127                "stream_input_1"  : "image:rect_10",
128                "stream_output"   : "image:nv12_12",
129                "stream_fmt_in_0" : "image:nv12",
130                "stream_fmt_in_1" : "image:rect",
131                "stream_fmt_out"  : "image:nv12"
132            },
133            "stream_opts_extra": {
134                "opt_ai_algorithm": "st_asteria",
135                "opt_width"       : 1920,
136                "opt_height"      : 1080,
137                "opt_clip_width"  : 1280,
138                "opt_clip_height" : 720
139            }
140        },
141        "node_6": {
142            "node_opts": {
143                "node_name"       : "rkrga"
144            },
145            "node_opts_extra": {
146                "node_buff_type"  : 0,
147                "node_buff_count" : 3,
148                "node_buff_size"  : 614400
149            },
150            "stream_opts": {
151                "stream_input"    : "eptz_clip_in",
152                "stream_output"   : "eptz_clip_out",
153                "stream_fmt_in"   : "image:nv12",
154                "stream_fmt_out"  : "image:nv12",
155                "stream_mode_in"  : "remain_newest"
156            },
157            "stream_opts_extra": {
158                "opt_trans_rect"  : "(0,0,1920,1080)->(0,0,1280,720)",
159                "opt_trans_rotate": 0
160            }
161        },
162        "node_7": {
163            "node_opts": {
164                "node_name"       : "link_output"
165            },
166            "node_opts_extra": {
167                "node_buff_type"  : 1,
168                "node_buff_count" : 0
169            },
170            "stream_opts": {
171                "stream_input"    : "uvc_link_out_in",
172                "stream_output"   : "uvc_link_out_out",
173                "stream_fmt_in"   : "image:nv12",
174                "stream_fmt_out"  : "image:nv12"
175            }
176        },
177        "node_10": {
178            "node_opts": {
179                "node_name"       : "rkrga"
180            },
181            "node_opts_extra": {
182                "node_buff_type"  : 0,
183                "node_buff_count" : 3,
184                "node_buff_size"  : 1382400
185            },
186            "stream_opts": {
187                "stream_input"    : "nn_data_in",
188                "stream_output"   : "nn_data_out",
189                "stream_fmt_in"   : "image:nv12",
190                "stream_fmt_out"  : "image:nv12",
191                "stream_mode_in"  : "remain_newest"
192            },
193            "stream_opts_extra": {
194                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,1280,720)",
195                "opt_trans_rotate": 0
196            }
197        },
198        "node_8": {
199            "node_opts": {
200                "node_name"       : "link_output"
201            },
202            "node_opts_extra": {
203                "node_buff_type"  : 1,
204                "node_buff_count" : 0
205            },
206            "stream_opts": {
207                "stream_input"    : "nn_link_out_in",
208                "stream_output"   : "nn_link_out_out",
209                "stream_fmt_in"   : "image:nv12",
210                "stream_fmt_out"  : "image:nv12"
211            }
212        },
213        "node_11": {
214            "node_opts": {
215                "node_name"       : "st_asteria"
216            },
217            "node_opts_extra": {
218                "node_buff_type"  : 1,
219                "node_buff_count" : 2
220            },
221            "stream_opts": {
222                "stream_input"    : "st_asteria_in",
223                "stream_output"   : "st_asteria_out",
224                "stream_fmt_in"   : "image:nv12",
225                "stream_fmt_out"  : "nn:stasteria",
226                "stream_mode_in"  : "remain_newest"
227            },
228            "stream_opts_extra": {
229                "opt_stasteria_mode"       : "video",
230                "opt_stasteria_sup_mode"   : "video",
231                "opt_stasteria_scene"      : "scene_nn",
232                "opt_stasteria_sup_detect" : "face,face_distance,face_attribute,face_feature,hand,body"
233            }
234        },
235        "node_1000": {
236            "node_opts": {
237                "node_name"       : "link_output"
238            },
239            "node_opts_extra": {
240                "node_buff_type"  : 1,
241                "node_buff_count" : 0
242            },
243            "stream_opts": {
244                "stream_input"    : "st_asteria_link_in",
245                "stream_output"   : "st_asteria_link_out",
246                "stream_fmt_in"   : "nn:stasteria",
247                "stream_fmt_out"  : "nn:stasteria"
248            }
249        },
250        "node_64": {
251            "node_opts": {
252                "node_name"       : "ai_matting"
253            },
254            "node_opts_extra": {
255                "node_buff_type"  : 0,
256                "node_buff_count" : 16,
257                "node_buff_size"  : 102400
258            },
259            "stream_opts": {
260                "stream_input"    : "ai_matting_in",
261                "stream_output"   : "aimatting_out",
262                "stream_fmt_in"   : "nn:stasteria",
263                "stream_fmt_out"  : "image:nv12",
264                "stream_mode_in"  : "remain_newest"
265            },
266            "stream_opts_extra": {
267                "opt_ai_algorithm": "st_asteria"
268            }
269        },
270        "node_1001": {
271            "node_opts": {
272                "node_name"       : "link_output"
273            },
274            "node_opts_extra": {
275                "node_buff_type"  : 1,
276                "node_buff_count" : 0
277            },
278            "stream_opts": {
279                "stream_input"    : "aimatting_link_in",
280                "stream_output"   : "aimatting_link_out",
281                "stream_fmt_in"   : "image:nv12",
282                "stream_fmt_out"  : "image:nv12"
283            }
284        },
285        "node_21": {
286            "node_opts": {
287                "node_name"       : "rkrga"
288            },
289            "node_opts_extra": {
290                "node_buff_type"  : 0,
291                "node_buff_count" : 2,
292                "node_buff_size"  : 115200
293            },
294            "stream_opts": {
295                "stream_input"    : "small_rga_in",
296                "stream_output"   : "small_rga_out",
297                "stream_fmt_in"   : "image:nv12",
298                "stream_fmt_out"  : "image:nv12"
299            },
300            "stream_opts_extra": {
301                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,320,240)",
302                "opt_trans_rotate": 0
303            }
304        },
305        "default_mode_link": "none",
306        "link_0": {
307            "link_name"          : "uvc",
308            "link_ship"          : "0,7"
309        },
310        "link_1": {
311            "link_name"          : "nn_isp",
312            "link_ship"          : "2,8,11,1000"
313        },
314        "link_2": {
315            "link_name"          : "nn_linkout",
316            "link_ship"          : "10,8,11,1000"
317        },
318        "link_3": {
319            "link_name"          : "aimatting",
320            "link_ship"          : "11,64,1001"
321        },
322        "link_4": {
323            "link_name"          : "uvc_zoom",
324            "link_ship"          : "1,3,6,7-6,10"
325        },
326        "link_5": {
327            "link_name"          : "eptz",
328            "link_ship"          : "1,5,3,6,7-2,4,5-6,10"
329        }
330    }
331}
332