This 50 mm lens is for reach. Its minimum working distance is 400 mm, where a thin-lens estimate gives 50 ÷ (400 − 50) ≈ 0.143, so each 3.45 µm pixel covers about 24 µm and a typical 8.8 mm wide 2/3" sensor sees about 62 mm. That is the scale the 25 mm C23-2518-5M reaches at its 200 mm minimum, from twice the distance. Moving back widens the field: at an example 800 mm, 8.8 × (800 − 50) ÷ 50 ≈ 132 mm at 52 µm per pixel.
Distance calms perspective: at 400 mm, 1 mm of height shifts the scale by 1 ÷ 350 ≈ 0.29 %. Depth of field with a one-pixel (3.45 µm) criterion is 2 × 2.8 × 0.00345 mm × (0.143 + 1) ÷ 0.143² ≈ 1.1 mm at F2.8 and about 2.2 mm at F5.6. The rating is 5 MP for 3.45 µm pixels (Nyquist ≈ 145 lp/mm).
Best for
Cameras mounted 400 mm or more from the part, such as above a conveyor or cell with tall passing product, where a 50 mm lens keeps the field near 62 mm.
Mixed-height parts, where 1 to 2 mm of depth and a 0.29 % scale change per millimeter keep size readings steady.
Stations with large lamps, diffusers or shields between camera and part, which the 400 mm minimum distance leaves room for.
Selection notes
A lamp mounted at the camera must reach 400 mm or more, so budget more lamp power or choose a collimated or close-mounted source.
The F2.8 maximum aperture is slower than the F1.8 of the C23-2518-5M: the same scene needs about (2.8 ÷ 1.8)² ≈ 2.4 times the exposure, so slow lines suit it better than fast ones.
The 400 mm minimum rules out fields narrower than about 62 mm; for tighter fields at shorter distance, the 35 mm C23-3520-5M frames 41.5 mm from 200 mm.
Specifications: General
Brand
Basler
Specifications: Optical
Focal length
50 mm
Aperture (f-number)
F2.8 - F16
Optical resolution
5 MP
Lens mount
C-mount
Image circle / max sensor
2/3"
Working distance
400 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 · 2/3" 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 62 mm across a typical 8.8 mm wide sensor, at the 400 mm minimum working distance, as an estimate.
This one is specified for 3.45 µm pixels. For 2 µm pixels use the C23-5028-16M, which also focuses closer, at 200 mm.