-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini
More file actions
123 lines (114 loc) · 4.62 KB
/
Copy pathconfig.ini
File metadata and controls
123 lines (114 loc) · 4.62 KB
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
# Central configuration for the scanning pipeline.
# Command environment variables override values from this file.
[paths]
# Directory containing untouched RGB and infrared scanner output.
RAW_DIR = RAW
# Directory used for previews and intermediate processing files.
TMP_DIR = TMP
# Directory containing completed, processed images.
DONE_DIR = DONE
[dependencies]
# Python virtual environment created by scripts/setup.sh.
VENV = .venv
# Python interpreter used by the image-processing tools.
PYTHON = .venv/bin/python
# NumPy version constraint installed by scripts/setup.sh.
NUMPY_REQUIREMENT = numpy<2
# OpenCV package and version installed by scripts/setup.sh.
OPENCV_REQUIREMENT = opencv-python==4.11.0.86
# TIFF reader used for memory-mapped, strip-wise multiscan merging.
TIFFFILE_REQUIREMENT = tifffile
[scanner]
# Absolute path to the SANE scanimage executable.
SCANIMAGE = /usr/local/bin/scanimage
# Default scan resolution in DPI; supported values are 3600 and 7200.
RESOLUTION = 3600
# Whether to scan infrared for defect removal: yes or no.
IR_ENABLED = yes
# Default scratch-removal profile: low (conservative) or high (aggressive).
SCRATCH_LEVEL = high
# SANE source used for the visible-light RGB scan.
SOURCE_RGB = Transparency Adapter
# SANE source used for the infrared scan.
SOURCE_IR = Transparency Adapter Infrared
# SANE image mode used for the RGB scan.
MODE_RGB = Color
# SANE image mode used for the infrared scan.
MODE_IR = Color
# Number of captured bits per channel.
DEPTH = 16
# Left edge of the scanned film area in millimetres.
LEFT_MM = 1
# Top edge of the scanned film area in millimetres.
TOP_MM = 0
# Width of the scanned film area in millimetres.
WIDTH_MM = 35
# Height of the scanned film area in millimetres.
HEIGHT_MM = 24
# Whether scanimage enables the scanner's custom-gamma mode: yes or no.
CUSTOM_GAMMA = no
[multiscan]
# Number of RGB captures averaged for each frame; supported range is 1 through 16.
MULTISCAN_COUNT = 2
# Largest allowed alignment shift between RGB captures, in full-resolution pixels.
RGB_ALIGN_MAX_SHIFT = 100
# Minimum phase-correlation response accepted for an RGB capture.
RGB_ALIGN_MIN_RESPONSE = 0.05
# Longest proxy-image edge used while estimating RGB alignment.
RGB_ALIGN_PROXY_SIZE = 2000
# Number of output rows merged at once to limit memory usage.
RGB_MERGE_STRIP_ROWS = 128
[scratch_detection]
# Infrared channel used for detection; OpenCV channel numbering starts at 0.
MASK_CHANNEL = 0
# Conservative threshold; infrared values below it are treated as defects.
MASK_THRESHOLD_LOW = 45000
# Aggressive threshold; infrared values below it are treated as defects.
MASK_THRESHOLD_HIGH = 49000
# Radius in pixels used to enlarge the initial defect mask; 0 disables it.
MASK_DILATE = 0
# Gaussian radius for detecting defects darker than their local surroundings.
# This complements the absolute threshold when a scratch crosses varying tones.
MASK_LOCAL_RADIUS = 4
# Conservative local-contrast threshold; 0 disables local detection for low.
MASK_LOCAL_THRESHOLD_LOW = 0
# Aggressive local-contrast threshold in 16-bit sample values.
MASK_LOCAL_THRESHOLD_HIGH = 2500
# Ignore smaller local-contrast components to avoid expanding infrared noise.
MASK_LOCAL_MIN_AREA = 50
[alignment]
# Whether to estimate RGB/infrared translation automatically: yes or no.
AUTO_OFFSET = yes
# Largest automatic alignment shift allowed on either axis, in pixels.
OFFSET_MAX_SHIFT = 100
# Horizontal mask shift used when automatic alignment is disabled, in pixels.
MASK_OFFSET_X = 0
# Vertical mask shift used when automatic alignment is disabled, in pixels.
MASK_OFFSET_Y = -10
[inpainting]
# Radius in pixels from which OpenCV samples while repairing defects.
INPAINT_RADIUS = 2
# High-profile sampling radius for wider scratches.
INPAINT_RADIUS_HIGH = 3
# Radius used to enlarge the aligned mask immediately before repair, in pixels.
INPAINT_DILATE = 1
# High-profile override. Extra width covers scratch halos missed by the IR core.
INPAINT_DILATE_HIGH = 4
# OpenCV repair algorithm: telea or ns (Navier-Stokes).
INPAINT_METHOD = telea
# Repaired percentage that triggers a warning and a conservative fallback.
REPAIR_WARNING_PERCENT = 5
[output]
# Gamma encoding applied after optional scratch removal.
GAMMA_VALUE = 2.2
# Whether successful processing retains intermediate files: yes or no.
KEEP_TMP = no
[preview]
# Resolution used for quick preview scans, in DPI.
PREVIEW_RESOLUTION = 900
# Exposure adjustment applied to preview JPEGs, in stops.
PREVIEW_EXPOSURE = 0.0
# Percentile mapped to black by preview automatic level adjustment.
BLACK_PERCENTILE = 1.0
# Percentile mapped to white by preview automatic level adjustment.
WHITE_PERCENTILE = 99.0