Week 3

 In week 3, we successfully resolved the issue of accessing the Raspberry Pi desktop. Additionally, we started training a license plate detection model using YOLO, specifically YOLOv8, to improve our system's accuracy. This week's progress included preparing the dataset, training the model, analyzing the results, and implementing Non-Maximum Suppression (NMS) to refine detection


Lab Day:

Resolving Raspberry Pi Desktop Access

  1. SSH Connection: First, we connected to the Raspberry Pi system using SSH, allowing us to access its terminal remotely.

  2. VNC Viewer Setup: After setting up SSH access, we used VNC Viewer to remotely control the Raspberry Pi's desktop interface, which enable us to manage our training tasks efficiently.


Training the License Plate Detection Model

Choosing YOLO for Object Detection

We explored different object detection models and decided on YOLO due to its real-time efficiency and high detection accuracy. 

Data Preparation and Training

  • We collected and preprocessed a dataset containing labeled images of license plates.

  • Using YOLOv8, we initiated model training with our dataset.

  • The model's training progress was tracked across multiple epochs, and the best-performing YOLO weight file was saved based on validation performance.

  • A log was maintained for each epoch, recording loss values and accuracy metrics.

Performance Analysis and Loss Curve Visualization

  • We drew the loss curves over the training epochs to monitor convergence and detect potential overfitting.

  • The model was evaluated on a separate test set to analyze its generalization capability.

Challenges Encountered

Overlapping Bounding Boxes Issue

  • Reduced confidence scores: Since multiple overlapping boxes diluted the confidence of each detection, the model was less certain about the correct identification.

  • Redundant detections: The presence of multiple bounding boxes for a single license plate increased processing time and complexity.

Applying Non-Maximum Suppression (NMS)

  • Eliminates redundant bounding boxes.

  • Retains only the most confident detection for each license plate.

  • Improves detection accuracy by reducing false positives and ensuring a single box per license plate.


Next Steps

With the Raspberry Pi system fully accessible and the license plate detection model trained and optimized, our next steps will focus on:

  • Further improving recognition accuracy by fine-tuning YOLO's hyperparameters.

  • Integrating the trained model into a real-time application.

评论

此博客中的热门博文

Week 4

Week 2

Week 1