← Back to projects

Computer Vision & Applied AI

Automatic License Plate Recognition

An AI-powered backend combining automatic license plate recognition, vehicle and violation management, and a RAG-based legal assistant for Tunisian traffic-law queries.

Automatic License Plate Recognition project

Role

AI & Backend Developer

Technologies

Python FastAPI YOLOv8 OCR Computer Vision MongoDB FAISS RAG Mistral LLM Pydantic REST API Agent Tools

The problem

Vehicle identification systems need to transform visual information into structured vehicle records while also giving operators efficient access to contextual information such as violations, payments, and applicable traffic regulations.

The solution

The project combines an ALPR pipeline based on YOLOv8 and OCR with a FastAPI backend for vehicle dossiers and violations. It also integrates a RAG-powered legal assistant that retrieves traffic-law information and uses a Mistral language model to answer contextual legal questions. An agent mode can invoke application tools for more complex vehicle-related queries.

System Architecture

FastAPI exposes the ALPR, vehicle, chat, and agent APIs. Images are processed through a YOLOv8-based plate detection pipeline followed by OCR and plate normalization. MongoDB stores vehicle, violation, and payment data. Legal documents are indexed into a FAISS vector index for retrieval, while Mistral generates answers based on the retrieved context. Repository and service layers isolate persistence and business logic.

Technical challenges

Key engineering decisions

Results

GitHub ↗
Logo

Yessine

Eleuchi

© 2026

WhatsApp 𝕏 GitHub