Abstract
Milk is one of the most common drinks in people's lives. Its quality is related to people's health and safety. Therefore, food regulatory authorities and milk manufacturers are increasingly strict with milk. The production date on the packaging is an important part of milk testing. One. Aiming at the problems of long time and high cost of manual detection, this paper proposes a method based on mathematical morphology for milk production date location and tilt correction based on computer vision related technology. The method firstly preprocesses the collected milk image, then uses the mathematical morphology method to obtain the candidate region of the milk production date, then analyzes the candidate region, extracts the accurate milk production date region, and finally uses the least squares principle. The straight line is fitted to calculate the tilt angle of the milk production date, and the milk image is tilt corrected using the rotation formula. In order to verify the comparison with the Hough transform method, the experiment proves that the proposed method can accurately predict the milk production date and tilt correction.
Export citation and abstract BibTeX RIS
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.