CN113988240B - Decoding method of reader-writer, reader-writer and storage medium - Google Patents

Decoding method of reader-writer, reader-writer and storage medium Download PDF

Info

Publication number
CN113988240B
CN113988240B CN202111607781.7A CN202111607781A CN113988240B CN 113988240 B CN113988240 B CN 113988240B CN 202111607781 A CN202111607781 A CN 202111607781A CN 113988240 B CN113988240 B CN 113988240B
Authority
CN
China
Prior art keywords
image
frame
laser
camera
frame image
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
CN202111607781.7A
Other languages
Chinese (zh)
Other versions
CN113988240A (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.)
Shenzhen Chengcheng Information Co ltd
Original Assignee
Chainway Information 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 Chainway Information Technology Co ltd filed Critical Chainway Information Technology Co ltd
Priority to CN202111607781.7A priority Critical patent/CN113988240B/en
Publication of CN113988240A publication Critical patent/CN113988240A/en
Application granted granted Critical
Publication of CN113988240B publication Critical patent/CN113988240B/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
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a decoding method of a reader-writer, the reader-writer and a storage medium. The decoding method of the reader-writer comprises the following steps: shooting a first frame of image through a camera, wherein when the camera shoots the exposure moment of the first frame of image, a laser sighting device is started, so that the first frame of image comprises a laser central point emitted by the laser sighting device; shooting a second frame of image through the camera, wherein when the camera shoots the exposure time of the second frame of image, the laser sighting device is closed so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is less than or equal to a set time threshold; determining a first position of a laser center point in a first frame image, and determining a corresponding second position of the first position in a second frame image; and acquiring the bar code at the second position in the second frame image, and analyzing the bar code at the second position.

Description

Decoding method of reader-writer, reader-writer and storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to a decoding method of a reader-writer, the reader-writer and a storage medium.
Background
Radio Frequency Identification (RFID) is an automatic Identification technology and is a key technology for constructing the internet of things. The RFID system mainly comprises a reader-writer and a transponder. The transponder mainly comprises an antenna, a coupling element and a chip, generally, tags are used as the transponder, each tag has a unique electronic product code, and the tags are attached to an object to identify a target object. The reader-writer, or reader, mainly consists of an antenna, a coupling element and a chip, is a device for reading and/or writing label information, and can be designed as a mobile handheld device or a fixed device.
The application of RFID technology in various fields, especially in the fields of logistics, retail, clothing, etc., is becoming more and more widespread, but at the same time the demand is becoming higher, especially for RFID on handheld devices, which requires a read-miss-free, continuous, efficient inventory of an indefinite number of tags, such as single tags, a small number of tags, or multiple tags, or even a large number of tags.
In some practical application scenarios, it is not enough that the reader/writer has only the function of identifying the tag. Some commodities adopt labels as identification carriers, and some commodities adopt bar codes as identification carriers. Therefore, the application of a reader/writer capable of only recognizing a tag in some scenarios has a certain limitation.
Disclosure of Invention
The embodiment of the application provides a decoding method of a reader-writer, the reader-writer and a storage medium. The reader-writer can identify the bar code while identifying the label, so that the application scene of the reader-writer can be enlarged, and the use efficiency of the reader-writer is improved.
In view of this, a first aspect of the present application provides a method for decoding a reader/writer, which is applied to a reader/writer, where the reader/writer includes a scanning module, and a camera and a laser sight are sequentially arranged in the scanning module, and the method for decoding the reader/writer includes: shooting a first frame of image through the camera, wherein when the camera shoots the exposure moment of the first frame of image, the laser sighting device is started, so that the first frame of image comprises a laser central point emitted by the laser sighting device; shooting a second frame of image through the camera, wherein when the exposure time of the second frame of image shot by the camera is shorter than or equal to a set time threshold, the laser sighting device is closed so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is smaller than or equal to the set time threshold; determining a first position of the laser center point in the first frame image, and determining a corresponding second position of the first position in the second frame image; and acquiring the bar code at the second position in the second frame image, and analyzing the bar code at the second position.
In an application scenario of an industrial-grade reader, there may be a large number of barcodes to read. While there may be two or more barcodes in a frame of image acquired, only one specific barcode can be resolved at a time. When aiming at multiple barcodes, it is a problem to choose which barcode to resolve. In some civil terminal devices, when a plurality of barcodes are scanned through some code scanning software, a preview interface can be provided through the code scanning software, and the scanned barcodes are all identified. And then, in the preview interface, acquiring a bar code determined by clicking of the user in the plurality of bar codes, and further analyzing the bar code selected by the user. However, the decoding by adopting such a scheme in the industrial reader-writer tends to reduce the decoding efficiency. If each frame of image requires the operator to click and confirm a specific one of the barcodes one by one, the efficiency of scanning and decoding is greatly reduced.
In the decoding method of the reader-writer provided by the application, the scanning module of the reader-writer comprises a camera and a laser sighting device. The bar code which the user wants to decode can be aimed at through the laser aiming device, so that the first frame of the shot image contains the central point of the laser emitted by the laser aiming device. However, since the existence of the laser center point may affect the subsequent decoding, the first frame image having the laser center point may not be directly used for decoding. Therefore, a second frame image with the time difference smaller than or equal to the set time threshold value is shot by the camera. And the second frame image does not have a laser center point. And confirming the position of the bar code in the second frame image according to the position of the laser central point in the first frame image, so that the bar code at the specific position in the second frame image can be analyzed. By the method, the position of the bar code to be analyzed in the second frame image can be determined, and meanwhile, the influence of the central point of the laser can be avoided, so that the purpose of analyzing the bar code to be decoded can be realized. The application scene of the industrial reader-writer can be enlarged, the reader-writer can not only identify the label, but also realize the quick scanning and reading of the bar code.
Optionally, with reference to the first aspect, in a possible implementation manner, before the analyzing the barcode at the second position, the decoding method of the reader further includes: shooting a third frame of image through the camera, wherein when the exposure time of the third frame of image shot by the camera is up, the laser sight is started so that the third frame of image contains a laser central point, and the time difference between shooting the second frame of image and shooting the third frame of image by the camera is less than or equal to a set time threshold; determining a third position of the laser center point in the third frame image, and judging whether the difference between the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image is within a set error range; the analyzing the barcode at the second position specifically includes: when the difference between the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image is determined to be within a set error range, analyzing the bar code at the second position.
It should be noted that if the barcode in the second frame image is located only by the first position of the center point of the laser in the first frame image, some inaccuracy may be caused. For example, in a time interval between the capturing of the first frame image and the capturing of the second frame image, a shake of a hand of an operator holding the reader/writer may occur, so that the barcode does not exist at the second position corresponding to the first position, or the barcode aimed at the second position is not the barcode aimed at the laser center point at the first position. There will still be some errors. Therefore, the barcode at the second position is analyzed only when the difference between the first position and the third position is determined to be within the set error range. Therefore, the middle image can be decoded under the condition that the difference between the laser central points in the previous image and the next image is small, and the decoding accuracy can be ensured.
Optionally, with reference to the first aspect, in a possible implementation manner, the method further includes: and when the difference between the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image is determined to exceed the set error range, the analysis of the bar code at the second position is cancelled. If the difference between the first position and the third position is determined to exceed the set error range, the bar code analysis of the second position is cancelled, so that other bar codes cannot be analyzed, and the decoding accuracy can be improved.
Optionally, with reference to the first aspect, in a possible implementation manner, before the analyzing the barcode at the second position, the decoding method of the reader further includes: shooting a third frame of image through the camera, wherein when the exposure time of the third frame of image shot by the camera is up, the laser sight is started so that the third frame of image contains a laser central point, and the time difference between shooting the second frame of image and shooting the third frame of image by the camera is less than or equal to a set time threshold; determining a third position of the laser central point in the third frame of image, and judging whether the first position of the laser central point in the first frame of image and the third position of the laser central point in the third frame of image are on the same bar code; the analyzing the barcode at the second position specifically includes: when the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are determined to be located on the same bar code, the bar code located at the second position is analyzed.
Determining whether the first location and the third location fall on the same barcode. And only when the first position and the third position are located on the same bar code, the bar code at the second position is analyzed. The time difference between the shooting of the first frame image and the shooting of the second frame image is less than or equal to a set time threshold. And the time difference between the shooting of the second frame image and the shooting of the third frame image is smaller than or equal to a set time threshold, if the first position and the third position are determined to fall on the same bar code, the same bar code can also be determined when the bar code at the second position and the bar code at the first position are located, the bar code at the second position is analyzed, and the decoding accuracy can be ensured.
Optionally, with reference to the first aspect, in a possible implementation manner, the method further includes: and when the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are determined not to fall on the same bar code, canceling the analysis of the bar code at the second position. And if the first position and the third position are determined not to fall on the same bar code, canceling the bar code analysis of the second position. Therefore, other bar codes cannot be analyzed, and the decoding accuracy can be improved.
Optionally, with reference to the first aspect, in a possible implementation manner, before the capturing of the first frame image by the camera, the method further includes: determining that a laser center point emitted by the laser sight is aimed at a barcode such that the laser center point falls on the barcode in the first frame of image. This ensures that the laser center point is aimed at the barcode in the first frame of images. If the reader-writer is not moved, the first position corresponding to the second position in the second frame image can be ensured to be just provided with the bar code, so that the bar code can be analyzed conveniently.
Optionally, with reference to the first aspect, in a possible implementation manner, the determining the first position of the laser central point in the first frame image specifically includes: in the first frame image, acquiring brightness values of pixel points of a preset number above and below a preset horizontal line by using the center of the preset horizontal line, and acquiring a pixel matrix formed by the pixel points of which the brightness values are greater than a preset brightness threshold; and determining the first position of the laser central point according to a pixel matrix formed by the pixel points with the brightness values larger than a preset brightness threshold. Acquiring the brightness values of pixel points of which the number is set up above and below the set horizontal line by taking the set horizontal line as a center, and acquiring a pixel matrix formed by the pixel points of which the brightness values are greater than a preset brightness threshold; and determining the first position of the laser central point according to a pixel matrix formed by the pixel points with the brightness values larger than a preset brightness threshold. Compared with the comparison from the first pixel point to the last pixel point in the first frame image, the number of the compared pixel points can be reduced, the comparison efficiency is improved, the time can be saved, and the first position can be determined at the highest speed.
Optionally, with reference to the first aspect, in a possible implementation manner, the method further includes: determining the brightness value of the first frame image, wherein the brightness value of the laser central point in the first frame image is within a preset brightness value range; before the third frame of image is shot by the camera, the method further comprises: and dynamically adjusting shooting parameters of the camera according to the brightness value of the first frame image and a preset brightness gain value, so that the brightness value of the laser center point in the third frame image is within the preset brightness value range. Therefore, the brightness value of the laser central point in the first frame image and the third frame image which are shot with the laser central point are within the range of the preset brightness value. So that the laser central point can be accurately distinguished from the first frame image and the third frame image. The first position and the third position are favorably positioned.
The second aspect of the present application provides a reader-writer, which includes a scanning module and a processor, wherein in the scanning module, a camera and a laser sight are sequentially arranged, and the camera is used for shooting a first frame of image, wherein when the camera shoots the first frame of image, the laser sight is turned on, so that the first frame of image includes a laser center point sent by the laser sight; the camera is further used for shooting a second frame of image, when the camera shoots the second frame of image, the laser sight is closed, so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is smaller than or equal to a set time threshold; the processor is used for determining a first position of the laser center point in the first frame image and determining a corresponding second position of the first position in the second frame image; the processor is further configured to acquire the barcode at the second position in the second frame image, and analyze the barcode at the second position.
In this kind of read write line that this application provided, the scanning module contains camera and laser sight. The bar code which the user wants to decode can be aimed at through the laser aiming device, so that the first frame of the shot image contains the central point of the laser emitted by the laser aiming device. However, since the existence of the laser center point may affect the subsequent decoding, the first frame image having the laser center point may not be directly used for decoding. Therefore, a second frame image with the time difference smaller than or equal to the set time threshold value is shot by the camera. And the second frame image does not have a laser center point. And confirming the position of the bar code in the second frame image according to the position of the laser central point in the first frame image, so that the bar code at the specific position in the second frame image can be analyzed. By the method, the position of the bar code to be analyzed in the second frame image can be determined, and meanwhile, the influence of the central point of the laser can be avoided, so that the purpose of analyzing the bar code to be decoded can be realized. The application scene of the industrial reader-writer can be enlarged, the reader-writer can not only identify the label, but also realize the quick scanning and reading of the bar code.
Optionally, with reference to the second aspect, in a possible implementation manner, the camera is further configured to capture a third frame of image, where when the camera captures the third frame of image, the laser sight is turned on, so that the third frame of image includes a laser central point, and a time difference between capturing the second frame of image and capturing the third frame of image by the camera is less than or equal to a set time threshold; the processor is further configured to determine a third position of the laser center point in the third frame of image, and determine whether a difference between a first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image is within a set error range; the processor is further configured to analyze the barcode at the second position when it is determined that a difference between a first position of the laser center point in the first frame image and a third position of the laser center point in the third frame image is within a set error range.
Optionally, with reference to the second aspect, in a possible implementation manner, the processor is further configured to cancel barcode analysis on the second position when it is determined that a difference between a first position of the laser center point in the first frame image and a third position of the laser center point in the third frame image exceeds the set error range.
Optionally, with reference to the second aspect, in a possible implementation manner, the camera is further configured to capture a third frame of image, where when the camera captures the third frame of image, the laser sight is turned on, so that the third frame of image includes a laser central point, and a time difference between capturing the second frame of image and capturing the third frame of image by the camera is less than or equal to a set time threshold; the processor is further configured to determine a third position of the laser center point in the third frame of image, and determine whether the first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image are located on the same barcode; the processor is further configured to analyze the barcode located at the second position when it is determined that the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image are located on the same barcode.
Optionally, with reference to the second aspect, in a possible implementation manner, the processor is further configured to cancel barcode analysis on the second position when it is determined that the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image do not fall on the same barcode.
Optionally, with reference to the second aspect, in a possible implementation manner, the processor is further configured to determine that a center point of laser light emitted by the laser sight is aimed at a barcode, so that the center point of laser light falls on the barcode in the first frame of image.
Optionally, with reference to the second aspect, in a possible implementation manner, the processor is further configured to obtain, in the first frame image, brightness values of pixels of a preset number above and below a preset horizontal line in a center of the preset horizontal line, and obtain a pixel matrix formed by pixels of which the brightness values are greater than a preset brightness threshold; and determining a pixel matrix formed by the pixel points with the brightness values larger than a preset brightness threshold value as a first position of the laser central point.
Optionally, with reference to the second aspect, in a possible implementation manner, the processor is further configured to determine a brightness value of the first frame image; and dynamically adjusting shooting parameters of the camera according to the brightness value of the first frame image and a preset brightness gain value, so that the brightness value of the laser center point in the third frame image and the brightness value of the laser center point in the first frame image are both within a preset brightness value range.
A third aspect of the present application provides a reader/writer, which includes a processor, a memory, and a communication interface, where the memory stores program instructions, and when the program instructions are executed by the processor, the method for decoding the reader/writer as described in any one of the possible implementation manners of the first aspect to the first aspect of the present application is implemented.
A fourth aspect of the present application provides a computer-readable storage medium, which stores program instructions that, when executed on a computer, cause the computer to perform a decoding method of a reader/writer as described in any one of possible implementation manners of the first aspect to the first aspect of the present application.
The application provides a decoding method of a reader-writer, the reader-writer and a storage medium. The decoding method of the reader-writer is applied to the reader-writer, the reader-writer comprises a scanning module, a camera and a laser sight are sequentially arranged in the scanning module, and the decoding method of the reader-writer comprises the following steps: shooting a first frame of image through the camera, wherein when the camera shoots the first frame of image, the laser sight is started, so that the first frame of image comprises a laser central point emitted by the laser sight; shooting a second frame of image through the camera, wherein when the exposure time of the second frame of image shot by the camera is shorter than or equal to a set time threshold, the laser sighting device is closed so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is smaller than or equal to the set time threshold; determining a first position of the laser center point in the first frame image, and determining a corresponding second position of the first position in the second frame image; and acquiring the bar code at the second position in the second frame image, and analyzing the bar code at the second position.
In an application scenario of an industrial-grade reader, there may be a large number of barcodes to read. While there may be two or more barcodes in a frame of image acquired, only one specific barcode can be resolved at a time. When aiming at multiple barcodes, it is a problem to choose which barcode to resolve. In some civil terminal devices, when a plurality of barcodes are scanned through some code scanning software, a preview interface can be provided through the code scanning software, and the scanned barcodes are all identified. And then, in the preview interface, acquiring a bar code determined by clicking of the user in the plurality of bar codes, and further analyzing the bar code selected by the user. However, the decoding by adopting such a scheme in the industrial reader-writer tends to reduce the decoding efficiency. If each frame of image needs the operator to click and confirm one by one on a specific bar code in the plurality of bar codes needing to be read, the efficiency of scanning and decoding is greatly reduced.
In the decoding method of the reader-writer provided by the application, the scanning module of the reader-writer comprises a camera and a laser sighting device. The bar code which the user wants to decode can be aimed at through the laser aiming device, so that the first frame of the shot image contains the central point of the laser emitted by the laser aiming device. However, since the existence of the laser center point may affect the subsequent decoding, the first frame image having the laser center point may not be directly used for decoding. Therefore, a second frame image with the time difference smaller than or equal to the set time threshold value is shot by the camera. And the second frame image does not have a laser center point. And confirming the position of the bar code in the second frame image according to the position of the laser central point in the first frame image, so that the bar code at the specific position in the second frame image can be analyzed. By the method, the position of the bar code to be analyzed in the second frame image can be determined, and the influence of the central point of the laser can be avoided, so that the purpose of analyzing the bar code to be decoded can be realized. The application scene of the industrial reader-writer can be enlarged, the reader-writer can not only identify labels, but also realize quick scanning and reading of bar codes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic view of a preview interface for a civil terminal device to scan a plurality of barcodes according to an embodiment of the present application;
fig. 1b is a schematic view of an image captured when a reader scans a plurality of barcodes according to an embodiment of the present application;
fig. 2 is a schematic diagram of a scan module according to an embodiment of the present disclosure;
fig. 3a is a schematic structural diagram of a reader/writer according to an embodiment of the present application;
fig. 3b is a schematic structural diagram of a reader/writer according to an embodiment of the present application;
fig. 3c is a schematic structural diagram of a reader/writer according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a decoding method of a reader/writer according to an embodiment of the present application;
fig. 5 is a schematic view illustrating a field of view of a scanning module according to an embodiment of the present disclosure;
fig. 6 is an image schematic diagram of a three-frame image superposition state provided in an embodiment of the present application;
fig. 7 is a flowchart illustrating a decoding method of a reader/writer according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a decoding method of a reader/writer according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a functional module of a reader/writer according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a reader/writer according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The term "and/or" appearing in the present application may be an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this application generally indicates that the former and latter related objects are in an "or" relationship.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
The label herein refers to an RFID label, a radio frequency label, or an electronic label, and is simply referred to as a label (Tag). The Reader/writer, also referred to herein as Reader, may be a UHF Reader/writer. The tag inventory system herein is an RFID system. The technology of the embodiment of the application can be used in various fields such as logistics, retail and clothing.
A one-dimensional code herein refers to a bar code composed of black and white bars having different widths according to different encoding rules. In the one-dimensional code, only the width carries information, different widths represent different coded values, and the height does not carry information. After the code scanning equipment acquires the picture information of the one-dimensional code, the barcode content can be restored by calculating the width of the black and white bars and contrasting the coding rule.
The two-dimensional code herein is a pattern which is distributed on a plane (two-dimensional direction) by using a certain specific geometric figure according to a certain rule, is black and white, and records data symbol information. The concept of '0' and '1' bit stream forming the internal logic basis of computer is skillfully utilized in code making, a plurality of geometric shapes corresponding to binary system are used for representing character numerical value information, and the information is automatically read through an image input device or an optoelectronic scanning device so as to realize automatic information processing.
In some practical application scenarios, it is not enough that the reader/writer has only the function of identifying the tag. With the more and more extensive application of barcodes such as one-dimensional codes and two-dimensional codes, the barcodes are visible everywhere on a large number of products and packages. Therefore, the application of a reader/writer capable of only recognizing a tag in some scenarios has a certain limitation. A reader-writer capable of simultaneously recognizing a tag and a bar code has come to work.
In daily life, as well as in industrial application scenarios, there may be a large number of barcodes that need to be read and parsed. Therefore, there may be two or more barcodes in a frame of acquired image, whereas current devices can only resolve one specific barcode at a time. Therefore, when aiming at multiple barcodes, it is a problem how to choose which barcode to parse.
Referring to fig. 1a, fig. 1a is a schematic view of a preview interface provided when a plurality of barcodes are scanned by some barcode scanning software in a consumer-oriented civil terminal device provided by the present application.
When the civil terminal device scans a plurality of barcodes, a preview interface can be provided through code scanning software, and the scanned barcodes are all identified, as shown in fig. 1a, each scanned barcode is identified with an arrow in the preview interface. The user can select to click one of the arrows on the preview interface according to requirements. And the terminal equipment analyzes the corresponding bar code according to a specific arrow clicked by the user. The method can accurately analyze the bar code selected by the user.
However, the industrial reader/writer needs to decode quickly and efficiently, and if each frame of image needs an operator to click and confirm a specific bar code in a plurality of bar codes to be analyzed one by one, the efficiency of scanning and decoding is greatly reduced. Therefore, in the industrial reader/writer, a preview interface is not provided. Referring to fig. 1b, fig. 1b provides a schematic view of an image captured when a reader scans a plurality of barcodes. The reader also captures an image of the presence of multiple barcodes. However, there is a problem in how to select which of a plurality of scanned barcodes is to be analyzed without providing a preview interface and without confirmation by the operator, and how to determine that the analyzed barcode is the barcode that the operator wants to analyze.
Therefore, the present application provides a decoding method for a reader/writer. The decoding method of the reader-writer is applied to the reader-writer. Wherein the reader/writer comprises a scanning module. Referring to fig. 2, fig. 2 provides a schematic structural diagram of a scan module. The scanning module 10 includes a fill-in light 11, a camera 12 and a laser sight 13.
The fill light 11 is optional and unnecessary. In some cases, the fill light 11 may not be provided, and is not limited herein. The light supplement lamp 11 is used for supplementing light when the ambient light is insufficient, and the switch and the brightness of the light supplement lamp 11 can be controlled by the controller. The camera 12 includes a fixed focus lens for collecting barcode pictures and is controlled by a controller. The resolution of the camera 12 is not limited. For example, the resolution of the camera 12 may be fixedly set to 1280 × 800. The laser sighting device 13 is used for emitting cross laser and is controlled by the controller to assist in sighting.
The scan module 10 can be disposed at various positions of the reader/writer, and is not limited herein. For example, referring to fig. 3a, the scan module 10 can be disposed on the top of the reader/writer 20-1; referring to fig. 3b and fig. 3c, the scan module 10 may be disposed on the back of the reader/writer 20-2 and the reader/writer 20-3, wherein the shape of the reader/writer may be the shape of fig. 3a, or the shape of fig. 3b or fig. 3c, which is not limited in this application.
In view of the above problems, the present application provides a decoding method for a reader/writer. The decoding method of the reader-writer can enable the reader-writer to identify the bar code while identifying the label, can expand application scenes of the reader-writer and improve the use efficiency of the reader-writer. On the other hand, the bar code which the operator wants to analyze can be analyzed on the premise of not providing a preview interface. Referring to fig. 4, the decoding method of the reader may include:
and S110, shooting a first frame image through a camera.
Shooting a first frame of image through a camera, wherein when the camera shoots the exposure moment of the first frame of image, the laser sight is started, so that the first frame of image comprises a laser central point emitted by the laser sight. It should be noted that the laser center point is a central intersection point of the transverse laser and the longitudinal laser in the cross laser emitted by the laser sight. It will be appreciated that the exposure time for taking an image may be 1-2 milliseconds.
It should be noted that, due to the high brightness of the cross laser, the overexposure of the first frame image may affect the decoding. The cross laser is contained in the first frame image and cannot be directly used for decoding.
It will be appreciated that the first frame of image is for the operator to aim the bar code through the cross laser. If the cross laser does not aim at the bar code, the camera is not adopted to shoot the first frame image. Therefore, before the first frame image is captured by the camera, the method further comprises: determining that a center point of laser light emitted by the laser sight is aimed at the barcode such that the center point of laser light falls on the barcode in the first frame of image. This allows the barcode aimed at the laser center point of the first frame image to exist at the corresponding second location in the second frame image.
And S120, shooting a second frame image through the camera.
And shooting a second frame of image through the camera, wherein when the camera shoots the exposure moment of the second frame of image, the laser sighting device is closed, so that the second frame of image does not contain the laser central point. The time difference between the shooting of the first frame image and the shooting of the second frame image by the camera is less than or equal to a set time threshold. The set time threshold may be preset, for example, 15 ms, and is not limited herein.
The second frame image does not contain the laser center point and can be used for decoding. But the second frame image may contain a plurality of barcodes. If the second frame image is directly decoded, it is impossible to determine which barcode is specifically decoded, and it is also impossible to determine the specific position of the barcode in the second frame image.
S130, determining a first position of a laser center point in the first frame image, and determining a corresponding second position of the first position in the second frame image.
And determining a first position of the laser center point in the first frame image, and determining a corresponding second position of the first position in the second frame image. That is, the position of the barcode in the second frame image is located by the position of the laser point in the first frame image. And the time difference between the shooting of the first frame image and the shooting of the second frame image by the camera is less than or equal to a set time threshold, so that the first frame image and the second frame image can be kept consistent to a certain extent, and the bar code aimed at the first position of the laser central point in the first frame image is still displayed on the second position in the second frame image.
It should be noted that the code scanning distance of the scanning module in the reader-writer is relatively wide, and the code scanning distance is different from several centimeters to tens of centimeters, but the size of the image shot by the camera in the scanning module is determined. Referring to fig. 2, in the code scanning module 10, the camera 12 is spaced from the laser sight 13. The camera 12 is located at the center of the code scanning module 10, and the laser sight 13 is located at the edge of the code scanning module 10. Therefore, the center point of the laser emitted from the laser sight 13 is not actually at the center position of the image captured by the camera 12, but moves horizontally in the captured image with the distance of the code scanning distance.
Specifically, the visible range of the camera in the scanning module is as shown in fig. 5, and the visible range of the camera is located between the left visible range line of the camera and the right visible range line of the camera. The distance between the camera and the laser sighting device is relatively fixed. The distances from the laser aiming line to the left visible range line of the camera are different in the first imaging range, the second imaging range and the third imaging range, and the proportion of the distance between the laser aiming line and the left visible range line of the camera to the whole field angle is larger and larger along with the increase of the imaging range.
Correspondingly, please refer to fig. 6, fig. 6 is a schematic image diagram of a superimposed state of three frames of images respectively captured in the first imaging range, the second imaging range, and the third imaging range. In fig. 6, the first cross laser, the second cross laser, and the third cross laser correspond to the first imaging range, the second imaging range, and the third imaging range in fig. 5, respectively. It can be seen that the first cross laser, the second cross laser and the third cross laser are arranged from left to right in sequence and are closer to the center of the image. And the first cross laser, the second cross laser and the third cross laser are sequentially changed from small to large.
Therefore, the farther the scanning module is away from the barcode, the larger the imaging range of the camera is, and the closer the laser center point is to the center position of the image. Conversely, the closer the scanning module is to the barcode, the smaller the imaging range of the camera is, and the more the laser center point deviates from the center position of the image. In short, the position of the center point of the laser in the image will vary with the distance between the scanning module and the barcode.
Therefore, if the distance between the scanning module and the barcode is greatly changed when the first frame image and the second frame image are captured, the laser center point in the first frame image may not correspond to the barcode at the second position in the second frame image, or the barcode at the second position is not the laser center point in the first frame image. However, the reader provided by the application is held by an operator, generally speaking, when the operator holds the reader to scan codes in a short time, the distance between the camera in the reader and the bar code will not change suddenly. Therefore, in the present application, the difference between the time when the camera takes the first frame image and the time when the camera takes the second frame image is less than or equal to the set time threshold value can ensure that the first frame image and the second frame image are consistent, so that the barcode aimed at the first position of the laser center point in the first frame image is still displayed at the second position in the second frame image.
Further, referring to fig. 5 and 6, since the positions of the camera and the laser sight are relatively fixed and on a horizontal line in the reader-writer, the camera takes an image while centering on the camera in the vertical direction. Therefore, in the image shot by the camera, the transverse laser lines in the cross laser are all positioned on a preset horizontal line which is the central line of the image shot by the camera.
For example, the resolution of an image output by a camera in the present application is 1280 × 800, and then the center points of the laser light captured by the camera are all on a straight line with the bottom left corner as the origin and the ordinate of the straight line being 400 pixels in the image. And the abscissa of the laser center point is in the range of 0 to 640.
Therefore, determining the first position of the laser center point in the first frame image may specifically include: in a first frame image, acquiring the brightness values of pixel points of which the number is set up from top to bottom of a preset horizontal line by using the center of the preset horizontal line, and acquiring a pixel matrix formed by the pixel points of which the brightness values are greater than a preset brightness threshold; and determining the first position of the laser central point according to a pixel matrix formed by the pixel points with the brightness values larger than a preset brightness threshold. Compared with the method for searching the laser central point from the first frame image from the beginning to the end, the method can reduce the workload and improve the searching efficiency.
Specifically, after a pixel matrix formed by pixel points with brightness values larger than a preset brightness threshold is determined in the first frame of image, the pixel matrix formed by the pixel points with the brightness values larger than the preset brightness threshold is determined as the first position of the laser center point. The first position may be a set of coordinates. For example, the ordinate is 400 and the abscissa is all pixels from 500 to 510. Then the second position in the second frame image is determined to be in a coordinate system with the lower left corner of the second frame image as the origin, the ordinate is 400, and the abscissa is all the pixel points from 500 to 510.
The corresponding position of the first position in the second frame image is the second position. Specifically, the coordinate set corresponding to the first position is directly transferred to the coordinate set in the rectangular coordinate system with the lower left corner of the image as the origin in the second frame image, so that the second position can be determined.
And S140, acquiring the bar code at the second position in the second frame image, and analyzing the bar code at the second position.
And acquiring the bar code at a second position in the second frame image, and analyzing the bar code at the second position.
In conclusion, the decoding method of the reader-writer provided by the application does not need to provide a preview interface, and can be suitable for industrial application level quick code scanning decoding. And the scanning decoding and decoding efficiency is improved. And the position of the bar code in the second frame image is confirmed through the position of the laser central point in the first frame image, so that the bar code at the specific position in the second frame image can be analyzed. By the method, the position of the bar code to be analyzed in the second frame image can be determined, and meanwhile, the influence of the central point of the laser can be avoided, so that the purpose of analyzing the bar code to be decoded can be realized. The application scene of the industrial reader-writer can be enlarged, the reader-writer can not only identify the label, but also realize the quick scanning and reading of the bar code.
In the decoding method of the reader/writer provided by the present application, in step S140, after the second frame image is acquired, the barcode at the second position in the second frame image is directly analyzed. In order to reduce the larger deviation between the second frame image and the first frame image, the barcode at the second position in the second frame image is still analyzed. Therefore, the present application also provides another embodiment of a decoding method of a reader/writer, please refer to fig. 7, the decoding method of the reader/writer includes:
and S210, shooting a first frame image through a camera.
Please refer to the foregoing step S110 for understanding, which is not described herein again.
And S220, shooting a second frame image through the camera.
Please refer to the foregoing step S120 for understanding, which is not described herein again.
And S230, shooting a third frame image through a camera.
And shooting a third frame of image through a camera, and starting the laser sighting device at the exposure time of shooting the third frame of image so that the third frame of image contains a laser central point. And the time difference between the shooting of the second frame image and the shooting of the third frame image by the camera is less than or equal to a set time threshold. The set time threshold is as described above in step S120.
And determining a third position of the laser central point in the shot third frame image. The method step of determining the third position of the laser center point from the third frame image can be seen in step S130, and is understood from determining the first position of the laser center point from the first frame image, which is not repeatedly described here.
The value is supplemented in order to better locate the first and third positions from the first and third frame images. It is necessary to ensure that the luminance values of the first frame image and the third frame image are within a preset luminance value range.
Therefore, after determining the brightness value of the first frame image and before capturing a third frame image by the camera, the method may further include: and dynamically adjusting shooting parameters of the camera according to the brightness value of the first frame image and a preset brightness gain value, so that the brightness value of the laser center point in the third frame image is within a preset brightness value range. Therefore, the first position and the third position can be positioned conveniently, and the accuracy of analyzing the bar code in the second frame image can be improved.
S240, judging whether the difference between the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image is within a set error range.
And judging whether the difference between the first position of the laser central point in the first frame image and the third position in the third frame image is within a set error range. Specifically, the set error range may be preset, for example, 10 pixels. The first position and the third position can be understood by comparing the two images by superimposing them, referring to the schematic diagram of the three-frame image superimposing state shown in fig. 6. The difference between the first position and the third position may be a difference between a center of the pixel matrix corresponding to the first position and a center of the pixel matrix corresponding to the third position.
When the difference between the first position in the first frame image and the third position in the third frame image is within the set error range, step S250 is performed. If the difference between the first position in the first frame image and the third position in the third frame image is outside the set error range, step S260 is performed.
When the difference between the first position in the first frame image and the third position in the third frame image is within the set error range, it can be considered that the position of the laser center point of the camera is basically unchanged in the time of shooting the first frame image and the third frame image, and then the decoding accuracy can be ensured by selecting the second frame image between the first frame image and the third frame image to perform the decoding operation.
S250, determining a first position of a laser center point in the first frame image, determining a second position of the first position corresponding to the second frame image, and analyzing the bar code at the second position.
When the difference between the first position in the first frame image and the third position in the third frame image is within the set error range. Determining a first position of a laser center point in the first frame image, determining a second position corresponding to the first position in the second frame image, and analyzing the bar code at the second position. Please refer to the foregoing steps S130 and S140 for understanding, which are not described herein again.
And S260, canceling the analysis of the bar code at the second position.
And if the difference between the first position in the first frame image and the third position in the third frame image is out of the set error range, canceling the analysis of the bar code at the second position. Since the difference between the first position and the third position is large, if the barcode at the second position is analyzed, a wrong barcode may be resolved. Therefore, the decoding accuracy can be improved by directly canceling the analysis of the bar code at the second position.
It should be noted that, while the analysis of the barcode at the second position is cancelled, the user may be prompted on the interface of the reader/writer or through the buzzer of the reader/writer to notify the user that there is a missing barcode, so that the user may scan the missing barcode again.
Referring to fig. 8, in another specific implementation manner, the decoding method of the reader further includes:
and S310, shooting a first frame image through a camera.
Please refer to the foregoing step S110 for understanding, which is not described herein again.
And S320, shooting a second frame image through the camera.
Please refer to the foregoing step S120 for understanding, which is not described herein again.
And S330, shooting a third frame image through a camera.
Please refer to the foregoing step S230 for understanding, which is not described herein again.
S340, judging whether the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are on the same bar code.
And judging whether the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are on the same bar code. Specifically, the first frame image may be compared with the third frame image. The time difference between the first frame image and the second frame image shot by the camera is less than or equal to the set time threshold. The time difference between the second frame image and the third frame image shot by the camera is less than or equal to the set time threshold. Therefore, generally, there is no large difference between the first frame image and the third frame image. Therefore, it is only necessary to compare whether the first position in the first frame image and the third position of the laser center point in the third frame image fall on the same barcode, so as to determine whether the second position in the second frame image and the first position in the first frame image are on the same barcode.
Specifically, it may be first determined that there are several barcodes in the first frame image and the third frame image, and it is determined on which barcode the laser center point falls in the first frame image and the third frame image, respectively, so as to determine whether the barcode on which the laser center point falls in the first frame image and the barcode on which the laser center point falls in the third frame image are the same barcode.
When the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are located on the same bar code, it can be considered that the position of the laser central point is basically unchanged in the time of shooting the first frame image and the third frame image by the camera, and then the decoding accuracy can be ensured by selecting the second frame image between the first frame image and the third frame image to perform the decoding operation.
S350, determining a first position of a laser center point in the first frame image, determining a second position of the first position corresponding to the second frame image, and analyzing the bar code at the second position.
Please refer to the foregoing step S250 for understanding, which is not described herein again.
And S360, canceling the analysis of the bar code at the second position.
Please refer to the foregoing step S260 for understanding, which is not described herein again.
The method steps in the present application are described above, and the functional modules of the reader-writer provided in the embodiment of the present application are described below, where the reader-writer provided in the present application is used to implement the decoding method of the reader-writer, and the corresponding method steps and beneficial effects thereof are understood with reference to the decoding method of the reader-writer, and are not described here again. Please refer to fig. 5. The reader/writer 30 includes:
the scanning module 31 and the processor 32, wherein in the scanning module 31, the camera 31-1 and the laser sight 31-2 are sequentially arranged, and the camera 31-1 is used for shooting a first frame of image, wherein when the camera 31-1 shoots the first frame of image, the laser sight 31-2 is turned on, so that the first frame of image includes a laser central point emitted by the laser sight 31-2; the camera 31-1 is further configured to capture a second frame of image, wherein when the camera 31-1 captures the second frame of image, the laser sight 31-2 is turned off, so that the second frame of image does not include a laser center point, and a time difference between capturing the first frame of image and capturing the second frame of image by the camera 31-1 is less than or equal to a set time threshold; a processor 32, configured to determine a first position of a center point of the laser in the first frame image, and determine a corresponding second position of the first position in the second frame image; the processor 32 is further configured to acquire the barcode at the second position in the second frame image, and analyze the barcode at the second position.
Furthermore, the camera 31-1 is further configured to capture a third frame of image, where when the camera 31-1 captures the third frame of image, the laser sight 31-2 is turned on, so that the third frame of image includes a laser center point, and a time difference between capturing the second frame of image and capturing the third frame of image by the camera 31-1 is less than or equal to a set time threshold; the processor 32 is further configured to determine a third position of the laser center point in the third frame of image, and determine whether a difference between the first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image is within a set error range; the processor 32 is further configured to analyze the barcode at the second position when it is determined that a difference between a first position of the laser center point in the first frame image and a third position of the laser center point in the third frame image is within a set error range.
Further, the processor 32 is further configured to cancel the barcode analysis of the second position when it is determined that a difference between the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image exceeds a set error range.
Furthermore, the camera 31-1 is further configured to capture a third frame of image, wherein when the camera 31-1 captures the third frame of image, the laser sight 31-2 is turned on, so that the third frame of image includes a laser center point, and a time difference between capturing the second frame of image by the camera 31-1 and capturing the third frame of image by the camera 31-1 is less than or equal to a set time threshold; the processor 32 is further configured to determine a third position of the laser center point in the third frame of image, and determine whether the first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image fall on the same barcode; the processor 32 is further configured to analyze the barcode located at the second position when it is determined that the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image are located on the same barcode.
Further, the processor 32 is further configured to cancel barcode resolution of the second position when it is determined that the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image do not fall on the same barcode.
Further, the processor 32 is also configured to determine that the center point of the laser light emitted from the laser sight 31-2 is aimed at the barcode such that the center point of the laser light falls on the barcode in the first frame of image.
Further, the processor 32 is further configured to obtain, in the first frame image, the brightness values of the pixels in the preset number above and below the preset horizontal line in the center of the preset horizontal line, and obtain a pixel matrix formed by the pixels of which the brightness values are greater than the preset brightness threshold; and determining a pixel matrix formed by pixel points with brightness values larger than a preset brightness threshold value as a first position of a laser central point.
Further, the processor 32 is further configured to determine a luminance value of the first frame image; and dynamically adjusting shooting parameters of the camera 31-1 according to the brightness value of the first frame image and a preset brightness gain value, so that the brightness value of the laser center point in the third frame image and the brightness value of the laser center point in the first frame image are both within a preset brightness value range.
Fig. 9 describes the reader/writer provided in the embodiment of the present application in detail from the perspective of a modular entity, and the reader/writer in the embodiment of the present application is described in detail from the perspective of hardware processing.
Fig. 10 is a schematic structural diagram of a reader/writer according to the present application. As shown in fig. 10, the reader/writer 40 includes a processor 41, a memory 42, and a communication interface 43, and the processor 41, the memory 42, and the communication interface 43 may be connected by a bus 44. The communication interface may connect a peripheral such as a camera.
The reader/writer 40 is a device of a hardware structure, and can be used for the functions of the respective functional blocks in the reader/writer 30 shown in fig. 9.
Alternatively, the processor 41 may be one or more Central Processing Units (CPUs), microprocessors, application-specific integrated circuits (ASICs), or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
The processor 41 is configured to execute the instructions in the memory 42 to execute the decoding method applied to any one of the readers in fig. 4, 7 and 8. The communication interface 43 may include an input/output (I/O) interface.
The memory 42, the processor 41 and the communication interface 43 may be connected to each other by a bus 44, but are not limited to being connected only by the bus 44; the bus 44 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product 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 application 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, for example, from one website site, computer, server, or data center to another website site, 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.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with 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.
Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be performed by program instructions instructing associated hardware, and that the program may be stored in a computer-readable storage medium, which may include: ROM, RAM, magnetic or optical disks, and the like.
The present application further provides a computer-readable storage medium, which includes instructions that, when executed on a computer device, cause the computer device to execute a decoding method of a reader/writer as provided in any one of the embodiments of the present application.
The application also provides a chip, which comprises a processing unit and a storage unit, wherein the storage unit is used for storing the computer operation instruction; the processing unit is used for executing the decoding method of the reader-writer provided by any one of the embodiments of the present application by calling the computer operation instruction stored in the storage unit.
The above has introduced in detail the decoding method of the reader/writer, and the storage medium provided in the embodiments of the present application, and a specific example is applied in this document to explain the principle and implementation of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A decoding method of a reader-writer is characterized in that the decoding method of the reader-writer is applied to the reader-writer, the reader-writer comprises a scanning module, a camera and a laser sight are sequentially arranged in the scanning module, and the decoding method of the reader-writer comprises the following steps:
shooting a first frame of image through the camera, wherein when the camera shoots the exposure moment of the first frame of image, the laser sighting device is started, so that the first frame of image comprises a laser central point emitted by the laser sighting device;
shooting a second frame of image through the camera, wherein when the exposure time of the second frame of image shot by the camera is shorter than or equal to a set time threshold, the laser sighting device is closed so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is smaller than or equal to the set time threshold;
determining a first position of the laser center point in the first frame image, and determining a corresponding second position of the first position in the second frame image;
acquiring the bar code at the second position in the second frame image, and analyzing the bar code at the second position;
before analyzing the barcode at the second position, the decoding method of the reader further includes:
shooting a third frame of image through the camera, wherein when the exposure time of the third frame of image shot by the camera is up, the laser sight is started so that the third frame of image contains a laser central point, and the time difference between shooting the second frame of image and shooting the third frame of image by the camera is less than or equal to the set time threshold;
determining a third position of the laser center point in the third frame image, and judging whether a difference between a first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image is within a set error range, or judging whether the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image are on the same bar code;
the analyzing the barcode at the second position specifically includes:
when the difference between the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image is determined to be within a set error range, or the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are determined to be on the same bar code, the bar code at the second position is analyzed.
2. The decoding method of a reader/writer according to claim 1, characterized in that the method further comprises:
and when the difference between the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image is determined to exceed the set error range, the analysis of the bar code at the second position is cancelled.
3. The decoding method of a reader/writer according to claim 1, characterized in that the method further comprises:
and when the first position of the laser central point in the first frame image and the third position of the laser central point in the third frame image are determined not to fall on the same bar code, canceling the analysis of the bar code at the second position.
4. The decoding method of a reader/writer according to claim 1, wherein before said taking of the first frame image by said camera, said method further comprises:
and determining that the laser center point emitted by the laser sight aims at the bar code, so that the laser center point falls on the bar code in the first frame of image.
5. The method according to claim 1, wherein said determining the first position of the laser center point in the first frame image specifically comprises:
in the first frame image, taking a preset horizontal line as a center, acquiring brightness values of pixel points of which the number is set up above and below the preset horizontal line, and acquiring a pixel matrix formed by the pixel points of which the brightness values are greater than a preset brightness threshold;
and determining the first position of the laser central point according to a pixel matrix formed by the pixel points with the brightness values larger than a preset brightness threshold.
6. The decoding method of a reader/writer according to claim 1, characterized in that the method further comprises:
determining the brightness value of the first frame image, wherein the brightness value of the laser central point in the first frame image is within a preset brightness value range;
before the third frame of image is shot by the camera, the method further comprises:
and dynamically adjusting shooting parameters of the camera according to the brightness value of the first frame image and a preset brightness gain value, so that the brightness value of the laser center point in the third frame image is within the preset brightness value range.
7. A reader-writer is characterized in that the reader-writer comprises a scanning module and a processor, wherein in the scanning module, a camera and a laser sighting device are sequentially arranged,
the camera is used for shooting a first frame of image, wherein when the camera shoots the exposure moment of the first frame of image, the laser sighting device is started, so that the first frame of image comprises a laser central point emitted by the laser sighting device;
the camera is further used for shooting a second frame of image, wherein when the camera shoots the exposure time of the second frame of image, the laser sighting device is closed, so that the second frame of image does not contain a laser central point, and the time difference between shooting the first frame of image and shooting the second frame of image by the camera is smaller than or equal to a set time threshold;
the processor is used for determining a first position of the laser center point in the first frame image and determining a corresponding second position of the first position in the second frame image;
the processor is further configured to acquire the barcode at the second position in the second frame image, and analyze the barcode at the second position;
the camera is further used for shooting a third frame of image, wherein when the camera shoots the third frame of image, the laser sight is started so that the third frame of image contains a laser central point, and the time difference between shooting the second frame of image and shooting the third frame of image by the camera is less than or equal to a set time threshold;
the processor is further configured to determine a third position of the laser center point in the third frame of image, and determine whether a difference between the first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image is within a set error range, or determine whether the first position of the laser center point in the first frame of image and the third position of the laser center point in the third frame of image are on the same barcode;
the processor is further configured to analyze the barcode located at the second position when it is determined that a difference between a first position of the laser center point in the first frame image and a third position of the laser center point in the third frame image is within a set error range, or it is determined that the first position of the laser center point in the first frame image and the third position of the laser center point in the third frame image are located on the same barcode.
8. A computer-readable storage medium characterized in that the computer-readable storage medium stores program instructions that, when executed on a computer, cause the computer to execute a decoding method of a reader/writer according to any one of claims 1 to 6.
CN202111607781.7A 2021-12-27 2021-12-27 Decoding method of reader-writer, reader-writer and storage medium Active CN113988240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111607781.7A CN113988240B (en) 2021-12-27 2021-12-27 Decoding method of reader-writer, reader-writer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111607781.7A CN113988240B (en) 2021-12-27 2021-12-27 Decoding method of reader-writer, reader-writer and storage medium

Publications (2)

Publication Number Publication Date
CN113988240A CN113988240A (en) 2022-01-28
CN113988240B true CN113988240B (en) 2022-04-01

Family

ID=79734385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111607781.7A Active CN113988240B (en) 2021-12-27 2021-12-27 Decoding method of reader-writer, reader-writer and storage medium

Country Status (1)

Country Link
CN (1) CN113988240B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013026180A1 (en) * 2011-08-23 2013-02-28 Metrologic Instruments, Inc. Optical code symbol reading system employing axicon-generated laser aiming beam
CN212322275U (en) * 2020-06-04 2021-01-08 福州符号信息科技有限公司 Bar code reading module with laser aiming unit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109478225A (en) * 2016-08-09 2019-03-15 株式会社明日星 Reading device, program and unit
CN109766880A (en) * 2018-12-29 2019-05-17 航天信息股份有限公司 Hand-held input system
CN111474552A (en) * 2019-01-23 2020-07-31 科沃斯机器人股份有限公司 Laser ranging method and device and self-moving equipment
CN109815766B (en) * 2019-01-25 2022-05-03 深圳市优博讯科技股份有限公司 Bar code scanning method and device, mobile terminal and readable storage medium
CN109934034A (en) * 2019-02-22 2019-06-25 无锡盈达聚力科技有限公司 A kind of scanning means and barcode scanning method of Parameter adjustable
CN111325045A (en) * 2020-03-20 2020-06-23 福州符号信息科技有限公司 Bar code positioning system and bar code positioning method for scanner

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013026180A1 (en) * 2011-08-23 2013-02-28 Metrologic Instruments, Inc. Optical code symbol reading system employing axicon-generated laser aiming beam
CN212322275U (en) * 2020-06-04 2021-01-08 福州符号信息科技有限公司 Bar code reading module with laser aiming unit

Also Published As

Publication number Publication date
CN113988240A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US11983599B2 (en) System and method for document processing
US10049250B2 (en) Document decoding system and method for improved decoding performance of indicia reading terminal
JP7460728B2 (en) Method for handling large numbers of decodable indicia
US9147095B2 (en) Optical code scanner optimized for reading 2D optical codes
EP2568412B1 (en) Apparatus for recognizing character and barcode simultaneously and method for controlling the same
US20050082370A1 (en) System and method for decoding barcodes using digital imaging techniques
US20150302236A1 (en) Method and device for identifying a two-dimensional barcode
CN100353370C (en) Method and system for decoding bar code image
US20170330009A1 (en) Decoding visual codes
CN105787403B (en) A kind of bar code reading method of high pixel image processing and the bar code recognizing apparatus of high pixel image processing
CN111539236A (en) Method for reading multiple bar codes at one time
EP2542998B1 (en) User-customizable data capture terminal for and method of imaging and processing a plurality of target data on one or more targets
CN113988240B (en) Decoding method of reader-writer, reader-writer and storage medium
EP2733641B1 (en) Mobile computer configured to read multiple decodable indicia
CN115081467B (en) Method for collecting original image by handset, handset and storage medium
CN112749591B (en) Storage logistics robot and article identification method and chip thereof
US20100213256A1 (en) Imaging reader for and method of processing a plurality of data on a target per single actuation
CN218729071U (en) Integrated automatic association and coding device
US11755859B2 (en) Apparatus and method for enabling decoding of remotely sourced and visually presented encoded data markers
CN112560535A (en) Decoding output method for panoramic sequencing
JP2024069640A (en) Method for processing multiple decodable indicia - Patents.com
CN117540762A (en) Bar code identification method, device, equipment and readable storage medium

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
CP01 Change in the name or title of a patent holder

Address after: 518102 Floor 9, plant 2, Daqian industrial plant, zone 67, Xingdong community, Xin'an street, Bao'an District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Chengcheng Information Co.,Ltd.

Address before: 518102 Floor 9, plant 2, Daqian industrial plant, zone 67, Xingdong community, Xin'an street, Bao'an District, Shenzhen, Guangdong Province

Patentee before: CHAINWAY INFORMATION TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder