Paper The following article is Open access

Positioning and Tilt Correction of Milk Production Date Based on Mathematical Morphology

, and

Published under licence by IOP Publishing Ltd
, , Citation Fei Lei et al 2019 J. Phys.: Conf. Ser. 1267 012028 DOI 10.1088/1742-6596/1267/1/012028

1742-6596/1267/1/012028

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.

Please wait… references are loading.
10.1088/1742-6596/1267/1/012028