CN111401884A - Display method and device and electronic equipment - Google Patents
Display method and device and electronic equipment Download PDFInfo
- Publication number
- CN111401884A CN111401884A CN202010162909.2A CN202010162909A CN111401884A CN 111401884 A CN111401884 A CN 111401884A CN 202010162909 A CN202010162909 A CN 202010162909A CN 111401884 A CN111401884 A CN 111401884A
- Authority
- CN
- China
- Prior art keywords
- graphic code
- frequency
- sub
- mode
- images
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 13
- 230000008569 process Effects 0.000 description 12
- 230000008859 change Effects 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3274—Short 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Computer Networks & Wireless Communication (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a display method, a display device and electronic equipment. The method comprises the following steps: displaying the graphic code in a first manner; displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than the preset distance; in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and N is greater than M. The method is beneficial to improving the safety when the graphic code is used.
Description
Technical Field
Embodiments of the present invention relate to the field of communications technologies, and in particular, to a display method, a display device, an electronic apparatus, and a computer-readable storage medium.
Background
Graphic codes such as bar codes and two-dimensional codes can record data through graphics and are convenient to read by machines, so that the graphic codes are widely applied in life. For example, mobile payment, adding friends, and the like can be performed through the two-dimensional code.
The information is transmitted through the graphic code, so that convenience is brought, and meanwhile, certain risks exist. For example, in the existing scheme for displaying a graphic code, a lawless person may illegally obtain a two-dimensional code presented by a user in a manner of a pinhole camera or the like, and then obtain information of the two-dimensional code, which may cause damage to the user such as property loss and privacy disclosure.
Therefore, it is necessary to provide a new technical solution for displaying graphic codes.
Disclosure of Invention
The embodiment of the invention provides a display scheme, which aims to solve the problem of potential safety hazard in the display process of a graphic code in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a display method applied to a first electronic device, including:
displaying the graphic code in a first manner;
displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than a preset distance;
in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
In a second aspect, an embodiment of the present invention provides a display device, including:
the first display module is used for displaying the graphic code in a first mode;
the second display module is used for displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than a preset distance;
in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the display method according to the first aspect of the embodiment of the present invention.
In a fourth aspect, the present embodiment provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the display method according to the first aspect of the embodiment of the present invention.
In the embodiment of the invention, the display mode of the graphic code is adjusted according to the distance between the devices, and different display modes are obtained by dynamically updating the display position of the graphic code or dividing the graphic code into the sub-images, so that the user can keep safe device distance, the information of the graphic code is prevented from being leaked, and the safety when the graphic code is used is improved.
Drawings
Fig. 1 is a flowchart of a display method provided in this embodiment.
Fig. 2 is a schematic diagram showing an example of a change in the distance between devices in the embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating an example of a change in a display mode of a graphic code according to an embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating another example of the display mode change of the graphic code in the embodiment of the present invention.
Fig. 5 is a flowchart of a specific example of the display method according to the embodiment of the present invention.
Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
< method examples >
The embodiment provides a method for displaying a graphic code, which is applied to first electronic equipment. Referring to the flowchart shown in fig. 1, the method includes the following steps S1100-S1200.
In step S1100, the graphic code is displayed in a first manner.
In step S1200, the graphic code is displayed in a second mode when the distance between the first electronic device and the second electronic device is smaller than the preset distance. In the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and N is greater than M.
In this embodiment, the graphic code may be a two-dimensional code, a barcode, or other graphics containing information.
In one example, the graphic code may be used for mobile payment, that is, the first electronic device displays the graphic code, and the second electronic device scans and identifies the graphic code, so as to analyze payment information contained in the graphic code, thereby completing payment collection.
In one example, the graphic code may be used for adding a friend, that is, the first electronic device displays the graphic code, and the second electronic device performs processing such as scanning and identification on the graphic code, so as to analyze social account information included in the graphic code, and further initiate a request for adding a friend.
In this embodiment, the display modes of the graphic code at least include a first mode and a second mode. The display mode may be, for example, a display position, a display area, a display shape, and the like of the graphic code.
In one example, in the first mode, the display position of the graphic code is dynamically updated at a first frequency, and in the second mode, the display position of the graphic code is dynamically updated at a second frequency, wherein the first frequency is greater than the second frequency.
In the above example, the dynamic update mode of the graphic code display position may be a planar rotation mode, that is, the display position after each update is rotated by a set angle around an axis perpendicular to the screen with respect to the display position before the update. The dynamic updating mode of the graphic code display position can also be a three-dimensional rotating mode, namely, the display position after each updating rotates around an axis in a screen for a set angle relative to the display position before updating, and in this case, the graphic code is rendered into a three-dimensional graphic for display. If the shadow is attached during rotation, the dazzling effect can be achieved. Therefore, the visual effect of graphic code display is favorably improved.
In the above example, the dynamic update mode of the graphic code display position may also be other modes, for example, the display position reciprocates in a certain area, and the like.
In the above example, the first frequency is greater than the second frequency. The values of the first frequency and the second frequency may be set by a user in advance, or may be set automatically by the electronic device, for example, the electronic device may set according to historical usage. In one particular case, the second frequency may be zero and the first frequency may be a non-zero value.
In another example, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and N is greater than M.
In the above example, the second preset value is, for example, a value smaller than zero, the first preset value is, for example, a non-zero value, M is a positive integer greater than or equal to 2, N is a positive integer greater than or equal to 1, and N is greater than M. The values of M and N can be set by a user in advance or randomly selected by the electronic equipment.
As an example, the preset distance is set to 1m, the first electronic device displays the graphic code in a first manner, if the graphic code is divided into four sub-images to be displayed respectively, the distance between the four sub-images is 1cm, the first electronic device obtains the distance from the second electronic device, when the distance between the first electronic device and the second electronic device is greater than 1m, the first electronic device keeps displaying the four sub-images and the distance between the four sub-images is 1cm, when the distance between the first electronic device and the second electronic device is less than 1m, it can be determined that the user is about to perform a code scanning operation, and the electronic device displays the graphic code in a second manner, for example, the electronic device displays a complete graphic code.
In one example, the display position corresponding to the first sub-image in the N sub-images is dynamically updated at a third frequency, the display position corresponding to the second sub-image in the N sub-images is dynamically updated at a fourth frequency, and the third frequency is different from the fourth frequency. For example, in the case where the graphic code is divided into four sub-images to be displayed, respectively, as described above, the display positions of two sub-images are rotated at a first speed (corresponding to the third frequency), and the display positions of the other two sub-images are rotated at a second speed (corresponding to the fourth frequency). Therefore, the graphic code information can be better hidden under the condition that code scanning operation is not carried out, and the safety is further improved.
In the above example, the area of the first sub-image is larger than the area of the second sub-image, and the third frequency is larger than the fourth frequency. For example, in the case that the graphic code is divided into four sub-images to be displayed respectively as described above, two of the sub-images have the same area and are both the first area, the other two sub-images have the same area and are both the second area, and the first area is larger than the second area, that is, the sizes of the four sub-images are non-uniform. Wherein the sub-image with a large area dynamically updates the display position at a higher frequency than the sub-image with a small area. Therefore, the display modes of the sub-images can be richer and more diversified, and the method is favorable for further avoiding the information of the graphic code from being leaked.
In addition to the above-described manner of displaying the sub-images, the sub-images may be displayed in the following manner.
For example, in a first manner, a portion of the corresponding sub-image is displayed in each region, e.g., the upper half or the lower half of the corresponding sub-image is displayed. In a second mode, a complete sub-image is displayed in each region.
For example, in the first mode, distortion processing such as twisting is performed for each sub-image, and the sub-image is displayed. In a second mode, the native shape of each sub-image is displayed.
For another example, in the first mode, disguised information is added to each sub-image and displayed. In the second mode, the disguised information in the sub-image is removed. The camouflage pattern makes it impossible for the second electronic device to recognize information or to recognize erroneous information, so that the information of the sub-image (graphic code) is hidden. For example, a certain area of the sub-image itself may be copied to cover another area, so as to achieve the effect of adding the disguised information. For another example, a random scrambling code can be generated by a preset algorithm to be added into the subimage, so that the effect of adding the camouflage information is realized.
For another example, in the first mode, the sub-image is displayed at the first luminance, and in the second mode, the sub-image is displayed at the second luminance. Wherein the first brightness is less than the second brightness. The brightness may be the brightness of the sub-image or the brightness of the screen.
By the mode, the display modes of the sub-images can be richer and more diversified, and the safety is further ensured.
In one example, the distance between the first electronic device and the second electronic device is obtained as follows.
First, an image shot by a front camera of a first electronic device is acquired. In one example, based on the prior authorization of the user, the front camera of the first electronic device is turned on to acquire images in real time while the graphic code display function of the user is performed.
Secondly, the image is identified to judge whether the target image comprises the second electronic equipment. In this embodiment, it is determined whether a common second electronic device (e.g., a scan gun, a mobile phone, etc.) is included in the image based on an image recognition technology.
And finally, under the condition that the second electronic equipment is included in the image, acquiring the distance from the second electronic equipment to the first electronic equipment.
In this embodiment, the first electronic device may detect the distance (hereinafter referred to as a target distance) of the second electronic device by its own distance sensor.
In this embodiment, the distance detection is performed when the second electronic device is identified, which can further improve security in mobile payment, for example, can prevent the graphic code from being displayed in the second manner when another object approaches.
In this embodiment, when setting the value of the preset distance, the normal distance between the first electronic device and the second electronic device during code scanning may be considered. The preset distance can be set by a person skilled in the art according to engineering experience, for example to 0.2 meter.
In this embodiment, the target distance is smaller than the preset distance, which means that the risk of the graphic code being illegally acquired is small, and at this time, the graphic code may be displayed in the second manner.
In this embodiment, the second mode enables the graphic code to be recognized, or in the second mode, the second electronic device can successfully recognize the graphic code. The second mode may have a corresponding relationship with the first mode. For example, in the case of dynamic update of the display position of the graphic code, the update frequency in the first mode is greater than the update frequency in the second mode. For another example, in the case of dividing the graphic code into a plurality of sub-images, the minimum distance between the sub-images in the first mode is larger than the minimum distance between the sub-images in the second mode.
As a possible scenario, assuming that the distance between the second electronic device and the first electronic device is smaller than the preset distance at the initial time, the first electronic device still displays the graphic code in the first mode at the initial time, and then based on the result of the distance detection and judgment (which is short in time), the first electronic device quickly changes the display mode of the graphic code from the first mode to the second mode. The process is short in time, so that the use experience of the user cannot be influenced.
In the embodiment of the invention, the display mode of the graphic code is adjusted according to the distance between the devices, and different display modes are obtained by dynamically updating the display position of the graphic code or dividing the graphic code into the sub-images, so that the user can keep safe device distance, the information of the graphic code is prevented from being leaked, and the safety when the graphic code is used is improved.
In one example, the display mode of the graphic code is adaptively adjusted according to the change of the target distance. The specific implementation mode is as follows: acquiring a first distance from a second electronic device; and under the condition that the first distance is greater than the preset distance, dynamically updating the display position of the graphic code by a third frequency, wherein the size of the third dynamic frequency is inversely related to the first distance, and the third frequency is greater than the second frequency and less than the first frequency.
In this example, the first electronic device moves towards the second electronic device with a distance d, three positions of the first electronic device during movement are shown in fig. 2, namely position 1, position 3 and position 2, the position 1 corresponds to the maximum detection distance of the first electronic device (no image recognition, distance detection and other detection operations are performed for objects exceeding the distance), the position 2 corresponds to a preset distance (d equals L representing the preset distance), the position 3 is a certain point between the position 1 and the position 2, fig. 3 shows three display modes of the graphic code, in all of the three modes, the display positions of the graphic code are dynamically updated in a clockwise rotation mode, and in the first mode, the third mode and the second mode, the update frequency of the positions is a third frequency and a third frequency, namely, the update frequency of the graphic code is a third frequency, and a third frequency, wherein the third frequency is a frequency, the update frequency is a third frequency, and the frequency is a third frequency, wherein the third frequency is a frequency, and the third frequency is a frequency.
And correspondingly adjusting the display mode of the graphic code along with the change of the distance in the process that the first electronic equipment moves from the position 1 to the position 2 from far to near. For example, when a first electronic device is in position 1, a graphical code is displayed in a first manner; when the first electronic equipment is at the position 3, displaying the graphic code in a third mode; when the first electronic device is in position 2, the graphical code is adjusted in a second manner. Through the mode, the closer the electronic equipment is to the position 2, the lower the dynamic updating frequency of the display position of the electronic equipment is, so that the display mode of the graphic code can respond to the change of the equipment distance in real time, and the user can conveniently control the equipment distance.
In another example, the display mode of the graphic code is adaptively adjusted according to the change of the target distance. The specific implementation mode is as follows: acquiring a second distance from a second electronic device; under the condition that the second distance is greater than the preset distance, the graphic code is divided into P sub-images, the P sub-images are respectively displayed in P areas, and the minimum distance between the P areas is greater than a third preset value; and P is greater than M and less than N, the numerical value of P is negatively related to the second distance, the third preset value is greater than the second preset value and less than the first preset value, and the third preset value is negatively related to the second distance.
Fig. 2 and 4 show a specific way of adjusting the graphic code display mode with the distance change. This example differs from the previous example in that the graphic code is divided into a plurality of sub-images to be displayed. Referring to fig. 4, in the first mode and the third mode, the graphic code is divided into four sub-images, and in the second mode, the graphic code is not divided (or divided into four sub-images, and the four sub-images are spliced into a whole). The four sub-images correspond to four regions, and in the first mode, the third mode and the second mode, the minimum distances among the four regions sequentially correspond to a first preset value, a third preset value and a second preset value. And the third preset value is greater than the second preset value and smaller than the first preset value, and the third preset value is negatively related to the distance d. It will be readily appreciated that the second preset value in this example is zero.
In the process that the first electronic device moves from the position 1 to the position 3 from far to near, the position 1, the position 3 and the position 2 in fig. 2 correspond to the first mode, the third mode and the second mode in fig. 4 in sequence according to the display mode of the corresponding graphic code along with the change of the distance. Through the mode, the closer the electronic equipment is to the position 2, the smaller the distance between the sub-images is, so that the display mode of the graphic code can respond to the change of the equipment distance in real time, and the user can conveniently control the equipment distance.
In one example, after displaying the graphic code in the first manner, the above display method further includes the following steps S1300-S1400.
In step S1300, a first input for a graphic code is received.
In step S1400, in response to the first input, displaying the graphic code in a third mode, wherein in the third mode, the display position of the graphic code is dynamically updated at a fifth frequency, the fifth frequency is less than the first frequency, or in the third mode, the graphic code is divided into L sub-images, L sub-images are respectively displayed in L areas, the minimum distance between L areas is greater than a third preset value, and N is greater than L.
The first input is input by the user for the graphic code, such as clicking the graphic code, pressing the graphic code, and the like.
The third mode may be the same as or different from the second mode.
For example, as the time for the user to press the graphic code increases, the update frequency (i.e., the fifth frequency) of the display position is correspondingly decreased.
In the above example, the dynamic update frequency of the display position of the graphic code is reduced or the minimum distance between the sub-images is reduced based on the first input of the user, so that the user can actively adjust the graphic code to be in a recognizable state, the diversified requirements of the user can be met, and the use experience is improved. For example, the user can actively operate the graphic code when the distance sensor fails or the graphic code needs to be displayed to others, so that the graphic code can still be displayed in a recognizable mode when the distance of the device is greater than the preset distance.
In one example, after displaying the graphic code in the second manner, the display method further includes the following steps S1500 to S1600.
In step S1500, a second input for the graphic code is received.
In step S1600, the graphic code is displayed in a first manner in response to a second input.
The second input is an input for a graphic code, such as clicking the graphic code, stopping pressing the graphic code (after continuous pressing), and the like. It is easy to understand that when the second input is received, the distance between the first electronic device and the second electronic device is less than the preset distance, and the graphic code is displayed in the second mode.
In the above example, after the graphic code is displayed in the second mode, the display mode of the graphic code is adjusted to the first mode based on the second input of the user, so that the graphic code cannot be identified, which is beneficial to meeting diversified requirements of the user and improving the use experience. For example, in the case that the distance between the first electronic device and the second electronic device is smaller than the preset distance, the user may not be anxious to pay or may want to stop paying for some reason, and at this time, the user may actively control the graphic code to be displayed in the first mode from the recognizable state, so as to achieve the purpose of stopping displaying the graphic code.
Referring to fig. 5, firstly, when a user opens a two-dimensional code display function, the payment terminal displays the graphic code in a first mode, and displays the rotating two-dimensional code, namely, step S101 is executed, then, the payment terminal automatically opens a front camera to shoot an image, and identifies the image to judge whether the payment terminal is included, namely, step S102 is executed, in the case that the image includes the payment terminal, the payment terminal starts a distance sensing service, measures the distance from the payment terminal to the payment terminal through a distance sensor, namely, step S103 is executed, then, the payment terminal compares the distance d between the terminals with a preset distance L, judges whether the condition of d < L is reached, in the case that d < 32 is not reached, as d approaches L, the rotation speed of the two-dimensional code is reduced, namely, the case that the distance d between the terminals reaches d 2, the payment terminal is executed, the payment terminal displays a condition of d < L, and displays a payment server receives a transaction failure notification corresponding to the payment server if d < 32 is reached, and the payment server also displays the transaction is successful, and the transaction is executed, namely, and the payment server receives the transaction failure notification of the two-dimensional code.
< apparatus embodiment >
The embodiment of the present disclosure provides a display device, which is applied to a first electronic device and includes a first display module and a second display module.
The first display module is used for displaying the graphic code in a first mode.
And the second display module is used for displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than a preset distance.
In the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
In one example, the display position corresponding to the first sub-image in the N sub-images is dynamically updated at a third frequency, and the display position corresponding to the second sub-image in the N sub-images is dynamically updated at a fourth frequency, where the third frequency is different from the fourth frequency.
In one example, the area of the first sub-image is larger than the area of the second sub-image, and the third frequency is larger than the fourth frequency.
In one example, the display device further comprises a first receiving module for receiving a first input aiming at the graphic code, and a third display module for responding to the first input and displaying the graphic code in a third mode, wherein in the third mode, the display position of the graphic code is dynamically updated at a fifth frequency, the fifth frequency is less than the first frequency, or in the third mode, the graphic code is divided into L sub-images, the L sub-images are respectively displayed in L areas, the minimum distance between L areas is greater than a third preset value, and the N is greater than L.
In one example, the display module further comprises: the second receiving module is used for receiving a second input aiming at the graphic code; and the fourth display module is used for responding to the second input and displaying the graphic code in the first mode.
The display device provided by the embodiment of the invention can realize each process of the display method in the embodiment of the method of the invention, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
< electronic device embodiment >
The embodiment of the invention provides electronic equipment. Referring to fig. 6, the electronic apparatus 100 includes a video unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
The processor 110 is configured to control the display unit 106 to display the graphic code in a first manner, and further control the display unit 106 to display the graphic code in a second manner when a distance between the first electronic device and the second electronic device is smaller than a preset distance; in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
The electronic equipment in the embodiment adjusts the display mode of the graphic code according to the distance between the equipment, and obtains different display modes by dynamically updating the display position of the graphic code or dividing the graphic code into sub-images, thereby being beneficial to a user to keep safe equipment distance, avoiding the information of the graphic code from being leaked, and improving the safety when the graphic code is used.
The radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 6, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
< computer-readable storage Medium embodiment >
The present embodiment provides a computer-readable storage medium, which stores a computer program, and when the processor executes the computer program, the processor can implement the processes of the method embodiments of the present invention, and can achieve the same technical effects, and for avoiding repetition, the details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (12)
1. A display method is applied to first electronic equipment and is characterized by comprising the following steps:
displaying the graphic code in a first manner;
displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than a preset distance;
in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
2. The method of claim 1, wherein the display position corresponding to a first sub-image of the N sub-images is dynamically updated at a third frequency, and the display position corresponding to a second sub-image of the N sub-images is dynamically updated at a fourth frequency, the third frequency being different from the fourth frequency.
3. The method of claim 2, wherein the area of the first sub-image is larger than the area of the second sub-image, and the third frequency is larger than the fourth frequency.
4. The method of claim 1, wherein after displaying the graphical code in the first manner, the method further comprises:
receiving a first input for the graphic code;
displaying the graphic code in a third manner in response to the first input;
the display position of the graphic code is dynamically updated at a fifth frequency in the third mode, wherein the fifth frequency is lower than the first frequency, or the graphic code is divided into L sub-images in the third mode, the L sub-images are respectively displayed in L areas, the minimum distance between the L areas is larger than a third preset value, and the N is larger than L.
5. The method of claim 1, wherein after displaying the graphical code in the second manner, the method further comprises:
receiving a second input for the graphic code;
in response to the second input, displaying the graphical code in a first manner.
6. A display device applied to a first electronic device, comprising:
the first display module is used for displaying the graphic code in a first mode;
the second display module is used for displaying the graphic code in a second mode under the condition that the distance between the first electronic equipment and the second electronic equipment is smaller than a preset distance;
in the first mode, the display position of the graphic code is dynamically updated at a first frequency, in the second mode, the display position of the graphic code is dynamically updated at a second frequency, and the first frequency is greater than the second frequency; or, in the first mode, the graphic code is divided into N sub-images, the N sub-images are respectively displayed in N regions, the minimum distance between the N regions is greater than a first preset value, in the second mode, the graphic code is divided into M sub-images, the M sub-images are respectively displayed in M regions, the minimum distance between the M regions is greater than a second preset value, and the N is greater than the M.
7. The apparatus of claim 6, wherein the display position corresponding to a first sub-image of the N sub-images is dynamically updated at a third frequency, and the display position corresponding to a second sub-image of the N sub-images is dynamically updated at a fourth frequency, the third frequency being different from the fourth frequency.
8. The apparatus of claim 7, wherein the area of the first sub-image is larger than the area of the second sub-image, and the third frequency is larger than the fourth frequency.
9. The apparatus of claim 6, further comprising:
the first receiving module is used for receiving a first input aiming at the graphic code;
the third display module is used for responding to the first input and displaying the graphic code in a third mode;
the display position of the graphic code is dynamically updated at a fifth frequency in the third mode, wherein the fifth frequency is lower than the first frequency, or the graphic code is divided into L sub-images in the third mode, the L sub-images are respectively displayed in L areas, the minimum distance between the L areas is larger than a third preset value, and the N is larger than L.
10. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second input aiming at the graphic code;
and the fourth display module is used for responding to the second input and displaying the graphic code in the first mode.
11. An electronic device, comprising:
a memory for storing a computer program;
a processor for performing the method of any one of claims 1-5 under control of the computer program.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010162909.2A CN111401884A (en) | 2020-03-10 | 2020-03-10 | Display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010162909.2A CN111401884A (en) | 2020-03-10 | 2020-03-10 | Display method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111401884A true CN111401884A (en) | 2020-07-10 |
Family
ID=71432314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010162909.2A Pending CN111401884A (en) | 2020-03-10 | 2020-03-10 | Display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111401884A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008269140A (en) * | 2007-04-18 | 2008-11-06 | Fujitsu Ltd | Printed matter, print method and print program |
US20160147994A1 (en) * | 2014-11-20 | 2016-05-26 | Alibaba Group Holding Limited | Method and apparatus for displaying information |
CN107451501A (en) * | 2017-07-03 | 2017-12-08 | 阿里巴巴集团控股有限公司 | The implementation method and device of motion graphics coding |
CN108122151A (en) * | 2016-11-28 | 2018-06-05 | 腾讯科技(深圳)有限公司 | Graphic code display methods, graphic code processing method, apparatus and system |
CN108921266A (en) * | 2018-09-29 | 2018-11-30 | 长安大学 | A kind of static two dimensional code encryption display methods and device based on image segmentation |
WO2018223585A1 (en) * | 2017-06-06 | 2018-12-13 | 深圳正品创想科技有限公司 | Method and device for improving safety of quick response code consumption voucher |
-
2020
- 2020-03-10 CN CN202010162909.2A patent/CN111401884A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008269140A (en) * | 2007-04-18 | 2008-11-06 | Fujitsu Ltd | Printed matter, print method and print program |
US20160147994A1 (en) * | 2014-11-20 | 2016-05-26 | Alibaba Group Holding Limited | Method and apparatus for displaying information |
CN105653963A (en) * | 2014-11-20 | 2016-06-08 | 阿里巴巴集团控股有限公司 | Information display method and device |
CN108122151A (en) * | 2016-11-28 | 2018-06-05 | 腾讯科技(深圳)有限公司 | Graphic code display methods, graphic code processing method, apparatus and system |
WO2018223585A1 (en) * | 2017-06-06 | 2018-12-13 | 深圳正品创想科技有限公司 | Method and device for improving safety of quick response code consumption voucher |
CN107451501A (en) * | 2017-07-03 | 2017-12-08 | 阿里巴巴集团控股有限公司 | The implementation method and device of motion graphics coding |
CN108921266A (en) * | 2018-09-29 | 2018-11-30 | 长安大学 | A kind of static two dimensional code encryption display methods and device based on image segmentation |
Non-Patent Citations (1)
Title |
---|
汪小帆 等: "信息隐藏技术 方法与应用", 31 May 2001, 机械工业出版社, pages: 137 - 140 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109521978B (en) | Content display method and terminal equipment | |
CN108763998B (en) | Bar code identification method and terminal equipment | |
CN108629171B (en) | Unread message processing method and terminal | |
CN109523253B (en) | Payment method and device | |
CN109257505B (en) | Screen control method and mobile terminal | |
CN111144877B (en) | Code scanning payment method and electronic equipment | |
CN108287655A (en) | A kind of interface display method, interface display apparatus and mobile terminal | |
CN110532820B (en) | Graphic code display and scanning method and terminal | |
CN108319873B (en) | Flexible screen terminal security authentication control method, terminal and computer storage medium | |
CN111125800B (en) | Icon display method and electronic equipment | |
CN110837328B (en) | Display method and electronic equipment | |
CN109544172B (en) | Display method and terminal equipment | |
CN111131607A (en) | Information sharing method, electronic equipment and computer readable storage medium | |
CN111176513B (en) | Control method and electronic equipment | |
CN111144876A (en) | Payment method and electronic equipment | |
CN108196663B (en) | Face recognition method and mobile terminal | |
CN110300286A (en) | A kind of image display method and terminal | |
CN107835297B (en) | Information updating method, mobile terminal and computer readable storage medium | |
CN111310249B (en) | Information display method and electronic equipment | |
CN110493451B (en) | Data transmission method, electronic equipment and terminal | |
CN110471682B (en) | Application program updating method and mobile terminal | |
CN109062483B (en) | Image processing method and terminal equipment | |
CN109189517B (en) | Display switching method and mobile terminal | |
CN108304744B (en) | Scanning frame position determining method and mobile terminal | |
CN110766396A (en) | Graphic code display method and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200710 |