{
  "caseId": "rembg-primary",
  "facts": {
    "httpStatus": 200,
    "originalInputSha256": "aa2a54b7a4398c6b4034d835288cbea9c5cba1e688391416c659923ae0f96a92",
    "afterInputSha256": "aa2a54b7a4398c6b4034d835288cbea9c5cba1e688391416c659923ae0f96a92",
    "inputUnchanged": true,
    "responseSha256": "aa73fa6269ba1303b0b8695ab3365f579e294abe5385ca281ebbb22f6c8ec38d",
    "format": "PNG",
    "mode": "RGBA",
    "width": 512,
    "height": 512,
    "validRgbaPng": true,
    "minAlpha": 0,
    "maxAlpha": 255,
    "rgbExactlyEqual": true,
    "rgbDifferentPixels": 0,
    "foregroundThreshold": 128,
    "iou": {
      "intersectionPixels": 52770,
      "unionPixels": 52917,
      "fraction": 0.9972220647428992,
      "requiredMinimum": 0.9
    },
    "evaluatedPixels": 262144,
    "regions": {
      "foregroundCore": {
        "mask": "fixtures/bottle-core-mask.png",
        "maskSha256": "23d633889cb0498c9f750a738e365b365028f2fba0e25821f6cedc8231e1c464",
        "operator": ">=",
        "alphaThreshold": 245,
        "matchingPixels": 48769,
        "regionPixels": 48769,
        "fraction": 1.0,
        "requiredMinimum": 0.95
      },
      "background": {
        "mask": "fixtures/bottle-background-mask.png",
        "maskSha256": "2d0fbce5fd341a910c08ab16d7c1388e5f8a727797ec1e1b00a8dd82640b6a7f",
        "operator": "<=",
        "alphaThreshold": 10,
        "matchingPixels": 205299,
        "regionPixels": 205299,
        "fraction": 1.0,
        "requiredMinimum": 0.95
      }
    }
  },
  "conditions": [
    {
      "condition": "The native server returns HTTP 200 and a decodable 512x512 RGBA PNG with minimum alpha <=10 and maximum alpha >=245; bottle-input.png retains its frozen SHA256.",
      "verdict": "passed",
      "observed": "HTTP 200; PNG 512x512 RGBA; alpha range 0–255; input hash unchanged=True."
    },
    {
      "condition": "The binary foreground formed by output alpha >=128 has intersection-over-union >=0.90 with the frozen bottle-reference-mask.png, using every image pixel and no excluded edge failures.",
      "verdict": "passed",
      "observed": "Full-image IoU=52770/52917=0.997222064743; required >=0.90."
    },
    {
      "condition": "At least 95% of bottle-core-mask.png pixels have output alpha >=245, and at least 95% of bottle-background-mask.png pixels have output alpha <=10; report both fractions separately.",
      "verdict": "passed",
      "observed": "Foreground core alpha>=245: 48769/48769=1.000000000000; exterior background alpha<=10: 205299/205299=1.000000000000; each required >=0.95."
    },
    {
      "condition": "Every output RGB pixel exactly matches the corresponding original bottle-input.png RGB pixel under the frozen native putalpha=true configuration, including the original cap and label marks.",
      "verdict": "passed",
      "observed": "All 262144 RGB pixels exactly equal input=True; differing RGB pixels=0. Explicit frozen putalpha=true was retained."
    }
  ],
  "outcome": "passed"
}
