File size: 4,621 Bytes
a08da7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
  "status": "created",
  "task": "one_augmented_image_per_stylized_class",
  "variant": "combined",
  "sample_name": "de_2",
  "source_sample_id": "01",
  "seed": 16941753034082942070,
  "source_image": "/home/jiangtao/OCR/agents/stylized_output/de_2/01/de_2-01.png",
  "output_image": "/home/jiangtao/OCR/agents/dataset-augment/de_2/de_2-01_augmented.png",
  "source_relative": "de_2/01/de_2-01.png",
  "output_relative": "de_2/de_2-01_augmented.png",
  "source_image_size": {
    "width": 864,
    "height": 1232
  },
  "output_image_size": {
    "width": 864,
    "height": 1232
  },
  "allowed_output_sizes": [
    {
      "width": 1232,
      "height": 864
    },
    {
      "width": 864,
      "height": 1232
    }
  ],
  "resolution_enforced": false,
  "size_before_enforce": {
    "width": 864,
    "height": 1232
  },
  "size_after_enforce": {
    "width": 864,
    "height": 1232
  },
  "target_size": {
    "width": 864,
    "height": 1232
  },
  "metrics_before": {
    "blur_score_cv": 3296.4131,
    "blur_score_cv_denoised": 500.8419,
    "foreground_ratio": 0.178937,
    "mean_gray": 237.3705,
    "std_gray": 37.3164
  },
  "metrics_after": {
    "blur_score_cv": 1556.8568,
    "blur_score_cv_denoised": 137.4939,
    "foreground_ratio": 0.181414,
    "mean_gray": 226.2413,
    "std_gray": 23.651
  },
  "metrics_delta": {
    "blur_score_cv": -1739.5563,
    "blur_score_cv_denoised": -363.348,
    "foreground_ratio": 0.0025,
    "mean_gray": -11.1292,
    "std_gray": -13.6654
  },
  "params": {
    "operations": [
      "combined_dilate_local_bend",
      "combined_erode",
      "combined_blur_noise"
    ],
    "dilate_params": {
      "operations": [
        "foreground_ink_dilation",
        "local_warp",
        "small_optional_blur",
        "small_optional_noise"
      ],
      "kernel_size": 3,
      "kernel_shape": "rect",
      "warp_mode": "local_bend_points",
      "warp_point_count": 2,
      "warp_radius_range_px": [
        12.0,
        36.0
      ],
      "warp_amplitude_range_px": [
        8.0,
        15.0
      ],
      "warp_twist_ratio_range": [
        0.24,
        0.48
      ],
      "warp_points": [
        {
          "center_x": 409,
          "center_y": 308,
          "radius_px": 21.038,
          "amplitude_px": 11.8105,
          "direction_deg": 343.49,
          "twist_ratio": 0.4528
        },
        {
          "center_x": 121,
          "center_y": 461,
          "radius_px": 20.123,
          "amplitude_px": 11.4796,
          "direction_deg": 118.4373,
          "twist_ratio": 0.3201
        }
      ],
      "warp_center_source": "foreground_mask",
      "warp_local_patch_only": true,
      "warp_blend_mode": "hard_patch_feather_edge",
      "iterations": 1,
      "strength": 0.4836,
      "post_blur_sigma": 0.2196,
      "post_noise_sigma": 1.346
    },
    "bend_params": {
      "warp_mode": "local_bend_points",
      "warp_point_count": 2,
      "warp_radius_range_px": [
        12.0,
        36.0
      ],
      "warp_amplitude_range_px": [
        8.0,
        15.0
      ],
      "warp_twist_ratio_range": [
        0.24,
        0.48
      ],
      "warp_points": [
        {
          "center_x": 409,
          "center_y": 308,
          "radius_px": 21.038,
          "amplitude_px": 11.8105,
          "direction_deg": 343.49,
          "twist_ratio": 0.4528
        },
        {
          "center_x": 121,
          "center_y": 461,
          "radius_px": 20.123,
          "amplitude_px": 11.4796,
          "direction_deg": 118.4373,
          "twist_ratio": 0.3201
        }
      ],
      "warp_center_source": "foreground_mask",
      "warp_local_patch_only": true,
      "warp_blend_mode": "hard_patch_feather_edge"
    },
    "erosion_params": {
      "operations": [
        "foreground_ink_erosion",
        "small_optional_blur",
        "small_optional_noise"
      ],
      "kernel_size": 2,
      "kernel_shape": "rect",
      "iterations": 2,
      "strength": 0.9851,
      "post_blur_sigma": 0.0858,
      "post_noise_sigma": 0.0115
    },
    "blur_params": {
      "operations": [
        "contrast_brightness",
        "gaussian_blur",
        "optional_motion_blur",
        "gaussian_noise",
        "salt_pepper",
        "jpeg_roundtrip"
      ],
      "contrast": 0.9572,
      "brightness": -3.3159,
      "gaussian_blur_sigma": 0.307,
      "motion_applied": false,
      "noise_sigma": 4.1191,
      "salt_pepper_amount": 0.001374,
      "jpeg_quality": 55
    }
  },
  "diff_metrics": {
    "mean_absdiff": 22.3021,
    "p95_absdiff": 76.0,
    "changed_pixel_ratio_gt8": 0.947788
  }
}