Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for Raspberry Pi Camera Counter | Track Each Object Once

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Raspberry Pi Camera Counter | Track Each Object Once

Counting every detection in every video frame can count the same object dozens of times. A camera counter can track objects and count a defined crossing event once per track.

Understand the concept

The key idea

Assign detections across successive frames to the same track and record when its position crosses the counting line. Occlusion or an identity switch can break that association and change the total.

What to remember

  • Define the counting line and direction.
  • Remember which tracks have already produced a crossing event.
Pause & think

Check your understanding

Why does frame-by-frame detection produce an inflated count?

Show the explanation

A single moving object remains visible and can be detected in many frames.