A YOLOv8 trained OpenCV model applicable to detecting body hole coverage states on a simulated auto assembly line at Toyota Canada. The detection model has a 94% accuracy rate accross 3 different lighting condition closely immitating the environment at the factory.
OpenCV, Python, Data Collection, Project Management
ViewEvery vehicle produced at Toyota Motor Manufacturing Canada has body holes which needs to be covered by a sticker completely as part of the manufacturing process.
The purpose of this hackathon was to develop an automated coverage detection model that could potentially be implemented at the plant which would save hours of manual labour.
1. The intial part of the hackthon was spent in optimizing hole detection through OpenCV. One of the big challenges were the variations in lighting conditions and angles. The core functions of OpenCV such as houghcircle detection, exposure adjustments, thresholding and contour approximation was utilized to detect holes efficiently in the scripts.
2. Due to the nature of hole stickers being similar in size and colour, I decided to shift the development direction to utilize Tensorflow Machine Learning training from this point as the project manager. It was under the conclusion that it would provide much better results compared to what we could collectively achieve with out limited skillset with python and opencv, as well as being able to increase accuracy through meticuous data verification.
Image: Initial trials of hole detection and area calculation through thresholding and houghcircle functions.
Image Data Collection: Over 90 pictures were taken with systematic variation of angles and lightning condition optimized for the final judging setup. Those 90 images were then duplicated twice to simulate different exposure level, saturation, and blurriness to train the model.
With 20 epochs in the YoloV8 model, the final product which incorporated the YoloV8 model with additional OpenCV Video feed manupulation that achieved 97% accuracy over 80+ detection points at 85% confidence threshold.
Awards: Systematic Engineering Award by the staff at TMMC, recognized for it's practical applicability in the actual plant.