Object Tracking in Computer Vision: How Robots Use It

Blog Author
Abirami Vina
Published on November 26, 2026

Table of Contents

Ready to Dive In?

Collaborate with Objectways’ experts to leverage our data annotation, data collection, and AI services for your next big project.

    A delivery robot moving along a busy sidewalk has to keep track of objects like pedestrians, animals, cyclists, and more as they move, cross its path, or disappear behind an obstacle. Computer vision and object tracking make that possible.

    Computer vision is a field of AI that lets machines interpret images and video. Object tracking is a computer vision technique that follows objects, such as people, vehicles, or boxes, across video frames and gives each one a unique ID that stays with it as it moves.

    Tracking builds on object detection, which finds objects in a single frame and draws a rectangle around each one, called a bounding box. Detection can tell a robot that five people are nearby, but not whether the person in this frame is the one it saw a second ago. Tracking links those detections over time, so the robot knows who’s moving where and can plan its path around them.

    Sidewalk delivery robot tracking pedestrians, a dog, and a cyclist with bounding boxes along its navigation path
    Object Tracking Helps a Delivery Robot Plan Its Path Around People

    That’s harder than it sounds. Some cutting-edge AI drones can lock onto a person and follow them on their own. But if the person disappears behind a building, tree, or vehicle, the drone may only search for a few seconds before losing them or locking onto someone who looks similar.

    In fact, most trackers struggle with the same problems. Objects drop out of view, look like each other, or are filmed by a camera that’s also moving. Fixing that depends as much on data as on algorithms. The models behind a tracker learn from labeled examples, called training data. If that data doesn’t include objects disappearing and reappearing, the same mistakes keep happening.

    In this article, we’ll explore how object tracking works, how robots use it, and how tracking data is labeled. Let’s get started! 

    What Is Object Tracking in Computer Vision?

    Object tracking in computer vision involves using unique IDs to detect and track an object as it moves from frame to frame. First, a detection model finds objects such as people, boxes, or vehicles in each frame and draws a bounding box around each one. 

    The tracker then connects these boxes across frames to follow each object’s movement. As a result, the machine can build a path, called a trajectory, and keep the same ID on an object as it moves. This is what separates tracking from detection. Detection tells a machine what it can see in one frame, while tracking helps it follow the same object across multiple frames and see where it’s heading.

    Video editors use “object tracking” too, but for other purposes, like pinning a caption to a moving car. In computer vision, tracking helps a machine follow the objects around it in real time.

    Tracking can also work across more than one camera. Some spaces are too big for a single view, so they’re covered by several cameras, each with its own video feed. Multi-camera object tracking links those feeds together. When the same person or object shows up in more than one camera’s view, or walks from one view into the next, the system recognizes it and keeps the same ID.

    This is especially useful in large spaces like warehouses. For example, a warehouse might use a network of ceiling-mounted cameras to monitor workers on the floor. A detection model finds the workers in each camera’s frames, and a tracking algorithm links those detections over time to give each worker a separate ID.

    Top-down surveillance view detecting warehouse workers with bounding boxes and confidence scores
    Multi-Object Tracking Gives Each Warehouse Worker Its Own ID (Source)

    Since several cameras can see the same worker at once, one person often shows up in more than one feed. The system compares each person’s position, direction of movement, and appearance across cameras to merge those tracks under one ID.

    Single Object Tracking vs Multiple Object Tracking

    In the warehouse example, the system follows every worker on the floor at once. But not every robot needs to track that much. A robot following one person through a building only cares about that one target. That’s why object tracking is usually split into two types: single object tracking, which follows one target, and multiple object tracking, which follows many at once.

    Single object tracking (SOT) starts with a box drawn around the target in the first frame. The tracker then looks for that same object in every frame after it. A robot might use SOT to follow a nurse down a hospital hallway or keep its camera on a tool as it moves.

    SOT works well when the target stays in clear view, but crowded places make it harder. For example, researchers fitted a cart with robot-height sensors and used it to follow a person through canteens, markets, and metro stations. During each recording, the person disappeared from view about 39 times. When that happened, single object trackers sometimes started following someone else.

    Panoramic 360-degree video dataset tracking targets across varying lighting and crowded indoor environments
    Tracking One Person Through a Crowd (Source)

    Trackers that first followed everyone in view and then picked out the target did better overall. Keeping track of everyone made it easier to hold on to one person. This is how multiple object tracking (MOT), also called multi-object tracking, works. It gives every object in the scene its own ID and keeps it as objects enter, move around, cross paths, or leave.

    Beyond these two types, robots can also track objects in 3D or follow individual points. 3D tracking uses lidar or depth data to locate objects in real space, while point tracking follows individual points on an object’s surface across frames to show how it moves.

    So which type should a robot use? It depends on what it needs to follow. SOT works well when there’s one clear target, while MOT is better suited to busy spaces full of people, carts, and robots.

    How Tracking by Detection Works in Object Tracking 

    Most multiple object tracking systems follow objects across video frames using an approach called tracking by detection. Simply put, a detection model and a tracker work together, with each handling a different part of the job. This setup fits well with the modular vision pipelines used in many robots.

    Every time a new frame comes in, the process runs through four steps:

    • Detect: A detection model finds objects in the new frame and draws a box around each one. At this point, the boxes don’t have IDs yet.
    • Predict: For each object it’s already tracking, the tracker estimates where the object should be now, based on how it has moved so far. This gives it an expected spot to look in.
    • Match: The tracker compares each predicted spot with the new boxes to decide which ones belong together. A common way to measure this is Intersection over Union (IoU), which checks how much two boxes overlap, and some trackers also compare how objects look. An assignment method such as the Hungarian algorithm then picks the best one-to-one pairs, so each object is matched to only one box.
    • Update: Matched objects keep their IDs and move to their new positions. Boxes with no match get new IDs, and objects that go unmatched for several frames are dropped.

    Because these steps repeat on every new frame, tracking by detection can keep up with objects as they move. That’s why it’s used in everything from traffic monitoring and sports analytics to warehouse robots and farming. 

    In agricultural robotics, for example, it helps with tasks like automated crop harvesting. Consider a robot working its way along pepper plants outdoors. The peppers look alike, hang among the leaves, and shift in view as the robot’s camera moves. 

    To pick them one by one, the robot needs to know which pepper is which. A detection model like YOLO (You Only Look Once) finds each pepper in every frame, while an object tracker gives each one a unique ID and follows its position as the robot moves.

    RealSense camera view detecting pepper stems with confidence scores and 3D coordinates for robotic harvesting
    Tracking by Detection Starts With Finding Each Pepper in Every Frame (Source)

    To predict where each pepper will be in the next frame, the robot uses a Kalman filter, a method that estimates an object’s next position from how it has moved so far. Once the robot picks a pepper, or fails to, it freezes that pepper’s track so it doesn’t try the same one again.

    Object Tracking Algorithms: SORT, DeepSORT and ByteTrack

    Most object tracking algorithms follow the same detect, predict, match, and update loop. Where they differ is in the matching step, especially when objects overlap, look alike, or briefly disappear. 

    Here’s how some of the most widely used algorithms handle it:

    • SORT (Simple Online and Realtime Tracking): SORT uses a Kalman filter to predict where each object will appear, then matches boxes by how much they overlap. It’s fast, but objects that cross paths or briefly disappear can come back with a new ID.
    • DeepSORT: DeepSORT matches objects by appearance as well as position, so it can recognize an object even after it has been hidden. These extra checks make it slower than SORT.
    • ByteTrack: ByteTrack keeps the low-confidence detections that many trackers throw away. It first matches high-confidence boxes to existing tracks, then gives the leftover low-confidence boxes a second chance to match any tracks still unpaired. Partly hidden objects often get low scores, so this second pass helps ByteTrack keep their IDs instead of losing them, while running nearly as fast as SORT.
    Diagram comparing high-score association and full-box association methods for multi-object tracking in video
    ByteTrack Object Tracking Keeps Following a Hidden Person (Source)

    Newer models go further. SAM 3 (Segment Anything Model 3) can find and follow every object that matches a short text prompt, like “box” or “person,” across a video, even for object types it wasn’t specifically trained to track. This is known as zero-shot object tracking.

    How Robots Use Object Tracking

    Before a robot can grab, avoid, or move something, it needs to know where that object is and where it’s going. Object tracking gives it both.

    For instance, on conveyor lines, robots track parts as they move so the arm can reach for where a part will be, not where it was a moment ago. Similarly, in warehouses, autonomous mobile robots (AMRs) track the people, forklifts, and other robots around them. By predicting where each one is heading, they can plan a safe path through busy aisles.

    On top of this, tracking is crucial for robotic manipulation. As part of computer vision for robotics, models like FoundationPose track an object’s 6D pose (its position and orientation in 3D space) while a robot picks it up or moves it. This tells the robot exactly how the object is moving in its gripper.

    That same idea of following how objects move can also help robots learn new tasks from videos of people. Methods like Any-point Trajectory Modeling (ATM) track how points on objects move in human videos and use those tracks to train robots with fewer robot demonstrations. 

    In one recent study, a point tracker followed objects in 3D as a person opened a drawer, folded a sock, and threw away paper. A robot arm then used those object paths to plan its own actions.

    Trajectory comparison of object motion and embodiment motion between human hands and a robotic gripper
    Object Paths Tracked in Human Videos Guide How the Robot Moves (Source)

    Since the robot didn’t need to copy human hand movements, the difference in embodiment between its gripper and a human hand wasn’t a problem. For example, a person picked up a tipped-over glass by its stem, while the robot hooked its gripper inside the glass to set it upright. On the glass task, this approach succeeded in all 20 attempts, compared with 3 for ATM.

    Where Object Tracking Breaks in Real Robot Workspaces 

    Results like these come from carefully set-up tests. Real workspaces are messier. Objects get blocked from view, look alike, and move in ways a tracker doesn’t expect, and each of these can cause a tracker to lose or mix up IDs.

    One common problem with consistent object tracking is occlusion. When an object disappears behind an obstacle or the robot’s own arm, the tracker has to recognize it when it comes back, or it may give it a new ID. Similar-looking objects cause another problem. Sometimes when they cross paths, the tracker can swap their IDs.

    A study on tracking wheeled robots shows how easily similar-looking objects can confuse a tracker. The researchers used a single overhead camera to track a small group of robots. The robots looked almost the same, so without a tracker, the system gave them new IDs in every frame. 

    The team added a tracker that checked both each robot’s appearance and where it was likely to move next. After that, each robot kept the same ID, even while they drove in formation.

    Overhead tracking sequence of three mobile robots maintaining formation and following planned path trajectories
    Look-Alike Robots With and Without Multi-Object Tracking (Source)

    The camera itself can also make tracking harder, especially if it’s mounted on a robot. When the camera moves with the robot, the whole scene shifts between frames, so even stationary objects appear to move. Sudden stops, turns, or changes in speed can also throw off trackers that expect smooth, predictable motion.

    Key Metrics for Object Tracking

    To know how well a tracker handles these problems, teams need a way to measure it. Trackers can be tested on labeled videos and compared against ground-truth labels (correct labels and positions) to measure detection accuracy, ID consistency, and tracking errors.

    Here are the main metrics used to evaluate object tracking:

    • MOTA (Multiple Object Tracking Accuracy): It counts three types of mistakes across a video: missed objects, false detections, and ID switches. Since most of the score comes from detection, a tracker can score well even if it often mixes up IDs.
    • IDF1 (Identification F1 Score): A higher IDF1 means the tracker keeps the correct ID on each object for longer. It’s especially useful when a robot needs to follow a specific item or count objects without counting the same one twice.
    • HOTA (Higher Order Tracking Accuracy): This metric gives a single score that weighs two skills equally. One is finding objects correctly in each frame, and the other is keeping their IDs consistent over time. A tracker has to do well at both to score high.Β 
    • ID Switches: Every time a tracker mistakenly swaps an object’s ID, it counts as one switch. Fewer switches mean the tracker is better at following each object.

    Because each metric looks at a different part of tracking, they don’t always agree. A tracker that finds objects reliably but often mixes up their IDs can score well on MOTA and still rank lower on IDF1 or HOTA, since those two pay closer attention to whether IDs stay consistent. That’s why teams use several metrics together instead of relying on just one.

    These scores also depend on the videos used to train and test a tracker. So let’s look at the datasets teams use and how tracking data is labeled.

    Object Tracking Datasets and How Tracking Data Is Labeled

    Publicly available datasets give tracking algorithms a starting point. One of the best-known object tracking datasets is MOTChallenge, which includes MOT17 and MOT20, commonly referred to as MOT datasets.

    Both datasets mainly focus on pedestrians in street scenes. But a robot working on a factory floor, moving through a warehouse, or using a wrist-mounted camera encounters very different surroundings. That’s why robotics teams often need custom tracking data that reflects the environments their robots will work in.

    Preparing this data involves more than drawing bounding boxes. In video annotation for tracking, annotators assign each object a track ID and make sure it keeps the same ID throughout the video. They often begin with keyframes, use software to fill in the frames between them, and then review and correct any mistakes.

    This becomes especially important when an object disappears and reappears. Annotators need to make sure it keeps its original ID and mark whether it is partly or fully hidden in each frame. For lidar and depth data, they use 3D boxes with the same track IDs. During quality checks, teams look for swapped IDs, missing frames, and boxes that drift away from objects between keyframes.

    Computer vision bounding boxes detecting and classifying passenger cars moving on a multi-lane roadway
    An Example of Video Annotation for Object Tracking (Source)

    At Objectways, we provide video annotation with object tracking that keeps IDs consistent when objects disappear and reappear, along with 3D point cloud annotation for lidar and depth data. We also build robotics datasets, including egocentric video, depth data, and teleoperation demonstrations, so robots can learn from the kinds of environments they’ll actually work in.

    Reliable Object Tracking Starts With Consistent Training Data 

    Detection tells a robot what’s in front of it. Tracking tells it what’s moving, where it’s going, and whether it’s the same thing it saw a moment ago. That’s what lets a robot walk alongside a person, pick parts off a moving conveyor, or steer around a forklift in a busy aisle.

    A tracker can only be as reliable as the data behind it. If the labels lose an object behind a shelf, or mix up two identical boxes, the model learns to make the same mistakes. Getting this right means keeping every object’s ID consistent from frame to frame, even when it’s hidden, looks like something else, or is filmed by a camera that’s moving too.

    Working on a robot that needs to keep track of what’s around it? Let’s talk about the tracking data it’ll need.

    Frequently Asked Questions

    What is object tracking used for?

    Object tracking is used to follow objects through a video so a machine knows which object is which over time. In robotics, it helps robots follow people, pick parts off moving conveyors, and steer around workers safely.

    What is ByteTrack?

    What is multi-object tracking?

    What is the difference between ByteTrack and DeepSORT?

    What is the best object tracking algorithm?

    Blog Author

    Abirami Vina

    Content Creator

    Starting her career as a computer vision engineer, Abirami Vina built a strong foundation in Vision AI and machine learning. Today, she channels her technical expertise into crafting high-quality, technical content for AI-focused companies as the Founder and Chief Writer at Scribe of AI.Β 

    Have feedback or questions about our latest post? Reach out to us, and let’s continue the conversation!

    Objectways role in providing expert, human-in-the-loop data for enterprise AI.