CN111740969B - Method, device, equipment and storage medium for verifying electronic certificate information - Google Patents

Method, device, equipment and storage medium for verifying electronic certificate information Download PDF

Info

Publication number
CN111740969B
CN111740969B CN202010538342.4A CN202010538342A CN111740969B CN 111740969 B CN111740969 B CN 111740969B CN 202010538342 A CN202010538342 A CN 202010538342A CN 111740969 B CN111740969 B CN 111740969B
Authority
CN
China
Prior art keywords
short message
verification
area
electronic certificate
code
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
CN202010538342.4A
Other languages
Chinese (zh)
Other versions
CN111740969A (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.)
Beijing Kuxun Technology Co Ltd
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010538342.4A priority Critical patent/CN111740969B/en
Publication of CN111740969A publication Critical patent/CN111740969A/en
Application granted granted Critical
Publication of CN111740969B publication Critical patent/CN111740969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • 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/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Toxicology (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for verifying electronic certificate information, and belongs to the technical field of computers. The method comprises the following steps: acquiring a short message corresponding to the target electronic certificate information; identifying the short message to obtain a content area and size information of the short message, wherein the content area comprises a graphic code area and a verification area; determining the identification direction of the graphic code in the graphic code area based on the verification area; scanning the graphic code area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code; and verifying the target electronic certificate information based on the verification code. According to the verification method of the electronic certificate information, the scanning equipment identifies the verification code corresponding to the target electronic certificate information, the target electronic certificate information is verified based on the verification code, the user does not need to manually input the verification code to obtain the verification code, the time cost for obtaining the verification code can be saved, the accuracy of the obtained verification code is improved, and the verification efficiency of the verification code can be improved.

Description

Method, device, equipment and storage medium for verifying electronic certificate information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for verifying electronic certificate information.
Background
With the continuous development of computer technology, more and more application programs provide a function of acquiring electronic certificate information online, and after a target object acquires the electronic certificate information online, verification can be performed based on the electronic certificate information.
In the related art, an application program for acquiring electronic certificate information is installed and run on an electronic device, a target object may acquire the electronic certificate information in the application program, and the electronic device generates an image two-dimensional code based on the electronic certificate information. For example, taking the electronic certificate information as an entrance ticket of a target scene as an example, the target object purchases the entrance ticket of the target scene in the application program, and the electronic device generates the image two-dimensional code based on the entrance ticket. And when the target object reaches the target scenic spot, the image two-dimensional code is displayed to the merchant, and the verification of the electronic certificate information can be completed. When the target object is in a weak network environment, the image two-dimensional code corresponding to the entrance ticket cannot be opened, so that the verification can be performed in a short message verification mode, namely, a short message verification code with numbers or letters is issued to the target object, and the target object inputs the short message verification code into a verification system to complete the verification of the electronic certificate information.
However, in order to improve the security of the electronic certificate information, a longer and more complex short message verification code needs to be generated, which correspondingly results in an increase in the time for inputting the verification system, and also results in a waste of time cost due to the need of re-inputting once an error is input, thereby reducing the verification efficiency.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for verifying electronic certificate information, which can be used for solving the problems in the related art. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for verifying electronic credential information, which is applied to a scanning device, and the method includes:
acquiring a short message corresponding to the target electronic certificate information;
identifying the short message to obtain a content area and size information of the short message, wherein the content area comprises a graphic code area and a verification area;
determining the identification direction of the graphic code in the graphic code area based on the verification area;
scanning the graphic code area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code;
and verifying the target electronic certificate information based on the verification code.
In a possible implementation manner, the verifying the target electronic certificate information based on the verification code includes:
determining a target digit corresponding to the graphic code based on the check area;
and responding to the consistency of the digits of the verification code and the target digits in the verification area, sending the verification code to a verification server, and verifying the target electronic certificate information by the verification server based on the verification code.
In a possible implementation manner, the identifying the short message to obtain the content area of the short message includes:
determining a starting identifier and an ending identifier included in the short message based on the short message;
and identifying the content between the starting identifier and the ending identifier as a content area of the short message.
In a possible implementation manner, the determining, based on the short message, a start identifier and an end identifier included in the short message includes:
determining the background color of the short message frame;
responding to the background color of the short message frame as a first color, and determining a starting identifier and an ending identifier included in the short message in a positive inscription identification mode;
and determining a starting identifier and an ending identifier included in the short message in an intaglio identification mode in response to the background color of the short message box being a second color.
In a possible implementation manner, the scanning the graphic code area line by line according to the identification direction and the size information to obtain the verification code corresponding to the graphic code includes:
scanning the graphic code area line by line according to the identification direction and the size information, and converting the graphic code into a corresponding code;
and forming the code into a verification code corresponding to the graphic code area.
In a second aspect, an embodiment of the present application provides a method for verifying electronic credential information, which is applied to an electronic device, where an application program for acquiring target electronic credential information is installed and run in the electronic device, and the electronic device is in communication connection with a target server through a wired or wireless network, and the method includes:
displaying an electronic voucher information candidate interface, wherein at least one candidate electronic voucher information is displayed in the electronic voucher information candidate interface;
responding to the fact that any candidate electronic voucher information in the electronic voucher information candidate interface is selected, and taking the selected candidate electronic voucher information as target electronic voucher information;
acquiring a short message corresponding to the target electronic certificate information, wherein the content area of the short message comprises a graphic code area and a verification area;
and displaying the short message so that the scanning equipment can acquire the verification code corresponding to the short message based on the short message.
In a possible implementation manner, the obtaining of the short message corresponding to the target electronic certificate information includes:
sending a short message acquisition request to a target server, wherein the short message acquisition request carries an identifier of the target electronic certificate information;
and receiving a short message returned by the target server based on the short message acquisition request, wherein the short message returned by the target server corresponds to the identifier of the target electronic certificate information.
In a third aspect, an embodiment of the present application provides an apparatus for verifying electronic credential information, where the apparatus includes:
the acquisition module is used for acquiring a short message corresponding to the target electronic certificate information;
the identification module is used for identifying the short message to obtain the content area and the size information of the short message, wherein the content area comprises a graphic code area and a verification area;
the determining module is used for determining the identification direction of the graphic code in the graphic code area based on the checking area;
the scanning module is used for scanning the graphic code area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code;
and the verification module is used for verifying the target electronic certificate information based on the verification code.
In a possible implementation manner, the verification module is configured to determine a target digit corresponding to the graphic code based on the check area;
and responding to the consistency of the digits of the verification code and the target digits in the verification area, sending the verification code to a verification server, and verifying the target electronic certificate information by the verification server based on the verification code.
In a possible implementation manner, the identification module is configured to determine, based on the short message, a start identifier and an end identifier included in the short message;
and identifying the content between the starting identifier and the ending identifier as a content area of the short message.
In a possible implementation manner, the identification module is configured to determine a background color of the short message box;
responding to the first color of the background color of the short message frame, and determining a starting identifier and an ending identifier included in the short message in a positive identification mode;
and determining a starting identifier and an ending identifier included in the short message in an intaglio identification mode in response to the background color of the short message box being a second color.
In a possible implementation manner, the scanning module is configured to scan the graphic code area line by line according to the identification direction and the size information, and convert the graphic code into a corresponding code;
and forming the code into a verification code corresponding to the graphic code area.
In a fourth aspect, an embodiment of the present application provides an apparatus for verifying electronic credential information, where the apparatus includes:
the display module is used for displaying an electronic certificate information candidate interface, and at least one candidate electronic certificate information is displayed in the electronic certificate information candidate interface;
the selection module is used for responding to the fact that any candidate electronic certificate information in the electronic certificate information candidate interface is selected, and taking the selected candidate electronic certificate information as target electronic certificate information;
the acquisition module is used for acquiring a short message corresponding to the target electronic certificate information, and the content area of the short message comprises a graphic code area and a verification area;
the display module is further configured to display the short message, so that the scanning device obtains the verification code corresponding to the short message based on the short message.
In a possible implementation manner, the obtaining module is configured to send a short message obtaining request to a target server, where the short message obtaining request carries an identifier of the target electronic certificate information;
and receiving a short message returned by the target server based on the short message acquisition request, wherein the short message returned by the target server corresponds to the identifier of the target electronic certificate information.
In a fifth aspect, a scanning device is provided, which includes a processor and a memory, where at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement any one of the above methods for verifying electronic certificate information.
In a sixth aspect, an electronic device is provided, which includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement any one of the above methods for verifying electronic credential information.
In a seventh aspect, a computer-readable storage medium is further provided, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement any one of the above methods for verifying electronic credential information.
In an eighth aspect, a computer program product is provided, where at least one program code is stored in the computer program product, and the at least one program code is loaded and executed by a processor to implement any one of the above methods for verifying electronic certificate information.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
according to the technical scheme provided by the embodiment of the application, the scanning equipment identifies the short message corresponding to the target electronic certificate information, so that the verification code corresponding to the short message is obtained, the target electronic certificate information is verified based on the verification code, the verification code is obtained without manual input of a user, the time cost for obtaining the verification code can be saved, the accuracy of the obtained verification code is improved, and the verification efficiency of the verification code can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a method for verifying electronic credential information according to an embodiment of the present application;
fig. 2 is a flowchart of a method for verifying electronic certificate information according to an embodiment of the present application;
fig. 3 is a schematic diagram of a short message provided in an embodiment of the present application;
fig. 4 is a schematic diagram of another short message provided in the embodiment of the present application;
fig. 5 is a flowchart of acquiring a short message corresponding to electronic credential information according to an embodiment of the present application;
fig. 6 is a flowchart of a method for verifying electronic certificate information according to an embodiment of the present application;
fig. 7 is a flowchart of a method for verifying electronic certificate information according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for verifying electronic certificate information according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for verifying electronic certificate information according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a scanning apparatus provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a method for verifying electronic credential information according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes: a scanning device 101, an electronic device 102, and a server 103.
The scanning device 101 may be a handheld scanner, a fixed scanner, or a platform scanner, and the embodiment of the present application does not limit the type of the scanning device 101. The scanning device 101 acquires a short message corresponding to the target electronic certificate information based on the short message displayed by the electronic device 102, and identifies the short message to obtain a content area and size information of the short message, wherein the content area includes a graphic code area and a verification area. And determining the identification direction of the graphic code according to the verification area, and the scanning device 101 is further configured to scan the graphic code area line by line based on the identification direction and the size information, so as to obtain the verification code corresponding to the graphic code. The scanning device 101 verifies the target electronic credential information based on the verification code.
The electronic device 102 may be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, and a laptop computer. The electronic device 102 runs an application program supporting obtaining of electronic certificate information, the electronic device 102 displays an electronic certificate information candidate interface, when any candidate electronic certificate information in the electronic certificate information candidate interface is selected, the selected candidate electronic certificate information is used as target electronic certificate information, and the electronic device 102 obtains a short message corresponding to the target electronic certificate information. The electronic device 102 is further configured to display the short message, so that the scanning device 101 obtains the verification code corresponding to the short message based on the short message.
The electronic device 102 may be generally referred to as one of a plurality of electronic devices, and the embodiment of the present application is illustrated by the electronic device 102. Those skilled in the art will appreciate that the number of electronic devices 102 described above may be greater or fewer. For example, the number of the electronic devices 102 may be only one, or the number of the electronic devices 102 may be tens or hundreds, or more, and the number and the device type of the electronic devices 102 are not limited in the embodiment of the present application.
The server 103 may be one server, may be multiple servers, and may be at least one of a cloud computing platform and a virtualization center. The server 103 may communicate with the electronic device 102 over a wired network or a wireless network. The server 103 may receive a short message acquisition request sent by the electronic device 102, and the server 103 may also send a short message corresponding to the target electronic credential information to the electronic device 102. The server 103 may also receive an authentication code sent by the scanning device 101, based on which the target electronic credential information is authenticated. Alternatively, the number of the servers 103 may be more or less, and the embodiment of the present application does not limit this. Of course, the server 103 may also include other functional servers in order to provide more comprehensive and diversified services.
Based on the foregoing implementation environment, an embodiment of the present application provides a method for verifying electronic credential information, which is implemented by the scanning device 101 in fig. 1, taking a flowchart of the method for verifying electronic credential information provided in the embodiment of the present application as an example, as shown in fig. 2. As shown in fig. 2, the method comprises the steps of:
in step 201, a short message corresponding to the target electronic certificate information is obtained.
In the embodiment of the application, after the electronic device obtains the short message corresponding to the target electronic certificate information, the short message corresponding to the target electronic certificate information is displayed, so that the scanning device can obtain the short message corresponding to the electronic certificate information. For example, the scanning device is a handheld scanner, and the scanning hole of the scanning device can be aligned to the short message displayed on the electronic device, so that the scanning device can acquire the short message.
Fig. 3 is a schematic diagram of a short message provided in an embodiment of the present application, and in fig. 3, a target electronic certificate information is taken as an example of a ticket in a certain scenic spot. As shown in fig. 3, the target object purchases 3 tickets in the scenic spot successfully in a short message manner, and the corresponding verification code of the ticket is the verification code in fig. 3.
In step 202, the short message is identified to obtain a content area and size information of the short message, where the content area includes a graphic code area and a verification area.
In the embodiment of the present application, the step 2021 to the step 2022 may be performed to identify the short message to obtain the content area of the short message.
Step 2021, determining a start identifier and an end identifier included in the short message based on the short message.
In a possible implementation manner, the short message may include a text area in addition to the content area. As shown in fig. 3, "you successfully purchase 3 tickets of the scenic spot by short message, the verification code is: the term "is a text area, and of course, the text area may also be other text contents, and the content of the text area is not limited in the embodiment of the present application.
In a possible implementation manner, there may be the following steps 1 to 3 to determine the start identifier and the end identifier included in the short message.
Step 1, determining the background color of the short message box.
In a possible implementation manner, when the scanning device identifies the short message corresponding to the target electronic certificate information, the scanning device identifies the short message box in which the short message is located, so that the background color of the short message box can be determined, and the background color of the short message box is generally divided into two colors, namely white and a color other than white.
And step 2, responding to the first color of the background color of the short message box, and determining a starting identifier and an ending identifier included in the short message according to a positive inscription identification mode.
In one possible implementation manner, in response to that the background color of the short message box is white, the start identifier and the end identifier included in the short message are determined in a positive identification manner. Wherein, the male engraving is to engrave characters or patterns into convex shapes, and the male engraving identification is to identify the convex shapes. Therefore, when the short message is identified, the protruding short message can be identifiedThe message, so that the start identifier and the end identifier can be determined in the protruding short message. The start identifier and the end identifier are used to identify a start position and an end position of the content area. The start identifier is as shown in FIG. 3
Figure BDA0002537864490000081
An end identifier of
Figure BDA0002537864490000082
Of course, the start identifier and the end identifier may also be expressed in other ways, which is not limited in this embodiment of the application.
And 3, responding to the second color of the background color of the short message frame, and determining the starting identifier and the ending identifier included in the short message according to the nicking identification mode.
In one possible implementation manner, in response to that the background color of the short message box is a color other than white, such as green, the start identifier and the end identifier included in the short message are determined in an intaglio identification manner. Wherein, the intaglio is to engrave characters or patterns into a concave shape, and the intaglio identification is to identify the concave content. Therefore, when the identification is carried out, the concave short message can be identified, so that the starting identifier and the ending identifier can be determined in the concave short message.
In a possible implementation manner, without determining the background color of the short message box, one of the positive identification and the negative identification is directly selected to identify the start identifier and the end identifier included in the short message, and if the start identifier and the end identifier are not identified, the other identification is used to continue to identify the start identifier and the end identifier included in the short message. For example, the positive identification mode is first selected to identify the start identifier and the end identifier included in the short message, and when the positive identification mode does not identify the start identifier and the end identifier, the negative identification mode is then selected to identify the start identifier and the end identifier included in the short message until the start identifier and the end identifier included in the short message are identified.
Step 2022, identify the content between the start identifier and the end identifier as the content area of the sms message.
In a possible implementation manner, after the start identifier and the end identifier of the short message are identified in the step 2021, the content between the start identifier and the end identifier is determined as a content area, where the content area includes a graphic code area and a verification area. As shown in fig. 3, the check area is an area of white square and black square in fig. 3, and the area formed by the graphic code is an area of the graphic code.
In a possible implementation manner, when the scanning device identifies the short message, the scanning device needs to measure size information of the short message, where the size information includes a width and a height of the short message, the width of the short message is a width of a short message box in which the short message is located, and the height of the short message is a height of the short message box in which the short message is located. As shown in fig. 3, if the width of the short message frame in which the short message is located is 10 cm and the height is 5 cm, the size information of the short message may be [ 10, 5 ]. Of course, the size information may be larger or smaller, and the size information of the short message is not limited in this embodiment.
In step 203, the identification direction of the graphic code in the graphic code area is determined based on the check area.
In this embodiment of the application, based on the content area of the short message identified in step 202, the position of the verification area in the content area is determined. The identification direction of the graphic code in the graphic code area is determined based on the position of the verification area in the content area, and there may be the following two cases.
In the first case, if the position of the verification area is behind the graphic code area, the recognition directions of the graphic codes in the graphic code area can be sequentially recognized according to the sequence from front to back. If the position of the verification area is before the graphic code area, the identification directions of the graphic codes in the graphic code area can be sequentially identified from back to front.
And in the second situation, if the position of the verification area is behind the graphic code area, the identification directions of the graphic codes in the graphic code area can be sequentially identified from back to front. If the position of the verification area is before the graphic code area, the identification directions of the graphic codes in the graphic code area can be sequentially identified according to the sequence from front to back.
It should be noted that, any of the above cases may be selected to determine the identification direction of the graphic code in the graphic code area based on the position of the verification area, which is not limited in the embodiment of the present application.
Illustratively, the identification direction of the graphic code in the graphic code area is determined based on the position of the check area in the manner described in case one. As shown in fig. 3, if the position of the verification area is behind the graphic code area, the identification directions of the graphic codes in the graphic code area of the short message shown in fig. 3 are sequentially identified from front to back. As shown in fig. 4, which is a schematic view of another short message provided in the embodiment of the present application, in fig. 4, a position of a verification area in a content area in the short message is before a graphic code area, and therefore, identification directions of the graphic codes in the graphic code area of the short message shown in fig. 4 are sequentially identified from back to front.
In step 204, the graphic code area is scanned line by line according to the identification direction and the size information, and the verification code corresponding to the graphic code is obtained.
In this embodiment, the step 2041 to the step 2042 may be performed to obtain the verification code corresponding to the graphic code by scanning the graphic code area line by line according to the identification direction and the size information.
Step 2041, according to the identification direction and size information, scanning the graphic code area line by line, and converting the graphic code into a corresponding code.
In a possible implementation manner, each graphic code in the graphic code area corresponds to a code, and the type of the code may be a number, a letter, or another type of code, and the type of the code is not limited in the embodiment of the present application.
In one possible implementation, the figureThe type of code corresponding to the graphic code in the graphic code region is, for example, a number, e.g.,
Figure BDA0002537864490000101
in correspondence with the number 0, the number,
Figure BDA0002537864490000102
in correspondence with the number 1, the number,
Figure BDA0002537864490000103
in correspondence with the number 2, the number,
Figure BDA0002537864490000104
in correspondence with the number 3, the number,
Figure BDA0002537864490000105
in correspondence with the number 4, the number,
Figure BDA0002537864490000106
in correspondence with the number 5 there is shown,
Figure BDA0002537864490000107
corresponding to the number 6, # corresponds to the number 7,
Figure BDA0002537864490000108
corresponding to the number 8, -to the number 9. And sequentially identifying each graphic code in the graphic code area in the short message so as to obtain the number corresponding to each graphic code.
It should be noted that the numbers corresponding to the graphic codes in the graphic code area are not necessarily in the above order, and may be in other orders, as long as one number uniquely corresponds to one graphic code, which is not limited in the embodiment of the present application.
Illustratively, the graphic code area in fig. 3 is scanned line by line in the recognition sequence from front to back based on the corresponding number of each graphic code, so as to convert the graphic code in fig. 3 into the corresponding codes, that is, the code corresponding to each graphic code in fig. 3 is 1, 2, 4, 3, 5, 8, 7, 6, 9, 7, 6, 1, 7, 6, 0, 4, 0, 9, 6, 0, 2, respectively. The graphic code area in fig. 4 is scanned line by line in the recognition sequence from back to front, so as to convert the graphic code in fig. 4 into corresponding codes, that is, the code corresponding to each graphic code in fig. 4 is 2, 0, 6, 9, 0, 4, 0, 6, 7, 1, 6, 7, 9, 6, 7, 8, 5, 3, 4, 2, 1.
It should be further noted that the short message shown in fig. 3 and fig. 4 is only an example of the embodiment of the present application, and the graphic code in the short message may be longer or shorter, which is not limited in the embodiment of the present application.
And 2042, forming the codes into verification codes corresponding to the graphic code areas.
In a possible implementation manner, based on the code corresponding to each graphic code obtained in step 2041, the code corresponding to each graphic code is formed into a verification code corresponding to the graphic code region.
For example, the code corresponding to each graphic code in fig. 3 constitutes 1243587698769976976611111760409602 corresponding to the graphic code area in fig. 3; the code corresponding to each graphic code in fig. 4 constitutes 2069040671111166796799678967853421 of the verification code corresponding to the graphic code area in fig. 4.
In step 205, the target electronic credential information is verified based on the verification code.
In a possible implementation manner, based on the verification code obtained in step 204, the scanning device may send the verification code to a verification server, and the verification server verifies the target electronic certificate information based on the verification code.
In a possible implementation manner, a target digit corresponding to the graphic code is determined based on the verification area, the verification code is sent to the verification server in response to the fact that the digit of the verification code obtained in the step 204 is consistent with the target digit in the verification area, and the verification server verifies the target electronic certificate information based on the verification code.
In a possible implementation manner, based on the check area, the process of determining the target bit number corresponding to the graphic code is as follows: the check area comprises white squares and black squares, wherein the number of the white squares corresponds to the number of the units of the target digit of the graphic code, and the number of the black squares corresponds to the number of the tens of the target digit of the graphic code. Alternatively, the number of white squares corresponds to the value of ten digits of the target digit of the graphic code, and the number of black squares corresponds to the value of one digit of the target digit of the graphic code. This is not limited in the examples of the present application. And determining the target digit corresponding to the graphic code based on the number of the white squares and the black squares in the check area.
Illustratively, the number of white squares of the check area in fig. 3 corresponds to the number of ones of the target number of bits of the graphic code, and the number of black squares corresponds to the number of tens of the target number of bits of the graphic code, so that it can be determined that the target number of bits of the graphic code in fig. 3 is 34.
In a possible implementation manner, the number of the verification code is determined based on the verification code corresponding to the graphic code region obtained in the step 204, the verification code is sent to a verification server in response to the fact that the number of bits of the verification code is consistent with the target number of bits in the verification region, and the verification server verifies the target electronic certificate information based on the verification code; and if the digit of the verification code is not consistent with the target digit in the verification area, re-determining the verification code corresponding to the graphic code area until the verification code corresponding to the graphic code area is consistent with the target digit in the verification area.
According to the method, the scanning equipment identifies the short message corresponding to the target electronic certificate information so as to obtain the verification code corresponding to the short message, the target electronic certificate information is verified based on the verification code, the verification code is obtained without manual input of a user, the time cost for obtaining the verification code can be saved, the accuracy of the obtained verification code is improved, and the verification efficiency of the verification code can be improved.
Fig. 5 is a flowchart illustrating a method for acquiring a short message corresponding to target electronic credential information according to an embodiment of the present application, where the method is described by the electronic device 102 in fig. 1. Referring to fig. 5, the method includes:
in step 501, an electronic credential information candidate interface is presented in which at least one candidate electronic credential information is displayed.
In one possible implementation manner, an application program for acquiring the target electronic certificate information is installed and operated in the electronic equipment. Taking the target electronic certificate information as the ticket of the target scenery spot as an example, the target object can input the address of the target scenery spot in the application program, click the search button, respond to the search operation of the target object, display the electronic certificate information candidate interface corresponding to the target scenery spot, and display at least one piece of candidate electronic certificate information in the electronic certificate information candidate interface.
It should be noted that the target electronic certificate information may be a sight spot ticket, a movie ticket, or another type of ticket, which is not limited in the embodiment of the present application.
In step 502, in response to any one of the candidate electronic voucher information in the electronic voucher information candidate interface being selected, the selected candidate electronic voucher information is taken as the target electronic voucher information.
In one possible implementation manner, after the electronic device displays at least one candidate electronic credential information, the target object may select one candidate electronic credential information from the at least one candidate electronic credential information, and in response to a selection of any one candidate electronic credential information of the at least one candidate electronic credential information, the electronic device determines the selected candidate electronic credential information as the target electronic credential information.
In step 503, a short message corresponding to the target electronic certificate information is obtained, and the content area of the short message includes a graphic code area and a verification area.
In a possible implementation manner, after the electronic device determines the target electronic certificate information, the following steps 5031 to 5032 may obtain a short message corresponding to the target electronic certificate information.
Step 5031, the electronic device sends a short message acquisition request to the target server, where the short message acquisition request carries an identifier of the target electronic certificate information.
In a possible implementation manner, after determining the target electronic certificate information, the electronic device determines an identifier of the target electronic certificate information, generates a short message acquisition request based on the identifier of the target electronic certificate information, and sends the short message acquisition request to the target server.
Step 5032, the electronic device receives a short message returned by the target server based on the short message acquisition request, and the short message returned by the target server corresponds to the identifier of the target electronic certificate information.
In a possible implementation manner, after receiving a short message acquisition request sent by an electronic device, a target server analyzes the short message acquisition request to obtain an identifier of target electronic certificate information carried in the short message acquisition request, and determines a short message corresponding to the target electronic certificate information based on the identifier of the target electronic certificate information. And after obtaining the short message, the target server directly sends the short message to the electronic equipment. That is, the electronic device receives the short message returned by the target server based on the short message acquisition request.
It should be noted that the target server and the verification server in step 205 may be the same server or different servers, which is not limited in this embodiment of the present application.
In step 504, the short message is displayed for the scanning device to obtain the verification code corresponding to the short message based on the short message.
In a possible implementation manner, after receiving a short message corresponding to target electronic certificate information returned by a target server, the electronic device displays the short message on a display interface of the electronic device, so that the scanning device obtains a verification code corresponding to the short message based on the short message.
According to the method, the electronic equipment determines the target electronic certificate information, the short message corresponding to the electronic certificate information is acquired, and the short message is displayed so that the scanning equipment can acquire the verification code corresponding to the short message based on the short message, so that the time cost for acquiring the verification code can be saved, the accuracy of the acquired verification code is improved, and the verification efficiency of the verification code can be improved.
Fig. 6 is a flowchart illustrating a method for verifying electronic credential information according to an embodiment of the present application, where the method is illustrated by interaction between the scanning device 101 and the electronic device 102 in fig. 1. Referring to fig. 6, the method includes:
in step 601, the electronic device presents an electronic credential information candidate interface in which at least one candidate electronic credential information is displayed.
In the embodiment of the present application, the process of displaying the candidate interface of the electronic credential information by the electronic device is the same as the process in step 501, and is not described herein again.
In step 602, in response to any candidate electronic credential information in the electronic credential information candidate interface being selected, the electronic device takes the selected candidate electronic credential information as the target electronic credential information.
In the embodiment of the present application, the process of determining the target electronic credential information by the electronic device is the same as the process in step 502, and is not described herein again.
In step 603, the electronic device obtains a short message corresponding to the target electronic certificate information, where a content area of the short message includes a graphic code area and a verification area.
In this embodiment of the application, the process of acquiring, by the electronic device, the short message corresponding to the target electronic credential information is consistent with the process in step 503, and is not described herein again.
In step 604, the electronic device displays the short message for the scanning device to obtain the verification code corresponding to the short message based on the short message.
In the embodiment of the present application, the process of displaying the short message by the electronic device is the same as the process in step 504, and is not described herein again.
In step 605, the scanning device obtains a short message corresponding to the target electronic certificate information.
In this embodiment of the application, the process of acquiring the short message corresponding to the target electronic credential information by the scanning device is the same as the process in step 201, and is not described herein again.
In step 606, the scanning device identifies the short message to obtain the content area and the size information of the short message, wherein the content area includes a graphic code area and a verification area.
In this embodiment, the process of identifying the short message by the scanning device to obtain the content area and the size information of the short message is the same as the process in step 202, and is not described herein again.
In step 607, the scanning device determines the identification direction of the graphic code in the graphic code area based on the check area.
In this embodiment, the process of determining the identification direction of the graphic code in the graphic code area by the scanning device is consistent with the process in step 203, and is not described herein again.
In step 608, the scanning device scans the graphic code area line by line according to the identification direction and the size information to obtain the verification code corresponding to the graphic code.
In this embodiment of the application, a process of performing line-by-line scanning on the region of the graphic code by the scanning device according to the identification direction and the size information to obtain the verification code corresponding to the graphic code is consistent with the process in step 204, and is not described herein again.
In step 609, the scanning device verifies the target electronic credential information based on the verification code.
In the embodiment of the present application, the process of the scanning device verifying the target electronic certificate information based on the verification code is the same as the process in step 205, and is not described herein again.
In an exemplary embodiment, the scanning device obtains the verification result, sends the verification result to the electronic device, and the electronic device displays the verification result.
According to the method, the electronic equipment determines the target electronic certificate information, the short message corresponding to the electronic certificate information is acquired and displayed, the scanning equipment identifies the short message corresponding to the target electronic certificate information, so that the verification code corresponding to the short message is acquired, the target electronic certificate information is verified based on the verification code, the verification code is acquired without manual input of a user, the time cost for acquiring the verification code can be saved, the accuracy of the acquired verification code is improved, and the verification efficiency of the verification code can be improved.
Fig. 7 is a flowchart illustrating a method for verifying electronic certificate information according to an embodiment of the present application. Referring to fig. 7, the short message corresponding to the electronic certificate information is identified, the start identifier and the end identifier are identified according to the positive identification mode, and if the start identifier and the end identifier are not identified, the start identifier and the end identifier are identified by trying the negative identification mode. If the starting identifier and the ending identifier are identified, identifying a verification area, determining the identification direction of the graphic code in the graphic code area based on the verification area, determining the size information of the short message, identifying the content area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code area, reading the target digit of the verification area after the content area is identified, carrying out correctness check on the target digit and the verification code corresponding to the graphic code area, carrying out the subsequent verification process of the electronic certificate information if the verification is successful, and re-identifying the short message if the verification is not successful.
Fig. 8 is a schematic structural diagram of an apparatus for verifying electronic certificate information according to an embodiment of the present application, and as shown in fig. 8, the apparatus includes:
an obtaining module 801, configured to obtain a short message corresponding to target electronic certificate information;
an identification module 802, configured to identify the short message to obtain a content area and size information of the short message, where the content area includes a graphic code area and a verification area;
a determining module 803, configured to determine, based on the verification area, an identification direction of the graphic code in the graphic code area;
a scanning module 804, configured to scan the graphic code area line by line according to the identification direction and the size information, and obtain a verification code corresponding to the graphic code;
and the verification module 805 is configured to verify the target electronic certificate information based on the verification code.
In a possible implementation manner, the verification module 805 is configured to determine, based on the check area, a target bit number corresponding to the graphic code;
and responding to the consistency of the digits of the verification code and the target digits in the verification area, sending the verification code to a verification server, and verifying the target electronic certificate information by the verification server based on the verification code.
In a possible implementation manner, the identifying module 802 is configured to determine, based on the short message, a start identifier and an end identifier included in the short message;
and identifying the content between the starting identifier and the ending identifier as the content area of the short message.
In a possible implementation manner, the identification module 802 is configured to determine a background color of the short message box;
responding to the background color of the short message frame as a first color, and determining a starting identifier and an ending identifier included in the short message in a positive inscription identification mode;
and determining a starting identifier and an ending identifier included in the short message in an intaglio identification mode in response to the background color of the short message box being a second color.
In a possible implementation manner, the scanning module 804 is configured to scan the graphic code area line by line according to the identification direction and the size information, and convert the graphic code into a corresponding code;
and forming the code into a verification code corresponding to the graphic code area.
According to the device, the scanning equipment identifies the short message corresponding to the target electronic certificate information, so that the verification code corresponding to the short message is obtained, the target electronic certificate information is verified based on the verification code, the verification code is obtained without manual input of a user, the time cost for obtaining the verification code can be saved, the accuracy of the obtained verification code is improved, and the verification efficiency of the verification code can be improved.
Fig. 9 is a schematic structural diagram of an apparatus for verifying electronic certificate information according to an embodiment of the present application, and as shown in fig. 9, the apparatus includes:
a display module 901, configured to display an electronic credential information candidate interface, where at least one candidate electronic credential information is displayed in the electronic credential information candidate interface;
a selecting module 902, configured to, in response to selection of any one of the candidate electronic credential information in the electronic credential information candidate interface, take the selected candidate electronic credential information as target electronic credential information;
an obtaining module 903, configured to obtain a short message corresponding to the target electronic credential information, where a content area of the short message includes a graphic code area and a verification area;
the displaying module 901 is further configured to display the short message, so that the scanning device obtains the verification code corresponding to the short message based on the short message.
In a possible implementation manner, the obtaining module 903 is configured to send a short message obtaining request to a target server, where the short message obtaining request carries an identifier of the target electronic certificate information;
and receiving the short message returned by the target server based on the short message acquisition request, wherein the short message returned by the target server corresponds to the identifier of the target electronic certificate information.
According to the device, the target electronic certificate information is determined by the electronic equipment, the short message corresponding to the electronic certificate information is acquired, and the short message is displayed so that the scanning equipment can acquire the verification code corresponding to the short message based on the short message, so that the time cost for acquiring the verification code can be saved, the accuracy of the acquired verification code is improved, and the verification efficiency of the verification code can be improved.
It should be noted that: the above-mentioned electronic certificate information verifying apparatus provided in the above-mentioned embodiment is only exemplified by the division of the above-mentioned functional modules when verifying the electronic certificate information, and in practical applications, the above-mentioned function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-mentioned functions. In addition, the verification apparatus for electronic credential information and the verification method embodiment for electronic credential information provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 10 is a schematic structural diagram of a scanning device according to an embodiment of the present application, where the scanning device 1000 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where the one or more memories 1002 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the method for verifying the electronic certificate information provided by the foregoing method embodiments. Certainly, the scanning device 1000 may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the scanning device 1000 may further include other components for implementing device functions, which are not described herein again.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 1100 may be: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compressed standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compressed standard Audio Layer 4) player, a notebook computer or a desktop computer. Electronic device 1100 may also be referred to by other names as user equipment, portable electronic device, laptop electronic device, desktop electronic device, and so on.
In general, the electronic device 1100 includes: one or more processors 1101 and one or more memories 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1102 is used to store at least one instruction for execution by processor 1101 to implement the method of verifying electronic credential information provided by method embodiments herein.
In some embodiments, the electronic device 1100 may also optionally include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, display screen 1105, camera assembly 1106, audio circuitry 1107, positioning assembly 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1105 may be one, providing the front panel of the electronic device 1100; in other embodiments, the display screens 1105 may be at least two, respectively disposed on different surfaces of the electronic device 1100 or in a folded design; in some embodiments, the display 1105 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of the electronic device 1100. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker and can also be a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
The positioning component 1108 is used to locate a current geographic Location of the electronic device 1100 for navigation or LBS (Location Based Service). The Positioning component 1108 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union galileo System.
The power supply 1109 is used to provide power to the various components within the electronic device 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1100 also includes one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: acceleration sensor 1111, gyro sensor 1112, pressure sensor 1111, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
The acceleration sensor 1111 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic device 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the display screen 1105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the electronic device 1100, and the gyro sensor 1112 may acquire a 3D motion of the user on the electronic device 1100 in cooperation with the acceleration sensor 1111. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1111 may be disposed on a side bezel of the electronic device 1100 and/or underlying layers of the display screen 1105. When the pressure sensor 1111 is disposed on the side frame of the electronic device 1100, the user's grip signal on the electronic device 1100 can be detected, and the processor 1101 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1111. When the pressure sensor 1111 is disposed at a lower layer of the display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is configured to collect a fingerprint of the user, and the processor 1101 identifies the user according to the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1114 may be disposed on the front, back, or side of the electronic device 1100. When a physical button or vendor Logo is provided on the electronic device 1100, the fingerprint sensor 1114 may be integrated with the physical button or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is reduced. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
The proximity sensor 1116, also referred to as a distance sensor, is typically disposed on the front panel of the electronic device 1100. The proximity sensor 1116 is used to capture the distance between the user and the front of the electronic device 1100. In one embodiment, the processor 1101 controls the display screen 1105 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the electronic device 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the electronic device 1100 becomes progressively larger, the display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a light-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of the electronic device 1100, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
Fig. 12 is a schematic structural diagram of a server 1200 according to an embodiment of the present application, where the server 1200 may generate a relatively large difference due to a difference in configuration or performance, and may include one or more processors (CPUs) 1201 and one or more memories 1202, where at least one program code is stored in the one or more memories 1202, and is loaded and executed by the one or more processors 1201 to implement the method for verifying the electronic credential information according to the embodiments of the method described above. Certainly, the server 1200 may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 1200 may further include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, there is also provided a computer readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor of a computer device to implement any one of the above methods for verifying electronic credential information.
Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The above description is intended only to illustrate embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A verification method of electronic certificate information is applied to a scanning device, and the method comprises the following steps:
acquiring a short message corresponding to the target electronic certificate information;
identifying the short message to obtain a content area and size information of the short message, wherein the content area comprises a graphic code area and a verification area;
determining the identification direction of the graphic code in the graphic code area based on the verification area;
scanning the graphic code area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code;
and verifying the target electronic certificate information based on the verification code.
2. The method of claim 1, wherein the verifying the target electronic credential information based on the verification code comprises:
determining a target digit corresponding to the graphic code based on the check area;
and responding to the consistency of the digits of the verification code and the target digits in the verification area, sending the verification code to a verification server, and verifying the target electronic certificate information by the verification server based on the verification code.
3. The method of claim 1, wherein the identifying the short message to obtain the content area of the short message comprises:
determining a starting identifier and an ending identifier included in the short message based on the short message;
and identifying the content between the starting identifier and the ending identifier as a content area of the short message.
4. The method of claim 3, wherein the determining, based on the short message, a start identifier and an end identifier included in the short message comprises:
determining the background color of the short message frame;
responding to the background color of the short message box as a first color, and determining a starting identifier and an ending identifier included in the short message in a positive inscription identification mode;
and determining a starting identifier and an ending identifier included in the short message in an intaglio identification mode in response to the background color of the short message box being a second color.
5. The method according to claim 1, wherein scanning the graphic code area line by line according to the identification direction and the size information to obtain the verification code corresponding to the graphic code comprises:
scanning the graphic code area line by line according to the identification direction and the size information, and converting the graphic code into a corresponding code;
and forming the codes into verification codes corresponding to the graphic code areas.
6. A verification method of electronic certificate information is applied to electronic equipment, an application program used for obtaining target electronic certificate information is installed and operated in the electronic equipment, and the electronic equipment is in communication connection with a target server through a wired or wireless network, and the method comprises the following steps:
displaying an electronic voucher information candidate interface, wherein at least one candidate electronic voucher information is displayed in the electronic voucher information candidate interface;
responding to the fact that any candidate electronic certificate information in the electronic certificate information candidate interface is selected, and taking the selected candidate electronic certificate information as target electronic certificate information;
acquiring a short message corresponding to the target electronic certificate information, wherein the content area of the short message comprises a graphic code area and a verification area;
and displaying the short message so that a scanning device scans the graphic code area line by line based on an identification direction and size information to acquire a verification code corresponding to the short message, wherein the identification direction is the identification direction of the graphic code in the graphic code area determined by the scanning device based on the verification area, and the size information is acquired by identifying the short message by the scanning device.
7. The method of claim 6, wherein the obtaining the short message corresponding to the target electronic credential information comprises:
sending a short message acquisition request to the target server, wherein the short message acquisition request carries an identifier of the target electronic certificate information;
and receiving a short message returned by the target server based on the short message acquisition request, wherein the short message returned by the target server corresponds to the identifier of the target electronic certificate information.
8. An apparatus for verifying electronic credential information, the apparatus comprising:
the acquisition module is used for acquiring a short message corresponding to the target electronic certificate information;
the identification module is used for identifying the short message to obtain a content area and size information of the short message, wherein the content area comprises a graphic code area and a verification area;
the determining module is used for determining the identification direction of the graphic code in the graphic code area based on the checking area;
the scanning module is used for scanning the graphic code area line by line according to the identification direction and the size information to obtain a verification code corresponding to the graphic code;
and the verification module is used for verifying the target electronic certificate information based on the verification code.
9. An apparatus for verifying electronic credential information, the apparatus comprising:
the display module is used for displaying an electronic certificate information candidate interface, and at least one candidate electronic certificate information is displayed in the electronic certificate information candidate interface;
the selection module is used for responding to the fact that any candidate electronic certificate information in the electronic certificate information candidate interface is selected, and taking the selected candidate electronic certificate information as target electronic certificate information;
the acquisition module is used for acquiring a short message corresponding to the target electronic certificate information, and the content area of the short message comprises a graphic code area and a verification area;
the display module is further configured to display the short message, so that a scanning device scans the graphic code area line by line based on an identification direction and size information to obtain a verification code corresponding to the short message, the identification direction is the identification direction of the graphic code in the graphic code area determined by the scanning device based on the verification area, and the size information is obtained by identifying the short message by the scanning device.
10. A scanning device, characterized in that it comprises a processor and a memory, in which at least one program code is stored, which is loaded and executed by the processor to implement the method of authentication of electronic credential information according to any one of claims 1 to 5.
11. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the method for verifying electronic certificate information as claimed in claim 6 or 7.
12. A computer-readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor, to implement the method of authenticating electronic credential information according to any one of claims 1 to 7.
CN202010538342.4A 2020-06-12 2020-06-12 Method, device, equipment and storage medium for verifying electronic certificate information Active CN111740969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010538342.4A CN111740969B (en) 2020-06-12 2020-06-12 Method, device, equipment and storage medium for verifying electronic certificate information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010538342.4A CN111740969B (en) 2020-06-12 2020-06-12 Method, device, equipment and storage medium for verifying electronic certificate information

Publications (2)

Publication Number Publication Date
CN111740969A CN111740969A (en) 2020-10-02
CN111740969B true CN111740969B (en) 2022-09-16

Family

ID=72649040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010538342.4A Active CN111740969B (en) 2020-06-12 2020-06-12 Method, device, equipment and storage medium for verifying electronic certificate information

Country Status (1)

Country Link
CN (1) CN111740969B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114359174B (en) * 2021-12-16 2024-06-18 苏州镁伽科技有限公司 Conductive particle identification method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572744A (en) * 2010-12-13 2012-07-11 中国移动通信集团设计院有限公司 Recognition feature library acquisition method and device as well as short message identification method and device
CN103198344A (en) * 2013-03-01 2013-07-10 重庆市远大印务有限公司 Tax-control safety two-dimensional code encoding and decoding processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2446424A (en) * 2007-02-07 2008-08-13 Peachinc Ltd Two dimensional bar code with locating symbols
CN101458806A (en) * 2009-01-09 2009-06-17 黄建湘 Mobile phone electronic ticket anti-counterfeiting verification method and system
CN102137353A (en) * 2010-01-26 2011-07-27 茅庆鸿 Short message transmission mode based on two-dimension code
CN103854061A (en) * 2014-03-27 2014-06-11 腾讯科技(深圳)有限公司 Method and system for applying, generating and checking electronic tickets
CN105260924A (en) * 2015-10-27 2016-01-20 携程计算机技术(上海)有限公司 Mobile terminal, order processing method thereof and Internet ticketing system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572744A (en) * 2010-12-13 2012-07-11 中国移动通信集团设计院有限公司 Recognition feature library acquisition method and device as well as short message identification method and device
CN103198344A (en) * 2013-03-01 2013-07-10 重庆市远大印务有限公司 Tax-control safety two-dimensional code encoding and decoding processing method

Also Published As

Publication number Publication date
CN111740969A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN110097428B (en) Electronic order generation method, device, terminal and storage medium
CN109948586B (en) Face verification method, device, equipment and storage medium
CN110059652B (en) Face image processing method, device and storage medium
CN110795019B (en) Key recognition method and device for soft keyboard and storage medium
CN111241499B (en) Application program login method, device, terminal and storage medium
CN110096865B (en) Method, device and equipment for issuing verification mode and storage medium
CN108491748B (en) Graphic code identification and generation method and device and computer readable storage medium
CN110738185B (en) Form object identification method, form object identification device and storage medium
CN113435621A (en) Reservation and data updating method, device, equipment and storage medium for epidemic prevention project
CN113515987A (en) Palm print recognition method and device, computer equipment and storage medium
CN111586279B (en) Method, device and equipment for determining shooting state and storage medium
CN112396076A (en) License plate image generation method and device and computer storage medium
CN112036887A (en) Resource transfer method, device, equipment and storage medium
CN111915305A (en) Payment method, device, equipment and storage medium
CN111128115B (en) Information verification method and device, electronic equipment and storage medium
CN111740969B (en) Method, device, equipment and storage medium for verifying electronic certificate information
CN111047328A (en) Mobile payment method, device, system and storage medium
CN114724312B (en) Cabinet opening method, device and equipment of storage cabinet and computer readable storage medium
CN112950535B (en) Video processing method, device, electronic equipment and storage medium
CN115329309A (en) Verification method, verification device, electronic equipment and storage medium
CN111131619B (en) Account switching processing method, device and system
CN114595019A (en) Theme setting method, device and equipment of application program and storage medium
CN112764824B (en) Method, device, equipment and storage medium for triggering identity verification in application program
CN113688379B (en) Platform registration method and device and computer equipment
CN111831385B (en) Service trusted information processing method, device, equipment and storage medium

Legal Events

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

Effective date of registration: 20230221

Address after: Room 507, Floor 5, Building 2, Yard 18, Haidian Suzhou Street, Haidian District, Beijing 100080

Patentee after: BEIJING KUXUN TECHNOLOGY Co.,Ltd.

Patentee after: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.

Address before: 100080 2106-030, 9 North Fourth Ring Road, Haidian District, Beijing.

Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.