VAVC System (Vehicle Automatic Verification and Classification) for LDP
The VAVC System is the flagship solution in Delloyd Group's series of intelligent transportation systems. This comprehensive solution provides automatic vehicle detection, classification, and license plate recognition at toll plazas. Using advanced computer vision and machine learning techniques, the VAVC system accurately classifies vehicles into different categories (light vehicles, medium vehicles, heavy vehicles, taxis, and buses) and reads their license plates in real-time.
As part of Delloyd's integrated transportation management ecosystem, the VAVC System offers seamless integration with other Delloyd solutions, providing end-to-end management of toll operations with enhanced accuracy and efficiency.
The VAVC System is part of an ecosystem of intelligent transportation solutions developed by Delloyd Group:
-
ANPR (Automatic Number Plate Recognition): Specialized software for reading Malaysian vehicle registration plates, implemented at plaza tolls including Kuala-Lumpur-Karak (KLK) and Lebuhraya Pantai Timur 1 (LPT1).
-
HS-WIM (Height-Speed Weight in Motion): A system that integrates with ANPR to measure vehicle dimensions, speed, and weight for regulatory compliance at locations such as Parit Raja, Johor and Changlung, Kedah.
-
LCS (Lane Control System): Communication system that interfaces with VAVC and ANPR to manage toll lane operations, with standardized data communication formats.
These systems work together to provide a comprehensive transportation management solution that enhances traffic flow, improves compliance monitoring, and increases operational efficiency of toll plazas.
- Real-time Vehicle Detection: Identifies vehicles entering the field of view
- Vehicle Classification: Automatically categorizes vehicles into 5 classes:
- Light Vehicles (Class 1)
- Medium Vehicles (Class 2)
- Heavy Vehicles (Class 3)
- Taxis (Class 4)
- Buses (Class 5)
- License Plate Recognition: Detects and reads license plates, with special handling for taxi plates
- Wheel Detection: Identifies single and double wheels to improve classification accuracy
- Configurable ROI: Allows setting specific regions of interest with visual threshold lines
- Data Management: Captures and stores vehicle information with timestamps
- Integration Capabilities: Connects via HTTP, MQTT, and FTP for seamless integration with other systems
- Modern GUI: User-friendly interface with real-time visualization and system status monitoring
- Python 3.8+
- PyQt5
- OpenCV
- Ultralytics YOLO
- PyTorch
- CUDA-capable GPU (recommended)
- Webcam or IP camera feed
├── core/
│ ├── data_manager.py # Handles data storage and retrieval
│ ├── image_processor.py # Processes images for visualization
│ └── vehicle_detector.py # Core detection and classification logic
├── handlers/
│ ├── camera_handler.py # Manages camera input
│ ├── ftp_handler.py # Handles FTP uploads
│ ├── http_handler.py # HTTP server for integration
│ ├── mqtt_handler.py # MQTT communication
│ └── preview_handler.py # Manages preview window
├── trained_models/ # Directory for model weights
│ ├── cr/ # Character recognition models
│ ├── lpd/ # License plate detection models
│ └── vavc/ # Vehicle classification models
├── utils/ # Utility scripts
├── gui.py # Main GUI implementation
├── main.py # Command-line interface
├── plate_recognizer.py # License plate character recognition
├── config.ini # Configuration file
└── README.md # This file
The trained_models directory contains the neural network weights used by the system:
- cr: Character Recognition models for license plate text recognition
- lpd: License Plate Detection models for locating license plates on vehicles
- vavc: Vehicle Automatic Verification and Classification models for vehicle type classification
These models are essential for the system to function properly and should not be removed or modified manually.
-
Clone the repository:
git clone https://github.com/your-username/vavc-system.git cd vavc-system -
Install dependencies:
pip install -r requirements.txt -
Download trained models and place them in the
trained_modelsdirectory (contact administrator for access). -
Configure the system by editing
config.inior through the GUI.
Run the system with the graphical user interface:
python gui.py
This launches the complete dashboard with visual controls and real-time vehicle detection display.
Run the system in command-line mode:
python main.py
This runs the core functionality without the GUI, suitable for headless deployments.
The system can be configured through the GUI or by directly editing the config.ini file:
- Go to the Configuration menu
- Select from:
- Host Setup: Configure general settings
- FTP Configuration: Set up file transfer
- Source Configuration: Set up camera source
- ROI Configuration: Set detection regions and thresholds
The config.ini file contains sections for:
src_info: Plaza and lane identificationsrc_input: Camera inputs and settingsroi: Detection regions and thresholdsftp: FTP server configurationhost_setup: General system settings
- Main Video Display: Shows the live camera feed with detection overlays
- Vehicle Class Indicators: Visual representation of the detected vehicle class
- Vehicle Counters: Running count of each vehicle type
- Control Panel: Start/Stop button and system identification
- Status Indicators: Shows connection status for various services
- System Logs: Real-time log display of system events
- Captured Vehicle Image: Last detected vehicle
The VAVC System communicates with the Lane Control System (LCS) using standardized JSON formats via:
-
HTTP Communication: VAVC responds to HTTP requests from LCS with vehicle class and image ID information.
-
MQTT Communication: Real-time messages are sent through MQTT when a vehicle is detected crossing the threshold.
-
LCS VAVC Request/Response Simulator: A testing tool is available for simulating LCS communications:
- StartRecognition: Informs VAVC that LCS is ready to receive MQTT messages
- StopRecognition: Informs VAVC that LCS is offline
- RequestVavc: Sends a request to VAVC and waits for vehicle class and image ID response
The system follows the same data formatting standards as other Delloyd transportation systems, ensuring compatibility across the ecosystem:
- Image File Format: Standardized naming convention including date, time, site ID, lane ID, camera ID, and plate information
- Sequence Format: Structured handling of vehicle and trailer plate numbers
- Video File Format: Consistent naming for video recordings
- The system captures video frames from a camera source
- Each frame is processed through a YOLO-based vehicle detector
- When a vehicle crosses the threshold line, the system:
- Classifies the vehicle type
- Detects wheels to confirm classification
- Recognizes license plates if enabled
- Saves an image of the vehicle
- Updates counters and logs
- Sends data via MQTT and HTTP
- Uploads images via FTP
The detection follows these steps:
- Frame Capture: Get frame from camera
- ROI Filtering: Focus on predefined region of interest
- YOLO Detection: Detect vehicle, wheels, and license plates
- Position Tracking: Track vehicle position relative to threshold
- Classification: Determine vehicle type using neural network
- Verification: Confirm classification using wheel detection
- Override Logic: Special handling for taxis with taxi plates
- Data Capture: Save detection data and images
The VAVC system uses YOLOv5-based models for detection and classification, similar to the approach used in Delloyd's ANPR and HS-WIM systems:
| Model Type | Purpose | Features |
|---|---|---|
| Vehicle Detection | Detects vehicles entering the ROI | Identifies vehicle boundaries |
| Vehicle Classification | Categorizes vehicles by type | Differentiates between 5 vehicle classes |
| Wheel Detection | Identifies wheel types | Distinguishes single and double wheels |
| License Plate Detection | Locates license plates on vehicles | Special handling for taxi plates |
| Character Recognition | Reads text from license plates | Handles Malaysian plate formats |
These models work together in a pipeline to provide comprehensive vehicle analysis with high accuracy and low latency.
The VAVC System has specialized handling for Malaysian license plates, including:
- Black background with white characters
- Character set includes A-Z (excluding I, O) and 0-9
- Model trained to avoid confusion between similar characters (e.g., 0 vs O, 1 vs I)
- White background with black characters
- New format begins with H followed by alphabetical sequence
- Old format follows commercial vehicle numbering with inverse colors
- Special case: Limousine taxi plates that start with "LIMO"
- Limited quantity plates offered at premium prices by JPJ
- Often uses fancy fonts requiring special post-processing
- System handles common substitutions (1→I, 0→O) for plates like:
- NBOS, UITM, VIP, PATRIOT, MALAYSIA, PUTRAJAYA, etc.
The VAVC system uses a structured file management approach similar to Delloyd's ANPR and HS-WIM systems:
├── image/ # Root directory for saved vehicle images
│ └── [date-folder]/ # Images organized by date (format: dd-mm-yyyy)
├── log/ # Directory for log files
│ └── [date-folder]/ # Logs organized by date
└── dataset/ # Directory for prepared training/testing data if needed
The system uses standardized file naming to ensure compatibility with other Delloyd systems:
- Image Files:
[YYYYMMDD].[HHMMSS].[fff].[plaza_id].[lane_id].[class_id].jpg - XML Annotation:
[YYYYMMDD].[HHMMSS].[fff].[plaza_id].[lane_id].[class_id].xml - Log Files:
[YYYYMMDD].log.csv
The system uses wheel detection to verify and potentially correct vehicle classification:
- Light Vehicles: Typically have only single wheels
- Medium Vehicles: Have at least one double wheel
- Heavy Vehicles: Have at least two double wheels
Special logic is implemented for taxis:
- If a taxi license plate is detected, the vehicle is automatically classified as a taxi
- This overrides the visual classification for greater accuracy
The system implements sophisticated duplicate detection:
- Tracks vehicle positions across frames
- Uses temporal and spatial information to prevent multiple counts
- Special handling for closely spaced vehicles
Common issues and solutions:
-
Camera Connection Fails:
- Check IP address/URL in Source Configuration
- Ensure network connectivity
- Verify camera credentials if required
-
No Detections:
- Check ROI settings in ROI Configuration
- Verify model files are in correct locations
- Check camera positioning and lighting
-
FTP Upload Errors:
- Verify FTP server credentials in FTP Configuration
- Check network connectivity
- Ensure upload directory exists and is writable
-
License Plate Recognition Not Working:
- Enable plate recognition in Host Setup
- Check camera focus and angle
- Verify character recognition model is present
For developers looking to extend the system:
- Core detection logic is in
core/vehicle_detector.py - GUI implementation is in
gui.py - License plate recognition is in
plate_recognizer.py - Add new integrations by extending the handlers in
handlers/
Developed by Delloyd Group.
Copyright © 2025 Delloyd Group. All rights reserved.
Yousef






