{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "CopySeal watermark robustness",
  "description": "Measured behaviour of the CopySeal invisible watermark under common image edits. Generated from the project's own test harness; every case was run against the production embed and extract path.",
  "version": "1.0.0",
  "date": "2026-11-17",
  "url": "https://www.copyseal.online/.well-known/watermark-robustness.json",
  "algorithm": {
    "name": "DWT-DCT-SVD",
    "summary": "Discrete Wavelet Transform, then Discrete Cosine Transform, then Singular Value Decomposition. The payload is embedded in the mid-frequency coefficients of the wavelet sub-bands.",
    "note": "Images whose longest side exceeds 1024 px are embedded per 1024-px tile rather than over the whole frame. Each case below reports the result for both paths."
  },
  "grid_rule": "The watermark is anchored to a fixed pixel grid. Editing the CONTENT of an image (compressing, brightening, adding noise) leaves that grid alone and the watermark survives. Editing the GEOMETRY of an image (resizing, rotating, cropping) moves every sample to a new position and the watermark does not survive — unless the edit re-fits the image to the same grid, such as a crop that fills the removed band, a rotation that is turned back, or a resize that is scaled back up.",
  "methodology": {
    "images_tested": 5,
    "image_sources": [
      "real:原图",
      "real:打上水印的图",
      "synthetic:512x384",
      "synthetic:640x480",
      "synthetic:1600x1200_tiled"
    ],
    "method": "For each image: embed a fixed payload, apply the edit, then extract and compare the recovered text byte-for-byte with the original. A case counts as surviving only when every image recovers the text.",
    "environment": {
      "python": "3.12.7",
      "opencv": "5.0.0",
      "numpy": "1.26.4"
    },
    "reproduce": "cd backend && python -m calibration.robustness_sweep — the script writes the measurement this document is generated from, and the published copy is rebuilt from it.",
    "caveats": "Five images is a small sample, and the results depend on the picture and on how hard it is edited. The per-case counts say how many of the five recovered the text, so a case that survived 3 of 5 is visible as such. A watermark is a signal in a lossy medium, not a guarantee."
  },
  "cases": [
    {
      "id": "identity",
      "transformation": "No modification",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "jpeg_q95",
      "transformation": "JPEG re-compression, quality 95",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "jpeg_q85",
      "transformation": "JPEG re-compression, quality 85",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "jpeg_q75",
      "transformation": "JPEG re-compression, quality 75",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "jpeg_q50",
      "transformation": "JPEG re-compression, quality 50",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 3,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 3,
          "tested": 4
        }
      }
    },
    {
      "id": "jpeg_q20",
      "transformation": "JPEG re-compression, quality 20",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 0,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 0,
          "tested": 4
        }
      }
    },
    {
      "id": "brightness_plus_40",
      "transformation": "Brightness raised by 40/255",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 3,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 2,
          "tested": 4
        }
      }
    },
    {
      "id": "brightness_minus_40",
      "transformation": "Brightness lowered by 40/255",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "noise_sigma_25",
      "transformation": "Uniform noise, +/-25 per channel",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": false,
      "images_tested": 5,
      "images_surviving": 2,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 1,
          "tested": 4
        }
      }
    },
    {
      "id": "crop_80_fill",
      "transformation": "Crop to 80% and fill the removed band",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "crop_60_fill",
      "transformation": "Crop to 60% and fill the removed band",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "rotate_5deg_roundtrip",
      "transformation": "Rotated 5 degrees and rotated back",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "rotate_90deg_roundtrip",
      "transformation": "Rotated 90 degrees and rotated back",
      "survives": true,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 5,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 1,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "scale_0.75_roundtrip",
      "transformation": "Scaled to 75% and scaled back",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 4,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "scale_0.5_roundtrip",
      "transformation": "Scaled to 50% and scaled back",
      "survives": false,
      "grid_preserved": true,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 4,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 4,
          "tested": 4
        }
      }
    },
    {
      "id": "resize_0.5_grid_lost",
      "transformation": "Resized to 50%, grid not restored",
      "survives": false,
      "grid_preserved": false,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 0,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 0,
          "tested": 4
        }
      }
    },
    {
      "id": "rotate_90_grid_lost",
      "transformation": "Rotated 90 degrees, grid not restored",
      "survives": false,
      "grid_preserved": false,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 0,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 0,
          "tested": 4
        }
      }
    },
    {
      "id": "crop_60_grid_lost",
      "transformation": "Cropped to 60%, grid not restored",
      "survives": false,
      "grid_preserved": false,
      "geometry_changed": true,
      "images_tested": 5,
      "images_surviving": 0,
      "by_algorithm_path": {
        "tiled": {
          "surviving": 0,
          "tested": 1
        },
        "whole_frame": {
          "surviving": 0,
          "tested": 4
        }
      }
    }
  ]
}
