{
  "original": {
    "width": 1920,
    "height": 1528,
    "megapixels": 2.93
  },
  "staged": {
    "width": 642,
    "height": 512,
    "megapixels": 0.33
  },
  "aspect_ratio": {
    "original": 1.2565,
    "staged": 1.2539,
    "deviation": 0.0021,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.112,
  "raw_drift_score": 15.2,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 659,
    "keypoints_staged": 1001,
    "matches": 223,
    "affine_anisotropy": 0.0,
    "inliers": 196,
    "inlier_ratio": 0.879,
    "median_residual_px": 0.45,
    "matrix_staged_to_original_work": [
      [
        0.99909,
        0.00048,
        0.29393
      ],
      [
        -0.00048,
        0.99909,
        -0.12544
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0009,
    "shift_px": [
      0.1,
      0.5
    ],
    "shift_pct": [
      0.0,
      0.03
    ],
    "rotation_deg": -0.028,
    "visible_overlap_pct": 99.95,
    "invented_area_pct": 0.06,
    "original_px_lost": {
      "left": 1.3,
      "right": 1.2,
      "top": 0.0,
      "bottom": 0.0
    },
    "criteria": "overlap >= 97%, zoom 0.99-1.02, |rotation| <= 0.5 deg, invented area <= 2%",
    "units": "px of the original image; shift = staged frame centre vs original centre; zoom > 1 = cropped/zoomed in"
  },
  "diagnostics": {
    "sensitive_edges": {
      "line_recall": 0.983,
      "line_displaced_frac": 0.017,
      "line_missing_frac": 0.0,
      "structural_line_pixels": 58561
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8691,
    "line_recall": 0.8576,
    "line_displaced_frac": 0.0394,
    "line_missing_frac": 0.103,
    "structural_line_pixels": 14803,
    "evaluated_area_frac": 0.647,
    "drift_score": 13.7,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.996,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 13.7,
  "structure": {
    "edge_ssim": 0.8679,
    "line_recall": 0.8277,
    "line_displaced_frac": 0.069,
    "line_missing_frac": 0.1033,
    "structural_line_pixels": 14804,
    "evaluated_area_frac": 0.649,
    "drift_score": 15.2,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/06-bedroom-single-window.jpg",
    "staged": "results/sofabrain/06.jpg"
  }
}