CN112733566B - Two-dimensional code reading method and device based on position guidance - Google Patents

Two-dimensional code reading method and device based on position guidance Download PDF

Info

Publication number
CN112733566B
CN112733566B CN202110051144.XA CN202110051144A CN112733566B CN 112733566 B CN112733566 B CN 112733566B CN 202110051144 A CN202110051144 A CN 202110051144A CN 112733566 B CN112733566 B CN 112733566B
Authority
CN
China
Prior art keywords
information
dimensional code
distance
angle
reverse scanning
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
CN202110051144.XA
Other languages
Chinese (zh)
Other versions
CN112733566A (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.)
Guangdong Xingyun Kaiwu Technology Co ltd
Original Assignee
Guangdong Xingyun Kaiwu 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 Guangdong Xingyun Kaiwu Technology Co ltd filed Critical Guangdong Xingyun Kaiwu Technology Co ltd
Priority to CN202110051144.XA priority Critical patent/CN112733566B/en
Publication of CN112733566A publication Critical patent/CN112733566A/en
Application granted granted Critical
Publication of CN112733566B publication Critical patent/CN112733566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06K7/14172D bar codes
    • 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
    • G06K7/1456Methods for optical code recognition including a method step for retrieval of the optical code determining the orientation of the optical code with respect to the reader and correcting therefore

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)
  • Navigation (AREA)

Abstract

The invention discloses a two-dimensional code reading method and device based on position guidance, wherein the method comprises the following steps: when the mobile equipment displaying the two-dimensional code is detected, determining distance information and angle information between the back scanning equipment and the mobile equipment; outputting position guide information based on the distance information and the angle information, wherein the position guide information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment; when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read. The two-dimensional code reading method and device can improve the two-dimensional code reading effect.

Description

Two-dimensional code reading method and device based on position guidance
Technical Field
The invention relates to the field of electronic equipment, in particular to a two-dimensional code reading method and device based on position guidance.
Background
At present, the two-dimensional code is used as a tool convenient for mobile equipment identification and carries a large amount of information, and is widely applied to aspects of work and life.
In the prior art, in the current two-dimensional code identification process, the current situations of direction angle offset, too short and too far distance, incomplete image information and the like often exist, so that various problems of low identification efficiency, insufficient accuracy and the like are caused. The existing two-dimensional code reading method is poor in effect.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a two-dimensional code reading method and device based on position guidance, which are used for at least improving the two-dimensional code reading effect.
According to an aspect of the embodiment of the invention, there is provided a two-dimensional code reading method based on position guidance, including: when the mobile equipment displaying the two-dimensional code is detected, determining distance information and angle information between the back scanning equipment and the mobile equipment; outputting position guiding information based on the distance information and the angle information, wherein the position guiding information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment; when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read.
As an alternative embodiment, the outputting the position guidance information based on the distance information and the angle information includes: if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value, determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value; and outputting the position guide information based on the distance difference value and/or the angle difference value.
As an optional implementation manner, after the two-dimensional code displayed by the mobile device is read, the method further includes: acquiring a reading result, wherein the reading result comprises successful reading or failed reading; if the reading result is that the reading is successful, outputting a first voice prompt; and if the reading result is that the reading fails, outputting a second voice prompt.
As an alternative embodiment, the method further comprises: scanning an image in a preset direction by the camera device of the reverse scanning equipment; and if the mobile equipment displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
As an alternative embodiment, the outputting the position guidance information based on the distance information and the angle information includes: in response to detecting that there are a plurality of mobile devices displaying a two-dimensional code, corresponding position guidance information is output to each mobile device based on the distance information and the angle information.
According to another aspect of the embodiment of the present invention, there is also provided a two-dimensional code reading device based on position guidance, including: an information determination unit configured to determine distance information and angle information between a reverse scanning device and a mobile device on which a two-dimensional code is displayed, when the mobile device is detected; an information output unit configured to output position guide information for guiding the mobile device to move to a reverse scanning area corresponding to the reverse scanning device based on the distance information and the angle information; and the two-dimensional code reading unit is configured to read the two-dimensional code displayed by the mobile equipment when detecting that the mobile equipment moves to the reverse scanning area corresponding to the reverse scanning equipment.
As an alternative embodiment, the information output unit is further configured to: if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value, determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value; and outputting the position guide information based on the distance difference value and/or the angle difference value.
As an alternative embodiment, the above device further comprises: the result acquisition unit is configured to acquire a reading result after the two-dimensional code displayed by the mobile device is read, wherein the reading result comprises success or failure of reading; the prompt output unit is configured to output a first voice prompt if the reading result is successful; and if the reading result is that the reading fails, outputting a second voice prompt.
As an alternative embodiment, the above device further comprises: a scanning unit configured to perform image scanning in a preset direction by the imaging device of the reverse scanning apparatus; and if the mobile equipment displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
As an alternative embodiment, the information output unit is further configured to: in response to detecting that there are a plurality of mobile devices displaying a two-dimensional code, corresponding position guidance information is output to each mobile device based on the distance information and the angle information.
According to still another aspect of the embodiment of the present invention, there is further provided a two-dimensional code reading device based on location guidance, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the two-dimensional code reading method based on location guidance through the computer program.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described two-dimensional code reading method based on location guidance when running.
In the embodiment of the invention, compared with the traditional two-dimensional code recognition mode, the two-dimensional code recognition method provided by the embodiment of the invention can generate the position guide information for guiding the mobile equipment to move based on the distance information and the angle information between the reverse scanning equipment and the mobile equipment, so that the mobile equipment is guided to move to a proper position based on the position guide information to perform two-dimensional code recognition, the two-dimensional code recognition efficiency and accuracy are improved, and the two-dimensional code recognition effect is better.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative two-dimensional code reading method based on position guidance according to an embodiment of the invention;
FIG. 2 is a flow chart of another alternative two-dimensional code reading method based on position guidance according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of an alternative two-dimensional code reading device based on position guidance according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an alternative two-dimensional code reading device based on position guidance according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations 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 elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides an optional two-dimensional code reading method based on position guidance, which is shown in fig. 1 and comprises the following steps:
s101, when the mobile device displaying the two-dimensional code is detected, determining distance information and angle information between the back scanning device and the mobile device.
In the embodiment of the invention, the executing body (the back scanning device or other electronic devices connected with the back scanning device) can scan the current environment by using the image capturing device after receiving the starting signal. The image capturing device may be provided in the reverse scanning apparatus, or may be provided separately, which is not limited in the embodiment of the present invention. And, the reverse scanning device refers to a device for scanning a payment two-dimensional code to perform a collection operation. In the process of scanning the current environment by the camera device, when the mobile device displaying the two-dimensional code exists in the current environment, the distance information and the angle information between the back scanning device and the mobile device can be determined. The mobile device displaying the two-dimensional code can be a mobile phone used by a user when paying, and the two-dimensional code can be a payment two-dimensional code. After the mobile device is detected by the execution subject, the above-described distance information and angle information may be acquired by a displacement sensor provided in the reverse scanning device. The distance information may include, but is not limited to, coordinates of a relative position of the mobile device with respect to the back-scan device, a distance between the mobile device and the back-scan device, and the like, and the angle information may include, but is not limited to, an angle offset between the mobile device and the back-scan device.
S102, outputting position guide information based on the distance information and the angle information, wherein the position guide information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment.
In the embodiment of the invention, the execution subject can obtain the distance and near condition and the angle deviation condition between the mobile device and the back scanning device based on the distance information and the angle information, and output the position guide information for guiding the distance to be close to the back scanning area corresponding to the back scanning device and adjusting the angle to be close to the standard scanning angle of the back scanning area based on the distance and near condition and the angle deviation condition. The reverse scanning area is a preset area facing the image pickup device in the reverse scanning equipment or an area facing the independently arranged image pickup device, which is not limited in the embodiment of the invention. When the mobile device moves to the area and the angle of the mobile device is adjusted to the standard scanning angle of the reverse scanning area, accurate two-dimensional code reading operation can be realized.
As an alternative embodiment, the outputting the position guidance information based on the distance information and the angle information includes: in response to detecting that there are a plurality of mobile devices displaying a two-dimensional code, corresponding position guidance information is output to each mobile device based on the distance information and the angle information.
In the embodiment of the invention, the two-dimensional code reading method based on the position guidance can be applied to an application scene in which a plurality of two-dimensional codes are scanned simultaneously. In this scenario, the image capturing device may move according to a preset movement path, and optionally, the angle of the image capturing device may be adjusted simultaneously during the movement process, so that the image capturing device captures an environmental image in a larger range. Further, the execution body determines a plurality of mobile devices displaying two-dimensional codes based on the acquired environmental image, and may determine position guiding information based on the distance information and the angle information, and for determining the position guiding information, reference is made to the above description, which is not repeated herein. After determining the location guidance information, the location guidance information may be output to the corresponding mobile devices, respectively.
For example, if it is detected that the mobile device displaying the two-dimensional code includes A, B, C, determining position guide information X corresponding to a based on distance information and angle information between a and the back scanning device, and transmitting the position guide information X to a; and determining position guide information Y corresponding to the B based on the distance information and the angle information between the B and the back scanning equipment, and sending the position guide information Y to the B; and determining position guide information Z corresponding to the C based on the distance information and the angle information between the C and the back scanning equipment, and sending the position guide information Z to the C.
And S103, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read.
In the embodiment of the invention, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment can be read. If the application scene is the scene of reading the multi-two-dimensional code, the camera device is usually independent of the back scanning equipment, the number of the camera device can be multiple, and the camera device can correspondingly move based on the control instruction of the execution main body. In this scenario, the reverse scan area may be a larger designated area set in advance, and the image capturing apparatus moves to the reverse scan area in response to the control instruction to scan the mobile device that moves to the reverse scan area.
In the embodiment of the invention, compared with the traditional two-dimensional code recognition mode, the two-dimensional code recognition method provided by the embodiment of the invention can generate the position guide information for guiding the mobile equipment to move based on the distance information and the angle information between the reverse scanning equipment and the mobile equipment, so that the mobile equipment is guided to move to a proper position based on the position guide information to perform two-dimensional code recognition, the two-dimensional code recognition efficiency and accuracy are improved, and the two-dimensional code recognition effect is better.
Further, the embodiment of the invention provides another optional two-dimensional code reading method based on position guidance, as shown in fig. 2, the two-dimensional code reading method based on position guidance includes:
s201, scanning an image in a preset direction through an image pickup device of the reverse scanning device.
In the embodiment of the invention, the image scanning can be performed in the preset direction based on the image pickup device of the reverse scanning equipment, wherein the image pickup device of the reverse scanning equipment can be the image pickup device arranged in the reverse scanning device or the image pickup device arranged outside the reverse scanning device and connected with the reverse scanning device. The image pickup device can be controlled to scan the image in a preset direction.
S202, if the mobile device displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
In the embodiment of the invention, if the mobile device displaying the two-dimensional code is not scanned in the preset direction, the preset direction can be adjusted to scan the image. By repeating the steps, the current environment can be scanned in multiple directions until the mobile device displaying the two-dimensional code is scanned.
And S203, when the mobile device with the two-dimensional code displayed is detected, determining distance information and angle information between the back scanning device and the mobile device.
In the embodiment of the invention, after receiving the starting signal, the image scanning device can be used for scanning the current environment. The image capturing device may be provided in the reverse scanning apparatus, or may be provided separately, which is not limited in the embodiment of the present invention. And, the reverse scanning device refers to a device for scanning a payment two-dimensional code to perform a collection operation. In the process of scanning the current environment by the camera device, when the mobile device displaying the two-dimensional code exists in the current environment, focusing operation can be performed based on image information of the mobile device, and then distance information and angle information between the reverse scanning device and the mobile device are determined. The mobile device displaying the two-dimensional code can be a mobile phone used by a user when paying, and the two-dimensional code can be a payment two-dimensional code. After the mobile device is detected by the execution subject, the above-described distance information and angle information may be acquired by a displacement sensor provided in the reverse scanning device. The distance information may include, but is not limited to, coordinates of a relative position of the mobile device with respect to the back-scan device, a distance between the mobile device and the back-scan device, and the like, and the angle information may include, but is not limited to, an angle offset between the mobile device and the back-scan device.
S204, if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value, determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value.
In the embodiment of the present invention, if the distance information indicates that the distance is less than or equal to a preset distance threshold and the angle information indicates that the angle offset is less than or equal to a preset angle offset threshold, the two-dimensional code may be directly identified without performing an operation of outputting the position guide information. If the distance information indicates that the distance is greater than a preset distance threshold, the distance between the two-dimensional code displayed in the mobile device and the camera of the reverse scanning device is longer, and if the angle information indicates that the angle offset is greater than the preset angle offset threshold, the angle offset between the two-dimensional code displayed in the mobile device and the camera of the reverse scanning device is larger. In the case of a long distance and/or a large angular deviation, it is necessary to output position guidance information for adjusting the distance and/or the angle. The distance refers to the distance between the camera device of the reverse scanning device and the mobile device, and the angle offset refers to the angle offset between the camera device of the reverse scanning device and the mobile device.
And S205, outputting the position guiding information based on the distance difference value and/or the angle difference value, wherein the position guiding information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment.
In the embodiment of the invention, the distance difference refers to a distance difference between an image pickup device of the back scanning device and the mobile device, and the angle difference refers to an angle difference between the image pickup device of the back scanning device and the mobile device. The reverse scanning area corresponding to the reverse scanning device may be an area where the distance difference is smaller than a preset first threshold value and the angle difference is smaller than a preset second threshold value. The first threshold value is smaller than the distance threshold value, and the second threshold value is smaller than the angle offset threshold value. Alternatively, the position guidance information may be output as guidance information in the form of voice.
S206, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read.
In the embodiment of the invention, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment can be read. If the application scene is the scene of reading the multi-two-dimensional code, the camera device is usually independent of the back scanning equipment, the number of the camera device can be multiple, and the camera device can correspondingly move based on the control instruction of the execution main body. In this scenario, the reverse scan area may be a larger designated area set in advance, and the image capturing apparatus moves to the reverse scan area in response to the control instruction to scan the mobile device that moves to the reverse scan area.
S207, acquiring a reading result, wherein the reading result comprises reading success or reading failure.
In the embodiment of the invention, the reading result is the reading result of the two-dimensional code, the successful reading means that the two-dimensional code is successfully read, the collection success means that the two-dimensional code is failed to read, and the collection failure means that the two-dimensional code is failed to read.
S208, if the reading result is that the reading is successful, outputting a first voice prompt.
In the embodiment of the invention, if the reading is successful, a first voice prompt for prompting the successful reading is output, for example, direct voice output of "successful reading" or "successful collection.
S209, if the reading result is that the reading fails, outputting a second voice prompt.
In the embodiment of the invention, if the reading fails, a second voice prompt for prompting the reading failure is output, for example, direct voice output of "reading failure" or "collection failure".
In the embodiment of the invention, compared with the traditional two-dimensional code recognition mode, the two-dimensional code recognition method provided by the embodiment of the invention can generate the position guide information for guiding the mobile equipment to move based on the distance information and the angle information between the reverse scanning equipment and the mobile equipment, so that the mobile equipment is guided to move to a proper position based on the position guide information to perform two-dimensional code recognition, the two-dimensional code recognition efficiency and accuracy are improved, and the two-dimensional code recognition effect is better.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is further provided a two-dimensional code reading device based on location guidance for implementing the two-dimensional code reading method based on location guidance, as shown in fig. 3, including:
an information determination unit 301 configured to determine distance information and angle information between a reverse scanning device and a mobile device on which a two-dimensional code is displayed when the mobile device is detected.
In the embodiment of the invention, after receiving the starting signal, the image scanning device can be used for scanning the current environment. The image capturing device may be provided in the reverse scanning apparatus, or may be provided separately, which is not limited in the embodiment of the present invention. And, the reverse scanning device refers to a device for scanning a payment two-dimensional code to perform a collection operation. In the process of scanning the current environment by the camera device, when the mobile device displaying the two-dimensional code exists in the current environment, the distance information and the angle information between the back scanning device and the mobile device can be determined. The mobile device displaying the two-dimensional code can be a mobile phone used by a user when paying, and the two-dimensional code can be a payment two-dimensional code. After the mobile device is detected, the distance information and the angle information can be acquired through a displacement sensor arranged in the back scanning device. The distance information may include, but is not limited to, coordinates of a relative position of the mobile device with respect to the back-scan device, a distance between the mobile device and the back-scan device, and the like, and the angle information may include, but is not limited to, an angle offset between the mobile device and the back-scan device.
And an information output unit 302 configured to output position guide information for guiding the mobile device to move to a reverse scanning area corresponding to the reverse scanning device based on the distance information and the angle information.
In the embodiment of the invention, the distance situation and the angle deviation situation between the mobile equipment and the back scanning equipment can be obtained based on the distance information and the angle information, and the position guiding information for guiding the distance to be close to the back scanning area corresponding to the back scanning equipment and adjusting the angle to be close to the standard scanning angle of the back scanning area is output based on the distance situation and the angle deviation situation. The reverse scanning area is a preset area facing the image pickup device in the reverse scanning equipment or an area facing the independently arranged image pickup device, which is not limited in the embodiment of the invention. When the mobile device moves to the area and the angle of the mobile device is adjusted to the standard scanning angle of the reverse scanning area, accurate two-dimensional code reading operation can be realized.
And the two-dimensional code reading unit 303 is configured to read the two-dimensional code displayed by the mobile device when detecting that the mobile device moves to the reverse scanning area corresponding to the reverse scanning device.
In the embodiment of the invention, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment can be read. If the application scene is the scene of reading the multi-two-dimensional code, the camera device is usually independent of the back scanning equipment, the number of the camera device can be multiple, and the camera device can correspondingly move based on the control instruction. In this scenario, the reverse scan area may be a larger designated area set in advance, and the image capturing apparatus moves to the reverse scan area in response to the control instruction to scan the mobile device that moves to the reverse scan area.
As an alternative embodiment, the information output unit 302 is further configured to: if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value, determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value; and outputting the position guide information based on the distance difference value and/or the angle difference value.
In the embodiment of the present invention, if the distance information indicates that the distance is less than or equal to a preset distance threshold and the angle information indicates that the angle offset is less than or equal to a preset angle offset threshold, the two-dimensional code may be directly identified without performing an operation of outputting the position guide information. If the distance information indicates that the distance is greater than a preset distance threshold, the distance between the two-dimensional code displayed in the mobile device and the camera of the reverse scanning device is longer, and if the angle information indicates that the angle offset is greater than the preset angle offset threshold, the angle offset between the two-dimensional code displayed in the mobile device and the camera of the reverse scanning device is larger. In the case of a long distance and/or a large angular deviation, it is necessary to output position guidance information for adjusting the distance and/or the angle. The distance refers to the distance between the camera device of the reverse scanning device and the mobile device, and the angle offset refers to the angle offset between the camera device of the reverse scanning device and the mobile device. The distance difference refers to a distance difference between the image pickup device of the reverse scanning device and the mobile device, and the angle difference refers to an angle difference between the image pickup device of the reverse scanning device and the mobile device. The reverse scanning area corresponding to the reverse scanning device may be an area where the distance difference is smaller than a preset first threshold value and the angle difference is smaller than a preset second threshold value. The first threshold value is smaller than the distance threshold value, and the second threshold value is smaller than the angle offset threshold value. Alternatively, the position guidance information may be output as guidance information in the form of voice.
As an alternative embodiment, the above device further comprises: the result acquisition unit is configured to acquire a reading result after the two-dimensional code displayed by the mobile device is read, wherein the reading result comprises success or failure of reading; the prompt output unit is configured to output a first voice prompt if the reading result is successful; and if the reading result is that the reading fails, outputting a second voice prompt.
In the embodiment of the invention, the reading result is the reading result of the two-dimensional code, the successful reading means that the two-dimensional code is successfully read, the collection success means that the two-dimensional code is failed to read, and the collection failure means that the two-dimensional code is failed to read. If the reading is successful, a first voice prompt for prompting that the reading is successful is output, for example, a direct voice output of 'successful reading' or 'successful collection'. If the reading fails, a second voice prompt for prompting the reading failure is output, such as direct voice output of 'reading failure' or 'collection failure'.
As an alternative embodiment, the above device further comprises: a scanning unit configured to perform image scanning in a preset direction by the imaging device of the reverse scanning apparatus; and if the mobile equipment displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
In the embodiment of the invention, the image scanning can be performed in the preset direction based on the image pickup device of the reverse scanning equipment, wherein the image pickup device of the reverse scanning equipment can be the image pickup device arranged in the reverse scanning device or the image pickup device arranged outside the reverse scanning device and connected with the reverse scanning device. The image pickup device can be controlled to scan the image in a preset direction. If the mobile device displaying the two-dimensional code is not scanned in the preset direction, the preset direction can be adjusted to scan the image. By repeating the steps, the current environment can be scanned in multiple directions until the mobile device displaying the two-dimensional code is scanned.
As an alternative embodiment, the information output unit 302 is further configured to: in response to detecting that there are a plurality of mobile devices displaying a two-dimensional code, corresponding position guidance information is output to each mobile device based on the distance information and the angle information.
In the embodiment of the invention, the two-dimensional code reading method based on the position guidance can be applied to an application scene in which a plurality of two-dimensional codes are scanned simultaneously. In this scenario, the image capturing device may move according to a preset movement path, and optionally, the angle of the image capturing device may be adjusted simultaneously during the movement process, so that the image capturing device captures an environmental image in a larger range. Further, determining a plurality of mobile devices displaying two-dimensional codes based on the acquired environmental image may determine position guiding information based on the distance information and the angle information, and for determining the position guiding information, reference is made to the above description, which is not repeated herein. After determining the location guidance information, the location guidance information may be output to the corresponding mobile devices, respectively.
For example, if it is detected that the mobile device displaying the two-dimensional code includes A, B, C, determining position guide information X corresponding to a based on distance information and angle information between a and the back scanning device, and transmitting the position guide information X to a; and determining position guide information Y corresponding to the B based on the distance information and the angle information between the B and the back scanning equipment, and sending the position guide information Y to the B; and determining position guide information Z corresponding to the C based on the distance information and the angle information between the C and the back scanning equipment, and sending the position guide information Z to the C.
In the embodiment of the invention, compared with the traditional two-dimensional code recognition mode, the two-dimensional code recognition method provided by the embodiment of the invention can generate the position guide information for guiding the mobile equipment to move based on the distance information and the angle information between the reverse scanning equipment and the mobile equipment, so that the mobile equipment is guided to move to a proper position based on the position guide information to perform two-dimensional code recognition, the two-dimensional code recognition efficiency and accuracy are improved, and the two-dimensional code recognition effect is better.
According to a further aspect of the embodiments of the present invention, there is also provided a position-based two-dimensional code reading device for implementing the position-based two-dimensional code reading method, as shown in fig. 4, the position-based two-dimensional code reading device including a memory 402 and a processor 404, the memory 402 storing a computer program, the processor 404 being configured to execute the steps of any of the method embodiments described above by the computer program.
Alternatively, in this embodiment, the two-dimensional code reading device based on location guidance may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, when a mobile device displaying a two-dimensional code is detected, determining distance information and angle information between reverse scanning equipment and the mobile device;
s2, outputting position guide information based on the distance information and the angle information, wherein the position guide information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment;
and S3, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 4 is only schematic, and the two-dimensional code reading device based on the position guidance may also be a terminal device such as a smart phone (e.g. an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 4 does not limit the structure of the two-dimensional code reading device based on the position guidance. For example, the location-based two-dimensional code recognition device may also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 4, or have a different configuration than shown in fig. 4.
The memory 402 may be used to store software programs and modules, such as program instructions/modules corresponding to the two-dimensional code reading method and the device based on position guidance in the embodiment of the present invention, and the processor 404 executes the software programs and modules stored in the memory 402, thereby executing various functional applications and data processing, that is, implementing the two-dimensional code reading method based on position guidance. Memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 402 may further include memory located remotely from processor 404, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 402 may be used to store information such as operation instructions, but is not limited to. As an example, as shown in fig. 4, the memory 402 may include, but is not limited to, the information determining unit 301, the information outputting unit 302, and the two-dimensional code reading unit 303 in the two-dimensional code reading apparatus based on the position guidance. In addition, other module units in the two-dimensional code reading device based on the position guidance may be further included, which is not described in detail in this example.
Optionally, the transmission device 406 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 406 includes a network adapter (Network Interface Controller, NIC) that can be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 406 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
In addition, the two-dimensional code reading equipment based on the position guidance further comprises: a display 408 for displaying the display contents; and a connection bus 410 for connecting each module component in the two-dimensional code recognition device based on the position guidance.
According to a further aspect of embodiments of the present invention there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, when a mobile device displaying a two-dimensional code is detected, determining distance information and angle information between reverse scanning equipment and the mobile device;
s2, outputting position guide information based on the distance information and the angle information, wherein the position guide information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment;
and S3, when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

1. The two-dimensional code reading method based on the position guidance is characterized by comprising the following steps of:
when the mobile equipment displaying the two-dimensional code is detected, determining distance information and angle information between the back scanning equipment and the mobile equipment; the two-dimensional code is a payment two-dimensional code, the distance information comprises coordinates of a relative position of the mobile device relative to the reverse scanning device and a distance between the mobile device and the reverse scanning device, and the angle information comprises an angle offset between the mobile device and the reverse scanning device;
Outputting position guidance information based on the distance information and the angle information, including: responding to the detection that a plurality of mobile devices displaying the two-dimensional code are arranged, and outputting corresponding position guide information to each mobile device based on the distance information and the angle information; the position guiding information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment;
when the mobile equipment is detected to move to the reverse scanning area corresponding to the reverse scanning equipment, the two-dimensional code displayed by the mobile equipment is read;
the outputting position guidance information based on the distance information and the angle information includes:
determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value;
outputting the position guide information based on the distance difference value and/or the angle difference value;
the reverse scanning equipment is provided with a plurality of camera devices, the reverse scanning area is a preset designated area, and the camera devices respond to the control instruction and move to the reverse scanning area to scan the mobile equipment moving to the reverse scanning area.
2. The method of claim 1, further comprising, after the reading the two-dimensional code displayed by the mobile device:
acquiring a reading result, wherein the reading result comprises successful reading or failed reading;
if the reading result is that the reading is successful, outputting a first voice prompt;
and if the reading result is that the reading fails, outputting a second voice prompt.
3. The method according to claim 1, wherein the method further comprises:
scanning an image in a preset direction through an image pickup device of the reverse scanning device;
and if the mobile equipment displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
4. A method according to any one of claims 1 to 3, wherein said outputting position guidance information based on said distance information and said angle information comprises:
and in response to detecting that the mobile devices displaying the two-dimensional codes are multiple, outputting corresponding position guide information to each mobile device based on the distance information and the angle information.
5. Two-dimensional code recognition device based on position guidance, characterized by comprising:
An information determination unit configured to determine distance information and angle information between a reverse scanning device and a mobile device when the mobile device displaying a two-dimensional code is detected; the two-dimensional code is a payment two-dimensional code, the distance information comprises coordinates of a relative position of the mobile device relative to the reverse scanning device and a distance between the mobile device and the reverse scanning device, and the angle information comprises an angle offset between the mobile device and the reverse scanning device;
an information output unit configured to output position guidance information based on the distance information and the angle information, including: responding to the detection that a plurality of mobile devices displaying the two-dimensional code are arranged, and outputting corresponding position guide information to each mobile device based on the distance information and the angle information; the position guiding information is used for guiding the mobile equipment to move to a reverse scanning area corresponding to the reverse scanning equipment;
the two-dimensional code reading unit is configured to read the two-dimensional code displayed by the mobile equipment when detecting that the mobile equipment moves to the reverse scanning area corresponding to the reverse scanning equipment;
The information output unit is further configured to:
determining a distance difference value between the distance and the distance threshold value and/or an angle difference value between the angle offset and the angle offset threshold value if the distance information indicates that the distance is greater than a preset distance threshold value and/or the angle information indicates that the angle offset is greater than a preset angle offset threshold value;
outputting the position guide information based on the distance difference value and/or the angle difference value;
the reverse scanning equipment is provided with a plurality of camera devices, the reverse scanning area is a preset designated area, and the camera devices respond to the control instruction and move to the reverse scanning area to scan the mobile equipment moving to the reverse scanning area.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the result acquisition unit is configured to acquire a reading result after the two-dimensional code displayed by the mobile device is read, wherein the reading result comprises success or failure of reading;
the prompt output unit is configured to output a first voice prompt if the reading result is that the reading is successful; and if the reading result is that the reading fails, outputting a second voice prompt.
7. The apparatus of claim 5, wherein the apparatus further comprises:
a scanning unit configured to perform image scanning in a preset direction by an image pickup device of the reverse scanning apparatus; and if the mobile equipment displaying the two-dimensional code is not scanned in the preset direction, adjusting the preset direction, and scanning the image in the adjusted preset direction.
8. The apparatus according to any one of claims 5 to 7, wherein the information output unit is further configured to:
and in response to detecting that the mobile devices displaying the two-dimensional codes are multiple, outputting corresponding position guide information to each mobile device based on the distance information and the angle information.
CN202110051144.XA 2021-01-14 2021-01-14 Two-dimensional code reading method and device based on position guidance Active CN112733566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110051144.XA CN112733566B (en) 2021-01-14 2021-01-14 Two-dimensional code reading method and device based on position guidance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110051144.XA CN112733566B (en) 2021-01-14 2021-01-14 Two-dimensional code reading method and device based on position guidance

Publications (2)

Publication Number Publication Date
CN112733566A CN112733566A (en) 2021-04-30
CN112733566B true CN112733566B (en) 2024-04-05

Family

ID=75593148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110051144.XA Active CN112733566B (en) 2021-01-14 2021-01-14 Two-dimensional code reading method and device based on position guidance

Country Status (1)

Country Link
CN (1) CN112733566B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113298212A (en) * 2021-05-25 2021-08-24 艾酷软件技术(上海)有限公司 Graphic code display method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201521854D0 (en) * 2014-12-31 2016-01-27 Intermec Ip Corp Systems and methods for displaying location information for RFID Tags
JP2018081601A (en) * 2016-11-18 2018-05-24 クラリオン株式会社 Vehicle-mounted device for bus and guidance support method
CN108629220A (en) * 2018-03-23 2018-10-09 阿里巴巴集团控股有限公司 A kind of two dimension code reading method, apparatus and equipment
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146295A (en) * 2017-04-10 2017-09-08 北京德威特继保自动化科技股份有限公司 The method for inspecting of equipment, device and system
CN108572746B (en) * 2018-04-23 2020-08-04 腾讯科技(深圳)有限公司 Method, apparatus and computer readable storage medium for locating mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201521854D0 (en) * 2014-12-31 2016-01-27 Intermec Ip Corp Systems and methods for displaying location information for RFID Tags
JP2018081601A (en) * 2016-11-18 2018-05-24 クラリオン株式会社 Vehicle-mounted device for bus and guidance support method
CN108629220A (en) * 2018-03-23 2018-10-09 阿里巴巴集团控股有限公司 A kind of two dimension code reading method, apparatus and equipment
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process

Also Published As

Publication number Publication date
CN112733566A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110991575B (en) Asset inventory method and device, readable storage medium and robot
CN109657576B (en) Image acquisition control method, device, storage medium and system
KR102511292B1 (en) Apparatus and method for confirming object in electronic device
CN111123912B (en) Calibration method and device for travelling crane positioning coordinates
JP6094903B2 (en) Receiving apparatus and receiving side image processing method
US20200160073A1 (en) Apparatus, system and method for recognizing object of vehicle
CN112733566B (en) Two-dimensional code reading method and device based on position guidance
CN110443099B (en) Object identity recognition system and method for automatically recognizing object identity
CN109149794B (en) Wireless charging system and wireless charging method
CN110536274B (en) NFC device control method and device, NFC device and storage medium
US20190313082A1 (en) Apparatus and method for measuring position of stereo camera
CN110291771B (en) Depth information acquisition method of target object and movable platform
CN109121194B (en) Method and apparatus for state transition of electronic device
KR20140054797A (en) Electronic device and image modification method of stereo camera image using thereof
CN107506671B (en) Depth of field testing method, system and device of code scanning device
CN115519547A (en) Reinforcing steel bar binding hand-eye calibration method and system
CN113489970B (en) Correction method and device of cradle head camera, storage medium and electronic device
KR20190000825A (en) Mobile terminal capable of 3D scanning
CN108419013B (en) Image acquisition system and mobile robot
CN106295455A (en) Bar code indicating means and bar code reader
CN112040128A (en) Method and device for determining working parameters, storage medium and electronic device
KR20220014495A (en) Electronic apparatus and method for controlling thereof
CN112163519A (en) Image mapping processing method, device, storage medium and electronic device
CN112767348B (en) Method and device for determining detection information
CN116977672A (en) Matching method and device, storage medium and electronic device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 301, Building 5, No. 28, Qinglan Street, Xiaoguwei Street, Panyu District, Guangzhou, Guangdong 510006

Applicant after: Guangdong Xingyun Kaiwu Technology Co.,Ltd.

Address before: 511400 b213-10, 22 zhongerheng Road, Xiaoguwei street, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU LEYAOYAO INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant