CN110162372B - Virtual key creation method and related equipment - Google Patents

Virtual key creation method and related equipment Download PDF

Info

Publication number
CN110162372B
CN110162372B CN201910441649.XA CN201910441649A CN110162372B CN 110162372 B CN110162372 B CN 110162372B CN 201910441649 A CN201910441649 A CN 201910441649A CN 110162372 B CN110162372 B CN 110162372B
Authority
CN
China
Prior art keywords
virtual
virtual key
keys
virtual keys
finger vein
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910441649.XA
Other languages
Chinese (zh)
Other versions
CN110162372A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910441649.XA priority Critical patent/CN110162372B/en
Publication of CN110162372A publication Critical patent/CN110162372A/en
Application granted granted Critical
Publication of CN110162372B publication Critical patent/CN110162372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04809Textured surface identifying touch areas, e.g. overlay structure for a virtual keyboard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/14Vascular patterns

Abstract

The application discloses a virtual key creation method and related equipment, wherein the method comprises the following steps: acquiring finger vein characteristic information identified by a finger vein identification module; determining a currently used one-hand operation mode based on the finger vein feature information; determining a virtual key creation strategy based on a one-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, and the functions and the icons of each first virtual key and the corresponding second virtual key are the same; n first virtual keys are created and displayed based on the virtual key creation policy. By adopting the embodiment of the application, the problem that the operation is inconvenient because part of keys cannot be operated in the single operation process can be solved.

Description

Virtual key creation method and related equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a virtual key creation method and related devices.
Background
With the development of mobile communication technology, electronic devices (such as smart phones and tablet computers) have gradually become an integral part of life of people, and great convenience is provided for people to work. Currently, the size of the screen of the electronic device is also becoming larger, however, when a user operates the mobile phone, one-hand operation is generally adopted, and if the screen bandwidth of the electronic device is larger than the length of a finger of a person, part of keys are difficult to be touched by one hand.
Disclosure of Invention
The embodiment of the application provides a virtual key creation method and related equipment, which are used for solving the problem of inconvenient operation caused by the fact that part of keys cannot be operated in a single operation process.
In a first aspect, an embodiment of the present application provides a virtual key creation method, applied to an electronic device including a finger vein recognition module, where the method includes:
acquiring the finger vein characteristic information identified by the finger vein identification module;
determining a currently used one-hand operation mode based on the finger vein feature information;
determining a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers;
and creating and displaying the N first virtual keys based on the virtual key creation strategy.
In a second aspect, an embodiment of the present application provides a virtual key creation apparatus applied to an electronic device including a finger vein recognition module, where the apparatus includes:
the information acquisition unit is used for acquiring the finger vein characteristic information identified by the finger vein identification module;
the determining unit is used for determining a currently used one-hand operation mode based on the finger vein feature information; determining a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers;
and the display control unit is used for creating and displaying the N first virtual keys based on the virtual key creation strategy.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in the method described in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the finger vein feature information identified by the finger vein identification module is acquired first, then the currently used one-hand operation mode is determined based on the acquired finger vein feature information, then the virtual key creation policy is determined based on the determined one-hand operation mode and the currently displayed target interface, and finally N first virtual keys are created and displayed based on the determined virtual key creation policy. Because the N first virtual keys are created by considering the currently used single-hand operation mode, and the created N first virtual keys are equivalent to a part of virtual keys included in the copy target interface, the problem that the operation is inconvenient because part of virtual keys which are difficult to touch by single-hand operation are moved to the positions which are easy to touch by single-hand operation is solved, and the problem that part of keys cannot be operated in the single-body operation process is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a schematic flow chart of a virtual key creation method according to an embodiment of the present application;
FIG. 2B is a schematic diagram of a target interface provided by an embodiment of the present application;
FIG. 2C is a schematic diagram of an interface after virtual key creation according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another virtual key creation method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a virtual key creating device according to an embodiment of the present application.
Detailed Description
The terminology used in the description section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application. The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the drawings, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The electronic device may include various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), etc.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes a processor, a memory, a signal processor, a communication interface, a touch screen, a finger vein recognition module, a speaker, a microphone, a random access memory (Random Access Memory, RAM), a camera, a sensor, and so on.
The processor may be an AP processor, or may be another processor.
The device comprises a memory, a signal processor, a touch screen, a loudspeaker, a microphone, a RAM, a camera and a sensor, wherein the memory, the signal processor, the touch screen, the loudspeaker, the microphone, the RAM, the camera and the sensor are connected with the processor, and a communication interface is connected with the signal processor.
The sensor comprises a fingerprint sensor, an infrared sensor, a gyroscope and the like.
The finger vein recognition is a biological recognition technology for performing identity recognition after converting a vein image formed by utilizing absorption of near infrared light by hemoglobin in blood flowing in a finger into digital features, and finger vein feature information of a user can be conveniently recognized through a finger vein recognition module. The finger vein recognition module may be disposed on the back, sides, or other locations of the electronic device that facilitate finger vein recognition and one-handed operation. For example, the finger vein recognition module is disposed in the whole area of the back of the electronic device, i.e. any area of the back of the electronic device can recognize the finger vein feature information of the user.
In this embodiment of the present application, the processor is configured to obtain the finger vein feature information identified by the finger vein identification module; determining a currently used one-hand operation mode based on the finger vein feature information; determining a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers; and creating and displaying the N first virtual keys based on the virtual key creation strategy.
In an implementation manner of the present application, the created and displayed icons of the N first virtual keys are allowed to move.
In an implementation manner of the present application, after creating and displaying the N first virtual keys based on the virtual key creation policy, the processor is further configured to remove display of the K first virtual keys if K first virtual keys of the N first virtual keys exceed a first duration and are not enabled, where K is a positive integer.
In an implementation manner of the present application, the processor is further configured to remove, when removing the display of the K first virtual keys, display of K second virtual keys corresponding to the K first virtual keys.
In an implementation manner of the present application, after creating and displaying the N first virtual keys based on the virtual key creation policy, the processor is further configured to remove display of the N first virtual keys if it is detected that one of the N first virtual keys is dragged to a specified position.
In an implementation manner of the present application, after the N first virtual keys are created and displayed based on the virtual key creation policy, the processor is further configured to remove display of the N first virtual keys if a specific touch operation for one of the N first virtual keys is detected.
In an implementation manner of the present application, after the N first virtual keys are created and displayed based on the virtual key creation policy, the processor is further configured to remove display of the N first virtual keys if it is detected that the finger vein recognition module does not recognize the finger vein feature information for more than a second period of time.
It should be noted that, the specific implementation process of the steps performed by each module may refer to the specific implementation process described in the following method, which is not described herein.
Referring to fig. 2A, fig. 2A is a flowchart of a virtual key creation method provided in an embodiment of the present application, where the method is applied to the electronic device, and includes:
step 201: and the electronic equipment acquires the finger vein characteristic information identified by the finger vein identification module.
The finger vein recognition is a biological recognition technology for performing identity recognition after converting a vein image formed by utilizing absorption of near infrared light by hemoglobin in blood flowing in a finger into digital features, and finger vein feature information of a user can be conveniently recognized through a finger vein recognition module.
The finger vein recognition module can be arranged on the back surface, two sides or other positions convenient for realizing finger vein recognition and one-hand operation of the electronic equipment. For example, the finger vein recognition module is disposed in the whole area of the back of the electronic device, i.e. any area of the back of the electronic device can recognize the finger vein feature information of the user.
Wherein the finger vein feature information includes at least one of the following information: the number of vein line endpoints, the number of intersections in the vein line, the number of ring structures in the vein line, the number of intersections in the ring structure, etc.
Step 202: the electronic equipment determines a currently used one-hand operation mode based on the finger vein feature information.
The one-hand operation mode is, for example, a left-hand operation mode or a right-hand operation mode.
Specifically, the specific implementation manner of step 202 is as follows: the electronic equipment determines first preset finger vein feature information matched with the finger vein feature information; the electronic equipment determines a first single-hand operation mode corresponding to the first preset finger vein feature information based on the mapping relation between the finger vein feature information and the single-hand operation mode; the electronic equipment takes the first one-hand operation mode as a currently used one-hand operation mode. The mapping relationship between the finger vein feature information and the single-hand operation mode is shown in table 1.
TABLE 1
Figure BDA0002072193490000051
Step 203: the electronic equipment determines a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers.
The currently displayed target interface includes, for example, a main interface of a certain video playing application, a video playing interface of a certain video playing application, a chat interface of a certain instant chat application, a main interface of a certain shopping application, a payment interface of a certain shopping application, and the like.
In an implementation manner of the present application, the specific implementation manner of determining, by the electronic device, the display position update policy of the virtual key based on the one-hand operation manner and the currently displayed target interface includes: the electronic equipment determines the virtual key creation strategy based on a single-hand operation mode, a mapping relation between an interface and the virtual key creation strategy, the single-hand operation mode and the target interface. The mapping relationship between the single-hand operation mode, the interface and the virtual key creation strategy is shown in table 2.
TABLE 2
Figure BDA0002072193490000061
In an implementation manner of the present application, the specific implementation manner of determining the virtual key creation policy by the electronic device based on the one-hand operation manner and the currently displayed target interface includes:
the electronic equipment determines J second virtual keys, wherein the J second virtual keys are common virtual keys of the target interface, and the J is a positive integer;
the electronic equipment determines a first area which is not touched by the single-hand operation mode;
the electronic equipment determines N second virtual keys, and the display position of each second virtual key in the N second virtual keys is in the first area;
the electronic equipment determines N display positions, wherein the N display positions are all in a second area obtained by touching in the single-hand operation mode;
the electronic device generates a virtual key creation policy based on the N display locations and the N second virtual keys.
The generated content of the virtual key creation policy includes icons of the N second virtual keys as icons of the N first virtual keys, functions of the N second virtual keys as functions of the N first virtual keys, N display positions as display positions of the N first virtual keys, the N second virtual keys and the N first virtual keys being in one-to-one correspondence, and the N display positions and the N first virtual keys being in one-to-one correspondence.
Further, the first area which is not touched by the single-hand operation mode and the second area which is obtained by touching by the single-hand operation mode are determined by the electronic equipment based on the mapping relation among the single-hand operation mode, the area which is not touched and the area obtained by touching. The mapping relationships among the single-hand operation mode, the area which is not touched and the area obtained by touch are shown in table 3. Wherein the area a plus the area a equals the entire display area of the electronic device, the area B plus the area B equals the entire display area of the electronic device,
TABLE 3 Table 3
One-hand operation mode Area not touched Touch-obtained area
Left hand operation mode Area A Region a
Right hand mode of operation Region B Region b
Further, the electronic device determines N display positions, including: the electronic equipment determines and obtains Q display positions according to the mapping relation between a single-hand operation mode and the display positions and the single-hand operation mode, wherein Q is an integer greater than or equal to N; and the electronic equipment selects N display positions from the Q display positions, and the N display positions do not display any information in the target interface. The mapping relationship between the single-hand operation mode and the display position is shown in table 4.
TABLE 4 Table 4
Figure BDA0002072193490000071
Step 204: the electronic device creates and displays the N first virtual keys based on the virtual key creation policy.
Further, after step 204, the method further comprises:
and if the clicking operation aiming at one of the N first virtual keys is detected, executing the function corresponding to the clicked one of the first virtual keys by the electronic equipment.
For example, assuming that the obtained finger vein feature information and the preset finger vein feature information 1 are used, the currently used one-hand operation mode is determined to be the left-hand operation mode through table 1, assuming that the currently displayed target interface is the main interface of the video playing application a, the virtual key creation policy is determined to be the virtual key creation policy 1 through table 2. Assuming that the currently displayed target interface is shown in fig. 2B, the target interface includes 6 second virtual keys, such as a second virtual key with an icon of 1, an icon of 2, an icon of 3, an icon of 4, an icon of 5, and an icon of 6, if the virtual key creation policy 1 is an icon of 4 and an icon of 5 of 2 first virtual keys to be created, the display position of the first virtual key with an icon of 4 is a display position 1 (such as directly above the second virtual key with an icon of 1 and how many millimeters from the second virtual key with an icon of 1), the display position of the first virtual key with an icon of 5 is a display position 2 (directly above the display position 1 and how many millimeters from the display position of 1), the function of the first virtual key with an icon of 4 is a function 4 (i.e., the function of the second virtual key with an icon of 4 is also a function 4), and the function of the first virtual key with an icon of 5 is a function 5 (i.e., the function of the second virtual key with an icon of 5 is also a function 5), then the 2 first virtual keys created based on the virtual key creation policy 1 are shown in fig. 2C.
It can be seen that, in the embodiment of the present application, the finger vein feature information identified by the finger vein identification module is acquired first, then the currently used one-hand operation mode is determined based on the acquired finger vein feature information, then the virtual key creation policy is determined based on the determined one-hand operation mode and the currently displayed target interface, and finally N first virtual keys are created and displayed based on the determined virtual key creation policy. Because the N first virtual keys are created by considering the currently used single-hand operation mode, and the created N first virtual keys are equivalent to a part of virtual keys included in the copy target interface, the problem that the operation is inconvenient because part of virtual keys which are difficult to touch by single-hand operation are moved to the positions which are easy to touch by single-hand operation is solved, and the problem that part of keys cannot be operated in the single-body operation process is solved.
In an implementation manner of the present application, the created and displayed icons of the N first virtual keys are allowed to move.
Wherein the icons of the M second virtual keys are not allowed to move.
It can be seen that in the embodiment of the present application, the created icon of the first virtual key is set to be movable, so that the user can move the icon of the first virtual key to a suitable position according to the actual usage habit, and the problem that the operation is inconvenient due to the fact that part of keys cannot be operated in the single operation process is further solved.
In an implementation manner of the present application, after the electronic device creates and displays the N first virtual keys based on the virtual key creation policy, the method further includes:
and if the K first virtual keys in the N first virtual keys are not started for more than a first duration, the electronic equipment removes the display of the K first virtual keys, wherein K is a positive integer.
The first time length is, for example, 1min, 5min, 6min, 10min, 30min, or other values.
It can be seen that, in the embodiment of the present application, if some first virtual keys are created and not activated for a long time, in this case, some first virtual keys that may be created are not temporarily used by the user, and at this time, some first virtual keys are removed from display, so that the problem that the virtual keys block the display content can be avoided.
In an implementation manner of the present application, the method further includes:
and when the display of the K first virtual keys is removed, the electronic equipment removes the display of the K second virtual keys corresponding to the K first virtual keys.
It can be seen that, in the embodiment of the present application, since the K first virtual keys are not activated for a long time, in this case, the corresponding K second virtual keys may not be used for a user, and at this time, the K second virtual keys are removed from display, which can further avoid the problem that the virtual keys block the display content.
In an implementation manner of the present application, after the electronic device creates and displays the N first virtual keys based on the virtual key creation policy, the method further includes:
and if one of the N first virtual keys is detected to be dragged to the designated position, the electronic equipment removes the display of the N first virtual keys.
The designated position may be a position of a second virtual key corresponding to one of the dragged first virtual keys, or may be a fixed position of the display screen (e.g., an upper right corner of the display screen, an upper left corner of the display screen, a middle of the display screen, etc.), and so on.
It can be seen that, in the embodiment of the present application, the display of the N first virtual keys may be removed by dragging one first virtual key to a designated position, which is convenient and fast, and improves the efficiency of removing the display.
In an implementation manner of the present application, after the electronic device creates and displays the N first virtual keys based on the virtual key creation policy, the method further includes:
and if the specific touch operation aiming at one of the N first virtual keys is detected, the electronic equipment removes the display of the N first virtual keys.
The specific touch operation may be, for example, a long press operation, a continuous click operation, or the like.
It can be seen that, in the embodiment of the present application, the display of the N first virtual keys may be removed by performing a specific touch operation on one first virtual key, which is convenient and fast, and improves the efficiency of removing the display.
In an implementation manner of the present application, after the electronic device creates and displays the N first virtual keys based on the virtual key creation policy, the method further includes:
and if the finger vein recognition module is detected to not recognize the finger vein feature information beyond the second time period, the electronic equipment removes the display of the N first virtual keys.
The second time period may be 5min, 8min, 10min, 11min, 20min, or other values.
It can be seen that, in the embodiment of the present application, if the finger vein feature information is not recognized for a long time, it indicates that the currently used operation mode is not the above-determined one-hand operation mode, and at this time, the N first virtual keys are removed from display, so that the problem that the virtual keys block the display content can be avoided.
In an implementation manner of the present application, before the electronic device obtains the finger vein feature information identified by the finger vein identification module, the method further includes: and the electronic equipment determines the target interface as a setting interface.
The setting interface is, for example, a main interface of a certain video playing application, a chat interface of a certain instant chat application, a main interface of a certain shopping application, etc.
It can be seen that in the embodiment of the present application, only under a specific interface, a new virtual key is generated, so that power consumption of the electronic device can be reduced.
In an implementation manner of the present application, before the electronic device obtains the finger vein feature information identified by the finger vein identification module, the method further includes: and the electronic equipment determines that the duration of stay on the target interface exceeds the set duration.
The set time period may be 1min, 2min, 3min, 8min, 10min or other values.
It can be seen that in the embodiment of the present application, only when the duration of stay at the current interface exceeds a certain value, a new virtual key is generated, so that power consumption of the electronic device can be reduced.
Referring to fig. 3, fig. 3 is a schematic flow chart of a virtual key creation method according to an embodiment of the present application, consistent with the embodiment shown in fig. 2A, and the virtual key creation method is applied to the electronic device, and includes:
step 301: and the electronic equipment acquires the finger vein characteristic information identified by the finger vein identification module.
Step 302: the electronic equipment determines a currently used one-hand operation mode based on the finger vein feature information.
Step 303: the electronic equipment determines a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers.
Step 304: the electronic device creates and displays the N first virtual keys based on the virtual key creation policy.
Step 305: and if the K first virtual keys in the N first virtual keys are not started for more than a first duration, the electronic equipment removes the display of the K first virtual keys, wherein K is a positive integer.
Step 306: and when the display of the K first virtual keys is removed, the electronic equipment removes the display of the K second virtual keys corresponding to the K first virtual keys.
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 2A and fig. 3, where the electronic device further includes a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
acquiring the finger vein characteristic information identified by the finger vein identification module;
determining a currently used one-hand operation mode based on the finger vein feature information;
determining a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers;
and creating and displaying the N first virtual keys based on the virtual key creation strategy.
In an implementation manner of the present application, the created and displayed icons of the N first virtual keys are allowed to move.
In an implementation manner of the present application, after the virtual key creation policy creates and displays the N first virtual keys, the program further includes instructions for performing the following steps:
and if the K first virtual keys in the N first virtual keys are not started for more than a first duration, removing the display of the K first virtual keys, wherein K is a positive integer.
In an implementation of the present application, the program further includes instructions for performing the steps of:
and removing the display of the K second virtual keys corresponding to the K first virtual keys when the display of the K first virtual keys is removed.
In an implementation of the present application, after creating and displaying the N first virtual keys based on the virtual key creation policy, the program further includes instructions for:
and if one of the N first virtual keys is detected to be dragged to the designated position, removing the display of the N first virtual keys.
In an implementation of the present application, after creating and displaying the N first virtual keys based on the virtual key creation policy, the program further includes instructions for:
and removing the display of the N first virtual keys if a specific touch operation aiming at one of the N first virtual keys is detected.
In an implementation of the present application, after creating and displaying the N first virtual keys based on the virtual key creation policy, the program further includes instructions for:
and if the finger vein recognition module is detected to not recognize the finger vein feature information beyond the second time period, removing the display of the N first virtual keys.
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described herein.
The foregoing embodiments mainly describe the solutions of the embodiments of the present application from the point of view of the method-side execution procedure. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
According to the embodiment of the application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The following is an embodiment of the apparatus, which is configured to execute a method implemented by an embodiment of the method of the present application. Referring to fig. 5, fig. 5 is a schematic diagram of a virtual key creation device provided in an embodiment of the present application, which is applied to an electronic device including a finger vein recognition module, and the device includes:
an information obtaining unit 501, configured to obtain the finger vein feature information identified by the finger vein identifying module;
a determining unit 502, configured to determine a currently used one-hand operation mode based on the finger vein feature information; determining a virtual key creation strategy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation strategy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers;
and a display control unit 503, configured to create and display the N first virtual keys based on the virtual key creation policy.
In an implementation manner of the present application, the created and displayed icons of the N first virtual keys are allowed to move.
In an implementation manner of the present application, the display control unit 503 is further configured to, after the N first virtual keys are created and displayed based on the virtual key creation policy, remove display of the K first virtual keys if K first virtual keys in the N first virtual keys exceed a first duration and are not enabled, where K is a positive integer.
In an implementation manner of the present application, the display control unit 503 is further configured to remove, when removing the display of the K first virtual keys, the display of K second virtual keys corresponding to the K first virtual keys.
In an implementation manner of the present application, the display control unit 503 is further configured to, after creating and displaying the N first virtual keys based on the virtual key creation policy, remove the display of the N first virtual keys if it is detected that one of the N first virtual keys is dragged to a designated position.
In an implementation manner of the present application, the display control unit 503 is further configured to, after creating and displaying the N first virtual keys based on the virtual key creation policy, remove the display of the N first virtual keys if a specific touch operation for one of the N first virtual keys is detected.
In an implementation manner of the present application, the display control unit 503 is further configured to, after creating and displaying the N first virtual keys based on the virtual key creation policy, remove display of the N first virtual keys if it is detected that the finger vein recognition module does not recognize the finger vein feature information for more than a second period of time.
Note that the information acquisition unit 501, the determination unit 502, and the display control unit 503 may be implemented by a processor.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (8)

1. A virtual key creation method, applied to an electronic device including a finger vein recognition module, comprising:
determining that the duration of stay on the target interface exceeds the set duration;
acquiring the finger vein characteristic information identified by the finger vein identification module;
determining a currently used one-hand operation mode based on the finger vein feature information;
determining a virtual key creation policy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation policy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and the icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers, wherein the determining the virtual key creation policy based on the single-hand operation mode and the currently displayed target interface comprises: determining a virtual key creation strategy based on a single-hand operation mode, a mapping relation between a target interface and a virtual key creation strategy, the single-hand operation mode and the target interface, wherein when the single-hand operation mode and/or the target interface are different, the corresponding virtual key creation strategies are different;
creating and displaying the N first virtual keys based on the virtual key creation strategy;
if K first virtual keys in the N first virtual keys are not started for more than a first duration, removing display of the K first virtual keys, wherein K is a positive integer;
and removing the display of the K second virtual keys corresponding to the K first virtual keys when the display of the K first virtual keys is removed.
2. The method of claim 1, wherein the created and displayed icons of the N first virtual keys are allowed to move.
3. The method of any of claims 1-2, wherein after the creating and displaying the N first virtual keys based on the virtual key creation policy, the method further comprises:
and if one of the N first virtual keys is detected to be dragged to the designated position, removing the display of the N first virtual keys.
4. The method of any of claims 1-2, wherein after the creating and displaying the N first virtual keys based on the virtual key creation policy, the method further comprises:
and removing the display of the N first virtual keys if a specific touch operation aiming at one of the N first virtual keys is detected.
5. The method of any of claims 1-2, wherein after the creating and displaying the N first virtual keys based on the virtual key creation policy, the method further comprises:
and if the finger vein recognition module is detected to not recognize the finger vein feature information beyond the second time period, removing the display of the N first virtual keys.
6. A virtual key creation apparatus, for application to an electronic device including a finger vein recognition module, the apparatus comprising:
the information acquisition unit is used for acquiring the finger vein characteristic information identified by the finger vein identification module when the time length of stay on the target interface exceeds the set time length;
the determining unit is used for determining a currently used one-hand operation mode based on the finger vein feature information; determining a virtual key creation policy based on the single-hand operation mode and a currently displayed target interface, wherein the virtual key creation policy comprises an icon of each first virtual key in N first virtual keys to be created, a display position of each first virtual key and a function of each first virtual key, the target interface comprises M second virtual keys, each first virtual key corresponds to one second virtual key, the functions and icons of each first virtual key and the corresponding second virtual key are the same, and N and M are positive integers, wherein the determination unit determines the virtual key creation policy based on the single-hand operation mode, a mapping relation between the target interface and the virtual key creation policy, the single-hand operation mode and the target interface, and when the single-hand operation mode and/or the target interface are different, the corresponding virtual key creation policy is different;
the display control unit is used for creating and displaying the N first virtual keys based on the virtual key creation strategy;
the display control unit is further configured to, after the N first virtual keys are created and displayed based on the virtual key creation policy, remove display of the K first virtual keys if K first virtual keys in the N first virtual keys exceed a first duration and are not enabled, where K is a positive integer, and remove display of K second virtual keys corresponding to the K first virtual keys when display of the K first virtual keys is removed.
7. An electronic device comprising a finger vein recognition module, the electronic device further comprising a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by a processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201910441649.XA 2019-05-24 2019-05-24 Virtual key creation method and related equipment Active CN110162372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910441649.XA CN110162372B (en) 2019-05-24 2019-05-24 Virtual key creation method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910441649.XA CN110162372B (en) 2019-05-24 2019-05-24 Virtual key creation method and related equipment

Publications (2)

Publication Number Publication Date
CN110162372A CN110162372A (en) 2019-08-23
CN110162372B true CN110162372B (en) 2023-04-21

Family

ID=67632873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910441649.XA Active CN110162372B (en) 2019-05-24 2019-05-24 Virtual key creation method and related equipment

Country Status (1)

Country Link
CN (1) CN110162372B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142767B (en) 2019-12-16 2021-06-01 华为技术有限公司 User-defined key method and device of folding device and storage medium
CN112416226A (en) * 2020-11-19 2021-02-26 珠海格力电器股份有限公司 Button display method and device, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630390A (en) * 2015-12-25 2016-06-01 广东欧珀移动通信有限公司 Method and device for processing virtual key of mobile terminal
CN105975832A (en) * 2016-05-26 2016-09-28 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN106716357A (en) * 2016-12-29 2017-05-24 深圳前海达闼云端智能科技有限公司 Control method of multisystem mobile terminal, control device and electronic device
CN106845190A (en) * 2016-12-26 2017-06-13 珠海市魅族科技有限公司 Display control program and method
CN107547750A (en) * 2017-09-11 2018-01-05 广东欧珀移动通信有限公司 Control method, device and the storage medium of terminal
CN107678666A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of virtual key display methods, mobile terminal and computer-readable recording medium
CN107977132A (en) * 2017-12-20 2018-05-01 维沃移动通信有限公司 A kind of method for information display and mobile terminal
CN108304135A (en) * 2018-02-08 2018-07-20 上海爱优威软件开发有限公司 A kind of method of adjustment and terminal of virtual modifier key

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9760214B2 (en) * 2005-02-23 2017-09-12 Zienon, Llc Method and apparatus for data entry input
US10192527B2 (en) * 2012-10-26 2019-01-29 Thomson Licensing User interfaces for hand-held electronic devices
CN107329644B (en) * 2016-04-29 2020-05-19 宇龙计算机通信科技(深圳)有限公司 Icon moving method and device
CN106681620A (en) * 2016-11-30 2017-05-17 努比亚技术有限公司 Method and device for achieving terminal control
CN106843642A (en) * 2016-12-30 2017-06-13 努比亚技术有限公司 The exchange method and mobile terminal of a kind of mobile terminal
CN107608591A (en) * 2017-09-25 2018-01-19 维沃移动通信有限公司 The display methods and mobile terminal of a kind of virtual key

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630390A (en) * 2015-12-25 2016-06-01 广东欧珀移动通信有限公司 Method and device for processing virtual key of mobile terminal
CN105975832A (en) * 2016-05-26 2016-09-28 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN106845190A (en) * 2016-12-26 2017-06-13 珠海市魅族科技有限公司 Display control program and method
CN106716357A (en) * 2016-12-29 2017-05-24 深圳前海达闼云端智能科技有限公司 Control method of multisystem mobile terminal, control device and electronic device
CN107547750A (en) * 2017-09-11 2018-01-05 广东欧珀移动通信有限公司 Control method, device and the storage medium of terminal
CN107678666A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of virtual key display methods, mobile terminal and computer-readable recording medium
CN107977132A (en) * 2017-12-20 2018-05-01 维沃移动通信有限公司 A kind of method for information display and mobile terminal
CN108304135A (en) * 2018-02-08 2018-07-20 上海爱优威软件开发有限公司 A kind of method of adjustment and terminal of virtual modifier key

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Gao Xiang 等."A method of key positioning based on laser virtual keyboard".《Journal of Measurement Science and Instrumentation》.2014,第5卷(第2期),第27-30页. *
李攀 ; 秦拯 ; .一种利用拇指控制的触屏手机虚拟键盘按键提取方法.计算机系统应用.2010,(第11期),第229-233页. *
蒋先涛 等."基于高通平台的触摸屏和虚拟按键设计与实现".《计算机技术与发展》.2012,第22卷(第6期),第251-253页. *

Also Published As

Publication number Publication date
CN110162372A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
US9983770B2 (en) Screen capture method, apparatus, and terminal device
US10395089B2 (en) Application and picture display verification methods, apparatuses, and electronic device
CN109583356B (en) Fingerprint identification method and related product
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
CN109409320B (en) Fingerprint acquisition method and related equipment
WO2017128522A1 (en) Method, device, and terminal for processing touch-control operation
CN109241954B (en) Fingerprint identification method and related equipment
WO2017005020A1 (en) Mobile terminal, and method therefor for realizing automatic answering
CN107172347B (en) Photographing method and terminal
CN109543378B (en) Fingerprint unlocking method and related equipment
EP2770457B1 (en) Apparatus and method for managing security of terminal
CN108073380B (en) Electronic device, display control method and related product
WO2017161824A1 (en) Method and device for controlling terminal
US20170068374A1 (en) Changing an interaction layer on a graphical user interface
CN110162372B (en) Virtual key creation method and related equipment
CN105446607A (en) Camera touch shooting method and touch terminal thereof
CN110287925A (en) Read flipping-over control method and Related product
CN108846271B (en) Device control method, device, storage medium and electronic device
CN108307068A (en) Pair screen shows interface switching method, mobile terminal and storage medium
WO2014173327A1 (en) Method and device for adjusting a button identification region
CN113655929A (en) Interface display adaptation processing method and device and electronic equipment
WO2019071980A1 (en) Control method and device
CN112734661A (en) Image processing method and device
WO2017075986A1 (en) Method and device for interface zooming and terminal device

Legal Events

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