BARCODE IMAGE RECOGNITION METHOD AND DEVICE USING THE SAME
DRIVE
February 12, 2025
A barcode image recognition method includes the following steps: capturing at least one barcode to generate a preview image (20), the preview image (20) having at least one barcode image (31) of the at least one barcode; decoding the barcode image (31) to obtain barcode information (41) and a plurality of vertex coordinates (P1,P2,P3,P4) of the barcode image (31); caching the barcode information (41) of the barcode image (31); forming a plurality of image boundaries (L1,L2,L3,L4) of the barcode image (31) with the plurality of vertex coordinates (P1,P2,P3,P4) of the barcode image (31); generating a detection beeline (50) from a specified point (DP) to a side edge (E1) of the preview image (20); determining the number of intersections (I1) of the plurality of image boundaries (L1,L2,L3,L4) of the barcode image (31) and the detection beeline (50); identifying the barcode image (31) with odd number of intersections (I1) from the at least one barcode image (31) as a target image (T); and outputting the barcode information (41) of the target image (T).
Discussion in the ATmosphere