Video tabanlı araç analizi ve doğal dil aracılığıyla sorgulama sistemi
No Thumbnail Available
Files
Date
2026
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Başkent Üniversitesi Fen Bilimleri Enstitüsü
Abstract
Günümüzde güvenlik kameralarının ürettiği video verisinin hacmi hızla artmakta, bu verilerin manuel olarak incelenmesi ise hem zaman alıcı hem de hataya açık bir süreç haline gelmektedir. Mevcut sistemler genellikle yalnızca tespit ve etiketleme yapabilmekte, kullanıcıların bu veriler üzerinde esnek ve doğal dilde sorgulama yapmasına imkân tanımamaktadır; bu çalışma söz konusu boşluğu gidermeyi amaçlamaktadır. Bu tez çalışmasında, video tabanlı gözetim sistemlerinden elde edilen araç verilerinin otomatik olarak analiz edilmesini ve doğal dil kullanılarak sorgulanabilmesini sağlayan bütünleşik bir sistem geliştirilmiştir. Sistem; araç tespiti, marka-model sınıflandırması ve plaka okuma bileşenlerinden oluşmaktadır. Araç tespiti için YOLO26s, plaka tespiti için ince ayarlı bir YOLOv8s modeli, marka-model sınıflandırması için YOLO26m-cls ve karakter tanıma için PaddleOCR PP-OCRv4 modelleri entegre edilmiştir. Veri seti, web scraping ile toplanan ve CLIP mimarisiyle temizlenen 141.229 görsel ve 1.914 sınıftan oluşmaktadır. Video akışlarından elde edilen olay (event) kayıtları PostgreSQL ve vektör veri tabanı altyapısında saklanmıştır; LLM tabanlı Text-to-SQL sorgu mekanizması geliştirilmiştir. 4K çözünürlüklü Türk araç kamerası kaydından örneklenen test kümesinde araç tespitinde %100 (22/22), plaka tespitinde %100 (6/6) başarı sağlanmıştır. 29 adet etiketli plaka kırpma görüntüsü üzerinde gerçekleştirilen PaddleOCR değerlendirmesinde, alan bilgisi temelli post-processing algoritması tam eşleşme oranını %41,4'ten %65,5'e yükseltmiş; Karakter Hata Oranı (CER) %18,2'den %13,9'a gerilemiştir. Sistem, video akışını stride=30 örnekleme stratejisiyle işlemekte olup örneklenen tek kare için ölçülen ortalama pipeline gecikmesi 2,23 ms'dir; bu değer ~448 FPS teorik kapasitesine karşılık gelmektedir. İnce ayarlı model, önceden eğitilmiş temel modele kıyasla %59,1 daha fazla olay yakalamaktadır. Today, the volume of video data generated by security cameras is increasing rapidly, and manually reviewing this data has become both time-consuming and error-prone. Existing systems generally perform only raw detection and labeling, without allowing users to query this data in natural language flexibly; this study aims to address that gap. In this thesis, an integrated system has been developed that enables automatic analysis of vehicle data from video-based surveillance systems and allows querying in natural language. The system comprises vehicle detection, make-model classification, and license plate recognition components. YOLO26s for vehicle detection, a fine-tuned YOLOv8s model for plate detection, YOLO26m-cls for make-model classification, and PaddleOCR PP-OCRv4 for character recognition are integrated. The dataset consists of 141,229 images and 1,914 classes collected via web scraping and filtered using the CLIP architecture. Vehicle event records extracted from video streams are stored in PostgreSQL and a vector database; an LLM-based Text-to-SQL query mechanism has been developed. On a test set sampled from 4K Turkish dashcam footage, 100% accuracy was achieved in vehicle detection (22/22) and plate detection (6/6). In the PaddleOCR evaluation performed on 29 labeled plate crop images, a domain-specific post-processing algorithm improved the exact match rate from 41.4% to 65.5%, while the Character Error Rate (CER) decreased from 18.2% to 13.9%. The system processes video streams using a stride=30 sampling strategy; the average pipeline latency measured per sampled frame is 2.23 ms, corresponding to a theoretical capacity of ~448 FPS. The fine-tuned model captures 59.1% more events than the pretrained baseline.
Description
Keywords
Araç Tespiti, Derin Öğrenme, Plaka Tanıma, Video Analizi, Doğal Dil İşleme, Vehicle Detection, Deep Learning, License Plate Recognition, Video Analysis, Natural Language Processing