How to Choose a Lens for Your OV9281 + ESP32-P4 IR-CUT Camera
Four lens constraints decide the outcome — image circle, resolution headroom, mount, and day/night behavior — and each can be checked against the sensor datasheet before a purchase order is written.
Key takeaway: The OV9281 is a 1 MP (1280×800) global shutter sensor with a 1/4" optical format, 3.0 µm pixels, and NIR enhancement. Paired with the ESP32-P4 over MIPI-CSI, the sensor and processor side of a prototype is usually the easy part; the optical path is where embedded projects stall. This guide covers those checks and the lenses that pass them.
Why the OV9281 + ESP32-P4 Platform Constrains the Lens
Three of the four constraints are verifiable on paper:
Image circle. The OV9281's active area measures roughly Ø4.5 mm on the diagonal, so the lens image circle must clear that figure. A 1/4"-rated lens at Ø5.0 mm covers it with margin; a lens rated 1/5" or smaller will vignette the corners. The format label is a starting point — the image circle spec is the number that decides.
Resolution headroom. At 3.0 µm, the pixel pitch resolves detail that a VGA-era lens was never designed to deliver. A 2 MP or higher lens is the practical baseline for this 1 MP sensor; the extra headroom keeps corner MTF acceptable instead of borderline.
Mount. The ESP32-P4 is a compact MIPI-CSI platform, and the mount has to suit a small module board. M12 (S-mount) is the workhorse: it threads into standard camera modules, leaves room for focus alignment during assembly, and carries the largest selection of optics. M7/M8 suit ultra-compact housings but narrow the catalog.
The fourth constraint, day/night behavior, is covered in the IR-CUT section below. For a first shortlist: a 1/4" M12 lens at 2 MP or better.
"A 1/4"-rated lens at Ø5.0 mm covers it with margin; a lens rated 1/5" or smaller will vignette the corners."
— Image-circle check against the OV9281 active areaThe Sensor-Indexed Match: JSD2012 M12 Lens
Running the OV9281 against the JSD Optics lens database returns one direct match. JSD2012 is the sensor-indexed model for this part — the image circle, back focal length, and resolution headroom were verified against the OV9281's actual specs rather than a generic compatibility label.
| Spec | JSD2012 |
|---|---|
| EFL | 2.09 mm |
| Aperture | F/2.6 |
| FOV (D/H/V) | 135° / 112.6° / 69° |
| Distortion | < −54% (strong wide-angle look) |
| Construction | 3G1P |
| Mount | M7 / M8 / M12 |
| TTL | 11.9 mm |
| Resolution | 2 MP |
| Image circle | 1/4" (Ø5.0 mm) — covers OV9281's ~Ø4.5 mm ✓ |
Two properties matter in practice. The F/2.6 aperture gathers enough light to pair with IR illumination at night, and the 11.9 mm total track fits the housings typical of ESP32-P4 modules. Where the mechanical budget is tighter, the TTL column in the comparison table below sorts the alternatives.
Where Each Lens Fits: Security, Iris, and Compact Builds
Day/night security, doorbell, monitoring. A wall-mounted module needs horizontal reach from a short working distance; the 112.6° horizontal FOV on JSD2012 covers a doorway or room without a second unit. For outdoor installs that need weather sealing and a faster aperture, JSD2008 steps up to F/2.0 with an IP67-rated housing and 5 MP headroom.
Iris recognition, barcode reading, eye tracking. These applications trust the geometry of every frame, and the OV9281's global shutter suits them because a moving subject produces no rolling-shutter distortion. The wide-angle JSD2012 bends that geometry, so the low-distortion pair — JSD2226 (M7) and JSD2628 (M12), both under 1% distortion — is the correct group.
Height-constrained modules. When the housing is the binding constraint, the mount decision leads: the M7 JSD2226 carries the shortest total track in the lineup, while the M12 JSD2012 keeps the widest optical choice.
Choosing Between the Six: M12 Lens Comparison and Selection
| Model | EFL | FOV (D/H/V) | Distortion | Mount | TTL | Res | Best for |
|---|---|---|---|---|---|---|---|
| JSD2012 | 2.09 | 135/112.6/69 | < −54% | M12 | 11.9 | 2 MP | Sensor-indexed OV9281 day/night builds |
| JSD2008 | 2.05 | 134/114/61 | < −54.8% | M12 | 16.8 | 5 MP | Outdoor IP67 security, brighter F/2.0 |
| JSD2226 | 2.20 | 91/82/52 | < −0.6% | M7 | 9.84 | 5 MP | Iris / barcode / measurement accuracy |
| JSD2628 | 2.80 | 84/75/58 | < −0.35% | M12 | 20.0 | 5 MP | Low distortion with standard M12 |
| JSD1225 | 2.07 | 110/92/71 | +6.4% | M7/M12 | 10.7 | 5 MP | Balanced mid-FOV, very small |
| JSD5500 | 1.70 | 166/126/92 | +19.1% | M7/M8/M12 | 10.0 | 5 MP | Maximum FOV in a tiny package |
The six models split along one question: does the application measure, or does it observe? When geometry must be trusted — metrology, code reading, structured light — distortion under 1% is the governing spec, and FOV is secondary. When the goal is scene coverage and night stability, FOV and light gathering govern instead. Two models serve edge cases: JSD1225 is the compact mid-FOV option with mild positive distortion, and JSD5500 pushes the diagonal FOV to 166° for maximum coverage in a small package. Sorting by the governing spec answers most selection questions before a supplier call.
The IR-CUT Reality Check: Sourcing Lens, Filter, and ICR Separately
A day/night camera is a three-part optical chain: lens, mechanical IR-cut switcher (ICR), and sensor. The lens itself must be IR-corrected, because glass focuses visible light and 850 nm NIR on slightly different planes. On a non-corrected lens, removing the ICR at night shifts the focal plane and the image softens. So an "IR-CUT lens" in a catalog is precisely a lens whose focus holds across visible and NIR — the filter element is not part of it.
The sourcing split is correspondingly clear:
The sensor comes from OmniVision or authorized distributors and module makers.
The lens comes from the imaging-lens manufacturer — for the OV9281 models above, JSD.
The ICR and filter come from module makers or IR-cut filter specialists.
The OV9281 variant changes the last step. The color version needs the ICR in place for correct daytime color. The mono version, used for pure NIR work such as iris and barcode, typically skips the ICR and uses an 850 or 940 nm band-pass filter instead. JSD confirms the IR-corrected version of any selected model and offers IR-cut coated filter options on request.
Why the Lens Supplier's Engineering Depth Matters
The supplier's role in a day/night build goes beyond quoting a part number. JSD operates as an imaging lens developer and manufacturer for camera module makers: an in-house optical design department handles both standard products and custom development, and production runs under ISO 9001 and IATF 16949 across 17 years of imaging-lens manufacturing. The practical consequence for an ESP32-P4 build is that a standard model is not the end of the road — if FOV, distortion, or mechanical constraints rule out the catalog, the same supplier can design, prototype, test, and mass-produce a custom optical solution instead of forcing a compromise. Engineering support extends to MTF curves, mechanical drawings, and the trade-off discussion that a purchasing team usually cannot run alone.
❓ Frequently Asked Questions
How do I choose an OV9281 lens?
Check three specs against the sensor first: image circle (must clear ~Ø4.5 mm), resolution (2 MP minimum for the 3.0 µm pixels), and mount (M12 for most ESP32-P4 modules). Then pick the distortion class — wide-angle for observation, under 1% for measurement — and confirm the IR-corrected version for day/night use.
What mount should an ESP32-P4 camera use?
M12, in most cases. Its M12×0.5 threads and lock-ring design allow focus adjustment during assembly, and the mount has the largest catalog of compatible optics. M7/M8 only when the board is height-constrained.
Is the IR-cut filter part of the lens?
No. The mechanical ICR is a separate component mounted between lens and sensor, sourced from module makers or filter specialists. The lens only needs to be IR-corrected to work with it — see the IR-CUT section above.
Can JSD customize a lens if none of the six fits?
Yes. Custom development starts with the sensor, resolution, FOV, working distance, distortion, and mechanical constraints; JSD then handles optical design, prototyping, testing, and mass production.
Contact JSD Engineering About an OV9281 Lens
Include the application, the OV9281 variant (color or mono), and the IR-cut plan, and JSD will confirm the best lens, its IR-corrected version, and any custom filter element.
Or email us at info@jsdoptical.com
