-
Notifications
You must be signed in to change notification settings - Fork 0
/
lensprofiler.json
101 lines (98 loc) · 3.66 KB
/
lensprofiler.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
{
"IFF": {
"set_terminate": true,
"devices": [
{
"id": "cpu_dev",
"type": "cpu"
},
{
"id": "cuda_dev",
"type": "cuda"
}
]
},
"chains": [
{
"id": "main",
"elements": [
{
"id": "cam",
"type": "xicamera",
"cpu_device_id": "cpu_dev",
"serial_number": "<CHANGEME>",
"image_format": "RAW16",
"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": "gpuproc",
"type": "cuda_processor",
"cpu_device_id": "cpu_dev",
"gpu_device_id": "cuda_dev",
"elements": [
{ "id": "import_from_host", "type": "import_from_host" },
{ "id": "bitdepth", "type": "bitdepth", "bitdepth": 16 },
{ "id": "black_level", "type": "black_level" },
{ "id": "white_balance", "type": "white_balance" },
{ "id": "demosaic", "type": "demosaic", "algorithm": "L7" },
{ "id": "gamma", "type": "gamma8", "linear": 0.018, "power": 0.45 },
{ "id": "export", "type": "export_to_device", //change "export_to_device" to "export_to_host", if OpenCV is built without CUDA support
"output_format": "RGBA8", "output_name": "rgba" },
{ "id": "hist", "type": "histogram", "output_format": "Histogram4Bayer256Int", "output_name": "histogram" },
{ "id": "export_rgb", "type": "export_to_host", "output_format": "RGB8", "output_name": "rgb" }
],
"connections": [
{ "src": "import_from_host", "dst": "bitdepth" },
{ "src": "bitdepth", "dst": "black_level" },
{ "src": "black_level", "dst": "white_balance" },
{ "src": "white_balance", "dst": "demosaic" },
{ "src": "demosaic", "dst": "gamma" },
{ "src": "gamma", "dst": "export" },
{ "src": "black_level", "dst": "hist" },
{ "src": "gamma", "dst": "export_rgb" }
]
},
{
"id": "autoctrl",
"type": "awb_aec",
"cpu_device_id": "cpu_dev",
"autostart": true,
"aec_enabled": true,
"awb_enabled": true,
"max_exposure": 100000
},
{
"id": "writer",
"type": "dng_writer",
"cpu_device_id": "cpu_dev",
"base_directory": "",
"filename_template": "target.tif"
},
{
"id": "exporter",
"type": "frame_exporter",
"device_id": "cuda_dev" //change "cuda_dev" to "cpu_dev", if OpenCV is built without CUDA support
}
],
"connections": [
{ "src": "cam", "dst": "gpuproc" },
{ "src": "gpuproc->histogram", "dst": "autoctrl", "type": "weak" },
{ "src": "gpuproc->rgba", "dst": "exporter" },
{ "src": "gpuproc->rgb", "dst": "writer" }
],
"parametercontrol": [
{ "origin": "autoctrl/wb_callback", "target": "cam" },
{ "origin": "autoctrl/exposure_callback", "target": "cam" }
]
}
]
}