π Nepal Vehicle License Plates Detection Model (Version 3)
π Description
**Version 3** of the Nepal Vehicle License Plates Detection Model offers advanced functionality to detect **individual characters** in Nepalese vehicle license plates and draw bounding boxes around each one.
This version enhances the accuracy and granularity of detection compared to earlier versions, making it ideal for real-world applications.
β¨ Key Features
π **Character-Wise Detection**
Detects and draws bounding boxes for each character in a license plate for precise recognition.
π― **High Precision and Recall**
Achieves industry-leading metrics, ensuring accurate and reliable performance.
β‘ **Real-Time Inference**
Optimized for fast predictions, making it suitable for live detection applications.
π Earlier Model
Explore the earlier version of this project, which detects license plates as a whole:
[Nepal Vehicle License Plate Detection](https://huggingface.co/krishnamishra8848/Nepal-Vehicle-License-Plate-Detection)
π Model Performance Metrics
**Precision**
0.985
Percentage of correct bounding box predictions among all predictions.
**Recall**
0.984
Percentage of ground truth objects successfully detected.
**mAP@50**
0.994
Mean Average Precision at IoU threshold 0.5.
**mAP@50-95**
0.861
Mean Average Precision across multiple IoU thresholds (0.5 to 0.95).
**Inference Speed**
~2.4ms per image
Time taken to process a single image during inference.
!pip install ultralytics
!pip install huggingface_hub
from huggingface_hub import hf_hub_download
repo_id = "krishnamishra8848/Nepal_Vehicle_License_Plates_Detection_Version3"
model_path = hf_hub_download(repo_id=repo_id, filename="best.pt")
print(f"Model downloaded and saved at: {model_path}")
from ultralytics import YOLO
model = YOLO(model_path)
from google.colab import files
import matplotlib.pyplot as plt
import cv2
uploaded = files.upload()
image_path = list(uploaded.keys())[0]
results = model.predict(source=image_path)
annotated_image = results[0].plot()
plt.figure(figsize=(10, 10))
plt.imshow(cv2.cvtColor(annotated_image, cv2.COLOR_BGR2RGB))
plt.axis("off")
plt.show()