A method and device for identifying motion barcodes

By calculating the image movement displacement and correcting the barcode image, the problem of reduced barcode recognition efficiency caused by the movement of items is solved, and a method of accurately identifying barcodes on the item conveyor belt is realized.

CN112686064BActive Publication Date: 2024-09-17SUZHOU MOBYDATA SMART SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011516189.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-09-17
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

When the existing technology recognizes a barcode, it is necessary to keep the scanning machine and the barcode area stationary. If there is shaking, the barcode recognition will fail and the recognition efficiency will be reduced.

Method used

By acquiring the moving barcode image, the image movement displacement is calculated, and based on this, the barcode image is corrected and returned to an undeformed state for rapid decoding.

Benefits of technology

It improves the efficiency of barcode recognition and ensures that barcodes can be accurately identified even when items are moving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112686064B
    Figure CN112686064B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method, device and system for identifying a moving barcode, wherein the barcode is located on an object, and the object moves along a conveyor belt. The method comprises: obtaining a barcode image of the moving barcode, wherein the barcode image is obtained by scanning the moving barcode with a scanning device above the conveyor belt, and obtaining a ratio between an actual size of the barcode and an image size of the barcode image; obtaining an actual movement displacement of the barcode as it moves along the conveyor belt during the exposure time of the scan; obtaining an image movement displacement on the barcode image based on the ratio and the actual movement displacement, wherein the image movement displacement is the amount of deformation formed by the image on the barcode image when the moving barcode is scanned; and correcting the barcode image based on the image movement displacement, thereby restoring the deformed barcode image to the original undeformed barcode image, enabling fast decoding and improving the efficiency of scanning and identifying codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method and device for identifying a motion barcode. Background Art

[0002] When recognizing a barcode, the scanning end of the scanner needs to be aimed at the barcode area and kept still. If the scanning end or the barcode area shakes, the width of the black barcode area in the recognized barcode image becomes wider, and the corresponding blank area between the black barcode areas becomes narrower, resulting in decoding failure during the barcode recognition process, and the barcode cannot be accurately recognized, reducing the recognition efficiency. Summary of the invention

[0003] In view of the above problems, the present invention is proposed to provide a method, device and system for identifying moving barcodes that overcome the above problems or at least partially solve the above problems.

[0004] The present invention provides a method for identifying a moving barcode, wherein the barcode is located on an object, and the object moves along a conveyor belt, comprising:

[0005] Acquire a barcode image of the moving barcode, wherein the barcode image is obtained by scanning the moving barcode by a scanning device above the conveyor belt;

[0006] Obtaining a ratio between an actual size of the barcode and an image size of the barcode picture, wherein the barcode picture is obtained by scanning a moving barcode by a scanning device located above the conveyor belt;

[0007] Acquire the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time;

[0008] Based on the ratio and the actual displacement, obtaining an image displacement on the barcode image, wherein the image displacement is an amount of deformation formed on the image on the barcode image when scanning the moving barcode;

[0009] Based on the image movement displacement, the barcode image is corrected.

[0010] Furthermore, obtaining the ratio between the actual size of the barcode and the image size of the barcode picture includes:

[0011] Obtaining the actual size of the barcode and the image size of the barcode picture;

[0012] The actual size of the barcode is divided by the image size of the barcode picture to obtain a ratio between the actual size of the barcode and the image size of the barcode picture.

[0013] Furthermore, the correcting of the barcode image based on the image movement displacement on the barcode image includes:

[0014] Obtaining the moving direction of the barcode;

[0015] Erasing each black area of ​​the image on the barcode picture from one end so that the width of the erased black area is equal to the displacement of the image;

[0016] Get the corrected barcode image.

[0017] Furthermore, the step of obtaining the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time includes:

[0018] Obtaining the exposure time and the transmission speed of the conveyor belt;

[0019] Based on the exposure time and the transmission speed of the conveyor belt, the actual movement displacement of the barcode as the conveyor belt moves during the exposure time of scanning the barcode is obtained.

[0020] Furthermore, after the barcode image is corrected based on the image movement displacement, the method further includes:

[0021] The corrected barcode image is scanned for identification.

[0022] In a second aspect, the present invention further provides a device for identifying a motion barcode, comprising:

[0023] A first acquisition module is used to acquire a barcode image of a moving barcode, wherein the barcode image is obtained by scanning the moving barcode by a scanning device above the conveyor belt;

[0024] A first obtaining module is used to obtain a ratio between the actual size of the barcode and the image size of the barcode picture, where the barcode picture is obtained by scanning the moving barcode by a scanning device located above the conveyor belt;

[0025] A second acquisition module is used to acquire the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time;

[0026] A second obtaining module is used to obtain an image displacement on the barcode picture based on the ratio and the actual displacement, wherein the image displacement is an amount of deformation formed on the image on the barcode picture when the barcode is scanned;

[0027] A correction module is used to correct the barcode image based on the image movement displacement.

[0028] In a third aspect, the present invention further provides a system for identifying a motion barcode, comprising:

[0029] Conveyor belts for conveying items with bar codes;

[0030] A barcode scanning device, located above the conveyor belt, for scanning the barcode-carrying items being conveyed;

[0031] A device for identifying a moving barcode is used to identify a barcode scanned by a barcode scanning device.

[0032] Furthermore, the code scanning device maintains a preset height with the conveyor belt.

[0033] In a fourth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method steps when executing the program.

[0034] In a fifth aspect, a computer-readable storage medium stores a computer program thereon, characterized in that the program implements the above-mentioned method steps when executed by a processor.

[0035] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0036] The present invention provides a method for identifying a moving barcode, where the barcode is located on an object and the object is transmitted along a conveyor belt, comprising: obtaining a barcode image of the moving barcode, where the barcode image is obtained by scanning the moving barcode with a scanning device above the conveyor belt; obtaining a ratio between an actual size of the barcode and an image size of the barcode image, where the barcode image is obtained by scanning the moving barcode with a scanning device located above the conveyor belt; obtaining an actual moving position of the barcode as it moves along the conveyor belt during the exposure time of the scan; obtaining an image movement displacement on the barcode image based on the ratio and the actual movement displacement, where the image movement displacement is the amount of deformation formed by the image on the barcode image when scanning the moving barcode; and finally, based on the image movement displacement, correcting the barcode image, thereby restoring the deformed barcode image to the original undeformed barcode image, enabling fast decoding and improving the efficiency of scanning and identifying codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, throughout the accompanying drawings, the same reference figures are used to represent the same components. In the drawings:

[0038] Figure 1A schematic diagram showing the steps of the method for identifying a motion barcode in the first embodiment of the present invention is shown;

[0039] Figure 2 A schematic diagram showing the structure of a barcode in Embodiment 1 of the present invention is shown;

[0040] Figure 3 A schematic diagram showing a partially enlarged structure of a barcode in Embodiment 1 of the present invention is shown;

[0041] Figure 4a A schematic diagram of a barcode image of an original barcode in Embodiment 1 of the present invention is shown;

[0042] Figure 4b A schematic diagram of a barcode image in motion in the first embodiment of the present invention is shown;

[0043] Figure 5 A schematic diagram showing the structure of a device for identifying a motion barcode in a second embodiment of the present invention is shown;

[0044] Figure 6 A schematic diagram showing the structure of a system for identifying a motion barcode in a third embodiment of the present invention is shown;

[0045] Figure 7 A schematic diagram of the structure of an electronic device for realizing motion barcode recognition in a fourth embodiment of the present invention is shown. DETAILED DESCRIPTION

[0046] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0047] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0048] The overall idea of ​​the present invention is as follows:

[0049] In an automated scenario, a barcode scanning device is fixedly set, and the goods to be scanned are located on a conveyor belt. In order to ensure that the barcode scanning device can effectively identify the barcodes of the goods on the conveyor belt, the present invention proposes a method for identifying moving barcodes, obtaining a barcode image of a moving barcode, obtaining the ratio between the actual size of the barcode and the image size of the barcode image, and then obtaining the actual movement displacement of the barcode as it moves with the conveyor belt during the exposure time of the barcode scanning. Based on the ratio and the actual movement displacement, the image movement position on the barcode image is obtained. The image movement displacement is the deformation amount formed by the image on the barcode image when scanning the moving barcode. Finally, based on the image movement displacement, the barcode image is corrected. Thus, a corrected barcode is obtained, and the corrected barcode is not deformed compared to the original barcode. Therefore, it can be decoded quickly, improving the efficiency of barcode recognition.

[0050] Embodiment 1

[0051] Embodiment 1 of the present invention provides a method for identifying a moving barcode, wherein the barcode is located on an object, and the object moves along a conveyor belt, such as Figure 1 As shown, the method includes:

[0052] S101, obtaining a barcode image of a moving barcode, where the barcode image is obtained by scanning the moving barcode by a scanning device above a conveyor belt.

[0053] S102, obtaining a ratio between the actual size of the barcode and the image size of the barcode picture.

[0054] S103, obtaining the actual movement displacement of the barcode as the conveyor belt moves during the exposure time of scanning the barcode.

[0055] S104, based on the ratio and the actual displacement, obtaining the image displacement on the barcode picture, wherein the image displacement is the amount of deformation formed on the image on the barcode picture when scanning the moving barcode.

[0056] S105, based on the image movement displacement, the barcode image is corrected.

[0057] Execute S101 to obtain a barcode image of the moving barcode, where the barcode image is obtained by scanning the moving barcode by a scanning device above the conveyor belt.

[0058] The specific barcode structure diagram is as follows Figure 2 As shown, correspondingly, after the barcode structure diagram is partially enlarged, a one-dimensional barcode is obtained, such as Figure 3 As shown, the one-dimensional barcode is mainly composed of bars and spaces, the bars are black strip-shaped parts, and the spaces are white parts between the black strip-shaped parts.

[0059] After the barcode image is obtained, S102 is executed to obtain the ratio between the actual size of the barcode and the image size of the barcode image.

[0060] Specifically, S102 includes: obtaining the actual size of the barcode and the image size of the barcode picture, and then taking the actual size of the barcode and the image size of the barcode picture as a quotient to obtain the ratio between the actual size of the barcode and the image size of the barcode picture.

[0061] When obtaining the actual size of the barcode, it can be obtained by directly looking up the table, that is, the actual size data of the barcode has been stored in the database; when obtaining the image size of the barcode picture, it can be obtained by measuring the barcode picture (computer measurement) based on the obtained barcode picture.

[0062] After obtaining the actual size of the barcode and the image size of the barcode picture, the actual size of the barcode and the image size of the barcode picture are subtracted.

[0063] In an optional implementation, the actual length of the barcode may be divided by the image length of the barcode image, or the actual width of the barcode may be divided by the image width of the barcode image to obtain the ratio between the actual size of the barcode and the image size of the barcode image.

[0064] Here, the ratio between the actual size of the barcode and the image size of the barcode picture increases with the increase in the height between the scanning device and the conveyor belt, that is, the higher the height of the scanning device relative to the conveyor belt, the smaller the size of the barcode picture obtained by the scanning device when scanning the moving barcode.

[0065] For example, the actual length of the obtained barcode is 4 cm, and there is a certain height between the barcode scanning device and the barcode, so the length of the image of the barcode scanned by the barcode scanning device is 2 cm.

[0066] Thus, the ratio between the actual length and the image length is obtained to be 4 / 2=2. That is, the ratio between the actual size of the barcode and the image size of the barcode image is 2.

[0067] When the preset height between the barcode scanning device and the conveyor belt is met, no matter what barcode is used for scanning, the above ratio relationship is met, that is, the ratio between the actual length and the image length of any barcode meets the above ratio. The ratio is determined by the height between the barcode scanning device and the conveyor belt. When the height is constant, the ratio b remains unchanged.

[0068] Next, S103 is executed to obtain the actual displacement of the barcode as it moves along the conveyor belt during the exposure time of scanning the barcode. Since the conveyor belt is in motion, the barcode-carrying items on the conveyor belt also move in one direction along with the conveyor belt.

[0069] In the barcode image obtained within the exposure time of scanning the code, the image on the barcode image has a deformation amount Δd, such as Figure 4a and Figure 4b Among them, Figure 4a This is a barcode image obtained in a static state. Figure 4b This is a barcode image obtained in motion.

[0070] Since the above proportional relationship is fixed, that is, the ratio between the actual size of the barcode and the image size is b (fixed value), the actual movement displacement of the barcode with the conveyor belt during the exposure time of the scanned code and the image movement displacement on the barcode picture also satisfy the ratio b.

[0071] Therefore, in S103, based on the ratio and the actual movement displacement, the image movement displacement on the barcode picture is obtained, wherein the image movement displacement is the deformation amount formed by the image on the barcode picture obtained when scanning the moving barcode.

[0072] The actual movement displacement of the barcode as it moves along the conveyor belt during the scanning exposure time is S. The method for obtaining the actual movement displacement S of the barcode is as follows:

[0073] The exposure time t of the scanned code and the transmission speed v of the conveyor belt are obtained. Based on the exposure time t and the transmission speed v of the conveyor belt, the actual movement displacement S of the barcode moving with the conveyor belt during the scanned code exposure time t is obtained. The specific calculation formula is:

[0074] S=vt.

[0075] The actual movement displacement S of the barcode and the image movement displacement on the barcode picture, that is, the deformation amount Δd formed by the image on the barcode picture, are in the above-mentioned ratio b, so S / Δd=b.

[0076] From this we can obtain Δd=S / b.

[0077] After the image movement displacement Δd on the barcode image is obtained, S104 is executed to correct the barcode image based on the image movement displacement.

[0078] Specifically, the moving direction of the barcode is obtained; each black area of ​​the image on the barcode picture is erased from one end so that the width of the erased black area is equal to the image movement displacement, thereby obtaining a corrected barcode picture, wherein the image on the barcode picture before correction includes multiple black areas and gaps between the multiple black areas.

[0079] When erasing, erasing can be performed from any end of the image on the barcode image, and there is no limitation here.

[0080] After the image in the barcode image with the deformation is corrected, the width of each black area in the barcode image becomes narrower, and the gap between adjacent black areas becomes wider, so that the original image is restored.

[0081] The corrected barcode image is as follows Figure 4a As shown, the image is restored to one without deformation.

[0082] Finally, after S104, the corrected barcode image is scanned and recognized. At this time, during the recognition process, since the size of the image in the barcode image is a normal size, the decoding accuracy is improved and the implementation efficiency is also improved.

[0083] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0084] The present invention provides a method for identifying a moving barcode, where the barcode is located on an object and the object is transmitted along a conveyor belt, comprising: obtaining a barcode image of the moving barcode, where the barcode image is obtained by scanning the moving barcode with a scanning device above the conveyor belt; obtaining a ratio between an actual size of the barcode and an image size of the barcode image, where the barcode image is obtained by scanning the moving barcode with a scanning device located above the conveyor belt; obtaining an actual moving position of the barcode as it moves along the conveyor belt during the exposure time of the scan; obtaining an image movement displacement on the barcode image based on the ratio and the actual movement displacement, where the image movement displacement is the amount of deformation formed by the image on the barcode image when scanning the moving barcode; and finally, based on the image movement displacement, correcting the barcode image, thereby restoring the deformed barcode image to the original undeformed barcode image, enabling fast decoding and improving the efficiency of scanning and identifying codes.

[0085] Embodiment 2

[0086] Based on the same inventive concept, the embodiment of the present invention also provides a device for identifying a motion barcode, such as Figure 5 As shown, including:

[0087] A first acquisition module 501 is used to acquire a barcode image of a moving barcode, where the barcode image is obtained by scanning the moving barcode by a scanning device above the conveyor belt;

[0088] A first obtaining module 502 is used to obtain the ratio between the actual size of the barcode and the image size of the barcode picture;

[0089] The second acquisition module 503 is used to acquire the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time;

[0090] A second obtaining module 504 is used to obtain an image displacement on the barcode image based on the ratio and the actual displacement, wherein the image displacement is a deformation amount formed on the image on the barcode image when the barcode is scanned;

[0091] The correction module 505 is used to correct the barcode image based on the image movement displacement.

[0092] In an optional implementation, the first obtaining module 502 includes:

[0093] A first acquisition unit, used to acquire the actual size of the barcode and the image size of the barcode picture;

[0094] A quotient calculation unit is used to calculate the quotient of the actual size of the barcode and the image size of the barcode picture to obtain the ratio between the actual size of the barcode and the image size of the barcode picture.

[0095] In an optional implementation, the correction module 505 includes:

[0096] An erasing unit, used for erasing each black area of ​​the image on the barcode picture from one end so that the width of the erased black area is equal to the displacement of the image;

[0097] The first obtaining unit is used to obtain the corrected barcode image.

[0098] In an optional implementation, the method further includes: a second acquisition module 503, including:

[0099] A second acquisition unit, used to acquire the exposure time and the transmission speed of the conveyor belt;

[0100] The second obtaining unit is used to obtain the actual movement displacement of the barcode as the conveyor belt moves during the barcode scanning exposure time based on the exposure time and the transmission speed of the conveyor belt.

[0101] In an optional implementation, it further includes: a barcode scanning and recognition module, which is used to scan and recognize the corrected barcode image.

[0102] Embodiment 3

[0103] Based on the same inventive concept, the embodiment of the present invention also provides a system for identifying a motion barcode, such as Figure 6 As shown, it includes: a conveyor belt 601, used to convey items with bar codes; a barcode scanning device 602, located above the conveyor belt, used to scan the barcodes of the items with bar codes being conveyed; and the device for identifying moving barcodes described in Example 2, used to identify the barcodes scanned by the barcode scanning device.

[0104] The scanning device 602 and the conveyor belt 601 are kept at a preset height and remain unchanged, so that the ratio value b does not change during the scanning process.

[0105] The transmission speed of the conveyor belt 601 is kept uniform, so that when the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time is obtained, it can be quickly obtained based on the uniform transmission speed.

[0106] When the above-mentioned system for identifying motion barcodes is used for scanning and identifying, it can be applied to intelligent shopping solutions in large supermarkets, which can improve the efficiency of automated operations.

[0107] Embodiment 4

[0108] Based on the same inventive concept, a fourth embodiment of the present invention provides an electronic device, such as Figure 7 As shown, it includes a memory 704, a processor 702, and a computer program stored in the memory 704 and executable on the processor 702. When the processor 702 executes the program, the steps of the above-mentioned method for identifying a motion barcode are implemented.

[0109] Among them, Figure 7 In the embodiment of the present invention, a bus architecture (represented by bus 700) is shown, which may include any number of interconnected buses and bridges, and bus 700 links various circuits including one or more processors represented by processor 702 and memory represented by memory 704. Bus 700 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 706 provides an interface between bus 700 and receiver 701 and transmitter 703. Receiver 701 and transmitter 703 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 702 is responsible for managing bus 700 and general processing, while memory 704 may be used to store data used by processor 702 when performing operations.

[0110] Embodiment 5

[0111] Based on the same inventive concept, a fifth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above-mentioned method for identifying a motion barcode are implemented.

[0112] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific languages ​​is for disclosing the best mode of the present invention.

[0113] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0114] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0115] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0116] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0117] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a device, electronic device, or system for identifying a motion barcode according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0118] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

Claims

1. A method for identifying a moving barcode, wherein the barcode is located on an object and the object moves along a conveyor belt, characterized in that: include: Acquire a barcode image of the moving barcode, wherein the barcode image is obtained by scanning the moving barcode by a scanning device above the conveyor belt; Obtaining a ratio between the actual size of the barcode and the image size of the barcode picture; Acquire the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time; Based on the ratio and the actual movement displacement, obtaining the image movement displacement on the barcode picture, including: the image movement position on the barcode picture is equal to the actual movement displacement divided by the ratio; the image movement displacement is the deformation amount formed by the image on the barcode picture when scanning the moving barcode; Based on the image movement displacement, the barcode image is corrected, including: erasing each black area of ​​the image on the barcode image from one end so that the width of the erased black area is equal to the image movement displacement; and obtaining a corrected barcode image.

2. The method according to claim 1, characterized in that The obtaining of the ratio between the actual size of the barcode and the image size of the barcode picture includes: Obtaining the actual size of the barcode and the image size of the barcode picture; The actual size of the barcode is divided by the image size of the barcode picture to obtain a ratio between the actual size of the barcode and the image size of the barcode picture.

3. The method according to claim 1, characterized in that The obtaining of the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time includes: Obtaining the exposure time and the transmission speed of the conveyor belt; Based on the exposure time and the transmission speed of the conveyor belt, the actual movement displacement of the barcode as the conveyor belt moves during the exposure time of scanning the barcode is obtained.

4. The method according to claim 1, characterized in that After the barcode image is corrected based on the image movement displacement, the method further includes: The corrected barcode image is scanned for identification.

5. A device for identifying a motion barcode, characterized in that: include: A first acquisition module is used to acquire a barcode image of a moving barcode, wherein the barcode image is obtained by scanning the moving barcode by a scanning device above a conveyor belt; A first obtaining module is used to obtain a ratio between the actual size of the barcode and the image size of the barcode picture, where the barcode picture is obtained by scanning the moving barcode by a scanning device located above the conveyor belt; A second acquisition module is used to acquire the actual movement displacement of the barcode as the conveyor belt moves during the scanning exposure time; A second obtaining module is used to obtain the image displacement on the barcode picture based on the ratio and the actual displacement, including: the image displacement on the barcode picture is equal to the actual displacement divided by the ratio; the image displacement is the deformation amount formed by the image on the barcode picture when the barcode is scanned; The correction module is used to correct the barcode image based on the image movement displacement, including: erasing each black area of ​​the image on the barcode image from one end so that the width of the erased black area is equal to the image movement displacement; obtaining a corrected barcode image.

6. A system for identifying a motion barcode, characterized in that: include: Conveyor belts for conveying items with bar codes; A barcode scanning device, located above the conveyor belt, for scanning the barcode-carrying items being conveyed; The device for identifying a moving barcode as described in claim 5 is used to identify a barcode scanned by a barcode scanning device.

7. The system according to claim 6, characterized in that The code scanning device and the conveyor belt maintain a preset height.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method steps as claimed in any one of claims 1 to 4 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method steps described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Identification method, device, equipment and system

    CN111967529A

  • Imaging device

    US20020139857A1