A 6 mm focal length on a 1/2.5" sensor is a wide-angle pairing for short distances. At the 100 mm minimum working distance a thin-lens estimate gives 6 ÷ (100 − 6) ≈ 0.064, so a typical 1/2.5" sensor 5.7 mm wide sees about 5.7 ÷ 0.064 ≈ 89 mm and each 2.2 µm pixel covers about 2.2 ÷ 0.064 ≈ 34 µm. That is the narrowest field; moving back widens it, for example to 5.7 × (300 − 6) ÷ 6 ≈ 279 mm at 300 mm.
It is made for 5 MP sensors with 2.2 µm pixels (Nyquist 1 ÷ (2 × 2.2 µm) ≈ 227 lp/mm) and a 1/2.5" image circle, so a 2/3" sensor shows dark corners. The F1.8 maximum aperture passes (2.8 ÷ 1.8)² ≈ 2.4 times the light of an F2.8 lens, which keeps exposures short.
Best for
Whole small assemblies, trays or PCBs about 89 mm wide imaged from only 100 mm, where the camera must stay close to the part.
Presence, position and orientation checks on features of a few tenths of a millimeter: an example 0.3 mm feature spans 300 ÷ 34 ≈ 9 px.
Lines where one station sees parts of varying size, because the field can be widened to roughly 279 mm at 300 mm without changing the lens.
Selection notes
Short focal lengths typically show barrel distortion toward the borders, so calibrate before measuring. At 100 mm, 1 mm of height also shifts the scale by about 1 ÷ 94 ≈ 1.1 %, too much for gauging parts that vary in height.
When the camera has to stay close, this is the lens: the 8 mm C125-0818-5M needs 8 × (1 + 89.3 ÷ 5.7) ≈ 133 mm to frame the 89 mm that this lens frames at 100 mm.
A tighter field needs a longer focal length: the 8 mm C125-0818-5M frames 66 mm at 100 mm and the 25 mm C125-2522-5M about 40 mm at 200 mm.
Specifications: General
Brand
Basler
Specifications: Optical
Focal length
6 mm
Aperture (f-number)
F1.8 - F22
Optical resolution
5 MP
Lens mount
C-mount
Image circle / max sensor
1/2.5"
Working distance
100 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
F1.8 to about F5.6. At F8 the working f-number is 8 × 1.064 ≈ 8.5 and the cutoff 1 ÷ (0.55 µm × 8.5) ≈ 214 lp/mm is under the 227 lp/mm Nyquist limit; F16 gives about 107 lp/mm.
No, it is the closest it focuses. Beyond 100 mm the lens keeps focusing and the field grows with distance, which is how one lens serves different part sizes; a field smaller than 89 mm needs a longer focal length.