diff --git a/dataset-augment/Arabic-1/Arabic-1-01_augmented.png b/dataset-augment/Arabic-1/Arabic-1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..cfa2366e85080ed8d28490b680e466b2012553f0 --- /dev/null +++ b/dataset-augment/Arabic-1/Arabic-1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1220d0a86053107798ea02dba60cd57aef4e9ce9ebb51c47edb90b62aa58cffb +size 673973 diff --git a/dataset-augment/Arabic-1/augment_meta.json b/dataset-augment/Arabic-1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b15ef57c642c6747c3224e77a518997070ccbfa2 --- /dev/null +++ b/dataset-augment/Arabic-1/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-1", + "source_sample_id": "01", + "seed": 4207737310129349810, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-1/01/Arabic-1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-1/Arabic-1-01_augmented.png", + "source_relative": "Arabic-1/01/Arabic-1-01.png", + "output_relative": "Arabic-1/Arabic-1-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": 1460.1299, + "blur_score_cv_denoised": 285.003, + "foreground_ratio": 0.348909, + "mean_gray": 237.7933, + "std_gray": 35.5269 + }, + "metrics_after": { + "blur_score_cv": 1341.4315, + "blur_score_cv_denoised": 108.9338, + "foreground_ratio": 0.357571, + "mean_gray": 218.1351, + "std_gray": 29.7178 + }, + "metrics_delta": { + "blur_score_cv": -118.6984, + "blur_score_cv_denoised": -176.0692, + "foreground_ratio": 0.0087, + "mean_gray": -19.6582, + "std_gray": -5.8091 + }, + "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": 799, + "center_y": 915, + "radius_px": 25.8317, + "amplitude_px": 13.0186, + "direction_deg": 189.7618, + "twist_ratio": 0.4773 + }, + { + "center_x": 117, + "center_y": 938, + "radius_px": 24.6966, + "amplitude_px": 11.2826, + "direction_deg": 291.4043, + "twist_ratio": 0.2605 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6553, + "post_blur_sigma": 0.227, + "post_noise_sigma": 0.8509 + }, + "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": 799, + "center_y": 915, + "radius_px": 25.8317, + "amplitude_px": 13.0186, + "direction_deg": 189.7618, + "twist_ratio": 0.4773 + }, + { + "center_x": 117, + "center_y": 938, + "radius_px": 24.6966, + "amplitude_px": 11.2826, + "direction_deg": 291.4043, + "twist_ratio": 0.2605 + } + ], + "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.9544, + "post_blur_sigma": 0.2129, + "post_noise_sigma": 1.0027 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9275, + "brightness": -1.5928, + "gaussian_blur_sigma": 0.2838, + "motion_applied": false, + "noise_sigma": 2.5277, + "salt_pepper_amount": 0.001473, + "jpeg_quality": 61 + } + }, + "diff_metrics": { + "mean_absdiff": 24.1217, + "p95_absdiff": 48.0, + "changed_pixel_ratio_gt8": 0.976935 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-2/Arabic-2-01_augmented.png b/dataset-augment/Arabic-2/Arabic-2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..17cab86a1976eb32567690578398c3410b98938f --- /dev/null +++ b/dataset-augment/Arabic-2/Arabic-2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21a4b662a5da457717931b0c8f15817a089b9aedb5f8b5dd6f01a8e34e00a3dc +size 739295 diff --git a/dataset-augment/Arabic-2/augment_meta.json b/dataset-augment/Arabic-2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..7722e287b53bad47374174fe6ce3e471a703ca53 --- /dev/null +++ b/dataset-augment/Arabic-2/augment_meta.json @@ -0,0 +1,194 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-2", + "source_sample_id": "01", + "seed": 9475552982012264239, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-2/01/Arabic-2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-2/Arabic-2-01_augmented.png", + "source_relative": "Arabic-2/01/Arabic-2-01.png", + "output_relative": "Arabic-2/Arabic-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": 1081.2037, + "blur_score_cv_denoised": 251.3995, + "foreground_ratio": 0.357741, + "mean_gray": 238.5362, + "std_gray": 35.0963 + }, + "metrics_after": { + "blur_score_cv": 968.5899, + "blur_score_cv_denoised": 75.2144, + "foreground_ratio": 0.205201, + "mean_gray": 238.8777, + "std_gray": 33.3977 + }, + "metrics_delta": { + "blur_score_cv": -112.6138, + "blur_score_cv_denoised": -176.1851, + "foreground_ratio": -0.1525, + "mean_gray": 0.3415, + "std_gray": -1.6986 + }, + "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": 757, + "center_y": 1105, + "radius_px": 27.8187, + "amplitude_px": 9.0917, + "direction_deg": 347.0061, + "twist_ratio": 0.421 + }, + { + "center_x": 519, + "center_y": 192, + "radius_px": 33.5733, + "amplitude_px": 10.1972, + "direction_deg": 107.4988, + "twist_ratio": 0.3527 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5088, + "post_blur_sigma": 0.1916, + "post_noise_sigma": 1.3665 + }, + "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": 757, + "center_y": 1105, + "radius_px": 27.8187, + "amplitude_px": 9.0917, + "direction_deg": 347.0061, + "twist_ratio": 0.421 + }, + { + "center_x": 519, + "center_y": 192, + "radius_px": 33.5733, + "amplitude_px": 10.1972, + "direction_deg": 107.4988, + "twist_ratio": 0.3527 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.912, + "post_blur_sigma": 0.144, + "post_noise_sigma": 1.9861 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0757, + "brightness": -7.0165, + "gaussian_blur_sigma": 0.2621, + "motion_applied": true, + "motion_kernel": 5, + "motion_angle": -7.0668, + "noise_sigma": 3.6902, + "salt_pepper_amount": 0.001483, + "jpeg_quality": 76 + } + }, + "diff_metrics": { + "mean_absdiff": 6.8631, + "p95_absdiff": 29.0, + "changed_pixel_ratio_gt8": 0.205226 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-3/Arabic-3-01_augmented.png b/dataset-augment/Arabic-3/Arabic-3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..304321145675003893002f71e4a80f9c6712d768 --- /dev/null +++ b/dataset-augment/Arabic-3/Arabic-3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e77f541f14a581ef61eb9afd26ecbeb20f72bc68fe1b6f551ca33df2cdeb2259 +size 975751 diff --git a/dataset-augment/Arabic-3/augment_meta.json b/dataset-augment/Arabic-3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..bf95adda8d6a4ea24dbd870c96c8fe0f6d156007 --- /dev/null +++ b/dataset-augment/Arabic-3/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-3", + "source_sample_id": "01", + "seed": 16846268553644675330, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-3/01/Arabic-3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-3/Arabic-3-01_augmented.png", + "source_relative": "Arabic-3/01/Arabic-3-01.png", + "output_relative": "Arabic-3/Arabic-3-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": 1559.0336, + "blur_score_cv_denoised": 292.0282, + "foreground_ratio": 0.311376, + "mean_gray": 238.6484, + "std_gray": 35.1336 + }, + "metrics_after": { + "blur_score_cv": 1949.938, + "blur_score_cv_denoised": 121.7275, + "foreground_ratio": 0.19823, + "mean_gray": 241.8988, + "std_gray": 30.4106 + }, + "metrics_delta": { + "blur_score_cv": 390.9044, + "blur_score_cv_denoised": -170.3007, + "foreground_ratio": -0.1131, + "mean_gray": 3.2504, + "std_gray": -4.723 + }, + "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": 245, + "center_y": 1117, + "radius_px": 28.6724, + "amplitude_px": 9.4926, + "direction_deg": 286.1914, + "twist_ratio": 0.4558 + }, + { + "center_x": 496, + "center_y": 723, + "radius_px": 15.0282, + "amplitude_px": 9.3013, + "direction_deg": 174.1564, + "twist_ratio": 0.2571 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6169, + "post_blur_sigma": 0.3394, + "post_noise_sigma": 1.7566 + }, + "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": 245, + "center_y": 1117, + "radius_px": 28.6724, + "amplitude_px": 9.4926, + "direction_deg": 286.1914, + "twist_ratio": 0.4558 + }, + { + "center_x": 496, + "center_y": 723, + "radius_px": 15.0282, + "amplitude_px": 9.3013, + "direction_deg": 174.1564, + "twist_ratio": 0.2571 + } + ], + "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.7583, + "post_blur_sigma": 0.2652, + "post_noise_sigma": 0.2469 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.04, + "brightness": 7.16, + "gaussian_blur_sigma": 0.19, + "motion_applied": false, + "noise_sigma": 3.2558, + "salt_pepper_amount": 0.00238, + "jpeg_quality": 84 + } + }, + "diff_metrics": { + "mean_absdiff": 8.8856, + "p95_absdiff": 36.0, + "changed_pixel_ratio_gt8": 0.307589 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-4/Arabic-4-01_augmented.png b/dataset-augment/Arabic-4/Arabic-4-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..9a8113c96e807accce42a7021aeeb50bf9412efd --- /dev/null +++ b/dataset-augment/Arabic-4/Arabic-4-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fa791d27479d40e891c8e2d1b97d9ab1cc863c5a9de2cb67cf3d563c4359300 +size 1327888 diff --git a/dataset-augment/Arabic-4/augment_meta.json b/dataset-augment/Arabic-4/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c4ea611cb43a494543b5cda14a73db208051b874 --- /dev/null +++ b/dataset-augment/Arabic-4/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-4", + "source_sample_id": "01", + "seed": 6383404116390716445, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-4/01/Arabic-4-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-4/Arabic-4-01_augmented.png", + "source_relative": "Arabic-4/01/Arabic-4-01.png", + "output_relative": "Arabic-4/Arabic-4-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": 1559.0598, + "blur_score_cv_denoised": 278.3762, + "foreground_ratio": 0.464213, + "mean_gray": 231.9515, + "std_gray": 36.1082 + }, + "metrics_after": { + "blur_score_cv": 1943.5135, + "blur_score_cv_denoised": 159.2264, + "foreground_ratio": 0.495756, + "mean_gray": 213.6287, + "std_gray": 35.2974 + }, + "metrics_delta": { + "blur_score_cv": 384.4537, + "blur_score_cv_denoised": -119.1498, + "foreground_ratio": 0.0315, + "mean_gray": -18.3228, + "std_gray": -0.8108 + }, + "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": 1, + "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": 105, + "center_y": 533, + "radius_px": 30.1299, + "amplitude_px": 13.786, + "direction_deg": 344.4757, + "twist_ratio": 0.4643 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5296, + "post_blur_sigma": 0.2076, + "post_noise_sigma": 1.5744 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 105, + "center_y": 533, + "radius_px": 30.1299, + "amplitude_px": 13.786, + "direction_deg": 344.4757, + "twist_ratio": 0.4643 + } + ], + "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": 1, + "strength": 0.9804, + "post_blur_sigma": 0.1768, + "post_noise_sigma": 1.0088 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9654, + "brightness": -7.1276, + "gaussian_blur_sigma": 0.1314, + "motion_applied": false, + "noise_sigma": 5.7804, + "salt_pepper_amount": 0.002445, + "jpeg_quality": 63 + } + }, + "diff_metrics": { + "mean_absdiff": 20.0791, + "p95_absdiff": 41.0, + "changed_pixel_ratio_gt8": 0.956664 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-5/Arabic-5-01_augmented.png b/dataset-augment/Arabic-5/Arabic-5-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..bd5fcd06fa1ddcce46c46ed31ff4e7ce1d4172ed --- /dev/null +++ b/dataset-augment/Arabic-5/Arabic-5-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26f7477e0067db50216fef024a744caf8cab4b545fc11860d27cfb773b6383aa +size 1039368 diff --git a/dataset-augment/Arabic-5/augment_meta.json b/dataset-augment/Arabic-5/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b77b088617f47c7fcecd056d7936f02a95a82a35 --- /dev/null +++ b/dataset-augment/Arabic-5/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-5", + "source_sample_id": "01", + "seed": 5001722706477954992, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-5/01/Arabic-5-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-5/Arabic-5-01_augmented.png", + "source_relative": "Arabic-5/01/Arabic-5-01.png", + "output_relative": "Arabic-5/Arabic-5-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": 1268.3979, + "blur_score_cv_denoised": 245.0686, + "foreground_ratio": 0.524051, + "mean_gray": 226.7299, + "std_gray": 34.2035 + }, + "metrics_after": { + "blur_score_cv": 1520.9366, + "blur_score_cv_denoised": 94.4085, + "foreground_ratio": 0.476124, + "mean_gray": 234.9277, + "std_gray": 28.4805 + }, + "metrics_delta": { + "blur_score_cv": 252.5387, + "blur_score_cv_denoised": -150.6601, + "foreground_ratio": -0.0479, + "mean_gray": 8.1978, + "std_gray": -5.723 + }, + "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": 1, + "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": 22, + "center_y": 567, + "radius_px": 34.1878, + "amplitude_px": 12.653, + "direction_deg": 62.377, + "twist_ratio": 0.2783 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4719, + "post_blur_sigma": 0.1575, + "post_noise_sigma": 0.9031 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 22, + "center_y": 567, + "radius_px": 34.1878, + "amplitude_px": 12.653, + "direction_deg": 62.377, + "twist_ratio": 0.2783 + } + ], + "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": 3, + "kernel_shape": "rect", + "iterations": 1, + "strength": 0.9782, + "post_blur_sigma": 0.2818, + "post_noise_sigma": 0.6384 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0715, + "brightness": -5.6307, + "gaussian_blur_sigma": 0.3221, + "motion_applied": false, + "noise_sigma": 5.1782, + "salt_pepper_amount": 0.001827, + "jpeg_quality": 63 + } + }, + "diff_metrics": { + "mean_absdiff": 9.7552, + "p95_absdiff": 27.0, + "changed_pixel_ratio_gt8": 0.380816 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-6/Arabic-6-01_augmented.png b/dataset-augment/Arabic-6/Arabic-6-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..aeca4354f90c8c7bc9d81194c5fcff57211c09b9 --- /dev/null +++ b/dataset-augment/Arabic-6/Arabic-6-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:561df2b992c059d5928f720dd8d2231f56ae91394fa93429749b08f49c3ce8bf +size 1256090 diff --git a/dataset-augment/Arabic-6/augment_meta.json b/dataset-augment/Arabic-6/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..95622dee1ed905c1e71cda905f7ff38244febbf6 --- /dev/null +++ b/dataset-augment/Arabic-6/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-6", + "source_sample_id": "01", + "seed": 15730533826956585623, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-6/01/Arabic-6-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-6/Arabic-6-01_augmented.png", + "source_relative": "Arabic-6/01/Arabic-6-01.png", + "output_relative": "Arabic-6/Arabic-6-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": 1634.4456, + "blur_score_cv_denoised": 317.7713, + "foreground_ratio": 0.459323, + "mean_gray": 231.3671, + "std_gray": 38.8639 + }, + "metrics_after": { + "blur_score_cv": 1516.9922, + "blur_score_cv_denoised": 149.1993, + "foreground_ratio": 0.485767, + "mean_gray": 215.7477, + "std_gray": 34.5842 + }, + "metrics_delta": { + "blur_score_cv": -117.4534, + "blur_score_cv_denoised": -168.572, + "foreground_ratio": 0.0264, + "mean_gray": -15.6194, + "std_gray": -4.2797 + }, + "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": 191, + "center_y": 775, + "radius_px": 32.5249, + "amplitude_px": 12.2687, + "direction_deg": 83.7011, + "twist_ratio": 0.3477 + }, + { + "center_x": 466, + "center_y": 536, + "radius_px": 30.771, + "amplitude_px": 13.9055, + "direction_deg": 149.8984, + "twist_ratio": 0.3818 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4097, + "post_blur_sigma": 0.3585, + "post_noise_sigma": 0.5878 + }, + "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": 191, + "center_y": 775, + "radius_px": 32.5249, + "amplitude_px": 12.2687, + "direction_deg": 83.7011, + "twist_ratio": 0.3477 + }, + { + "center_x": 466, + "center_y": 536, + "radius_px": 30.771, + "amplitude_px": 13.9055, + "direction_deg": 149.8984, + "twist_ratio": 0.3818 + } + ], + "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": 1, + "strength": 0.9391, + "post_blur_sigma": 0.3635, + "post_noise_sigma": 1.9106 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.947, + "brightness": -1.1339, + "gaussian_blur_sigma": 0.2734, + "motion_applied": false, + "noise_sigma": 4.9135, + "salt_pepper_amount": 0.001847, + "jpeg_quality": 75 + } + }, + "diff_metrics": { + "mean_absdiff": 18.6122, + "p95_absdiff": 40.0, + "changed_pixel_ratio_gt8": 0.950952 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-7/Arabic-7-01_augmented.png b/dataset-augment/Arabic-7/Arabic-7-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..89afd1ae5eba0dbcd2e7a7a899e42ab704cd80e1 --- /dev/null +++ b/dataset-augment/Arabic-7/Arabic-7-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c233f1720a3eff43144ea67e74ceb96b2f1a42df47d141253b8cd3e4ce0486f7 +size 785672 diff --git a/dataset-augment/Arabic-7/augment_meta.json b/dataset-augment/Arabic-7/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..f7dac902eb1e85cf308f0195708ffc67ee5cfe11 --- /dev/null +++ b/dataset-augment/Arabic-7/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-7", + "source_sample_id": "01", + "seed": 7484402625374359792, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-7/01/Arabic-7-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-7/Arabic-7-01_augmented.png", + "source_relative": "Arabic-7/01/Arabic-7-01.png", + "output_relative": "Arabic-7/Arabic-7-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": 1133.5766, + "blur_score_cv_denoised": 236.2521, + "foreground_ratio": 0.42583, + "mean_gray": 234.9609, + "std_gray": 31.7311 + }, + "metrics_after": { + "blur_score_cv": 669.3569, + "blur_score_cv_denoised": 109.0167, + "foreground_ratio": 0.44426, + "mean_gray": 223.0889, + "std_gray": 29.904 + }, + "metrics_delta": { + "blur_score_cv": -464.2197, + "blur_score_cv_denoised": -127.2354, + "foreground_ratio": 0.0184, + "mean_gray": -11.872, + "std_gray": -1.8271 + }, + "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": 474, + "center_y": 430, + "radius_px": 24.8517, + "amplitude_px": 13.0862, + "direction_deg": 162.0997, + "twist_ratio": 0.4186 + }, + { + "center_x": 368, + "center_y": 719, + "radius_px": 12.9681, + "amplitude_px": 9.4698, + "direction_deg": 117.629, + "twist_ratio": 0.4568 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4794, + "post_blur_sigma": 0.1763, + "post_noise_sigma": 1.3029 + }, + "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": 474, + "center_y": 430, + "radius_px": 24.8517, + "amplitude_px": 13.0862, + "direction_deg": 162.0997, + "twist_ratio": 0.4186 + }, + { + "center_x": 368, + "center_y": 719, + "radius_px": 12.9681, + "amplitude_px": 9.4698, + "direction_deg": 117.629, + "twist_ratio": 0.4568 + } + ], + "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": 1, + "strength": 0.806, + "post_blur_sigma": 0.0843, + "post_noise_sigma": 2.0757 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9469, + "brightness": 3.5377, + "gaussian_blur_sigma": 0.2542, + "motion_applied": false, + "noise_sigma": 3.7356, + "salt_pepper_amount": 0.000592, + "jpeg_quality": 55 + } + }, + "diff_metrics": { + "mean_absdiff": 13.4467, + "p95_absdiff": 29.0, + "changed_pixel_ratio_gt8": 0.87216 + } +} \ No newline at end of file diff --git a/dataset-augment/Arabic-8/Arabic-8-01_augmented.png b/dataset-augment/Arabic-8/Arabic-8-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2e29eda162bed2abcdd6938928a59bff826e3d9e --- /dev/null +++ b/dataset-augment/Arabic-8/Arabic-8-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9cd36e13d44f5f92d2c77d1817e02706ac75a6d22aef7bba9090772227bd618 +size 1197379 diff --git a/dataset-augment/Arabic-8/augment_meta.json b/dataset-augment/Arabic-8/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..27f114c62e9df955dd0e8b3f6ba3539619ef63f6 --- /dev/null +++ b/dataset-augment/Arabic-8/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "Arabic-8", + "source_sample_id": "01", + "seed": 8501127594688050940, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/Arabic-8/01/Arabic-8-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/Arabic-8/Arabic-8-01_augmented.png", + "source_relative": "Arabic-8/01/Arabic-8-01.png", + "output_relative": "Arabic-8/Arabic-8-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": 1876.6674, + "blur_score_cv_denoised": 421.3861, + "foreground_ratio": 0.316277, + "mean_gray": 231.7855, + "std_gray": 41.715 + }, + "metrics_after": { + "blur_score_cv": 1764.4453, + "blur_score_cv_denoised": 168.9823, + "foreground_ratio": 0.409999, + "mean_gray": 205.4319, + "std_gray": 42.2361 + }, + "metrics_delta": { + "blur_score_cv": -112.2221, + "blur_score_cv_denoised": -252.4038, + "foreground_ratio": 0.0937, + "mean_gray": -26.3536, + "std_gray": 0.5211 + }, + "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": "ellipse", + "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": 655, + "center_y": 1115, + "radius_px": 23.6727, + "amplitude_px": 13.3248, + "direction_deg": 48.3627, + "twist_ratio": 0.4486 + }, + { + "center_x": 293, + "center_y": 472, + "radius_px": 33.4353, + "amplitude_px": 12.9766, + "direction_deg": 193.8118, + "twist_ratio": 0.286 + }, + { + "center_x": 268, + "center_y": 1151, + "radius_px": 26.4503, + "amplitude_px": 8.7478, + "direction_deg": 299.0787, + "twist_ratio": 0.4544 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4991, + "post_blur_sigma": 0.2667, + "post_noise_sigma": 1.325 + }, + "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": 655, + "center_y": 1115, + "radius_px": 23.6727, + "amplitude_px": 13.3248, + "direction_deg": 48.3627, + "twist_ratio": 0.4486 + }, + { + "center_x": 293, + "center_y": 472, + "radius_px": 33.4353, + "amplitude_px": 12.9766, + "direction_deg": 193.8118, + "twist_ratio": 0.286 + }, + { + "center_x": 268, + "center_y": 1151, + "radius_px": 26.4503, + "amplitude_px": 8.7478, + "direction_deg": 299.0787, + "twist_ratio": 0.4544 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.7673, + "post_blur_sigma": 0.1251, + "post_noise_sigma": 1.0442 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9363, + "brightness": -4.8936, + "gaussian_blur_sigma": 0.3052, + "motion_applied": false, + "noise_sigma": 6.6703, + "salt_pepper_amount": 0.002262, + "jpeg_quality": 58 + } + }, + "diff_metrics": { + "mean_absdiff": 27.9637, + "p95_absdiff": 73.0, + "changed_pixel_ratio_gt8": 0.97268 + } +} \ No newline at end of file diff --git a/dataset-augment/README.md b/dataset-augment/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6d8e93e9c0b3d1c1d32906979752f58055e32389 --- /dev/null +++ b/dataset-augment/README.md @@ -0,0 +1,22 @@ +# Dataset Augment Metadata Mapping + +```text +V.blur_score <- metrics_after.blur_score_cv_denoised +V.blur_score_raw <- metrics_after.blur_score_cv +V.foreground_ratio <- metrics_after.foreground_ratio +V.mean_gray <- metrics_after.mean_gray +V.std_gray <- metrics_after.std_gray + +V.augment.blur_noise <- params.blur_params +V.augment.dilate <- params.dilate_params +V.augment.erode <- params.erosion_params +V.augment.diff_metrics <- diff_metrics +``` + +Notes: + +- `blur_score` -> `blur_score_cv_denoised`, +- `blur_score_raw` keeps the un-denoised CV value for traceability. +- `blur_noise` contains blur, noise, salt/pepper, motion blur, and JPEG settings. +- `dilate` contains foreground ink/table-line thickening and local bend parameters. +- `erode` contains foreground ink/table-line thinning/fading parameters. diff --git a/dataset-augment/de_1/augment_meta.json b/dataset-augment/de_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..d17ee425ebe2f899b8272610ac949eec5df4d728 --- /dev/null +++ b/dataset-augment/de_1/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "de_1", + "source_sample_id": "01", + "seed": 3441823837752969943, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/de_1/01/de_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/de_1/de_1-01_augmented.png", + "source_relative": "de_1/01/de_1-01.png", + "output_relative": "de_1/de_1-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": 2229.6106, + "blur_score_cv_denoised": 299.9238, + "foreground_ratio": 0.231644, + "mean_gray": 233.784, + "std_gray": 33.4987 + }, + "metrics_after": { + "blur_score_cv": 846.5267, + "blur_score_cv_denoised": 127.1353, + "foreground_ratio": 0.262121, + "mean_gray": 235.6907, + "std_gray": 32.5641 + }, + "metrics_delta": { + "blur_score_cv": -1383.0839, + "blur_score_cv_denoised": -172.7885, + "foreground_ratio": 0.0305, + "mean_gray": 1.9067, + "std_gray": -0.9346 + }, + "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": "ellipse", + "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": 90, + "center_y": 647, + "radius_px": 21.8958, + "amplitude_px": 11.4867, + "direction_deg": 161.4291, + "twist_ratio": 0.2822 + }, + { + "center_x": 691, + "center_y": 1042, + "radius_px": 20.3172, + "amplitude_px": 13.8905, + "direction_deg": 105.2591, + "twist_ratio": 0.4095 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6013, + "post_blur_sigma": 0.3486, + "post_noise_sigma": 1.2724 + }, + "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": 90, + "center_y": 647, + "radius_px": 21.8958, + "amplitude_px": 11.4867, + "direction_deg": 161.4291, + "twist_ratio": 0.2822 + }, + { + "center_x": 691, + "center_y": 1042, + "radius_px": 20.3172, + "amplitude_px": 13.8905, + "direction_deg": 105.2591, + "twist_ratio": 0.4095 + } + ], + "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": 1, + "strength": 0.7681, + "post_blur_sigma": 0.4483, + "post_noise_sigma": 0.6056 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9917, + "brightness": 7.0778, + "gaussian_blur_sigma": 0.148, + "motion_applied": false, + "noise_sigma": 3.3074, + "salt_pepper_amount": 0.000721, + "jpeg_quality": 84 + } + }, + "diff_metrics": { + "mean_absdiff": 8.251, + "p95_absdiff": 37.0, + "changed_pixel_ratio_gt8": 0.167481 + } +} \ No newline at end of file diff --git a/dataset-augment/de_1/de_1-01_augmented.png b/dataset-augment/de_1/de_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..691771c36bf5b2baf26eb032d806045bc5fdedfd --- /dev/null +++ b/dataset-augment/de_1/de_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61716e63bb045ec7072e91026133ef970a0f533f5718cc06021cc80e5aafca46 +size 1087849 diff --git a/dataset-augment/de_2/augment_meta.json b/dataset-augment/de_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..fad124b4ff60a4f2731f479e737a51c635da1ec0 --- /dev/null +++ b/dataset-augment/de_2/augment_meta.json @@ -0,0 +1,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 + } +} \ No newline at end of file diff --git a/dataset-augment/de_2/de_2-01_augmented.png b/dataset-augment/de_2/de_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..dd7854ea27a26a423aa9d4eecb013e7aa1b0c82c --- /dev/null +++ b/dataset-augment/de_2/de_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac9288d01198a81ce97d32933b6bdadb6e07756b33a54db9fe037cc42bafe2ad +size 669998 diff --git a/dataset-augment/en_1/augment_meta.json b/dataset-augment/en_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..65b56efa53c0e5808822d0843a624437874d6a61 --- /dev/null +++ b/dataset-augment/en_1/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_1", + "source_sample_id": "01", + "seed": 870013348000822528, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_1/01/en_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_1/en_1-01_augmented.png", + "source_relative": "en_1/01/en_1-01.png", + "output_relative": "en_1/en_1-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": 2925.5693, + "blur_score_cv_denoised": 530.4335, + "foreground_ratio": 0.146235, + "mean_gray": 241.2727, + "std_gray": 40.3896 + }, + "metrics_after": { + "blur_score_cv": 1955.1582, + "blur_score_cv_denoised": 148.7627, + "foreground_ratio": 0.230187, + "mean_gray": 219.0951, + "std_gray": 52.2472 + }, + "metrics_delta": { + "blur_score_cv": -970.4111, + "blur_score_cv_denoised": -381.6708, + "foreground_ratio": 0.084, + "mean_gray": -22.1776, + "std_gray": 11.8576 + }, + "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": 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": 96, + "center_y": 534, + "radius_px": 13.0953, + "amplitude_px": 12.6512, + "direction_deg": 37.0878, + "twist_ratio": 0.3101 + }, + { + "center_x": 566, + "center_y": 366, + "radius_px": 29.8953, + "amplitude_px": 12.8553, + "direction_deg": 329.712, + "twist_ratio": 0.3223 + }, + { + "center_x": 121, + "center_y": 370, + "radius_px": 35.1656, + "amplitude_px": 10.565, + "direction_deg": 0.3366, + "twist_ratio": 0.2742 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 2, + "strength": 0.6056, + "post_blur_sigma": 0.3182, + "post_noise_sigma": 1.2992 + }, + "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": 96, + "center_y": 534, + "radius_px": 13.0953, + "amplitude_px": 12.6512, + "direction_deg": 37.0878, + "twist_ratio": 0.3101 + }, + { + "center_x": 566, + "center_y": 366, + "radius_px": 29.8953, + "amplitude_px": 12.8553, + "direction_deg": 329.712, + "twist_ratio": 0.3223 + }, + { + "center_x": 121, + "center_y": 370, + "radius_px": 35.1656, + "amplitude_px": 10.565, + "direction_deg": 0.3366, + "twist_ratio": 0.2742 + } + ], + "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": 1, + "strength": 0.7943, + "post_blur_sigma": 0.2648, + "post_noise_sigma": 0.9906 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9587, + "brightness": 1.9303, + "gaussian_blur_sigma": 0.2192, + "motion_applied": false, + "noise_sigma": 6.8102, + "salt_pepper_amount": 0.00226, + "jpeg_quality": 71 + } + }, + "diff_metrics": { + "mean_absdiff": 23.8076, + "p95_absdiff": 114.0, + "changed_pixel_ratio_gt8": 0.760255 + } +} \ No newline at end of file diff --git a/dataset-augment/en_1/en_1-01_augmented.png b/dataset-augment/en_1/en_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..103b1e9b905e2e6bd29b69e7b0295bb2b7a03c7d --- /dev/null +++ b/dataset-augment/en_1/en_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55bdf0a62a07b0b8edac7a4e7d5504a510b33e7f6cad39ac3145d7190efc4e4e +size 1033354 diff --git a/dataset-augment/en_10/augment_meta.json b/dataset-augment/en_10/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..206f7566350d6ea90c84831e80606008fe84905d --- /dev/null +++ b/dataset-augment/en_10/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_10", + "source_sample_id": "01", + "seed": 3359335467408886625, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_10/01/en_10-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_10/en_10-01_augmented.png", + "source_relative": "en_10/01/en_10-01.png", + "output_relative": "en_10/en_10-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": 3529.1695, + "blur_score_cv_denoised": 566.2074, + "foreground_ratio": 0.380163, + "mean_gray": 212.0998, + "std_gray": 77.8913 + }, + "metrics_after": { + "blur_score_cv": 2091.4284, + "blur_score_cv_denoised": 263.4723, + "foreground_ratio": 0.404486, + "mean_gray": 211.3528, + "std_gray": 73.062 + }, + "metrics_delta": { + "blur_score_cv": -1437.7411, + "blur_score_cv_denoised": -302.7351, + "foreground_ratio": 0.0243, + "mean_gray": -0.747, + "std_gray": -4.8293 + }, + "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": 38, + "center_y": 817, + "radius_px": 24.2533, + "amplitude_px": 12.3471, + "direction_deg": 54.744, + "twist_ratio": 0.2646 + }, + { + "center_x": 50, + "center_y": 1092, + "radius_px": 22.1239, + "amplitude_px": 14.1126, + "direction_deg": 304.2944, + "twist_ratio": 0.4282 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6372, + "post_blur_sigma": 0.2547, + "post_noise_sigma": 1.209 + }, + "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": 38, + "center_y": 817, + "radius_px": 24.2533, + "amplitude_px": 12.3471, + "direction_deg": 54.744, + "twist_ratio": 0.2646 + }, + { + "center_x": 50, + "center_y": 1092, + "radius_px": 22.1239, + "amplitude_px": 14.1126, + "direction_deg": 304.2944, + "twist_ratio": 0.4282 + } + ], + "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": 3, + "kernel_shape": "rect", + "iterations": 1, + "strength": 0.8622, + "post_blur_sigma": 0.2777, + "post_noise_sigma": 0.7274 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9857, + "brightness": 3.8938, + "gaussian_blur_sigma": 0.3114, + "motion_applied": false, + "noise_sigma": 6.1584, + "salt_pepper_amount": 0.001765, + "jpeg_quality": 78 + } + }, + "diff_metrics": { + "mean_absdiff": 9.0293, + "p95_absdiff": 37.0, + "changed_pixel_ratio_gt8": 0.258516 + } +} \ No newline at end of file diff --git a/dataset-augment/en_10/en_10-01_augmented.png b/dataset-augment/en_10/en_10-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..c5595370d7461d301269c2491e76a282dc52934e --- /dev/null +++ b/dataset-augment/en_10/en_10-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:117017c07590f9a6b0df4d0fcda2eb61c51d07363ba8607a68893433d360d451 +size 1057844 diff --git a/dataset-augment/en_11/augment_meta.json b/dataset-augment/en_11/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..de937a35940e54a63a75d9343d6916cbed14582c --- /dev/null +++ b/dataset-augment/en_11/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_11", + "source_sample_id": "01", + "seed": 12943855080387790809, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_11/01/en_11-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_11/en_11-01_augmented.png", + "source_relative": "en_11/01/en_11-01.png", + "output_relative": "en_11/en_11-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": 2412.3177, + "blur_score_cv_denoised": 347.5943, + "foreground_ratio": 0.204538, + "mean_gray": 242.1514, + "std_gray": 31.4473 + }, + "metrics_after": { + "blur_score_cv": 1545.0029, + "blur_score_cv_denoised": 229.2929, + "foreground_ratio": 0.232157, + "mean_gray": 238.544, + "std_gray": 31.6844 + }, + "metrics_delta": { + "blur_score_cv": -867.3148, + "blur_score_cv_denoised": -118.3014, + "foreground_ratio": 0.0276, + "mean_gray": -3.6074, + "std_gray": 0.2371 + }, + "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": "ellipse", + "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": 734, + "center_y": 459, + "radius_px": 12.5104, + "amplitude_px": 13.6773, + "direction_deg": 148.6325, + "twist_ratio": 0.3318 + }, + { + "center_x": 446, + "center_y": 388, + "radius_px": 16.701, + "amplitude_px": 14.1293, + "direction_deg": 34.7529, + "twist_ratio": 0.4135 + }, + { + "center_x": 268, + "center_y": 488, + "radius_px": 25.1148, + "amplitude_px": 12.3682, + "direction_deg": 258.9723, + "twist_ratio": 0.4368 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6666, + "post_blur_sigma": 0.2249, + "post_noise_sigma": 1.6937 + }, + "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": 734, + "center_y": 459, + "radius_px": 12.5104, + "amplitude_px": 13.6773, + "direction_deg": 148.6325, + "twist_ratio": 0.3318 + }, + { + "center_x": 446, + "center_y": 388, + "radius_px": 16.701, + "amplitude_px": 14.1293, + "direction_deg": 34.7529, + "twist_ratio": 0.4135 + }, + { + "center_x": 268, + "center_y": 488, + "radius_px": 25.1148, + "amplitude_px": 12.3682, + "direction_deg": 258.9723, + "twist_ratio": 0.4368 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.8507, + "post_blur_sigma": 0.0038, + "post_noise_sigma": 0.7502 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0498, + "brightness": -3.3476, + "gaussian_blur_sigma": 0.1991, + "motion_applied": false, + "noise_sigma": 7.8611, + "salt_pepper_amount": 0.000932, + "jpeg_quality": 65 + } + }, + "diff_metrics": { + "mean_absdiff": 7.4762, + "p95_absdiff": 36.0, + "changed_pixel_ratio_gt8": 0.181347 + } +} \ No newline at end of file diff --git a/dataset-augment/en_11/en_11-01_augmented.png b/dataset-augment/en_11/en_11-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..43b7993baa7930ff5c6826342ed3fb3fec0649f1 --- /dev/null +++ b/dataset-augment/en_11/en_11-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1ef63ec1e89ce9c8cc3573bc192f6f31fe7bbf7cba3fa80dced4867a9a28934 +size 984111 diff --git a/dataset-augment/en_12/augment_meta.json b/dataset-augment/en_12/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..7d391b46d0744b668792620e413f7d1eeee309e4 --- /dev/null +++ b/dataset-augment/en_12/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_12", + "source_sample_id": "01", + "seed": 12331218165776703984, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_12/01/en_12-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_12/en_12-01_augmented.png", + "source_relative": "en_12/01/en_12-01.png", + "output_relative": "en_12/en_12-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": 2506.0322, + "blur_score_cv_denoised": 380.8277, + "foreground_ratio": 0.208214, + "mean_gray": 241.734, + "std_gray": 33.0528 + }, + "metrics_after": { + "blur_score_cv": 1404.5601, + "blur_score_cv_denoised": 116.3618, + "foreground_ratio": 0.226857, + "mean_gray": 240.6363, + "std_gray": 27.4554 + }, + "metrics_delta": { + "blur_score_cv": -1101.4721, + "blur_score_cv_denoised": -264.4659, + "foreground_ratio": 0.0186, + "mean_gray": -1.0977, + "std_gray": -5.5974 + }, + "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": 724, + "center_y": 817, + "radius_px": 24.8206, + "amplitude_px": 10.0745, + "direction_deg": 292.257, + "twist_ratio": 0.4261 + }, + { + "center_x": 402, + "center_y": 583, + "radius_px": 22.1994, + "amplitude_px": 9.8579, + "direction_deg": 317.6182, + "twist_ratio": 0.4747 + }, + { + "center_x": 789, + "center_y": 705, + "radius_px": 27.2089, + "amplitude_px": 12.9448, + "direction_deg": 258.8397, + "twist_ratio": 0.3897 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5507, + "post_blur_sigma": 0.1866, + "post_noise_sigma": 0.9328 + }, + "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": 724, + "center_y": 817, + "radius_px": 24.8206, + "amplitude_px": 10.0745, + "direction_deg": 292.257, + "twist_ratio": 0.4261 + }, + { + "center_x": 402, + "center_y": 583, + "radius_px": 22.1994, + "amplitude_px": 9.8579, + "direction_deg": 317.6182, + "twist_ratio": 0.4747 + }, + { + "center_x": 789, + "center_y": 705, + "radius_px": 27.2089, + "amplitude_px": 12.9448, + "direction_deg": 258.8397, + "twist_ratio": 0.3897 + } + ], + "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": 3, + "kernel_shape": "rect", + "iterations": 1, + "strength": 0.8217, + "post_blur_sigma": 0.4075, + "post_noise_sigma": 2.0102 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0657, + "brightness": 4.178, + "gaussian_blur_sigma": 0.3149, + "motion_applied": false, + "noise_sigma": 6.579, + "salt_pepper_amount": 0.001583, + "jpeg_quality": 88 + } + }, + "diff_metrics": { + "mean_absdiff": 9.0128, + "p95_absdiff": 48.0, + "changed_pixel_ratio_gt8": 0.19519 + } +} \ No newline at end of file diff --git a/dataset-augment/en_12/en_12-01_augmented.png b/dataset-augment/en_12/en_12-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..68a17dd968678adb98f4d15ea729258642c23ff0 --- /dev/null +++ b/dataset-augment/en_12/en_12-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8aa83b58f898910a548353a19d9025fb9e7ffb5e49037c1a2c98e59cba404017 +size 1317515 diff --git a/dataset-augment/en_13/augment_meta.json b/dataset-augment/en_13/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..64b0f1a3cd668ea0d8e1085d9680b94ddad7d365 --- /dev/null +++ b/dataset-augment/en_13/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_13", + "source_sample_id": "01", + "seed": 2698857593063572943, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_13/01/en_13-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_13/en_13-01_augmented.png", + "source_relative": "en_13/01/en_13-01.png", + "output_relative": "en_13/en_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": 6509.8764, + "blur_score_cv_denoised": 978.4987, + "foreground_ratio": 0.299376, + "mean_gray": 229.5034, + "std_gray": 52.7745 + }, + "metrics_after": { + "blur_score_cv": 3209.3632, + "blur_score_cv_denoised": 538.5411, + "foreground_ratio": 0.36281, + "mean_gray": 219.6414, + "std_gray": 52.3441 + }, + "metrics_delta": { + "blur_score_cv": -3300.5132, + "blur_score_cv_denoised": -439.9576, + "foreground_ratio": 0.0634, + "mean_gray": -9.862, + "std_gray": -0.4304 + }, + "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": "ellipse", + "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": 127, + "center_y": 258, + "radius_px": 20.5292, + "amplitude_px": 12.3874, + "direction_deg": 170.3879, + "twist_ratio": 0.398 + }, + { + "center_x": 374, + "center_y": 480, + "radius_px": 29.0001, + "amplitude_px": 14.8397, + "direction_deg": 284.7849, + "twist_ratio": 0.4751 + }, + { + "center_x": 313, + "center_y": 160, + "radius_px": 22.6215, + "amplitude_px": 8.6119, + "direction_deg": 100.0224, + "twist_ratio": 0.3756 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6529, + "post_blur_sigma": 0.1262, + "post_noise_sigma": 0.6543 + }, + "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": 127, + "center_y": 258, + "radius_px": 20.5292, + "amplitude_px": 12.3874, + "direction_deg": 170.3879, + "twist_ratio": 0.398 + }, + { + "center_x": 374, + "center_y": 480, + "radius_px": 29.0001, + "amplitude_px": 14.8397, + "direction_deg": 284.7849, + "twist_ratio": 0.4751 + }, + { + "center_x": 313, + "center_y": 160, + "radius_px": 22.6215, + "amplitude_px": 8.6119, + "direction_deg": 100.0224, + "twist_ratio": 0.3756 + } + ], + "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": 1, + "strength": 0.8174, + "post_blur_sigma": 0.3424, + "post_noise_sigma": 0.8545 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0007, + "brightness": -2.8389, + "gaussian_blur_sigma": 0.3533, + "motion_applied": false, + "noise_sigma": 7.736, + "salt_pepper_amount": 0.002137, + "jpeg_quality": 80 + } + }, + "diff_metrics": { + "mean_absdiff": 16.4803, + "p95_absdiff": 76.0, + "changed_pixel_ratio_gt8": 0.402573 + } +} \ No newline at end of file diff --git a/dataset-augment/en_13/en_13-01_augmented.png b/dataset-augment/en_13/en_13-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..f2537fa969c452126c2df537777cb5e36a76ec23 --- /dev/null +++ b/dataset-augment/en_13/en_13-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f647f81aa7705cd65c4547f4512eb3ffafa7afc92c24251ce30b34a6a05d020 +size 1533501 diff --git a/dataset-augment/en_14/augment_meta.json b/dataset-augment/en_14/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..3f7265792b3458fd9d302b551b6d30f5f48ae0ec --- /dev/null +++ b/dataset-augment/en_14/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_14", + "source_sample_id": "01", + "seed": 16485598550733080085, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_14/01/en_14-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_14/en_14-01_augmented.png", + "source_relative": "en_14/01/en_14-01.png", + "output_relative": "en_14/en_14-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 4381.5579, + "blur_score_cv_denoised": 849.9487, + "foreground_ratio": 0.243829, + "mean_gray": 233.8314, + "std_gray": 50.1794 + }, + "metrics_after": { + "blur_score_cv": 2834.0614, + "blur_score_cv_denoised": 356.996, + "foreground_ratio": 0.278288, + "mean_gray": 232.3693, + "std_gray": 40.5331 + }, + "metrics_delta": { + "blur_score_cv": -1547.4965, + "blur_score_cv_denoised": -492.9527, + "foreground_ratio": 0.0345, + "mean_gray": -1.4621, + "std_gray": -9.6463 + }, + "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": 1, + "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": 580, + "center_y": 468, + "radius_px": 31.4402, + "amplitude_px": 13.3945, + "direction_deg": 23.3623, + "twist_ratio": 0.3411 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5515, + "post_blur_sigma": 0.3205, + "post_noise_sigma": 1.5374 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 580, + "center_y": 468, + "radius_px": 31.4402, + "amplitude_px": 13.3945, + "direction_deg": 23.3623, + "twist_ratio": 0.3411 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.9213, + "post_blur_sigma": 0.3056, + "post_noise_sigma": 0.732 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9886, + "brightness": 3.5001, + "gaussian_blur_sigma": 0.2096, + "motion_applied": false, + "noise_sigma": 7.3613, + "salt_pepper_amount": 0.002394, + "jpeg_quality": 58 + } + }, + "diff_metrics": { + "mean_absdiff": 10.5446, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.24343 + } +} \ No newline at end of file diff --git a/dataset-augment/en_14/en_14-01_augmented.png b/dataset-augment/en_14/en_14-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..fc6c69f98383a48583330a6c274a20f25d9b1723 --- /dev/null +++ b/dataset-augment/en_14/en_14-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2008f8f377f895223bf57e8ed9664cf7c51d3cc6314b57e3aa44a6308e2e46 +size 903228 diff --git a/dataset-augment/en_15/augment_meta.json b/dataset-augment/en_15/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..079b063ddf91be8f7ac259d69cc458973df2cd74 --- /dev/null +++ b/dataset-augment/en_15/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_15", + "source_sample_id": "01", + "seed": 2530141177715876759, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_15/01/en_15-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_15/en_15-01_augmented.png", + "source_relative": "en_15/01/en_15-01.png", + "output_relative": "en_15/en_15-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": 2385.4031, + "blur_score_cv_denoised": 371.4946, + "foreground_ratio": 0.174138, + "mean_gray": 239.1725, + "std_gray": 35.9782 + }, + "metrics_after": { + "blur_score_cv": 1445.7017, + "blur_score_cv_denoised": 227.8012, + "foreground_ratio": 0.185754, + "mean_gray": 240.4588, + "std_gray": 35.6785 + }, + "metrics_delta": { + "blur_score_cv": -939.7014, + "blur_score_cv_denoised": -143.6934, + "foreground_ratio": 0.0116, + "mean_gray": 1.2863, + "std_gray": -0.2997 + }, + "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": "ellipse", + "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": 392, + "center_y": 588, + "radius_px": 23.7662, + "amplitude_px": 11.6507, + "direction_deg": 347.9318, + "twist_ratio": 0.4269 + }, + { + "center_x": 370, + "center_y": 479, + "radius_px": 23.2075, + "amplitude_px": 14.5657, + "direction_deg": 154.377, + "twist_ratio": 0.3805 + }, + { + "center_x": 473, + "center_y": 317, + "radius_px": 33.8343, + "amplitude_px": 9.0081, + "direction_deg": 210.9945, + "twist_ratio": 0.3011 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6061, + "post_blur_sigma": 0.1917, + "post_noise_sigma": 1.7524 + }, + "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": 392, + "center_y": 588, + "radius_px": 23.7662, + "amplitude_px": 11.6507, + "direction_deg": 347.9318, + "twist_ratio": 0.4269 + }, + { + "center_x": 370, + "center_y": 479, + "radius_px": 23.2075, + "amplitude_px": 14.5657, + "direction_deg": 154.377, + "twist_ratio": 0.3805 + }, + { + "center_x": 473, + "center_y": 317, + "radius_px": 33.8343, + "amplitude_px": 9.0081, + "direction_deg": 210.9945, + "twist_ratio": 0.3011 + } + ], + "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": 1, + "strength": 0.8513, + "post_blur_sigma": 0.0542, + "post_noise_sigma": 0.1879 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0661, + "brightness": -5.9106, + "gaussian_blur_sigma": 0.2051, + "motion_applied": false, + "noise_sigma": 4.8485, + "salt_pepper_amount": 0.000956, + "jpeg_quality": 65 + } + }, + "diff_metrics": { + "mean_absdiff": 7.7818, + "p95_absdiff": 37.0, + "changed_pixel_ratio_gt8": 0.148773 + } +} \ No newline at end of file diff --git a/dataset-augment/en_15/en_15-01_augmented.png b/dataset-augment/en_15/en_15-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..dc163651efaa7b5e2b142325e42a8fe5f19ab077 --- /dev/null +++ b/dataset-augment/en_15/en_15-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b35bfb5c336a47ea9155ecb11022037312e33742021d1b92262a909c5bfd28ba +size 550376 diff --git a/dataset-augment/en_16/augment_meta.json b/dataset-augment/en_16/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..6b274cf7205a2769c111372f4976832dfb23a142 --- /dev/null +++ b/dataset-augment/en_16/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_16", + "source_sample_id": "01", + "seed": 13038749385831684025, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_16/01/en_16-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_16/en_16-01_augmented.png", + "source_relative": "en_16/01/en_16-01.png", + "output_relative": "en_16/en_16-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 2725.7839, + "blur_score_cv_denoised": 553.5173, + "foreground_ratio": 0.218379, + "mean_gray": 235.6914, + "std_gray": 47.0868 + }, + "metrics_after": { + "blur_score_cv": 2120.6796, + "blur_score_cv_denoised": 314.6767, + "foreground_ratio": 0.223416, + "mean_gray": 236.1358, + "std_gray": 43.8741 + }, + "metrics_delta": { + "blur_score_cv": -605.1043, + "blur_score_cv_denoised": -238.8406, + "foreground_ratio": 0.005, + "mean_gray": 0.4444, + "std_gray": -3.2127 + }, + "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": "ellipse", + "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": 748, + "center_y": 518, + "radius_px": 35.0373, + "amplitude_px": 14.2179, + "direction_deg": 19.6938, + "twist_ratio": 0.265 + }, + { + "center_x": 326, + "center_y": 258, + "radius_px": 12.945, + "amplitude_px": 8.2323, + "direction_deg": 356.0841, + "twist_ratio": 0.4068 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5584, + "post_blur_sigma": 0.3463, + "post_noise_sigma": 1.7403 + }, + "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": 748, + "center_y": 518, + "radius_px": 35.0373, + "amplitude_px": 14.2179, + "direction_deg": 19.6938, + "twist_ratio": 0.265 + }, + { + "center_x": 326, + "center_y": 258, + "radius_px": 12.945, + "amplitude_px": 8.2323, + "direction_deg": 356.0841, + "twist_ratio": 0.4068 + } + ], + "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": 1, + "strength": 0.9085, + "post_blur_sigma": 0.2409, + "post_noise_sigma": 1.4009 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0316, + "brightness": 3.2813, + "gaussian_blur_sigma": 0.154, + "motion_applied": false, + "noise_sigma": 3.6101, + "salt_pepper_amount": 0.001802, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 7.9304, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.178902 + } +} \ No newline at end of file diff --git a/dataset-augment/en_16/en_16-01_augmented.png b/dataset-augment/en_16/en_16-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..3d64c74aee8ec069b7fd4689e1ce7e5569543c76 --- /dev/null +++ b/dataset-augment/en_16/en_16-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2927e6c9d3d53eee3693089c6c5accb8a5f71eafc3876445d96ed472eb623ce +size 648975 diff --git a/dataset-augment/en_17/augment_meta.json b/dataset-augment/en_17/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..f68d65255425fae02d650a71c19a0bd32aa17126 --- /dev/null +++ b/dataset-augment/en_17/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_17", + "source_sample_id": "01", + "seed": 11824496573951402384, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_17/01/en_17-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_17/en_17-01_augmented.png", + "source_relative": "en_17/01/en_17-01.png", + "output_relative": "en_17/en_17-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": 3700.5391, + "blur_score_cv_denoised": 621.1373, + "foreground_ratio": 0.173243, + "mean_gray": 237.9238, + "std_gray": 43.7593 + }, + "metrics_after": { + "blur_score_cv": 1838.6052, + "blur_score_cv_denoised": 272.6719, + "foreground_ratio": 0.205087, + "mean_gray": 235.2961, + "std_gray": 38.3665 + }, + "metrics_delta": { + "blur_score_cv": -1861.9339, + "blur_score_cv_denoised": -348.4654, + "foreground_ratio": 0.0318, + "mean_gray": -2.6277, + "std_gray": -5.3928 + }, + "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": "ellipse", + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 547, + "center_y": 390, + "radius_px": 32.1953, + "amplitude_px": 9.3055, + "direction_deg": 222.0105, + "twist_ratio": 0.2501 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4864, + "post_blur_sigma": 0.1403, + "post_noise_sigma": 1.712 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 547, + "center_y": 390, + "radius_px": 32.1953, + "amplitude_px": 9.3055, + "direction_deg": 222.0105, + "twist_ratio": 0.2501 + } + ], + "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": 1, + "strength": 0.8022, + "post_blur_sigma": 0.3999, + "post_noise_sigma": 0.558 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.972, + "brightness": 6.8435, + "gaussian_blur_sigma": 0.1831, + "motion_applied": false, + "noise_sigma": 4.0601, + "salt_pepper_amount": 0.001486, + "jpeg_quality": 55 + } + }, + "diff_metrics": { + "mean_absdiff": 9.0546, + "p95_absdiff": 54.0, + "changed_pixel_ratio_gt8": 0.181892 + } +} \ No newline at end of file diff --git a/dataset-augment/en_17/en_17-01_augmented.png b/dataset-augment/en_17/en_17-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..3ae961275ec436c66fac4b052091ffd509741c4a --- /dev/null +++ b/dataset-augment/en_17/en_17-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68144cd02d768a177467f746d9117cf5317bd51a0d8d867ff2d25434e058caa5 +size 615495 diff --git a/dataset-augment/en_18/augment_meta.json b/dataset-augment/en_18/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b3e7a47988461b80da1ad4076e6f91d482027367 --- /dev/null +++ b/dataset-augment/en_18/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_18", + "source_sample_id": "01", + "seed": 16294388975992007193, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_18/01/en_18-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_18/en_18-01_augmented.png", + "source_relative": "en_18/01/en_18-01.png", + "output_relative": "en_18/en_18-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": 3108.7493, + "blur_score_cv_denoised": 928.0943, + "foreground_ratio": 0.395109, + "mean_gray": 211.5274, + "std_gray": 65.389 + }, + "metrics_after": { + "blur_score_cv": 2637.4762, + "blur_score_cv_denoised": 603.9018, + "foreground_ratio": 0.414333, + "mean_gray": 213.4984, + "std_gray": 63.4679 + }, + "metrics_delta": { + "blur_score_cv": -471.2731, + "blur_score_cv_denoised": -324.1925, + "foreground_ratio": 0.0192, + "mean_gray": 1.971, + "std_gray": -1.9211 + }, + "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": 1, + "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": 509, + "center_y": 598, + "radius_px": 32.4963, + "amplitude_px": 13.2464, + "direction_deg": 189.9336, + "twist_ratio": 0.2416 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.3952, + "post_blur_sigma": 0.1488, + "post_noise_sigma": 1.5002 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 509, + "center_y": 598, + "radius_px": 32.4963, + "amplitude_px": 13.2464, + "direction_deg": 189.9336, + "twist_ratio": 0.2416 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.7858, + "post_blur_sigma": 0.1118, + "post_noise_sigma": 1.525 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0519, + "brightness": -0.7362, + "gaussian_blur_sigma": 0.2358, + "motion_applied": false, + "noise_sigma": 4.8091, + "salt_pepper_amount": 0.002122, + "jpeg_quality": 56 + } + }, + "diff_metrics": { + "mean_absdiff": 12.5099, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.314227 + } +} \ No newline at end of file diff --git a/dataset-augment/en_18/en_18-01_augmented.png b/dataset-augment/en_18/en_18-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..d23b094bd7b0009e65a1352386150ee98484fb73 --- /dev/null +++ b/dataset-augment/en_18/en_18-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9640a67d960a3185df50ba2f9d00b32c28c8cd4b90577006feb90bdc3957c42a +size 814503 diff --git a/dataset-augment/en_19/augment_meta.json b/dataset-augment/en_19/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..35e022f7ef39e63aaa9ac898a16adc7098825d42 --- /dev/null +++ b/dataset-augment/en_19/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_19", + "source_sample_id": "01", + "seed": 16044301361829478000, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_19/01/en_19-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_19/en_19-01_augmented.png", + "source_relative": "en_19/01/en_19-01.png", + "output_relative": "en_19/en_19-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 2820.6897, + "blur_score_cv_denoised": 651.8951, + "foreground_ratio": 0.233068, + "mean_gray": 226.2861, + "std_gray": 50.9014 + }, + "metrics_after": { + "blur_score_cv": 2155.9557, + "blur_score_cv_denoised": 341.5394, + "foreground_ratio": 0.278444, + "mean_gray": 202.4214, + "std_gray": 50.3104 + }, + "metrics_delta": { + "blur_score_cv": -664.734, + "blur_score_cv_denoised": -310.3557, + "foreground_ratio": 0.0454, + "mean_gray": -23.8647, + "std_gray": -0.591 + }, + "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": 1, + "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": 1012, + "center_y": 605, + "radius_px": 30.1638, + "amplitude_px": 8.7407, + "direction_deg": 260.7465, + "twist_ratio": 0.3432 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6725, + "post_blur_sigma": 0.3687, + "post_noise_sigma": 0.9362 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 1012, + "center_y": 605, + "radius_px": 30.1638, + "amplitude_px": 8.7407, + "direction_deg": 260.7465, + "twist_ratio": 0.3432 + } + ], + "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": 1, + "strength": 0.9766, + "post_blur_sigma": 0.2196, + "post_noise_sigma": 1.4313 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9294, + "brightness": -1.6868, + "gaussian_blur_sigma": 0.2726, + "motion_applied": false, + "noise_sigma": 7.8868, + "salt_pepper_amount": 0.001863, + "jpeg_quality": 71 + } + }, + "diff_metrics": { + "mean_absdiff": 26.2566, + "p95_absdiff": 75.0, + "changed_pixel_ratio_gt8": 0.953531 + } +} \ No newline at end of file diff --git a/dataset-augment/en_19/en_19-01_augmented.png b/dataset-augment/en_19/en_19-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..341727f8b91423c246bffd5ff373f4bca5634e79 --- /dev/null +++ b/dataset-augment/en_19/en_19-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e32f2873effeb840fe5956df51f4bf6c7fdf4e2e5982196c8d4ef48844c4b2aa +size 1274720 diff --git a/dataset-augment/en_2/augment_meta.json b/dataset-augment/en_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ba9cb90fde93147a60e3ab379988d87e29b689a5 --- /dev/null +++ b/dataset-augment/en_2/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_2", + "source_sample_id": "01", + "seed": 12419973808037910078, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_2/01/en_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_2/en_2-01_augmented.png", + "source_relative": "en_2/01/en_2-01.png", + "output_relative": "en_2/en_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": 1924.2639, + "blur_score_cv_denoised": 486.9662, + "foreground_ratio": 0.188109, + "mean_gray": 223.1061, + "std_gray": 45.5903 + }, + "metrics_after": { + "blur_score_cv": 1418.1712, + "blur_score_cv_denoised": 235.8241, + "foreground_ratio": 0.214987, + "mean_gray": 210.9767, + "std_gray": 40.9314 + }, + "metrics_delta": { + "blur_score_cv": -506.0927, + "blur_score_cv_denoised": -251.1421, + "foreground_ratio": 0.0269, + "mean_gray": -12.1294, + "std_gray": -4.6589 + }, + "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": 745, + "center_y": 260, + "radius_px": 25.1063, + "amplitude_px": 12.6649, + "direction_deg": 281.2383, + "twist_ratio": 0.3785 + }, + { + "center_x": 786, + "center_y": 544, + "radius_px": 19.2024, + "amplitude_px": 8.0817, + "direction_deg": 306.945, + "twist_ratio": 0.4428 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4407, + "post_blur_sigma": 0.2494, + "post_noise_sigma": 1.6128 + }, + "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": 745, + "center_y": 260, + "radius_px": 25.1063, + "amplitude_px": 12.6649, + "direction_deg": 281.2383, + "twist_ratio": 0.3785 + }, + { + "center_x": 786, + "center_y": 544, + "radius_px": 19.2024, + "amplitude_px": 8.0817, + "direction_deg": 306.945, + "twist_ratio": 0.4428 + } + ], + "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": 1, + "strength": 0.8958, + "post_blur_sigma": 0.0791, + "post_noise_sigma": 1.2756 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9441, + "brightness": 2.7153, + "gaussian_blur_sigma": 0.2486, + "motion_applied": false, + "noise_sigma": 2.8952, + "salt_pepper_amount": 0.001323, + "jpeg_quality": 67 + } + }, + "diff_metrics": { + "mean_absdiff": 16.3566, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.905862 + } +} \ No newline at end of file diff --git a/dataset-augment/en_2/en_2-01_augmented.png b/dataset-augment/en_2/en_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..efa5b80f9ae02f71d678074e7eef643b93daa98c --- /dev/null +++ b/dataset-augment/en_2/en_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:750d7d015fa4f4b9c4fd95e9778f9f9ca5a211197f49b95c698c7fadbe59b5a7 +size 793056 diff --git a/dataset-augment/en_3/augment_meta.json b/dataset-augment/en_3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..2338bfa7276f4ce04eab08a0173a091d94e9f995 --- /dev/null +++ b/dataset-augment/en_3/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_3", + "source_sample_id": "01", + "seed": 6768793434914694897, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_3/01/en_3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_3/en_3-01_augmented.png", + "source_relative": "en_3/01/en_3-01.png", + "output_relative": "en_3/en_3-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": 4794.7504, + "blur_score_cv_denoised": 1127.5102, + "foreground_ratio": 0.283941, + "mean_gray": 224.5763, + "std_gray": 59.9316 + }, + "metrics_after": { + "blur_score_cv": 2262.1125, + "blur_score_cv_denoised": 511.4256, + "foreground_ratio": 0.332981, + "mean_gray": 217.6833, + "std_gray": 52.5986 + }, + "metrics_delta": { + "blur_score_cv": -2532.6379, + "blur_score_cv_denoised": -616.0846, + "foreground_ratio": 0.049, + "mean_gray": -6.893, + "std_gray": -7.333 + }, + "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": 1, + "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": 394, + "center_y": 155, + "radius_px": 19.4449, + "amplitude_px": 13.6627, + "direction_deg": 264.6203, + "twist_ratio": 0.4311 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.3848, + "post_blur_sigma": 0.2191, + "post_noise_sigma": 1.3139 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 394, + "center_y": 155, + "radius_px": 19.4449, + "amplitude_px": 13.6627, + "direction_deg": 264.6203, + "twist_ratio": 0.4311 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.9011, + "post_blur_sigma": 0.4192, + "post_noise_sigma": 0.9635 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9945, + "brightness": -3.5176, + "gaussian_blur_sigma": 0.3193, + "motion_applied": false, + "noise_sigma": 3.5034, + "salt_pepper_amount": 0.001256, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 15.78, + "p95_absdiff": 65.0, + "changed_pixel_ratio_gt8": 0.372621 + } +} \ No newline at end of file diff --git a/dataset-augment/en_3/en_3-01_augmented.png b/dataset-augment/en_3/en_3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..898f42435bf87bd8e62f7bce46ad463c6becc691 --- /dev/null +++ b/dataset-augment/en_3/en_3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d59812521664025ec367c5b92cdca79a040db2fcd49cef88dbe256e3d283d997 +size 913891 diff --git a/dataset-augment/en_4/augment_meta.json b/dataset-augment/en_4/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..4bbec07b8dc14ddbf7c6931eb9682093c5211354 --- /dev/null +++ b/dataset-augment/en_4/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_4", + "source_sample_id": "01", + "seed": 6499191531948669784, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_4/01/en_4-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_4/en_4-01_augmented.png", + "source_relative": "en_4/01/en_4-01.png", + "output_relative": "en_4/en_4-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": 3256.2959, + "blur_score_cv_denoised": 703.2368, + "foreground_ratio": 0.223073, + "mean_gray": 232.7248, + "std_gray": 50.7695 + }, + "metrics_after": { + "blur_score_cv": 1741.1024, + "blur_score_cv_denoised": 406.5607, + "foreground_ratio": 0.26481, + "mean_gray": 228.4983, + "std_gray": 49.7497 + }, + "metrics_delta": { + "blur_score_cv": -1515.1935, + "blur_score_cv_denoised": -296.6761, + "foreground_ratio": 0.0417, + "mean_gray": -4.2265, + "std_gray": -1.0198 + }, + "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": 1, + "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": 634, + "center_y": 1101, + "radius_px": 18.8663, + "amplitude_px": 11.4198, + "direction_deg": 246.775, + "twist_ratio": 0.4697 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5121, + "post_blur_sigma": 0.1788, + "post_noise_sigma": 0.8078 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 634, + "center_y": 1101, + "radius_px": 18.8663, + "amplitude_px": 11.4198, + "direction_deg": 246.775, + "twist_ratio": 0.4697 + } + ], + "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": 1, + "strength": 0.9135, + "post_blur_sigma": 0.0525, + "post_noise_sigma": 1.8339 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0115, + "brightness": -1.7899, + "gaussian_blur_sigma": 0.2221, + "motion_applied": false, + "noise_sigma": 6.764, + "salt_pepper_amount": 0.00072, + "jpeg_quality": 87 + } + }, + "diff_metrics": { + "mean_absdiff": 10.6874, + "p95_absdiff": 58.0, + "changed_pixel_ratio_gt8": 0.218978 + } +} \ No newline at end of file diff --git a/dataset-augment/en_4/en_4-01_augmented.png b/dataset-augment/en_4/en_4-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2ed39b7f4d4e5d9f62e55d96c8288489f5448c68 --- /dev/null +++ b/dataset-augment/en_4/en_4-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78621fca61d24a0d48b9f15266c99b930850e0cf994651054a5b52b1e069194b +size 1407048 diff --git a/dataset-augment/en_5/augment_meta.json b/dataset-augment/en_5/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..46c519faa3dcf768e342c3d8433b62b0f2139627 --- /dev/null +++ b/dataset-augment/en_5/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_5", + "source_sample_id": "01", + "seed": 2649700849896747978, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_5/01/en_5-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_5/en_5-01_augmented.png", + "source_relative": "en_5/01/en_5-01.png", + "output_relative": "en_5/en_5-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": 4272.6436, + "blur_score_cv_denoised": 1027.1414, + "foreground_ratio": 0.367647, + "mean_gray": 208.9678, + "std_gray": 71.5315 + }, + "metrics_after": { + "blur_score_cv": 1465.4013, + "blur_score_cv_denoised": 352.258, + "foreground_ratio": 0.387663, + "mean_gray": 200.8272, + "std_gray": 55.3975 + }, + "metrics_delta": { + "blur_score_cv": -2807.2423, + "blur_score_cv_denoised": -674.8834, + "foreground_ratio": 0.02, + "mean_gray": -8.1406, + "std_gray": -16.134 + }, + "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": 1, + "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": 106, + "center_y": 235, + "radius_px": 19.6875, + "amplitude_px": 8.8448, + "direction_deg": 181.509, + "twist_ratio": 0.2607 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5798, + "post_blur_sigma": 0.3274, + "post_noise_sigma": 0.883 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 106, + "center_y": 235, + "radius_px": 19.6875, + "amplitude_px": 8.8448, + "direction_deg": 181.509, + "twist_ratio": 0.2607 + } + ], + "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.9464, + "post_blur_sigma": 0.4441, + "post_noise_sigma": 0.6039 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9505, + "brightness": -1.0732, + "gaussian_blur_sigma": 0.1347, + "motion_applied": false, + "noise_sigma": 2.2563, + "salt_pepper_amount": 0.000729, + "jpeg_quality": 76 + } + }, + "diff_metrics": { + "mean_absdiff": 29.6012, + "p95_absdiff": 103.0, + "changed_pixel_ratio_gt8": 0.917051 + } +} \ No newline at end of file diff --git a/dataset-augment/en_5/en_5-01_augmented.png b/dataset-augment/en_5/en_5-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..93b9bac240a80752a80c481e51a8a2efda5751bb --- /dev/null +++ b/dataset-augment/en_5/en_5-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cddf3cef326b1bf90af68ed3dd40f9007aa60cc74b8f9c6c867bde71750ca902 +size 964335 diff --git a/dataset-augment/en_6/augment_meta.json b/dataset-augment/en_6/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..8170cecc3eb0eaf699f7fd8b46b6ce05df241e0f --- /dev/null +++ b/dataset-augment/en_6/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_6", + "source_sample_id": "01", + "seed": 2682145462911235725, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_6/01/en_6-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_6/en_6-01_augmented.png", + "source_relative": "en_6/01/en_6-01.png", + "output_relative": "en_6/en_6-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": 2960.5895, + "blur_score_cv_denoised": 601.3421, + "foreground_ratio": 0.306342, + "mean_gray": 231.9597, + "std_gray": 42.4817 + }, + "metrics_after": { + "blur_score_cv": 1639.6784, + "blur_score_cv_denoised": 196.5573, + "foreground_ratio": 0.373531, + "mean_gray": 206.4262, + "std_gray": 38.9702 + }, + "metrics_delta": { + "blur_score_cv": -1320.9111, + "blur_score_cv_denoised": -404.7848, + "foreground_ratio": 0.0672, + "mean_gray": -25.5335, + "std_gray": -3.5115 + }, + "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": "ellipse", + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 501, + "center_y": 772, + "radius_px": 19.5485, + "amplitude_px": 10.5576, + "direction_deg": 127.7945, + "twist_ratio": 0.3157 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4398, + "post_blur_sigma": 0.2348, + "post_noise_sigma": 0.964 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 501, + "center_y": 772, + "radius_px": 19.5485, + "amplitude_px": 10.5576, + "direction_deg": 127.7945, + "twist_ratio": 0.3157 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.8513, + "post_blur_sigma": 0.2832, + "post_noise_sigma": 1.6512 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9224, + "brightness": -0.9882, + "gaussian_blur_sigma": 0.3554, + "motion_applied": false, + "noise_sigma": 7.1809, + "salt_pepper_amount": 0.001427, + "jpeg_quality": 74 + } + }, + "diff_metrics": { + "mean_absdiff": 28.8068, + "p95_absdiff": 77.0, + "changed_pixel_ratio_gt8": 0.976343 + } +} \ No newline at end of file diff --git a/dataset-augment/en_6/en_6-01_augmented.png b/dataset-augment/en_6/en_6-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a09fa4236526dd9a8c36d932c48c3f645e8632d5 --- /dev/null +++ b/dataset-augment/en_6/en_6-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef723c9489f94f65fede89e61245426750c9eb4ae58a0e9c01eb90f852520fa0 +size 1358579 diff --git a/dataset-augment/en_7/augment_meta.json b/dataset-augment/en_7/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a89e8eeecf59d15bdfce6af3f5c7c3c5ca6adfe5 --- /dev/null +++ b/dataset-augment/en_7/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_7", + "source_sample_id": "01", + "seed": 10073853646743816333, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_7/01/en_7-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_7/en_7-01_augmented.png", + "source_relative": "en_7/01/en_7-01.png", + "output_relative": "en_7/en_7-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": 3598.4873, + "blur_score_cv_denoised": 1012.6967, + "foreground_ratio": 0.336692, + "mean_gray": 208.2635, + "std_gray": 74.2671 + }, + "metrics_after": { + "blur_score_cv": 2940.0268, + "blur_score_cv_denoised": 694.8132, + "foreground_ratio": 0.361138, + "mean_gray": 211.8924, + "std_gray": 74.3413 + }, + "metrics_delta": { + "blur_score_cv": -658.4605, + "blur_score_cv_denoised": -317.8835, + "foreground_ratio": 0.0244, + "mean_gray": 3.6289, + "std_gray": 0.0742 + }, + "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": 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": 6, + "center_y": 443, + "radius_px": 32.8166, + "amplitude_px": 13.9872, + "direction_deg": 218.4712, + "twist_ratio": 0.4756 + }, + { + "center_x": 30, + "center_y": 300, + "radius_px": 19.6919, + "amplitude_px": 10.4715, + "direction_deg": 40.3175, + "twist_ratio": 0.3202 + }, + { + "center_x": 72, + "center_y": 987, + "radius_px": 16.5607, + "amplitude_px": 14.2971, + "direction_deg": 205.0327, + "twist_ratio": 0.3653 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5897, + "post_blur_sigma": 0.2911, + "post_noise_sigma": 1.2514 + }, + "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": 6, + "center_y": 443, + "radius_px": 32.8166, + "amplitude_px": 13.9872, + "direction_deg": 218.4712, + "twist_ratio": 0.4756 + }, + { + "center_x": 30, + "center_y": 300, + "radius_px": 19.6919, + "amplitude_px": 10.4715, + "direction_deg": 40.3175, + "twist_ratio": 0.3202 + }, + { + "center_x": 72, + "center_y": 987, + "radius_px": 16.5607, + "amplitude_px": 14.2971, + "direction_deg": 205.0327, + "twist_ratio": 0.3653 + } + ], + "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": 1, + "strength": 0.9601, + "post_blur_sigma": 0.2653, + "post_noise_sigma": 0.8249 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0453, + "brightness": 5.9794, + "gaussian_blur_sigma": 0.2484, + "motion_applied": false, + "noise_sigma": 2.8541, + "salt_pepper_amount": 0.001973, + "jpeg_quality": 73 + } + }, + "diff_metrics": { + "mean_absdiff": 16.9013, + "p95_absdiff": 65.0, + "changed_pixel_ratio_gt8": 0.495642 + } +} \ No newline at end of file diff --git a/dataset-augment/en_7/en_7-01_augmented.png b/dataset-augment/en_7/en_7-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a6241dfcdcb471ececdaa2095d174d6af97bdb8e --- /dev/null +++ b/dataset-augment/en_7/en_7-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0dfc665a6b063967402d5a46d2bb610b4ebc65ad48d4bfa80b431129e74d6c6b +size 726975 diff --git a/dataset-augment/en_8/augment_meta.json b/dataset-augment/en_8/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ae4b397deb3ff8aaeb44ac683707059e8f704e1c --- /dev/null +++ b/dataset-augment/en_8/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_8", + "source_sample_id": "01", + "seed": 8218631928279019784, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_8/01/en_8-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_8/en_8-01_augmented.png", + "source_relative": "en_8/01/en_8-01.png", + "output_relative": "en_8/en_8-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": 5476.777, + "blur_score_cv_denoised": 1012.9862, + "foreground_ratio": 0.31281, + "mean_gray": 221.0143, + "std_gray": 66.9832 + }, + "metrics_after": { + "blur_score_cv": 1994.6206, + "blur_score_cv_denoised": 433.5704, + "foreground_ratio": 0.366039, + "mean_gray": 211.9326, + "std_gray": 61.9744 + }, + "metrics_delta": { + "blur_score_cv": -3482.1564, + "blur_score_cv_denoised": -579.4158, + "foreground_ratio": 0.0532, + "mean_gray": -9.0817, + "std_gray": -5.0088 + }, + "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": 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": 236, + "center_y": 381, + "radius_px": 34.2776, + "amplitude_px": 9.4218, + "direction_deg": 152.5245, + "twist_ratio": 0.4346 + }, + { + "center_x": 709, + "center_y": 251, + "radius_px": 12.9747, + "amplitude_px": 11.8526, + "direction_deg": 267.7681, + "twist_ratio": 0.2983 + }, + { + "center_x": 847, + "center_y": 597, + "radius_px": 21.6478, + "amplitude_px": 13.4969, + "direction_deg": 46.3387, + "twist_ratio": 0.4003 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5462, + "post_blur_sigma": 0.3799, + "post_noise_sigma": 1.2167 + }, + "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": 236, + "center_y": 381, + "radius_px": 34.2776, + "amplitude_px": 9.4218, + "direction_deg": 152.5245, + "twist_ratio": 0.4346 + }, + { + "center_x": 709, + "center_y": 251, + "radius_px": 12.9747, + "amplitude_px": 11.8526, + "direction_deg": 267.7681, + "twist_ratio": 0.2983 + }, + { + "center_x": 847, + "center_y": 597, + "radius_px": 21.6478, + "amplitude_px": 13.4969, + "direction_deg": 46.3387, + "twist_ratio": 0.4003 + } + ], + "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": 1, + "strength": 0.9614, + "post_blur_sigma": 0.3415, + "post_noise_sigma": 2.0905 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9543, + "brightness": 7.3187, + "gaussian_blur_sigma": 0.2993, + "motion_applied": false, + "noise_sigma": 3.4364, + "salt_pepper_amount": 0.001028, + "jpeg_quality": 88 + } + }, + "diff_metrics": { + "mean_absdiff": 17.389, + "p95_absdiff": 73.0, + "changed_pixel_ratio_gt8": 0.396443 + } +} \ No newline at end of file diff --git a/dataset-augment/en_8/en_8-01_augmented.png b/dataset-augment/en_8/en_8-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..22a2a282aa6cb8b341750f9aa9b694391706c0bb --- /dev/null +++ b/dataset-augment/en_8/en_8-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f127e32432911372e65d39327bdd9ea0b9b83267fd8b366f3c348f5ded4df7c +size 1235439 diff --git a/dataset-augment/en_9/augment_meta.json b/dataset-augment/en_9/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ddd97aacde467ca46af71b191190ffc59ee3fbac --- /dev/null +++ b/dataset-augment/en_9/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "en_9", + "source_sample_id": "01", + "seed": 6152737137176878276, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/en_9/01/en_9-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/en_9/en_9-01_augmented.png", + "source_relative": "en_9/01/en_9-01.png", + "output_relative": "en_9/en_9-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 2530.6567, + "blur_score_cv_denoised": 708.8896, + "foreground_ratio": 0.296494, + "mean_gray": 222.5956, + "std_gray": 53.6598 + }, + "metrics_after": { + "blur_score_cv": 2454.5782, + "blur_score_cv_denoised": 359.4394, + "foreground_ratio": 0.334169, + "mean_gray": 213.3124, + "std_gray": 48.3023 + }, + "metrics_delta": { + "blur_score_cv": -76.0785, + "blur_score_cv_denoised": -349.4502, + "foreground_ratio": 0.0377, + "mean_gray": -9.2832, + "std_gray": -5.3575 + }, + "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": "ellipse", + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 1030, + "center_y": 27, + "radius_px": 35.3246, + "amplitude_px": 9.858, + "direction_deg": 6.7088, + "twist_ratio": 0.4518 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4008, + "post_blur_sigma": 0.294, + "post_noise_sigma": 1.1842 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 1030, + "center_y": 27, + "radius_px": 35.3246, + "amplitude_px": 9.858, + "direction_deg": 6.7088, + "twist_ratio": 0.4518 + } + ], + "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": 1, + "strength": 0.7491, + "post_blur_sigma": 0.4455, + "post_noise_sigma": 1.3498 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9955, + "brightness": -6.4862, + "gaussian_blur_sigma": 0.2323, + "motion_applied": false, + "noise_sigma": 6.0034, + "salt_pepper_amount": 0.002304, + "jpeg_quality": 71 + } + }, + "diff_metrics": { + "mean_absdiff": 15.2994, + "p95_absdiff": 48.0, + "changed_pixel_ratio_gt8": 0.661991 + } +} \ No newline at end of file diff --git a/dataset-augment/en_9/en_9-01_augmented.png b/dataset-augment/en_9/en_9-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..df9b2323aa8a56e7df802e82f0743e41adf9b6e0 --- /dev/null +++ b/dataset-augment/en_9/en_9-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d60606c9fb720d1bcff2155795a138b3a2325e772f4abb6c6d17dfa1a0664a3c +size 1287472 diff --git a/dataset-augment/es_1/augment_meta.json b/dataset-augment/es_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..0f0a53389692fce26ee09329a0fc30e358092177 --- /dev/null +++ b/dataset-augment/es_1/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "es_1", + "source_sample_id": "01", + "seed": 6634353997959379242, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/es_1/01/es_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/es_1/es_1-01_augmented.png", + "source_relative": "es_1/01/es_1-01.png", + "output_relative": "es_1/es_1-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": 2806.8942, + "blur_score_cv_denoised": 470.2359, + "foreground_ratio": 0.304087, + "mean_gray": 233.1981, + "std_gray": 41.7646 + }, + "metrics_after": { + "blur_score_cv": 1438.8008, + "blur_score_cv_denoised": 180.8469, + "foreground_ratio": 0.342782, + "mean_gray": 221.5145, + "std_gray": 38.3082 + }, + "metrics_delta": { + "blur_score_cv": -1368.0934, + "blur_score_cv_denoised": -289.389, + "foreground_ratio": 0.0387, + "mean_gray": -11.6836, + "std_gray": -3.4564 + }, + "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": 1, + "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": 191, + "center_y": 955, + "radius_px": 34.2664, + "amplitude_px": 14.5456, + "direction_deg": 176.1744, + "twist_ratio": 0.3334 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5991, + "post_blur_sigma": 0.1672, + "post_noise_sigma": 1.0635 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 191, + "center_y": 955, + "radius_px": 34.2664, + "amplitude_px": 14.5456, + "direction_deg": 176.1744, + "twist_ratio": 0.3334 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.8745, + "post_blur_sigma": 0.4439, + "post_noise_sigma": 0.2462 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9784, + "brightness": -3.776, + "gaussian_blur_sigma": 0.294, + "motion_applied": false, + "noise_sigma": 6.5437, + "salt_pepper_amount": 0.001229, + "jpeg_quality": 86 + } + }, + "diff_metrics": { + "mean_absdiff": 14.7672, + "p95_absdiff": 39.0, + "changed_pixel_ratio_gt8": 0.740341 + } +} \ No newline at end of file diff --git a/dataset-augment/es_1/es_1-01_augmented.png b/dataset-augment/es_1/es_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..90da29726364009a9645edf41f8435cf9da895b2 --- /dev/null +++ b/dataset-augment/es_1/es_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:486daa7cfdad54e00ec502c9731cffa9f7ebfd46e8a6eb2bafd8be41f519a22f +size 1553310 diff --git a/dataset-augment/es_2/augment_meta.json b/dataset-augment/es_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..8c795b1e05c4c940ae173b13c42ac99428299c9b --- /dev/null +++ b/dataset-augment/es_2/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "es_2", + "source_sample_id": "01", + "seed": 97535238913509827, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/es_2/01/es_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/es_2/es_2-01_augmented.png", + "source_relative": "es_2/01/es_2-01.png", + "output_relative": "es_2/es_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": 6677.7196, + "blur_score_cv_denoised": 1325.576, + "foreground_ratio": 0.369587, + "mean_gray": 219.6641, + "std_gray": 64.9042 + }, + "metrics_after": { + "blur_score_cv": 2474.0351, + "blur_score_cv_denoised": 450.5202, + "foreground_ratio": 0.417149, + "mean_gray": 207.1836, + "std_gray": 52.5514 + }, + "metrics_delta": { + "blur_score_cv": -4203.6845, + "blur_score_cv_denoised": -875.0558, + "foreground_ratio": 0.0476, + "mean_gray": -12.4805, + "std_gray": -12.3528 + }, + "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": 1, + "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": 216, + "center_y": 579, + "radius_px": 14.5815, + "amplitude_px": 8.7829, + "direction_deg": 223.0464, + "twist_ratio": 0.4087 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5297, + "post_blur_sigma": 0.2006, + "post_noise_sigma": 0.4647 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 216, + "center_y": 579, + "radius_px": 14.5815, + "amplitude_px": 8.7829, + "direction_deg": 223.0464, + "twist_ratio": 0.4087 + } + ], + "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": 3, + "kernel_shape": "rect", + "iterations": 1, + "strength": 0.7635, + "post_blur_sigma": 0.1308, + "post_noise_sigma": 1.6161 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9627, + "brightness": -3.4336, + "gaussian_blur_sigma": 0.204, + "motion_applied": false, + "noise_sigma": 7.9326, + "salt_pepper_amount": 0.001302, + "jpeg_quality": 64 + } + }, + "diff_metrics": { + "mean_absdiff": 21.0992, + "p95_absdiff": 54.0, + "changed_pixel_ratio_gt8": 0.898683 + } +} \ No newline at end of file diff --git a/dataset-augment/es_2/es_2-01_augmented.png b/dataset-augment/es_2/es_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..5db2d4eb0304629e86b9dedbff6aa5c48460e705 --- /dev/null +++ b/dataset-augment/es_2/es_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6efead208eb347db699aaf4d4f80c44ce959a0fcc393d0f01d7a500ce4479419 +size 1122591 diff --git a/dataset-augment/es_3/augment_meta.json b/dataset-augment/es_3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..bd555a7e3805abf6446148cc6a8803ee3f1a4528 --- /dev/null +++ b/dataset-augment/es_3/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "es_3", + "source_sample_id": "01", + "seed": 3612205998843772068, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/es_3/01/es_3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/es_3/es_3-01_augmented.png", + "source_relative": "es_3/01/es_3-01.png", + "output_relative": "es_3/es_3-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": 4419.2439, + "blur_score_cv_denoised": 614.3995, + "foreground_ratio": 0.221349, + "mean_gray": 235.3561, + "std_gray": 46.7497 + }, + "metrics_after": { + "blur_score_cv": 2043.9586, + "blur_score_cv_denoised": 355.115, + "foreground_ratio": 0.254992, + "mean_gray": 230.4767, + "std_gray": 50.7469 + }, + "metrics_delta": { + "blur_score_cv": -2375.2853, + "blur_score_cv_denoised": -259.2845, + "foreground_ratio": 0.0336, + "mean_gray": -4.8794, + "std_gray": 3.9972 + }, + "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": 636, + "center_y": 867, + "radius_px": 34.8608, + "amplitude_px": 13.882, + "direction_deg": 57.4144, + "twist_ratio": 0.2843 + }, + { + "center_x": 436, + "center_y": 146, + "radius_px": 35.8597, + "amplitude_px": 12.2822, + "direction_deg": 349.0175, + "twist_ratio": 0.3717 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6687, + "post_blur_sigma": 0.2243, + "post_noise_sigma": 1.3544 + }, + "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": 636, + "center_y": 867, + "radius_px": 34.8608, + "amplitude_px": 13.882, + "direction_deg": 57.4144, + "twist_ratio": 0.2843 + }, + { + "center_x": 436, + "center_y": 146, + "radius_px": 35.8597, + "amplitude_px": 12.2822, + "direction_deg": 349.0175, + "twist_ratio": 0.3717 + } + ], + "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": 1, + "strength": 0.9719, + "post_blur_sigma": 0.0879, + "post_noise_sigma": 1.7892 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0237, + "brightness": 1.0542, + "gaussian_blur_sigma": 0.233, + "motion_applied": false, + "noise_sigma": 2.3813, + "salt_pepper_amount": 0.001354, + "jpeg_quality": 73 + } + }, + "diff_metrics": { + "mean_absdiff": 11.2514, + "p95_absdiff": 69.0, + "changed_pixel_ratio_gt8": 0.205589 + } +} \ No newline at end of file diff --git a/dataset-augment/es_3/es_3-01_augmented.png b/dataset-augment/es_3/es_3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..95e105460d2ef5c213e71a99fa99cabeb31e8639 --- /dev/null +++ b/dataset-augment/es_3/es_3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2934f4d8f3a4233c3a97e6facaba57d8c769c5346a57d9c8c04f9a24263ffdd3 +size 724539 diff --git a/dataset-augment/ja_1/augment_meta.json b/dataset-augment/ja_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..d13a17f19828be46047723d2d23e19a069d892e5 --- /dev/null +++ b/dataset-augment/ja_1/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_1", + "source_sample_id": "01", + "seed": 5765245890577036086, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_1/01/ja_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_1/ja_1-01_augmented.png", + "source_relative": "ja_1/01/ja_1-01.png", + "output_relative": "ja_1/ja_1-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": 4268.3479, + "blur_score_cv_denoised": 651.0259, + "foreground_ratio": 0.218949, + "mean_gray": 236.0597, + "std_gray": 48.2403 + }, + "metrics_after": { + "blur_score_cv": 2118.7558, + "blur_score_cv_denoised": 200.847, + "foreground_ratio": 0.301213, + "mean_gray": 215.2101, + "std_gray": 42.1104 + }, + "metrics_delta": { + "blur_score_cv": -2149.5921, + "blur_score_cv_denoised": -450.1789, + "foreground_ratio": 0.0823, + "mean_gray": -20.8496, + "std_gray": -6.1299 + }, + "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": 1, + "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": 483, + "center_y": 964, + "radius_px": 30.6049, + "amplitude_px": 9.9108, + "direction_deg": 207.9818, + "twist_ratio": 0.3151 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4036, + "post_blur_sigma": 0.2901, + "post_noise_sigma": 1.6038 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 483, + "center_y": 964, + "radius_px": 30.6049, + "amplitude_px": 9.9108, + "direction_deg": 207.9818, + "twist_ratio": 0.3151 + } + ], + "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": 1, + "strength": 0.9934, + "post_blur_sigma": 0.1753, + "post_noise_sigma": 1.6618 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9374, + "brightness": -0.6805, + "gaussian_blur_sigma": 0.3154, + "motion_applied": false, + "noise_sigma": 5.3871, + "salt_pepper_amount": 0.001902, + "jpeg_quality": 81 + } + }, + "diff_metrics": { + "mean_absdiff": 27.3378, + "p95_absdiff": 83.0, + "changed_pixel_ratio_gt8": 0.968946 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_1/ja_1-01_augmented.png b/dataset-augment/ja_1/ja_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..ee7c40a46cefc3e484bc6c7d5b6f4403ef428faf --- /dev/null +++ b/dataset-augment/ja_1/ja_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c48ec2bd7430b08f4f1053ba7249e83489bb4c3d8b5f982afb769d2f45b035d6 +size 1183544 diff --git a/dataset-augment/ja_10/augment_meta.json b/dataset-augment/ja_10/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..55c90abf7bc885bf8c0ab5c23847128e685912e8 --- /dev/null +++ b/dataset-augment/ja_10/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_10", + "source_sample_id": "01", + "seed": 88991025744793752, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_10/01/ja_10-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_10/ja_10-01_augmented.png", + "source_relative": "ja_10/01/ja_10-01.png", + "output_relative": "ja_10/ja_10-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": 893.7822, + "blur_score_cv_denoised": 230.3527, + "foreground_ratio": 0.227326, + "mean_gray": 226.0182, + "std_gray": 44.1898 + }, + "metrics_after": { + "blur_score_cv": 1771.7823, + "blur_score_cv_denoised": 152.7538, + "foreground_ratio": 0.254694, + "mean_gray": 217.1045, + "std_gray": 43.2613 + }, + "metrics_delta": { + "blur_score_cv": 878.0001, + "blur_score_cv_denoised": -77.5989, + "foreground_ratio": 0.0274, + "mean_gray": -8.9137, + "std_gray": -0.9285 + }, + "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": "ellipse", + "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": 257, + "center_y": 522, + "radius_px": 13.5955, + "amplitude_px": 12.1269, + "direction_deg": 43.0511, + "twist_ratio": 0.4635 + }, + { + "center_x": 691, + "center_y": 271, + "radius_px": 23.1981, + "amplitude_px": 10.4688, + "direction_deg": 41.8223, + "twist_ratio": 0.3601 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6277, + "post_blur_sigma": 0.2265, + "post_noise_sigma": 1.4782 + }, + "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": 257, + "center_y": 522, + "radius_px": 13.5955, + "amplitude_px": 12.1269, + "direction_deg": 43.0511, + "twist_ratio": 0.4635 + }, + { + "center_x": 691, + "center_y": 271, + "radius_px": 23.1981, + "amplitude_px": 10.4688, + "direction_deg": 41.8223, + "twist_ratio": 0.3601 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.7668, + "post_blur_sigma": 0.3751, + "post_noise_sigma": 1.5529 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9428, + "brightness": 7.9023, + "gaussian_blur_sigma": 0.2043, + "motion_applied": false, + "noise_sigma": 6.6497, + "salt_pepper_amount": 0.002414, + "jpeg_quality": 58 + } + }, + "diff_metrics": { + "mean_absdiff": 10.7107, + "p95_absdiff": 30.0, + "changed_pixel_ratio_gt8": 0.456967 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_10/ja_10-01_augmented.png b/dataset-augment/ja_10/ja_10-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..aee768d117aee572f624b8d776a7b197ad41abcd --- /dev/null +++ b/dataset-augment/ja_10/ja_10-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a2b642434f057269d49ac84d7e7b202cb9193c76440df75d89b73c2c6124b5d +size 1033061 diff --git a/dataset-augment/ja_11/augment_meta.json b/dataset-augment/ja_11/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..91fc47d9859570e12fdef68b24a84b419e881c05 --- /dev/null +++ b/dataset-augment/ja_11/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_11", + "source_sample_id": "01", + "seed": 8734689977141194997, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_11/01/ja_11-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_11/ja_11-01_augmented.png", + "source_relative": "ja_11/01/ja_11-01.png", + "output_relative": "ja_11/ja_11-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": 3853.6911, + "blur_score_cv_denoised": 798.8456, + "foreground_ratio": 0.256904, + "mean_gray": 229.1012, + "std_gray": 54.4765 + }, + "metrics_after": { + "blur_score_cv": 2113.9929, + "blur_score_cv_denoised": 165.9493, + "foreground_ratio": 0.236517, + "mean_gray": 240.4209, + "std_gray": 31.3021 + }, + "metrics_delta": { + "blur_score_cv": -1739.6982, + "blur_score_cv_denoised": -632.8963, + "foreground_ratio": -0.0204, + "mean_gray": 11.3197, + "std_gray": -23.1744 + }, + "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": 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": 805, + "center_y": 538, + "radius_px": 19.1407, + "amplitude_px": 8.4817, + "direction_deg": 216.7271, + "twist_ratio": 0.4544 + }, + { + "center_x": 142, + "center_y": 793, + "radius_px": 34.3595, + "amplitude_px": 9.2888, + "direction_deg": 78.2666, + "twist_ratio": 0.3706 + }, + { + "center_x": 113, + "center_y": 1101, + "radius_px": 32.3161, + "amplitude_px": 14.7624, + "direction_deg": 311.329, + "twist_ratio": 0.4208 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6053, + "post_blur_sigma": 0.1646, + "post_noise_sigma": 1.4816 + }, + "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": 805, + "center_y": 538, + "radius_px": 19.1407, + "amplitude_px": 8.4817, + "direction_deg": 216.7271, + "twist_ratio": 0.4544 + }, + { + "center_x": 142, + "center_y": 793, + "radius_px": 34.3595, + "amplitude_px": 9.2888, + "direction_deg": 78.2666, + "twist_ratio": 0.3706 + }, + { + "center_x": 113, + "center_y": 1101, + "radius_px": 32.3161, + "amplitude_px": 14.7624, + "direction_deg": 311.329, + "twist_ratio": 0.4208 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 2, + "strength": 0.8019, + "post_blur_sigma": 0.2092, + "post_noise_sigma": 0.6565 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0121, + "brightness": 6.6517, + "gaussian_blur_sigma": 0.3275, + "motion_applied": false, + "noise_sigma": 2.3107, + "salt_pepper_amount": 0.002425, + "jpeg_quality": 83 + } + }, + "diff_metrics": { + "mean_absdiff": 14.7481, + "p95_absdiff": 100.0, + "changed_pixel_ratio_gt8": 0.200833 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_11/ja_11-01_augmented.png b/dataset-augment/ja_11/ja_11-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..33924b3a31636c31200de23dba8734f25b48068c --- /dev/null +++ b/dataset-augment/ja_11/ja_11-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:558392afd716a9b6f03be93ee2a18b1ebb4c7d837b3156b7c4379276add8e33c +size 701243 diff --git a/dataset-augment/ja_12/augment_meta.json b/dataset-augment/ja_12/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..84383eadcebec1e07d1f2e86877ee8831f57b061 --- /dev/null +++ b/dataset-augment/ja_12/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_12", + "source_sample_id": "01", + "seed": 14300548464402062021, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_12/01/ja_12-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_12/ja_12-01_augmented.png", + "source_relative": "ja_12/01/ja_12-01.png", + "output_relative": "ja_12/ja_12-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": 2356.4479, + "blur_score_cv_denoised": 392.8814, + "foreground_ratio": 0.133456, + "mean_gray": 239.8701, + "std_gray": 37.3674 + }, + "metrics_after": { + "blur_score_cv": 1371.3535, + "blur_score_cv_denoised": 221.0052, + "foreground_ratio": 0.153643, + "mean_gray": 238.8254, + "std_gray": 39.5165 + }, + "metrics_delta": { + "blur_score_cv": -985.0944, + "blur_score_cv_denoised": -171.8762, + "foreground_ratio": 0.0202, + "mean_gray": -1.0447, + "std_gray": 2.1491 + }, + "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": 1, + "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": 304, + "center_y": 1048, + "radius_px": 32.9441, + "amplitude_px": 8.6262, + "direction_deg": 318.1721, + "twist_ratio": 0.3477 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6198, + "post_blur_sigma": 0.2336, + "post_noise_sigma": 1.7473 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 304, + "center_y": 1048, + "radius_px": 32.9441, + "amplitude_px": 8.6262, + "direction_deg": 318.1721, + "twist_ratio": 0.3477 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.8104, + "post_blur_sigma": 0.0604, + "post_noise_sigma": 1.816 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0468, + "brightness": 7.4754, + "gaussian_blur_sigma": 0.3561, + "motion_applied": false, + "noise_sigma": 6.9575, + "salt_pepper_amount": 0.000997, + "jpeg_quality": 86 + } + }, + "diff_metrics": { + "mean_absdiff": 7.2695, + "p95_absdiff": 41.0, + "changed_pixel_ratio_gt8": 0.122661 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_12/ja_12-01_augmented.png b/dataset-augment/ja_12/ja_12-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..263468138de4588fc983429a48626082405af91f --- /dev/null +++ b/dataset-augment/ja_12/ja_12-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf5003f115c43ec864f9280d490300d2d245d8a850af62313b11ccef709dd3ab +size 1174647 diff --git a/dataset-augment/ja_13/augment_meta.json b/dataset-augment/ja_13/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..fce0b7eace49a43f8dc5b93243d3a199563f449e --- /dev/null +++ b/dataset-augment/ja_13/augment_meta.json @@ -0,0 +1,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 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_13/ja_13-01_augmented.png b/dataset-augment/ja_13/ja_13-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..3b2c5bf80ca21fde83f8a5ca97f5ec22f6e061fc --- /dev/null +++ b/dataset-augment/ja_13/ja_13-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66530f6c266c09895dcfeae80cad5abcff0243a844bcc3a2d35da778c6a062c2 +size 682985 diff --git a/dataset-augment/ja_14/augment_meta.json b/dataset-augment/ja_14/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..e4a44271e93dfe66e0209860739184536de9a7dd --- /dev/null +++ b/dataset-augment/ja_14/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_14", + "source_sample_id": "01", + "seed": 5401825327195668251, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_14/01/ja_14-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_14/ja_14-01_augmented.png", + "source_relative": "ja_14/01/ja_14-01.png", + "output_relative": "ja_14/ja_14-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": 4091.2453, + "blur_score_cv_denoised": 743.5598, + "foreground_ratio": 0.239303, + "mean_gray": 233.2598, + "std_gray": 50.397 + }, + "metrics_after": { + "blur_score_cv": 2956.7668, + "blur_score_cv_denoised": 497.0082, + "foreground_ratio": 0.257302, + "mean_gray": 231.7464, + "std_gray": 48.9278 + }, + "metrics_delta": { + "blur_score_cv": -1134.4785, + "blur_score_cv_denoised": -246.5516, + "foreground_ratio": 0.018, + "mean_gray": -1.5134, + "std_gray": -1.4692 + }, + "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": "ellipse", + "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": 131, + "center_y": 475, + "radius_px": 17.5407, + "amplitude_px": 10.6356, + "direction_deg": 168.3208, + "twist_ratio": 0.3346 + }, + { + "center_x": 515, + "center_y": 572, + "radius_px": 30.7099, + "amplitude_px": 9.3364, + "direction_deg": 315.1996, + "twist_ratio": 0.2627 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.638, + "post_blur_sigma": 0.3453, + "post_noise_sigma": 1.6341 + }, + "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": 131, + "center_y": 475, + "radius_px": 17.5407, + "amplitude_px": 10.6356, + "direction_deg": 168.3208, + "twist_ratio": 0.3346 + }, + { + "center_x": 515, + "center_y": 572, + "radius_px": 30.7099, + "amplitude_px": 9.3364, + "direction_deg": 315.1996, + "twist_ratio": 0.2627 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.9678, + "post_blur_sigma": 0.1791, + "post_noise_sigma": 2.1869 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0414, + "brightness": 3.0191, + "gaussian_blur_sigma": 0.3334, + "motion_applied": false, + "noise_sigma": 4.419, + "salt_pepper_amount": 0.002141, + "jpeg_quality": 66 + } + }, + "diff_metrics": { + "mean_absdiff": 9.8303, + "p95_absdiff": 55.0, + "changed_pixel_ratio_gt8": 0.212313 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_14/ja_14-01_augmented.png b/dataset-augment/ja_14/ja_14-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..4ff414595309812b44b1d0e8a45a8cb7f1f2f823 --- /dev/null +++ b/dataset-augment/ja_14/ja_14-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f7074a743c4def8102dbc227f7c9d9400c829e161f9a459948672ee2ac6cf76 +size 667229 diff --git a/dataset-augment/ja_15/augment_meta.json b/dataset-augment/ja_15/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..cff711590f0a42db02de8a0aeab43c4a593661f7 --- /dev/null +++ b/dataset-augment/ja_15/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_15", + "source_sample_id": "01", + "seed": 648331841434287427, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_15/01/ja_15-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_15/ja_15-01_augmented.png", + "source_relative": "ja_15/01/ja_15-01.png", + "output_relative": "ja_15/ja_15-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": 4119.1298, + "blur_score_cv_denoised": 694.6385, + "foreground_ratio": 0.267438, + "mean_gray": 230.5659, + "std_gray": 54.8383 + }, + "metrics_after": { + "blur_score_cv": 1859.3647, + "blur_score_cv_denoised": 331.5998, + "foreground_ratio": 0.307203, + "mean_gray": 228.7223, + "std_gray": 49.1246 + }, + "metrics_delta": { + "blur_score_cv": -2259.7651, + "blur_score_cv_denoised": -363.0387, + "foreground_ratio": 0.0398, + "mean_gray": -1.8436, + "std_gray": -5.7137 + }, + "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": "ellipse", + "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": 411, + "center_y": 911, + "radius_px": 13.5563, + "amplitude_px": 10.3817, + "direction_deg": 343.5161, + "twist_ratio": 0.4456 + }, + { + "center_x": 459, + "center_y": 647, + "radius_px": 34.3456, + "amplitude_px": 10.948, + "direction_deg": 152.0584, + "twist_ratio": 0.3374 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.3941, + "post_blur_sigma": 0.2402, + "post_noise_sigma": 1.6584 + }, + "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": 411, + "center_y": 911, + "radius_px": 13.5563, + "amplitude_px": 10.3817, + "direction_deg": 343.5161, + "twist_ratio": 0.4456 + }, + { + "center_x": 459, + "center_y": 647, + "radius_px": 34.3456, + "amplitude_px": 10.948, + "direction_deg": 152.0584, + "twist_ratio": 0.3374 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.7826, + "post_blur_sigma": 0.4155, + "post_noise_sigma": 0.9936 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9951, + "brightness": 2.7246, + "gaussian_blur_sigma": 0.138, + "motion_applied": false, + "noise_sigma": 6.2097, + "salt_pepper_amount": 0.001141, + "jpeg_quality": 73 + } + }, + "diff_metrics": { + "mean_absdiff": 9.7336, + "p95_absdiff": 51.0, + "changed_pixel_ratio_gt8": 0.225718 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_15/ja_15-01_augmented.png b/dataset-augment/ja_15/ja_15-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..93e0a5a45d4c90c9a0b57cdb03a0e7d62e980bcf --- /dev/null +++ b/dataset-augment/ja_15/ja_15-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10694a97e7f5e1ef87b00526b8f91d09b996c9623e5d988dc2730183fc065c8e +size 905938 diff --git a/dataset-augment/ja_16/augment_meta.json b/dataset-augment/ja_16/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..5423ba80c88f5e34afeab7064cc356ec407678bc --- /dev/null +++ b/dataset-augment/ja_16/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_16", + "source_sample_id": "01", + "seed": 9289623756511912712, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_16/01/ja_16-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_16/ja_16-01_augmented.png", + "source_relative": "ja_16/01/ja_16-01.png", + "output_relative": "ja_16/ja_16-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": 2722.5884, + "blur_score_cv_denoised": 502.8066, + "foreground_ratio": 0.153397, + "mean_gray": 237.7143, + "std_gray": 42.263 + }, + "metrics_after": { + "blur_score_cv": 1260.711, + "blur_score_cv_denoised": 138.5404, + "foreground_ratio": 0.196912, + "mean_gray": 225.5469, + "std_gray": 38.8809 + }, + "metrics_delta": { + "blur_score_cv": -1461.8774, + "blur_score_cv_denoised": -364.2662, + "foreground_ratio": 0.0435, + "mean_gray": -12.1674, + "std_gray": -3.3821 + }, + "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": 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": 102, + "center_y": 458, + "radius_px": 26.0808, + "amplitude_px": 9.3747, + "direction_deg": 341.7903, + "twist_ratio": 0.382 + }, + { + "center_x": 559, + "center_y": 358, + "radius_px": 34.8932, + "amplitude_px": 14.5531, + "direction_deg": 165.4419, + "twist_ratio": 0.3002 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4637, + "post_blur_sigma": 0.289, + "post_noise_sigma": 0.9275 + }, + "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": 102, + "center_y": 458, + "radius_px": 26.0808, + "amplitude_px": 9.3747, + "direction_deg": 341.7903, + "twist_ratio": 0.382 + }, + { + "center_x": 559, + "center_y": 358, + "radius_px": 34.8932, + "amplitude_px": 14.5531, + "direction_deg": 165.4419, + "twist_ratio": 0.3002 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.7621, + "post_blur_sigma": 0.0498, + "post_noise_sigma": 0.6717 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9467, + "brightness": 4.7535, + "gaussian_blur_sigma": 0.1666, + "motion_applied": false, + "noise_sigma": 3.234, + "salt_pepper_amount": 0.001283, + "jpeg_quality": 67 + } + }, + "diff_metrics": { + "mean_absdiff": 15.9655, + "p95_absdiff": 56.0, + "changed_pixel_ratio_gt8": 0.799808 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_16/ja_16-01_augmented.png b/dataset-augment/ja_16/ja_16-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..83fef217a4b0ea9fdbd0c3c04e23c0374e1252a8 --- /dev/null +++ b/dataset-augment/ja_16/ja_16-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd53889a2aaae7ed4fa33dd8cca5bdc0bb3e325c46f698dabeaf54318ab68a01 +size 687853 diff --git a/dataset-augment/ja_17/augment_meta.json b/dataset-augment/ja_17/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..e8dd11be8dc7b8d761bf37caad6a32d8881d1255 --- /dev/null +++ b/dataset-augment/ja_17/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_17", + "source_sample_id": "01", + "seed": 15141330637480896648, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_17/01/ja_17-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_17/ja_17-01_augmented.png", + "source_relative": "ja_17/01/ja_17-01.png", + "output_relative": "ja_17/ja_17-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 2619.9659, + "blur_score_cv_denoised": 443.955, + "foreground_ratio": 0.198073, + "mean_gray": 238.8895, + "std_gray": 39.6433 + }, + "metrics_after": { + "blur_score_cv": 1904.8769, + "blur_score_cv_denoised": 194.9728, + "foreground_ratio": 0.172484, + "mean_gray": 242.7379, + "std_gray": 28.7469 + }, + "metrics_delta": { + "blur_score_cv": -715.089, + "blur_score_cv_denoised": -248.9822, + "foreground_ratio": -0.0256, + "mean_gray": 3.8484, + "std_gray": -10.8964 + }, + "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": 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": 190, + "center_y": 580, + "radius_px": 32.0071, + "amplitude_px": 13.5986, + "direction_deg": 287.0053, + "twist_ratio": 0.2571 + }, + { + "center_x": 821, + "center_y": 553, + "radius_px": 28.3413, + "amplitude_px": 10.4571, + "direction_deg": 149.9188, + "twist_ratio": 0.3744 + }, + { + "center_x": 537, + "center_y": 487, + "radius_px": 13.8414, + "amplitude_px": 14.733, + "direction_deg": 300.7281, + "twist_ratio": 0.2616 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6165, + "post_blur_sigma": 0.2014, + "post_noise_sigma": 0.8629 + }, + "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": 190, + "center_y": 580, + "radius_px": 32.0071, + "amplitude_px": 13.5986, + "direction_deg": 287.0053, + "twist_ratio": 0.2571 + }, + { + "center_x": 821, + "center_y": 553, + "radius_px": 28.3413, + "amplitude_px": 10.4571, + "direction_deg": 149.9188, + "twist_ratio": 0.3744 + }, + { + "center_x": 537, + "center_y": 487, + "radius_px": 13.8414, + "amplitude_px": 14.733, + "direction_deg": 300.7281, + "twist_ratio": 0.2616 + } + ], + "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.9211, + "post_blur_sigma": 0.0843, + "post_noise_sigma": 0.9331 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0754, + "brightness": 4.9967, + "gaussian_blur_sigma": 0.1945, + "motion_applied": false, + "noise_sigma": 5.9329, + "salt_pepper_amount": 0.001479, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 12.0157, + "p95_absdiff": 77.0, + "changed_pixel_ratio_gt8": 0.1817 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_17/ja_17-01_augmented.png b/dataset-augment/ja_17/ja_17-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..621485f3e2f035f6abf066ef46ab5a12dd8195f2 --- /dev/null +++ b/dataset-augment/ja_17/ja_17-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c28b6bd57f9dd4cd9cc5e83ec4dd328b64329cca52acdd80e92f8db7af9a10d8 +size 786344 diff --git a/dataset-augment/ja_18/augment_meta.json b/dataset-augment/ja_18/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..df013c46b8d37e74cc1fa653b817948f2826fffb --- /dev/null +++ b/dataset-augment/ja_18/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_18", + "source_sample_id": "01", + "seed": 6317508309936147397, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_18/01/ja_18-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_18/ja_18-01_augmented.png", + "source_relative": "ja_18/01/ja_18-01.png", + "output_relative": "ja_18/ja_18-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": 4969.0204, + "blur_score_cv_denoised": 922.9115, + "foreground_ratio": 0.31286, + "mean_gray": 222.2979, + "std_gray": 66.3865 + }, + "metrics_after": { + "blur_score_cv": 2403.513, + "blur_score_cv_denoised": 497.7961, + "foreground_ratio": 0.336406, + "mean_gray": 221.8118, + "std_gray": 60.6858 + }, + "metrics_delta": { + "blur_score_cv": -2565.5074, + "blur_score_cv_denoised": -425.1154, + "foreground_ratio": 0.0235, + "mean_gray": -0.4861, + "std_gray": -5.7007 + }, + "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": 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": 354, + "center_y": 288, + "radius_px": 31.8201, + "amplitude_px": 12.3275, + "direction_deg": 222.4122, + "twist_ratio": 0.3269 + }, + { + "center_x": 59, + "center_y": 534, + "radius_px": 26.5664, + "amplitude_px": 12.2617, + "direction_deg": 39.7454, + "twist_ratio": 0.36 + }, + { + "center_x": 290, + "center_y": 645, + "radius_px": 26.3832, + "amplitude_px": 11.0398, + "direction_deg": 143.3271, + "twist_ratio": 0.4274 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4462, + "post_blur_sigma": 0.2746, + "post_noise_sigma": 1.3453 + }, + "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": 354, + "center_y": 288, + "radius_px": 31.8201, + "amplitude_px": 12.3275, + "direction_deg": 222.4122, + "twist_ratio": 0.3269 + }, + { + "center_x": 59, + "center_y": 534, + "radius_px": 26.5664, + "amplitude_px": 12.2617, + "direction_deg": 39.7454, + "twist_ratio": 0.36 + }, + { + "center_x": 290, + "center_y": 645, + "radius_px": 26.3832, + "amplitude_px": 11.0398, + "direction_deg": 143.3271, + "twist_ratio": 0.4274 + } + ], + "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": 1, + "strength": 0.9663, + "post_blur_sigma": 0.4499, + "post_noise_sigma": 0.9223 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0795, + "brightness": -7.5744, + "gaussian_blur_sigma": 0.1829, + "motion_applied": false, + "noise_sigma": 4.7026, + "salt_pepper_amount": 0.001874, + "jpeg_quality": 60 + } + }, + "diff_metrics": { + "mean_absdiff": 13.7691, + "p95_absdiff": 71.0, + "changed_pixel_ratio_gt8": 0.27057 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_18/ja_18-01_augmented.png b/dataset-augment/ja_18/ja_18-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2689a8f9ab3ba38bfb8ab0096f29e7e9f1087f81 --- /dev/null +++ b/dataset-augment/ja_18/ja_18-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:729785e0100bc40d98c8dc3ca2043bcd2c1b77cc7a2cbf741f3ae77c99b68f27 +size 677326 diff --git a/dataset-augment/ja_19/augment_meta.json b/dataset-augment/ja_19/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..2925664a9f157f99379505cdde80b8e6a4906d0a --- /dev/null +++ b/dataset-augment/ja_19/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_19", + "source_sample_id": "01", + "seed": 18181396098923150804, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_19/01/ja_19-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_19/ja_19-01_augmented.png", + "source_relative": "ja_19/01/ja_19-01.png", + "output_relative": "ja_19/ja_19-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": 4445.3319, + "blur_score_cv_denoised": 773.4355, + "foreground_ratio": 0.264463, + "mean_gray": 231.9876, + "std_gray": 49.1264 + }, + "metrics_after": { + "blur_score_cv": 2063.3867, + "blur_score_cv_denoised": 371.3341, + "foreground_ratio": 0.311471, + "mean_gray": 221.2589, + "std_gray": 42.925 + }, + "metrics_delta": { + "blur_score_cv": -2381.9452, + "blur_score_cv_denoised": -402.1014, + "foreground_ratio": 0.047, + "mean_gray": -10.7287, + "std_gray": -6.2014 + }, + "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": "ellipse", + "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": 670, + "center_y": 669, + "radius_px": 32.2586, + "amplitude_px": 10.1739, + "direction_deg": 102.5793, + "twist_ratio": 0.3371 + }, + { + "center_x": 700, + "center_y": 464, + "radius_px": 28.4361, + "amplitude_px": 14.091, + "direction_deg": 204.5262, + "twist_ratio": 0.3931 + }, + { + "center_x": 20, + "center_y": 378, + "radius_px": 23.7775, + "amplitude_px": 8.1974, + "direction_deg": 321.5468, + "twist_ratio": 0.4272 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5038, + "post_blur_sigma": 0.3444, + "post_noise_sigma": 0.8012 + }, + "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": 670, + "center_y": 669, + "radius_px": 32.2586, + "amplitude_px": 10.1739, + "direction_deg": 102.5793, + "twist_ratio": 0.3371 + }, + { + "center_x": 700, + "center_y": 464, + "radius_px": 28.4361, + "amplitude_px": 14.091, + "direction_deg": 204.5262, + "twist_ratio": 0.3931 + }, + { + "center_x": 20, + "center_y": 378, + "radius_px": 23.7775, + "amplitude_px": 8.1974, + "direction_deg": 321.5468, + "twist_ratio": 0.4272 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.8852, + "post_blur_sigma": 0.3719, + "post_noise_sigma": 1.4891 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9415, + "brightness": 5.9321, + "gaussian_blur_sigma": 0.3245, + "motion_applied": false, + "noise_sigma": 7.2183, + "salt_pepper_amount": 0.001308, + "jpeg_quality": 71 + } + }, + "diff_metrics": { + "mean_absdiff": 17.4016, + "p95_absdiff": 59.0, + "changed_pixel_ratio_gt8": 0.733169 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_19/ja_19-01_augmented.png b/dataset-augment/ja_19/ja_19-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..d2277b2d0064c86886028dfd8ce0feb8468a64cd --- /dev/null +++ b/dataset-augment/ja_19/ja_19-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5db022d12700bb956684c2c2e87c10098e36cdd074e002e6a0bb707a4426057b +size 1235248 diff --git a/dataset-augment/ja_2/augment_meta.json b/dataset-augment/ja_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..5f26c05c705a5c8315b375f4c351ec2f516a087f --- /dev/null +++ b/dataset-augment/ja_2/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_2", + "source_sample_id": "01", + "seed": 7397146085332478119, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_2/01/ja_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_2/ja_2-01_augmented.png", + "source_relative": "ja_2/01/ja_2-01.png", + "output_relative": "ja_2/ja_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": 4116.2976, + "blur_score_cv_denoised": 752.5056, + "foreground_ratio": 0.233684, + "mean_gray": 232.6116, + "std_gray": 50.4365 + }, + "metrics_after": { + "blur_score_cv": 2142.7359, + "blur_score_cv_denoised": 328.893, + "foreground_ratio": 0.25118, + "mean_gray": 233.2495, + "std_gray": 41.4533 + }, + "metrics_delta": { + "blur_score_cv": -1973.5617, + "blur_score_cv_denoised": -423.6126, + "foreground_ratio": 0.0175, + "mean_gray": 0.6379, + "std_gray": -8.9832 + }, + "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": 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": 165, + "center_y": 663, + "radius_px": 20.7466, + "amplitude_px": 9.7978, + "direction_deg": 108.3097, + "twist_ratio": 0.4642 + }, + { + "center_x": 411, + "center_y": 398, + "radius_px": 32.75, + "amplitude_px": 11.5898, + "direction_deg": 237.7322, + "twist_ratio": 0.2538 + }, + { + "center_x": 175, + "center_y": 666, + "radius_px": 32.1611, + "amplitude_px": 14.2813, + "direction_deg": 193.3487, + "twist_ratio": 0.4385 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6239, + "post_blur_sigma": 0.2347, + "post_noise_sigma": 0.4998 + }, + "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": 165, + "center_y": 663, + "radius_px": 20.7466, + "amplitude_px": 9.7978, + "direction_deg": 108.3097, + "twist_ratio": 0.4642 + }, + { + "center_x": 411, + "center_y": 398, + "radius_px": 32.75, + "amplitude_px": 11.5898, + "direction_deg": 237.7322, + "twist_ratio": 0.2538 + }, + { + "center_x": 175, + "center_y": 666, + "radius_px": 32.1611, + "amplitude_px": 14.2813, + "direction_deg": 193.3487, + "twist_ratio": 0.4385 + } + ], + "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.9758, + "post_blur_sigma": 0.3007, + "post_noise_sigma": 1.3358 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0263, + "brightness": -7.4611, + "gaussian_blur_sigma": 0.3218, + "motion_applied": false, + "noise_sigma": 2.9082, + "salt_pepper_amount": 0.000969, + "jpeg_quality": 56 + } + }, + "diff_metrics": { + "mean_absdiff": 16.2229, + "p95_absdiff": 101.0, + "changed_pixel_ratio_gt8": 0.239138 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_2/ja_2-01_augmented.png b/dataset-augment/ja_2/ja_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..71dd701daaa51e9a709546bdff867b42f1d9e0c9 --- /dev/null +++ b/dataset-augment/ja_2/ja_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dad9f6a143386245241deff72971e49c9a6b1cbfe2330884c8b1bd9c3f3cb0f +size 591158 diff --git a/dataset-augment/ja_20/augment_meta.json b/dataset-augment/ja_20/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..dcf9217cbe268bc4bf4e7c962d8148743cc4c761 --- /dev/null +++ b/dataset-augment/ja_20/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_20", + "source_sample_id": "01", + "seed": 10427347983456148470, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_20/01/ja_20-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_20/ja_20-01_augmented.png", + "source_relative": "ja_20/01/ja_20-01.png", + "output_relative": "ja_20/ja_20-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": 2119.1385, + "blur_score_cv_denoised": 395.1405, + "foreground_ratio": 0.38555, + "mean_gray": 222.1541, + "std_gray": 47.5769 + }, + "metrics_after": { + "blur_score_cv": 1690.6473, + "blur_score_cv_denoised": 172.0628, + "foreground_ratio": 0.411327, + "mean_gray": 224.0906, + "std_gray": 43.5968 + }, + "metrics_delta": { + "blur_score_cv": -428.4912, + "blur_score_cv_denoised": -223.0777, + "foreground_ratio": 0.0258, + "mean_gray": 1.9365, + "std_gray": -3.9801 + }, + "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": 1, + "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": 394, + "center_y": 20, + "radius_px": 20.4217, + "amplitude_px": 14.2203, + "direction_deg": 118.7599, + "twist_ratio": 0.4628 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.458, + "post_blur_sigma": 0.2312, + "post_noise_sigma": 1.2739 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 394, + "center_y": 20, + "radius_px": 20.4217, + "amplitude_px": 14.2203, + "direction_deg": 118.7599, + "twist_ratio": 0.4628 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.7296, + "post_blur_sigma": 0.4206, + "post_noise_sigma": 0.2219 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0067, + "brightness": 3.7033, + "gaussian_blur_sigma": 0.1551, + "motion_applied": false, + "noise_sigma": 7.0737, + "salt_pepper_amount": 0.002296, + "jpeg_quality": 58 + } + }, + "diff_metrics": { + "mean_absdiff": 8.0583, + "p95_absdiff": 33.0, + "changed_pixel_ratio_gt8": 0.227571 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_20/ja_20-01_augmented.png b/dataset-augment/ja_20/ja_20-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..4b9de73c29731515d201980995b9cf5c6832cbd0 --- /dev/null +++ b/dataset-augment/ja_20/ja_20-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cefa05cab1d01e0a69b18514b2f51b6b40f1dbc1956cf06512c586cfd430e5fc +size 1229728 diff --git a/dataset-augment/ja_21/augment_meta.json b/dataset-augment/ja_21/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..aa4b0cdcef8ca9cffa2ac2feada322fff8a13c5d --- /dev/null +++ b/dataset-augment/ja_21/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_21", + "source_sample_id": "01", + "seed": 6257587531000547972, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_21/01/ja_21-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_21/ja_21-01_augmented.png", + "source_relative": "ja_21/01/ja_21-01.png", + "output_relative": "ja_21/ja_21-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 4471.4097, + "blur_score_cv_denoised": 834.9589, + "foreground_ratio": 0.2146, + "mean_gray": 235.6029, + "std_gray": 49.9111 + }, + "metrics_after": { + "blur_score_cv": 2217.7596, + "blur_score_cv_denoised": 334.109, + "foreground_ratio": 0.251528, + "mean_gray": 233.5039, + "std_gray": 40.2618 + }, + "metrics_delta": { + "blur_score_cv": -2253.6501, + "blur_score_cv_denoised": -500.8499, + "foreground_ratio": 0.0369, + "mean_gray": -2.099, + "std_gray": -9.6493 + }, + "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": 1, + "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": 682, + "center_y": 133, + "radius_px": 23.0667, + "amplitude_px": 13.0892, + "direction_deg": 41.126, + "twist_ratio": 0.2844 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6784, + "post_blur_sigma": 0.1967, + "post_noise_sigma": 1.4014 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 682, + "center_y": 133, + "radius_px": 23.0667, + "amplitude_px": 13.0892, + "direction_deg": 41.126, + "twist_ratio": 0.2844 + } + ], + "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.8985, + "post_blur_sigma": 0.4131, + "post_noise_sigma": 1.0177 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0013, + "brightness": -0.4731, + "gaussian_blur_sigma": 0.2514, + "motion_applied": false, + "noise_sigma": 5.7625, + "salt_pepper_amount": 0.001277, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 16.6501, + "p95_absdiff": 102.0, + "changed_pixel_ratio_gt8": 0.235725 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_21/ja_21-01_augmented.png b/dataset-augment/ja_21/ja_21-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a39344b903760113556bc665b927854358feceb1 --- /dev/null +++ b/dataset-augment/ja_21/ja_21-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb18efa7a411707b9202f324e0d4f3c3ae531c17c1429e29c7cd9ecdc695038f +size 946107 diff --git a/dataset-augment/ja_22/augment_meta.json b/dataset-augment/ja_22/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..70b088e7f6a2509a35954d0cf3b2dc7a225e379e --- /dev/null +++ b/dataset-augment/ja_22/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_22", + "source_sample_id": "01", + "seed": 13857669267464652383, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_22/01/ja_22-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_22/ja_22-01_augmented.png", + "source_relative": "ja_22/01/ja_22-01.png", + "output_relative": "ja_22/ja_22-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": 3220.7337, + "blur_score_cv_denoised": 730.9879, + "foreground_ratio": 0.319212, + "mean_gray": 220.0877, + "std_gray": 64.1867 + }, + "metrics_after": { + "blur_score_cv": 3017.2994, + "blur_score_cv_denoised": 403.1837, + "foreground_ratio": 0.330993, + "mean_gray": 219.9658, + "std_gray": 60.2732 + }, + "metrics_delta": { + "blur_score_cv": -203.4343, + "blur_score_cv_denoised": -327.8042, + "foreground_ratio": 0.0118, + "mean_gray": -0.1219, + "std_gray": -3.9135 + }, + "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": 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": 113, + "center_y": 10, + "radius_px": 23.5789, + "amplitude_px": 9.4684, + "direction_deg": 55.5948, + "twist_ratio": 0.4483 + }, + { + "center_x": 852, + "center_y": 535, + "radius_px": 12.5498, + "amplitude_px": 14.6573, + "direction_deg": 111.4974, + "twist_ratio": 0.2778 + }, + { + "center_x": 514, + "center_y": 428, + "radius_px": 25.2216, + "amplitude_px": 10.079, + "direction_deg": 225.6411, + "twist_ratio": 0.3352 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6443, + "post_blur_sigma": 0.2918, + "post_noise_sigma": 0.4745 + }, + "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": 113, + "center_y": 10, + "radius_px": 23.5789, + "amplitude_px": 9.4684, + "direction_deg": 55.5948, + "twist_ratio": 0.4483 + }, + { + "center_x": 852, + "center_y": 535, + "radius_px": 12.5498, + "amplitude_px": 14.6573, + "direction_deg": 111.4974, + "twist_ratio": 0.2778 + }, + { + "center_x": 514, + "center_y": 428, + "radius_px": 25.2216, + "amplitude_px": 10.079, + "direction_deg": 225.6411, + "twist_ratio": 0.3352 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.9921, + "post_blur_sigma": 0.1877, + "post_noise_sigma": 0.0903 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0222, + "brightness": -3.8222, + "gaussian_blur_sigma": 0.193, + "motion_applied": false, + "noise_sigma": 5.9988, + "salt_pepper_amount": 0.002442, + "jpeg_quality": 70 + } + }, + "diff_metrics": { + "mean_absdiff": 16.8307, + "p95_absdiff": 94.0, + "changed_pixel_ratio_gt8": 0.278199 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_22/ja_22-01_augmented.png b/dataset-augment/ja_22/ja_22-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..d8561c6ecd5e65f081fc93e9de090229df50fd57 --- /dev/null +++ b/dataset-augment/ja_22/ja_22-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:417883dc3dabe0ead587554419babdfdc4381383cb1f7d659d9567e6164add4e +size 918238 diff --git a/dataset-augment/ja_23/augment_meta.json b/dataset-augment/ja_23/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..fb813d809b6dcebff859f8711ff9571711a8de0b --- /dev/null +++ b/dataset-augment/ja_23/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_23", + "source_sample_id": "01", + "seed": 5717851382472899093, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_23/01/ja_23-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_23/ja_23-01_augmented.png", + "source_relative": "ja_23/01/ja_23-01.png", + "output_relative": "ja_23/ja_23-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": 4324.8226, + "blur_score_cv_denoised": 724.7668, + "foreground_ratio": 0.228554, + "mean_gray": 234.4733, + "std_gray": 48.5934 + }, + "metrics_after": { + "blur_score_cv": 2303.16, + "blur_score_cv_denoised": 350.6634, + "foreground_ratio": 0.287554, + "mean_gray": 223.018, + "std_gray": 44.5049 + }, + "metrics_delta": { + "blur_score_cv": -2021.6626, + "blur_score_cv_denoised": -374.1034, + "foreground_ratio": 0.059, + "mean_gray": -11.4553, + "std_gray": -4.0885 + }, + "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": 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": 740, + "center_y": 1065, + "radius_px": 30.0011, + "amplitude_px": 10.3658, + "direction_deg": 25.8721, + "twist_ratio": 0.4571 + }, + { + "center_x": 825, + "center_y": 1136, + "radius_px": 19.4648, + "amplitude_px": 11.9141, + "direction_deg": 287.0837, + "twist_ratio": 0.3066 + }, + { + "center_x": 538, + "center_y": 1032, + "radius_px": 18.4164, + "amplitude_px": 9.3416, + "direction_deg": 326.1896, + "twist_ratio": 0.2898 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4719, + "post_blur_sigma": 0.2546, + "post_noise_sigma": 0.7723 + }, + "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": 740, + "center_y": 1065, + "radius_px": 30.0011, + "amplitude_px": 10.3658, + "direction_deg": 25.8721, + "twist_ratio": 0.4571 + }, + { + "center_x": 825, + "center_y": 1136, + "radius_px": 19.4648, + "amplitude_px": 11.9141, + "direction_deg": 287.0837, + "twist_ratio": 0.3066 + }, + { + "center_x": 538, + "center_y": 1032, + "radius_px": 18.4164, + "amplitude_px": 9.3416, + "direction_deg": 326.1896, + "twist_ratio": 0.2898 + } + ], + "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": 1, + "strength": 0.7832, + "post_blur_sigma": 0.1242, + "post_noise_sigma": 1.1075 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9399, + "brightness": 7.2717, + "gaussian_blur_sigma": 0.3171, + "motion_applied": false, + "noise_sigma": 5.1585, + "salt_pepper_amount": 0.002147, + "jpeg_quality": 60 + } + }, + "diff_metrics": { + "mean_absdiff": 16.6753, + "p95_absdiff": 60.0, + "changed_pixel_ratio_gt8": 0.68934 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_23/ja_23-01_augmented.png b/dataset-augment/ja_23/ja_23-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..8ec0c02c1d2eccc9aa53ed3307ea60e5bed458cc --- /dev/null +++ b/dataset-augment/ja_23/ja_23-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d36d6ee46346b236efbf13d8a4e20c62add01e3f6c0830df68a44315ceb680b +size 836822 diff --git a/dataset-augment/ja_24/augment_meta.json b/dataset-augment/ja_24/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..dda285445a1ce4238a60686eb0180ce826364479 --- /dev/null +++ b/dataset-augment/ja_24/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_24", + "source_sample_id": "01", + "seed": 18050526220034913554, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_24/01/ja_24-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_24/ja_24-01_augmented.png", + "source_relative": "ja_24/01/ja_24-01.png", + "output_relative": "ja_24/ja_24-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 1566.4408, + "blur_score_cv_denoised": 227.5098, + "foreground_ratio": 0.273061, + "mean_gray": 215.8827, + "std_gray": 30.2091 + }, + "metrics_after": { + "blur_score_cv": 1030.697, + "blur_score_cv_denoised": 117.5815, + "foreground_ratio": 0.999871, + "mean_gray": 191.8921, + "std_gray": 29.8515 + }, + "metrics_delta": { + "blur_score_cv": -535.7438, + "blur_score_cv_denoised": -109.9283, + "foreground_ratio": 0.7268, + "mean_gray": -23.9906, + "std_gray": -0.3576 + }, + "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": 1, + "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": 161, + "center_y": 452, + "radius_px": 21.6436, + "amplitude_px": 10.5595, + "direction_deg": 187.0898, + "twist_ratio": 0.471 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5571, + "post_blur_sigma": 0.271, + "post_noise_sigma": 1.5416 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 161, + "center_y": 452, + "radius_px": 21.6436, + "amplitude_px": 10.5595, + "direction_deg": 187.0898, + "twist_ratio": 0.471 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.8878, + "post_blur_sigma": 0.1462, + "post_noise_sigma": 1.9081 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9349, + "brightness": -5.4785, + "gaussian_blur_sigma": 0.2783, + "motion_applied": false, + "noise_sigma": 3.1978, + "salt_pepper_amount": 0.00111, + "jpeg_quality": 75 + } + }, + "diff_metrics": { + "mean_absdiff": 24.7684, + "p95_absdiff": 49.0, + "changed_pixel_ratio_gt8": 0.937412 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_24/ja_24-01_augmented.png b/dataset-augment/ja_24/ja_24-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..592f5c1e296a61c7c4834766aededd9f45e744ba --- /dev/null +++ b/dataset-augment/ja_24/ja_24-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8862dac13a853110cb16edc53979cc781c0dc56a5d90e7c08df5b53bb47b289a +size 1303698 diff --git a/dataset-augment/ja_25/augment_meta.json b/dataset-augment/ja_25/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ae101064aabe28e7dbc14da1efd85257fd61889b --- /dev/null +++ b/dataset-augment/ja_25/augment_meta.json @@ -0,0 +1,210 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_25", + "source_sample_id": "01", + "seed": 445436263748004539, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_25/01/ja_25-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_25/ja_25-01_augmented.png", + "source_relative": "ja_25/01/ja_25-01.png", + "output_relative": "ja_25/ja_25-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 4079.2809, + "blur_score_cv_denoised": 711.5788, + "foreground_ratio": 0.286447, + "mean_gray": 226.8846, + "std_gray": 52.1048 + }, + "metrics_after": { + "blur_score_cv": 1172.4702, + "blur_score_cv_denoised": 133.4653, + "foreground_ratio": 0.358449, + "mean_gray": 226.541, + "std_gray": 45.3612 + }, + "metrics_delta": { + "blur_score_cv": -2906.8107, + "blur_score_cv_denoised": -578.1135, + "foreground_ratio": 0.072, + "mean_gray": -0.3436, + "std_gray": -6.7436 + }, + "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": 217, + "center_y": 617, + "radius_px": 30.2267, + "amplitude_px": 13.0757, + "direction_deg": 190.8158, + "twist_ratio": 0.4609 + }, + { + "center_x": 530, + "center_y": 408, + "radius_px": 13.6378, + "amplitude_px": 14.8248, + "direction_deg": 299.9336, + "twist_ratio": 0.4468 + }, + { + "center_x": 711, + "center_y": 234, + "radius_px": 23.6934, + "amplitude_px": 14.5152, + "direction_deg": 351.9886, + "twist_ratio": 0.4459 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4848, + "post_blur_sigma": 0.2538, + "post_noise_sigma": 0.5683 + }, + "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": 217, + "center_y": 617, + "radius_px": 30.2267, + "amplitude_px": 13.0757, + "direction_deg": 190.8158, + "twist_ratio": 0.4609 + }, + { + "center_x": 530, + "center_y": 408, + "radius_px": 13.6378, + "amplitude_px": 14.8248, + "direction_deg": 299.9336, + "twist_ratio": 0.4468 + }, + { + "center_x": 711, + "center_y": 234, + "radius_px": 23.6934, + "amplitude_px": 14.5152, + "direction_deg": 351.9886, + "twist_ratio": 0.4459 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.7903, + "post_blur_sigma": 0.0914, + "post_noise_sigma": 0.0388 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0137, + "brightness": 5.6468, + "gaussian_blur_sigma": 0.3595, + "motion_applied": true, + "motion_kernel": 3, + "motion_angle": 1.3703, + "noise_sigma": 2.9115, + "salt_pepper_amount": 0.001476, + "jpeg_quality": 68 + } + }, + "diff_metrics": { + "mean_absdiff": 19.4577, + "p95_absdiff": 87.0, + "changed_pixel_ratio_gt8": 0.317364 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_25/ja_25-01_augmented.png b/dataset-augment/ja_25/ja_25-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a0c99e1db7edcbe18934a770853539d6e1ca83a9 --- /dev/null +++ b/dataset-augment/ja_25/ja_25-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11f8422b99770984672ab10c2753f7d28d81bf15299c62267d8e7c73fc270204 +size 590317 diff --git a/dataset-augment/ja_26/augment_meta.json b/dataset-augment/ja_26/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..2178d45e7377036c56ad8eb4a6c32524ed0c6f9a --- /dev/null +++ b/dataset-augment/ja_26/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_26", + "source_sample_id": "01", + "seed": 3518995543574998752, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_26/01/ja_26-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_26/ja_26-01_augmented.png", + "source_relative": "ja_26/01/ja_26-01.png", + "output_relative": "ja_26/ja_26-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": 4058.773, + "blur_score_cv_denoised": 787.7928, + "foreground_ratio": 0.393466, + "mean_gray": 200.0188, + "std_gray": 87.254 + }, + "metrics_after": { + "blur_score_cv": 1678.9283, + "blur_score_cv_denoised": 189.0171, + "foreground_ratio": 0.43693, + "mean_gray": 181.2291, + "std_gray": 76.2133 + }, + "metrics_delta": { + "blur_score_cv": -2379.8447, + "blur_score_cv_denoised": -598.7757, + "foreground_ratio": 0.0435, + "mean_gray": -18.7897, + "std_gray": -11.0407 + }, + "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": 1, + "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": 349, + "center_y": 283, + "radius_px": 29.1514, + "amplitude_px": 8.065, + "direction_deg": 281.6707, + "twist_ratio": 0.3437 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.41, + "post_blur_sigma": 0.1299, + "post_noise_sigma": 1.603 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 349, + "center_y": 283, + "radius_px": 29.1514, + "amplitude_px": 8.065, + "direction_deg": 281.6707, + "twist_ratio": 0.3437 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.9315, + "post_blur_sigma": 0.2396, + "post_noise_sigma": 0.8625 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9449, + "brightness": -6.6408, + "gaussian_blur_sigma": 0.1293, + "motion_applied": false, + "noise_sigma": 5.6613, + "salt_pepper_amount": 0.001852, + "jpeg_quality": 56 + } + }, + "diff_metrics": { + "mean_absdiff": 26.547, + "p95_absdiff": 68.0, + "changed_pixel_ratio_gt8": 0.897615 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_26/ja_26-01_augmented.png b/dataset-augment/ja_26/ja_26-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2cf6cd94ae424b848f60ed9152b96d664408a611 --- /dev/null +++ b/dataset-augment/ja_26/ja_26-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66e17ba04abed9a80d8ce0c4c7bcc0cf7ba4342eaf85681e36894a0894f818cf +size 868756 diff --git a/dataset-augment/ja_27/augment_meta.json b/dataset-augment/ja_27/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a3ef4db9b3d3fcdf3991de3b17bb01bd3af3eddf --- /dev/null +++ b/dataset-augment/ja_27/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_27", + "source_sample_id": "01", + "seed": 3827058643984386994, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_27/01/ja_27-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_27/ja_27-01_augmented.png", + "source_relative": "ja_27/01/ja_27-01.png", + "output_relative": "ja_27/ja_27-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": 3805.9479, + "blur_score_cv_denoised": 640.4436, + "foreground_ratio": 0.445251, + "mean_gray": 223.5762, + "std_gray": 45.576 + }, + "metrics_after": { + "blur_score_cv": 1931.6001, + "blur_score_cv_denoised": 221.5037, + "foreground_ratio": 0.482474, + "mean_gray": 221.0909, + "std_gray": 38.6523 + }, + "metrics_delta": { + "blur_score_cv": -1874.3478, + "blur_score_cv_denoised": -418.9399, + "foreground_ratio": 0.0372, + "mean_gray": -2.4853, + "std_gray": -6.9237 + }, + "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": 1, + "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": 458, + "center_y": 713, + "radius_px": 28.7663, + "amplitude_px": 11.4127, + "direction_deg": 302.6473, + "twist_ratio": 0.3955 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5977, + "post_blur_sigma": 0.1975, + "post_noise_sigma": 1.7206 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 458, + "center_y": 713, + "radius_px": 28.7663, + "amplitude_px": 11.4127, + "direction_deg": 302.6473, + "twist_ratio": 0.3955 + } + ], + "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.8652, + "post_blur_sigma": 0.1209, + "post_noise_sigma": 1.9712 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0074, + "brightness": -3.0608, + "gaussian_blur_sigma": 0.2486, + "motion_applied": false, + "noise_sigma": 3.9342, + "salt_pepper_amount": 0.001538, + "jpeg_quality": 78 + } + }, + "diff_metrics": { + "mean_absdiff": 18.6317, + "p95_absdiff": 73.0, + "changed_pixel_ratio_gt8": 0.414936 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_27/ja_27-01_augmented.png b/dataset-augment/ja_27/ja_27-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..7d153060fbebfe3168223bb08907051052e0df25 --- /dev/null +++ b/dataset-augment/ja_27/ja_27-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf2af4e5e4c69276bd607b70dfbae649bb1048961b06e30f24bfe9ebe50562d2 +size 1081485 diff --git a/dataset-augment/ja_28/augment_meta.json b/dataset-augment/ja_28/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..28725c8388827115cbf9c5008a133179f3759282 --- /dev/null +++ b/dataset-augment/ja_28/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_28", + "source_sample_id": "01", + "seed": 6996057736723945891, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_28/01/ja_28-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_28/ja_28-01_augmented.png", + "source_relative": "ja_28/01/ja_28-01.png", + "output_relative": "ja_28/ja_28-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 4590.2519, + "blur_score_cv_denoised": 926.797, + "foreground_ratio": 0.405509, + "mean_gray": 212.3565, + "std_gray": 66.2083 + }, + "metrics_after": { + "blur_score_cv": 2217.9945, + "blur_score_cv_denoised": 351.1191, + "foreground_ratio": 0.4213, + "mean_gray": 209.955, + "std_gray": 54.1269 + }, + "metrics_delta": { + "blur_score_cv": -2372.2574, + "blur_score_cv_denoised": -575.6779, + "foreground_ratio": 0.0158, + "mean_gray": -2.4015, + "std_gray": -12.0814 + }, + "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": 1, + "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": 679, + "center_y": 470, + "radius_px": 27.1767, + "amplitude_px": 11.246, + "direction_deg": 2.9292, + "twist_ratio": 0.4069 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5057, + "post_blur_sigma": 0.3503, + "post_noise_sigma": 1.0311 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 679, + "center_y": 470, + "radius_px": 27.1767, + "amplitude_px": 11.246, + "direction_deg": 2.9292, + "twist_ratio": 0.4069 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.9755, + "post_blur_sigma": 0.3574, + "post_noise_sigma": 1.8105 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9593, + "brightness": 5.0245, + "gaussian_blur_sigma": 0.2002, + "motion_applied": false, + "noise_sigma": 6.6576, + "salt_pepper_amount": 0.001469, + "jpeg_quality": 78 + } + }, + "diff_metrics": { + "mean_absdiff": 15.0205, + "p95_absdiff": 56.0, + "changed_pixel_ratio_gt8": 0.506775 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_28/ja_28-01_augmented.png b/dataset-augment/ja_28/ja_28-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..4ed4df69686348b817934b9ae33fa988c17bb248 --- /dev/null +++ b/dataset-augment/ja_28/ja_28-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:951c617dd9ecf600e265203c63a01a7a36d4cfb3b4b9d4f9e940e26fe1260542 +size 1467179 diff --git a/dataset-augment/ja_3/augment_meta.json b/dataset-augment/ja_3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a6b08359781353d60ede0bd8a82a14d086fe422c --- /dev/null +++ b/dataset-augment/ja_3/augment_meta.json @@ -0,0 +1,194 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_3", + "source_sample_id": "01", + "seed": 18100136739434372046, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_3/01/ja_3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_3/ja_3-01_augmented.png", + "source_relative": "ja_3/01/ja_3-01.png", + "output_relative": "ja_3/ja_3-01_augmented.png", + "source_image_size": { + "width": 1232, + "height": 864 + }, + "output_image_size": { + "width": 1232, + "height": 864 + }, + "allowed_output_sizes": [ + { + "width": 1232, + "height": 864 + }, + { + "width": 864, + "height": 1232 + } + ], + "resolution_enforced": false, + "size_before_enforce": { + "width": 1232, + "height": 864 + }, + "size_after_enforce": { + "width": 1232, + "height": 864 + }, + "target_size": { + "width": 1232, + "height": 864 + }, + "metrics_before": { + "blur_score_cv": 4025.9329, + "blur_score_cv_denoised": 640.9101, + "foreground_ratio": 0.13963, + "mean_gray": 242.7801, + "std_gray": 43.2679 + }, + "metrics_after": { + "blur_score_cv": 1752.5771, + "blur_score_cv_denoised": 261.556, + "foreground_ratio": 0.180231, + "mean_gray": 239.0294, + "std_gray": 38.3465 + }, + "metrics_delta": { + "blur_score_cv": -2273.3558, + "blur_score_cv_denoised": -379.3541, + "foreground_ratio": 0.0406, + "mean_gray": -3.7507, + "std_gray": -4.9214 + }, + "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": 688, + "center_y": 506, + "radius_px": 25.8738, + "amplitude_px": 13.8844, + "direction_deg": 266.9994, + "twist_ratio": 0.4191 + }, + { + "center_x": 992, + "center_y": 468, + "radius_px": 34.3439, + "amplitude_px": 14.4799, + "direction_deg": 129.97, + "twist_ratio": 0.363 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4303, + "post_blur_sigma": 0.2417, + "post_noise_sigma": 0.9235 + }, + "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": 688, + "center_y": 506, + "radius_px": 25.8738, + "amplitude_px": 13.8844, + "direction_deg": 266.9994, + "twist_ratio": 0.4191 + }, + { + "center_x": 992, + "center_y": 468, + "radius_px": 34.3439, + "amplitude_px": 14.4799, + "direction_deg": 129.97, + "twist_ratio": 0.363 + } + ], + "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": 1, + "strength": 0.7664, + "post_blur_sigma": 0.0101, + "post_noise_sigma": 0.8301 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0207, + "brightness": -4.2939, + "gaussian_blur_sigma": 0.253, + "motion_applied": true, + "motion_kernel": 3, + "motion_angle": -3.4346, + "noise_sigma": 2.7691, + "salt_pepper_amount": 0.001907, + "jpeg_quality": 82 + } + }, + "diff_metrics": { + "mean_absdiff": 9.3473, + "p95_absdiff": 58.0, + "changed_pixel_ratio_gt8": 0.162376 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_3/ja_3-01_augmented.png b/dataset-augment/ja_3/ja_3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..77cccf311b4d91dcbb1ad8f5d4e988ef751b73c7 --- /dev/null +++ b/dataset-augment/ja_3/ja_3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a1f70b8cf286b8ba3be492ec3faed704740b4209ce0f348cf8bcb3ce2ed0e54 +size 599901 diff --git a/dataset-augment/ja_4/augment_meta.json b/dataset-augment/ja_4/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..9378d4ffb0d797ed1a9b5ce02543e8f31b916a8f --- /dev/null +++ b/dataset-augment/ja_4/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_4", + "source_sample_id": "01", + "seed": 16145523908704357825, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_4/01/ja_4-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_4/ja_4-01_augmented.png", + "source_relative": "ja_4/01/ja_4-01.png", + "output_relative": "ja_4/ja_4-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": 2346.3529, + "blur_score_cv_denoised": 395.8544, + "foreground_ratio": 0.129882, + "mean_gray": 243.1897, + "std_gray": 36.6363 + }, + "metrics_after": { + "blur_score_cv": 1009.1915, + "blur_score_cv_denoised": 203.5792, + "foreground_ratio": 0.166505, + "mean_gray": 224.819, + "std_gray": 37.9807 + }, + "metrics_delta": { + "blur_score_cv": -1337.1614, + "blur_score_cv_denoised": -192.2752, + "foreground_ratio": 0.0366, + "mean_gray": -18.3707, + "std_gray": 1.3444 + }, + "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": 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": 457, + "center_y": 384, + "radius_px": 20.1224, + "amplitude_px": 13.058, + "direction_deg": 281.2659, + "twist_ratio": 0.2835 + }, + { + "center_x": 510, + "center_y": 629, + "radius_px": 31.894, + "amplitude_px": 14.8003, + "direction_deg": 194.0154, + "twist_ratio": 0.282 + }, + { + "center_x": 594, + "center_y": 530, + "radius_px": 26.1463, + "amplitude_px": 12.029, + "direction_deg": 357.0361, + "twist_ratio": 0.2892 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.6514, + "post_blur_sigma": 0.3498, + "post_noise_sigma": 1.7354 + }, + "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": 457, + "center_y": 384, + "radius_px": 20.1224, + "amplitude_px": 13.058, + "direction_deg": 281.2659, + "twist_ratio": 0.2835 + }, + { + "center_x": 510, + "center_y": 629, + "radius_px": 31.894, + "amplitude_px": 14.8003, + "direction_deg": 194.0154, + "twist_ratio": 0.282 + }, + { + "center_x": 594, + "center_y": 530, + "radius_px": 26.1463, + "amplitude_px": 12.029, + "direction_deg": 357.0361, + "twist_ratio": 0.2892 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.8754, + "post_blur_sigma": 0.2614, + "post_noise_sigma": 1.2328 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9382, + "brightness": 1.6923, + "gaussian_blur_sigma": 0.3594, + "motion_applied": false, + "noise_sigma": 3.6558, + "salt_pepper_amount": 0.000712, + "jpeg_quality": 72 + } + }, + "diff_metrics": { + "mean_absdiff": 20.3709, + "p95_absdiff": 54.0, + "changed_pixel_ratio_gt8": 0.97686 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_4/ja_4-01_augmented.png b/dataset-augment/ja_4/ja_4-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..c1c244d38cbcc356008f57b1132d37bbef2354aa --- /dev/null +++ b/dataset-augment/ja_4/ja_4-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbbb69a0176f2ce6fbeca90b8fd2943418a12e52812b4ebfc58c6fdc7aa54069 +size 699480 diff --git a/dataset-augment/ja_5/augment_meta.json b/dataset-augment/ja_5/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..849ca618c1a927fd3728cbcbdfdcbef1326a8100 --- /dev/null +++ b/dataset-augment/ja_5/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_5", + "source_sample_id": "01", + "seed": 15107425706376377822, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_5/01/ja_5-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_5/ja_5-01_augmented.png", + "source_relative": "ja_5/01/ja_5-01.png", + "output_relative": "ja_5/ja_5-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.234, + "blur_score_cv_denoised": 567.3773, + "foreground_ratio": 0.188303, + "mean_gray": 232.6517, + "std_gray": 44.6993 + }, + "metrics_after": { + "blur_score_cv": 1966.4895, + "blur_score_cv_denoised": 314.8864, + "foreground_ratio": 0.207012, + "mean_gray": 232.1503, + "std_gray": 39.644 + }, + "metrics_delta": { + "blur_score_cv": -874.7445, + "blur_score_cv_denoised": -252.4909, + "foreground_ratio": 0.0187, + "mean_gray": -0.5014, + "std_gray": -5.0553 + }, + "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": "ellipse", + "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": 763, + "center_y": 278, + "radius_px": 15.1853, + "amplitude_px": 14.3251, + "direction_deg": 107.8885, + "twist_ratio": 0.3975 + }, + { + "center_x": 125, + "center_y": 61, + "radius_px": 20.3072, + "amplitude_px": 12.6826, + "direction_deg": 318.3884, + "twist_ratio": 0.3491 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4135, + "post_blur_sigma": 0.273, + "post_noise_sigma": 0.8887 + }, + "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": 763, + "center_y": 278, + "radius_px": 15.1853, + "amplitude_px": 14.3251, + "direction_deg": 107.8885, + "twist_ratio": 0.3975 + }, + { + "center_x": 125, + "center_y": 61, + "radius_px": 20.3072, + "amplitude_px": 12.6826, + "direction_deg": 318.3884, + "twist_ratio": 0.3491 + } + ], + "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": 1, + "strength": 0.8515, + "post_blur_sigma": 0.0821, + "post_noise_sigma": 0.9844 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0105, + "brightness": -1.6217, + "gaussian_blur_sigma": 0.2959, + "motion_applied": false, + "noise_sigma": 2.3544, + "salt_pepper_amount": 0.00135, + "jpeg_quality": 88 + } + }, + "diff_metrics": { + "mean_absdiff": 8.0077, + "p95_absdiff": 49.0, + "changed_pixel_ratio_gt8": 0.169228 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_5/ja_5-01_augmented.png b/dataset-augment/ja_5/ja_5-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..548d62b9e3c775d7c6d24d67c640e08619bd3f30 --- /dev/null +++ b/dataset-augment/ja_5/ja_5-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d422d8ce728260a23b3e917401bcac1b8600b7903a90aeac178fbfcfd6ebf0a +size 1121499 diff --git a/dataset-augment/ja_6/augment_meta.json b/dataset-augment/ja_6/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c61f36a7c6aee4dde1f391de62c84b2e7127a762 --- /dev/null +++ b/dataset-augment/ja_6/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_6", + "source_sample_id": "01", + "seed": 17498959083705573958, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_6/01/ja_6-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_6/ja_6-01_augmented.png", + "source_relative": "ja_6/01/ja_6-01.png", + "output_relative": "ja_6/ja_6-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": 3166.9464, + "blur_score_cv_denoised": 538.3375, + "foreground_ratio": 0.176984, + "mean_gray": 239.5254, + "std_gray": 41.7923 + }, + "metrics_after": { + "blur_score_cv": 2370.0269, + "blur_score_cv_denoised": 323.8165, + "foreground_ratio": 0.206203, + "mean_gray": 237.3456, + "std_gray": 42.7902 + }, + "metrics_delta": { + "blur_score_cv": -796.9195, + "blur_score_cv_denoised": -214.521, + "foreground_ratio": 0.0292, + "mean_gray": -2.1798, + "std_gray": 0.9979 + }, + "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": 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": 282, + "center_y": 273, + "radius_px": 34.5455, + "amplitude_px": 9.5153, + "direction_deg": 123.13, + "twist_ratio": 0.3249 + }, + { + "center_x": 559, + "center_y": 834, + "radius_px": 24.427, + "amplitude_px": 11.6725, + "direction_deg": 218.3666, + "twist_ratio": 0.3866 + }, + { + "center_x": 271, + "center_y": 988, + "radius_px": 16.845, + "amplitude_px": 8.3203, + "direction_deg": 23.6066, + "twist_ratio": 0.3612 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5424, + "post_blur_sigma": 0.2236, + "post_noise_sigma": 1.5059 + }, + "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": 282, + "center_y": 273, + "radius_px": 34.5455, + "amplitude_px": 9.5153, + "direction_deg": 123.13, + "twist_ratio": 0.3249 + }, + { + "center_x": 559, + "center_y": 834, + "radius_px": 24.427, + "amplitude_px": 11.6725, + "direction_deg": 218.3666, + "twist_ratio": 0.3866 + }, + { + "center_x": 271, + "center_y": 988, + "radius_px": 16.845, + "amplitude_px": 8.3203, + "direction_deg": 23.6066, + "twist_ratio": 0.3612 + } + ], + "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": "cross", + "iterations": 1, + "strength": 0.7758, + "post_blur_sigma": 0.2666, + "post_noise_sigma": 0.3481 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0386, + "brightness": 3.1451, + "gaussian_blur_sigma": 0.2984, + "motion_applied": false, + "noise_sigma": 2.2051, + "salt_pepper_amount": 0.002404, + "jpeg_quality": 63 + } + }, + "diff_metrics": { + "mean_absdiff": 8.1275, + "p95_absdiff": 48.0, + "changed_pixel_ratio_gt8": 0.16805 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_6/ja_6-01_augmented.png b/dataset-augment/ja_6/ja_6-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..8832697483f5f69e8e3c090ccdcd0e206986ebd6 --- /dev/null +++ b/dataset-augment/ja_6/ja_6-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe98ce4a50414a0022adb229c5166275e087ec6add8a97e0a67c87dfd6fb6207 +size 503229 diff --git a/dataset-augment/ja_7/augment_meta.json b/dataset-augment/ja_7/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..53bd45ed0031fa04256137d3b93cf37b6a18ac6b --- /dev/null +++ b/dataset-augment/ja_7/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_7", + "source_sample_id": "01", + "seed": 1110027074267043890, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_7/01/ja_7-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_7/ja_7-01_augmented.png", + "source_relative": "ja_7/01/ja_7-01.png", + "output_relative": "ja_7/ja_7-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": 3017.4284, + "blur_score_cv_denoised": 609.2761, + "foreground_ratio": 0.16078, + "mean_gray": 238.7677, + "std_gray": 45.9551 + }, + "metrics_after": { + "blur_score_cv": 2259.9871, + "blur_score_cv_denoised": 229.3907, + "foreground_ratio": 0.200053, + "mean_gray": 235.7682, + "std_gray": 37.2997 + }, + "metrics_delta": { + "blur_score_cv": -757.4413, + "blur_score_cv_denoised": -379.8854, + "foreground_ratio": 0.0393, + "mean_gray": -2.9995, + "std_gray": -8.6554 + }, + "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": 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": 669, + "center_y": 346, + "radius_px": 28.5236, + "amplitude_px": 8.6124, + "direction_deg": 246.1698, + "twist_ratio": 0.3135 + }, + { + "center_x": 635, + "center_y": 408, + "radius_px": 35.3643, + "amplitude_px": 9.8013, + "direction_deg": 60.6782, + "twist_ratio": 0.3466 + }, + { + "center_x": 77, + "center_y": 498, + "radius_px": 24.9739, + "amplitude_px": 8.7789, + "direction_deg": 214.4267, + "twist_ratio": 0.256 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5262, + "post_blur_sigma": 0.3077, + "post_noise_sigma": 1.7944 + }, + "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": 669, + "center_y": 346, + "radius_px": 28.5236, + "amplitude_px": 8.6124, + "direction_deg": 246.1698, + "twist_ratio": 0.3135 + }, + { + "center_x": 635, + "center_y": 408, + "radius_px": 35.3643, + "amplitude_px": 9.8013, + "direction_deg": 60.6782, + "twist_ratio": 0.3466 + }, + { + "center_x": 77, + "center_y": 498, + "radius_px": 24.9739, + "amplitude_px": 8.7789, + "direction_deg": 214.4267, + "twist_ratio": 0.256 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.761, + "post_blur_sigma": 0.1593, + "post_noise_sigma": 0.9617 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9663, + "brightness": 7.1228, + "gaussian_blur_sigma": 0.3058, + "motion_applied": false, + "noise_sigma": 3.6279, + "salt_pepper_amount": 0.002381, + "jpeg_quality": 69 + } + }, + "diff_metrics": { + "mean_absdiff": 12.2521, + "p95_absdiff": 73.0, + "changed_pixel_ratio_gt8": 0.189944 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_7/ja_7-01_augmented.png b/dataset-augment/ja_7/ja_7-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..4894efd78ff993c83fa3c494d12d53b2f4d7eba8 --- /dev/null +++ b/dataset-augment/ja_7/ja_7-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f5cb1ab7ffeed7d117a396e65b59653f620d7ced8e9a4e73d94aea096ad71c2 +size 698972 diff --git a/dataset-augment/ja_8/augment_meta.json b/dataset-augment/ja_8/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c9608ff901a02f22e7f78b81fd3e1a5720da029e --- /dev/null +++ b/dataset-augment/ja_8/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_8", + "source_sample_id": "01", + "seed": 6249426026301559718, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_8/01/ja_8-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_8/ja_8-01_augmented.png", + "source_relative": "ja_8/01/ja_8-01.png", + "output_relative": "ja_8/ja_8-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": 3206.8652, + "blur_score_cv_denoised": 542.5251, + "foreground_ratio": 0.168819, + "mean_gray": 239.2949, + "std_gray": 43.0321 + }, + "metrics_after": { + "blur_score_cv": 1474.1663, + "blur_score_cv_denoised": 252.6649, + "foreground_ratio": 0.196879, + "mean_gray": 236.7142, + "std_gray": 37.2656 + }, + "metrics_delta": { + "blur_score_cv": -1732.6989, + "blur_score_cv_denoised": -289.8602, + "foreground_ratio": 0.0281, + "mean_gray": -2.5807, + "std_gray": -5.7665 + }, + "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": 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": 143, + "center_y": 529, + "radius_px": 34.0008, + "amplitude_px": 9.779, + "direction_deg": 268.2099, + "twist_ratio": 0.2487 + }, + { + "center_x": 186, + "center_y": 1157, + "radius_px": 29.4278, + "amplitude_px": 11.654, + "direction_deg": 55.1248, + "twist_ratio": 0.3704 + }, + { + "center_x": 82, + "center_y": 386, + "radius_px": 16.2696, + "amplitude_px": 12.6073, + "direction_deg": 66.6356, + "twist_ratio": 0.4106 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4146, + "post_blur_sigma": 0.2692, + "post_noise_sigma": 1.0538 + }, + "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": 143, + "center_y": 529, + "radius_px": 34.0008, + "amplitude_px": 9.779, + "direction_deg": 268.2099, + "twist_ratio": 0.2487 + }, + { + "center_x": 186, + "center_y": 1157, + "radius_px": 29.4278, + "amplitude_px": 11.654, + "direction_deg": 55.1248, + "twist_ratio": 0.3704 + }, + { + "center_x": 82, + "center_y": 386, + "radius_px": 16.2696, + "amplitude_px": 12.6073, + "direction_deg": 66.6356, + "twist_ratio": 0.4106 + } + ], + "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": 1, + "strength": 0.8865, + "post_blur_sigma": 0.3128, + "post_noise_sigma": 1.4551 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9777, + "brightness": 7.3498, + "gaussian_blur_sigma": 0.1334, + "motion_applied": false, + "noise_sigma": 7.8561, + "salt_pepper_amount": 0.000704, + "jpeg_quality": 88 + } + }, + "diff_metrics": { + "mean_absdiff": 9.6982, + "p95_absdiff": 55.0, + "changed_pixel_ratio_gt8": 0.193621 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_8/ja_8-01_augmented.png b/dataset-augment/ja_8/ja_8-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2c6f550ba07e2e23f1c46788be3e83163ea6bfe0 --- /dev/null +++ b/dataset-augment/ja_8/ja_8-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56002a6a5f5bfeae4385619c487bf1fb5a017227fb75e0ab1931d2b2f1728016 +size 1496512 diff --git a/dataset-augment/ja_9/augment_meta.json b/dataset-augment/ja_9/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..1cdc01b9c7660c64db666acfbfb8390c19a3923a --- /dev/null +++ b/dataset-augment/ja_9/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "ja_9", + "source_sample_id": "01", + "seed": 6894056475323468034, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/ja_9/01/ja_9-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/ja_9/ja_9-01_augmented.png", + "source_relative": "ja_9/01/ja_9-01.png", + "output_relative": "ja_9/ja_9-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": 3059.6963, + "blur_score_cv_denoised": 505.7691, + "foreground_ratio": 0.275143, + "mean_gray": 235.3587, + "std_gray": 40.5454 + }, + "metrics_after": { + "blur_score_cv": 2216.6963, + "blur_score_cv_denoised": 275.8028, + "foreground_ratio": 0.309885, + "mean_gray": 226.9598, + "std_gray": 35.004 + }, + "metrics_delta": { + "blur_score_cv": -843.0, + "blur_score_cv_denoised": -229.9663, + "foreground_ratio": 0.0347, + "mean_gray": -8.3989, + "std_gray": -5.5414 + }, + "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": "ellipse", + "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": 55, + "center_y": 1146, + "radius_px": 17.1261, + "amplitude_px": 12.1778, + "direction_deg": 239.1917, + "twist_ratio": 0.352 + }, + { + "center_x": 705, + "center_y": 1053, + "radius_px": 34.2134, + "amplitude_px": 13.1122, + "direction_deg": 20.2088, + "twist_ratio": 0.4561 + }, + { + "center_x": 124, + "center_y": 319, + "radius_px": 13.3452, + "amplitude_px": 9.9525, + "direction_deg": 223.6868, + "twist_ratio": 0.3676 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.385, + "post_blur_sigma": 0.1209, + "post_noise_sigma": 0.7719 + }, + "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": 55, + "center_y": 1146, + "radius_px": 17.1261, + "amplitude_px": 12.1778, + "direction_deg": 239.1917, + "twist_ratio": 0.352 + }, + { + "center_x": 705, + "center_y": 1053, + "radius_px": 34.2134, + "amplitude_px": 13.1122, + "direction_deg": 20.2088, + "twist_ratio": 0.4561 + }, + { + "center_x": 124, + "center_y": 319, + "radius_px": 13.3452, + "amplitude_px": 9.9525, + "direction_deg": 223.6868, + "twist_ratio": 0.3676 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.8615, + "post_blur_sigma": 0.2263, + "post_noise_sigma": 1.4412 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9726, + "brightness": -0.5147, + "gaussian_blur_sigma": 0.3049, + "motion_applied": false, + "noise_sigma": 7.9692, + "salt_pepper_amount": 0.001539, + "jpeg_quality": 59 + } + }, + "diff_metrics": { + "mean_absdiff": 13.842, + "p95_absdiff": 45.0, + "changed_pixel_ratio_gt8": 0.613121 + } +} \ No newline at end of file diff --git a/dataset-augment/ja_9/ja_9-01_augmented.png b/dataset-augment/ja_9/ja_9-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..864d1405b8b0ddf2efa6d561b6881d38f4155d12 --- /dev/null +++ b/dataset-augment/ja_9/ja_9-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6137a555cf70d5bb198d1a49de792f0ce1db0d2c0d419c6101cc8f482c27a6fc +size 1031296 diff --git a/dataset-augment/pt_1/augment_meta.json b/dataset-augment/pt_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..5026ea00f3875cc6db90c5274356479f137ba2ea --- /dev/null +++ b/dataset-augment/pt_1/augment_meta.json @@ -0,0 +1,210 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "pt_1", + "source_sample_id": "01", + "seed": 13470771476169695320, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/pt_1/01/pt_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/pt_1/pt_1-01_augmented.png", + "source_relative": "pt_1/01/pt_1-01.png", + "output_relative": "pt_1/pt_1-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": 4338.7635, + "blur_score_cv_denoised": 685.4137, + "foreground_ratio": 0.210265, + "mean_gray": 236.2891, + "std_gray": 45.6653 + }, + "metrics_after": { + "blur_score_cv": 1014.0872, + "blur_score_cv_denoised": 110.2467, + "foreground_ratio": 0.2287, + "mean_gray": 234.9068, + "std_gray": 29.1881 + }, + "metrics_delta": { + "blur_score_cv": -3324.6763, + "blur_score_cv_denoised": -575.167, + "foreground_ratio": 0.0184, + "mean_gray": -1.3823, + "std_gray": -16.4772 + }, + "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": 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": 76, + "center_y": 673, + "radius_px": 33.2537, + "amplitude_px": 9.3157, + "direction_deg": 328.9445, + "twist_ratio": 0.4497 + }, + { + "center_x": 393, + "center_y": 169, + "radius_px": 34.6289, + "amplitude_px": 9.3324, + "direction_deg": 229.2449, + "twist_ratio": 0.445 + }, + { + "center_x": 500, + "center_y": 487, + "radius_px": 27.0011, + "amplitude_px": 10.1425, + "direction_deg": 213.7632, + "twist_ratio": 0.4286 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.455, + "post_blur_sigma": 0.2439, + "post_noise_sigma": 1.1413 + }, + "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": 76, + "center_y": 673, + "radius_px": 33.2537, + "amplitude_px": 9.3157, + "direction_deg": 328.9445, + "twist_ratio": 0.4497 + }, + { + "center_x": 393, + "center_y": 169, + "radius_px": 34.6289, + "amplitude_px": 9.3324, + "direction_deg": 229.2449, + "twist_ratio": 0.445 + }, + { + "center_x": 500, + "center_y": 487, + "radius_px": 27.0011, + "amplitude_px": 10.1425, + "direction_deg": 213.7632, + "twist_ratio": 0.4286 + } + ], + "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.9636, + "post_blur_sigma": 0.4369, + "post_noise_sigma": 2.0788 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0045, + "brightness": -4.9621, + "gaussian_blur_sigma": 0.2933, + "motion_applied": true, + "motion_kernel": 3, + "motion_angle": -7.4269, + "noise_sigma": 6.8418, + "salt_pepper_amount": 0.001096, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 16.7287, + "p95_absdiff": 83.0, + "changed_pixel_ratio_gt8": 0.336305 + } +} \ No newline at end of file diff --git a/dataset-augment/pt_1/pt_1-01_augmented.png b/dataset-augment/pt_1/pt_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..7b44fc6597ba06ddc21eef166dcd5089e272d72c --- /dev/null +++ b/dataset-augment/pt_1/pt_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34117ab4ff2e6d24157465a7416a8b4bd1456ddf0f8ae73c504f1408af695b4d +size 1058867 diff --git a/dataset-augment/pt_2/augment_meta.json b/dataset-augment/pt_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..6bb913c378d8c2675386027f7ca14b6f177e92a0 --- /dev/null +++ b/dataset-augment/pt_2/augment_meta.json @@ -0,0 +1,178 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "pt_2", + "source_sample_id": "01", + "seed": 13018525685084894530, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/pt_2/01/pt_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/pt_2/pt_2-01_augmented.png", + "source_relative": "pt_2/01/pt_2-01.png", + "output_relative": "pt_2/pt_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": 6159.5234, + "blur_score_cv_denoised": 1169.1911, + "foreground_ratio": 0.326984, + "mean_gray": 225.9452, + "std_gray": 57.1979 + }, + "metrics_after": { + "blur_score_cv": 1865.9571, + "blur_score_cv_denoised": 236.8268, + "foreground_ratio": 0.370508, + "mean_gray": 227.3796, + "std_gray": 42.1397 + }, + "metrics_delta": { + "blur_score_cv": -4293.5663, + "blur_score_cv_denoised": -932.3643, + "foreground_ratio": 0.0435, + "mean_gray": 1.4344, + "std_gray": -15.0582 + }, + "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": 1, + "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": 624, + "center_y": 312, + "radius_px": 27.346, + "amplitude_px": 9.1503, + "direction_deg": 350.9579, + "twist_ratio": 0.3713 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.626, + "post_blur_sigma": 0.2583, + "post_noise_sigma": 1.3062 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 624, + "center_y": 312, + "radius_px": 27.346, + "amplitude_px": 9.1503, + "direction_deg": 350.9579, + "twist_ratio": 0.3713 + } + ], + "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.7841, + "post_blur_sigma": 0.2033, + "post_noise_sigma": 1.119 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0375, + "brightness": 4.8449, + "gaussian_blur_sigma": 0.3035, + "motion_applied": true, + "motion_kernel": 5, + "motion_angle": -6.5551, + "noise_sigma": 6.3005, + "salt_pepper_amount": 0.001979, + "jpeg_quality": 66 + } + }, + "diff_metrics": { + "mean_absdiff": 19.9375, + "p95_absdiff": 99.0, + "changed_pixel_ratio_gt8": 0.324972 + } +} \ No newline at end of file diff --git a/dataset-augment/pt_2/pt_2-01_augmented.png b/dataset-augment/pt_2/pt_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..809a59a0bff4c2793b18468e16a056aa4cd74a82 --- /dev/null +++ b/dataset-augment/pt_2/pt_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2be77c7f4fb4634d0932fb23156b61a7ffd1ae4174edc3f352271f6b923d5f2 +size 819252 diff --git a/dataset-augment/pt_3/augment_meta.json b/dataset-augment/pt_3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..209e2cb013b1c41df052871f31380cc740c0dd2e --- /dev/null +++ b/dataset-augment/pt_3/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "pt_3", + "source_sample_id": "01", + "seed": 2931545934054037313, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/pt_3/01/pt_3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/pt_3/pt_3-01_augmented.png", + "source_relative": "pt_3/01/pt_3-01.png", + "output_relative": "pt_3/pt_3-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": 4205.5859, + "blur_score_cv_denoised": 709.7693, + "foreground_ratio": 0.344822, + "mean_gray": 219.0, + "std_gray": 49.3639 + }, + "metrics_after": { + "blur_score_cv": 2341.366, + "blur_score_cv_denoised": 255.1523, + "foreground_ratio": 0.445942, + "mean_gray": 213.7156, + "std_gray": 54.5996 + }, + "metrics_delta": { + "blur_score_cv": -1864.2199, + "blur_score_cv_denoised": -454.617, + "foreground_ratio": 0.1011, + "mean_gray": -5.2844, + "std_gray": 5.2357 + }, + "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": 692, + "center_y": 649, + "radius_px": 33.3842, + "amplitude_px": 12.1564, + "direction_deg": 174.5276, + "twist_ratio": 0.3805 + }, + { + "center_x": 129, + "center_y": 169, + "radius_px": 26.4644, + "amplitude_px": 14.0, + "direction_deg": 10.0726, + "twist_ratio": 0.3891 + }, + { + "center_x": 237, + "center_y": 73, + "radius_px": 34.8827, + "amplitude_px": 12.918, + "direction_deg": 249.0655, + "twist_ratio": 0.4439 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4801, + "post_blur_sigma": 0.3794, + "post_noise_sigma": 1.749 + }, + "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": 692, + "center_y": 649, + "radius_px": 33.3842, + "amplitude_px": 12.1564, + "direction_deg": 174.5276, + "twist_ratio": 0.3805 + }, + { + "center_x": 129, + "center_y": 169, + "radius_px": 26.4644, + "amplitude_px": 14.0, + "direction_deg": 10.0726, + "twist_ratio": 0.3891 + }, + { + "center_x": 237, + "center_y": 73, + "radius_px": 34.8827, + "amplitude_px": 12.918, + "direction_deg": 249.0655, + "twist_ratio": 0.4439 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.7367, + "post_blur_sigma": 0.2141, + "post_noise_sigma": 0.3307 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0557, + "brightness": -3.5455, + "gaussian_blur_sigma": 0.2119, + "motion_applied": false, + "noise_sigma": 5.8796, + "salt_pepper_amount": 0.00228, + "jpeg_quality": 87 + } + }, + "diff_metrics": { + "mean_absdiff": 18.7531, + "p95_absdiff": 77.0, + "changed_pixel_ratio_gt8": 0.47459 + } +} \ No newline at end of file diff --git a/dataset-augment/pt_3/pt_3-01_augmented.png b/dataset-augment/pt_3/pt_3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..5db4ef15a1619ad59a813522638f4dd5361dc05f --- /dev/null +++ b/dataset-augment/pt_3/pt_3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d602aec5cf020581ead8dbe489d6013e6748e1e03266139286bab88afa8c314 +size 1528856 diff --git a/dataset-augment/zn_1/augment_meta.json b/dataset-augment/zn_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..aa59a03c7f504cc9c657163bc16231311a428e6e --- /dev/null +++ b/dataset-augment/zn_1/augment_meta.json @@ -0,0 +1,210 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_1", + "source_sample_id": "01", + "seed": 14045580379966086313, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_1/01/zn_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_1/zn_1-01_augmented.png", + "source_relative": "zn_1/01/zn_1-01.png", + "output_relative": "zn_1/zn_1-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": 3751.9878, + "blur_score_cv_denoised": 508.6729, + "foreground_ratio": 0.202209, + "mean_gray": 237.265, + "std_gray": 44.2615 + }, + "metrics_after": { + "blur_score_cv": 1325.2143, + "blur_score_cv_denoised": 91.2884, + "foreground_ratio": 0.228408, + "mean_gray": 219.2366, + "std_gray": 29.0426 + }, + "metrics_delta": { + "blur_score_cv": -2426.7735, + "blur_score_cv_denoised": -417.3845, + "foreground_ratio": 0.0262, + "mean_gray": -18.0284, + "std_gray": -15.2189 + }, + "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": 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": 79, + "center_y": 794, + "radius_px": 13.6317, + "amplitude_px": 11.425, + "direction_deg": 66.1958, + "twist_ratio": 0.3737 + }, + { + "center_x": 341, + "center_y": 776, + "radius_px": 29.3058, + "amplitude_px": 13.2411, + "direction_deg": 339.3128, + "twist_ratio": 0.2637 + }, + { + "center_x": 438, + "center_y": 234, + "radius_px": 30.0897, + "amplitude_px": 8.9908, + "direction_deg": 260.5896, + "twist_ratio": 0.268 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4325, + "post_blur_sigma": 0.305, + "post_noise_sigma": 1.6781 + }, + "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": 79, + "center_y": 794, + "radius_px": 13.6317, + "amplitude_px": 11.425, + "direction_deg": 66.1958, + "twist_ratio": 0.3737 + }, + { + "center_x": 341, + "center_y": 776, + "radius_px": 29.3058, + "amplitude_px": 13.2411, + "direction_deg": 339.3128, + "twist_ratio": 0.2637 + }, + { + "center_x": 438, + "center_y": 234, + "radius_px": 30.0897, + "amplitude_px": 8.9908, + "direction_deg": 260.5896, + "twist_ratio": 0.268 + } + ], + "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.9109, + "post_blur_sigma": 0.2908, + "post_noise_sigma": 2.0669 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9384, + "brightness": -5.1182, + "gaussian_blur_sigma": 0.3584, + "motion_applied": true, + "motion_kernel": 3, + "motion_angle": -3.2377, + "noise_sigma": 7.4702, + "salt_pepper_amount": 0.001593, + "jpeg_quality": 73 + } + }, + "diff_metrics": { + "mean_absdiff": 28.368, + "p95_absdiff": 72.0, + "changed_pixel_ratio_gt8": 0.97898 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_1/zn_1-01_augmented.png b/dataset-augment/zn_1/zn_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..286f78d0d17d5f4f5ebf39c0096ac920662d898a --- /dev/null +++ b/dataset-augment/zn_1/zn_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c2402ec1ff4ff0a000297b084872e1693d388ad0aabe30ebc4865a08fabe178 +size 1155651 diff --git a/dataset-augment/zn_10/augment_meta.json b/dataset-augment/zn_10/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..9df01185c5ee2932b3fa9569fa408c6390027f55 --- /dev/null +++ b/dataset-augment/zn_10/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_10", + "source_sample_id": "01", + "seed": 15503482333026124682, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_10/01/zn_10-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_10/zn_10-01_augmented.png", + "source_relative": "zn_10/01/zn_10-01.png", + "output_relative": "zn_10/zn_10-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": 3201.139, + "blur_score_cv_denoised": 455.3321, + "foreground_ratio": 0.162961, + "mean_gray": 239.7539, + "std_gray": 43.2549 + }, + "metrics_after": { + "blur_score_cv": 1687.0264, + "blur_score_cv_denoised": 224.1885, + "foreground_ratio": 0.219621, + "mean_gray": 218.6105, + "std_gray": 42.2996 + }, + "metrics_delta": { + "blur_score_cv": -1514.1126, + "blur_score_cv_denoised": -231.1436, + "foreground_ratio": 0.0567, + "mean_gray": -21.1434, + "std_gray": -0.9553 + }, + "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": 266, + "center_y": 460, + "radius_px": 22.6015, + "amplitude_px": 12.7127, + "direction_deg": 291.5396, + "twist_ratio": 0.2572 + }, + { + "center_x": 142, + "center_y": 722, + "radius_px": 16.7987, + "amplitude_px": 10.6839, + "direction_deg": 174.32, + "twist_ratio": 0.3423 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5401, + "post_blur_sigma": 0.3569, + "post_noise_sigma": 1.7004 + }, + "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": 266, + "center_y": 460, + "radius_px": 22.6015, + "amplitude_px": 12.7127, + "direction_deg": 291.5396, + "twist_ratio": 0.2572 + }, + { + "center_x": 142, + "center_y": 722, + "radius_px": 16.7987, + "amplitude_px": 10.6839, + "direction_deg": 174.32, + "twist_ratio": 0.3423 + } + ], + "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": 1, + "strength": 0.7488, + "post_blur_sigma": 0.1073, + "post_noise_sigma": 1.8935 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.94, + "brightness": -1.7012, + "gaussian_blur_sigma": 0.3223, + "motion_applied": false, + "noise_sigma": 6.8792, + "salt_pepper_amount": 0.001488, + "jpeg_quality": 65 + } + }, + "diff_metrics": { + "mean_absdiff": 23.3697, + "p95_absdiff": 57.0, + "changed_pixel_ratio_gt8": 0.969855 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_10/zn_10-01_augmented.png b/dataset-augment/zn_10/zn_10-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..1c8431606ac220b59e0d95d709262917e6ccd670 --- /dev/null +++ b/dataset-augment/zn_10/zn_10-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:420bf552d6519d55c62ff3ac966fc318c73f8f3bf7b62a1932bd4628a14cffcb +size 977878 diff --git a/dataset-augment/zn_11/augment_meta.json b/dataset-augment/zn_11/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..1082e50764d2b9668e51ff725a38d70b4f618cfc --- /dev/null +++ b/dataset-augment/zn_11/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_11", + "source_sample_id": "01", + "seed": 5937773587998216339, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_11/01/zn_11-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_11/zn_11-01_augmented.png", + "source_relative": "zn_11/01/zn_11-01.png", + "output_relative": "zn_11/zn_11-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": 4807.6012, + "blur_score_cv_denoised": 709.9913, + "foreground_ratio": 0.265079, + "mean_gray": 231.4559, + "std_gray": 51.2731 + }, + "metrics_after": { + "blur_score_cv": 1247.6288, + "blur_score_cv_denoised": 197.4082, + "foreground_ratio": 0.272953, + "mean_gray": 221.1615, + "std_gray": 34.0965 + }, + "metrics_delta": { + "blur_score_cv": -3559.9724, + "blur_score_cv_denoised": -512.5831, + "foreground_ratio": 0.0079, + "mean_gray": -10.2944, + "std_gray": -17.1766 + }, + "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": "ellipse", + "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": 399, + "center_y": 1026, + "radius_px": 14.5584, + "amplitude_px": 8.7606, + "direction_deg": 162.5846, + "twist_ratio": 0.3189 + }, + { + "center_x": 504, + "center_y": 571, + "radius_px": 21.0201, + "amplitude_px": 9.9556, + "direction_deg": 24.4498, + "twist_ratio": 0.3681 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4362, + "post_blur_sigma": 0.2572, + "post_noise_sigma": 0.9505 + }, + "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": 399, + "center_y": 1026, + "radius_px": 14.5584, + "amplitude_px": 8.7606, + "direction_deg": 162.5846, + "twist_ratio": 0.3189 + }, + { + "center_x": 504, + "center_y": 571, + "radius_px": 21.0201, + "amplitude_px": 9.9556, + "direction_deg": 24.4498, + "twist_ratio": 0.3681 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.8597, + "post_blur_sigma": 0.1389, + "post_noise_sigma": 0.3318 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9408, + "brightness": -0.1582, + "gaussian_blur_sigma": 0.2102, + "motion_applied": false, + "noise_sigma": 3.3787, + "salt_pepper_amount": 0.000622, + "jpeg_quality": 59 + } + }, + "diff_metrics": { + "mean_absdiff": 24.3439, + "p95_absdiff": 76.0, + "changed_pixel_ratio_gt8": 0.953804 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_11/zn_11-01_augmented.png b/dataset-augment/zn_11/zn_11-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a019b7cd76dc4e70cf7d6185f201cfae78eadad8 --- /dev/null +++ b/dataset-augment/zn_11/zn_11-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:617e64064bfa1a5f5442925d34889186ff575570e3a5a7ed1c0a164e1dca0758 +size 681895 diff --git a/dataset-augment/zn_2/augment_meta.json b/dataset-augment/zn_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b8becc6788cb36f5e23d4ecd8756e668ee8a1c49 --- /dev/null +++ b/dataset-augment/zn_2/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_2", + "source_sample_id": "01", + "seed": 14473527971609776714, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_2/01/zn_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_2/zn_2-01_augmented.png", + "source_relative": "zn_2/01/zn_2-01.png", + "output_relative": "zn_2/zn_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": 3294.9654, + "blur_score_cv_denoised": 502.6516, + "foreground_ratio": 0.200884, + "mean_gray": 239.7148, + "std_gray": 38.223 + }, + "metrics_after": { + "blur_score_cv": 1747.1357, + "blur_score_cv_denoised": 162.4586, + "foreground_ratio": 0.191535, + "mean_gray": 242.8158, + "std_gray": 28.0766 + }, + "metrics_delta": { + "blur_score_cv": -1547.8297, + "blur_score_cv_denoised": -340.193, + "foreground_ratio": -0.0093, + "mean_gray": 3.101, + "std_gray": -10.1464 + }, + "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": 1, + "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": 566, + "center_y": 974, + "radius_px": 18.5814, + "amplitude_px": 12.5743, + "direction_deg": 97.0939, + "twist_ratio": 0.3448 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4976, + "post_blur_sigma": 0.3752, + "post_noise_sigma": 1.3037 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 566, + "center_y": 974, + "radius_px": 18.5814, + "amplitude_px": 12.5743, + "direction_deg": 97.0939, + "twist_ratio": 0.3448 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.9491, + "post_blur_sigma": 0.1691, + "post_noise_sigma": 1.2446 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.059, + "brightness": -4.5693, + "gaussian_blur_sigma": 0.3543, + "motion_applied": false, + "noise_sigma": 4.0712, + "salt_pepper_amount": 0.001502, + "jpeg_quality": 73 + } + }, + "diff_metrics": { + "mean_absdiff": 11.0128, + "p95_absdiff": 73.0, + "changed_pixel_ratio_gt8": 0.182495 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_2/zn_2-01_augmented.png b/dataset-augment/zn_2/zn_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..a75568b588acdc5bd9e2ee550d2294af22e65766 --- /dev/null +++ b/dataset-augment/zn_2/zn_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d6fb832df32616760f054377c561aeb1c5907a38c89b49a7309dfc7ff87142b +size 593232 diff --git a/dataset-augment/zn_3/augment_meta.json b/dataset-augment/zn_3/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a65f28b8a4b5dbfed81faeec386c3b9db6f46d78 --- /dev/null +++ b/dataset-augment/zn_3/augment_meta.json @@ -0,0 +1,178 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_3", + "source_sample_id": "01", + "seed": 14641356029879579442, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_3/01/zn_3-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_3/zn_3-01_augmented.png", + "source_relative": "zn_3/01/zn_3-01.png", + "output_relative": "zn_3/zn_3-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": 3747.2616, + "blur_score_cv_denoised": 720.5197, + "foreground_ratio": 0.272779, + "mean_gray": 229.0173, + "std_gray": 52.2946 + }, + "metrics_after": { + "blur_score_cv": 1492.5655, + "blur_score_cv_denoised": 258.9044, + "foreground_ratio": 0.310122, + "mean_gray": 228.4627, + "std_gray": 40.7878 + }, + "metrics_delta": { + "blur_score_cv": -2254.6961, + "blur_score_cv_denoised": -461.6153, + "foreground_ratio": 0.0373, + "mean_gray": -0.5546, + "std_gray": -11.5068 + }, + "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": 1, + "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": 45, + "center_y": 1101, + "radius_px": 31.3327, + "amplitude_px": 14.6255, + "direction_deg": 175.2921, + "twist_ratio": 0.3355 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4848, + "post_blur_sigma": 0.228, + "post_noise_sigma": 1.0046 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 45, + "center_y": 1101, + "radius_px": 31.3327, + "amplitude_px": 14.6255, + "direction_deg": 175.2921, + "twist_ratio": 0.3355 + } + ], + "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": 3, + "kernel_shape": "ellipse", + "iterations": 1, + "strength": 0.8091, + "post_blur_sigma": 0.1358, + "post_noise_sigma": 1.2872 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0042, + "brightness": -1.352, + "gaussian_blur_sigma": 0.2961, + "motion_applied": true, + "motion_kernel": 3, + "motion_angle": -7.3273, + "noise_sigma": 6.4169, + "salt_pepper_amount": 0.001383, + "jpeg_quality": 81 + } + }, + "diff_metrics": { + "mean_absdiff": 10.8384, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.273395 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_3/zn_3-01_augmented.png b/dataset-augment/zn_3/zn_3-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..b324b6972990d4a156772611e19f62a25177d7f4 --- /dev/null +++ b/dataset-augment/zn_3/zn_3-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10cef1313ef3350c256b1251e9bd88db60c2bd8f637660855e983433929abf4a +size 1237735 diff --git a/dataset-augment/zn_4/augment_meta.json b/dataset-augment/zn_4/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..397650c9756a9a33becfe4b72747ba441a675d0c --- /dev/null +++ b/dataset-augment/zn_4/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_4", + "source_sample_id": "01", + "seed": 4764039808503784057, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_4/01/zn_4-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_4/zn_4-01_augmented.png", + "source_relative": "zn_4/01/zn_4-01.png", + "output_relative": "zn_4/zn_4-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": 2740.0285, + "blur_score_cv_denoised": 602.7361, + "foreground_ratio": 0.216541, + "mean_gray": 229.2875, + "std_gray": 47.8173 + }, + "metrics_after": { + "blur_score_cv": 1167.6389, + "blur_score_cv_denoised": 160.8188, + "foreground_ratio": 0.337711, + "mean_gray": 222.3259, + "std_gray": 50.9698 + }, + "metrics_delta": { + "blur_score_cv": -1572.3896, + "blur_score_cv_denoised": -441.9173, + "foreground_ratio": 0.1212, + "mean_gray": -6.9616, + "std_gray": 3.1525 + }, + "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": 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": 809, + "center_y": 358, + "radius_px": 31.652, + "amplitude_px": 14.8825, + "direction_deg": 154.9684, + "twist_ratio": 0.4247 + }, + { + "center_x": 446, + "center_y": 774, + "radius_px": 19.144, + "amplitude_px": 10.8712, + "direction_deg": 336.7066, + "twist_ratio": 0.3235 + }, + { + "center_x": 431, + "center_y": 336, + "radius_px": 27.4359, + "amplitude_px": 9.3136, + "direction_deg": 139.897, + "twist_ratio": 0.2956 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 2, + "strength": 0.4778, + "post_blur_sigma": 0.3182, + "post_noise_sigma": 1.4851 + }, + "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": 809, + "center_y": 358, + "radius_px": 31.652, + "amplitude_px": 14.8825, + "direction_deg": 154.9684, + "twist_ratio": 0.4247 + }, + { + "center_x": 446, + "center_y": 774, + "radius_px": 19.144, + "amplitude_px": 10.8712, + "direction_deg": 336.7066, + "twist_ratio": 0.3235 + }, + { + "center_x": 431, + "center_y": 336, + "radius_px": 27.4359, + "amplitude_px": 9.3136, + "direction_deg": 139.897, + "twist_ratio": 0.2956 + } + ], + "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": 1, + "strength": 0.9322, + "post_blur_sigma": 0.2591, + "post_noise_sigma": 2.1682 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0102, + "brightness": 2.878, + "gaussian_blur_sigma": 0.325, + "motion_applied": false, + "noise_sigma": 3.0404, + "salt_pepper_amount": 0.000793, + "jpeg_quality": 77 + } + }, + "diff_metrics": { + "mean_absdiff": 16.6331, + "p95_absdiff": 77.0, + "changed_pixel_ratio_gt8": 0.290361 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_4/zn_4-01_augmented.png b/dataset-augment/zn_4/zn_4-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..2e879683fe537ac3cd903c826a883935c4c78888 --- /dev/null +++ b/dataset-augment/zn_4/zn_4-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d4aeea928e5c8a861e2833ef25af0f11a4f591ee487181f285a401918ce4389 +size 854664 diff --git a/dataset-augment/zn_5/augment_meta.json b/dataset-augment/zn_5/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..79eb32ac4958acae26764b75c338d5bf36eb6032 --- /dev/null +++ b/dataset-augment/zn_5/augment_meta.json @@ -0,0 +1,208 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_5", + "source_sample_id": "01", + "seed": 13212434574934721392, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_5/01/zn_5-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_5/zn_5-01_augmented.png", + "source_relative": "zn_5/01/zn_5-01.png", + "output_relative": "zn_5/zn_5-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": 5313.6629, + "blur_score_cv_denoised": 810.03, + "foreground_ratio": 0.299844, + "mean_gray": 231.3478, + "std_gray": 49.049 + }, + "metrics_after": { + "blur_score_cv": 2532.5923, + "blur_score_cv_denoised": 292.1707, + "foreground_ratio": 0.371034, + "mean_gray": 219.4207, + "std_gray": 39.3873 + }, + "metrics_delta": { + "blur_score_cv": -2781.0706, + "blur_score_cv_denoised": -517.8593, + "foreground_ratio": 0.0712, + "mean_gray": -11.9271, + "std_gray": -9.6617 + }, + "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": 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": 229, + "center_y": 90, + "radius_px": 33.2927, + "amplitude_px": 10.2823, + "direction_deg": 31.4536, + "twist_ratio": 0.4589 + }, + { + "center_x": 122, + "center_y": 93, + "radius_px": 28.1641, + "amplitude_px": 9.823, + "direction_deg": 25.794, + "twist_ratio": 0.3366 + }, + { + "center_x": 379, + "center_y": 701, + "radius_px": 15.6086, + "amplitude_px": 11.1623, + "direction_deg": 68.6503, + "twist_ratio": 0.2501 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5809, + "post_blur_sigma": 0.195, + "post_noise_sigma": 0.7236 + }, + "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": 229, + "center_y": 90, + "radius_px": 33.2927, + "amplitude_px": 10.2823, + "direction_deg": 31.4536, + "twist_ratio": 0.4589 + }, + { + "center_x": 122, + "center_y": 93, + "radius_px": 28.1641, + "amplitude_px": 9.823, + "direction_deg": 25.794, + "twist_ratio": 0.3366 + }, + { + "center_x": 379, + "center_y": 701, + "radius_px": 15.6086, + "amplitude_px": 11.1623, + "direction_deg": 68.6503, + "twist_ratio": 0.2501 + } + ], + "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.7683, + "post_blur_sigma": 0.2465, + "post_noise_sigma": 1.866 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 0.9844, + "brightness": -6.0941, + "gaussian_blur_sigma": 0.1204, + "motion_applied": false, + "noise_sigma": 7.6272, + "salt_pepper_amount": 0.001893, + "jpeg_quality": 64 + } + }, + "diff_metrics": { + "mean_absdiff": 23.981, + "p95_absdiff": 91.0, + "changed_pixel_ratio_gt8": 0.846158 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_5/zn_5-01_augmented.png b/dataset-augment/zn_5/zn_5-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..5c9694de7c9adf73ce93302aed3ea058b7ab700a --- /dev/null +++ b/dataset-augment/zn_5/zn_5-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba5191da0e7689edf1007d5ac302b7f33a1cc21106b1884ba6f36f04cc8f7315 +size 1050501 diff --git a/dataset-augment/zn_6/augment_meta.json b/dataset-augment/zn_6/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ac0f10f9b1ea0f1fb5910b74174378634e2e8810 --- /dev/null +++ b/dataset-augment/zn_6/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_6", + "source_sample_id": "01", + "seed": 6130394526207604099, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_6/01/zn_6-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_6/zn_6-01_augmented.png", + "source_relative": "zn_6/01/zn_6-01.png", + "output_relative": "zn_6/zn_6-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": 1948.5585, + "blur_score_cv_denoised": 281.7101, + "foreground_ratio": 0.123582, + "mean_gray": 244.4488, + "std_gray": 29.5334 + }, + "metrics_after": { + "blur_score_cv": 2011.4399, + "blur_score_cv_denoised": 126.8023, + "foreground_ratio": 0.122961, + "mean_gray": 245.0175, + "std_gray": 24.4724 + }, + "metrics_delta": { + "blur_score_cv": 62.8814, + "blur_score_cv_denoised": -154.9078, + "foreground_ratio": -0.0006, + "mean_gray": 0.5687, + "std_gray": -5.061 + }, + "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": 1, + "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": 601, + "center_y": 67, + "radius_px": 35.9286, + "amplitude_px": 14.6347, + "direction_deg": 59.4076, + "twist_ratio": 0.2899 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5747, + "post_blur_sigma": 0.2394, + "post_noise_sigma": 1.2367 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 601, + "center_y": 67, + "radius_px": 35.9286, + "amplitude_px": 14.6347, + "direction_deg": 59.4076, + "twist_ratio": 0.2899 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.8951, + "post_blur_sigma": 0.1604, + "post_noise_sigma": 0.6741 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0603, + "brightness": -0.2351, + "gaussian_blur_sigma": 0.1324, + "motion_applied": false, + "noise_sigma": 7.1844, + "salt_pepper_amount": 0.002301, + "jpeg_quality": 72 + } + }, + "diff_metrics": { + "mean_absdiff": 7.6526, + "p95_absdiff": 48.0, + "changed_pixel_ratio_gt8": 0.123871 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_6/zn_6-01_augmented.png b/dataset-augment/zn_6/zn_6-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..12420c6a63aaa1c5eab1184fee69df9caa07ff1d --- /dev/null +++ b/dataset-augment/zn_6/zn_6-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f80d509477a8012766464fb2c6ec382a8107b02b47abd0091a55069eb4e541a +size 772199 diff --git a/dataset-augment/zn_7/augment_meta.json b/dataset-augment/zn_7/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..9be562bc91222fd0e4db6fd6bc55b9c4701a5468 --- /dev/null +++ b/dataset-augment/zn_7/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_7", + "source_sample_id": "01", + "seed": 8368722269714586890, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_7/01/zn_7-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_7/zn_7-01_augmented.png", + "source_relative": "zn_7/01/zn_7-01.png", + "output_relative": "zn_7/zn_7-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": 3437.398, + "blur_score_cv_denoised": 557.2778, + "foreground_ratio": 0.18019, + "mean_gray": 239.0389, + "std_gray": 42.9083 + }, + "metrics_after": { + "blur_score_cv": 1417.7005, + "blur_score_cv_denoised": 267.0407, + "foreground_ratio": 0.216468, + "mean_gray": 235.544, + "std_gray": 41.8891 + }, + "metrics_delta": { + "blur_score_cv": -2019.6975, + "blur_score_cv_denoised": -290.2371, + "foreground_ratio": 0.0363, + "mean_gray": -3.4949, + "std_gray": -1.0192 + }, + "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": 148, + "center_y": 1124, + "radius_px": 25.3064, + "amplitude_px": 9.9829, + "direction_deg": 93.0374, + "twist_ratio": 0.3426 + }, + { + "center_x": 618, + "center_y": 918, + "radius_px": 22.5383, + "amplitude_px": 10.0897, + "direction_deg": 138.6727, + "twist_ratio": 0.2828 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4316, + "post_blur_sigma": 0.3737, + "post_noise_sigma": 1.2272 + }, + "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": 148, + "center_y": 1124, + "radius_px": 25.3064, + "amplitude_px": 9.9829, + "direction_deg": 93.0374, + "twist_ratio": 0.3426 + }, + { + "center_x": 618, + "center_y": 918, + "radius_px": 22.5383, + "amplitude_px": 10.0897, + "direction_deg": 138.6727, + "twist_ratio": 0.2828 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.8016, + "post_blur_sigma": 0.247, + "post_noise_sigma": 1.219 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0107, + "brightness": -1.214, + "gaussian_blur_sigma": 0.1694, + "motion_applied": false, + "noise_sigma": 2.553, + "salt_pepper_amount": 0.000862, + "jpeg_quality": 82 + } + }, + "diff_metrics": { + "mean_absdiff": 7.8928, + "p95_absdiff": 50.0, + "changed_pixel_ratio_gt8": 0.176627 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_7/zn_7-01_augmented.png b/dataset-augment/zn_7/zn_7-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..56e9b607310b9df1fb0ec4337be95abea3d03949 --- /dev/null +++ b/dataset-augment/zn_7/zn_7-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb5cdfd3e78cbf52c8706f4cdfa7a8e47426374adc8cd52139a22788d7632efc +size 735999 diff --git a/dataset-augment/zn_8/augment_meta.json b/dataset-augment/zn_8/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..13d7fb07e8e4057e9e57edcd1fa6dfe81a27c901 --- /dev/null +++ b/dataset-augment/zn_8/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_8", + "source_sample_id": "01", + "seed": 1398941832364055784, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_8/01/zn_8-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_8/zn_8-01_augmented.png", + "source_relative": "zn_8/01/zn_8-01.png", + "output_relative": "zn_8/zn_8-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": 3563.4099, + "blur_score_cv_denoised": 567.0503, + "foreground_ratio": 0.176111, + "mean_gray": 237.9875, + "std_gray": 46.5355 + }, + "metrics_after": { + "blur_score_cv": 1064.7823, + "blur_score_cv_denoised": 56.5479, + "foreground_ratio": 0.138651, + "mean_gray": 244.4876, + "std_gray": 20.2477 + }, + "metrics_delta": { + "blur_score_cv": -2498.6276, + "blur_score_cv_denoised": -510.5024, + "foreground_ratio": -0.0375, + "mean_gray": 6.5001, + "std_gray": -26.2878 + }, + "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": 1, + "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": 211, + "center_y": 1177, + "radius_px": 28.6119, + "amplitude_px": 10.5854, + "direction_deg": 326.4626, + "twist_ratio": 0.3814 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4409, + "post_blur_sigma": 0.145, + "post_noise_sigma": 1.2164 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 211, + "center_y": 1177, + "radius_px": 28.6119, + "amplitude_px": 10.5854, + "direction_deg": 326.4626, + "twist_ratio": 0.3814 + } + ], + "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": 3, + "kernel_shape": "rect", + "iterations": 2, + "strength": 0.9094, + "post_blur_sigma": 0.2801, + "post_noise_sigma": 2.0802 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0098, + "brightness": -1.8907, + "gaussian_blur_sigma": 0.237, + "motion_applied": false, + "noise_sigma": 7.7271, + "salt_pepper_amount": 0.001432, + "jpeg_quality": 62 + } + }, + "diff_metrics": { + "mean_absdiff": 13.7377, + "p95_absdiff": 100.0, + "changed_pixel_ratio_gt8": 0.161 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_8/zn_8-01_augmented.png b/dataset-augment/zn_8/zn_8-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..4c3b15e54239c9a5c84599454f53e0f743a22e12 --- /dev/null +++ b/dataset-augment/zn_8/zn_8-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5328877a870965b587f438dc8c18900c40917be3aa652b98b1e624c142ad4b6d +size 847262 diff --git a/dataset-augment/zn_9/augment_meta.json b/dataset-augment/zn_9/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..3909778041a5b9783978fd9a4a7802e320069b0e --- /dev/null +++ b/dataset-augment/zn_9/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_9", + "source_sample_id": "01", + "seed": 10203441823680891682, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_9/01/zn_9-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_9/zn_9-01_augmented.png", + "source_relative": "zn_9/01/zn_9-01.png", + "output_relative": "zn_9/zn_9-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": 7244.5509, + "blur_score_cv_denoised": 689.4896, + "foreground_ratio": 0.148728, + "mean_gray": 239.0375, + "std_gray": 52.441 + }, + "metrics_after": { + "blur_score_cv": 1784.5476, + "blur_score_cv_denoised": 199.8076, + "foreground_ratio": 0.154086, + "mean_gray": 239.7034, + "std_gray": 40.9555 + }, + "metrics_delta": { + "blur_score_cv": -5460.0033, + "blur_score_cv_denoised": -489.682, + "foreground_ratio": 0.0054, + "mean_gray": 0.6659, + "std_gray": -11.4855 + }, + "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": 308, + "center_y": 295, + "radius_px": 26.6703, + "amplitude_px": 14.1444, + "direction_deg": 29.3281, + "twist_ratio": 0.3975 + }, + { + "center_x": 101, + "center_y": 529, + "radius_px": 17.9336, + "amplitude_px": 8.081, + "direction_deg": 238.041, + "twist_ratio": 0.4642 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5719, + "post_blur_sigma": 0.3426, + "post_noise_sigma": 1.4205 + }, + "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": 308, + "center_y": 295, + "radius_px": 26.6703, + "amplitude_px": 14.1444, + "direction_deg": 29.3281, + "twist_ratio": 0.3975 + }, + { + "center_x": 101, + "center_y": 529, + "radius_px": 17.9336, + "amplitude_px": 8.081, + "direction_deg": 238.041, + "twist_ratio": 0.4642 + } + ], + "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": "ellipse", + "iterations": 2, + "strength": 0.8703, + "post_blur_sigma": 0.39, + "post_noise_sigma": 2.0748 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0411, + "brightness": 7.8935, + "gaussian_blur_sigma": 0.27, + "motion_applied": false, + "noise_sigma": 5.0844, + "salt_pepper_amount": 0.000935, + "jpeg_quality": 68 + } + }, + "diff_metrics": { + "mean_absdiff": 12.7694, + "p95_absdiff": 92.0, + "changed_pixel_ratio_gt8": 0.173709 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_9/zn_9-01_augmented.png b/dataset-augment/zn_9/zn_9-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..9977ad64dd0c0cf9973c42082096c717e7f5554a --- /dev/null +++ b/dataset-augment/zn_9/zn_9-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cff5a42e681001be0d21ef4fd74ed574c9f055f66b9773d68a521f8982dddb52 +size 540970 diff --git a/dataset-augment/zn_en_1/augment_meta.json b/dataset-augment/zn_en_1/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..878c85577d7b95b64b98e631e92ac4f1f91d3ab4 --- /dev/null +++ b/dataset-augment/zn_en_1/augment_meta.json @@ -0,0 +1,176 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_en_1", + "source_sample_id": "01", + "seed": 17125124873321857902, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_en_1/01/zn_en_1-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_en_1/zn_en_1-01_augmented.png", + "source_relative": "zn_en_1/01/zn_en_1-01.png", + "output_relative": "zn_en_1/zn_en_1-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": 3533.0364, + "blur_score_cv_denoised": 560.8244, + "foreground_ratio": 0.258558, + "mean_gray": 235.7476, + "std_gray": 42.3954 + }, + "metrics_after": { + "blur_score_cv": 2227.3686, + "blur_score_cv_denoised": 290.0279, + "foreground_ratio": 0.28462, + "mean_gray": 234.5381, + "std_gray": 38.4405 + }, + "metrics_delta": { + "blur_score_cv": -1305.6678, + "blur_score_cv_denoised": -270.7965, + "foreground_ratio": 0.0261, + "mean_gray": -1.2095, + "std_gray": -3.9549 + }, + "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": 1, + "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": 856, + "center_y": 456, + "radius_px": 27.2888, + "amplitude_px": 12.8768, + "direction_deg": 262.6504, + "twist_ratio": 0.3883 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.4089, + "post_blur_sigma": 0.3385, + "post_noise_sigma": 0.541 + }, + "bend_params": { + "warp_mode": "local_bend_points", + "warp_point_count": 1, + "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": 856, + "center_y": 456, + "radius_px": 27.2888, + "amplitude_px": 12.8768, + "direction_deg": 262.6504, + "twist_ratio": 0.3883 + } + ], + "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": "ellipse", + "iterations": 1, + "strength": 0.7828, + "post_blur_sigma": 0.1731, + "post_noise_sigma": 1.2123 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0169, + "brightness": 5.1191, + "gaussian_blur_sigma": 0.3235, + "motion_applied": false, + "noise_sigma": 5.6904, + "salt_pepper_amount": 0.0021, + "jpeg_quality": 72 + } + }, + "diff_metrics": { + "mean_absdiff": 8.7284, + "p95_absdiff": 46.0, + "changed_pixel_ratio_gt8": 0.222322 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_en_1/zn_en_1-01_augmented.png b/dataset-augment/zn_en_1/zn_en_1-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..26f0ba7228ef5f848210eb6d244b176ad2c336ac --- /dev/null +++ b/dataset-augment/zn_en_1/zn_en_1-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5af9d34cb1e274a8ed043ac2ecc8d5cef119e85d47c238a7655e460f6038d6b2 +size 1021305 diff --git a/dataset-augment/zn_en_2/augment_meta.json b/dataset-augment/zn_en_2/augment_meta.json new file mode 100644 index 0000000000000000000000000000000000000000..6d6130adef3d979bf2c8d94465227a67f9fdee0e --- /dev/null +++ b/dataset-augment/zn_en_2/augment_meta.json @@ -0,0 +1,192 @@ +{ + "status": "created", + "task": "one_augmented_image_per_stylized_class", + "variant": "combined", + "sample_name": "zn_en_2", + "source_sample_id": "01", + "seed": 11578969102865638582, + "source_image": "/home/jiangtao/OCR/agents/stylized_output/zn_en_2/01/zn_en_2-01.png", + "output_image": "/home/jiangtao/OCR/agents/dataset-augment/zn_en_2/zn_en_2-01_augmented.png", + "source_relative": "zn_en_2/01/zn_en_2-01.png", + "output_relative": "zn_en_2/zn_en_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": 3504.1222, + "blur_score_cv_denoised": 630.7703, + "foreground_ratio": 0.329758, + "mean_gray": 229.4131, + "std_gray": 45.2143 + }, + "metrics_after": { + "blur_score_cv": 2157.9637, + "blur_score_cv_denoised": 379.9949, + "foreground_ratio": 0.357356, + "mean_gray": 228.781, + "std_gray": 44.891 + }, + "metrics_delta": { + "blur_score_cv": -1346.1585, + "blur_score_cv_denoised": -250.7754, + "foreground_ratio": 0.0276, + "mean_gray": -0.6321, + "std_gray": -0.3233 + }, + "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": 145, + "center_y": 821, + "radius_px": 15.0937, + "amplitude_px": 11.9999, + "direction_deg": 223.9032, + "twist_ratio": 0.2947 + }, + { + "center_x": 238, + "center_y": 909, + "radius_px": 25.0372, + "amplitude_px": 8.6342, + "direction_deg": 215.5297, + "twist_ratio": 0.2619 + } + ], + "warp_center_source": "foreground_mask", + "warp_local_patch_only": true, + "warp_blend_mode": "hard_patch_feather_edge", + "iterations": 1, + "strength": 0.5506, + "post_blur_sigma": 0.2091, + "post_noise_sigma": 1.3892 + }, + "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": 145, + "center_y": 821, + "radius_px": 15.0937, + "amplitude_px": 11.9999, + "direction_deg": 223.9032, + "twist_ratio": 0.2947 + }, + { + "center_x": 238, + "center_y": 909, + "radius_px": 25.0372, + "amplitude_px": 8.6342, + "direction_deg": 215.5297, + "twist_ratio": 0.2619 + } + ], + "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": 1, + "strength": 0.7219, + "post_blur_sigma": 0.2042, + "post_noise_sigma": 1.3207 + }, + "blur_params": { + "operations": [ + "contrast_brightness", + "gaussian_blur", + "optional_motion_blur", + "gaussian_noise", + "salt_pepper", + "jpeg_roundtrip" + ], + "contrast": 1.0633, + "brightness": 2.375, + "gaussian_blur_sigma": 0.1637, + "motion_applied": false, + "noise_sigma": 6.1384, + "salt_pepper_amount": 0.001827, + "jpeg_quality": 80 + } + }, + "diff_metrics": { + "mean_absdiff": 10.6217, + "p95_absdiff": 46.0, + "changed_pixel_ratio_gt8": 0.272001 + } +} \ No newline at end of file diff --git a/dataset-augment/zn_en_2/zn_en_2-01_augmented.png b/dataset-augment/zn_en_2/zn_en_2-01_augmented.png new file mode 100644 index 0000000000000000000000000000000000000000..d85255587fd1d379988906029c2564a2a300adbe --- /dev/null +++ b/dataset-augment/zn_en_2/zn_en_2-01_augmented.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4d1f8a37bb3a259ec8115d7c4545c6c711db3b885cd4d91f0a6eb2393999e83 +size 1068228