-
Notifications
You must be signed in to change notification settings - Fork 0
/
farsightcpp.json
132 lines (128 loc) · 4.44 KB
/
farsightcpp.json
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
{
"IFF": {
"enable_control_interface": true,
"devices": [
{
"id": "cpu_dev",
"type": "cpu"
},
{
"id": "cuda_dev",
"type": "cuda"
}
],
"services": {
"rtsp_server": {
"host": "<CHANGEME>",
"port": 8554,
"mtu": 1500
},
"http_server": {
"port": 8080
}
}
},
"chains": [
{
"id": "main",
"elements": [
{
"id": "cam",
"type": "xicamera",
"cpu_device_id": "cpu_dev",
"serial_number": "<CHANGEME>",
"image_format": "RAW8",
"custom_params": [
{ "bpc": 1 },
{ "column_fpn_correction": 1 },
{ "row_fpn_correction": 1 },
{ "column_black_offset_correction": 1 },
{ "row_black_offset_correction": 1 }
],
"exposure": 10000,
"fps": 30.0,
"gain": 0.0
},
{
"id": "writer",
"type": "dng_writer",
"cpu_device_id": "cpu_dev",
"filename_template": "{utc_time}.dng"
},
{
"id": "gpuproc",
"type": "cuda_processor",
"cpu_device_id": "cpu_dev",
"gpu_device_id": "cuda_dev",
"elements": [
{ "id": "import_from_host", "type": "import_from_host" },
{ "id": "black_level", "type": "black_level" },
{ "id": "white_balance", "type": "white_balance" },
{ "id": "demosaic", "type": "demosaic", "algorithm": "HQLI" },
{ "id": "color_correction", "type": "color_correction", "matrix": [ 1.0, 0.0, 0.0,
0.0, 1.0, 0.0,
0.0, 0.0, 1.0 ] },
{ "id": "gamma", "type": "gamma8", "linear": 0.018, "power": 0.45 },
{ "id": "export_to_device", "type": "export_to_device", "output_format": "NV12_BT709", //change "NV12_BT709" to "YV12_BT709" on Jetson
"output_name": "yuv" },
{ "id": "hist", "type": "histogram", "output_format": "Histogram4Bayer256Int", "output_name": "histogram" }
],
"connections": [
{ "src": "import_from_host", "dst": "black_level" },
{ "src": "black_level", "dst": "white_balance" },
{ "src": "white_balance", "dst": "demosaic" },
{ "src": "demosaic", "dst": "color_correction" },
{ "src": "color_correction", "dst": "gamma" },
{ "src": "gamma", "dst": "export_to_device" },
{ "src": "black_level", "dst": "hist" }
]
},
{
"id": "autoctrl",
"type": "awb_aec",
"cpu_device_id": "cpu_dev",
"autostart": true,
"aec_enabled": true,
"awb_enabled": true,
"max_exposure": 33000
},
{
"id": "nvenc",
"type": "encoder",
"encoder_type": "nvidia",
"cpu_device_id": "cpu_dev",
"gpu_device_id": "cuda_dev",
"max_processing_count": 3,
"codec": "H264",
"bitrate": 10000000,
"fps": 30.0,
"max_performance": true
},
{
"id": "mon",
"type": "sub_monitor"
},
{
"id": "netstream",
"type": "rtsp_stream",
"relative_uri": "/cam"
}
],
"connections": [
{ "src": "cam", "dst": "writer" },
{ "src": "cam", "dst": "gpuproc" },
{ "src": "gpuproc->histogram", "dst": "autoctrl", "type": "weak" },
{ "src": "gpuproc->yuv", "dst": "nvenc" },
{ "src": "nvenc", "dst": "mon" },
{ "src": "mon", "dst": "netstream" }
],
"parametercontrol": [
{ "origin": "autoctrl/wb_callback", "target": "cam" },
{ "origin": "autoctrl/exposure_callback", "target": "cam" }
],
"commandcalls": [
{ "origin": "mon/on_new_consumer", "target": "nvenc", "execute": { "command": "force_idr" } }
]
}
]
}