Disclosure of Invention
In the process of implementing the present invention, the inventor finds that although the above-mentioned prior art scheme can unlock the touch screen device or log in the application software on the touch screen device through fingerprint identification to ensure information security, after the identity is verified, the information of the gesture touch operation is acquired after the interface is unlocked to execute the corresponding operation instruction, and the user needs to perform multiple input operations, which is tedious in step and affects user experience.
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for touch operation, which ensure information security during a touch operation process, reduce input operations of a user, improve efficiency of authentication, and improve user experience.
The method for touch operation provided by the embodiment of the invention comprises the following steps:
responding to a touch operation of a user, and scanning a fingerprint image on each touch screen point of the touch operation in real time;
determining the operation type of the touch operation according to the position and the operation duration of each touch screen point of the touch operation;
verifying the identity of the user according to the operation type of the touch operation and the fingerprint image;
and after the identity authentication of the user is successful, executing an operation instruction corresponding to the touch operation.
In an embodiment, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the operation type of the touch operation is determined to be a screen sliding operation, matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest value from the fingerprint matching values to verify the identity of the user;
if the selected fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
if the selected fingerprint matching value is larger than a second matching threshold and smaller than the first matching threshold, obtaining a screen-sliding track according to the position of each touch screen point of the touch operation, and identifying the coincidence degree of the screen-sliding track and the historical screen-sliding track of the user; when the coincidence degree is larger than the coincidence threshold value, the identity verification of the user is successful; when the coincidence degree is smaller than the coincidence threshold value, the identity verification of the user fails; wherein the second match threshold is less than the first match threshold;
and if the selected fingerprint matching value is smaller than the second matching threshold value, the identity authentication of the user fails.
In another embodiment, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the touch operation type is determined to be dragging operation, matching the fingerprint image on the last touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of the last touch screen point for verifying the identity of the user;
if the fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
and if the fingerprint matching value is smaller than the first matching threshold value, the identity verification of the user fails.
In another embodiment, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the operation type of the touch operation is determined to be a click operation, matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest numerical value from the fingerprint matching values to verify the identity of the user;
if the selected fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
and if the selected fingerprint matching value is smaller than the first matching threshold value, the identity authentication of the user fails.
Further, the method for touch operation further includes:
after the user fails in identity authentication, displaying reminding information of operation failure on the screen, and adding one to the count value;
and when the count value is larger than an early warning threshold value, freezing an account of the user on the application software operated by the touch operation.
Accordingly, an embodiment of the present invention further provides a touch device, including:
the fingerprint scanning module is used for responding to touch operation of a user and scanning a fingerprint image on each touch screen point of the touch operation in real time;
the operation determining module is used for determining the operation type of the touch operation according to the position and the operation duration of each touch screen point of the touch operation;
the identity authentication module is used for authenticating the identity of the user according to the operation type of the touch operation and the fingerprint image; and the combination of (a) and (b),
and the instruction execution module is used for executing the operation instruction corresponding to the touch operation after the identity authentication of the user is successful.
In one embodiment, the identity authentication module specifically includes:
the first fingerprint matching unit is used for respectively matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image when the operation type of the touch operation is determined to be the screen sliding operation, obtaining a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest value from the fingerprint matching values to be used for verifying the identity of the user;
the first verification unit is used for judging that the identity verification of the user is successful when the selected fingerprint matching value is larger than a first matching threshold value;
the second verification unit is used for obtaining a screen-sliding track according to the position of each touch screen point of the touch operation and identifying the coincidence degree of the screen-sliding track and the historical screen-sliding track of the user when the selected fingerprint matching value is larger than a second matching threshold and smaller than the first matching threshold; when the contact ratio is larger than a contact threshold value, judging that the identity verification of the user is successful; when the coincidence degree is smaller than the coincidence threshold value, judging that the identity verification of the user fails; wherein the second match threshold is less than the first match threshold; and the combination of (a) and (b),
and the third verification unit is used for judging that the identity verification of the user fails when the selected fingerprint matching value is smaller than the second matching threshold value.
In another embodiment, the identity verification module specifically includes:
the second fingerprint matching unit is used for matching the fingerprint image on the last touch screen point of the touch operation with a preset standard fingerprint image when the touch operation type is determined to be the dragging operation, and obtaining a fingerprint matching value of the last touch screen point so as to be used for verifying the identity of the user;
the fourth verification unit is used for judging that the identity verification of the user is successful when the fingerprint matching value of the last touch screen point is larger than the first matching threshold value; and the combination of (a) and (b),
and the fifth verification unit is used for judging that the identity verification of the user fails when the fingerprint matching value of the last touch screen point is smaller than the first matching threshold value.
In another embodiment, the identity verification module specifically includes:
the third fingerprint matching unit is used for respectively matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image when the operation type of the touch operation is determined to be a click operation, so as to obtain a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest value from the fingerprint matching values to be used for verifying the identity of the user;
the sixth verification unit is used for judging that the identity verification of the user is successful when the selected fingerprint matching value is larger than the first matching threshold value; and the combination of (a) and (b),
and the seventh verification unit is used for judging that the identity verification of the user fails when the selected fingerprint matching value is smaller than the first matching threshold value.
Further, the touch-operated device further includes:
the verification failure processing module is used for displaying reminding information of operation failure on the screen after the identity verification of the user fails and adding one to the count value; and the combination of (a) and (b),
and the account freezing module is used for freezing the account of the user on the application software operated by the touch operation when the count value is larger than the early warning threshold value.
The embodiment of the invention has the following beneficial effects:
the touch operation method and the touch operation device provided by the embodiment of the invention can acquire the information of the touch operation of the user and simultaneously scan the fingerprint image of the user in real time, and execute the operation instruction corresponding to the touch operation after the identity of the user is successfully verified according to the type of the touch operation and the fingerprint image, so that the information safety in the touch operation process can be ensured.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, a flowchart of an embodiment of a method for touch operation provided by the present invention is shown, where the method is executed by a touch device, and specifically includes the following steps:
the method for touch operation provided by the embodiment of the invention comprises the following steps:
s1, responding to the touch operation of a user, and scanning the fingerprint image on each touch screen point of the touch operation in real time;
s2, determining the operation type of the touch operation according to the position and the operation duration of each touch point of the touch operation;
s3, verifying the identity of the user according to the operation type of the touch operation and the fingerprint image;
and S4, after the identity authentication of the user is successful, executing an operation instruction corresponding to the touch operation.
Compared with the traditional touch operation, the method provided by the embodiment of the invention scans the fingerprint image of the touch operation in real time when the user performs the touch operation on the touch equipment, does not need the user to input the fingerprint information in the designated area of the application software in the touch equipment or the touch equipment first, unlocks the application software or the touch equipment after the identity of the user is successfully verified, and then the user can perform the touch operation on the application software or the touch equipment; and after the identity of the user to be verified is successful, the operation instruction of the touch operation is executed, so that the information security in the touch operation process can be ensured.
There are three embodiments for performing identity authentication according to the operation type of the touch operation and the fingerprint image, and each embodiment is described in detail below:
in an embodiment, in the step S3, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the operation type of the touch operation is determined to be a screen sliding operation, matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest value from the fingerprint matching values to verify the identity of the user;
if the selected fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
if the selected fingerprint matching value is larger than a second matching threshold and smaller than the first matching threshold, obtaining a screen-sliding track according to the position of each touch screen point of the touch operation, and identifying the coincidence degree of the screen-sliding track and the historical screen-sliding track of the user; when the coincidence degree is larger than the coincidence threshold value, the identity verification of the user is successful; when the coincidence degree is smaller than the coincidence threshold value, the identity verification of the user fails; wherein the second match threshold is less than the first match threshold;
and if the selected fingerprint matching value is smaller than the second matching threshold value, the identity authentication of the user fails.
It should be noted that, when the operation type of the touch operation is a screen-swiping operation, the user slides on the screen at a high speed, which may cause a part of the fingerprint image of the user to be erased along the sliding direction, so that the fingerprint image scanned in real time is blurred and difficult to identify, and thus each scanned fingerprint image is matched with the standard fingerprint image, and the fingerprint matching value with the highest fingerprint matching value is selected to be compared with the preset matching threshold value, so that the probability of passing the identity authentication can be improved. However, the fingerprint image scanned by the screen-sliding operation is generally difficult to confirm, and when the fingerprint matching value for verification does not reach the set matching threshold value, the user may need to perform the screen-sliding operation again for many times, so that the user is inconvenient to operate, and the identity of the user is verified by combining the fingerprint identification with the historical screen-sliding track used by the user.
The information of the screen-sliding track refers to the path length and the path inclination angle of the screen-sliding track, and the contact ratio of the screen-sliding track and the historical screen-sliding track of the user refers to: and comparing the path length of the screen-scratching track with the path length of the historical screen-scratching track of the user, comparing the path inclination angle of the screen-scratching track with the path inclination angle of the historical screen-scratching track of the user, and averaging the ratio obtained by comparing the path inclination angle of the screen-scratching track with the path inclination angle of the historical screen-scratching track of the user to obtain the contact ratio, namely the contact ratio.
In another embodiment, in the step S3, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the touch operation type is determined to be dragging operation, matching the fingerprint image on the last touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of the last touch screen point for verifying the identity of the user;
if the fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
and if the fingerprint matching value is smaller than the first matching threshold value, the identity verification of the user fails.
It should be noted that the dragging operation is similar to the screen swiping operation, the fingerprint image obtained when the user touches the screen is difficult to identify due to the dragging effect, but the fingerprint image at the last dragged drop point is generally the highest in definition, so in the embodiment of the present invention, an authentication operation different from the screen swiping operation is adopted, and only the fingerprint image at the last touch screen point of the dragging operation needs to be matched with the standard image, so that the time for authenticating the identity of the user is reduced, and the efficiency is improved.
In another embodiment, in the step S3, the verifying the identity of the user according to the operation type of the touch operation and the fingerprint image specifically includes:
when the operation type of the touch operation is determined to be a click operation, matching the fingerprint image on each touch screen point of the touch operation with a preset standard fingerprint image to obtain a fingerprint matching value of each touch screen point, and selecting the fingerprint matching value with the highest numerical value from the fingerprint matching values to verify the identity of the user;
if the selected fingerprint matching value is larger than a first matching threshold value, the identity verification of the user is successful;
and if the selected fingerprint matching value is smaller than the first matching threshold value, the identity authentication of the user fails.
It should be noted that the clicking operation includes clicking, long-time pressing, double-clicking or clicking on a plurality of different touch screen points, and the like, and because the clicking operation does not cause the fingerprint image blur due to sliding or dragging, and the touch screen points of the clicking operation are relatively few, the fingerprint image on each touch screen point is respectively matched with the pre-configured standard fingerprint image, and the occupied time is short, the fingerprint image on each touch screen point can be respectively matched with the pre-configured standard fingerprint image, and then the fingerprint matching value with the highest value is selected from the fingerprint matching values for identity authentication, so that the efficiency of identity authentication is not affected.
Further, the method for touch operation further includes:
after the user fails in identity authentication, displaying reminding information of operation failure on the screen, and adding one to the count value;
and when the count value is larger than an early warning threshold value, freezing an account of the user on the application software operated by the touch operation.
It should be noted that, by setting an early warning threshold, the information security of the user can be further enhanced, and it is avoided that other people steal the personal information in the touch device or the application software on the touch device.
The touch operation method provided by the embodiment of the invention can be used for scanning the fingerprint image of the user in real time while acquiring the touch operation information of the user, executing the operation instruction corresponding to the touch operation after the identity of the user is successfully verified according to the type of the touch operation and the fingerprint image, and ensuring the information safety in the touch operation process.
Accordingly, the present invention further provides a touch operation device, which is capable of implementing all the processes of the touch operation method in the above embodiments, and the touch operation device provided by the present invention is described in detail below with reference to fig. 2 to 5.
Referring to fig. 2, a schematic structural diagram of an embodiment of a touch-control device provided in the present invention is shown, where the touch-control device includes:
thefingerprint scanning module 10 is configured to respond to a touch operation of a user, and scan a fingerprint image on each touch screen point of the touch operation in real time;
anoperation determining module 20, configured to determine an operation type of the touch operation according to a position and an operation duration of each touch point of the touch operation;
theidentity authentication module 30 is configured to authenticate the identity of the user according to the operation type of the touch operation and the fingerprint image; and the combination of (a) and (b),
and theinstruction execution module 40 is configured to execute an operation instruction corresponding to the touch operation after the user successfully authenticates the identity.
Referring to fig. 3, which is a schematic structural diagram of an embodiment of an authentication module of a touch-operated device provided in the present invention, anauthentication module 30 in the embodiment specifically includes:
a first fingerprint matching unit 311, configured to, when it is determined that the operation type of the touch operation is a screen swiping operation, match a fingerprint image on each touch screen point of the touch operation with a pre-configured standard fingerprint image, obtain a fingerprint matching value of each touch screen point, and select a fingerprint matching value with a highest value from the fingerprint matching values, so as to verify an identity of the user;
afirst verification unit 312, configured to determine that the identity verification of the user is successful when the selected fingerprint matching value is greater than a first matching threshold;
asecond verification unit 313, configured to obtain a screen-swiping trajectory according to a position of each touch screen point of the touch operation when the selected fingerprint matching value is greater than a second matching threshold and smaller than the first matching threshold, and identify a coincidence degree of the screen-swiping trajectory and the historical screen-swiping trajectory of the user; when the contact ratio is larger than a contact threshold value, judging that the identity verification of the user is successful; when the coincidence degree is smaller than the coincidence threshold value, judging that the identity verification of the user fails; wherein the second match threshold is less than the first match threshold; and the combination of (a) and (b),
athird verification unit 314, configured to determine that the authentication of the user fails when the selected fingerprint matching value is smaller than the second matching threshold.
Referring to fig. 4, which is a schematic structural diagram of another embodiment of the authentication module of the touch-operated device provided in the present invention, theauthentication module 30 in the embodiment specifically includes:
a second fingerprint matching unit 321, configured to, when it is determined that the touch operation type is a dragging operation, match a fingerprint image on a last touch screen point of the touch operation with a pre-configured standard fingerprint image, to obtain a fingerprint matching value of the last touch screen point, so as to verify an identity of the user;
afourth verification unit 322, configured to determine that the identity verification of the user is successful when the fingerprint matching value of the last touch screen point is greater than the first matching threshold; and the combination of (a) and (b),
afifth verification unit 323, configured to determine that the authentication of the user fails when the fingerprint matching value of the last touch point is smaller than the first matching threshold.
Referring to fig. 5, which is a schematic structural diagram of another embodiment of the authentication module of the touch-control device provided in the present invention, theauthentication module 30 in the embodiment specifically includes:
the third fingerprint matching unit 331 is configured to, when it is determined that the operation type of the touch operation is a click operation, match the fingerprint image on each touch screen point of the touch operation with a pre-configured standard fingerprint image, obtain a fingerprint matching value of each touch screen point, and select a fingerprint matching value with a highest value from the fingerprint matching values to be used for verifying the identity of the user;
asixth verification unit 332, configured to determine that the identity verification of the user is successful when the selected fingerprint matching value is greater than the first matching threshold; and the combination of (a) and (b),
aseventh verification unit 333, configured to determine that the authentication of the user fails when the selected fingerprint matching value is smaller than the first matching threshold.
Further, the touch-operated device further includes:
the verificationfailure processing module 50 is configured to display a prompt message of operation failure on the screen after the authentication of the user fails, and add one to the count value;
and anaccount freezing module 60, configured to freeze an account of the user on the application software operated by the touch operation when the count value is greater than an early warning threshold value.
The touch operation device provided by the embodiment of the invention can acquire the information of the touch operation of the user and simultaneously scan the fingerprint image of the user in real time, and after the identity of the user is successfully verified according to the type of the touch operation and the fingerprint image, the operation instruction corresponding to the touch operation is executed, so that the information safety in the touch operation process can be ensured.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.