PlatformsFaststream SiliconFaststream RadioFaststream VisionConnected EdgeFaststream SecureMobility & Rail
ProductsSemiconductor IPWireless & RANEdge & GatewaysTracking & IdentificationSoftware & FrameworksConnected Systems
TechnologyRTL to GDSIIVerification methodologyDFT and silicon testLow-power designMixed-signal integrationDesign enablement5G protocol stackWireless and RF architectureBaseband and low PHYForward error correctionControl and data planeHigh-speed interfacesFirmware and bootSilicon root of trustSoftware-defined vehicleAutomotive OTAFunctional safety
AIAI Engineering ServicesEdge AI & Embedded MLComputer Vision EngineeringSensor Fusion & PerceptionAI Silicon & AccelerationMLOps for DevicesAI Visual InspectionPredictive MaintenanceDriver MonitoringVideo Analytics & Safety
SolutionsSemiconductorIndustrial AIConnected ProductsAsset TrackingAutomotive & MobilitySmart InfrastructureSecure IdentityWireless & SatelliteSmart WashroomsFuel ManagementSmart BuildingsWorker SafetyEnergy MonitoringSmart AgricultureSmart CityAutonomous PlatformsAssembly AutomationLiDAR Rail SafetyHardware Wallet
IndustriesSemiconductorTelecommunicationsIndustrial & ManufacturingAutomotive & MobilityTransportation & RailAerospace & DefenceHealthcare & MedicalEnergy & UtilitiesOil & GasRetailConsumer ElectronicsMedia & EntertainmentSmart Infrastructure & IoT
ServicesSystem Integration overviewASIC & SoC DesignFPGA DesignFPGA-to-ASIC ConversionAnalog, Mixed-Signal & RFHardware & High-Speed PCBEmbedded SoftwareCloud, OTA & Device ManagementManufacturing TransitionHow we engage
InsightCase StudiesKnowledge CenterWhite PapersGlossaryNewsletterResources & Support
CompanyAbout FaststreamEngineering ExcellenceLeadership & OrganisationHow We EngageQuality & ComplianceStandards & EcosystemPartners & EcosystemTrust CentreLocations & DeliveryNewsroom & MediaCareers
ContactStart a projectHow we engage
Talk to an engineer
APPLICATION NOTE

Choosing the camera, the lens and the trigger

Most inspection systems that fail were decided at the lens, not at the model. Resolution, shutter type, optics geometry and how the camera learns a part has arrived are settled before any image is captured — and once wrong, no amount of training data recovers them.

Machine visionCameraLensGlobal shutterTelecentricLine scanGigE VisionUSB3 VisionGenICamPLC triggerStrobeDepth of field
ShareLinkedInXEmail
START HERE

Resolution is set by the defect, not the part.

The useful figure is pixels across the smallest feature that must be detected, not megapixels. A defect needs several pixels across it to be distinguishable from noise — three at absolute minimum, and five or more for anything that has to be measured rather than merely found.

So the calculation runs backwards from the defect: smallest feature size, times the pixels needed across it, divided into the field of view. That gives the sensor resolution. Choosing a camera first and hoping the defect resolves is the most common and most expensive sequence error in this category.

Field of view should be as tight as the part tolerances allow. Every millimetre of extra view spends resolution on space where a defect cannot occur, and part positioning variation is what forces the margin. Better fixturing frequently buys more than a bigger sensor.

SENSOR AND SHUTTER

Four decisions that cannot be undone in software.

Camera selection
DecisionThe optionsWhat it turns on
ShutterGlobal or rollingAnything moving during exposure. A rolling shutter exposes rows sequentially, so a moving part is skewed. On a conveyor, global is not a preference
Scan typeArea or line scanContinuous web or cylindrical parts suit line scan, which builds an image as the material moves and needs an encoder to stay square. Discrete parts suit area scan
Monochrome or colourMono, colour, or multispectralMono gives full resolution to every pixel and better low-light performance. Colour costs resolution to the filter array and is only worth it when colour is the defect
InterfaceGigE Vision, USB3 Vision, CoaXPress, MIPICable length, bandwidth and whether the camera is powered over the same cable. GigE reaches 100 m and is simplest to integrate; USB3 is faster over short runs

GenICam gives a common programming interface across these transports, so the software layer need not change when the transport does.

OPTICS

Six things about lenses that decide the result.

TRIGGER AND PLC

How the camera learns a part has arrived.

01

The PLC owns the sequence

The controller knows where parts are; the vision system does not. Position comes from a sensor or encoder into the PLC, and the PLC issues the trigger.

02

Hardware trigger, not software

A digital input asserted by the PLC gives repeatable latency measured in microseconds. A software trigger over the network is subject to whatever the operating system is doing, and jitter becomes position error on a moving line.

03

Strobe fires from the camera

The camera asserts a strobe output at the start of exposure so the illumination is synchronous with capture rather than merely nearby. On a moving part, that difference is blur.

04

Exposure sized against motion

The permitted blur is a fraction of a pixel at the part's speed. That sets maximum exposure, which sets required light, which sets the illumination design.

05

The verdict returns as a signal

Pass or fail comes back to the PLC as a digital output or a fieldbus word within the station's cycle budget, because the PLC actuates the reject.

06

The record goes elsewhere

Image, measurements and parameters go to the MES or historian on a slower path, so record-keeping never sits inside the control loop.

WHERE THIS APPLIES

Industries this serves.

COMMON QUESTIONS

What engineers ask before they call.

01

How do I calculate the camera resolution I need?

Work backwards from the defect. Take the smallest feature that must be detected, multiply by the pixels needed across it — three at absolute minimum, five or more if it must be measured — and divide into the field of view. Megapixels alone tell you nothing without the field of view.

02

When do I need a global shutter?

Whenever the part moves during exposure. A rolling shutter exposes rows sequentially, so a moving part is captured skewed. On a conveyor or an indexing line, global shutter is a requirement rather than a preference.

03

What is a telecentric lens for?

Keeping magnification constant regardless of distance, so a feature does not change size as the part sits higher or lower in the fixture. Essential for dimensional measurement; unnecessary and expensive when detecting surface defects.

04

Should the trigger come from the PLC or from software?

From the PLC, as a hardware digital input. That gives repeatable latency in microseconds. A software trigger over the network inherits whatever the operating system is doing, and that jitter becomes position error on a moving part.

05

What is the difference between line scan and area scan?

Area scan captures a two-dimensional image in one exposure and suits discrete parts. Line scan builds an image one row at a time as material moves past, which suits continuous web or cylindrical parts — and needs an encoder so the image stays geometrically correct when speed varies.

06

What is GenICam?

A common programming interface across camera transports such as GigE Vision, USB3 Vision and CoaXPress. It means the software layer does not have to change when the transport does, which matters when a camera is replaced years later.

07

Why does depth of field matter so much?

Because deepening it means closing the aperture, which costs light, which lengthens exposure, which on a moving line causes motion blur. Depth of field, light and speed form the real optical design triangle.

FOUND THIS USEFUL?

Pass it on.

Written for engineers. Share it with one.

ShareLinkedInXEmail
KEEP READING

Related work.

BUILD WITH FASTSTREAM

Bring us the difficult part.

Tell us the specification, the constraint and the deadline. Programmes that cross silicon, radio, embedded and AI are where Faststream is strongest.