{
  "caseId": "rembg-boundary",
  "facts": {
    "httpStatus": 200,
    "originalInputSha256": "07f11db8c2f6205c7d0bd53e687f21cab2723c010eca00e25c02a69064782f96",
    "afterInputSha256": "07f11db8c2f6205c7d0bd53e687f21cab2723c010eca00e25c02a69064782f96",
    "inputUnchanged": true,
    "responseSha256": "ec4ce2bdc82ad0c5dc4473dacaf2ff7f0491e8227b67996605074c28800e39fd",
    "format": "PNG",
    "mode": "RGBA",
    "width": 512,
    "height": 512,
    "validRgbaPng": true,
    "minAlpha": 0,
    "maxAlpha": 255,
    "rgbExactlyEqual": true,
    "rgbDifferentPixels": 0,
    "foregroundThreshold": 128,
    "iou": {
      "intersectionPixels": 44175,
      "unionPixels": 44957,
      "fraction": 0.9826056009075339,
      "requiredMinimum": 0.9
    },
    "evaluatedPixels": 262144,
    "regions": {
      "bodyCore": {
        "mask": "fixtures/mug-body-core-mask.png",
        "maskSha256": "c32e1cd5c7cc33e46c7d197fc88a0318d44dda7936a358956a1457e55ef12a0b",
        "operator": ">=",
        "alphaThreshold": 245,
        "matchingPixels": 35221,
        "regionPixels": 35221,
        "fraction": 1.0,
        "requiredMinimum": 0.95
      },
      "handleCore": {
        "mask": "fixtures/mug-handle-core-mask.png",
        "maskSha256": "38ff9d066b0d7512bd06d949db1eb6d8121a4f7b7a44b8546bde97fe8773f619",
        "operator": ">=",
        "alphaThreshold": 245,
        "matchingPixels": 4069,
        "regionPixels": 4069,
        "fraction": 1.0,
        "requiredMinimum": 0.9
      },
      "hole": {
        "mask": "fixtures/mug-hole-mask.png",
        "maskSha256": "aa029eb256e5fa4d19abfafb75b28c84c9b8cd5e01e2b893aa5ad06758c85af0",
        "operator": "<=",
        "alphaThreshold": 10,
        "matchingPixels": 3100,
        "regionPixels": 3100,
        "fraction": 1.0,
        "requiredMinimum": 0.95
      },
      "background": {
        "mask": "fixtures/mug-background-mask.png",
        "maskSha256": "0736286d100f1635505a35d411bbc7aaa2ba1a7e59417a5a70053e941c0a5651",
        "operator": "<=",
        "alphaThreshold": 10,
        "matchingPixels": 213599,
        "regionPixels": 213601,
        "fraction": 0.9999906367479553,
        "requiredMinimum": 0.95
      }
    }
  },
  "conditions": [
    {
      "condition": "The native server returns HTTP 200 and a decodable 512x512 RGBA PNG; every output RGB pixel equals mug-input.png RGB, and the original mug-input.png SHA256 is unchanged.",
      "verdict": "passed",
      "observed": "HTTP 200; PNG 512x512 RGBA; every RGB pixel equal=True, differing=0; input hash unchanged=True."
    },
    {
      "condition": "The output foreground defined by alpha >=128 has intersection-over-union >=0.90 with the complete frozen mug-reference-mask.png, including the real handle hole and thin rim.",
      "verdict": "passed",
      "observed": "Full-image IoU=44175/44957=0.982605600908; required >=0.90."
    },
    {
      "condition": "At least 95% of mug-body-core-mask.png pixels and at least 90% of mug-handle-core-mask.png pixels have alpha >=245; report body and handle preservation separately.",
      "verdict": "passed",
      "observed": "bodyCore: 35221/35221=1.000000000000, required >=0.95; handleCore: 4069/4069=1.000000000000, required >=0.9"
    },
    {
      "condition": "At least 95% of mug-hole-mask.png pixels and at least 95% of mug-background-mask.png pixels have alpha <=10; report hole and exterior-background removal separately.",
      "verdict": "passed",
      "observed": "hole: 3100/3100=1.000000000000, required >=0.95; background: 213599/213601=0.999990636748, required >=0.95"
    }
  ],
  "outcome": "passed"
}
