User manual
Object tracking
Detect objects, track their masks with SAM, and inspect the result before measuring motion or counting passages.
Choose the objects, camera, and interval
Start with a short interval in one recording. Describe the target precisely and say whether you want one object or every visible instance. Choose a camera where the target is visible; a wrist camera may show contact while a scene camera shows the full motion.
In this episode, track every visible bottle from 5 to 15 seconds in the main camera. Use Grounding DINO to find the initial instances and SAM for temporal masks. Inspect the source before choosing seeds. Return a rendered overlay and note occlusions, new arrivals, or tracking failures.Detect the initial instances
Grounding DINO finds instances of the named objects in the chosen frame. Inspect the returned boxes: a box should cover one target, not a group of adjacent objects. Use detections from the start of the intended tracking window as SAM seeds.
- Inspect the source frame at the start of the interval.
- Detect all instances of the requested object.
- Check for missed targets, duplicate boxes, and background detections.
- Seed the tracking run with the accepted boxes at that same starting time.
Track masks with SAM
SAM video tracking propagates seeded masks through a continuous interval. Each seed gets an object ID. For independent masks on a set of still frames, use SAM image segmentation instead. The same box applied independently on later frames does not establish temporal identity.
Use the accepted detection boxes to seed SAM video at 5 seconds and track through 15 seconds in the same camera. Process every frame for this short interval. Keep the original video and save a separate overlay. Return the job ID, analyzed interval, sampling rate, overlay video, and dashboard link.Review tracking quality
Compare the overlay with the source at the beginning, middle, and end of the interval. Also inspect the moments when targets overlap, leave the frame, change appearance, or pass behind another object. Check both the mask shape and whether an ID remains associated with the intended target.
| Observed problem | Next action |
|---|---|
| A target has no mask at the start | Correct the detection or seed before extending the run. |
| A mask switches to a neighboring object | Inspect the transition and reseed a shorter interval. |
| An object enters later | Detect and seed the new arrival in a later window. |
| An object exits and returns | Review whether it is the same physical object before associating IDs. |
Inspect the tracking overlay at the first, middle, and last frames, plus each occlusion and exit. Report any ID switches or missing targets with timestamps. If necessary, reseed shorter windows and produce a corrected overlay. Explain any remaining identity uncertainty.Measure motion or count passages
Once the tracks have been reviewed, ask for the measurement you need: presence duration, mask area, image-space trajectory, or crossings of a defined line. State the line, direction, interval, and treatment of missed observations. Pixel coordinates and normalized image coordinates are not physical distances.
Using the reviewed bottle tracks, count leftward crossings of the image’s vertical center line during 5–15 seconds. Show the crossing timestamps and mark the line in the overlay. Report unseeded arrivals and identity uncertainties separately, and state exactly which tracks and interval the count covers.Apply tracking to more recordings
A fixed seed box is specific to the frame where you selected it. A reusable recipe needs to detect targets separately in each recording and handle the new arrivals and occlusions that occur there. Review a representative sample before applying the recipe as a batch.
