xref: /OK3568_Linux_fs/external/rockit/tgi/sdk/conf/aicamera_faceae.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_25": {
266            "node_opts": {
267                "node_name"       : "faceae"
268            },
269            "node_opts_extra": {
270                "node_buff_type"  : 1,
271                "node_buff_count" : 0
272            },
273            "stream_opts": {
274                "stream_input_0"  : "image:nv12_1",
275                "stream_input_1"  : "image:rect_11",
276                "stream_output"   : "image:nv12_15",
277                "stream_fmt_in_0" : "image:nv12",
278                "stream_fmt_in_1" : "image:rect",
279                "stream_fmt_out"  : "image:nv12"
280            },
281            "stream_opts_extra": {
282                "opt_ai_algorithm": "rockx",
283                "opt_width"       : 1920,
284                "opt_height"      : 1080,
285                "opt_clip_width"  : 1280,
286                "opt_clip_height" : 720,
287                "opt_evbias"	  : 200
288            }
289        },
290        "node_1000": {
291            "node_opts": {
292                "node_name"       : "link_output"
293            },
294            "node_opts_extra": {
295                "node_buff_type"  : 1,
296                "node_buff_count" : 0
297            },
298            "stream_opts": {
299                "stream_input"    : "st_asteria_link_in",
300                "stream_output"   : "st_asteria_link_out",
301                "stream_fmt_in"   : "nn:stream_ai",
302                "stream_fmt_out"  : "nn:stream_ai"
303            }
304        },
305        "node_64": {
306            "node_opts": {
307                "node_name"       : "ai_matting"
308            },
309            "node_opts_extra": {
310                "node_buff_type"  : 0,
311                "node_buff_count" : 16,
312                "node_buff_size"  : 102400
313            },
314            "stream_opts": {
315                "stream_input"    : "ai_matting_in",
316                "stream_output"   : "aimatting_out",
317                "stream_fmt_in"   : "nn:stream_ai",
318                "stream_fmt_out"  : "image:nv12",
319                "stream_mode_in"  : "remain_newest"
320            },
321            "stream_opts_extra": {
322                "opt_ai_algorithm": "rockx"
323            }
324        },
325        "node_1001": {
326            "node_opts": {
327                "node_name"       : "link_output"
328            },
329            "node_opts_extra": {
330                "node_buff_type"  : 1,
331                "node_buff_count" : 0
332            },
333            "stream_opts": {
334                "stream_input"    : "aimatting_link_in",
335                "stream_output"   : "aimatting_link_out",
336                "stream_fmt_in"   : "image:nv12",
337                "stream_fmt_out"  : "image:nv12"
338            }
339        },
340        "node_21": {
341            "node_opts": {
342                "node_name"       : "rkrga"
343            },
344            "node_opts_extra": {
345                "node_buff_type"  : 0,
346                "node_buff_count" : 2,
347                "node_buff_size"  : 115200
348            },
349            "stream_opts": {
350                "stream_input"    : "small_rga_in",
351                "stream_output"   : "small_rga_out",
352                "stream_fmt_in"   : "image:nv12",
353                "stream_fmt_out"  : "image:nv12"
354            },
355            "stream_opts_extra": {
356                "opt_trans_rect"  : "(0,0,1280,720)->(0,0,320,240)",
357                "opt_trans_rotate": 0
358            }
359        },
360        "default_mode_link": "none",
361        "link_0": {
362            "link_name"          : "uvc",
363            "link_ship"          : "0,7-0,8"
364        },
365        "link_1": {
366            "link_name"          : "nn_isp",
367            "link_ship"          : "2,8-8,11,1000-8,12,1000-8,13,1000"
368        },
369        "link_2": {
370            "link_name"          : "nn_linkout",
371            "link_ship"          : "10,8-8,11,1000-8,12,1000-8,13,1000"
372        },
373        "link_3": {
374            "link_name"          : "aimatting",
375            "link_ship"          : "8,25-2,4,25"
376        },
377        "link_4": {
378            "link_name"          : "uvc_zoom",
379            "link_ship"          : "1,3,6,7-6,10"
380        },
381        "link_5": {
382            "link_name"          : "eptz",
383            "link_ship"          : "1,5,3,6,7-2,4,5-6,10"
384        },
385        "link_6": {
386            "link_name"          : "uvc_faceae",
387            "link_ship"          : "8,25-2,4,25"
388        }
389    }
390}
391