I-225Camera Lens Model Verification
Verifies lens distortion model consistency — real cameras produce predictable radial and tangential distortion governed by the Brown-Conrady model. AI generators do not simulate wavelength-dependent optical refraction, producing images with either zero distortion or spatially inconsistent distortion fields.
Algorithm / Model
Brown-Conrady Radial Distortion Model Fitting + RANSAC Consistency Verification
How it works
Real camera lenses introduce predictable optical distortions governed by the lens geometry: radial distortion (barrel and pincushion) and tangential distortion (from lens element misalignment). These distortions follow the Brown-Conrady model: x_distorted = x(1 + k₁r² + k₂r⁴ + k₃r⁶) + 2p₁xy + p₂(r² + 2x²), where k₁,k₂,k₃ are radial coefficients, p₁,p₂ are tangential coefficients, and r is the distance from the optical center.The detector works in three stages: (1) Straight Line Detection — uses the Hough transform to detect edges that should be geometrically straight (architectural lines, horizons, manufactured objects), then measures their deviation from true straightness. In real photographs, these deviations follow the radial distortion model centered at the optical axis. (2) Distortion Model Fitting — fits the Brown-Conrady polynomial to the detected distortion field using least-squares optimization, estimating k₁, k₂, and the optical center position. Authentic images yield a consistent, well-fitting model; AI-generated images either show zero distortion (physically implausible for most lenses) or inconsistent distortion that doesn't fit any single lens model. (3) Consistency Verification — checks that the estimated distortion model is physically consistent across the entire image — manipulated images often show different distortion parameters in spliced vs. original regions.
Technical Parameters
Distortion model: Brown-Conrady (up to 6th order radial)
Line detection: Hough transform with adaptive threshold
Model fitting: Levenberg-Marquardt least-squares
Optical center estimation: grid search + refinement
Consistency metric: residual error of polynomial fit vs. observed distortion
Line detection: Hough transform with adaptive threshold
Model fitting: Levenberg-Marquardt least-squares
Optical center estimation: grid search + refinement
Consistency metric: residual error of polynomial fit vs. observed distortion
Accuracy & Reliability
Moderate to High — 75-88% accuracy. Strongest when the image contains straight architectural lines; weaker on organic scenes (nature, portraits) with few geometric references.
Strengths
• Based on immutable physical optics — lens distortion is extremely difficult for AI to simulate correctly
• Can detect the absence of distortion, which is itself a forensic red flag (only perfect pinhole cameras have zero distortion)
• Provides spatially interpretable results — distortion inconsistencies can be mapped to specific image regions
• Cross-validates with EXIF lens metadata when available
• Can detect the absence of distortion, which is itself a forensic red flag (only perfect pinhole cameras have zero distortion)
• Provides spatially interpretable results — distortion inconsistencies can be mapped to specific image regions
• Cross-validates with EXIF lens metadata when available
Limitations
• Many AI-generated images are cropped to the center of the field, where distortion is minimal even for real lenses
• High-end lenses with software correction in firmware produce near-zero distortion legitimately
• Requires images with detectable straight-line structures for reliable model fitting
• Panoramic stitching and perspective correction legitimately alter the distortion field
• High-end lenses with software correction in firmware produce near-zero distortion legitimately
• Requires images with detectable straight-line structures for reliable model fitting
• Panoramic stitching and perspective correction legitimately alter the distortion field
Use Case
Verifying that an image was captured through a real optical lens system, detecting AI-generated images that lack physically consistent lens distortion, identifying spliced regions where the distortion model changes abruptly, and validating EXIF-reported lens metadata against observed optical properties.