{
  "original": {
    "width": 1920,
    "height": 926,
    "megapixels": 1.78
  },
  "staged": {
    "width": 2976,
    "height": 1436,
    "megapixels": 4.27
  },
  "aspect_ratio": {
    "original": 2.0734,
    "staged": 2.0724,
    "deviation": 0.0005,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 2.404,
  "raw_drift_score": 15.8,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 164,
    "keypoints_staged": 349,
    "matches": 48,
    "affine_anisotropy": 0.0011,
    "inliers": 34,
    "inlier_ratio": 0.708,
    "median_residual_px": 0.48,
    "matrix_staged_to_original_work": [
      [
        0.99933,
        -0.00118,
        0.57005
      ],
      [
        0.00118,
        0.99933,
        -0.69746
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0007,
    "shift_px": [
      -0.1,
      -0.5
    ],
    "shift_pct": [
      -0.01,
      -0.05
    ],
    "rotation_deg": 0.067,
    "visible_overlap_pct": 99.9,
    "invented_area_pct": 0.05,
    "original_px_lost": {
      "left": 1.1,
      "right": 1.3,
      "top": 1.0,
      "bottom": 1.9
    },
    "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.9387,
      "line_displaced_frac": 0.0609,
      "line_missing_frac": 0.0004,
      "structural_line_pixels": 19588
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.815,
    "line_recall": 0.8751,
    "line_displaced_frac": 0.0486,
    "line_missing_frac": 0.0763,
    "structural_line_pixels": 9629,
    "evaluated_area_frac": 0.649,
    "drift_score": 15.5,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.999,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 15.5,
  "structure": {
    "edge_ssim": 0.8161,
    "line_recall": 0.8674,
    "line_displaced_frac": 0.0533,
    "line_missing_frac": 0.0793,
    "structural_line_pixels": 9633,
    "evaluated_area_frac": 0.65,
    "drift_score": 15.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/04-attic-odd-windows.jpg",
    "staged": "results/stylesmarter/04.jpg"
  }
}