CN112329495B - Bar code identification method, device and system - Google Patents

Bar code identification method, device and system Download PDF

Info

Publication number
CN112329495B
CN112329495B CN202011206112.4A CN202011206112A CN112329495B CN 112329495 B CN112329495 B CN 112329495B CN 202011206112 A CN202011206112 A CN 202011206112A CN 112329495 B CN112329495 B CN 112329495B
Authority
CN
China
Prior art keywords
bar code
image
barcode
initial
collected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011206112.4A
Other languages
Chinese (zh)
Other versions
CN112329495A (en
Inventor
相徐斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202011206112.4A priority Critical patent/CN112329495B/en
Publication of CN112329495A publication Critical patent/CN112329495A/en
Application granted granted Critical
Publication of CN112329495B publication Critical patent/CN112329495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a method, a device and a system for identifying a bar code. The scheme is as follows: acquiring a plurality of acquired images; positioning at least one bar code included in the acquired image to obtain a positioning result of each bar code; intercepting each bar code in parallel from the collected image based on the positioning result to obtain an initial bar code image; calculating the initial bar code image of each bar code in the collected image in parallel to obtain the width of each bar code unit; based on the preset minimum width and the width of each bar code unit in the initial bar code image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image; and parallelly decoding the target bar code image to obtain the information carried by each bar code in the acquired image. By adopting the technical scheme provided by the embodiment of the invention, the efficiency of bar code identification is improved, and the difficulty of bar code identification is reduced.

Description

Bar code identification method, device and system
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a barcode recognition method, device, and system.
Background
The bar code is used as information carrier and is widely applied in various aspects of production and life, such as logistics industry. With the continuous development of information technology, bar code identification is gradually changed from a traditional manual bar code scanning identification mode into an automatic bar code scanning identification mode of fixed equipment, so that manpower is liberated to a great extent, and the cost is saved.
Fixed equipment relies on the bar code image that fixed equipment gathered to bar code identification, specifically is: and the fixed equipment identifies the bar code contained in the bar code image to obtain the information carried by the bar code. However, in practical applications, the barcode of the object with different heights is at different distances from the fixed equipment, which results in different sizes of the barcode included in the barcode image collected by the fixed equipment.
When the barcode image includes an excessively large barcode, the length of time to identify the information carried by the barcode is long. When the barcode image includes a barcode that is too small, it is difficult to identify the information carried by the barcode. Therefore, when the barcode image acquired by the fixed device includes too large or too small barcodes, barcode recognition efficiency is reduced, and barcode recognition difficulty is increased.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and a system for identifying a bar code so as to improve the bar code identification efficiency and reduce the bar code identification difficulty. The specific technical scheme is as follows:
the embodiment of the invention provides a bar code identification method, which comprises the following steps:
acquiring a plurality of acquired images, wherein each acquired image comprises at least one bar code;
aiming at each collected image, positioning at least one bar code included in the collected image to obtain a positioning result of each bar code;
for each collected image, intercepting each bar code from the collected image in parallel based on the positioning result of each bar code in the collected image to obtain an initial bar code image of each bar code in the collected image;
for each collected image, computing and processing the initial bar code image of each bar code in the collected image in parallel to obtain the width of each bar code unit in the initial bar code image of each bar code in the collected image, wherein the bar code units are black bars and white bars of the bar code;
for each collected image, based on a preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width;
and for each collected image, decoding the target bar code image of each bar code in the collected image in parallel to obtain the information carried by each bar code in the collected image.
The embodiment of the invention also provides a bar code identification device, which comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of acquired images, and each acquired image comprises at least one bar code;
the positioning module is used for positioning at least one bar code included in each collected image to obtain a positioning result of each bar code in each collected image;
the intercepting module is used for intercepting each bar code in the collected image in parallel according to the positioning result of each bar code in the collected image so as to obtain an initial bar code image of each bar code in the collected image;
the calculation module is used for calculating and processing the initial bar code image of each bar code in the acquired image in parallel aiming at each acquired image to obtain the width of each bar code unit in the initial bar code image of each bar code in the acquired image, wherein the bar code units are black bars and white bars of the bar code;
the zooming module is used for carrying out width zooming processing on the initial bar code image of each bar code in the collected image in parallel according to the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image so as to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width;
and the first decoding module is used for decoding the target bar code image of each bar code in the acquired image in parallel aiming at each acquired image to obtain the information carried by each bar code in the acquired image.
The embodiment of the invention also provides a bar code identification system, which comprises a bar code positioning module, a bar code preprocessing module, a bar code decoding module and a storage medium;
the bar code positioning module is used for acquiring a plurality of acquired images from the storage medium, and each acquired image comprises at least one bar code; positioning at least one bar code included in each collected image to obtain a positioning result of each bar code in each collected image; storing the positioning result of each bar code in each collected image to the storage medium;
the bar code preprocessing module is used for acquiring a positioning result of each bar code in each acquired image from the storage medium aiming at each acquired image; intercepting each bar code from the collected image in parallel based on the positioning result of each bar code in the collected image to obtain an initial bar code image of each bar code in the collected image; calculating the initial bar code image of each bar code in the collected image in parallel to obtain the width of each bar code unit in the initial bar code image of each bar code in the collected image, wherein the bar code units are black bars and white bars of the bar code; based on the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width; storing the target bar code image of each bar code in the collected image to the storage medium;
the bar code decoding module is used for acquiring a target bar code image of each bar code in the acquired image from the storage medium aiming at each acquired image, and decoding the target bar code image of each bar code in the acquired image in parallel to obtain information carried by each bar code in the acquired image; and storing the information carried by each bar code in the acquired image to the storage medium.
The embodiment of the invention has the following beneficial effects:
according to the barcode identification method, device and system provided by the embodiment of the invention, the width of each barcode unit in the initial barcode image of each barcode in the acquired image can be calculated in parallel aiming at each acquired image, so that based on the preset minimum width and the width of each barcode unit in the initial barcode image of each barcode in the acquired image, the width scaling processing is performed on the initial barcode image of each barcode in the acquired image in parallel, a target barcode image of each barcode in the acquired image is obtained, and then the target barcode image of each barcode in the acquired image is decoded in parallel, so that information carried by each barcode in the acquired image is obtained. By carrying out width scaling processing on each initial bar code image, the minimum value of the width of each bar code unit in each target bar code image obtained by scaling is unified, the size of the bar code in each target bar code image is unified to a certain extent, the problems that the bar code identification efficiency is low and the bar code identification difficulty is high due to the fact that the bar code in the collected image is too large or too small can be effectively solved, the bar code identification efficiency is effectively improved, and the bar code identification difficulty is reduced.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an application scenario of a stationary device in the related art;
fig. 2 is a schematic diagram of a first structure of a barcode identification system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a second structure of a barcode identification system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a third structure of a barcode identification system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a fourth structure of a barcode identification system according to an embodiment of the present invention;
fig. 6 is a first flowchart of a barcode identification method according to an embodiment of the present invention;
FIG. 7 is a second flowchart illustrating a barcode identification method according to an embodiment of the present invention;
FIG. 8 is a schematic view of a bar code scan line and a smooth scan line provided by an embodiment of the present invention;
FIG. 9 is a third flowchart illustrating a barcode identification method according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating a method for determining a preset minimum width according to an embodiment of the present invention;
FIG. 11 is a signaling diagram of a barcode identification process provided by an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a barcode identification apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the sake of understanding, some terms in the embodiments of the present invention will be described below.
The barcode may be any of various bar codes, including, but not limited to, Universal Product Code (UPC), European Article Number (EAN), 25 bar Code, cross 25 bar Code, and curdebar bar Code.
The bar code elements may be black bars (also referred to as bars) and white bars (also referred to as spaces) in the above-described bar code. The black bars are the portions of the bar code with lower reflectivity, and the white bars are the portions of the bar code with higher reflectivity. Typically, the black bars are black in color, i.e., pixel value 0, and the white bars are white in color, i.e., pixel value 255. Besides, the color of the black strip can be blue, green and the like, and the color of the white strip can be red, orange and the like according to different specific articles to be identified and application scenes. For convenience of description, in the embodiments of the present invention, the black bars are illustrated as black, and the white bars are illustrated as white, which do not have any limiting effect.
The minimum cell width of a bar code (also called a Pixel Per Module, PPM for short) is the minimum of the widths of all the bar code cells in the bar code.
The following describes a process of barcode recognition in the related art by taking fig. 1 as an example. Fig. 1 is a schematic diagram of an application scenario of a stationary device in the related art. As shown in fig. 1, the apparatus 103 is a stationary apparatus, the apparatus 103 is fixed on a support 102, and the articles 104 and 106 are conveyed on a conveyor belt 101. Region 105 is the region of the item 104 where the barcode is located and region 107 is the region of the item 106 where the barcode is located.
When the objects 104 and 106 are conveyed by the conveyor 101 to a capture area of the apparatus 103 (e.g., an area directly below the apparatus 103), the apparatus 103 may capture an upper surface of the objects 104 and 106, resulting in an image 1 of a surface on which the area 105 is located and an image 2 of a surface on which the area 107 is located. The device 103 may identify the barcodes in images 1 and 2, resulting in the information carried by each barcode.
For ease of understanding, the identification of the corresponding barcode at the region 105 in the image 1 is taken as an example for explanation. The device 103 may determine the position of the boundary point of each barcode cell at the barcode region in the image 1 (i.e., at the position corresponding to the region 105 in the article 104), and the start and stop positions of the barcode, so as to decode each barcode cell between the start and stop positions, and obtain the information carried by the corresponding barcode at the region 105 on the article 104.
In the above-mentioned image 1 and image 2 capturing processes, due to the difference in size or height of the articles conveyed on the conveyor belt 101, the distance of the articles from the device 103 is different, which results in a large difference in the size of the barcode in the captured image captured by the device 103. Taking fig. 1 as an example, the height of the item 104 is significantly higher than the height of the item 106, which results in that when the areas where the bar codes corresponding to the item 104 and the item 106 are located are photographed in the same photographing area, the bar code in the photographed image 1 is significantly larger than the bar code in the photographed image 2 because the distance between the area 105 and the device 103 is smaller than the distance between the area 107 and the device 103.
However, in the barcode recognition process, when the barcode in the captured image captured by the device 103 is too large, that is, the PPM of the barcode is too large, for example, 10 pixels, the barcode recognition process takes a long time. When the bar code in the captured image captured by the device 103 is too small, i.e., the PPM of the bar code is too small, e.g., 1 pixel, the bar code will be difficult to identify.
In order to solve the problems that in the related art, when a barcode included in a barcode image is too large or too small, barcode recognition efficiency is low and barcode recognition difficulty is high, the embodiment of the invention provides a barcode recognition system. As shown in fig. 2, fig. 2 is a schematic view of a first structure of a barcode identification system according to an embodiment of the present invention. The barcode identification system comprises a barcode positioning module 201, a barcode preprocessing module 202, a barcode decoding module 203 and a storage medium 204.
The barcode positioning module 201 is configured to obtain a plurality of captured images from the storage medium 204, where each captured image includes at least one barcode; positioning at least one bar code included in each collected image to obtain a positioning result of each bar code in each collected image; the positioning result of each barcode in each captured image is stored in the storage medium 204.
The barcode preprocessing module 202 is configured to, for each acquired image, obtain a positioning result of each barcode in the acquired image from the storage medium 204; intercepting each bar code from the collected image in parallel based on the positioning result of each bar code in the collected image to obtain an initial bar code image of each bar code in the collected image; calculating the initial bar code image of each bar code in the acquired image in parallel to obtain the width of each bar code unit in the initial bar code image of each bar code in the acquired image, wherein the bar code units are black bars and white bars of the bar code; based on the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width; the target barcode image for each barcode in the captured image is stored to storage medium 204.
The barcode decoding module 203 is configured to, for each acquired image, acquire a target barcode image of each barcode in the acquired image from the storage medium 204, and decode the target barcode image of each barcode in the acquired image in parallel to obtain information carried by each barcode in the acquired image; the information carried by each barcode in the captured image is stored to the storage medium 204.
In an optional embodiment, the barcode preprocessing module 202 may be specifically configured to, for each collected image, concurrently construct a barcode scanning line of each barcode in the collected image according to pixel values of a preset number of rows of pixel points in an initial barcode image of each barcode in the collected image; filtering the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image; determining the intersection point of the bar code scanning line of each bar code in the acquired image and the smooth scanning line corresponding to the bar code scanning line of each bar code in the acquired image in parallel as the boundary point of each bar code unit of each bar code in the acquired image; and calculating the width of each bar code unit in the initial bar code image of each bar code in the collected image in parallel based on the boundary points of each bar code unit of each bar code in the collected image.
In an optional embodiment, the barcode preprocessing module 202 may be specifically configured to, for each acquired image, calculate, in parallel, a ratio between a preset minimum width and a minimum value of widths of barcode units in an initial barcode image of each barcode in the acquired image, where the ratio is used as an adjustment ratio of the initial barcode image of each barcode in the acquired image; and according to the adjustment proportion of the initial bar code image of each bar code in the acquired image, carrying out width scaling treatment on the initial bar code image of each bar code in the acquired image in parallel to obtain a target bar code image of each bar code in the acquired image.
In an optional embodiment, on the basis of the barcode identification system shown in fig. 2, an embodiment of the present invention further provides a barcode identification system. Fig. 3 is a schematic diagram of a second structure of a barcode identification system according to an embodiment of the present invention, as shown in fig. 3. The barcode recognition system may further include an image acquisition module 205 and an information output module 206.
The image acquisition module 205 is configured to acquire an acquired image including at least one barcode; and storing the captured image to the storage medium 204;
the information output module 206 is configured to, for each captured image, obtain information carried by each barcode in the captured image from the storage medium 204, and output the information carried by each barcode in the captured image.
In an optional embodiment, on the basis of the barcode identification system shown in fig. 2, an embodiment of the present invention further provides a barcode identification system. As shown in fig. 4 and 5, fig. 4 is a schematic diagram of a third structure of a barcode identification system according to an embodiment of the present invention, and fig. 5 is a schematic diagram of a fourth structure of the barcode identification system according to the embodiment of the present invention. The processor of the barcode recognition system may be a multi-core processor, and the processor of the barcode recognition system shown in fig. 4 includes processor cores 1 to 5.
The barcode positioning module 201 may include a plurality of barcode positioning threads. The barcode positioning module 201 shown in fig. 5 includes a barcode positioning thread 1 and a barcode positioning thread 2.
The barcode positioning module 201 may be specifically configured to assign the multiple acquired images to multiple barcode positioning threads respectively, and perform positioning processing in parallel by using the multiple barcode positioning threads.
In the embodiment of the present invention, the plurality of barcode positioning threads may run in the same processor core, as shown in fig. 4, a plurality of barcode positioning threads may run on the processor core 1. Or may run on a different processor core, and is not particularly limited herein.
The barcode preprocessing module 202 may include a barcode preprocessing scheduling thread and a plurality of barcode preprocessing threads. The barcode preprocessing module 202 shown in fig. 5 includes a barcode preprocessing scheduling thread, a barcode preprocessing thread 1, and a barcode preprocessing thread 2.
The barcode preprocessing module 202 may be specifically configured to, for each acquired image, utilize a barcode preprocessing scheduling thread, acquire a positioning result of each barcode in the acquired image from a storage medium, respectively assign each acquired positioning result to a plurality of barcode preprocessing threads, and utilize the plurality of barcode preprocessing threads to perform preprocessing in parallel.
In the embodiment of the present invention, the barcode preprocessing scheduling thread may run in one processor core, as shown in fig. 4, the barcode preprocessing scheduling thread runs on the processor core 2. Multiple barcode preprocessing threads may run on another processor core, as shown in fig. 4, with multiple barcode preprocessing threads running on processor core 3. Here, the barcode preprocessing scheduling thread and the processor cores run by the plurality of barcode preprocessing threads are not particularly limited.
The barcode decoding module 203 may include a barcode decoding scheduling thread and a plurality of barcode decoding threads. The barcode decoding module 203 shown in fig. 5 includes a barcode decoding scheduling thread, a barcode decoding thread 1, and a barcode decoding thread 2.
The barcode decoding module 203 may be specifically configured to, for each acquired image, acquire a target barcode image of each barcode in the acquired image from a storage medium by using a barcode decoding scheduling thread, assign each acquired target barcode image to a plurality of barcode decoding threads, and perform decoding processing in parallel by using the plurality of barcode decoding threads.
In the embodiment of the present invention, the barcode decoding scheduling thread may run on one processor core, as shown in fig. 4, and the barcode decoding scheduling thread runs on the processor core 4. Multiple barcode decoding threads may run on another processor core, as shown in fig. 4, with multiple barcode decoding threads running on processor core 5. Here, the processor cores run by the barcode decoding scheduling thread and the plurality of barcode decoding threads are not particularly limited.
By adopting the barcode identification system provided by the embodiment of the invention, the width of each barcode unit in the initial barcode image of each barcode in the acquired image can be calculated in parallel for each acquired image, so that the width scaling processing is performed on the initial barcode image of each barcode in the acquired image in parallel based on the preset minimum width and the width of each barcode unit in the initial barcode image of each barcode in the acquired image to obtain the target barcode image of each barcode in the acquired image, and then the decoding processing is performed on the target barcode image of each barcode in the acquired image in parallel to obtain the information carried by each barcode in the acquired image. By carrying out width scaling processing on each initial bar code image, the minimum value of the width of each bar code unit in each target bar code image obtained by scaling is unified, the size of the bar code in each target bar code image is unified to a certain extent, the problems that the bar code identification efficiency is low and the bar code identification difficulty is high due to the fact that the bar code in the collected image is too large or too small can be effectively solved, the bar code identification efficiency is effectively improved, and the bar code identification difficulty is reduced.
The following describes embodiments of the present invention with reference to specific examples.
As shown in fig. 6, fig. 6 is a first flowchart of a barcode identification method according to an embodiment of the present invention. The method comprises the following steps.
Step S601, a plurality of captured images are obtained, each captured image including at least one barcode.
In this step, the image acquisition module may photograph or scan a surface of the article to be recognized, which includes at least one barcode, to obtain an acquired image. Here, acquisition of the captured image is not particularly limited.
In an alternative embodiment, the image capturing module may store the captured image in a storage medium after obtaining the captured image. Storage for the captured images may be as shown in table 1.
TABLE 1
Storage time Capturing images
Time 1 Image 1
Time 2 Image 2
Other information, such as the corresponding acquisition time, number, etc. of each acquired image may also be included in table 1. Here, the storage method of the captured image is not particularly limited.
In an alternative embodiment, the image capture module may be a single camera system. Alternatively, the image acquisition module may be a multi-camera acquisition system, such as a five-camera system or a six-camera system. Here, the image capturing module is not particularly limited.
Step S602, for each acquired image, positioning at least one barcode included in the acquired image, and obtaining a positioning result of each barcode.
In this step, the barcode positioning module may obtain the acquired image from the storage medium, and position at least one barcode included in the acquired image for each acquired image, so as to obtain a positioning result of each barcode in the acquired image.
In an optional embodiment, when the barcode positioning module includes a plurality of barcode positioning threads, the barcode positioning module may acquire a plurality of acquired images from a storage medium, assign the acquired images to the barcode positioning threads respectively, and perform positioning processing in parallel by using the barcode positioning threads. The number of the acquired images acquired by the bar code positioning module is the same as that of the bar code positioning threads. And the collected image is positioned in parallel by utilizing a plurality of bar code positioning threads, so that the bar code positioning efficiency is effectively improved.
For ease of understanding, the following description will take the positioning of a barcode included in one captured image as an example.
In an optional embodiment, the barcode positioning module may position at least one barcode included in the captured image by using a neural network model, so as to obtain a positioning result of each barcode in the captured image.
In another optional embodiment, the barcode positioning module may position at least one barcode included in the acquired image by using a preset barcode, so as to obtain a positioning result of each barcode in the acquired image.
In the embodiment of the present invention, a manner of positioning at least one barcode included in the captured image is not particularly limited.
In an embodiment of the present invention, the positioning result of each barcode in the captured image may be position information of each barcode in the captured image. For example, the positioning result may be position coordinates of four vertices of a rectangular region where the barcode is located in the captured image, or the positioning result may also be position coordinates of any vertex of the four vertices of the rectangular region where the barcode is located in the captured image and position coordinates of a center point of the rectangular region. Here, the positioning result is not particularly limited.
In an alternative embodiment, the barcode positioning module may store each positioning result obtained by positioning in the storage medium.
In order to facilitate the later further processing of the bar code included in each collected image, the bar code positioning module can correspondingly store the bar code according to the corresponding relationship between the collected image and the positioning result. Specific examples are shown in Table 2.
TABLE 2
Figure BDA0002757123090000091
As can be seen from table 2, the image 1 includes three barcodes, and the positioning results corresponding to the three barcodes are coordinate 1, coordinate 2, and coordinate 3, respectively. Only one barcode is included in the image 2, and the positioning result of the barcode is the coordinate 4.
In an alternative embodiment, in order to facilitate management of data in the storage medium, when the captured image and the positioning result are stored in the storage medium, the captured image and the positioning result may be stored in different storage medium regions. For example, the captured image is stored at the storage area 1 of the storage medium, and the positioning result is stored at the storage area 2 of the storage medium.
Step S603, for each collected image, based on the positioning result of each barcode in the collected image, intercepting each barcode from the collected image in parallel, to obtain an initial barcode image of each barcode in the collected image.
In this step, for each acquired image, the barcode preprocessing scheduling thread in the barcode preprocessing module may obtain the acquired image and a positioning result of each barcode in the acquired image from the storage medium. The barcode preprocessing scheduling thread can obtain each positioning result and respectively allocate the positioning result to a plurality of barcode preprocessing threads. Namely, each acquired positioning result is correspondingly distributed to one bar code preprocessing thread. The bar code preprocessing module intercepts each bar code in the acquired image in parallel by utilizing a plurality of bar code preprocessing threads to obtain an initial bar code image of each bar code in the acquired image.
In the embodiment of the present invention, when the positioning result of the acquired image is obtained, a corresponding number of positioning results may be obtained according to the number of barcode preprocessing threads included in the barcode preprocessing module. For the acquisition of the positioning result, the following description is provided, and the detailed description is omitted.
In the embodiment of the present invention, when the acquired image includes a plurality of barcodes, the barcode preprocessing module may intercept a plurality of barcodes included in the acquired image simultaneously by using a plurality of barcode preprocessing threads to obtain an initial barcode image corresponding to each barcode, so as to implement parallel processing of the plurality of barcodes, shorten acquisition time of the initial barcode image corresponding to each barcode, and improve barcode identification efficiency.
In an optional embodiment, for each captured image, after intercepting an initial barcode image of each barcode in the captured image, the barcode preprocessing module may store the initial barcode image of each barcode in the storage medium. The storage of the initial barcode image of each barcode may refer to the above storage of the positioning result of each barcode, and will not be specifically described here.
In the embodiment of the invention, the initial bar code image obtained by intercepting according to the positioning result is positioned by positioning at least one bar code included in the acquired image, so that the influence of other information except the bar code in the acquired image on the bar code identification can be effectively reduced, and the accuracy of the bar code identification is improved.
Step S604, for each collected image, performing parallel calculation processing on the initial barcode image of each barcode in the collected image to obtain the width of each barcode unit in the initial barcode image of each barcode in the collected image, where the barcode units are black bars and white bars of the barcode.
Since each barcode preprocessing thread calculates the width of each barcode unit in the initial barcode image in the same manner, for convenience of description, the following description will only take the example that one barcode preprocessing thread in the barcode preprocessing module determines the width of each barcode unit in a certain initial barcode image. The barcode preprocessing thread can calculate the width of each barcode unit in the barcode according to the pixel value of the pixel point in the initial barcode image. The specific calculation method can be referred to the following description, and is not repeated herein.
The plurality of bar code preprocessing threads in the bar code preprocessing module can simultaneously calculate the width of each bar code unit in the initial bar code image, so that the parallel processing of a plurality of initial bar code images is realized, the width calculation time of each bar code unit in each initial bar code image is shortened, and the bar code identification efficiency is improved.
Step S605, for each collected image, based on the preset minimum width and the width of each barcode unit in the initial barcode image of each barcode in the collected image, performing width scaling processing on the initial barcode image of each barcode in the collected image in parallel to obtain a target barcode image of each barcode in the collected image.
The minimum value of the widths of the bar code units in the target bar code image is equal to the preset minimum width.
In the embodiment of the present invention, the preset minimum width may be set by a user according to an empirical value, or may be determined by performing barcode recognition on barcode images of different PPMs. For a specific determination method, reference may be made to the following description, which is not repeated herein.
In an optional embodiment, in the step S605, for each collected image, based on a preset minimum width and a width of each barcode unit in the initial barcode image of each barcode in the collected image, the width scaling processing is performed on the initial barcode image of each barcode in the collected image in parallel to obtain a target barcode image of each barcode in the collected image, which may specifically include the following steps.
Step one, aiming at each collected image, calculating the ratio of a preset minimum width to the minimum value of the widths of the bar code units in the initial bar code image of each bar code in the collected image in parallel, and taking the ratio as the adjustment proportion of the initial bar code image of each bar code in the collected image.
In an optional embodiment, for each acquired image, the minimum value of the widths of the barcode units in the initial barcode image of each barcode in the acquired image may be: and the minimum value of the corresponding widths of all the bar code units in the initial bar code image of each bar code in the collected image.
In another optional embodiment, because the initial barcode image is obtained by capturing an acquired image, noise may be introduced during the acquisition of the acquired image, which may cause a certain error in the width of each barcode unit in each initial barcode image obtained by capturing the acquired image, and therefore, for each captured image, the minimum value of the widths of each barcode unit in the initial barcode image of each barcode in the captured image may be: and carrying out noise reduction processing on the corresponding widths of all the bar code units in the initial bar code image of each bar code in the acquired image. For the minimum value after the noise reduction process, the following description is available, and is not specifically described here.
And step two, for each collected image, according to the adjustment proportion of the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image.
Since each barcode preprocessing thread is processed in the same manner, for the sake of understanding, only the width scaling of one initial barcode image is taken as an example for the following description.
When the adjustment ratio of the initial barcode image is greater than 1, that is, the preset minimum width is greater than the minimum value of the widths of the barcode units in the initial barcode image, the barcode preprocessing module may determine that the initial barcode image is relatively small. At this time, the barcode preprocessing module may perform width amplification on the initial barcode image according to the adjustment ratio of the initial barcode image to obtain the target barcode image.
When the adjustment ratio of the initial barcode image is smaller than 1, that is, the preset minimum width is smaller than the minimum value of the widths of the barcode units in the initial barcode image, the barcode preprocessing module may determine that the initial barcode image is relatively large. At this time, the barcode preprocessing module may perform width reduction on the initial barcode image according to the adjustment ratio of the initial barcode image, so as to obtain a target barcode image.
When the adjustment ratio of the initial barcode image is equal to 1, that is, when the preset minimum width is equal to the minimum value of the widths of the barcode units in the initial barcode image, the barcode preprocessing module may not perform the width scaling process on the initial barcode image, that is, the initial barcode image is the target barcode image.
In an alternative embodiment, the width scaling process may be expressed as: and the bar code preprocessing module scales the initial bar code image in an equal proportion according to the adjustment proportion of each initial bar code image to obtain a target bar code image.
In another alternative embodiment, the width scaling process may be expressed as: and the bar code preprocessing module only scales the initial bar code image in the width direction according to the adjustment proportion of each initial bar code image to obtain a target bar code image.
By adopting the method shown in the first step and the second step, the minimum value of the width of each bar code unit in the target bar code image obtained by zooming can be unified, namely the preset minimum width. The size of the bar code in each target bar code image is unified to a certain extent, the problems that the bar code identification efficiency is low and the bar code identification difficulty is high due to the fact that the bar code in the collected image is too large or too small can be effectively solved, the bar code identification efficiency is effectively improved, and the bar code identification difficulty is reduced.
In another alternative embodiment, the barcode preprocessing module may directly perform the width scaling process on the initial barcode image. And when the minimum value of the widths of the bar code units of the bar code in the scaled initial bar code image is equal to the preset minimum width, determining the scaled initial bar code image as a target bar code image of the initial bar code image.
In an optional embodiment, after obtaining the target barcode image, the barcode preprocessing module may store the target barcode image in the storage medium. For the storage of each target barcode image, reference may be made to the above storage manner of each positioning result, which is not specifically described herein.
Step S606, for each collected image, decoding the target barcode image of each barcode in the collected image in parallel to obtain information carried by each barcode in the collected image.
In this step, for each acquired image, the barcode decoding scheduling thread in the barcode decoding module may obtain a target barcode image of each barcode in the acquired image from the storage medium, and assign the obtained target barcode image to a plurality of barcode decoding threads in the barcode decoding module respectively. The barcode decoding module can decode the target barcode image in parallel by using a plurality of barcode decoding threads to obtain information carried by each barcode in the acquired image.
In an optional embodiment, for each acquired image, in order to ensure integrity of information carried by the barcode included in the acquired image obtained by identification, the barcode decoding scheduling thread may count the number of target barcode images assigned to the barcode decoding thread, and when the number is the same as the number of positioning results obtained by positioning by the barcode positioning module, output information carried by each barcode in the acquired image obtained by decoding by each barcode decoding thread.
In an optional embodiment, for each acquired image, after obtaining information carried by each barcode included in the acquired image, the barcode decoding module may store the identified information in the storage medium. The storage of the information carried by each barcode may refer to the storage of each positioning result, which is not specifically described herein.
In an optional embodiment, for each captured image, when the storage medium stores information carried by each barcode included in the captured image, the information output module may obtain the information carried by each barcode included in the captured image from the storage medium, and output the information carried by each barcode in the captured image.
In an alternative embodiment, the information output module may actively output information carried by a barcode included in each captured image.
In another optional embodiment, the information output module may obtain and output information carried by a barcode included in a certain captured image when receiving an obtaining request for information carried by the barcode included in the captured image.
In an embodiment of the present invention, storage and retrieval of data in the storage medium are described above. Such as the storage and retrieval of the captured image, the positioning results, the initial barcode image, the target barcode image, and the information carried by the barcode.
When data is stored, if the data amount corresponding to the residual storage space in the storage medium is greater than or equal to the data amount of the data to be stored, the data to be stored is stored in the storage medium. And if the data volume corresponding to the residual storage space in the storage medium is smaller than the data volume of the data to be stored, storing the data to be stored into the storage space when the data volume corresponding to the residual storage space in the storage medium is larger than or equal to the data volume of the data to be stored.
When data is acquired, if the data to be acquired is stored in the storage medium, the data to be acquired is acquired from the storage medium. And if the data to be acquired is not stored in the storage medium, waiting until the data to be acquired is stored in the storage medium, and acquiring the data to be acquired from the storage medium.
The storage and acquisition of the positioning result of a certain barcode will be described as an example. After the barcode positioning module positions the area where the barcode is located to obtain the positioning result, if the data amount corresponding to the current remaining storage space of the storage medium is greater than or equal to the data amount corresponding to the positioning result, the positioning result is stored in the storage medium. Otherwise, when the data volume corresponding to the residual storage space of the storage medium is smaller than the data volume corresponding to the positioning result, the positioning result is stored in the storage medium.
When the bar code preprocessing module acquires the positioning result of the bar code, if the storage medium stores the positioning result, the bar code preprocessing module directly acquires the positioning result from the storage medium. Otherwise, the bar code preprocessing module acquires the positioning result from the storage medium when waiting until the positioning result is stored in the storage medium.
The storage and acquisition of the collected image, the initial barcode image, the target barcode image and the information carried by the barcode may refer to the storage and acquisition of the positioning result, which is not specifically described herein.
In an optional embodiment, in order to improve the utilization rate of the storage space in the storage medium, after data is read from the storage medium, the read data may be deleted from the storage medium. Taking the positioning result as an example, after the barcode preprocessing module reads a certain positioning result from the storage medium, the positioning result may be deleted from the storage medium.
In an alternative embodiment, according to the method shown in fig. 6, an embodiment of the present invention further provides a barcode identification method. As shown in fig. 7, fig. 7 is a second flowchart of a barcode identification method according to an embodiment of the present invention. The method comprises the following steps.
Step S701, a plurality of captured images are obtained, each captured image including at least one barcode.
Step S702, for each acquired image, positioning at least one barcode included in the acquired image to obtain a positioning result of each barcode.
Step S703, for each collected image, based on the positioning result of each barcode in the collected image, intercepting each barcode from the collected image in parallel, to obtain an initial barcode image of each barcode in the collected image.
The above steps S701 to S703 are the same as the above steps S601 to S603.
Step S704, for each collected image, according to the pixel values of the pixel points in the preset number of rows in the initial barcode image of each barcode in the collected image, concurrently construct a barcode scanning line of each barcode in the collected image.
For ease of understanding, the following description will be given only by taking an initial barcode image of a certain barcode as an example.
In an alternative embodiment, the number of barcode scan lines of the barcode constructed based on the initial barcode image of the barcode may be one.
In another alternative embodiment, in order to improve the accuracy of the calculated width of each barcode unit in the barcode, the number of barcode scan lines of the barcode constructed based on the initial barcode image of the barcode may be multiple.
In an optional embodiment, in the step S704, for each collected image, according to pixel values of a preset number of rows of pixel points in an initial barcode image of each barcode in the collected image, a barcode scanning line of each barcode in the collected image is constructed in parallel, which may specifically include the following steps.
Step one, aiming at each collected image, calculating the average value of pixel values of all pixel points in the same vertical direction in the preset number of lines of the initial bar code image of each bar code in the collected image in parallel.
In the embodiment of the present invention, the predetermined number of rows may be one row or multiple rows.
In an alternative embodiment, when the predetermined number of rows are multiple rows, each row may be any row in the initial barcode image. Alternatively, the preset number of rows may be adjacent preset number of rows in the initial barcode image.
And step two, for each collected image, according to the arrangement sequence of all pixel points in the horizontal direction in the initial bar code image of each bar code in the collected image, combining the pixel value mean values corresponding to the initial bar code image of each bar code in the collected image in parallel to obtain the bar code scanning line of each bar code in the collected image.
For ease of understanding, the structure of a bar code in the scanning direction will be described as an example.
When the row of the preset number of rows is one row, the barcode preprocessing module may determine a pixel value of each pixel point in the row as an average value of each pixel point in the row of the preset number of rows. The bar code preprocessing module can determine a curve formed by pixel values corresponding to each pixel point as a bar code scanning line according to the arrangement sequence of the pixel points in the row in the initial bar code image.
When the preset number of lines is multiple lines, the bar code preprocessing module can calculate the average value of the pixel values of the pixel points of the multiple lines in the same vertical direction. The bar code preprocessing module can determine a curve formed by the mean values of the pixel values corresponding to each pixel point as a bar code scanning line according to the arrangement sequence of the pixel points in the row in the initial bar code image.
In an optional embodiment, the barcode preprocessing module may perform horizontal line segmentation on the initial barcode image to obtain a plurality of barcode sub-images. The number of lines of the pixel points in each bar code subimage can be the same or different.
Aiming at each bar code subimage, the bar code preprocessing module can calculate the mean value of pixel values of all pixel points of the bar code subimage in the same vertical direction, so that the curve represented by the mean value of each pixel point is determined as a bar code scanning line corresponding to the bar code subimage according to the arrangement sequence of all the pixel points in the horizontal direction, and then a plurality of bar code scanning lines of the initial bar code image are obtained.
For convenience of understanding, fig. 8 is an exemplary illustration of a barcode scan line and a smooth scan line provided in an embodiment of the present invention. The image 801 may be the initial barcode image or the barcode sub-image. Curve 802 is the bar code scan line and curve 803 is the smooth scan line corresponding to curve 802.
Each value on the curve 802 is an average value of pixel values of each pixel point in the same vertical direction in the image 801.
In the embodiment of the invention, the influence of noise in the initial bar code image on the accuracy of the bar code scanning line can be effectively reduced by calculating the pixel value mean value of each pixel point in the same vertical direction, and the accuracy of the constructed bar code scanning line is improved, so that the accuracy of the width of each bar code unit in the initial bar code image obtained by calculation is improved.
Step S705, for each collected image, performing filtering processing on the barcode scanning line of each barcode in the collected image in parallel to obtain a smooth scanning line corresponding to the barcode scanning line of each barcode in the collected image.
In this step, for each barcode scanning line constructed in step S704, the barcode preprocessing module may perform filtering processing on the barcode scanning line to obtain a smooth scanning line corresponding to the barcode scanning line.
Still taking the above fig. 8 as an example, the curve 803 is a smooth scan line obtained after the barcode preprocessing module performs filtering processing on the curve 802.
In an optional embodiment, in the step S705, for each acquired image, the barcode scanning line of each barcode in the acquired image is filtered in parallel to obtain a smooth scanning line corresponding to the barcode scanning line of each barcode in the acquired image, which may be specifically represented as: and aiming at each collected image, performing Gaussian filtering processing on the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image.
In another optional embodiment, in the step S705, for each acquired image, the barcode scanning line of each barcode in the acquired image is filtered in parallel to obtain a smooth scanning line corresponding to the barcode scanning line of each barcode in the acquired image, which may be specifically represented as: and carrying out mean value filtering processing on the bar code scanning lines of each bar code in the acquired image in parallel aiming at each acquired image to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the acquired image.
In the embodiment of the present invention, the processes of the gaussian filtering process and the mean filtering process are not specifically described. The mode of the filtering process is not particularly limited.
In the embodiment of the invention, through the filtering processing on each bar code scanning line, the influence of noise can be further reduced, and the accuracy of smoothing the scanning lines is improved, so that the accuracy of the width of each bar code unit in the initial bar code image obtained by calculation is improved.
Step S706, for each collected image, determining an intersection point of the barcode scanning line of each barcode in the collected image and the smooth scanning line corresponding to the barcode scanning line of each barcode in the collected image as a boundary point of each barcode unit of each barcode in the collected image in parallel.
In an embodiment of the present invention, the boundary points of each barcode unit include a left boundary point and a right boundary point.
For ease of understanding, the determination of the boundary points of the barcode cells of the barcode will be described by taking fig. 8 as an example.
Intersection 805 and intersection 806 are two adjacent intersections of curve 802 and curve 803. Based on the image 801, the barcode pre-processing module may determine the intersection 805 as the left boundary point of the white bar 804, or the right boundary point of the left black bar of the white bar 804; the intersection point 806 is a right boundary point of the white bar 804, or a left boundary point of a black bar on the right side of the white bar 804.
In the embodiment of the invention, the boundary point of each bar code unit in the initial bar code image can be accurately determined according to the bar code scanning line and the smooth scanning line, so that the accuracy of determining the width of each bar code unit according to the boundary point of each bar code unit in the initial bar code image is improved.
Step S707, for each collected image, based on the boundary points of the barcode units of each barcode in the collected image, the widths of the barcode units in the initial barcode image of each barcode in the collected image are calculated in parallel.
In an alternative embodiment, the width of each barcode unit in the initial barcode image may be represented as: the distance in the horizontal direction between the left boundary point and the right boundary point of each barcode unit in the initial barcode image.
In another alternative embodiment, the width of each barcode unit in the initial barcode image may be represented as: the number of pixel points of the left boundary point and the right boundary point of each bar code unit in the initial bar code image in the horizontal direction.
The above-mentioned description is made by taking fig. 8 as an example. The width of the white bar 804 can be expressed as the distance in the horizontal direction between the intersection 805 and the intersection 806 or the number of pixels.
In the embodiment of the present invention, the manner of representing the width of each barcode unit in the initial barcode image is not particularly limited.
The above-mentioned step S704 to step S707 are refinements of the above-mentioned step S604.
Step S708, for each collected image, based on the preset minimum width and the width of each barcode unit in the initial barcode image of each barcode in the collected image, performing width scaling processing on the initial barcode image of each barcode in the collected image in parallel to obtain a target barcode image of each barcode in the collected image.
Step S709, for each collected image, decoding the target barcode image of each barcode in the collected image in parallel to obtain information carried by each barcode in the collected image.
The above steps S708 to S709 are the same as the above steps S605 to S606.
In an alternative embodiment, according to the method shown in fig. 6, an embodiment of the present invention further provides a barcode identification method. As shown in fig. 9, fig. 9 is a third schematic flow chart of a barcode identification method according to an embodiment of the present invention. The method comprises the following steps.
Step S901, a plurality of captured images are acquired, each captured image including at least one barcode.
Step S902, for each acquired image, positioning at least one barcode included in the acquired image to obtain a positioning result of each barcode.
Step S903, aiming at each collected image, based on the positioning result of each bar code in the collected image, intercepting each bar code from the collected image in parallel to obtain an initial bar code image of each bar code in the collected image.
Step S904, for each collected image, performing parallel calculation processing on the initial barcode image of each barcode in the collected image to obtain the width of each barcode unit in the initial barcode image of each barcode in the collected image, where the barcode units are black bars and white bars of the barcode.
The above-described steps S901 to S904 are the same as the above-described steps S601 to S604.
Step S905, for each collected image, according to the statistical histogram of the widths of each barcode unit in the initial barcode image of each barcode in the collected image, determining an abscissa value corresponding to the leftmost peak in the statistical histogram as the minimum value among the widths of each barcode unit in the initial barcode image of each barcode in the collected image in parallel.
For ease of understanding, the following description will be made by taking a certain initial barcode image as an example.
After determining the width of each barcode unit in the initial barcode image, the barcode preprocessing module may generate a statistical histogram of the widths according to the width of each barcode unit in the initial barcode image. The abscissa direction in the statistical histogram represents the width, and increases in order from left to right. The ordinate direction represents the distribution, such as frequency, corresponding to each width. The barcode preprocessing module may determine an abscissa value corresponding to the leftmost peak in the statistical histogram as a minimum value among widths of each barcode unit in the initial barcode image.
For ease of understanding, the above step S905 will be explained.
Assume that the widths of the bar code elements in the initial bar code image include 3 kinds of widths, i.e., the width values are 1, 2, and 3, respectively. Since the above-mentioned image capturing module may introduce noise when capturing the captured image, which may cause a gray area to appear in the initial barcode image obtained by cutting from the captured image, referring to fig. 8, a gray area exists in the boundary area of each barcode unit in the image 801. Therefore, when determining the width of each bar code unit in the initial bar code image according to the pixel value of the initial bar code image, the calculated width of the bar code unit is more than 3, such as the width values of 0.9, 1.1, 1.9, etc. may occur.
Therefore, in order to improve the accuracy of determining the minimum value in the widths of the barcode units in the initial barcode image, the barcode preprocessing module determines the abscissa value corresponding to the leftmost peak in the statistical histogram as the minimum value in the widths of the barcode units in the initial barcode image, so that the influence of noise introduced in the image acquisition process on the determination of the minimum value in the widths of the barcode units can be effectively reduced, the accuracy of the determined minimum value in the widths of the barcode units is improved, the accuracy of the target barcode image obtained based on the minimum value adjustment is improved, and the accuracy of barcode identification is improved.
The minimum value of the widths of the barcode units obtained in step S905 is the minimum value after the noise reduction processing.
Step S906, for each collected image, based on the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, performing width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image.
Step S907, for each collected image, decoding the target barcode image of each barcode in the collected image in parallel to obtain information carried by each barcode in the collected image.
The above steps S906 to S907 are the same as the above steps S605 to S606.
Based on the same inventive concept, according to the barcode identification method provided in the embodiment of the present invention, the embodiment of the present invention further provides a method for determining a preset minimum width, as shown in fig. 10, and fig. 10 is a schematic flow chart of the method for determining a preset minimum width provided in the embodiment of the present invention. The method may include the following steps.
Step S1001, a plurality of bar code image sets are obtained, and the minimum widths of bar code units of bar codes included in different bar code image sets are different.
In the embodiment of the present invention, the number of barcode images included in each barcode image set may be the same or different.
The method of determining the minimum width of the barcode unit of the barcode included in the barcode image set may refer to a method of determining the minimum width of each barcode unit in the initial barcode image, and will not be specifically described here.
For ease of understanding, the above-described barcode image set is illustrated.
The PPM range is assumed to be in PPM according to empirical values min And PPM max In addition, the identification efficiency of the bar code is high. The plurality of bar code image sets can be PPMs min And PPM max And the bar code image sets are obtained at intervals of 0.5 PPM.
Step S1002, decode each barcode image in the plurality of barcode image sets to obtain information carried by each barcode.
In this step, each barcode image in the plurality of barcode image sets does not need to be subjected to the preprocessing process, and each barcode image in each barcode image set is directly decoded to obtain information carried by each barcode.
Step S1003, counting the decoding time length and/or the decoding success rate of the barcode images included in each barcode image set.
In this step, for each barcode image set, the decoding duration and/or the decoding success rate of the barcode images included in the barcode image set may be counted.
When the number of the barcode images included in each barcode image set is the same, the decoding duration may be a total duration or an average duration of all the barcode images in the barcode image set. When the number of barcode images included in each barcode image set is different, the decoding time period may be an average time period of all barcode images in the barcode image set.
The decoding success rate may be the decoding success rate of all the barcode images in each barcode image set. The decoding success rate can also be the decoding success rate of all the barcode images in each barcode image set within a preset time length.
In the embodiment of the present invention, the decoding duration and the decoding success rate are not particularly limited.
Step S1004, determining a preset minimum width according to the decoding duration and/or the decoding success rate of the barcode images included in the plurality of barcode image sets, and according to a rule with the minimum decoding duration and/or a rule with the maximum decoding success rate.
In an optional embodiment, according to the decoding time length of the barcode image included in each barcode set, and according to a rule that the decoding time length is the minimum, the PPM value corresponding to the barcode set with the minimum decoding time length may be determined as the preset minimum width.
In another optional embodiment, according to the decoding success rate of the barcode image included in each barcode set and according to a rule with the highest decoding success rate, the PPM value corresponding to the barcode set with the highest decoding success rate may be determined as the preset minimum width.
In another optional embodiment, according to the decoding duration and the decoding success rate of the barcode image included in each barcode set, and according to the rule with the minimum decoding duration and the rule with the highest decoding success rate, the PPM value corresponding to the barcode set with the minimum decoding duration and the highest decoding success rate may be determined as the preset minimum width.
In an optional embodiment, when there are multiple PPM values determined in step S1004, the preset minimum width determined by the minimum PPM value in the multiple PPM values may be determined. Alternatively, an average value of a plurality of PPMs may be determined as the preset minimum width.
By adopting the method shown in fig. 10, the preset minimum width can be accurately determined, and the determined preset minimum width and the decoding time length in the actual barcode recognition process are/is the minimum and/or the decoding success rate is the highest, so that the recognition efficiency of the target barcode image obtained according to the preset minimum width can be effectively improved, and the recognition difficulty of the target barcode can be reduced.
For ease of understanding, the process of identifying information carried by a bar code in a captured image that includes only one bar code is described below in connection with FIG. 11. Fig. 11 is a signaling diagram of a barcode identification process according to an embodiment of the present invention.
In step S1101, the image acquisition module acquires an acquired image.
The captured image includes only one barcode.
Step S1102, the image acquisition module stores the acquired image in a storage medium.
Step S1103, the barcode positioning module acquires the captured image from the storage medium, and positions the barcode in the acquired captured image to obtain a positioning result.
In the embodiment of the present invention, the number of the acquired images acquired by the barcode positioning module may be multiple. When a plurality of acquired images are acquired, the barcode positioning module can utilize a plurality of barcode positioning threads to perform parallel processing on the acquired images, that is, simultaneously position barcodes in the acquired images to obtain a positioning result.
In step S1104, the barcode positioning module stores the positioning result in a storage medium.
Step S1105, the bar code preprocessing module obtains the collected image and the positioning result of the collected image from the storage medium, and intercepts the bar code from the collected image according to the obtained positioning result to obtain the initial bar code image.
In step S1106, the barcode preprocessing module calculates the width of each barcode unit of the barcode in the initial barcode image.
Step S1107, the barcode preprocessing module performs width scaling on the initial barcode image based on the preset minimum width and the width of each barcode unit in the initial barcode image to obtain a target barcode image.
The minimum value of the widths of the bar code units in the target bar code image is equal to the preset minimum width.
In an embodiment of the present invention, when the captured image includes a plurality of barcodes, the barcode preprocessing module may perform preprocessing on the plurality of barcodes included in the captured image in parallel. With specific reference to the above description, no specific explanation is made here.
In step S1108, the barcode preprocessing module stores the target barcode image in a storage medium.
Step S1109, the bar code decoding module obtains a target bar code image from the storage medium and decodes the obtained target bar code image to obtain information carried by the bar code in the collected image.
In the embodiment of the present invention, when the captured image includes a plurality of barcodes, the barcode decoding module may decode the plurality of barcodes included in the captured image in parallel. With specific reference to the above description, no specific explanation is made here.
In step S1110, the barcode decoding module stores the information carried by the barcode in the decoded acquired image in a storage medium.
In step S1111, the information output module obtains the information carried by the barcode from the storage medium and outputs the information to the outside.
Based on the same inventive concept, according to the barcode identification method provided by the embodiment of the invention, the embodiment of the invention also provides a barcode identification device. Fig. 12 is a schematic structural diagram of a barcode identification apparatus according to an embodiment of the present invention, as shown in fig. 12. The apparatus includes the following modules.
A first obtaining module 1201, configured to obtain a plurality of collected images, where each collected image includes at least one barcode;
a positioning module 1202, configured to position, for each acquired image, at least one barcode included in the acquired image to obtain a positioning result of each barcode;
an intercepting module 1203, configured to intercept, for each acquired image, each barcode in the acquired image in parallel based on a positioning result of each barcode in the acquired image, so as to obtain an initial barcode image of each barcode in the acquired image;
the calculation module 1204 is configured to perform calculation processing on the initial barcode image of each barcode in the acquired image in parallel for each acquired image, to obtain the width of each barcode unit in the initial barcode image of each barcode in the acquired image, where the barcode units are black bars and white bars of a barcode;
a scaling module 1205, configured to perform, for each acquired image, width scaling processing on the initial barcode image of each barcode in the acquired image in parallel based on a preset minimum width and a width of each barcode unit in the initial barcode image of each barcode in the acquired image, so as to obtain a target barcode image of each barcode in the acquired image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width;
the first decoding module 1206 is configured to, for each acquired image, perform decoding processing on a target barcode image of each barcode in the acquired image in parallel to obtain information carried by each barcode in the acquired image.
Optionally, the calculating module 1204 may include:
the construction submodule is used for parallelly constructing bar code scanning lines of each bar code in the collected image according to pixel values of pixel points of a preset number of rows in an initial bar code image of each bar code in the collected image;
the filtering submodule is used for carrying out filtering processing on the bar code scanning lines of each bar code in the acquired image in parallel aiming at each acquired image to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the acquired image;
the determining submodule is used for determining the intersection point of the bar code scanning line of each bar code in the acquired image and the smooth scanning line corresponding to the bar code scanning line of each bar code in the acquired image as the boundary point of each bar code unit of each bar code in the acquired image in parallel aiming at each acquired image;
and the calculation sub-module is used for calculating the width of each bar code unit in the initial bar code image of each bar code in the acquired image in parallel according to the boundary point of each bar code unit of each bar code in the acquired image.
Optionally, the construction sub-module may be specifically configured to calculate, in parallel, a mean value of pixel values of pixel points in the same vertical direction in a preset number of lines of an initial barcode image of each barcode in each captured image, for each captured image; and combining the pixel value mean values corresponding to the initial bar code images of each bar code in the collected image in parallel according to the arrangement sequence of pixel points in the horizontal direction in the initial bar code images of each bar code in the collected image to obtain the bar code scanning lines of each bar code in the collected image.
Optionally, the filtering submodule may be specifically used for
Aiming at each collected image, performing Gaussian filtering processing on the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image; or for each collected image, carrying out mean value filtering processing on the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image.
Optionally, the scaling module 1205 may be specifically configured to calculate, for each acquired image, a ratio between a preset minimum width and a minimum value in widths of each barcode unit in an initial barcode image of each barcode in the acquired image in parallel, where the ratio is used as an adjustment ratio of the initial barcode image of each barcode in the acquired image; and according to the adjustment proportion of the initial bar code image of each bar code in the acquired image, carrying out width scaling treatment on the initial bar code image of each bar code in the acquired image in parallel to obtain a target bar code image of each bar code in the acquired image.
Optionally, the barcode recognition apparatus may further include:
and the first determining module is used for determining an abscissa value corresponding to the leftmost peak in the statistical histogram as the minimum value of the widths of the bar code units in the initial bar code image of each bar code in the acquired image in parallel according to the statistical histogram of the widths of the bar code units in the initial bar code image of each bar code in the acquired image.
Optionally, the barcode recognition apparatus may further include:
the second acquisition module is used for acquiring a plurality of bar code image sets, and the minimum widths of bar code units of bar codes in different bar code image sets are different;
the second decoding module is used for decoding each bar code image in the plurality of bar code image sets to obtain information carried by each bar code;
the statistical module is used for counting the decoding time length and/or the decoding success rate of the barcode images included in each barcode image set;
and the second determining module is used for determining the preset minimum width according to the decoding time length and/or the decoding success rate of the barcode images included in the plurality of barcode image sets and according to the rule with the minimum decoding time length and/or the rule with the highest decoding success rate.
By the device provided by the embodiment of the invention, the width of each bar code unit in the initial bar code image of each bar code in the acquired image can be calculated in parallel aiming at each acquired image, so that the width scaling processing is carried out on the initial bar code image of each bar code in the acquired image in parallel based on the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the acquired image to obtain the target bar code image of each bar code in the acquired image, and then the decoding processing is carried out on the target bar code image of each bar code in the acquired image in parallel to obtain the information carried by each bar code in the acquired image. By carrying out width scaling processing on each initial bar code image, the minimum value of the width of each bar code unit in each target bar code image obtained by scaling is unified, the size of the bar code in each target bar code image is unified to a certain extent, the problems that the bar code identification efficiency is low and the bar code identification difficulty is high due to the fact that the bar code in the collected image is too large or too small can be effectively solved, the bar code identification efficiency is effectively improved, and the bar code identification difficulty is reduced.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program. The computer program includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as devices and systems, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A method of bar code identification, the method comprising:
acquiring a plurality of acquired images, wherein each acquired image comprises at least one bar code;
aiming at each collected image, positioning at least one bar code included in the collected image to obtain a positioning result of each bar code;
for each collected image, intercepting each bar code from the collected image in parallel based on the positioning result of each bar code in the collected image to obtain an initial bar code image of each bar code in the collected image;
for each collected image, computing and processing the initial bar code image of each bar code in the collected image in parallel to obtain the width of each bar code unit in the initial bar code image of each bar code in the collected image, wherein the bar code units are black bars and white bars of the bar code;
for each collected image, based on a preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width;
and for each collected image, decoding the target bar code image of each bar code in the collected image in parallel to obtain the information carried by each bar code in the collected image.
2. The method according to claim 1, wherein the step of performing parallel calculation processing on the initial barcode image of each barcode in the captured image to obtain the width of each barcode unit in the initial barcode image of each barcode in the captured image comprises, for each captured image:
for each collected image, according to pixel values of pixel points of a preset number of rows in an initial bar code image of each bar code in the collected image, parallelly constructing bar code scanning lines of each bar code in the collected image;
for each collected image, carrying out filtering processing on the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image;
for each collected image, determining the intersection point of the bar code scanning line of each bar code in the collected image and the smooth scanning line corresponding to the bar code scanning line of each bar code in the collected image as the boundary point of each bar code unit of each bar code in the collected image in parallel;
and for each collected image, calculating the width of each bar code unit in the initial bar code image of each bar code in the collected image in parallel based on the boundary points of each bar code unit of each bar code in the collected image.
3. The method according to claim 2, wherein the step of constructing, for each captured image, the barcode scan line of each barcode in the captured image in parallel according to the pixel values of the pixel points of the preset number of rows in the initial barcode image of each barcode in the captured image comprises:
for each collected image, calculating the pixel value mean value of each pixel point in the same vertical direction in the preset number of lines of the initial bar code image of each bar code in the collected image in parallel;
and for each collected image, according to the arrangement sequence of pixel points in the horizontal direction in the initial bar code image of each bar code in the collected image, combining the pixel value mean values corresponding to the initial bar code image of each bar code in the collected image in parallel to obtain the bar code scanning line of each bar code in the collected image.
4. The method according to claim 2, wherein the step of performing parallel filtering processing on the barcode scanning line of each barcode in the captured image to obtain a smooth scanning line corresponding to the barcode scanning line of each barcode in the captured image for each captured image comprises:
aiming at each collected image, performing Gaussian filtering processing on the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image; or
And carrying out mean value filtering processing on the bar code scanning lines of each bar code in the acquired image in parallel aiming at each acquired image to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the acquired image.
5. The method according to claim 1, wherein the step of performing, for each captured image, a width scaling process on the initial barcode image of each barcode in the captured image in parallel based on a preset minimum width and a width of each barcode unit in the initial barcode image of each barcode in the captured image to obtain a target barcode image of each barcode in the captured image comprises:
for each collected image, calculating a ratio between a preset minimum width and a minimum value in the width of each bar code unit in the initial bar code image of each bar code in the collected image in parallel, and taking the ratio as an adjustment ratio of the initial bar code image of each bar code in the collected image;
and for each collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel according to the adjustment proportion of the initial bar code image of each bar code in the collected image to obtain a target bar code image of each bar code in the collected image.
6. The method according to claim 5, wherein after performing parallel calculation processing on the initial barcode image of each barcode in the captured image for each captured image to obtain the width of each barcode unit in the initial barcode image of each barcode in the captured image, the method further comprises:
and for each collected image, according to the statistical histogram of the widths of the bar code units in the initial bar code image of each bar code in the collected image, determining the abscissa value corresponding to the leftmost peak in the statistical histogram as the minimum value in the widths of the bar code units in the initial bar code image of each bar code in the collected image in parallel.
7. The method according to any one of claims 1-6, further comprising:
acquiring a plurality of bar code image sets, wherein the minimum widths of bar code units of bar codes in different bar code image sets are different;
decoding each bar code image in the plurality of bar code image sets to obtain information carried by each bar code;
counting the decoding time length and/or the decoding success rate of the bar code images included in each bar code image set;
and determining the preset minimum width according to the decoding time length and/or the decoding success rate of the barcode images included in the plurality of barcode image sets, and according to the rule with the minimum decoding time length and/or the rule with the highest decoding success rate.
8. A bar code identification device, the device comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of acquired images, and each acquired image comprises at least one bar code;
the positioning module is used for positioning at least one bar code included in each collected image to obtain a positioning result of each bar code in each collected image;
the intercepting module is used for intercepting each bar code in the collected image in parallel according to the positioning result of each bar code in the collected image so as to obtain an initial bar code image of each bar code in the collected image;
the calculation module is used for calculating and processing the initial bar code image of each bar code in the acquired image in parallel aiming at each acquired image to obtain the width of each bar code unit in the initial bar code image of each bar code in the acquired image, wherein the bar code units are black bars and white bars of the bar code;
the zooming module is used for carrying out width zooming processing on the initial bar code image of each bar code in the collected image in parallel according to the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image so as to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width;
and the first decoding module is used for decoding the target bar code image of each bar code in the acquired image in parallel aiming at each acquired image to obtain the information carried by each bar code in the acquired image.
9. A bar code identification system is characterized by comprising a bar code positioning module, a bar code preprocessing module, a bar code decoding module and a storage medium;
the bar code positioning module is used for acquiring a plurality of acquired images from the storage medium, and each acquired image comprises at least one bar code; positioning at least one bar code included in each collected image to obtain a positioning result of each bar code in each collected image; storing the positioning result of each bar code in each collected image to the storage medium;
the bar code preprocessing module is used for acquiring a positioning result of each bar code in each acquired image from the storage medium aiming at each acquired image; intercepting each bar code from the collected image in parallel based on the positioning result of each bar code in the collected image to obtain an initial bar code image of each bar code in the collected image; calculating the initial bar code image of each bar code in the collected image in parallel to obtain the width of each bar code unit in the initial bar code image of each bar code in the collected image, wherein the bar code units are black bars and white bars of the bar code; based on the preset minimum width and the width of each bar code unit in the initial bar code image of each bar code in the collected image, carrying out width scaling processing on the initial bar code image of each bar code in the collected image in parallel to obtain a target bar code image of each bar code in the collected image; the minimum value of the width of each bar code unit in the target bar code image is equal to the preset minimum width; storing the target bar code image of each bar code in the collected image to the storage medium;
the bar code decoding module is used for acquiring a target bar code image of each bar code in the acquired image from the storage medium aiming at each acquired image, and decoding the target bar code image of each bar code in the acquired image in parallel to obtain information carried by each bar code in the acquired image; and storing the information carried by each bar code in the acquired image to the storage medium.
10. The system according to claim 9, wherein the barcode preprocessing module is specifically configured to, for each captured image, construct, in parallel, a barcode scanning line of each barcode in the captured image according to pixel values of a preset number of rows of pixel points in an initial barcode image of each barcode in the captured image; filtering the bar code scanning lines of each bar code in the collected image in parallel to obtain smooth scanning lines corresponding to the bar code scanning lines of each bar code in the collected image; determining the intersection point of the bar code scanning line of each bar code in the acquired image and the smooth scanning line corresponding to the bar code scanning line of each bar code in the acquired image in parallel as the boundary point of each bar code unit of each bar code in the acquired image; and calculating the width of each bar code unit in the initial bar code image of each bar code in the collected image in parallel based on the boundary point of each bar code unit of each bar code in the collected image.
11. The system according to claim 9, wherein the barcode preprocessing module is specifically configured to, for each captured image, calculate, in parallel, a ratio between a preset minimum width and a minimum value of widths of barcode units in an initial barcode image of each barcode in the captured image, as an adjustment ratio of the initial barcode image of each barcode in the captured image; and according to the adjustment proportion of the initial bar code image of each bar code in the acquired image, carrying out width scaling treatment on the initial bar code image of each bar code in the acquired image in parallel to obtain a target bar code image of each bar code in the acquired image.
12. The system of claim 9, wherein the barcode recognition system further comprises an image acquisition module and an information output module;
the image acquisition module is used for acquiring an acquired image comprising at least one bar code; and storing the captured image to the storage medium;
the information output module is used for acquiring the information borne by each barcode in the acquired image from the storage medium aiming at each acquired image and outputting the information borne by each barcode in the acquired image.
13. The system of any of claims 9-12, wherein the processor of the barcode identification system is a multicore processor; the bar code positioning module comprises a plurality of bar code positioning threads;
the barcode positioning module is specifically configured to assign the multiple acquired images to the multiple barcode positioning threads respectively, and perform positioning processing in parallel by using the multiple barcode positioning threads; and/or
The bar code preprocessing module comprises a bar code preprocessing scheduling thread and a plurality of bar code preprocessing threads;
the barcode preprocessing module is specifically configured to, for each acquired image, acquire a positioning result of each barcode in the acquired image from the storage medium by using the barcode preprocessing scheduling thread, assign each acquired positioning result to the plurality of barcode preprocessing threads, and perform preprocessing in parallel by using the plurality of barcode preprocessing threads; and/or
The bar code decoding module comprises a bar code decoding scheduling thread and a plurality of bar code decoding threads;
the barcode decoding module is specifically configured to, for each acquired image, acquire a target barcode image of each barcode in the acquired image from the storage medium by using the barcode decoding scheduling thread, assign each acquired target barcode image to the multiple barcode decoding threads, and perform decoding processing in parallel by using the multiple barcode decoding threads.
CN202011206112.4A 2020-11-02 2020-11-02 Bar code identification method, device and system Active CN112329495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011206112.4A CN112329495B (en) 2020-11-02 2020-11-02 Bar code identification method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011206112.4A CN112329495B (en) 2020-11-02 2020-11-02 Bar code identification method, device and system

Publications (2)

Publication Number Publication Date
CN112329495A CN112329495A (en) 2021-02-05
CN112329495B true CN112329495B (en) 2022-08-05

Family

ID=74324609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011206112.4A Active CN112329495B (en) 2020-11-02 2020-11-02 Bar code identification method, device and system

Country Status (1)

Country Link
CN (1) CN112329495B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114239623B (en) * 2021-12-16 2023-06-23 华清科盛(北京)信息技术有限公司 Scanning method of loading luggage bar code pasting paper based on airport consignment
EP4287066B1 (en) * 2022-05-31 2024-05-15 Sick Ag Determining the module size of an optical code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512595A (en) * 2015-12-04 2016-04-20 北京奇虎科技有限公司 Barcode correcting method and device
CN107016318A (en) * 2017-03-21 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN109388999A (en) * 2017-08-11 2019-02-26 杭州海康威视数字技术股份有限公司 A kind of barcode recognition method and device
CN111797642A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Bar code identification method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5676183B2 (en) * 2010-09-03 2015-02-25 日本電産サンキョー株式会社 Bar code reading apparatus and bar code reading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512595A (en) * 2015-12-04 2016-04-20 北京奇虎科技有限公司 Barcode correcting method and device
CN107016318A (en) * 2017-03-21 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN109388999A (en) * 2017-08-11 2019-02-26 杭州海康威视数字技术股份有限公司 A kind of barcode recognition method and device
CN111797642A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Bar code identification method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于图像的二维条形码识别技术研究;赵群礼等;《合肥师范学院学报》;20101130;第28卷(第6期);全文 *

Also Published As

Publication number Publication date
CN112329495A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN109993040B (en) Text recognition method and device
WO2020199776A1 (en) Shelf vacancy rate calculation method and device, and storage medium
WO2019233264A1 (en) Image processing method, computer readable storage medium, and electronic device
CN112329495B (en) Bar code identification method, device and system
US20150016687A1 (en) Method, system and computer storage medium for face detection
CN109559344B (en) Frame detection method, device and storage medium
CN107862235B (en) Two-dimensional code position positioning method and device and terminal equipment
CN110009615B (en) Image corner detection method and detection device
CN115759148B (en) Image processing method, device, computer equipment and computer readable storage medium
CN109740403B (en) Method and device for reading one-dimensional bar code
CN111489344A (en) Method, system and related device for determining image definition
CN111767752B (en) Two-dimensional code identification method and device
CN115438682B (en) Method and device for determining decoding direction and decoding equipment
CN115424181A (en) Target object detection method and device
CN114998283A (en) Lens blocking object detection method and device
CN111753573B (en) Two-dimensional code image recognition method and device, electronic equipment and readable storage medium
CN111767751B (en) Two-dimensional code image recognition method and device
CN114240924A (en) Power grid equipment quality evaluation method based on digitization technology
CN114611540A (en) One-dimensional code image area identification method based on digital image processing and electronic equipment
CN116842977B (en) Bar code identification method
CN114095683B (en) Video noise estimation method, device, equipment and storage medium based on difference blocks
CN112101059B (en) Bar code positioning method, bar code positioning device, terminal equipment and storage medium
CN117094994B (en) Sliding window parameter determining method, image identifying method and device
CN113689411B (en) Counting method, device and storage medium based on visual recognition
CN110135217B (en) Method and apparatus for recognizing characters within a table in an image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant