Book a free call

Computer Vision in Robotics: How Robots See and Act

Computer vision in robotics turns camera images into movement: navigation, grasping, inspection and tracking. Here is how each job works and what a robot needs.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Computer Vision in Robotics: How Robots See and Act
On this page

Short answer

Computer vision in robotics is the use of cameras and depth sensors to give a robot the information it needs to move and act: where it is, what is around it, which object to pick up, and whether the job it just did came out right. The camera is the robot's main sense, and the vision system turns pixels into decisions the robot can act on.

What is computer vision in robotics?

Computer vision in robotics is the use of cameras, depth sensors and software to let a robot understand its surroundings and act on what it sees. A robot without vision follows a fixed path and stops when something changes. A robot with vision finds its way, picks up objects that are not in exactly the same place twice, and checks its own work.

Five jobs cover most of the work:

Job What the camera does What the robot does next
Navigation Maps the space and finds obstacles Plans a path and avoids collisions
Grasping Finds the object and its pose Moves the gripper to the right spot
Inspection Compares the part with the standard Accepts, rejects or reworks the part
Tracking Follows a moving object or person Keeps pace and keeps a safe distance
Reading Reads codes, labels and dials Logs the item or follows the instruction

The key point is that vision is a loop, not a single step: the robot looks, decides, moves, and looks again to check the result. A system that only looks once will drift, because the world moves and the robot's own motion changes what it sees. If you are new to the field, what computer vision is and how it works is the place to start.

How does a robot navigate with cameras?

A robot navigates with cameras by building a map of its surroundings and tracking its own position inside that map, the same SLAM approach used in headsets. The robot watches fixed features such as corners and edges as it moves, works out how far it has travelled, and records where obstacles are. Depth sensors add distance, so the map is three-dimensional rather than flat.

Once it has a map, the robot plans a path from where it is to where it needs to go, avoiding the obstacles it has recorded. While it moves, it keeps checking the live camera feed against the map. If a person steps into the path, the robot stops or steers around them, then replans.

Navigation fails most often when the scene changes faster than the map updates. A warehouse aisle with forklifts moving pallets needs the map refreshed constantly, while a fixed factory cell can rely on a map built once. The right approach depends on how busy and how changeable the space is, and teams should test in the real space rather than in a simulation alone.

How does a robot pick up an object?

A robot picks up an object in three steps: find it, work out its pose, and move the gripper to the right place. The camera finds the object by its shape, colour or a code printed on it. Depth data then gives the object's position and angle, so the robot knows whether it is lying flat, tilted or stacked on another item.

The gripper choice follows the object. A suction cup suits flat boxes, a two-finger grip suits bottles and cans, and a soft gripper suits fruit and other items that bruise. The vision system must know which gripper is fitted, because the same object needs a different approach for each one.

The hard part is variation. Objects arrive in different orientations, some are partly hidden, and lighting changes through the day. A system trained on a few hundred labelled images of each object type handles this better than a fixed rule, because it has seen the object from many angles.

The robot should also check its grip after lifting: if the object slips, the camera should see it and the robot should set it down and try again.

How do robots inspect and measure with vision?

Robots inspect and measure with vision by comparing what the camera sees with what the part should look like. For a defect check, the system looks for cracks, scratches, missing parts or wrong colours. For a measurement, it finds edges and landmarks, then computes distances, angles and sizes from the image and the known camera geometry.

Lighting is the single biggest factor in inspection quality. A fixed light at a fixed angle makes defects visible in a repeatable way, while changing daylight makes the same part look different every hour. Most inspection cells use their own enclosed lighting and a fixed camera distance, so the images are consistent from one part to the next.

Inspection also needs a clear pass and fail rule. The team must decide in advance how big a scratch is too big, and how many defects in a batch trigger a stop. A system that flags everything is as useless as one that flags nothing, because operators stop trusting it. The threshold should be set from real samples, not from a guess, as explained in deep learning for computer vision.

What data and hardware does a vision robot need?

A vision robot needs cameras suited to the job, computing power close to the robot, and labelled data for any model it uses. A 2D camera is enough for reading codes and checking flat parts. A depth camera or a pair of stereo cameras is needed for grasping and navigation, because the robot must know distances, not just directions.

Computing usually sits on the robot or nearby, because sending every frame to a distant server adds delay the robot cannot afford. A robot that waits half a second for an answer will overshoot its target. Small, fast models that run on the robot itself are often better than large, accurate models that run far away.

Labelled data is the long pole. The team must collect images from the real environment, label the objects and defects that matter, and keep adding examples when the system fails. A useful rule is to collect at least a few hundred labelled images per object type before trusting a model, and to keep a separate test set the model has never seen.

Example (hypothetical): a warehouse picking robot

Example (hypothetical): a warehouse runs a picking robot that takes items from a shelf and puts them in a tote. The robot uses a depth camera to find the item, a suction gripper to lift it, and a second camera to check that the right item landed in the tote.

In its first week the robot handles 5,000 picks. It picks the right item 4,850 times, drops 100 items, and picks the wrong item 50 times. The team checks the logs and finds that most drops happen with glossy boxes, where the depth camera misreads the surface, and most wrong picks happen when two similar items sit side by side.

The arithmetic is simple: 4,850 correct picks out of 5,000 means 97% of picks are right, and 150 failures out of 5,000 means a 3% failure rate. The team fixes the glossy-box problem with a polarising filter on the camera and adds a barcode check before the item goes in the tote. The failure rate falls below 1% in the second week.

What are the common mistakes?

The most common mistakes in robot vision are testing in a clean lab, trusting a model trained on too few images, and treating vision as a one-off setup rather than a system to maintain.

  • Training on lab images only, so the model fails under real light, dust and clutter.
  • Skipping a grip check, so a dropped object is only found at the next station.
  • No fallback when vision fails, so the robot stops instead of asking a person.
  • Ignoring latency, so the robot acts on an image that is already out of date.
  • Never retraining, so new products and new packaging quietly break the model.

A good habit is to log every failure with its image, review the failures weekly, and retrain on the failures. For the build side, how to implement computer vision in your product covers the step-by-step sequence.

Key takeaways

  • Robot vision is a loop: look, decide, move, then look again to check the result
  • Navigation needs SLAM mapping plus live obstacle checks while moving
  • Grasping needs object pose from depth data and a gripper matched to the object
  • Inspection quality depends on fixed lighting and clear pass and fail rules
  • Log every failure with its image and retrain on the failures

Frequently asked questions

What cameras does a vision robot need?

A 2D camera is enough for reading codes and checking flat parts. Grasping and navigation need depth data, from a depth camera or a stereo pair, because the robot must know distances. Choose the camera for the job, not the most expensive one on the shelf.

How much labelled data does a robot vision model need?

A few hundred labelled images per object type is a reasonable starting point, collected in the real environment with real lighting. Keep a separate test set the model has never seen, and keep adding the images where the system fails.

Why do robots need computing on board?

Sending every frame to a distant server adds delay, and a robot that waits half a second will overshoot its target. Small, fast models that run on the robot or nearby give answers in time to act on them.

What is SLAM in robotics?

SLAM is simultaneous localisation and mapping: the robot builds a map of its surroundings while tracking its own position inside that map. It watches fixed features as it moves and uses them to work out where it is and where obstacles are.

Can a robot work safely around people?

Yes, with the right design: speed limits near people, force limits on contact, and vision that stops the robot when a person enters its path. Safety rules depend on the country and the setting, so check the local standard before running a robot near people.

What is the hardest part of robot vision?

Variation is the hardest part: objects in different orientations, partly hidden, under changing light. A system that works in a clean lab often fails in a busy warehouse, which is why testing in the real environment matters more than any benchmark.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a robot that needs to see its surroundings? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Computer Vision service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call