Abstract: When machining metal, the machining process often leaves numerous scratches on the milled metal surface, making inspection of its appearance crucial to ensure the quality of the product.