{
  "original": {
    "width": 1920,
    "height": 1528,
    "megapixels": 2.93
  },
  "staged": {
    "width": 2292,
    "height": 1824,
    "megapixels": 4.18
  },
  "aspect_ratio": {
    "original": 1.2565,
    "staged": 1.2566,
    "deviation": 0.0,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.425,
  "raw_drift_score": 52.2,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 659,
    "keypoints_staged": 784,
    "matches": 84,
    "affine_anisotropy": 0.0178,
    "inliers": 27,
    "inlier_ratio": 0.321,
    "median_residual_px": 1.3,
    "matrix_staged_to_original_work": [
      [
        1.14676,
        -0.01479,
        -151.52381
      ],
      [
        0.01479,
        1.14676,
        -32.57046
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: zoom 0.872; rotated 0.74 deg; 24.4% of the output is outside the original frame",
    "zoom": 0.872,
    "shift_px": [
      -154.5,
      65.3
    ],
    "shift_pct": [
      -8.05,
      4.27
    ],
    "rotation_deg": 0.739,
    "visible_overlap_pct": 99.47,
    "invented_area_pct": 24.37,
    "original_px_lost": {
      "left": 0.0,
      "right": 24.9,
      "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.8531,
      "line_displaced_frac": 0.1179,
      "line_missing_frac": 0.029,
      "structural_line_pixels": 61677
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7934,
    "line_recall": 0.6556,
    "line_displaced_frac": 0.1546,
    "line_missing_frac": 0.1898,
    "structural_line_pixels": 14803,
    "evaluated_area_frac": 0.643,
    "drift_score": 27.6,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.991,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 27.6,
  "structure": {
    "edge_ssim": 0.6815,
    "line_recall": 0.2741,
    "line_displaced_frac": 0.3022,
    "line_missing_frac": 0.4237,
    "structural_line_pixels": 14804,
    "evaluated_area_frac": 0.649,
    "drift_score": 52.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/stylesmarter/room-type/06.jpg"
  }
}