{
  "original": {
    "width": 1920,
    "height": 1295,
    "megapixels": 2.49
  },
  "staged": {
    "width": 2528,
    "height": 1696,
    "megapixels": 4.29
  },
  "aspect_ratio": {
    "original": 1.4826,
    "staged": 1.4906,
    "deviation": 0.0054,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.724,
  "raw_drift_score": 32.3,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 1016,
    "keypoints_staged": 736,
    "matches": 134,
    "affine_anisotropy": 0.0005,
    "inliers": 107,
    "inlier_ratio": 0.799,
    "median_residual_px": 0.36,
    "matrix_staged_to_original_work": [
      [
        1.00086,
        0.0,
        -0.38626
      ],
      [
        -0.0,
        1.00086,
        1.42746
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9991,
    "shift_px": [
      0.1,
      -0.5
    ],
    "shift_pct": [
      0.01,
      -0.04
    ],
    "rotation_deg": -0.0,
    "visible_overlap_pct": 99.71,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.0,
      "right": 0.0,
      "top": 2.7,
      "bottom": 3.7
    },
    "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.9829,
      "line_displaced_frac": 0.0161,
      "line_missing_frac": 0.001,
      "structural_line_pixels": 75273
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7656,
    "line_recall": 0.6274,
    "line_displaced_frac": 0.2437,
    "line_missing_frac": 0.1289,
    "structural_line_pixels": 35016,
    "evaluated_area_frac": 0.643,
    "drift_score": 30.4,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.989,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 30.4,
  "structure": {
    "edge_ssim": 0.7676,
    "line_recall": 0.5859,
    "line_displaced_frac": 0.2805,
    "line_missing_frac": 0.1335,
    "structural_line_pixels": 35029,
    "evaluated_area_frac": 0.65,
    "drift_score": 32.3,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 55,
  "seconds_approx": true,
  "files": {
    "original": "photos/07-living-large-window.jpg",
    "staged": "results/roomagen/07.jpg"
  },
  "settings": {
    "mode": "Virtual Staging",
    "style": "Modern",
    "furniture": "Let AI Decide",
    "quality": "2K",
    "watermark": false
  }
}