Methodology & Reference Sources

Every PDSize calculation uses transparent physical geometry, standardized card dimensions, and published anthropometric or manufacturer data.

Updated

1. Camera & Photo Card-Reference Calibration

Webcam and uploaded photo measurements convert unmirrored source-frame pixel coordinates to millimeters by dividing the known ISO/IEC 7810:2019 ID-1 card width (85.60 mm) by the average pixel span of the card's top and bottom straight edges.

  • Iris Landmarks: MediaPipe Face Landmarker (@mediapipe/tasks-vision, 478-point mesh) detects right iris center (OD, landmark 468) and left iris center (OS, landmark 473) inside local WebAssembly.
  • Distance & Coplanar Placement: Recommended shooting distance is 50–60 cm (20–24 in), holding the card coplanar with the pupil plane (under the nose using the philtrum as a visual reference or just above the brow ridge, without pressing back into forehead skin) while looking past the camera at a distant focal point.
  • Pose Alignment & Spread Gate: Live capture checks that head roll, yaw, and pitch remain within ±5°; three independent captures are sorted by unrounded binocular PD to take the median tuple, requiring a spread of ≤1.0 mm.

2. Near PD Convergence & Frame Decentration Formulas

Near PD and frame optical-center calculations apply standard similar-triangles spectacle-plane geometry, ISO 8624:2020 boxing-system definitions, and ANSI Z80.1 optical center and prism tolerance context.

Calculation Formula Used Standard Assumptions & Worked Example
Near PD Distance PD × L / (L + 27 mm) L = lens-plane-to-target distance in mm; 27 mm ocular center-of-rotation offset. Example: 64.0 mm → 60.0 mm at 40 cm and 59.0 mm at 33 cm (rounded to 0.5 mm).
Frame PD & Lens Span Frame PD = A + DBL · Span = 2A + DBL Sum of Lens Width (A) and Bridge Width (DBL) in millimeters.
Per-Eye Decentration (A + DBL − User PD) / 2 Positive = inward decentration; negative = outward decentration (monocular: Frame PD / 2 − Mono PD).

3. Cited Anthropometric & Manufacturer Sources

Population PD benchmarks and brand tables cite published military anthropometric CSVs and official manufacturer frame listings.

Frequently Asked Questions

Why does PDSize use the 85.60 mm card width instead of height?

Width spans more horizontal pixels across a front-facing frame, reducing single-pixel rounding error along the same horizontal axis as your pupils.

Why use a 3-sample median instead of a simple mean?

A median ignores a single shaky capture if one of your three samples shifts slightly, delivering a steadier millimeter result.

Related Tools & Sizing Guides