CN108416246B - Two-dimensional code scanning method and device and computer readable storage medium - Google Patents

Two-dimensional code scanning method and device and computer readable storage medium Download PDF

Info

Publication number
CN108416246B
CN108416246B CN201810249786.9A CN201810249786A CN108416246B CN 108416246 B CN108416246 B CN 108416246B CN 201810249786 A CN201810249786 A CN 201810249786A CN 108416246 B CN108416246 B CN 108416246B
Authority
CN
China
Prior art keywords
dimensional code
information
color
acquired information
acquired
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
CN201810249786.9A
Other languages
Chinese (zh)
Other versions
CN108416246A (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.)
Xian Irain IoT Technology Service Co Ltd
Original Assignee
Xian Irain IoT Technology Service 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 Xian Irain IoT Technology Service Co Ltd filed Critical Xian Irain IoT Technology Service Co Ltd
Priority to CN201810249786.9A priority Critical patent/CN108416246B/en
Publication of CN108416246A publication Critical patent/CN108416246A/en
Application granted granted Critical
Publication of CN108416246B publication Critical patent/CN108416246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention discloses a two-dimension code scanning method, which comprises the following steps: when a code scanning instruction is received, scanning a current color two-dimensional code object, wherein different visual angles of the color two-dimensional code are correspondingly set to contain different information; acquiring information correspondingly contained in the current color two-dimensional code object; when the acquired information is complete color two-dimensional code information, executing corresponding operation according to the acquired information; and when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information. The invention also discloses a two-dimensional code scanning device and a computer readable storage medium. The invention realizes the standard use of the two-dimension code.

Description

Two-dimensional code scanning method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of two-dimensional codes, in particular to a two-dimensional code scanning method and device and a computer readable storage medium.
Background
With the development of the times, the two-dimensional code is applied to the aspects of daily life of users, such as subway advertisements, newspapers, train tickets, airline tickets, fast food restaurants, movie theaters, group buying websites and various commodity outsourcing packages, and the users can perform corresponding operations of payment, access links and the like by scanning the two-dimensional code, so that great convenience is brought to the life of the users. However, the two-dimensional code can be quickly spread on a social platform such as a QQ, a wechat, a microblog and the like through a static picture, so that the two-dimensional code is easily used randomly, for example, a coupon is stolen or used for many times. Therefore, the two-dimensional code has the problem of non-standard use at present.
Disclosure of Invention
The invention mainly aims to provide a two-dimensional code scanning method, a two-dimensional code scanning device and a computer readable storage medium, and aims to solve the technical problem that two-dimensional codes in the prior art are not used in a standard mode.
In order to achieve the above object, the present invention provides a two-dimensional code scanning method, which comprises the following steps:
when a code scanning instruction is received, scanning a current color two-dimensional code object, wherein different visual angles of the color two-dimensional code are correspondingly set to contain different information;
acquiring information correspondingly contained in the current color two-dimensional code object;
when the acquired information is complete color two-dimensional code information, executing corresponding operation according to the acquired information; and when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information.
Preferably, the step of scanning the current color two-dimensional code object when receiving the code scanning instruction comprises:
and when the code scanning instruction is received, calling a multi-camera to scan the current color two-dimensional code object.
Preferably, after the step of obtaining the information correspondingly included in the current color two-dimensional code object, the method further includes:
and verifying the acquired information, and identifying whether the acquired information is complete color two-dimensional code information.
Preferably, the step of verifying the acquired information and identifying whether the acquired information is complete color two-dimensional code information includes:
and judging whether the acquired information is complete color two-dimensional code information or not according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information.
Preferably, the step of judging whether the acquired information is complete color two-dimensional code information according to the acquired information and an information type corresponding to preset complete color two-dimensional code information includes:
comparing the information type corresponding to the complete color two-dimensional code information with the information type corresponding to the acquired information;
if the information type corresponding to the complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information;
and if the information type corresponding to the complete color two-dimensional code information is not consistent with the information type corresponding to the acquired information, judging that the acquired information is not complete color two-dimensional code information.
Preferably, when the current color two-dimensional code object is a planar picture corresponding to a color two-dimensional code, the acquired information is partial color two-dimensional code information.
Preferably, after the step of verifying the acquired information and identifying whether the acquired information is complete color two-dimensional code information, the method further includes:
and when the acquired information is not complete color two-dimensional code information, sending out corresponding two-dimensional code identification failure prompt information.
Preferably, the complete color two-dimensional code information includes geographical position information corresponding to the color two-dimensional code, and the step of sending out corresponding two-dimensional code identification failure prompt information when the obtained information is not complete color two-dimensional code information includes:
and sending out corresponding two-dimensional code identification failure prompt information when the acquired information does not contain the geographical position information.
In addition, in order to achieve the above object, the present invention further provides a two-dimensional code scanning device, including: the two-dimensional code scanning system comprises a memory, a processor and a two-dimensional code scanning program which is stored on the memory and can run on the processor, wherein the two-dimensional code scanning program is configured to realize the steps of the two-dimensional code scanning method.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a two-dimensional code scanning program is stored, and when executed by a processor, the two-dimensional code scanning program implements the steps of the two-dimensional code scanning method as described above.
According to the scheme provided by the invention, when a code scanning instruction is received, the current color two-dimensional code object is scanned, the information correspondingly contained by the current color two-dimensional code object is obtained, and corresponding operation is executed according to the obtained information only when the obtained information is complete color two-dimensional code information, namely only when the scanned current color two-dimensional code object is a color two-dimensional code and is not a plane picture corresponding to the color two-dimensional code. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a two-dimensional code scanning method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a two-dimensional code scanning method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: when a code scanning instruction is received, scanning a current color two-dimensional code object to obtain information correspondingly contained by the current color two-dimensional code object, and executing corresponding operation according to the obtained information only when the obtained information is complete color two-dimensional code information, namely only when the scanned current color two-dimensional code object is a color two-dimensional code and is not a plane picture corresponding to the color two-dimensional code. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized. By the technical scheme of the embodiment of the invention, the problem of non-standard use of the two-dimensional code is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the mobile terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a two-dimensional code scan program.
The processor 1001 and the memory 1005 in the mobile terminal of the present invention may be disposed in a two-dimensional code scanning apparatus, and the two-dimensional code scanning apparatus calls a two-dimensional code scanning program stored in the memory 1005 through the processor 1001 and performs the following operations:
when a code scanning instruction is received, scanning a current color two-dimensional code object, wherein different visual angles of the color two-dimensional code are correspondingly set to contain different information;
acquiring information correspondingly contained in the current color two-dimensional code object;
when the acquired information is complete color two-dimensional code information, executing corresponding operation according to the acquired information; and when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and when the code scanning instruction is received, calling a multi-camera to scan the current color two-dimensional code object.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and verifying the acquired information, and identifying whether the acquired information is complete color two-dimensional code information.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and judging whether the acquired information is complete color two-dimensional code information or not according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
comparing the information type corresponding to the complete color two-dimensional code information with the information type corresponding to the acquired information;
if the information type corresponding to the complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information;
and if the information type corresponding to the complete color two-dimensional code information is not consistent with the information type corresponding to the acquired information, judging that the acquired information is not complete color two-dimensional code information.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and when the acquired information is not complete color two-dimensional code information, sending out corresponding two-dimensional code identification failure prompt information.
Further, the processor 1001 may call the two-dimensional code scanning program stored in the memory 1005, and further perform the following operations:
and sending out corresponding two-dimensional code identification failure prompt information when the acquired information does not contain the geographical position information.
According to the scheme, when a code scanning instruction is received, the current color two-dimensional code object is scanned, information correspondingly contained in the current color two-dimensional code object is obtained, and corresponding operation is executed according to the obtained information only when the obtained information is complete color two-dimensional code information, namely only when the scanned current color two-dimensional code object is a color two-dimensional code and is not a plane picture corresponding to the color two-dimensional code. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Based on the hardware structure, the embodiment of the two-dimension code scanning method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a two-dimensional code scanning method according to a first embodiment of the present invention.
In a first embodiment, the two-dimensional code scanning method includes the following steps:
step S10, when a code scanning instruction is received, scanning a current color two-dimensional code object, wherein different viewing angles of the color two-dimensional code are correspondingly set to contain different information;
step S20, acquiring information correspondingly contained in the current color two-dimensional code object;
step S30, when the acquired information is complete color two-dimensional code information, corresponding operation is executed according to the acquired information; and when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information.
With the development of the times, the two-dimensional code is applied to the aspects of daily life of users, such as subway advertisements, newspapers, train tickets, airline tickets, fast food restaurants, movie theaters, group buying websites and various commodity outsourcing packages, and the users can perform corresponding operations of payment, access links and the like by scanning the two-dimensional code, so that great convenience is brought to the life of the users. However, the two-dimensional code can be quickly spread on a social platform such as a QQ, a wechat, a microblog and the like through a static picture, so that the two-dimensional code is easily used randomly, for example, a coupon is stolen or used for many times. Therefore, the two-dimensional code has the problem of non-standard use at present.
In this embodiment, in order to avoid the confusion of the two-dimensional code, the two-dimensional code is used in a standard manner, the two-dimensional code is designed as a color two-dimensional code, and different from a common two-dimensional code, different information, such as identity verification information, geographic position information, payment information, and vehicle pickup information, is correspondingly set at different viewing angles of the color two-dimensional code. When a user views the color two-dimensional code from different viewing angles, different two-dimensional code images corresponding to the color two-dimensional code are viewed.
When a user needs to identify a corresponding color two-dimensional code object, the user uses a mobile terminal such as a smart phone and a PAD (tablet personal computer) to perform code scanning operation on the current color two-dimensional code object, and triggers a corresponding code scanning instruction. The current color two-dimensional code object may be a color two-dimensional code or a planar picture corresponding to the color two-dimensional code. When the mobile terminal receives the code scanning instruction, the current color two-dimensional code is scanned, that is, the color two-dimensional code may be scanned, or a plane picture corresponding to the color two-dimensional code may be scanned.
Optionally, the step S10 includes:
and a, when the code scanning instruction is received, calling a multi-camera to scan the current color two-dimensional code object.
Optionally, in order to improve the code scanning efficiency of the mobile terminal, the mobile terminal is provided with a multi-view camera. When the mobile terminal receives the code scanning instruction, the mobile terminal calls the multi-camera to scan the current color two-dimensional code object.
And scanning the current color two-dimensional code object to obtain the information correspondingly contained in the current color two-dimensional code object. When a scanned current color two-dimensional code object is a color two-dimensional code, acquiring complete color two-dimensional code information corresponding to the color two-dimensional code; and when the scanned current color two-dimensional code object is a plane picture corresponding to the color two-dimensional code, obtaining partial color two-dimensional code information corresponding to the color two-dimensional code.
After the information correspondingly contained in the current color two-dimensional code object is obtained, if the obtained information is partial color two-dimensional code information, that is, the current color two-dimensional code object is probably only a plane picture corresponding to the color two-dimensional code, and the source of the current color two-dimensional code object may not be depending on the spectrum, at this time, because the obtained color two-dimensional code information is incomplete, the two-dimensional code scanning fails, and the user cannot perform corresponding operations such as payment and access linking, so that the disorder use of the two-dimensional code is avoided.
If the obtained information is complete color two-dimensional code information, that is, the current color two-dimensional code object is a color two-dimensional code instead of a plane picture, at this time, since the obtained color two-dimensional code information is complete and the two-dimensional code scanning is successful, the mobile terminal executes various operations such as corresponding payment, access link and the like according to the obtained complete color two-dimensional code information.
The two-dimensional code scanning method is exemplified by taking a reserved car taking of a stereo garage as an example.
In this example, the reserved car-taking color two-dimensional code is set at the corresponding position of the stereo garage, when a user needs to reserve car-taking, the user must reach the stereo garage area to scan the reserved car-taking color two-dimensional code to obtain corresponding complete reserved car-taking information, and then send a corresponding reserved car-taking instruction to take the car. If the user shoots the reserved car taking color two-dimensional code before, the plane picture corresponding to the reserved car taking color two-dimensional code is obtained, and then the plane picture corresponding to the reserved car taking color two-dimensional code is scanned when the user does not reach the stereo garage, complete reserved car taking information cannot be obtained at the moment, so that a corresponding reserved car taking instruction cannot be sent to take a car, the occurrence of subsequent car jam caused by the fact that the user does not reach the stereo garage after the car is taken is prevented, and the car taking order is guaranteed.
According to the scheme provided by the embodiment, when a code scanning instruction is received, a current color two-dimensional code object is scanned, information correspondingly contained in the current color two-dimensional code object is obtained, and corresponding operation is executed according to the obtained information only when the obtained information is complete color two-dimensional code information, namely only when the scanned current color two-dimensional code object is a color two-dimensional code and is not a plane picture corresponding to the color two-dimensional code. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
Further, as shown in fig. 3, a second embodiment of the two-dimensional code scanning method according to the present invention is proposed based on the first embodiment, and in this embodiment, after step S20, the method further includes:
step S40, the obtained information is verified, and whether the obtained information is complete color two-dimensional code information or not is identified; if yes, go to step S30; if not, go to step S50;
and step S50, sending out corresponding two-dimension code identification failure prompt information.
In this embodiment, after the mobile terminal scans the current color two-dimensional code object and obtains information corresponding to the current color two-dimensional code object, the obtained information is verified, and whether the obtained information is complete color two-dimensional code information is identified. Optionally, the step S40 includes:
and b, judging whether the acquired information is complete color two-dimensional code information or not according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information.
In this embodiment, the information type corresponding to the complete color two-dimensional code information is preset. The complete color two-dimensional code information contained in different color two-dimensional codes may correspond to different information types. After the information corresponding to the current color two-dimensional code object is acquired, whether the acquired information is complete color two-dimensional code information or not is judged according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information. Specifically, the step b comprises the following steps:
step b1, comparing the information type corresponding to the complete color two-dimensional code information with the information type corresponding to the acquired information;
b2, if the information type corresponding to the complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information;
step b3, if the information type corresponding to the complete color two-dimensional code information is not consistent with the information type corresponding to the acquired information, determining that the acquired information is not complete color two-dimensional code information.
After the information corresponding to the current color two-dimensional code object is acquired, the mobile terminal compares the information type corresponding to the preset complete color two-dimensional code information with the information type corresponding to the acquired information. If the information type corresponding to the preset complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information; on the contrary, if the information type corresponding to the preset complete color two-dimensional code information is inconsistent with the information type corresponding to the acquired information, it is determined that the acquired information is not complete color two-dimensional code information.
And when the mobile terminal identifies that the acquired information corresponding to the current color two-dimensional code object is complete color two-dimensional code information, executing corresponding operation according to the acquired information corresponding to the current color two-dimensional code object. And when the information corresponding to the current color two-dimensional code object, which is identified and acquired by the mobile terminal, is not complete color two-dimensional code information, sending out corresponding two-dimensional code identification failure prompt information. For example, a text prompt message such as "two-dimensional code recognition failed" is displayed on the current display interface of the mobile terminal. In another example, a voice prompt message such as "two-dimensional code recognition failed" is played through a speaker. In this embodiment, the specific form of the two-dimensional code identification failure prompt information is not limited. The two-dimension code identification failure prompt information is sent out, so that a user can timely know the two-dimension code identification failure, and the user experience is improved.
For example, when the complete color two-dimensional code information includes geographical position information corresponding to the color two-dimensional code, if the current color two-dimensional code object scanned by the mobile terminal is a planar picture corresponding to the color two-dimensional code, the obtained information corresponding to the current color two-dimensional code object does not include the geographical position information, and at this time, the mobile terminal sends out corresponding two-dimensional code identification failure prompt information.
According to the scheme provided by the embodiment, when the information contained in the acquired color two-dimensional code object is incomplete, corresponding two-dimensional code identification failure prompt information is sent out so that a user can timely know the two-dimensional code identification, and therefore user experience is further improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a two-dimensional code scanning program is stored on the computer-readable storage medium, and when executed by a processor, the two-dimensional code scanning program implements the following operations:
when a code scanning instruction is received, scanning a current color two-dimensional code object, wherein different visual angles of the color two-dimensional code are correspondingly set to contain different information;
acquiring information correspondingly contained in the current color two-dimensional code object;
when the acquired information is complete color two-dimensional code information, executing corresponding operation according to the acquired information; and when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and when the code scanning instruction is received, calling a multi-camera to scan the current color two-dimensional code object.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and verifying the acquired information, and identifying whether the acquired information is complete color two-dimensional code information.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and judging whether the acquired information is complete color two-dimensional code information or not according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
comparing the information type corresponding to the complete color two-dimensional code information with the information type corresponding to the acquired information;
if the information type corresponding to the complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information;
and if the information type corresponding to the complete color two-dimensional code information is not consistent with the information type corresponding to the acquired information, judging that the acquired information is not complete color two-dimensional code information.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and when the acquired information is not complete color two-dimensional code information, sending out corresponding two-dimensional code identification failure prompt information.
Further, the two-dimensional code scanning program, when executed by the processor, further implements the following operations:
and sending out corresponding two-dimensional code identification failure prompt information when the acquired information does not contain the geographical position information.
According to the scheme, when a code scanning instruction is received, the current color two-dimensional code object is scanned, information correspondingly contained in the current color two-dimensional code object is obtained, and corresponding operation is executed according to the obtained information only when the obtained information is complete color two-dimensional code information, namely only when the scanned current color two-dimensional code object is a color two-dimensional code and is not a plane picture corresponding to the color two-dimensional code. Therefore, the corresponding operation can be executed only by scanning the plane picture corresponding to the two-dimensional code, and the standard use of the two-dimensional code is realized.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A two-dimension code scanning method is characterized by comprising the following steps:
when a code scanning instruction is received, a multi-camera is called to scan a current color two-dimensional code object, wherein different visual angles of the color two-dimensional code are correspondingly set to contain different information;
acquiring information correspondingly contained in the current color two-dimensional code object;
when the acquired information is complete color two-dimensional code information, executing corresponding operation according to the acquired information; when the current color two-dimensional code object is a color two-dimensional code, the acquired information is complete color two-dimensional code information, and when the current color two-dimensional code object is a planar picture corresponding to the color two-dimensional code, the acquired information is partial color two-dimensional code information.
2. The two-dimensional code scanning method according to claim 1, wherein after the step of obtaining the information correspondingly contained in the current color two-dimensional code object, the method further comprises:
and verifying the acquired information, and identifying whether the acquired information is complete color two-dimensional code information.
3. The two-dimensional code scanning method as claimed in claim 2, wherein the step of verifying the acquired information and identifying whether the acquired information is complete color two-dimensional code information comprises:
and judging whether the acquired information is complete color two-dimensional code information or not according to the acquired information and the information type corresponding to the preset complete color two-dimensional code information.
4. The two-dimensional code scanning method according to claim 3, wherein the step of determining whether the acquired information is complete color two-dimensional code information according to the acquired information and an information type corresponding to preset complete color two-dimensional code information comprises:
comparing the information type corresponding to the complete color two-dimensional code information with the information type corresponding to the acquired information;
if the information type corresponding to the complete color two-dimensional code information is consistent with the information type corresponding to the acquired information, judging that the acquired information is complete color two-dimensional code information;
and if the information type corresponding to the complete color two-dimensional code information is not consistent with the information type corresponding to the acquired information, judging that the acquired information is not complete color two-dimensional code information.
5. The two-dimensional code scanning method as claimed in claim 2, wherein after the step of verifying the acquired information and identifying whether the acquired information is complete color two-dimensional code information, the method further comprises:
and when the acquired information is not complete color two-dimensional code information, sending out corresponding two-dimensional code identification failure prompt information.
6. The two-dimensional code scanning method according to claim 5, wherein the complete color two-dimensional code information includes geographical location information corresponding to the color two-dimensional code, and the step of sending out corresponding two-dimensional code identification failure prompt information when the obtained information is not the complete color two-dimensional code information includes:
and sending out corresponding two-dimensional code identification failure prompt information when the acquired information does not contain the geographical position information.
7. The utility model provides a two-dimensional code sweeps a yard device, its characterized in that, the two-dimensional code sweeps a yard device and includes: a memory, a processor, and a two-dimensional code scanning program stored on the memory and executable on the processor, the two-dimensional code scanning program configured to implement the steps of the two-dimensional code scanning method of any one of claims 1 to 6.
8. A computer-readable storage medium, wherein a two-dimensional code scanning program is stored on the computer-readable storage medium, and when executed by a processor, the two-dimensional code scanning program implements the steps of the two-dimensional code scanning method according to any one of claims 1 to 6.
CN201810249786.9A 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium Active CN108416246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810249786.9A CN108416246B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810249786.9A CN108416246B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108416246A CN108416246A (en) 2018-08-17
CN108416246B true CN108416246B (en) 2021-11-09

Family

ID=63132507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810249786.9A Active CN108416246B (en) 2018-03-23 2018-03-23 Two-dimensional code scanning method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108416246B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184380A (en) * 2011-05-10 2011-09-14 华南农业大学 Color-superposition two-dimension code system and application method thereof
CN104537771A (en) * 2014-12-02 2015-04-22 林志均 Intelligent terminal for express storage
CN104680218A (en) * 2015-02-12 2015-06-03 航天信息股份有限公司 Multi-space two-dimensional code, and generation method and decoding method of multi-space two-dimensional code
JP2016201061A (en) * 2015-04-14 2016-12-01 株式会社テララコード研究所 Two-dimensional code, and reading method for two-dimensional code
CN106384142A (en) * 2016-08-26 2017-02-08 上海慧谋网络科技有限公司 Random color two-dimensional code based anti-counterfeiting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184380A (en) * 2011-05-10 2011-09-14 华南农业大学 Color-superposition two-dimension code system and application method thereof
CN104537771A (en) * 2014-12-02 2015-04-22 林志均 Intelligent terminal for express storage
CN104680218A (en) * 2015-02-12 2015-06-03 航天信息股份有限公司 Multi-space two-dimensional code, and generation method and decoding method of multi-space two-dimensional code
JP2016201061A (en) * 2015-04-14 2016-12-01 株式会社テララコード研究所 Two-dimensional code, and reading method for two-dimensional code
CN106384142A (en) * 2016-08-26 2017-02-08 上海慧谋网络科技有限公司 Random color two-dimensional code based anti-counterfeiting method and device

Also Published As

Publication number Publication date
CN108416246A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
US10748054B2 (en) Two-dimensional code information query method, server, client, and system
US9807070B2 (en) Method, device, client and server for interaction
JP6402144B2 (en) Method and system for finding a guardian based on a two-dimensional code
CN107104996B (en) User position checking method and device, and controlled equipment access method and device
US10089490B2 (en) Business card management server, business card image acquiring apparatus, business card management method, business card image acquiring method, and storage medium
CN105721462B (en) Information pushing method and device
EP2779723B1 (en) Method and related device for accessing access point
CN112100431B (en) Evaluation method, device and equipment of OCR system and readable storage medium
CN112637842B (en) Screen projection equipment connection method, system, equipment and storage medium
US10602021B2 (en) Authentication setting system and image forming apparatus
WO2017031361A1 (en) Method, client terminal and server for establishing communication
CN112135186B (en) Screen projection method, device, equipment and storage medium based on small program
CN105515887B (en) application testing method, server and system
US20140034722A1 (en) Method of Delivering Personalized Digital Events from a Single Scannable Two-Dimensional Barcode by Executing Computer-Executable Instructions Stored On a Non-Transitory Computer-Readable Medium
CN108509818B (en) Two-dimensional code scanning method and device and computer readable storage medium
CN107742344B (en) Access control method, system and storage medium
CN115018565A (en) Advertisement media image identification method, system, equipment and readable storage medium
CN109104430B (en) Identity authentication method, identity authentication device and computer readable storage medium
CN111047284A (en) Contract signing method and device and computer equipment
CN108416246B (en) Two-dimensional code scanning method and device and computer readable storage medium
CN111901180A (en) Multi-tenant terminal generation method, device, equipment and storage medium of education system
CN108363937B (en) Two-dimensional code scanning method and device and computer readable storage medium
CN115116158A (en) Sign-in control method, device and storage medium
CN109493099B (en) Confirmation method of house purchasing qualification, server and storage medium
CN109376809B (en) Method and device for realizing secure payment by using two-dimension code

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