File size: 5,111 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
  "status": "created",
  "task": "one_augmented_image_per_stylized_class",
  "variant": "combined",
  "sample_name": "ja_13",
  "source_sample_id": "01",
  "seed": 10841136344689226357,
  "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_13/01/ja_13-01.png",
  "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_13/ja_13-01_augmented.png",
  "source_relative": "ja_13/01/ja_13-01.png",
  "output_relative": "ja_13/ja_13-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": 2841.8896,
    "blur_score_cv_denoised": 492.7811,
    "foreground_ratio": 0.178254,
    "mean_gray": 238.863,
    "std_gray": 40.0642
  },
  "metrics_after": {
    "blur_score_cv": 1264.3806,
    "blur_score_cv_denoised": 85.3678,
    "foreground_ratio": 0.218727,
    "mean_gray": 240.5835,
    "std_gray": 30.3998
  },
  "metrics_delta": {
    "blur_score_cv": -1577.509,
    "blur_score_cv_denoised": -407.4133,
    "foreground_ratio": 0.0405,
    "mean_gray": 1.7205,
    "std_gray": -9.6644
  },
  "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": 4,
      "kernel_shape": "rect",
      "warp_mode": "local_bend_points",
      "warp_point_count": 3,
      "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": 470,
          "center_y": 230,
          "radius_px": 35.6504,
          "amplitude_px": 11.9092,
          "direction_deg": 43.6715,
          "twist_ratio": 0.3872
        },
        {
          "center_x": 386,
          "center_y": 1184,
          "radius_px": 32.4945,
          "amplitude_px": 8.3943,
          "direction_deg": 155.3042,
          "twist_ratio": 0.3234
        },
        {
          "center_x": 525,
          "center_y": 153,
          "radius_px": 21.4649,
          "amplitude_px": 10.3759,
          "direction_deg": 248.5616,
          "twist_ratio": 0.4221
        }
      ],
      "warp_center_source": "foreground_mask",
      "warp_local_patch_only": true,
      "warp_blend_mode": "hard_patch_feather_edge",
      "iterations": 1,
      "strength": 0.4739,
      "post_blur_sigma": 0.3383,
      "post_noise_sigma": 1.0752
    },
    "bend_params": {
      "warp_mode": "local_bend_points",
      "warp_point_count": 3,
      "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": 470,
          "center_y": 230,
          "radius_px": 35.6504,
          "amplitude_px": 11.9092,
          "direction_deg": 43.6715,
          "twist_ratio": 0.3872
        },
        {
          "center_x": 386,
          "center_y": 1184,
          "radius_px": 32.4945,
          "amplitude_px": 8.3943,
          "direction_deg": 155.3042,
          "twist_ratio": 0.3234
        },
        {
          "center_x": 525,
          "center_y": 153,
          "radius_px": 21.4649,
          "amplitude_px": 10.3759,
          "direction_deg": 248.5616,
          "twist_ratio": 0.4221
        }
      ],
      "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.8182,
      "post_blur_sigma": 0.1909,
      "post_noise_sigma": 0.9797
    },
    "blur_params": {
      "operations": [
        "contrast_brightness",
        "gaussian_blur",
        "optional_motion_blur",
        "gaussian_noise",
        "salt_pepper",
        "jpeg_roundtrip"
      ],
      "contrast": 1.0574,
      "brightness": 1.9544,
      "gaussian_blur_sigma": 0.3246,
      "motion_applied": true,
      "motion_kernel": 5,
      "motion_angle": -0.2358,
      "noise_sigma": 2.9799,
      "salt_pepper_amount": 0.001801,
      "jpeg_quality": 86
    }
  },
  "diff_metrics": {
    "mean_absdiff": 13.0399,
    "p95_absdiff": 78.0,
    "changed_pixel_ratio_gt8": 0.203005
  }
}