Barcode recognition based on Hough transform and deep learning
In order to cope with the difficulties in the recognition of barcodes in complex background,a recognition method is proposed to carry out the barcode correction and positioning based on the combination of Hough transform and deep learning.The images to be detected are subjected to preprocessing,including gray processing,Gaussian blurring and edge detecting.And then,Hough transform is used to detect the line segments in the barcode image for rotation correction.The barcode image is recognized and extracted by Yolov5 to fulfill the barcode recognition and segmentation.The proposed method has a good recognition effect on different types of barcodes.The accuracy rate of rotation correction of the method is 99.31%,its average accuracy of recognition is 99.40%,its recall rate is 99.79%,and its reasoning time is 10.5 ms.The proposed method can correct any angle inclination,and has high accuracy rate for barcode recognition,so it has a certain application value for barcode location recognition.