Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a function starting method applied to an electronic device, such as a mobile phone, as shown in fig. 1, the function starting method includes:
step 101, detecting whether the operation on the function operation area is a finger operation; if yes, go to step 102, otherwise, end directly.
In this embodiment, the function operation area includes a virtual button or a physical button, the virtual button is, for example, a touch pad, and the physical button is, for example, a physical start key (i.e., a HOME key) of a mobile phone, but in practice, the present embodiment is not limited thereto, and the type of the function operation area is not limited in any way.
In the embodiment, when the operation on the function operation area is detected, whether the fingerprint of the hand exists in the operation is identified, so that whether the operation is the finger operation is judged; however, the present embodiment is not limited to this, and the determination method of whether the operation is a finger operation is not limited in any way.
And 102, acquiring the fingerprint of the finger through a fingerprint identification module integrated in the functional operation area.
In this embodiment, the fingerprint identification module may be integrated in a display screen of the electronic device, that is, the full screen has a fingerprint identification function; however, the present embodiment is not limited thereto, and the integration area of the fingerprint recognition module is not limited thereto.
Step 103, judging whether the fingerprint meets a preset condition; if yes, go to step 104, otherwise go to step 105.
In this embodiment, the preset condition is related to the fingerprint pattern and the fingerprint area of the fingerprint, and the specific preset condition can be pre-set in advance according to the requirement.
And 104, starting a first preset function corresponding to the function operation area.
In this embodiment, two functions, i.e., a first preset function and a second preset function, may be defined in advance for the function operating area. And when the fingerprint is judged to meet the preset condition, automatically starting a first preset function.
And 105, starting a second preset function corresponding to the function operation area.
In this embodiment, when it is determined that the fingerprint does not satisfy the preset condition, the second preset function is automatically started.
In one example, the function operating area is a screen unlocking area, a first preset function corresponding to the screen unlocking area is a standard mode space, a second preset function corresponding to the screen unlocking area is a private mode space, namely, when the screen is unlocked, when the finger fingerprint meets a preset condition, the screen enters the standard mode space, and when the finger fingerprint does not meet the preset condition, the screen enters the private mode space; however, this is merely an example and is not limited thereto.
In another example, the function operating area is an application icon of an application program, the first preset function corresponding to the application program is a use right only having a part of functions in the application, and the second preset function corresponding to the application program is a use right having all functions; when the application icon of the application program is subjected to finger operation, when the fingerprint of the finger meets the preset condition, the user has the use permission of partial functions in the application, and when the fingerprint of the finger does not meet the preset condition, the user has the use permission of all the functions in the application; however, this is merely an example and is not limited thereto.
Compared with the prior art, the embodiment of the invention has the advantages that the function operation area has a first preset function and a second preset function, and when the fingerprint for performing finger operation on the function operation area is acquired, whether the fingerprint meets the preset condition is judged; that is, in the function starting method provided in the embodiment of the present invention, if the fingerprint satisfies the preset condition, the first preset function is started, otherwise, the second preset function is started, the embodiment of the present invention can embed the fingerprint identification function in the basic operation of the function operating area, so that the fingerprint identification operation is concealed (embarrassment and misunderstanding caused by finding by others are avoided), the method replaces the prior art of prompting the user to input the fingerprint in an open mode facing the outside, and through satisfying the fingerprint of presetting the condition with unsatisfied presetting the condition, can realize two kinds of preset functions respectively (first preset function and second preset function promptly), improved security and confidentiality (start two kinds of preset functions respectively through two fingerprints that have the nuance promptly, and the difference of the finger operation that produces the nuance fingerprint, the other people is difficult to perceive), and easy operation is convenient.
The following describes implementation details of the function starting method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary for implementing the present embodiment.
In one example, as shown in fig. 2, the step 103 of determining whether the fingerprint satisfies the preset condition specifically includes the following sub-steps:
a substep 1031 of determining whether the fingerprint pattern of the fingerprint matches a preset fingerprint pattern; if so, go to substep 1032, otherwise end directly.
In this embodiment, a preset fingerprint may be stored in the electronic device in advance as a standard template (for example, but not limited to, a thumb), and the preset fingerprint at least includes a preset fingerprint pattern and a preset fingerprint area.
In this embodiment, whether the fingerprint pattern is matched with the preset fingerprint pattern can be determined by scanning the fingerprint pattern and the preset fingerprint pattern at the same time, and the matching degree can be set as required (for example, the matching degree is set to 80%, but not limited thereto); however, the present embodiment does not limit the determination method of whether two fingerprint patterns are matched.
A substep 1032 of judging whether the fingerprint area of the fingerprint is matched with a preset fingerprint area; if so, go to step 104, otherwise go to step 105.
In this embodiment, at least one of the plurality of contact points of the finger print and the function operating area is located within the coordinate range of the fingerprint identification area, and the area of the graph formed by the contact points located in the fingerprint identification area can be used as the contact area between the finger and the fingerprint identification area, that is, the fingerprint area; then comparing the fingerprint area with a preset fingerprint area, if the fingerprint area is larger than or equal to the preset fingerprint area, judging the fingerprint area to be matched, and if the fingerprint area is smaller than the preset fingerprint area, judging the fingerprint area to be unmatched; however, the present embodiment is not limited to this, and the calculation method of the fingerprint area is not limited in any way.
However, the above example is only an exemplary illustration, and in practice, the present embodiment is not limited thereto, and the specific implementation process for determining whether the fingerprint satisfies the preset condition is not limited at all.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A second embodiment of the present invention relates to a function starting method. The second embodiment is improved on the basis of the first embodiment, and the main improvement lies in that: in the second embodiment, in the process of determining whether the fingerprint satisfies the preset condition, the fingerprint orientation of the fingerprint pattern needs to be specifically determined.
Fig. 3 shows a function starting method of this embodiment, steps 201 to 202, step 204 to step 205 of this embodiment are the same as steps 101 to 102, and step 104 to step 105 of the first embodiment, and are not described herein again, and step 203 of this embodiment is as follows:
step 203, judging whether the fingerprint meets a preset condition; if yes, go to step 204, otherwise go to step 205.
In this embodiment, the preset condition is related to the fingerprint pattern, the fingerprint area, and the fingerprint orientation of the fingerprint, and the specific preset condition can be preset in advance according to the requirement.
In one example, as shown in fig. 2, the step 203 of determining whether the fingerprint satisfies the preset condition specifically includes the following sub-steps:
substep 2031 of determining whether the fingerprint pattern of the fingerprint matches a preset fingerprint pattern; if so, go to substep 2032, otherwise end directly.
In this embodiment, a preset fingerprint may be stored in the electronic device in advance as a standard template (for example, but not limited to, a thumb), and the preset fingerprint at least includes a preset fingerprint pattern and a preset fingerprint area.
In this embodiment, whether the fingerprint pattern is matched with the preset fingerprint pattern can be determined by scanning the fingerprint pattern and the preset fingerprint pattern at the same time, and the matching degree can be set as required (for example, the matching degree is set to 80%, but not limited thereto); however, the present embodiment does not limit the determination method of whether two fingerprint patterns are matched.
Substep 2032 of determining whether the fingerprint area of the fingerprint matches a preset fingerprint area; if so, go to step 2033, otherwise end directly.
In this embodiment, at least one of the plurality of contact points of the finger print and the function operating area is located within the coordinate range of the fingerprint identification area, and the area of the graph formed by the contact points located in the fingerprint identification area can be used as the contact area between the finger and the fingerprint identification area, that is, the fingerprint area; then comparing the fingerprint area with a preset fingerprint area, if the fingerprint area is larger than or equal to the preset fingerprint area, judging the fingerprint area to be matched, and if the fingerprint area is smaller than the preset fingerprint area, judging the fingerprint area to be unmatched; however, the present embodiment is not limited to this, and the calculation method of the fingerprint area is not limited in any way.
Substep 2033, identifying the fingerprint orientation of the fingerprint pattern, and judging whether the fingerprint orientation is matched with a preset orientation; if so, go to step 204, otherwise go to step 205.
In the present embodiment, the fingerprint orientation, i.e., the orientation of the fingertip; the fingerprint orientations include east, north, west, south, north-east, north-west, south-east.
In one example, the preset orientation may be a northwest orientation, since the frequency of the right thumb operating the electronic device is high, and the fingerprint orientation of the right thumb is usually the northwest orientation, but in practice, the present embodiment is not limited thereto, and the preset orientation may be set according to the operation habit.
In one example, fingerprint orientation is identified based on an angular value of the fingerprint pattern; specifically, two reference points (the reference points may be points with strong features, for example, the reference points include a fingerprint vertex and a fingerprint center, but are not limited thereto) are obtained from the fingerprint pattern, an angle value of the fingerprint pattern is calculated according to an included angle between a straight line where the two reference points are located and a preset reference line (for example, a horizontal line, but is not limited thereto), and if the angle value is 0 degree, the fingerprint faces east; if the angle value is 90 degrees, the fingerprint faces north; if the angle value is 180 degrees, the fingerprint orientation is facing west; if the angle value is 270 degrees, the fingerprint faces south; if the angle value is greater than 0 degree and less than 90 degrees, the fingerprint orientation is northeast orientation; if the angle value is greater than 90 degrees and less than 180 degrees, the fingerprint orientation is northwest orientation; if the angle value is greater than 180 degrees and less than 270 degrees, the fingerprint orientation is southwest orientation; if the angle value is greater than 270 degrees and less than 360 degrees, the fingerprint orientation is southeast orientation; however, this embodiment is only an exemplary embodiment, and the present embodiment does not set any limitation to the fingerprint orientation recognition method of the fingerprint.
In one example, the preset orientation is northwest, and whether the fingerprint orientation is matched with the preset orientation can be judged through the orientation identification; specifically, a comparison table of fingerprint orientation and orientation mark and an orientation mark of northwest orientation are stored in advance; for example, the orientation marks of the east, north, west, south, north-east, north-west, south-west, and south-east are a1, a2, A3, a4, a5, a6, a7, and A8, respectively, when the fingerprint orientation of the fingerprint pattern is identified as the north-west, the orientation mark a6 of the north-west is obtained according to the above comparison table, and then a6 is compared with the orientation mark of the north-west, obviously, the orientation marks are the same, and the fingerprint orientation matches with the preset orientation; however, this embodiment is only an exemplary illustration, and the present embodiment does not set any limitation on the determination manner of whether the fingerprint orientation matches the preset orientation.
In this embodiment, as shown in fig. 3, sub-step 2033 is after sub-step 2032, but in practice, the present embodiment is not limited thereto, and the order of sub-step 2033 is not limited at all, and may be before sub-step 2032, for example.
Compared with the first implementation mode, the embodiment of the invention increases the judgment condition of the fingerprint orientation in the first preset function corresponding to the starting function operation area, and improves the starting safety of the first preset function.
A third embodiment of the present invention relates to a function starting method. The third embodiment is improved on the basis of the second embodiment, and the main improvement lies in that: in the third embodiment of the present invention, the second preset function corresponding to the function operation area can be activated by a non-finger operation.
Fig. 4 shows a function starting method of this embodiment, steps 301 to 305 of this embodiment are the same as steps 201 to 205 of the first embodiment, and are not described herein again, and the modified steps of this embodiment are as follows:
step 301, detecting whether the operation on the function operation area is a finger operation; if yes, go to step 302, otherwise go to step 305.
In this embodiment, when the operation on the function operation area is detected to be a non-finger operation, the second preset function corresponding to the function operation area is started. The non-finger operation is, for example, a brush operation, an operation of another part of the body, and the like, and the present embodiment does not limit the type of the non-finger operation.
In fact, this embodiment may also be a modification of the first embodiment.
Compared with the first embodiment, in the embodiment of the present invention, when it is detected that the operation of the function operating area is a non-finger operation, the second preset function corresponding to the function operating area is started, that is, another way of starting the second preset function is added.
A fourth embodiment of the present invention relates to an electronic device, such as a mobile phone, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the function starting method in any one of the first to third embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Compared with the prior art, the method and the device have the advantages that the function operation area on the electronic equipment has the first preset function and the second preset function, and when the fingerprint for performing finger operation on the function operation area is acquired, whether the fingerprint meets the preset condition is judged; that is, in the electronic device provided in the embodiment of the present invention, if the fingerprint satisfies the preset condition, the first preset function is activated, otherwise, the second preset function is activated, the embodiment of the present invention can embed the fingerprint identification function in the basic operation of the function operation area, so that the fingerprint identification operation is concealed (embarrassment and misunderstanding caused by finding by others are avoided), the method replaces the prior art of prompting the user to input the fingerprint in an open mode facing the outside, and through satisfying the fingerprint of presetting the condition with unsatisfied presetting the condition, can realize two kinds of preset functions respectively (first preset function and second preset function promptly), improved security and confidentiality (start two kinds of preset functions respectively through two fingerprints that have the nuance promptly, and the difference of the finger operation that produces the nuance fingerprint, the other people is difficult to perceive), and easy operation is convenient.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the function starting method in any one of the first to third embodiments when executed by a processor.
Compared with the prior art, the method and the device have the advantages that the function operation area has a first preset function and a second preset function, and when the fingerprint for performing finger operation on the function operation area is acquired, whether the fingerprint meets the preset condition is judged; that is, in the electronic device provided in the embodiment of the present invention, if the fingerprint satisfies the preset condition, the first preset function is activated, otherwise, the second preset function is activated, the embodiment of the present invention can embed the fingerprint identification function in the basic operation of the function operation area, so that the fingerprint identification operation is concealed (embarrassment and misunderstanding caused by finding by others are avoided), the method replaces the prior art of prompting the user to input the fingerprint in an open mode facing the outside, and through satisfying the fingerprint of presetting the condition with unsatisfied presetting the condition, can realize two kinds of preset functions respectively (first preset function and second preset function promptly), improved security and confidentiality (start two kinds of preset functions respectively through two fingerprints that have the nuance promptly, and the difference of the finger operation that produces the nuance fingerprint, the other people is difficult to perceive), and easy operation is convenient.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.