- Home
- Skills
- Agents & Orchestration
- People Counter IN/OUT for Video and CCTV
More screenshots
Works with the AI Agents you already use
People Counter IN/OUT for Video and CCTV
by Nawaf Rayhan
Count people entering and leaving a room or shop using a video file, webcam, or security camera feed.
Free
What it does
- Counts every person who crosses a specific line in a video or camera feed
- Tracks individuals with unique IDs to avoid counting the same person twice
- Calculates total entries, total exits, and current occupancy automatically
- Identifies the peak crowd size and the exact times the area was busiest
- Creates an annotated video showing exactly when and where people were detected
- Works with saved video files, live webcams, or security camera streams
Who it's for
Shop owners wanting to track store traffic
Count how many customers enter and leave your shop without buying expensive hardware.
Try asking: “Count people entering my shop from the file entrance_tuesday.mp4.”
Event planners managing venue capacity
Monitor how many people are inside your event in real-time to stay within safety limits.
Try asking: “Check the occupancy for the lobby using my webcam. Stop after 10 minutes.”
Security teams monitoring foot traffic
Get a list of exactly when people crossed into or out of a specific area.
Try asking: “Analyze the RTSP camera stream for the back gate and tell me the peak crowd size.”
People Counter IN/OUT for Video and CCTV
Example session with this skill installed
Count how many people went in and out in entrance.mp4 and save a video so I can check it.
- Read your context and instructions
- Compiled the people counter in
Done. I ran the people counter on entrance.mp4 (8 s of video, processed in 15 s on CPU).
Results
| Metric | Value |
|---|---|
| IN | 2 |
| OUT | 1 |
| Inside now | 1 |
| Peak people in frame | 3 |
Crossings
| Time | Person ID | Direction |
|---|---|---|
| 0:02.96 | #1 | IN |
| 0:04.92 | #2 | OUT |
| 0:06.44 | #3 | IN |
The counting line is at the middle of the frame (y = 360). People moving down the frame are counted as IN.
Annotated video saved to entrance_counted.mp4. Open it to check that the line sits across the doorway. Full JSON is in entrance_counts.json.
Next steps
- If IN and OUT look swapped, run again with
--flip - If the line is in the wrong place, try
--line 0.6(60% down the frame) - For more accuracy on busy scenes, use
--model yolo11s.pt
Connects securely to your tools. The creator never sees your data.
About this skill
This skill helps you count people moving through a specific area in a video or live camera feed. It is built for anyone who needs to know how many people entered or exited a room, shop, or gate without manually watching hours of footage.
How it works
- You provide a video file, a link to a security camera stream, or access to a webcam.
- Your AI agent sets up a virtual line across the entrance or path in the video.
- The skill tracks every person, giving them a unique ID so they are not counted twice.
- You receive a summary of total entries, exits, and the highest number of people seen at once.
- You can also get a new version of the video with boxes and labels drawn over the people so you can verify the count.
Frameworks & tools
This skill uses Python scripts along with the YOLO and ByteTrack systems to recognize and follow people. It works with standard video files, webcams, and common security camera streams.
Why this beats prompting it yourself
A regular AI chat can describe a single image, but it cannot watch a whole video and keep track of individual people moving over time. This skill uses specialized tracking logic to ensure that if someone stands still or walks behind an object, they are still remembered as the same person, leading to much more accurate totals than a simple guess.
Use cases
- Tracking how many customers visit a retail store during different hours of the day.
- Monitoring real-time occupancy for a gallery or office to prevent overcrowding.
- Analyzing foot traffic at a trade show booth to see which times were the busiest.
- Checking a security feed to see exactly what time someone entered a restricted zone.
Known limitations
The skill works best with cameras mounted overhead or at an angle. It may struggle to count people accurately in extremely crowded areas where people are blocking each other from view.
Built with Python using Ultralytics YOLOv11 and ByteTrack for robust object tracking. Supports local execution on CPU or GPU (CUDA). Handles MP4, webcam indices, and RTSP streams. Outputs data to JSON and generates annotated MP4 files using OpenCV. Requirements include ultralytics and opencv-python.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
- Software
Python
- Optional
- NVIDIA GPU (faster)RTSP/IP camera
The first run downloads the YOLO11 model (about 5 MB) from Ultralytics. After that it runs fully offline.
Permissions
Read Files: opens the video you give it. Write Files: saves counts.json and the optional annotated video. Network Access: only the one-time YOLO11 model download by Ultralytics.
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.