LIU Song, LU Yi-xiang, SUN Dong. Barcode Recognition Based on USB Camera[J]. Microelectronics & Computer, 2014, 31(1): 47-51.
Citation: LIU Song, LU Yi-xiang, SUN Dong. Barcode Recognition Based on USB Camera[J]. Microelectronics & Computer, 2014, 31(1): 47-51.

Barcode Recognition Based on USB Camera

  • Taking USB Camera as the input device,an improved EAN-13 barcode loaction and recogniton algorithm was proposed.First,the differences of the two successive frames was calculated.The current image frame was captured when the absolute value of the differences was less than a certain threshold.Morphological dilation and erosion algorithm was used to locate the barcode of the image caught by camera.Then,global threshold calculated by Otsu was used to segment the image located.Then,geometric correction of the tilted barcode was realized by the method of rectangular panning that was proposed in this paper.Finally,the barcode was recognised after calculating the barcode and empty width and judged whether was right.Experiments shows that the algorithm has a high recognition speed and high rate of recognition.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return