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, landmark468) and left iris center (OS, landmark473) 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.
- Adult PD Benchmarks (Average PD): US Army ANSUR II (2012, TR15-007) public
interpupillarybreadthCSV datasets via Penn State OPEN Design Lab (N = 6,068adults: menn = 4,082,64.02 ± 3.42 mm; womenn = 1,986,61.71 ± 3.62 mm; combined weighted mean63.26 mm). - Optical Standards & Face Mesh: Card calibration follows BSI Knowledge ISO/IEC 7810:2019 (ID-1 85.60 × 53.98 mm), frame boxing dimensions follow BSI Knowledge ISO 8624:2020, prescription optical center and prism tolerances reference The Vision Council ASC Z80 (ANSI Z80.1), and local iris landmark detection runs Google AI Edge MediaPipe Face Landmarker.
- Brand Dimensions (Ray-Ban & Oakley): Only exact SKU numbers verified on official manufacturer product pages are prefilled; unverified variants prompt users to read the inside temple stamp.
- Optical Scope & Corrections: PDSize is strictly a physical sizing and terminology reference. If you spot a discrepancy on any frame code or calculation, report it on our Contact & Corrections page.
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.