Example: Make and Model Insights from Car Drive-Bys
Name the make, model and color of every car entering and leaving a drive-through, with one VLM call per car
A drive-through camera sees every car for several seconds, on its way in and on its way out. In this example you build a Pop that detects and tracks vehicles on every frame, picks the clearest view of each car, and asks a vision-language model for its make, model and color — once per car, not once per frame. A custom VLM ability with a JSON response schema makes every answer come back as the same three fields, and the tracks tell which cars are entering and which are leaving.
The example video shows ten cars: five drive up the lane by the pickup window into the drive-through, five come back down the other side of the island on their way out. Its camera angle is deliberately a hard one: the menu board and the planted island hide the cars on their way out, cars enter and leave through the edges of the frame half cut off, and most of the time a car is seen from above or from behind. Most frames of a car are poor views of it, which is exactly what the relevancy algorithm is there to see past.
The complete, runnable example is in the Python SDK repository, under examples/temporal_context, together with the video. The steps below build it piece by piece.

Before you start
Python SDK 3.24.0 or newer, and an API key in
EYEPOP_API_KEY.The EyePop CLI, signed in, to look up your account.
The example code and video:
Step 1: Find your account and namespace
A custom ability belongs to an account and is named under one of its namespaces. The CLI lists both:
The second command prints the account's namespaces. The ability you create next is called <namespace>.describe.vehicle-make-model.
Step 2: Create the make-and-model ability
A VLM ability is a prompt, a backing model and image settings. A response schema constrains the model's answer to a JSON object of the shape you define, and the parsed object comes back on the prediction's details. Here, three required strings:
The prompt says what to look at and what to do when the image is not enough. Since the ability always runs on one cropped vehicle, seen from a camera above the lane, it can say so:
Create the ability in an ability group, then publish it. Publishing gives it the alias <namespace>.describe.vehicle-make-model and tags it latest:
In the repository this is create_make_model_ability.py, which also reuses the group when you run it again:
It prints the alias to use in the Pop, <namespace>.describe.vehicle-make-model:latest.
Step 3: Detect and track vehicles
The efficient side of the Pop runs on every frame. eyepop.vehicle.medium:latest finds vehicles, and a tracking component gives each one a trackId that holds while it crosses the lane:
objectAreaThreshold=0.01ignores anything smaller than 1% of the frame, such as cars parked far in the background, so they never become tracks.agnostic=Truekeeps a pickup in one track even when the detector calls it acaron some frames and atruckon others. Without it, each label gets a track of its own, and the same vehicle is selected twice.classHysteresis=Trueholds a track's label steady while the detector's label flickers, so a pickup stays atruckfrom frame to frame.maxAgeSeconds=2.0keeps a car's track for two seconds after the detector last saw it, so a car hidden for a moment by the menu board or the island comes out of it under the sametrackId.
Cars move along a lane, so trajectory tracking is enough; no re-identification model is needed.
Step 4: Select the clearest view of each car
The tracking component forwards through select_crop, built with SelectForward. Without a relevancy model, the most relevant detection is the most confident, largest one that is not cut off by the edge of the frame — the car seen up close and whole:
minTrackLengthSeconds=2.0ignores anything in view for less than two seconds: a car that only clips the frame, or the remains of a track that broke up as its car drove out of view.intervalSeconds=10.0reports a car still waiting at the order board after ten seconds, and again later only if a better view turned up. Without it, a car would be named only once it drove off.
See Select Operators for exactly how relevance and timing work.

Step 5: Read the answers, and which way each car went
Live predictions arrive for every frame. The VLM's answers arrive later, as selected predictions, each about one car on the past frame that was selected. The structured answer is the details of the selected car.
The live predictions are the temporal context on your side too. Each one places every tracked car, so remembering where a track was first and last seen tells which way the car drove: up the frame is away from the camera, into the drive-through; down the frame is on the way out.
A car selected more than once — first at the interval, then with a better view — shares its trackId across its selections, so the latest answer replaces the earlier one.
Run the example
It prints one line per selection as it arrives, then how many frames were analyzed live against how many VLM calls it took:
Ten VLM calls instead of 1,165: one per car, each on the view the operator judged best. The lines come in the order the selections are ready, not by time: a car's selection is due when its track ends, and an entering car's track lasts longer than that of the car leaving beside it.
Point --video at an rtsp:// camera instead of the file to run the same Pop on a live drive-through lane; nothing else changes.
Next steps
Example: Best Face-ID Vector from Walk-Bys — the same pattern with a relevancy model
Select Operators — relevance, timing, and selected predictions in full
Abilities — prompts, image size and cost of a VLM ability
Sources and Options — live cameras, uploads and frame rates
Last updated
