How to choose a smart camera or vision sensor
How to choose between a vision sensor, smart camera and PC-based vision, based on tools, on-device AI, lighting, resolution, speed and fieldbus needs.
Vision sensor, smart camera or PC-based
Think of these as three steps on a ladder, and start on the lowest step that solves the job. A vision sensor is closest to an advanced photoelectric sensor. It usually has integrated lighting and optics, a resolution typically around VGA to about 2 MP, a limited set of tools and guided setup, and it returns OK/NOK. Its advantage over a photoelectric sensor is tolerance: it can check a feature even when position or appearance varies, and it can check several features in one image.
A smart camera is a programmable inspection computer in a camera housing. Sensors commonly range from about 1 MP to 12 MP and beyond, with wider tool libraries covering gauging, code reading, OCR and pattern matching, plus logic or scripting, more lens and light options, and richer communication. It returns data as well as a decision.
PC-based vision separates the camera and the computer. It costs more integration effort but removes most of the limits on compute, sensor size, camera count and software. Naming differs between vendors, and categories overlap at the edges, with some vision sensors offering AI tools and some smart cameras having fixed lenses. Compare capabilities rather than labels.
- Vision sensor: presence, position, count, orientation, simple code or colour checks; one or a few recipes; OK/NOK result.
- Smart camera: several chained tools, gauging, OCR, code reading, fixturing, many recipes, numeric results and image logging.
- PC-based: several synchronised cameras, large sensors, line scan, heavy deep learning, or tight integration with custom software.
Rule-based tools vs on-device AI
Rule-based tools such as pattern matching, blob analysis, edge finding, calipers and colour checks are deterministic and explainable. You can state exactly why a part failed and set a documented threshold, and they run fast. They depend on stable imaging, so they become fragile when part appearance varies naturally or when lighting drifts. Choose them whenever the feature can be described as a measurement or a clear contrast rule. Gauging in particular belongs here, because a measurement needs a calibrated, traceable tool, not a classifier.
On-device AI handles what is hard to write as a rule: cosmetic defects on textured surfaces, natural variation, and good/bad classification where examples are easier to supply than definitions. Typical functions are classification, anomaly detection, segmentation or detection, and AI-based OCR. The cost is a need for representative images, more compute and more validation effort. Anomaly detection reduces the need for defect samples by training mainly on good parts, but you still need real defect examples to prove that it catches them.
The main hardware limit is input size. Embedded accelerators usually run compact models, and images are commonly scaled down first. Take a 2448 x 2048 image and an illustrative 512 x 512 input. The width shrinks by a factor of about 4.8, so a 15 px scratch becomes about 3 px and a 6 px scratch is about 1 px and effectively gone. Cropping to a 1024 x 1024 region of interest reduces the factor to 2, and that 15 px scratch stays at about 7.5 px. Check the device's actual input size and whether it can crop or tile, and test the smallest defect that matters. On-device inference typically takes tens to hundreds of milliseconds, so measure it within your cycle.
The two approaches combine well: use a rule-based tool to locate the part, then run AI on a tight crop around the region of interest. Treat model changes like program changes, with a version number, a held-out test set and re-validation before release.
Integrated lighting and optics
Integrated lighting is convenient and well aligned, and it fits many jobs at short range. Its limits come from geometry and power. It is close to on-axis, so it returns a bright hot spot from glossy flat surfaces. Tilting the device about 10-15° often moves the reflection out of the lens, and polarisers help on some surfaces. It cannot produce backlight or true dark-field, and a dome light is a different geometry altogether. Silhouette measurement, shiny curved parts and low-relief marks generally need an external light.
Light falls off quickly with distance. As an approximation, doubling the working distance leaves about a quarter of the light at the part, so for the same image brightness a 100 µs exposure becomes about 400 µs, and motion blur grows by the same factor. If a job needs a long working distance and a short exposure, plan for an external strobed light and confirm that the device can trigger it. Colour matters too: white is needed for colour discrimination, red is a common choice for monochrome contrast, and infrared can reduce sensitivity to ambient light. A shroud is often the simplest fix for changing ambient light.
On optics, the choice is between convenience and flexibility. Built-in or S-mount lenses keep the device compact, usually with a choice of focal lengths. C-mount versions accept the full range of machine-vision lenses, but they make the device bigger and need a lens cover to maintain the IP rating. Electronically focusable liquid lenses suit mixed part heights, since focus can change per recipe with no moving mechanical parts. Estimate the field of view as working distance x sensor width / focal length: a 4.8 mm wide sensor with an 8 mm lens at 200 mm sees about 120 mm. Include part-position tolerance in the field you need.
Resolution and speed trade-offs: a worked example
More pixels are not automatically better on an embedded processor, because many tools take time roughly in proportion to the pixels analysed. So choose the lowest resolution that does the job. Then work through the following example, based on a 120 mm field of view, a 0.5 mm smallest feature and 300 parts per minute on a 1 m/s belt.
- Resolution: 3-5 px on 0.5 mm means 0.10-0.17 mm/px, or about 720-1,200 px across 120 mm.
- Sensor choice: 1280 x 1024 (1.3 MP) gives 0.094 mm/px, or about 5.3 px on the feature, which is enough.
- Cycle budget: 300 parts/min is 5 parts/s, or 200 ms per part. At a 70% safety target, that leaves 140 ms.
- Measured cycle (illustrative): exposure under 1 ms, readout ~20 ms, tools ~80 ms, output ~5 ms, for a total of ~105 ms. This fits.
- Going to 5 MP: about 3.8 times the pixels pushes the tool time towards 300 ms, which fails unless regions of interest are limited tightly.
- Motion blur: limiting blur to 1 px at 1 m/s means 0.094 mm / 1,000 mm/s = about 94 µs of exposure, which needs plenty of light and a global shutter.
- Datasheet frame rate: this is usually a rate without tools running, so treat it as an upper bound and not as inspection throughput.
- Test method: run the complete tool chain on your own images and read the device's cycle-time report for the worst case, including failing parts, since these can take longer.
Outputs and fieldbus
Discrete 24 V outputs are the simplest connection and fine for a single OK/NOK with a ready signal. As soon as the PLC needs to know which tool failed, receive a measurement, or select a recipe, a fieldbus saves wiring and reduces commissioning effort. PROFINET and EtherNet/IP are the most common on these devices, along with Modbus TCP or raw TCP/UDP strings, serial links on some devices, and IO-Link on some vision sensors. Check the exact protocol on the exact model, and do not assume a family supports all of them.
Check the integration details early: availability of a device description file (GSDML for PROFINET, EDS for EtherNet/IP), payload size, any PLC function blocks and how the handshake works. Recipe changes can take from milliseconds to seconds, so a line with frequent changeovers needs to measure this. Decide how to time rejects: normally, the device reports a result and the PLC fires the reject based on encoder counts or a known delay.
Consider data as well. Vision sensors and many smart cameras hold a limited number of images, so failure images need to go somewhere if traceability or diagnosis matters, typically via FTP or a similar network transfer. Check that this does not lengthen the inspection cycle. Where MES connectivity is required, look for OPC UA or a defined data interface.
When you outgrow each device
Before moving up, rule out imaging. A large share of apparent device limits are really lighting, focus or fixturing problems, and a bigger processor will not repair a low-contrast image. Also reduce the region of interest and remove redundant tools, as this often recovers enough cycle time to stay put. Over-specifying has a cost too: a PC on a simple presence check adds maintenance for no gain.
When rule-based tools or on-device AI stop holding up on variable parts, the next step is usually a PC-based system running a platform such as Rosepetal. Send sample images and AIS Vision can tell you which architecture the application really needs.
- Vision sensor to smart camera: you need more tools or regions than the device allows, measured values rather than OK/NOK, script-like logic, many recipes, or a different lens or external light.
- Vision sensor to smart camera: position variation demands fixturing that links several tools, or code data must be combined with inspection results.
- Smart camera to PC: cycle time still fails after trimming the regions of interest and tools, or the job needs a sensor or frame rate beyond the device's range.
- Smart camera to PC: results from several views must be combined, or the job requires line scan or CoaXPress.
- On-device AI to PC: small defects are lost at the model's input size, models need to be larger, or retraining is frequent enough to need a proper data pipeline.
- All devices: long-term image logging or heavy data integration has outgrown on-device storage and tools.
- Trial: test candidates with good, bad and borderline real parts, and set target rates for false rejects and escapes before you start.
Frequently asked questions
Related categories
- Smart cameras
- All-in-one smart cameras
- AI smart cameras
- Smart cameras with integrated lighting
- Vision sensors
- OK/NOK sensors
- AI vision sensors
Related guides
Smart camera vs PC-based vision
How to choose between all-in-one smart cameras and PC/embedded vision with a separate camera, based on inspection complexity, throughput, flexibility, AI needs and total cost of ownership.
Vision controllers and industrial PCs: how to choose
How to choose between a vision controller, a generic industrial PC and a smart camera, and how to size CPU, GPU, ports, I/O, storage and cooling.
How to choose machine vision lighting
A practical guide to choosing machine vision lighting: geometry, wavelength, strobe vs continuous, ambient control and how to maximise feature contrast for reliable inspection.
How to validate a machine vision application: a practical checklist
A field checklist to de-risk a machine vision project before you buy hardware: define defects and tolerances, collect representative samples, prove the imaging, budget resolution and field of view, lock motion and triggers, then run a structured proof of concept against measurable acceptance criteria.







