{
  "original": {
    "width": 1920,
    "height": 1295,
    "megapixels": 2.49
  },
  "staged": {
    "width": 2514,
    "height": 1696,
    "megapixels": 4.26
  },
  "aspect_ratio": {
    "original": 1.4826,
    "staged": 1.4823,
    "deviation": 0.0002,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.715,
  "raw_drift_score": 36.8,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 1016,
    "keypoints_staged": 1343,
    "matches": 207,
    "affine_anisotropy": 0.0028,
    "inliers": 184,
    "inlier_ratio": 0.889,
    "median_residual_px": 0.55,
    "matrix_staged_to_original_work": [
      [
        0.998,
        0.0006,
        0.22026
      ],
      [
        -0.0006,
        0.998,
        0.78231
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.002,
    "shift_px": [
      -1.1,
      -0.4
    ],
    "shift_pct": [
      -0.06,
      -0.03
    ],
    "rotation_deg": -0.034,
    "visible_overlap_pct": 99.83,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 1.2,
      "right": 3.4,
      "top": 1.5,
      "bottom": 2.3
    },
    "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.987,
      "line_displaced_frac": 0.013,
      "line_missing_frac": 0.0,
      "structural_line_pixels": 77983
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.691,
    "line_recall": 0.5994,
    "line_displaced_frac": 0.2554,
    "line_missing_frac": 0.1452,
    "structural_line_pixels": 35016,
    "evaluated_area_frac": 0.643,
    "drift_score": 35.5,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.989,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 35.5,
  "structure": {
    "edge_ssim": 0.693,
    "line_recall": 0.5704,
    "line_displaced_frac": 0.2784,
    "line_missing_frac": 0.1512,
    "structural_line_pixels": 35029,
    "evaluated_area_frac": 0.65,
    "drift_score": 36.8,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/07-living-large-window.jpg",
    "staged": "results/stylesmarter/07.jpg"
  }
}