{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 2390,
    "height": 1792,
    "megapixels": 4.28
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3337,
    "deviation": 0.0003,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 3.485,
  "raw_drift_score": 15.3,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 276,
    "keypoints_staged": 601,
    "matches": 142,
    "affine_anisotropy": 0.0013,
    "inliers": 123,
    "inlier_ratio": 0.866,
    "median_residual_px": 0.35,
    "matrix_staged_to_original_work": [
      [
        0.99933,
        0.00015,
        0.1138
      ],
      [
        -0.00015,
        0.99933,
        0.32433
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0007,
    "shift_px": [
      -0.2,
      -0.0
    ],
    "shift_pct": [
      -0.02,
      -0.0
    ],
    "rotation_deg": -0.009,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.3,
      "right": 0.7,
      "top": 0.4,
      "bottom": 0.4
    },
    "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.9445,
      "line_displaced_frac": 0.0258,
      "line_missing_frac": 0.0298,
      "structural_line_pixels": 22485
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8942,
    "line_recall": 0.8129,
    "line_displaced_frac": 0.05,
    "line_missing_frac": 0.1371,
    "structural_line_pixels": 6076,
    "evaluated_area_frac": 0.647,
    "drift_score": 14.6,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.995,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 14.6,
  "structure": {
    "edge_ssim": 0.8942,
    "line_recall": 0.7999,
    "line_displaced_frac": 0.0682,
    "line_missing_frac": 0.1318,
    "structural_line_pixels": 6242,
    "evaluated_area_frac": 0.65,
    "drift_score": 15.3,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/01-open-plan-kitchen-living.jpg",
    "staged": "results/stylesmarter/01.jpg"
  }
}