This is the long lens of the three 5 MP C125 models, the one to pick when the part must stay far away. At the 200 mm minimum working distance a thin-lens estimate gives 25 ÷ (200 − 25) ≈ 0.143, so each 2.2 µm pixel covers about 2.2 ÷ 0.143 ≈ 15 µm and a typical 5.7 mm wide 1/2.5" sensor sees 5.7 ÷ 0.143 ≈ 40 mm. At an example 400 mm, 25 ÷ 375 ≈ 0.067 widens that to about 86 mm at 33 µm per pixel.
The price is depth. With a one-pixel (2.2 µm) blur criterion, depth of field at F2.2 is 2 × 2.2 × 0.0022 mm × (0.143 + 1) ÷ 0.143² ≈ 0.54 mm, so parts must be held flat, or the lens stopped down to F5.6 for about 1.4 mm. F2.2 is also slightly slower than the F1.8 of the C125-0618-5M and C125-0818-5M: (2.2 ÷ 1.8)² ≈ 1.5 times less light.
Best for
Fine features on small flat parts from 200 mm away: a 15 µm pixel puts a 0.1 mm line across 100 ÷ 15 ≈ 6.7 px.
Inspection behind a guard, fixture or window, where 200 mm or more between lens and part matters more than a wide field.
Low-angle or dark-field lighting for surface scratches, which needs free space between the lens and the part.
Selection notes
The 8 mm C125-0818-5M is the choice when space is short: it frames 66 mm from 100 mm, where this lens needs about 312 mm for the same field.
Scale shifts by about 1 ÷ 175 ≈ 0.57 % per millimeter of height at 200 mm and less farther out, gentler than the short models at their 100 mm.
The 1/2.5" image circle is the limit; a larger sensor vignettes.
Specifications: General
Brand
Basler
Specifications: Optical
Focal length
25 mm
Aperture (f-number)
F2.2 - F22
Optical resolution
5 MP
Lens mount
C-mount
Image circle / max sensor
1/2.5"
Working distance
200 mm minimum
Telecentric
No
Applications this product is commonly selected for. Open one to see the full recommended hardware and approach.
Matched automatically by: camera mount fits the lens mount · camera sensor is covered by the lens image circle — this lens: C-mount · 1/2.5" image circle.
Get a first image quickly with the pylon Viewer, then move into the pylon SDK for your application. These cameras are GenICam/GenTL-compliant, so any compliant vision software can drive them as well.
Download and install the pylon Camera Software Suite for your OS from Basler. This provides the pylon Viewer, the GenTL transport-layer producers and the pylon SDK (C/C++/.NET/Python). On Windows the installer adds the needed drivers; on Linux follow the included setup notes for USB and network permissions.
2. Connect the camera and check the link
Cable the camera to its matching interface: GigE Vision to a GigE port (use a quality cable and, ideally, a dedicated NIC with jumbo frames enabled), USB3 Vision to a USB 3.x port with the supplied cable, or CoaXPress to the frame grabber. Provide power where required (PoE, USB bus power, or PoCXP). Open the pylon Viewer and confirm the camera appears in the device list; for GigE, make sure the camera and NIC are on the same subnet.
3. Grab a first image and set exposure, gain and pixel format
Select the camera in the pylon Viewer and start a continuous grab. Adjust exposure time and gain until the image is well exposed (avoid clipped highlights), set the pixel format (e.g. Mono8 or a Bayer/RGB format), and focus the lens. Use a test pattern if the lens or scene is not ready yet.
4. Configure triggering and acquisition
Decide between free-run and triggered acquisition. For synchronized capture, set the trigger source (software or a hardware line on the I/O connector), trigger mode and any debounce or exposure mode, then verify timing. Note the parameter names you change in the Viewer feature tree, as you will reuse them in code.
5. Move to the SDK or a GenICam-compliant library
Recreate your settings in code with the pylon SDK (C, C++, .NET or Python) to open the device, apply the same features and pull frames into your pipeline; pylon vTools and pylon AI can add processing blocks. Because the cameras are GenICam/GenTL standard, third-party vision libraries work too. Once the image stream is stable, you can route frames to a deep-learning inspection such as Rosepetal for automated defect detection.
Frequently asked questions
About F5.6: the working f-number is 5.6 × 1.143 ≈ 6.4 and the cutoff 1 ÷ (0.55 µm × 6.4) ≈ 284 lp/mm, still above the 227 lp/mm Nyquist limit. F8 acts as 9.1 (≈ 199 lp/mm), which is below it.
Standoff and finer sampling: 15 µm per pixel against 25 µm, with the part 200 mm or more away. The cost is a narrowest field of about 40 mm against 66 mm.