The invention belongs to the field of quality detection of mobile automobile windshields, and discloses a quality detection method of a head-up display
windshield based on
machine vision, which comprises the following steps: acquiring an original image of an original projection
virtual image formed by a standard image projected by a head-up display
system through the
windshield, and carrying out graying
processing on the original image to obtain a gray image; a corresponding grey-
scale map is obtained; extracting an ROI (
Region of Interest) area, namely a
virtual image area, from the grey-
scale map, performing dual-threshold
processing on the image from which the
virtual image area is extracted so as to segment a background area and the virtual
image area, highlighting edge features of a virtual image in the background area and the virtual
image area, and obtaining a
thresholding image; and measuring each physical parameter of the
thresholding image, comparing the difference between the measurement result and the corresponding parameter of the standard image, and if the difference is within a preset threshold range, determining that the
imaging quality of the head-up display
windshield is qualified, otherwise, determining that the
imaging quality of the head-up display windshield is unqualified. The stability and efficiency of HUD
imaging quality measurement of the windshield are improved, and meanwhile the cost of the whole detection
system is greatly reduced.