How indranilpalit24/askfootage works
AskFootage indexes fixed-camera recordings, then answers natural-language questions from stored object tracks and returns ranked clips with timelines and measurable visual proof. The main workflow runs from the web search UI through the HTTP API and search use cases, which evaluate stored tracks and return clips, proofs, snapshots, and recording boxes for playback. Separate branches cover recording ingestion, camera/zone/library management, cost-capped perception, and the demo UI. Some subsystem links are based on README documentation or indexed imports; unsampled details are not asserted.
Main entry points: search_relations.py Track search · search.py Question search · routes.py API routes · ingest_video.py Recording ingestion
Components 22
Web experience
- Web screens
web/src/screens - API client
web/src/api/client.ts
HTTP interface
- HTTP API
askfootage/interfaces/api/app.py - API routes
askfootage/interfaces/api/routes.py - Service context
askfootage/interfaces/api/context.py
Application workflows
- Question search
askfootage/application/search.py - Track search
askfootage/application/search_relations.py - Recording ingestion
askfootage/application/ingest_video.py - Concept indexing
askfootage/application/concepts.py - Library use cases
askfootage/application/library.py
Track analysis
- Relation rules
askfootage/domain/relations.py - Object tracks
askfootage/domain/tracks.py - Question vocabulary
askfootage/domain/vocabulary.py - Track stitching
askfootage/domain/stitching.py
Storage and adapters
- Library store port
askfootage/ports/library_store.py - Track store port
askfootage/ports/track_store.py - SQLite index
askfootage/adapters/sqlite/store.py - SQLite tracks
askfootage/adapters/sqlite/tracks.py - Video preparation
askfootage/adapters/media/ffmpeg.py - SAM perception
askfootage/adapters/meta/sam.py - Spend guard
askfootage/adapters/meta/budget.py
Other components
- Footage user
Connections 25
- Footage user → Web screens: asks question
- Web screens → API client: submits search
web/src/app/App.tsx - API client → HTTP API: HTTP requests
- HTTP API → API routes: registers routes
askfootage/interfaces/api/app.py - API routes → Service context: uses services
askfootage/interfaces/api/routes.py - API routes → Question search: calls search
askfootage/interfaces/api/routes.py - Service context → Question search: wires use case
askfootage/interfaces/api/context.py - Question search → Track search: checks tracks
askfootage/application/search.py - Track search → Relation rules: evaluates rules
askfootage/application/search_relations.py - Track search → Track store port: reads tracks
askfootage/application/search_relations.py - Track search → Question vocabulary: reads question
askfootage/application/search_relations.py - Relation rules → Object tracks: evaluates trajectories
askfootage/domain/relations.py - Track search → Track stitching: stitches tracks
askfootage/application/search_relations.py - Track store port → SQLite tracks: implemented by
askfootage/ports/track_store.py - Question search → Library store port: reads library
askfootage/application/search.py - Library store port → SQLite index: implemented by
askfootage/ports/library_store.py - Question search → API client: returns matches
- API routes → Library use cases: calls management
askfootage/interfaces/api/routes.py - Recording ingestion → Video preparation: prepares video
askfootage/application/ingest_video.py - Recording ingestion → SAM perception: finds objects
askfootage/application/ingest_video.py - Recording ingestion → Track store port: saves tracks
askfootage/application/ingest_video.py - Concept indexing → SAM perception: runs concepts
askfootage/application/concepts.py - Concept indexing → Spend guard: caps spending
askfootage/application/concepts.py - Concept indexing → Track store port: stores results
askfootage/application/concepts.py - HTTP API → Recording ingestion: exposes indexing
askfootage/interfaces/api/app.py