Tooluck logoTooluck
SKILL.md

gemini-count-in-video

Agent skill frombenchflow-ai/skillsbench

Analyze and count objects in videos using Google Gemini API (object counting, pedestrian detection, vehicle tracking, and surveillance video analysis).

How to install gemini-count-in-video

install gemini-count-in-video
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/pedestrian-traffic-counting/environment/skills/gemini-count-in-video/

# into

~/.claude/skills/gemini-count-in-video/ (all projects)

.claude/skills/gemini-count-in-video/ (one project)

tasks-extra/pedestrian-traffic-counting/environment/skills/gemini-count-in-video/SKILL.md

Apache-2.0Full file
1# Gemini Video Understanding Skill
2
3## Purpose
4This skill enables video analysis and object counting using the Google Gemini API, with a focus on **counting pedestrians**, **detecting objects**, **tracking movement**, and **analyzing surveillance footage**. It supports precise prompting for differentiated counting (e.g., pedestrians vs cyclists vs vehicles).
5
6## When to Use
7- Counting pedestrians, vehicles, or other objects in surveillance videos
8- Distinguishing between different types of objects (walkers vs cyclists, cars vs trucks)
9- Analyzing traffic patterns and movement through a scene
10- Processing multiple videos for batch object counting
11- Extracting structured count data from video footage
12
13## Required Libraries
14
15The following Python libraries are required:
16
17```python
18from google import genai
19from google.genai import types
20import os
21import time
22```
23
24## Input Requirements
25- **File formats**: MP4, MPEG, MOV, AVI, FLV, MPG, WebM, WMV, 3GPP
26- **Size constraints**:
27 - Use inline bytes for small files (rule of thumb: <20MB).
28 - Use the File API upload flow for larger videos (most surveillance footage).
29 - Always wait for processing to complete before analysis.
30- **Video quality**: Higher resolution provides better counting accuracy for distant objects
31- **Duration**: Longer videos may require longer processing times; consider the full video length for accurate counting
32
33## Output Schema
34For object counting tasks, structure results as JSON:
35
36```json
37{
38 "success": true,
39…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates