DOI : 10.5281/zenodo.24863132
- Open Access

- Authors : Dr. T. Lalitha, Nivedith P, Shana Sherin P V, Vismaya A, Nihal V K
- Paper ID : IJERTV15IS120114
- Volume & Issue : Volume 15, Issue 12 , December – 2026
- Published (First Online): 05-12-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
VisionRecall: An AI-Based Video Surveillance and Natural Language Event Retrieval System
Dr. T. Lalitha
Professor, Presidency University Bengaluru, India
Shana Sherin P V
MCA Programme, Presidency University Bengaluru, India
Nivedith P
MCA Programme, Presidency University Bengaluru, India
Vismaya A
MCA Programme, Presidency University Bengaluru, India
Nihal V K
MCA Programme, Presidency University Bengaluru, India
Abstract – Searching surveillance footage by date and time can be difficult when an operator remembers an object but not the moment it appeared. VisionRecall is a prototype that converts selected camera frames into searchable event descriptions. OpenCV acquires frames, YOLOv8n detects thirteen object categories, and an event engine selects changes in object counts and potentially unattended bags. GPT-4o-mini describes triggered frames, with a template fallback; text embeddings and ChromaDB support semantic retrieval through a FastAPI backend and React interface. Development tests demonstrated live webcam indexing, event retrieval and video upload. Two black-box tests confirmed backend-disconnection reporting and the display of detected objects with annotated snapshots. An example query retrieved descriptions with related wording, although weaker matches were also returned. Recorded-video indexing and combined retrieval remain under verification. The prototype is intended to assist human review, not establish identity or prove an incident.
KeywordsCCTV, object detection, YOLOv8n, vision- language model, semantic retrieval, event indexing.
-
INTRODUCTION
A surveillance recording is most useful when the relevant moment can be found. In practice, a person reviewing footage may remember a bag, vehicle or phone without knowing the exact time. Timeline- based playback is therefore not always a convenient starting point. VisionRecall addresses this problem by indexing selected observations as text rather than requiring the user to inspect every frame.
The design draws on single-stage object detection [1] and caption-based video retrieval [2]. It combines these ideas in a small, event-driven application instead of training a new video-language model. Our contribution is the integration of detection, event
selection, language descriptions, persistent retrieval and a web interface, with a shared index intended for both live and uploaded footage. The current validated scope is a laptop webcam and the upload endpoint, not a deployed CCTV network.
-
LITERATURE REVIEW AND EXISTING SYSTEM STUDY
-
Object Detection in Video
Wang et al. [1] introduced YOLOv7, demonstrating training strategies for efficient object detection. We use YOLOv8n through Ultralytics [3], not YOLOv7, and do not transfer published benchmark results to our prototype. The detector uses selected categories from COCO [4].
-
Natural-Language Representations
Hur et al. [2] use frame-level captions to improve text- tovideo matching. This is particularly relevant to VisionRecall: a description can contain contextual details beyond a detector label. Unlike their narration- based method, our system captions only frames selected by event rules, which reduces the number of indexed observations but may omit useful context.
Ma et al. [5] represent long videos as text documents, retrieve relevant frames and refine the document using additional visual information. Our approach is simpler: descriptions are generated before a query arrives, and search is restricted to those indexed events. An and Grauman [6] investigate hierarchical temporal grounding for localizing language queries within long videos. Wang et al. [7] adapt video frame selection to user instructions. Both studies highlight a limitation of our fixed sampling and event offsets: we do not estimate full temporal boundaries or revisit footage adaptively at query time.
Sentence embeddings support similarity-based retrieval without requiring identical wording, as illustrated by Sentence-BERT [8]. VisionRecall uses a configured embedding model rather than training its own representation. The prototype is complementary to conventional playback; it does not replace the original video or a recording management system.
-
Surveillance Search and Privacy
The prototype combines readable scene descriptions with detector labels and snapshots for human review. It does not perform face recognition or person re- identification.
-
-
EXISTING SYSTEMS
Conventional surveillance review relies on timeline playback, motion alerts or object labels. These tools can narrow the search, but users may still need to inspect clips manually. VisionRecall indexes selected observations as text and supports similarity-based retrieval; Table I compares these approaches.
Approach
What is stored
Query by meaning
Current
limitation
Motion- based
Clips, flags
No
Manual review
Detector search
Labels, times
Limited
Vocabulary mismatch
Frame
embeddings
Vectors
Yes
May lack
descriptions
VisionRecall
Text, labels, time, images,
vectors
Yes
Recorded indexing
pending
TABLE I. COMPARISON OF APPROACHES
-
PROBLEM STATEMENT AND OBJECTIVES
Reviewing surveillance footage manually is time- consuming when the incident time is unknown. VisionRecall aims to make selected events searchable using ordinary English. Its objectives are:
-
Detect thirteen supported object classes in sampled frames.
-
Record meaningful object changes and potential unattended bags.
-
Generate descriptions and preserve timestamped snapshots in a vector store.
-
Demonstrate natural-language retrieval in a web dashboard.
-
Extend the shared event index to uploaded recordings.
-
-
PROPOSED SYSTEM
OpenCV reads frames from the webcam. Every fifth frame is passed to YOLOv8n [3] using a confidence threshold of 0.45. The thirteen selected categories are person, bicycle, car, motorcycle, bus, truck, backpack, handbag, suitcase, umbrella, bottle, laptop and cell phone. Each detection includes a label, confidence and bounding box. An annotated copy of the frame is saved when an event is selected.
The event engine constructs a sorted signature of object labels and counts. A non-empty signature that differs from the last recorded signature triggers an ordinary event if at least eight seconds have elapsed since the previous ordinary entry. An empty scene resets the signature. Changes during the cooldown can be missed, and an activity that does not change object counts may not be indexed.
A separate rule checks backpacks, handbags and suitcases. The Euclidean distance between the centre of a bag and each detected person is compared with 15% of the frame width. A bag is associated with a coarse 100-pixel grid cell. If no nearby person is detected for ten seconds of observed tim, an alert is produced once until the state resets. A nearby person or disappearance of the bag resets the state. This heuristic does not establish ownership, physical distance or intent.
A triggered raw frame is resized to a maximum width of 768 pixels and sent to GPT-4o-mini [9] with object counts, location and alert context. The request uses low image detail and a 120-token output limit. The prompt requests one or two factual sentences and prohibits personal identification. If the vision request fails or no key is configured, a template describes the detected counts.
The description is embedded using text-embedding-3- small [10] and stored in ChromaDB with its event ID, timestamp, object labels, snapshot path, location and alert flag. Local MiniLM embeddings are an alternative configuration when no API key is present; different embedding models must not be mixed in one collection. A query is embedded using the same model. Cosine similarity ranks the stored descriptions, and the interface displays 100 × (1 cosine distance). This score is not a probability or detection confidence.
FastAPI starts the live camera worker in a background thread. The worker uses a monotonic clock for trigger timing and shares a database instance and lock with the API. The upload endpoint accepts MP4, MOV, AVI and MKV files up to 500 MB, validates basic file signatures and records a generated video ID and JSON metadata.
The prepared recording processor uses its own trigger state and decoder playback position, with a frame- rate-based fallback, so that the rule durations do not depend directly on processing speed. It is designed to save snapshots beneath the video ID and append the original filename and media position to the description. If the recording date is unknown, the current implementation uses an upload-time proxy; it must not be interpreted as the capture time. Structured source metadata and playback links are future improvements. End-to-end recorded indexing has not been confirmed.
Algorithm 1: Video event indexing and retrieval
Input: live camera or uploaded video V; query Q. Output: timestamped event records and ranked results.
-
Open the source and initialize independent trigger state.
-
Read frames and establish the appropriate time basis.
-
Select every fifth frame and detect supported objects.
-
Evaluate the change and unattended-bag rules.
-
If triggered, save a snapshot and generate a description.
-
Embed the description and persist the event in ChromaDB.
-
Embed Q using the same configured model.
-
Rank events by cosine similarity and return evidence.
The recorded-video processing path awaits end-to-end verification.
-
-
SYSTEM ARCHITECTURE AND DESIGN
The React dashboard communicates with a FastAPI REST API, which coordinates event ingestion, storage and retrieval. ChromaDB persists descriptions and vectors; snapshots remain on the local filesystem. Fig.
1 shows the target architecture, including the uploaded-video path that is still under verification.
Fig. 1. Proposed architecture of the VisionRecall prototype.
-
Main Implementation Parameters
The dashboard polls recent events every five seconds and displays the camera state, API state, descriptions, snapshots and labels. The backend also exposes an optional time filter. The reported development machine uses an AMD Ryzen 7 7435HS processor and 24 GB RAM; processing was reported as CPU-based. The configuration is not a performance benchmark.
TABLE II. CONFIGURED PARAMETERS
Embedding
text-embedding-3-small / configured
MiniLM
Storage and API
ChromaDB; FastAPI
Interface
React; 5-second polling
-
Data Storage
Each entry retains its ID, description, embedding, ISO and Unix timestamps, object labels, snapshot path, alert flag and location. Structured video identifiers and offsets remain planned metadata extensions.
TABLE III. EVENT STORAGE FIELDS
Field
Type
Description
ID
String
Unique identifier
Description
Text
Scene description
Timestamp
ISO / epoch
Event time
Objects
Text
Detected labels
Snapshot
String
Local path
Alert / location
Bool / text
Alert and camera label
Embedding
Vector
Semantic index
Source / offset
Planned
Video ID and position
-
-
RESULTS
Development tests documented successful webcam detection, five event-trigger tests, scene description generation, database insertion and search, and integration of the API with the dashboard. The upload endpoint accepted a sample MOV recording. Table IV distinguishes the reported outcomes from unfinished validation.
TABLE IV. DEVELOPMENT TEST OUTCOMES
Test
Reported outcome
Webcam and event rules
Working; 5/5 rule tests
Descriptions and database
Working
Live semantic search
Demonstrated
Backend disconnection (BB01)
Pass
Object recording (BB02)
Pass
Video upload
Successful
Recorded indexing / unified search
Pending verification
IP CCTV / RTSP
Not tested
Fig. 2 illustrates the event-driven workflow. The diagram represents the intended combined-source path; it is not evidence that recorded indexing has been verified.
Parameter
Value
Sampling
Every fifth frame
Detection
YOLOv8n; 0.45 confidence
Ordinary cooldown
8 seconds
Bag rule
10 seconds; 15% frame width
Descriptions
GPT-4o-mini / template
Fig. 2. Algorithmic process flow for video event indexing
and retrieval.
In the dashboard disconnection test (BB01), the interface reported that the API and camera were offline. Figure 3 shows the connected state in the supplied application screenshot: 34 events were loaded and one alert was counted in the current results. These are interface counters, not the size of a labelled evaluation dataset or a verified incident count.
Fig. 3. Running dashboard showing camera and API status.
The object-recording test (BB02) confirmed that the interface displayed person and cell-phone labels with bounding boxes, descriptions, timestamps and location. Figure 4 shows actual recent-event cards. The text describing a container illustrates how the language model may add detail beyond the detected label. Such descriptions still require human verification; absence of an alert does not establish that belongings are supervised.
Fig. 4. Recent events with annotated snapshots and descriptions.
The project report records the query black object and the five ranked results in Table V. The first threedescriptions refer to a black or dark object or container, while the last two are less specific. This example illustrates retrieval of related wording, but does not establish precision, recall or generalization.
TABLE V. SAMPLE QUERY: BLACK OBJECT
Rank
Description excerpt
Score
1
One individual is holding a black object
38.23
2
One person holding a dark-colored container
35.35
3
Holding a black container
34.86
4
One person holding a bag
24.55
5
Two individuals are present
24.46
A slight camera lag was reported, but FPS, latency and detection or retrieval accuracy were not measured. Frame sampling and the cooldown may miss brief events. Grid-cell tracking is sensitive to bag movement, occlusion and detection errors. A single image cannot establish a complete action. Future evaluation should use authorized labelled recordings and a query set with known relevant events, report detection precision and recall separately from retrieval Hit@K and mean reciprocal rank, and measure frame- processing and query latency. Combined retrieval should be tested with known live and uploaded events and verified source offsets.
The application is intended for authorized footage only. It does not identify faces or track personal identity. Nevertheless, snapshots may contain identifiable people, and cloud vision processing transfers selected images outside the local machine. Appropriate permission, retention limits, access controls and audit logs are required before operational deployment. Alerts and descriptions should be reviewed against the source footage before decisions are made. Sampling and event-only captioning are intended to limit unnecessary processing, but actual resource savings have not been measured.
-
CONCLUSION AND FUTURE WORK
VisionRecall demonstrates that selected live-camera observations can be converted into a searchable event diary. The implemented prototype combines object detection, event rules, scene descriptions, vector storage and a web dashboard. Live retrieval and video
upload have been demonstrated; the fifth objective, verified retrieval from uploaded recordings through the same search interface, remains incomplete. Future work will prioritize this validation, structured source metadata, reliable playback offsets, authorized RTSP integration, latency reduction and a systematic retrieval evaluation. The system is a review aid rather than a substitute for source footage or human judgement.
ACKNOWLEDGMENT
The authors acknowledge the support of the MCA faculty of Presidency University, Bengaluru, during the development and review of this project.
REFERENCES
-
C.-Y. Wang, A. Bochkovskiy, and H.-Y. M. Liao, YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors, Proc. CVPR, 2023, pp. 74647475.
-
C. Hur, J.-H. Hong, D.-H. Lee, D. Kang, S. Myeong, S.-H. Park, and
H. Park, Narrating the video: Boosting text-video retrieval via comprehensive utilization of frame-level captions, Proc. CVPR, 2025, pp. 2407724086. doi: 10.1109/CVPR52734.2025.02242.
-
G. Jocher, A. Chaurasia, and J. Qiu, Ultralytics YOLOv8, software, 2023. https://github.com/ultralytics/ultralytics
-
T.-Y. Lin et al., Microsoft COCO: Common objects in context, Proc. ECCV, 2014, pp. 740755. doi: 10.1007/978-3-319-10602- 1_48.
-
Z. Ma, C. Gou, H. Shi, B. Sun, S. Li, H. Rezatofighi, and J. Cai, DrVideo: Document retrieval based long video understanding, Proc. CVPR, 2025, pp. 1893618946. doi: 10.1109/CVPR52734.2025.01764.
-
J. An and K. Grauman, HieraMamba: Video temporal grounding via hierarchical anchor-Mamba pooling, Proc. CVPR, 2026, pp. 16954 16965. arXiv:2510.23043.
-
S. Wang et al., VideoITG: Multimodal video understanding with instructed temporal grounding, Proc. CVPR, 2026, pp. 24640 24650.
-
N. Reimers and I. Gurevych, Sentence-BERT: Sentence embeddings using Siamese BERT-networks, Proc. EMNLP- IJCNLP, 2019, pp. 3982 3992. doi: 10.18653/v1/D19-1410.
-
OpenAI, GPT-4o mini: Advancing cost-efficient intelligence, July 18, 2024. https://openai.com/index/gpt-4o-mini-advancing-cost- efficientintelligence/
-
OpenAI, New embedding models and API updates, Jan. 25, 2024. https://openai.com/index/new-embedding-models- and-api-updates/
