S-mount (M12) is a natural fit for a 4.84 mm sensor diagonal: compact lenses for small-format sensors typically use an M12 × 0.5 thread, and the 4.22 mm × 2.38 mm active area is within reach of many of them. The sensor is mono with a rolling shutter, at 30 fps.
Focus is set by screwing the lens in its thread and locking it, so the lock nut and a rigid, vibration-free holder deserve attention. For an example 192 mm wide field at a 400 mm working distance, f ≈ 400 mm × 4.22 mm ÷ 192 mm ≈ 8.8 mm (thin-lens approximation), giving 192 ÷ 1920 = 0.10 mm per pixel. With 2.2 µm pixels the lens should approach 227 lp/mm, and small M12 optics often resolve less than that, so test the actual lens before fixing the design.
Best for
Compact machine-mounted cameras where length counts and a short M12 lens keeps the assembly small.
Presence, orientation and reading tasks on stopped parts, where the rolling shutter has no effect and 30 fps at 2 MP is enough.
Fixed installations that run unattended, where focus set once at commissioning stays locked.
Selection notes
M12 lenses typically have no iris or focus ring: aperture and focus are fixed at installation, so decide working distance and depth of field in advance and validate them with sample parts.
A lens for 1/3.7 inch is enough here, but the 5 MP daA2500-14um has a 7.13 mm diagonal and needs a larger image circle.
Choose the CS-mount version for a wider choice of lenses and an adjustable iris, or the no-mount board to supply your own holder.
Specifications: General
Brand
Basler
Camera type
Area Scan Camera
Specifications: Sensor
Sensor manufacturer
onsemi
Sensor model
MT9P031
Shutter
Rolling Shutter
Sensor size
1/3.7"
Horizontal resolution
1920 px × 1080 px
Pixel size
2.2 μm × 2.2 μm
Mono / color
Mono
Specifications: Performance
FPS
30 fps
Specifications: Interface
Interface
USB 3.0
Specifications: Optics
Mount
S-mount (M12)
Specifications: Electrical
Power
Via USB 3.0 interface
Specifications: Environment
Operating temperature
0 °C - 50 °C
Specifications: Mechanical
Housing material
Board Level
Weight
15 g
Applications this product is commonly selected for. Open one to see the full recommended hardware and approach.
9 frame grabbers / interface cards are compatible with this camera.
Matched automatically by: card supports the camera interface (usb3 vision) · card link speed is at least the camera link speed (cxp-6 / cxp-12, 1–10 gige) — this camera: USB 3.0.
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
S-mount (M12), typically M12 × 0.5 mm, the small-diameter thread used by compact lenses for small sensors.
As an example, 200 mm across 1920 px is 200 ÷ 1920 ≈ 0.10 mm per pixel. With 3 to 5 px per feature for reliable measurement, the smallest detail to judge there is about 0.3 mm to 0.5 mm.