CN111178869A - Identification code display method and device, terminal equipment and storage medium - Google Patents

Identification code display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111178869A
CN111178869A CN201911024283.2A CN201911024283A CN111178869A CN 111178869 A CN111178869 A CN 111178869A CN 201911024283 A CN201911024283 A CN 201911024283A CN 111178869 A CN111178869 A CN 111178869A
Authority
CN
China
Prior art keywords
identification code
displayed
area
sub
instruction
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.)
Granted
Application number
CN201911024283.2A
Other languages
Chinese (zh)
Other versions
CN111178869B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911024283.2A priority Critical patent/CN111178869B/en
Publication of CN111178869A publication Critical patent/CN111178869A/en
Application granted granted Critical
Publication of CN111178869B publication Critical patent/CN111178869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions

Abstract

The application discloses an identification code display method, an identification code display device, terminal equipment and a storage medium, wherein the method comprises the following steps: responding to the first instruction, acquiring the information of the identification code to be displayed, and randomly displaying a local area of the information to be displayed; and responding to a second instruction, completely displaying the whole area of the identification code to be displayed so as to identify the whole area to acquire the content corresponding to the identification code to be displayed. The application implements the response of the first instruction and the second instruction to control the terminal of the user to complete the complete display of the identification code to be displayed for many times, so that the identification code to be displayed cannot be effectively identified in the preliminary stage, the malicious identification of other people is avoided, and the display safety of the user is effectively protected.

Description

Identification code display method and device, terminal equipment and storage medium
Technical Field
The present application relates generally to the field of communications technologies, and in particular, to an identification code display method and apparatus, a terminal device, and a storage medium.
Background
In the wireless payment process, in order to save time, a user presents the two-dimensional code for payment in advance through the mobile phone client, waits for the operation of the terminal equipment of the merchant, namely, the terminal equipment of the merchant identifies the two-dimensional code of the user, and the wireless payment is completed.
For the payment scene, because the user calls the payment two-dimensional code in advance, the two-dimensional code for payment of the user is exposed for a long time, other people can be easily identified maliciously, and potential safety hazards exist.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide an identification code display method, apparatus, terminal device and storage medium to ensure user information security.
In a first aspect, an embodiment of the present application provides an identification code display method, including:
responding to a first instruction, responding to the first instruction, acquiring the information of the identification code to be displayed, and randomly displaying a local area of the identification code to be displayed;
and responding to a second instruction, completely displaying the whole area of the identification code to be displayed so as to identify the whole area to acquire the content corresponding to the identification code to be displayed.
In a second aspect, an embodiment of the present application provides an identification code display apparatus, including:
the first display module is used for responding to a first instruction, acquiring information of the identification code to be displayed and randomly displaying a local area of the identification code to be displayed;
and the second display module is used for responding to a second instruction and completely displaying all the areas of the identification codes to be displayed so as to identify all the areas and acquire the content corresponding to the identification codes to be displayed. In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the identifier display method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being used for implementing the identifier display method according to the first aspect.
According to the identification code display method, the identification code display device, the terminal equipment and the storage medium, the local area of the identification code to be displayed is displayed firstly by receiving the first instruction input by the user, the second instruction input by the user is further responded, the complete identification code to be displayed is displayed by controlling the terminal of the user, so that the content corresponding to the identification code to be displayed is obtained by identifying the whole area, the identification code to be displayed cannot be identified effectively in the preliminary stage, malicious identification of other people is avoided, and the information safety of the user is effectively protected.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic flowchart illustrating an identification code display method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a two-dimensional code according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a one-dimensional code according to an embodiment of the present application;
FIG. 4 is a schematic flowchart illustrating an identification code display method according to another embodiment of the present application;
FIG. 5 is a schematic view of a first sub-region and a second sub-region according to an embodiment of the present disclosure; (ii) a
FIG. 6 is a schematic view of a first sub-region and a second sub-region according to an embodiment of the present disclosure;
FIG. 7 is a schematic view of a first sub-region and a second sub-region according to an embodiment of the present disclosure;
FIG. 8 is a schematic view of a first sub-region and a second sub-region according to yet another embodiment of the present application;
FIG. 9 is a schematic view of a first sub-region and a second sub-region according to yet another embodiment of the present application;
FIG. 10 is a schematic view of an operation interface according to an embodiment of the present application;
FIG. 11 is a flowchart illustrating an identification code display method according to yet another embodiment of the present application;
FIG. 12 is a schematic view of a two-dimensional code occluded by an occlusion layer according to an embodiment of the present application;
FIG. 13 is a diagram illustrating one-dimensional codes occluded by an occlusion layer according to an embodiment of the present application;
fig. 14 is a schematic view of a two-dimensional code with a shielding layer removed according to an embodiment of the present application;
FIG. 15 is a diagram illustrating a one-dimensional code for removing an occlusion layer according to an embodiment of the present disclosure;
FIG. 16 is a schematic structural diagram of an identification code display device according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a computer system of a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
According to the identification code display method provided by the embodiment of the application, the identification code to be displayed is displayed on the terminal of the user, and the identification code to be displayed can be a two-dimensional code or a one-dimensional code and the like. Such as a two-dimensional code or a one-dimensional code pattern for payment or identity authentication.
For example, when the identification code to be displayed is a two-dimensional code or a one-dimensional code for payment, in one scenario, a user makes online payment using a payment platform provided by an application on a terminal. At this time, the user may complete online payment by using the payment platform provided by the application program, for example, operate the wechat program on the interface of the handheld terminal to display a pattern of the corresponding payment code, such as a two-dimensional code or a one-dimensional code, so that the terminal of the merchant recognizes the pattern, obtains the payment information of the user, and establishes a payment link with the payment mechanism corresponding to the payment platform.
Or, when the information to be displayed is a two-dimensional code or a one-dimensional code for identity recognition, such as recipient identity verification in a logistics scene or identity verification of an entrance such as an academic conference, the user needs to present identity information to determine a legal identity. At this time, the user may operate the handheld terminal, and the two-dimensional code or the one-dimensional code of the personal identity is displayed on the interface, so that the verifying party acquires the identity information of the user by recognizing the two-dimensional code or the one-dimensional code, so as to determine that the user is a legal recipient or participant.
It can be understood that the terminal of the user may be a terminal device held by the user, such as a smart phone or a tablet computer, and the terminal device has an identification code display function when operating, and may also have a two-dimensional code or one-dimensional code generation function. If an application program with a payment function, such as an instant messaging tool, is operated, the user carries out online payment through a payment code provided by the application program.
The legal identification terminal may be a terminal device of a merchant or a verifier, such as a handheld scanning gun or an identification device on an unmanned purchasing machine, and is used to identify a two-dimensional code or a one-dimensional code displayed by a terminal of a user, so as to obtain content corresponding to the two-dimensional code or the one-dimensional code.
It can be understood that, in the above scenario, for convenience of operation, the user operates on the terminal in advance in the queuing waiting stage to display the payment code for the terminal of the merchant or the verifier to identify.
The embodiment of the application avoids the long-time complete exposure of the identification code to be displayed for protecting the user, can display the incomplete local area in the preliminary waiting stage of the user, thereby preventing malicious recognition of other people, and when finishing the preliminary waiting stage, through inputting the instruction again, so as to control the complete display of the terminal to be displayed in the whole area of the identification code.
For convenience of understanding and explanation, the identification code display method, apparatus, terminal device and storage medium provided in the embodiments of the present application are described in detail below with reference to fig. 1 to 17.
Fig. 1 is a schematic flowchart illustrating a flow of an identification code display method provided in an embodiment of the present application, where the method is executed by a terminal of a user, and specifically includes:
s110, the terminal responds to the first instruction, obtains the information of the identification code to be displayed, and randomly displays the local area of the identification code to be displayed.
And S120, the terminal responds to the second instruction, and completely displays all the areas of the identification code to be displayed so as to identify all the areas to acquire the content corresponding to the identification code to be displayed.
Specifically, in the embodiment of the application, a user can input a first instruction on an operation interface of the terminal in the process of acquiring the information of the identification code to be displayed at the operation terminal. For example, the first instruction is input by sliding the operation area for displaying the identification code after clicking on the operation interface of the terminal. After receiving a first instruction input by a user, the terminal responds to the first instruction to acquire the information of the identification code, and displays a local area of the identification code to be displayed.
It will be appreciated that after the user has entered the first command, it may be in a wait or read state, such as in the case of supermarket shopping, waiting in line for the previous user to complete the purchase. Or when entering the conference hall, queuing to wait for the previous user to complete identification.
Further, when the user finishes waiting and enters the identification scene of the identification code, the user may operate on the operation interface of the terminal to input the second instruction to the terminal, for example, click or slide in the operation area of the operation interface to implement input of the second instruction. After receiving the second instruction, the terminal may respond to the second instruction to completely display all the areas of the identification code to be displayed, that is, the second instruction is used to control all the displays of the identification code to be displayed. It can be understood that after all the areas are displayed, the corresponding legal terminal can identify the identification code to be displayed, obtain the corresponding content thereof, and complete payment or identity recognition.
For example, as shown in fig. 2, when the identification code to be displayed is a two-dimensional code, such as a payment two-dimensional code in an instant messaging program like WeChat. The periphery of the two-dimensional code is provided with a circle of blank areas, the area surrounded by the blank areas can comprise a plurality of sub-areas, namely a plurality of sub-areas used for reconstructing the two-dimensional pattern, and the graph in each sub-area has a corresponding function. For example, the graphics in the positioning area at the three vertex angles are used for positioning the two-dimensional code in the two-dimensional code identification process, i.e. for marking the size of the rectangle of the two-dimensional code. The area may be delimited by position detection pattern separators, i.e. three positioning areas divided by position detection separators. A position detection pattern is arranged in each positioning area. For another example, the correction patterns uniformly distributed in the correction areas of different areas surrounded by the blank area are also used for positioning in the two-dimensional code identification process. For example, a graphic provided in a version area near the positioning area indicates information such as a version of the two-dimensional code. For another example, the data encoding and error correction codes disposed in the different areas surrounded by the blank area, the data such as the identity information of the user of the two-dimensional code, such as the account number, etc., and the data are used to correct the error, so that the two-dimensional code can be identified even if part of the pattern of the two-dimensional code is missing.
Correspondingly, when the identification code to be displayed is a two-dimensional code, the acquired information of the identification code may be coordinate information and/or block information of the positioning graph, and the block information may include version information, data encoding information, error correction code information, and the like of the two-dimensional code. After the terminal generates the two-dimensional code, the information included in the two-dimensional code is stored, so that the corresponding graph is displayed under the instruction control of a user.
When the identification code to be displayed is a one-dimensional code, as shown in fig. 3, the one-dimensional code also includes a plurality of regions corresponding to the start code region, the stop code region, and the data encoding region therebetween. The acquired information of the identification code may be coordinate information of a start code, coordinate information of a stop code, barcode module width information, and/or data encoding information of a one-dimensional code. Correspondingly, the displayed local area may be a graphic corresponding to the block information, or a start code, a stop code and a data code.
It can be understood that, for the two-dimensional code, enough graphics of the two-dimensional code need to be displayed during the recognition process to be completely recognized. For example, for the position detection pattern, due to different sizes of the two-dimensional code, the two-dimensional code to be recognized needs to be located by using the position detection pattern, that is, only after the three position detection patterns are completely obtained, the size of the rectangle corresponding to the two-dimensional code to be recognized can be determined by using the three position detection patterns. For the one-dimensional code described above, it is also necessary to display enough one-dimensional code patterns to be fully recognized. For example, for the information of the intermediate data code, including the identity information of the user, the identification of the one-dimensional code can be completed only if the graph of the data code is completely acquired.
Optionally, in this embodiment of the application, the local area displayed for the first time on the operation interface may include a part of sub-area used for reconstructing the information to be displayed; alternatively, the local area does not comprise a sub-area for reconstructing the information to be displayed.
For example, based on the structure of the two-dimensional code, in order to ensure that the displayed local area cannot be identified after the partial area is missing, in one implementation, the sub-area for reconstructing the two-dimensional code may be an area defined by the position detection pattern separator, that is, three sub-areas for two-dimensional code positioning separated by taking the position detection pattern separator as a boundary. The first displayed local area may include any one or two location areas or not include all location areas.
For another example, when the identification code to be displayed is a one-dimensional code, as shown in fig. 3, the one-dimensional code may also include a plurality of sub-regions for reconstructing the one-dimensional code. In one implementation, the sub-region may be a region bounded by a module width, such as two sub-regions in the data encoding region defined by a preset module width.
According to the identification code display method provided by the embodiment of the application, the terminal of the user firstly responds to the first instruction input by the user, the local area of the identification code to be displayed is displayed, the second instruction input by the user is further responded, the terminal is controlled to display the complete identification code to be displayed, so that the whole area is identified to obtain the content corresponding to the identification code to be displayed, the identification code to be displayed cannot be effectively identified in the preliminary stage, malicious identification of other people is avoided, and the safety of the identification code of the user is effectively protected.
For better understanding of the identification code display method in the present application, the following is described in detail with reference to fig. 4 and 10.
Fig. 4 is a flowchart illustrating an identification code display method according to another embodiment of the present application.
In this embodiment, the user's terminal generates in advance an identification code to be displayed, such as the two-dimensional code or the one-dimensional code for payment or identification of the user as described above. In this embodiment, in order to protect the identification code to be displayed, the information of the identification code to be displayed, which is generated in advance, may be divided into two parts to be stored in the terminal of the user. If the first storage unit stores the information of the first sub-area of the identification code to be displayed, and the second storage unit stores the information of the remaining identification code to be displayed, namely the information of the second sub-area, the first sub-area is used as the local area, and the first sub-area is the remaining area after the part of the whole area is defaulted according to the rule. The first sub-area and the second sub-area form the whole area of the identification code to be displayed. The second storage unit may be a buffer of the terminal, that is, information of the second sub-area where the identification code is to be displayed is temporarily stored in the buffer.
For example, the two-dimensional code generated in advance as shown in fig. 2 may store information of at least one sub-area of the two-dimensional code used for positioning in the second storage unit, that is, in the buffer area. As shown in fig. 5, coordinate information including three position detection patterns is stored in a buffer area, and block information is stored in a first storage unit; or as shown in fig. 7, the coordinate information of two position detection patterns is stored in the buffer area, and the coordinate information and the block information of the remaining position detection pattern at the lower left corner are stored in the first storage unit, or as shown in fig. 8, the coordinate information of the position detection pattern at the upper left corner is stored in the buffer area, and the coordinate information and the block information of the remaining two position detection patterns are stored in the first storage unit.
For another example, the one-dimensional code generated in advance as shown in fig. 3 may be, as shown in fig. 9 and 10, such that the information of the second sub-region, i.e., the module width information of the sub-region in one or two data codes and the corresponding data information are stored in the second storage unit, i.e., the buffer, and the information of the first sub-region, i.e., other information such as the start code and the stop code, is stored in the first storage unit.
It should be understood that the above-mentioned storage manner of the information of the identification code to be displayed is only an exemplary illustration, and the application is not limited thereto.
Based on the above storage manner of the identification code to be displayed, as shown in fig. 4, the identification code display method of this embodiment specifically includes:
s210, reading the information of the first sub-area of the identification code to be displayed, and displaying the first sub-area, wherein the first sub-area is a residual area after a part of the whole area is defaulted according to a rule, and the first sub-area is used as the local area.
S220, reading the information of the second sub-area of the identification code to be displayed, and displaying the second sub-area, wherein the second sub-area comprises a sub-area used for reconstructing the identification code to be displayed, and the second sub-area and the local area form the whole area.
S230, combining the local area and the second sub-area to completely display the whole area.
Specifically, based on the storage manner of the identification code to be displayed, after the generated information of the identification code to be displayed is respectively stored, in the identification code display method according to the embodiment of the application, when the user is ready to acquire the information of the first sub-area, the user may perform touch operation in the first operation area on the operation interface of the terminal to input the touch instruction as the first instruction. After receiving the touch instruction, the terminal responds to the touch instruction, reads the information of the first subarea of the identification code to be displayed, which is stored in the first storage unit, and displays the first subarea; and then enters a waiting stage, such as waiting for payment or identification of the previously ranked user. When the user finishes waiting, the user may continue to touch the second operation area on the operation interface of the terminal to input a touch instruction serving as a second instruction, for example, click or slide the second operation area of the operation interface, so that after receiving the touch instruction, the terminal reads information stored in the second sub-area of the second storage unit and continues to display the second sub-area on the operation interface of the terminal. And the terminal responds to the second instruction, reads the information of the second sub-area of the identification code in the second storage unit and displays the second sub-area. Finally, on the basis of the partial region displayed for the first time, the partial region and the second sub-region are combined to completely display the whole region of the identification code to be displayed.
For example, in the scenario of performing payment by using a two-dimensional code of WeChat as shown in fig. 5 and 6, when the second storage unit stores information of three sub-areas including the two-dimensional code, that is, coordinate information of three positioning areas, the first storage unit stores block information of another pattern corresponding to the two-dimensional code. As shown in fig. 6, after the user operates in the first operation area to input the first instruction, the terminal receives the first instruction, and then, in response to the first instruction, reads the tile information of the other two-dimensional code graphics stored in the first storage unit, and displays the local area corresponding to the tile information of the two-dimensional code shown in fig. 6, that is, displays the two-dimensional code graphics missing all the sub-areas. Continuing, after the user touches the second operation area, for example, clicks or slides in the local area to input a second instruction, the terminal receives the second instruction, and in response to the second instruction, reads the information of the second sub-area stored in the second storage unit, that is, the coordinate information of the three position detection graphs, and displays the three position detection graphs of the two-dimensional code as shown in fig. 6. And finally, on the interface of the terminal, the graphs of the two-dimensional codes displayed twice are combined into a complete two-dimensional code, namely, all areas of the identification code to be displayed are combined for other equipment to identify, namely, the identification code is identified by the terminal of the merchant, and payment is completed.
It is understood that, as shown in fig. 7 and 8, the second storage unit may store coordinate information of one or two positioning areas of the two-dimensional code, so that the local area stored by the first storage unit includes one or two sub-areas for two-dimensional code reconstruction.
For another example, as shown in fig. 9 and 10, for the one-dimensional code, when the second storage unit stores information of a sub-region including one or two one-dimensional codes, that is, information of a second sub-region of the one-dimensional code determined by the module width, the first storage unit stores information of other graphs corresponding to the one-dimensional code, that is, information of a partial region excluding the sub-region for reconstructing the information to be displayed, that is, the first sub-region. After the user inputs the first instruction, the terminal reads the information of the one-dimensional code pattern stored in the first storage unit in response to the first instruction, and displays the local area of the one-dimensional code as shown in fig. 9 or fig. 10, that is, displays the one-dimensional code pattern missing all the sub-areas. After the user inputs the second instruction, the terminal responds to the second instruction, reads the information of the second sub-region stored in the second storage unit, that is, the information of the two sub-regions, and displays the second sub-region of the one-dimensional code shown in fig. 10. And finally, on the interface of the terminal, combining the graphs of the one-dimensional codes displayed twice together into a complete one-dimensional code, namely forming all areas of the information to be displayed for other equipment to identify.
It can be understood that, since the information of the identification code to be displayed, which is stored in the first storage unit and the second storage unit, can be set according to actual conditions, the area of the identification code to be displayed, which is displayed twice on the terminal interface, is set according to the storage mode, and it is only required to ensure that the graph of the identification code to be displayed, which is displayed for the first time, cannot be recognized by other devices, and the specific storage mode is not limited by the present application.
According to the identification code display method provided by the embodiment of the application, the terminal responds to the first instruction after respectively storing the information of the identification code to be displayed, the first sub-region corresponding to the information stored in the first storage unit is firstly displayed, then the second instruction is responded after the user inputs the second instruction, the second sub-region stored in the second storage unit is displayed, finally, the complete identification code to be displayed is formed on an operation interface, so that the complete region is identified to obtain the content corresponding to the identification code to be displayed, the protection of the identification code to be displayed in a waiting stage is realized, the malicious identification of other people is avoided, the information safety of the user is ensured, and the user experience is improved.
Fig. 11 illustrates an information identifier method according to still another embodiment of the present application. In the embodiment of the application, in order to protect the identification code to be displayed in the user waiting stage, a shielding layer can be used for effectively shielding part of or all of the area of the information to be displayed of the user.
As shown in fig. 11, the method specifically includes:
s101, calling a preset blocking layer, and using the blocking layer to partially or completely block the whole area to obtain a display pattern, wherein the display pattern is used as the local area.
S102, removing a preset shielding layer to completely display the whole area, wherein the shielding layer is used for partially or completely shielding the identification code to be displayed.
Specifically, in the embodiment of the application, the identification code to be displayed is generated or acquired in advance at the terminal, and a shielding layer is generated and stored, and the shielding layer is used for shielding part or all of the area of the identification code to be displayed, so that only the local area of the identification code to be displayed is displayed on the terminal interface in the user waiting stage.
For example, when a user needs to display a two-dimensional code or a one-dimensional code in a payment place or an identity authentication place, the interface of the terminal can be operated to input a first instruction, so that the terminal responds to the first instruction, obtains all information of the two-dimensional code or the one-dimensional code, displays a complete graph of the two-dimensional code or the one-dimensional code to be displayed, and finally calls a pre-generated shielding layer to enable the shielding layer to partially or completely cover the whole area to obtain a display pattern, namely the local area.
For example, as shown in fig. 12 and 13, the occlusion layer is overlapped with one or more sub-regions of the two-dimensional code or the one-dimensional code, that is, one or more positioning patterns of the two-dimensional code or the one-dimensional code are occluded. It is understood that, in another embodiment, the shielding layer may also shield other parts of the complete graph of the two-dimensional code or the one-dimensional code, so that the two-dimensional code or the one-dimensional code cannot be recognized. Further, when the user needs to accurately display the payment code, as shown in fig. 14 and fig. 15, the user may operate in the second operation area on the interface of the terminal to input a second instruction, such as clicking or sliding the shielding layer, or any other position, so as to remove the shielding layer, so that the entire area of the identification code to be displayed, such as displaying a complete graph of the two-dimensional code or the one-dimensional code, is completely displayed on the interface of the terminal. Therefore, other equipment terminals can identify the complete graphic code and acquire the corresponding content of the complete graphic code.
The identification code display method provided by the embodiment of the application generates the shielding layer in advance, so that a terminal of a user responds to a first instruction, the shielding layer is called at first to shield a partial area of the identification code to be displayed, the rest partial area is displayed, and then the second instruction is responded after the user inputs a second instruction, the shielding layer is removed, so that the whole area of the identification code to be displayed is displayed completely on an interface of the user, the protection of the displayed identification code in a user stage is realized, the malicious identification of other people is avoided, the information safety of the user is ensured, and the user experience is improved.
On the other hand, an embodiment of the present application provides an identification code display apparatus, as shown in fig. 16, the apparatus 600 includes:
the first display module 610 is configured to, in response to the first instruction, acquire information of the identification code to be displayed, and randomly display a local area of the identification code to be displayed;
and the second display module 620 is configured to, in response to a second instruction, completely display all areas of the identification code to be displayed, so as to identify all the areas to obtain content corresponding to the identification code to be displayed.
Optionally, in the identification code display apparatus provided in this embodiment of the present application, the local area includes a partial sub-area for reconstructing the information to be displayed; alternatively, the local area does not comprise a sub-area for reconstructing the information to be displayed.
Optionally, in the identification code display apparatus provided in this embodiment of the application, the first display module 610 is specifically configured to:
reading information of a first sub-area of the information to be displayed, and displaying the first sub-area, wherein the first sub-area is a residual area after a part of the whole area is defaulted according to a rule, and the first sub-area is used as the local area; alternatively, the first and second electrodes may be,
and calling a preset blocking layer, and partially or completely blocking the whole area by using the blocking layer to obtain a display pattern, wherein the display pattern is used as the local area.
Optionally, in the identification code display apparatus provided in this embodiment of the application, the second display module 620 is specifically configured to:
reading information of a second sub-area of the information to be displayed, and displaying the second sub-area, wherein the second sub-area comprises a sub-area used for reconstructing the information to be displayed, and the second sub-area and the local area form the whole area;
combining the partial area and the second sub-area to completely display the whole area; or removing a preset shielding layer to completely display the whole area, wherein the shielding layer is used for partially or completely shielding the identification code to be displayed.
Optionally, in the identification code display apparatus provided in this embodiment of the present application, when the identification code to be displayed is a two-dimensional code, the sub-region for reconstructing the identification code to be displayed is a sub-region defined by the position detection pattern separator. .
Optionally, in the identification code display apparatus provided in this embodiment of the present application, when the information to be displayed is a one-dimensional code, the sub-region for reconstructing the identification code to be displayed is a sub-region defined by a module width.
On the other hand, the terminal device provided by the embodiment of the present application includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the identification code display method as described above when executing the program.
Referring to fig. 17, fig. 17 is a schematic structural diagram of a computer system 300 of a terminal device according to an embodiment of the present application.
As shown in fig. 17, the computer system 300 includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 303 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the system 300 are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to embodiments of the present application, the processes described above with reference to flow diagrams 2-5 may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 303, and/or installed from the removable medium 311. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes a first display module and a second display module. The names of the units or modules do not limit the units or modules, for example, the second display module may be further described as "displaying the entire area of the identification code to be displayed completely in response to the second instruction, so as to identify the entire area to obtain the content corresponding to the identification code to be displayed".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the method for displaying an identification code described herein.
To sum up, according to the identification code display method, the identification code display device, the terminal device and the storage medium provided by the embodiment of the application, by receiving the first instruction input by the user, the local area of the identification code to be displayed is displayed first, and the second instruction input by the user is further responded, so that the terminal of the user is controlled to display the complete identification code to be displayed, and the content corresponding to the identification code to be displayed is acquired by identifying the whole area, so that the identification code to be displayed cannot be effectively identified in the preliminary stage, malicious identification of other people is avoided, and the display safety of the user is effectively protected.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. An identification code display method, comprising:
responding to a first instruction, acquiring information of an identification code to be displayed, and randomly displaying a local area of the identification code to be displayed in an operation interface;
and responding to a second instruction, completely displaying all the areas of the identification codes to be displayed in the operation interface so as to identify all the areas to acquire the content corresponding to the identification codes to be displayed.
2. The method according to claim 1, wherein the partial area comprises a partial sub-area for reconstructing the identification code to be displayed; or the local area does not comprise a sub-area used for reconstructing the identification code to be displayed.
3. The identification code display method according to claim 1, wherein the randomly displaying the partial area of the identification code to be displayed in response to the first instruction comprises:
reading information of a first sub-area of the identification code to be displayed, and displaying the first sub-area, wherein the first sub-area is a residual area after a part of the whole area is defaulted according to a rule, and the first sub-area is used as the local area; alternatively, the first and second electrodes may be,
and calling a preset shielding layer, and partially or completely shielding the whole area by using the shielding layer to obtain a display pattern, wherein the display pattern is used as the local area.
4. The identification code display method according to claim 1, wherein said completely displaying the entire area of the identification code to be displayed in response to the second instruction comprises:
reading information of a second sub-region of the identification code to be displayed, and displaying the second sub-region, wherein the second sub-region comprises a sub-region used for reconstructing the identification code to be displayed, and the second sub-region and the local region form the whole region;
combining the partial region with the second sub-region to completely display the entire region; alternatively, the first and second electrodes may be,
and removing a preset shielding layer to completely display the whole area, wherein the shielding layer is used for partially or completely shielding the identification code to be displayed.
5. The method according to claim 2, wherein when the identification code to be displayed is a two-dimensional code, the sub-region for reconstructing the identification code to be displayed is a sub-region defined by a position detection pattern separator.
6. The method according to claim 2, wherein when the identification code to be displayed is a one-dimensional code, the sub-region for reconstructing the identification code to be displayed is a sub-region defined by a module width.
7. The identification code display method according to any one of claims 1 to 6, wherein the first command is a touch command,
wherein, prior to responding to the first instruction, the method further comprises:
and receiving the touch instruction input in a first operation area of an operation interface.
8. The identification code display method according to any one of claims 1 to 6, wherein the second instruction is not a touch instruction,
wherein, prior to responding to the second instruction, the method further comprises:
receiving the touch instruction input in a second operation area of the operation interface.
9. An identification code display device, comprising:
the first display module is used for responding to a first instruction, acquiring information of the identification code to be displayed and randomly displaying a local area of the identification code to be displayed;
and the second display module is used for responding to a second instruction and completely displaying all the areas of the identification codes to be displayed so as to identify all the areas and acquire the content corresponding to the identification codes to be displayed.
10. A terminal device, characterized in that the terminal device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor being adapted to implement the identification code display method according to any of claims 1-8 when executing the program.
11. A computer-readable storage medium on which a computer program for implementing the identification code display method according to any one of claims 1 to 8 is stored.
CN201911024283.2A 2019-10-25 2019-10-25 Identification code display method and device, terminal equipment and storage medium Active CN111178869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911024283.2A CN111178869B (en) 2019-10-25 2019-10-25 Identification code display method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911024283.2A CN111178869B (en) 2019-10-25 2019-10-25 Identification code display method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111178869A true CN111178869A (en) 2020-05-19
CN111178869B CN111178869B (en) 2023-10-17

Family

ID=70657046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911024283.2A Active CN111178869B (en) 2019-10-25 2019-10-25 Identification code display method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111178869B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110778A (en) * 2021-04-20 2021-07-13 树根互联股份有限公司 Graphical interface display method, terminal, readable storage medium and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004341764A (en) * 2003-05-15 2004-12-02 Oki Electric Ind Co Ltd Recognition method and recognition device
KR20120113957A (en) * 2011-04-06 2012-10-16 박덕수 Method for credit settlement using mobile phones and system thereof
CN106326802A (en) * 2016-08-19 2017-01-11 腾讯科技(深圳)有限公司 Two-dimensional code correction method and device and terminal device
CN106991311A (en) * 2017-03-30 2017-07-28 维沃移动通信有限公司 A kind of information processing method and mobile terminal
CN107025549A (en) * 2016-02-01 2017-08-08 北京数码视讯科技股份有限公司 A kind of method of payment, device and system
US20170357884A1 (en) * 2014-12-30 2017-12-14 Eyeconit Ltd Machine-readable image encoding data
CN108256360A (en) * 2017-12-22 2018-07-06 福建天泉教育科技有限公司 The display methods and terminal of a kind of sensitive information
CN109190436A (en) * 2018-07-30 2019-01-11 努比亚技术有限公司 A kind of two-dimensional code identification method, mobile terminal and storage medium
CN109271824A (en) * 2018-08-31 2019-01-25 出门问问信息科技有限公司 A kind of method and device identifying image in 2 D code
CN109697494A (en) * 2018-12-21 2019-04-30 南京维沃软件技术有限公司 A kind of graphic code display methods and terminal device
TWI661365B (en) * 2018-03-27 2019-06-01 財金資訊股份有限公司 System and method for dynamically checking code scanning payment, computer-readable recording medium and computer program product
CN109960957A (en) * 2017-12-26 2019-07-02 阿里巴巴集团控股有限公司 Incomplete two dimensional code and its generation, reparation and recognition methods, apparatus and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004341764A (en) * 2003-05-15 2004-12-02 Oki Electric Ind Co Ltd Recognition method and recognition device
KR20120113957A (en) * 2011-04-06 2012-10-16 박덕수 Method for credit settlement using mobile phones and system thereof
US20170357884A1 (en) * 2014-12-30 2017-12-14 Eyeconit Ltd Machine-readable image encoding data
CN107025549A (en) * 2016-02-01 2017-08-08 北京数码视讯科技股份有限公司 A kind of method of payment, device and system
CN106326802A (en) * 2016-08-19 2017-01-11 腾讯科技(深圳)有限公司 Two-dimensional code correction method and device and terminal device
CN106991311A (en) * 2017-03-30 2017-07-28 维沃移动通信有限公司 A kind of information processing method and mobile terminal
CN108256360A (en) * 2017-12-22 2018-07-06 福建天泉教育科技有限公司 The display methods and terminal of a kind of sensitive information
CN109960957A (en) * 2017-12-26 2019-07-02 阿里巴巴集团控股有限公司 Incomplete two dimensional code and its generation, reparation and recognition methods, apparatus and system
TWI661365B (en) * 2018-03-27 2019-06-01 財金資訊股份有限公司 System and method for dynamically checking code scanning payment, computer-readable recording medium and computer program product
CN109190436A (en) * 2018-07-30 2019-01-11 努比亚技术有限公司 A kind of two-dimensional code identification method, mobile terminal and storage medium
CN109271824A (en) * 2018-08-31 2019-01-25 出门问问信息科技有限公司 A kind of method and device identifying image in 2 D code
CN109697494A (en) * 2018-12-21 2019-04-30 南京维沃软件技术有限公司 A kind of graphic code display methods and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110778A (en) * 2021-04-20 2021-07-13 树根互联股份有限公司 Graphical interface display method, terminal, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111178869B (en) 2023-10-17

Similar Documents

Publication Publication Date Title
CN107871232A (en) A kind of generation method and its terminal of customer visit plan
CN109711508B (en) Image processing method and device
CN104796428A (en) Dynamic verification method, client side, server and system
CN111813309B (en) Display method, display device, electronic equipment and readable storage medium
CN109003071B (en) Payment method, device and equipment
CN113642053A (en) Method, system, equipment and storage medium for remote control interface display
CN111178869B (en) Identification code display method and device, terminal equipment and storage medium
US10904221B2 (en) Systems and methods for flexibly securing data
CN114115664A (en) Screenshot processing method, device, equipment and medium
CN112465497A (en) Payment method, payment device, electronic equipment and medium
CN111797642B (en) Bar code identification method and terminal
CN107346197B (en) Information display method and device
CN113128244A (en) Scanning method and device and electronic equipment
CN105100098A (en) Machine card interaction safety authorization method and device
CN111488180B (en) Service information processing method and device, electronic equipment and storage medium
CN107995213B (en) Short message sending control method and device
US20160321474A1 (en) Systems, devices, and methods for distributed processing
CN111625805B (en) Verification method, verification device, electronic equipment and storage medium
CN112181521A (en) Parameter acquisition method, device, equipment and medium
CN109522699B (en) Security verification method, device, terminal, server and storage medium
JP6717901B2 (en) Program, display method, and information processing device
CN108804713B (en) Image output method, electronic device, and computer-readable medium
CN112749769A (en) Graphic code detection method and device, computer equipment and storage medium
CN113194421B (en) Debit card degradation processing method and system based on 5G message and relevant terminals
JP2017228292A (en) Simple settlement method and simple settlement system

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