-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
70 lines (54 loc) · 1.21 KB
/
config.yaml
File metadata and controls
70 lines (54 loc) · 1.21 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
# 项目配置文件
# Configuration File for Watermark Protection System
[watermark]
# 可见水印配置
visible:
# 水印碎片数量 (4-8)
num_fragments: 6
# 碎片大小范围(像素)
fragment_size_min: 40
fragment_size_max: 80
# 透明度范围
opacity_min: 0.5
opacity_max: 0.8
[adversarial]
# 对抗性扰动配置
perturbation:
# 扰动强度 (0.03-0.10)
strength: 0.05
# 高斯模糊强度
blur_strength: 1.0
# 是否使用边缘感知增强
edge_aware: true
# 是否使用空间频率优化
spatial_frequency: true
[invisible_watermark]
# 不可见水印配置
method: "hybrid" # 'hybrid', 'dct', 'lsb'
# DCT方法设置
dct:
block_size: 8
strength: 2.0
# LSB方法设置
lsb:
bits_per_pixel: 3 # RGB每像素3位
[processing]
# 处理配置
output:
# 输出格式
format: "png"
# PNG压缩级别
png_compress: 9
# JPEG质量(如果输出JPEG)
jpeg_quality: 95
[performance]
# 性能配置
parallel:
# 是否使用多线程处理
enabled: false
# 线程数
num_threads: 4
cache:
# 是否缓存高频区域检测结果
enabled: true
cache_dir: ".cache"