{
  "original": {
    "width": 1920,
    "height": 1484,
    "megapixels": 2.85
  },
  "staged": {
    "width": 2360,
    "height": 1824,
    "megapixels": 4.3
  },
  "aspect_ratio": {
    "original": 1.2938,
    "staged": 1.2939,
    "deviation": 0.0,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.511,
  "raw_drift_score": 7.5,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 550,
    "keypoints_staged": 704,
    "matches": 196,
    "affine_anisotropy": 0.0008,
    "inliers": 164,
    "inlier_ratio": 0.837,
    "median_residual_px": 0.54,
    "matrix_staged_to_original_work": [
      [
        0.9996,
        -0.00034,
        -0.06352
      ],
      [
        0.00034,
        0.9996,
        -0.1907
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0004,
    "shift_px": [
      -0.8,
      -0.3
    ],
    "shift_pct": [
      -0.04,
      -0.02
    ],
    "rotation_deg": 0.02,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.0,
      "right": 1.4,
      "top": 0.3,
      "bottom": 1.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.9937,
      "line_displaced_frac": 0.0063,
      "line_missing_frac": 0.0,
      "structural_line_pixels": 84279
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.9066,
    "line_recall": 0.9508,
    "line_displaced_frac": 0.0468,
    "line_missing_frac": 0.0024,
    "structural_line_pixels": 21347,
    "evaluated_area_frac": 0.647,
    "drift_score": 7.1,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.996,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 7.1,
  "structure": {
    "edge_ssim": 0.9058,
    "line_recall": 0.944,
    "line_displaced_frac": 0.0533,
    "line_missing_frac": 0.0027,
    "structural_line_pixels": 21349,
    "evaluated_area_frac": 0.65,
    "drift_score": 7.5,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/05-bay-window-fireplace.jpg",
    "staged": "results/stylesmarter/room-type/05.jpg"
  }
}