CN111949159A - Calibration method and device of touch screen, equipment and storage medium - Google Patents

Calibration method and device of touch screen, equipment and storage medium Download PDF

Info

Publication number
CN111949159A
CN111949159A CN202010804785.3A CN202010804785A CN111949159A CN 111949159 A CN111949159 A CN 111949159A CN 202010804785 A CN202010804785 A CN 202010804785A CN 111949159 A CN111949159 A CN 111949159A
Authority
CN
China
Prior art keywords
touch screen
state
screen
event
pressing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010804785.3A
Other languages
Chinese (zh)
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010804785.3A priority Critical patent/CN111949159A/en
Publication of CN111949159A publication Critical patent/CN111949159A/en
Pending legal-status Critical Current

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification

Abstract

The embodiment of the application discloses a calibration method, a calibration device, equipment and a storage medium of a touch screen, wherein the method comprises the following steps: receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image; determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; and after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched.

Description

Calibration method and device of touch screen, equipment and storage medium
Technical Field
The embodiment of the application relates to electronic technology, and relates to but is not limited to a method, a device, equipment and a storage medium for calibrating a touch screen.
Background
At present, most mobile terminals implement fingerprint identification. The under-screen fingerprint using scenes of the mobile terminal are divided into two types: in the first type, fingerprint images are collected under a bright screen to realize functions of payment, unlocking and the like. The working mode of the touch screen in the scene is always in a normal touch mode. And in the second category, the fingerprint image is collected under the condition of a black screen to realize the unlocking function, and the main function of the fingerprint under the scene is to wake up the system under the condition of the black screen. The touch screen can be switched between the two scenes through pressing and lifting operations, and if the pressing time does not reach the system awakening time, the working mode of the touch screen is always in a black screen state. And if the pressing time length reaches the system awakening time length, switching the working mode of the touch screen from the black screen state to the bright screen unlocking state.
Therefore, how to stably switch the touch screen between the two states and the touch screen is in a normal working state after switching becomes a major concern of those skilled in the art.
Disclosure of Invention
In view of this, embodiments of the present application provide a calibration method and apparatus for a touch screen, a device, and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a calibration method for a touch screen, where the method includes:
receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
and after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched.
In a second aspect, an embodiment of the present application provides a calibration apparatus for a touch screen, the apparatus including:
the receiving unit is used for receiving the pressing event reported by the touch screen system; the press event comprises a press duration and a pressed fingerprint image;
the determining unit is used for determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to the preset time length;
the switching unit is used for switching the touch screen from the black screen locking state to a bright screen unlocking state under the condition that the touch screen is in the black screen locking state;
and the processing unit is used for updating the touch parameters of the touch screen into reference data after receiving a lifting event corresponding to the pressing event so as to calibrate the touch effect of the touch screen after the state is switched.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps in the calibration method for a touch screen when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the calibration method for a touch screen.
The embodiment of the application provides a method, a device and a storage medium for calibrating a touch screen, which receive a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image; determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; after a lifting event corresponding to the pressing event is received, the touch parameters of the touch screen are updated to be reference data so as to calibrate the touch effect of the touch screen after the state is switched, and therefore the problem that the touch screen cannot identify a fingerprint area under different mode switching and cannot trigger the lifting event to cause function abnormity can be solved.
Drawings
FIG. 1A is a schematic diagram of an optical fingerprint identification icon in accordance with an embodiment of the present application;
FIG. 1B is a diagram illustrating capacitance data of a touch screen according to the related art;
fig. 2 is a first schematic flow chart illustrating an implementation process of a calibration method for a touch screen according to an embodiment of the present application;
fig. 3 is a schematic view illustrating a second implementation flow of the calibration method for the touch screen according to the embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation process of the calibration method of the touch screen according to the embodiment of the present application;
fig. 5A is a schematic view illustrating an implementation flow of a calibration method of a touch screen according to an embodiment of the present application;
fig. 5B is a schematic structural diagram of a communication system according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a structure of a calibration apparatus for a touch screen according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware entity of a mobile terminal according to an embodiment of the present application.
Detailed Description
Generally, the optical pre-fingerprint can be placed on the front side, and the experience is better, so that the optical fingerprint is provided in the mobile terminal more and more popular. Most of these optical fingerprints use a touch screen as a trigger source for the press and lift events. When a user presses a fingerprint identification area under the touch screen, the touch screen triggers a fingerprint pressing event under the touch screen to serve as a fingerprint triggering event for the system, and therefore the system is informed to trigger a fingerprint module to collect images. When the finger of the user leaves the lower fingerprint identification area of the touch screen, the touch screen triggers the lower fingerprint lifting event of the screen to serve as a triggering event of the fingerprint of the system, and therefore the system is informed of stopping image acquisition at the moment.
Fig. 1A is a schematic diagram of an optical fingerprint identification icon according to an embodiment of the present invention, as shown in fig. 1A, a circle-shaped identification icon 12 appears on a touch screen 11 of a mobile terminal after being pressed under a black screen, and the identification icon 12 is used for providing a light source for an optical fingerprint collection image. And under the black screen, when the mobile terminal is picked up, the screen lights up the icon to inform the user that the position of the icon is the place pressed by the fingerprint. The system then increases the brightness of the icon after the user presses the finger in the underscreen fingerprint identification area. The brightness is increased to acquire the finger image for the fingerprint module, so that the acquired image is clearer. That is, a down event triggered by a finger press will cause the system to highlight the icon. When the finger is immediately removed, the system does not highlight the recognition icon, i.e., reduces the brightness of the icon. At this time, since the finger is detected to be off, the optical fingerprint is not required to acquire an image, and thus the brightness of the off-screen fingerprint is reduced. That is, the finger presses the triggered up event, causing the system to reduce icon brightness.
Fig. 1B is a schematic diagram of capacitance data of a touch screen in the related art, and as shown in fig. 1B, a picture 11 is capacitance reference data of the touch screen under a certain transceiving channel without pressing a finger. The graph 12 is the difference between the actual capacitance data and the reference data of the touch screen without pressing the finger. Whether there is a finger press can be calculated by calculating the difference between the reference data and the current actual data. Picture 13 is capacitance reference data of the touch screen under the finger area of the finger pressing screen. The picture 14 is the difference value between the actual capacitance data and the reference data of the touch screen in the finger-pressing screen lower fingerprint area. The capacitance data difference corresponding to the pressed position is obviously larger. After the finger is pressed, the capacitance data becomes small, the current capacitance actual data is subtracted from the reference data, and then the difference value of the area where the finger print under the screen is pressed is positive. However, in the prior art, after the working mode of the touch screen is switched, the capacitance difference data in the finger-pressed lower fingerprint area of the touch screen is reset due to the change of the switching mode, so that the capacitance difference data in the finger-pressed lower fingerprint area of the touch screen is the same as the capacitance difference data in the picture 12, that is, the capacitance difference data in the finger-pressed lower fingerprint area of the touch screen is the same as the capacitance difference data in the finger-not-pressed lower fingerprint area of the touch screen, thereby causing a series of abnormal situations.
For example, the identification icon is highlighted immediately after the finger presses the fingerprint identification area under the screen. However, after the state of the touch screen is switched, the capacitance difference data is reset due to the change of the switching mode, and becomes the data in the picture 12, so that the triggering event of finger lifting cannot be recognized, that is, there is no up event, so that the icon is always in a highlight state, and an erroneous prompt is caused. That is, the icon is not highlighted at this time, but the up event is not reported due to the state switching of the touch screen, so that the system does not receive the up event in time and cannot timely highlight the icon.
Therefore, the embodiment of the application provides an off-screen calibration method based on a lifted state of a touch screen of a mobile terminal, which includes judging whether a finger is lifted, if so, triggering to reset reference data, and if not, not resetting the reference data. Therefore, the problem that the touch screen cannot identify the fingerprint area under the switching of different modes and further cannot trigger a lifting event to cause abnormal functions is solved, and the user experience is further improved.
The technical solution of the present application is further elaborated below with reference to the drawings and the embodiments. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
It should be noted that the terms "first \ second \ third" referred to in the embodiments of the present application are only used for distinguishing similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under specific ordering or sequence if allowed, so that the embodiments of the present application described herein can be implemented in other orders than illustrated or described herein.
The embodiment of the application provides a calibration method of a touch screen, which is applied to a mobile terminal, and the functions realized by the method can be realized by calling a program code through a processor in the mobile terminal, and certainly, the program code can be stored in a storage medium of the mobile terminal. Fig. 2 is a first schematic flow chart of an implementation process of a calibration method of a touch screen according to an embodiment of the present application, as shown in fig. 2, the method includes:
step S201, receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
in the embodiment of the application, the mobile terminal is an electronic device with a touch screen, the touch screen is provided with a fingerprint identification area, and a user can perform fingerprint identification on the fingerprint identification area through pressing and lifting operations. And the system of the mobile terminal can perform corresponding operation through the received press and lift events.
Here, the pressing event may include a pressing time period and a pressed fingerprint image. The pressing duration refers to the time length corresponding to one pressing operation when the pressing is continued. The pressed fingerprint image may be a fingerprint image of a finger.
Here, the mobile terminal may be various types of devices having information processing capability, such as a mobile phone, a PDA (Personal Digital Assistant), a navigator, a Digital phone, a video phone, a smart watch, a smart band, a wearable device, a tablet computer, a kiosk, and the like.
Step S202, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
in the embodiment of the application, the preset image can be a fingerprint image which is pre-recorded by a user. The preset time duration may be a time duration set by the system, or may be set by the user. And when the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to the preset time length, determining the state of the touch screen. The state of the touch screen comprises a black screen locking state and a bright screen unlocking state.
Step S203, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
here, if the state of the touch screen is a black screen frequency locking state, the touch screen is switched from the black screen frequency locking state to a bright screen unlocking state. The mobile terminal can have a basic gesture function in a state of locking the screen in a blank screen. The mobile terminal has all normal functions of the touch screen in a bright screen unlocking state.
Step S204, after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched.
For example, the touch parameter may be a capacitance of the touch screen, and the reference data may be normal capacitance reference data of the touch screen in a bright screen unlocking state, so that the problem of abnormality of the mobile terminal due to the fact that the capacitance difference data is reset due to the change of the switching mode can be solved by a method of resetting and updating the capacitance reference data after the lift-off event is received. Of course, in the embodiment of the present application, the touch parameter type of the touch screen is not limited, and may be a capacitor, or may be other types of parameters.
In the embodiment of the application, a pressing event reported by a touch screen system is received; the press event comprises a press duration and a pressed fingerprint image; determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; after a lifting event corresponding to the pressing event is received, the touch parameters of the touch screen are updated to be reference data so as to calibrate the touch effect of the touch screen after the state is switched, and therefore the problem that the touch screen cannot identify a fingerprint area under different mode switching and cannot trigger the lifting event to cause function abnormity can be solved.
Based on the foregoing embodiment, an embodiment of the present application further provides a calibration method for a touch screen, and fig. 3 is a schematic diagram of an implementation flow of the calibration method for a touch screen according to the embodiment of the present application, and as shown in fig. 3, the method includes:
s301, receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
step S302, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
step S303, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
step S304, after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched;
step S305, the touch parameter includes a capacitance, and accordingly, before a lift-off event corresponding to the press event is received, updating of capacitance data of the touch screen is prohibited.
In the embodiment of the application, after the touch screen is switched from the black screen locking state to the bright screen unlocking state, as long as a lifting event corresponding to the pressing event is not received, the system is prohibited from updating the touch parameters of the touch screen, including the capacitive data of the touch screen.
In the embodiment of the application, a pressing event reported by a touch screen system is received; the press event comprises a press duration and a pressed fingerprint image; determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched; the touch parameters comprise capacitance, and updating of capacitance data of the touch screen is forbidden correspondingly before a lifting event corresponding to the pressing event is received, so that the problem that the touch screen cannot identify a fingerprint area under different mode switching, and further cannot trigger the lifting event to cause function abnormity can be solved.
Based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, where the method includes:
step S311, receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
in the embodiment of the application, the mobile terminal is an electronic device with a touch screen, the touch screen is provided with a fingerprint identification area, and a user can perform fingerprint identification on the fingerprint identification area through pressing and lifting operations. And the system of the mobile terminal can perform corresponding operation through the received press and lift events. Also, the fingerprint recognition may be optical fingerprint recognition. Furthermore, an identification icon may be included below the fingerprint identification area on the touch screen, and when the mobile terminal vibrates, the identification icon is lighted up and in a low-light state to prompt the user that the area is the fingerprint identification area.
Step S312, setting the state of the identification icon in the touch screen to be a highlight state;
here, after the mobile terminal system receives a pressing event reported by the touch screen system, the state of the identification icon is changed from a low-brightness state to a high-brightness state, and the fingerprint image is collected by using a light source provided by the identification icon in the high-brightness state.
Of course, the identification icon may also be in a blank state until a pressing event reported by the touch screen system is received. And only after a pressing event reported by the touch screen system is received, the identification icon is lightened, and the fingerprint image is collected by using the light source after the identification icon is lightened.
Step 313, collecting the fingerprint image by using the light source provided by the identification icon in the highlight state;
step S314, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
step S315, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
step S316, after receiving a lift-off event corresponding to the press event, updating the touch parameters of the touch screen to reference data to calibrate the touch effect of the touch screen after switching the state;
step S317, if the identification icon is in a high-brightness state, switching the identification icon from the high-brightness state to a turning-off state, or switching the identification icon from the high-brightness state to a low-brightness state.
In the embodiment of the application, after a lift-up event corresponding to the press event is received and the state of the touch screen is already a bright screen unlocking state, whether the state of the identification icon is normal or not is judged, and if the state of the identification icon is still a highlight state, the identification icon is switched from the highlight state to a low-brightness state or a turning-off state.
Based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, and fig. 4 is a schematic flow chart illustrating an implementation of the calibration method for the touch screen according to the embodiment of the present application, as shown in fig. 4, the method includes:
step S401, receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
step S402, setting the state of the identification icon in the touch screen to be a highlight state;
step S403, collecting the fingerprint image by using the light source provided by the identification icon in the highlight state;
step S404, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
step S405, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
step S406, after a lift-off event corresponding to the press event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched;
step S407, if the identification icon is in a highlight state, switching the identification icon from the highlight state to an off state, or switching the identification icon from the highlight state to a low-brightness state;
in the embodiment of the application, after a lift-up event corresponding to the press event is received and the state of the touch screen is already a bright screen unlocking state, whether the state of the identification icon is normal or not is judged, and if the state of the identification icon is still a highlight state, the identification icon is switched from the highlight state to a low-brightness state or a turning-off state.
Step S408, the touch parameter includes a capacitance, and accordingly, before a lift-off event corresponding to the press event is received, updating of capacitance data of the touch screen is prohibited.
In the embodiment of the application, a pressing event reported by a touch screen system is received; the press event comprises a press duration and a pressed fingerprint image; setting the state of the identification icon positioned in the touch screen to be a highlight state; collecting the fingerprint image by using the light source provided by the identification icon in the high brightness state; determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length; under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state; after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched; if the identification icon is in a high-brightness state, switching the identification icon from the high-brightness state to an off state, or switching the identification icon from the high-brightness state to a low-brightness state; the touch parameters comprise capacitance, and updating of capacitance data of the touch screen is forbidden before a lifting event corresponding to the pressing event is received correspondingly, so that the problems that the fingerprint area cannot be identified under different mode switching of the touch screen, the lifting event cannot be triggered to cause function abnormity, and the display state of the identification icon is abnormal can be solved.
Based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, where the method includes:
step S411, if the touch screen is in a black screen locking state, starting a gesture function under the black screen;
here, when the touch screen is in a black screen lock state, a gesture function under a black screen may be turned on. The gesture function under the black screen refers to some functions which can be directly performed by a user in a state that the screen of the mobile terminal is not required to be turned on and unlocked and in a state that the screen of the mobile terminal is locked. For example, a screen is double-clicked, or music control is performed by drawing different specific symbols on the touch screen in a black screen state, a camera is turned on to take a picture, a flashlight is turned on, and the like.
Step S412, receiving a pressing event reported by the touch screen system; the press event comprises a press duration and a pressed fingerprint image;
step S413, setting a state of the identification icon located in the touch screen to a highlighted state;
step S414, collecting the fingerprint image by using the light source provided by the identification icon in the highlight state;
step 415, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
step S416, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
step S417, closing the gesture function;
here, after the touch screen is changed from the black screen lock state to the bright screen unlock state, the gesture function under the black screen is turned off.
Step S418, after receiving a lift-off event corresponding to the press event, updating the touch parameters of the touch screen to reference data to calibrate the touch effect of the touch screen after switching the state;
step S419, if the identification icon is in a high-brightness state, switching the identification icon from the high-brightness state to a turning-off state, or switching the identification icon from the high-brightness state to a low-brightness state;
step S420, the touch parameter includes a capacitance, and accordingly, before a lift-off event corresponding to the press event is received, updating of capacitance data of the touch screen is prohibited.
Based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, where the method includes:
step S421, receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
step S422, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
step 423, switching the touch screen from the black screen locking state to a bright screen unlocking state under the condition that the touch screen is in the black screen locking state;
step S424, after receiving a lift-off event corresponding to the press event, updating the touch parameters of the touch screen to reference data, so as to calibrate the touch effect of the touch screen after switching the states;
step S425, prompting a user that unlocking fails under a black screen when the fingerprint image is not matched with the preset image or the pressing time length is less than the preset time length.
Here, if the fingerprint image does not match the preset image, the user is prompted to fail to unlock under a blank screen. And if the pressing time length corresponding to the pressing event is less than the preset time length, prompting that unlocking failure occurs under the condition of a black screen. The prompt can be made in various ways, such as vibration, prompt sound, prompt text, and the like.
Based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, where the method includes:
step S431, receiving a pressing event reported by a touch screen system; the pressing event comprises a pressing time length, a pressing pressure degree and a pressed fingerprint image;
in the embodiment of the present application, the pressing event may further include a degree of pressing. The state of the touch screen is determined only if the pressing force also satisfies the condition.
Step S432, determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image, the pressing time is more than or equal to a preset time, and the pressing force is more than or equal to a preset pressure value;
here, the preset pressure value may be a pressure value preset by the system. The setting may also be set by the user, which is not limited in the embodiment of the present application.
Step S433, under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
step S434, after a lift-off event corresponding to the press event is received, updating the touch parameters of the touch screen to reference data to calibrate the touch effect of the touch screen after the state is switched;
step S435, prompting the user that unlocking fails under a black screen when the fingerprint image is not matched with the preset image or the pressing time is less than the preset time.
At present, when a user presses a fingerprint identification area under a black screen, if the pressing duration reaches a system awakening duration, the working mode of a touch screen is switched from a black screen gesture state to a normal bright screen working state, because the switching of the states will cause capacitance data pressed on the touch screen to be calibrated into reference data of the touch screen, and then the state that fingers cannot be identified by the touch screen within a certain duration exists after the switching states, the problem of unlocking failure or abnormal function under the black screen is caused. For example, the unlocking fails under the black screen, and the pressing and lifting of the finger under the black screen cannot be accurately reported to the system, so that the synchronization of highlighting and extinguishing of the icon under the black screen cannot be realized. Therefore, based on the foregoing embodiments, an embodiment of the present application further provides a calibration method for a touch screen, where whether the terminal is in a black screen state and has an open fingerprint function under the screen, and whether the touch screen of the terminal is switched from a black screen gesture state to a normal touch state under a bright screen state, if the above conditions are met, whether the object is lifted is continuously determined, if the object is lifted, the reference data is allowed to be triggered, and if the object is not lifted, the reference data is not allowed to be reset. Therefore, the problem that the touch screen cannot identify the fingerprint area under the finger pressing screen under the switching of different modes, and further cannot trigger the lifting event to cause abnormal functions is solved. Fig. 5A is a schematic view of a fourth implementation flow of the calibration method of the touch screen according to the embodiment of the present application, as shown in fig. 5A, the method includes:
s501, starting a black screen gesture function and a finger pressing function under a screen when the terminal system enters a black screen state;
the touch screen principle is that an excitation signal with a certain working scanning frequency is triggered in a circuit of the touch screen to a sending electrode, capacitance data of a receiving electrode is further collected, the capacitance data is obtained, and whether the finger of an object is pressed or lifted and coordinates of the finger are calculated according to the capacitance data of a previous period and a next period. In addition, the black screen gesture state under the black screen is a working mode with a small working scanning frequency, is in a low-power consumption state, and can wake up a system in a state of different gestures such as double-click. The normal touch state under the bright screen is a working mode with larger working scanning frequency, is in a high-power consumption state, and can realize the working states of different behaviors such as normal click sliding and the like.
And the fingerprint identification under the screen is realized under the black screen based on the gesture state of the black screen, and only the pressing area is concentrated in the preset fingerprint identification range.
In the embodiment of the application, a flag indicating whether a black screen gesture (i.e., a somatosensory gesture) is turned on or not and a flag indicating whether a fingerprint under a screen is turned on or not need to be preset. That is, after the terminal system starts the corresponding function, the terminal system needs to start or stop setting the flag bit, and meanwhile, the terminal system needs to set the register of the touch screen system. Fig. 5B is a schematic structural diagram of a communication system according to an embodiment of the present application, and as shown in fig. 5B, the terminal system 51 and the touch screen system 52 perform data communication through an I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface) Interface, and the INT interrupt pin is a signal Interface used by the touch screen system to notify the terminal system of reading touch screen data. The touch screen system has its own IC (Integrated Circuit Chip) and its own memory, which may be implemented as a register.
Step S502, judging whether the current user presses a fingerprint identification area under the screen;
here, if the underscreen fingerprint recognition area is pressed, step S503 is performed; and if the under-screen fingerprint identification area is not pressed, exiting.
In the embodiment of the application, if the fingerprint identification area under the screen is pressed, the fingerprint identification pressing event under the screen is reported. If not, exiting. The terminal user presses the fingerprint identification area under the screen, namely the pressing state, and the pressing coordinate range all need to meet the conditions.
Step S503, reporting a screen-down fingerprint identification pressing event;
step S504, the touch screen system periodically and circularly judges whether a black screen gesture closing instruction is acquired;
here, if the black screen gesture closing instruction is acquired, step S505 is executed; if the black screen finger-off instruction is not acquired, step S509 is executed.
In the embodiment of the application, the terminal system issues the black screen gesture closing instruction after the pressing duration of the designated area of the touch screen reaches the duration of the awakening system. Wherein, the terminal system sets instructions to the touch screen system through an I2C or SPI interface.
Step S505, switching the working mode of the touch screen to a normal touch mode;
step S506, judging whether the finger of the pressing object is lifted;
here, if the finger is lifted, step S507 is performed; if not, step S508 is performed.
Step S507, updating the capacitance reference data of the touch screen again, and reporting a lower fingerprint lifting event of the screen;
step S508, the reference data is not updated again, the cyclic waiting is carried out until the finger is lifted, and the condition that the under-screen fingerprint event is not reported or the under-screen fingerprint pressing event is not reported is kept;
in the embodiment of the application, if the terminal system is not in the lifted state, the reporting of the under-screen fingerprint event is not kept, or the reporting of the under-screen fingerprint pressing event is kept at intervals, which depends on whether the terminal system needs to receive the one-time fingerprint pressing event or the continuous interval fingerprint pressing event. For example, the terminal system only needs to press the pressing event of the fingerprint area for the first time, and then continuously presses the fingerprint area without reporting, and reports the fingerprint lifting event until the fingerprint lifting event is lifted. Or the terminal system responds to the pressing event of pressing the fingerprint area for the first time, then continuously presses and continuously reports, the system does not respond, and finally the fingerprint lifting event is reported after the fingerprint lifting event is lifted.
Here, if the lift-off is detected, the reference data is updated again. And if the finger is not lifted, the reference data is not updated again, and the finger is circularly waited until the finger is lifted. Therefore, the problem that the system is abnormal due to the fact that the system updates the reference data when the working mode of the touch screen is switched from the black screen gesture to the normal touch mode can be solved.
Step S509, determining whether the finger is in a lifted state;
here, if the finger is in the lifted state, step S510 is performed; if the finger is not in the lifted state, step S511 is performed.
Step S510, reporting a fingerprint lifting event under a screen;
step S511, keeping not reporting the under-screen fingerprint event or reporting the under-screen fingerprint pressing event.
In the embodiment of the application, whether the terminal is in a black screen state and the fingerprint function under the screen is started or not is judged, whether the touch screen of the terminal is switched to a normal touch state from the black screen gesture state or not is judged, if the conditions are met, whether an object is lifted or not is judged, if the object is lifted, the datum data are reset, and if the object is not lifted, the datum data are not reset. Therefore, the problems that the touch screen cannot identify the fingerprint area under the finger pressing screen under the switching of different modes and cannot trigger the lifting event to cause abnormal functions are solved, and the user experience is further improved. Meanwhile, the problem that the fingerprint identification icon is abnormal due to the fact that the touch screen presses the lower fingerprint identification area of the screen and the event is abnormal when the terminal is in a black screen state can be solved.
Based on the foregoing embodiments, the present application provides a calibration apparatus for a touch screen, where the apparatus includes units, modules included in the units, and components included in the modules, and may be implemented by a processor in a mobile terminal; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the processor may be a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), or the like.
Fig. 6 is a schematic structural diagram of a calibration apparatus for a touch screen according to an embodiment of the present application, and as shown in fig. 6, the apparatus 600 includes:
the receiving unit 601 is configured to receive a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
a determining unit 602, configured to determine a state of the touch screen when the fingerprint image is matched with a preset image and the pressing duration is greater than or equal to a preset duration;
the switching unit 603 is configured to switch the touch screen from the black screen lock state to a bright screen unlock state when the touch screen is in the black screen lock state;
the processing unit 604 is configured to update the touch parameter of the touch screen to be reference data after receiving a lift-off event corresponding to the press event, so as to calibrate a touch effect of the touch screen after switching the state.
In some embodiments, the touch parameter comprises a capacitance;
correspondingly, the device further comprises:
and the forbidding unit is used for forbidding updating of the capacitance data of the touch screen before the lifting event corresponding to the pressing event is received.
In some embodiments, the apparatus further comprises:
a setting unit configured to set a state of an identification icon located in the touch screen to a highlight state;
and the acquisition unit is used for acquiring the fingerprint image by utilizing the light source provided by the identification icon in the highlight state.
In some embodiments, the apparatus further comprises:
and the icon switching unit is used for switching the identification icon from the high-brightness state to the off state or switching the identification icon from the high-brightness state to the low-brightness state after receiving the lifting event corresponding to the pressing event and if the identification icon is in the high-brightness state.
In some embodiments, the apparatus further comprises:
the gesture starting unit is used for starting a gesture function under a black screen if the touch screen is in a black screen locking state;
and the gesture closing unit is used for closing the gesture function under the condition that the fingerprint image is matched with the preset image and the pressing time length is more than or equal to the preset time length.
In some embodiments, the apparatus further comprises:
and the prompting unit is used for prompting that the unlocking of the user fails under the condition that the fingerprint image is not matched with the preset image or the pressing time length is less than the preset time length.
In some embodiments, the compression event further comprises a degree of compression;
correspondingly, the determining unit 602 is further configured to determine the state of the touch screen when the fingerprint image is matched with a preset image, the pressing duration is greater than or equal to a preset duration, and the pressing intensity is greater than or equal to a preset pressure value.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the calibration method of the touch screen is implemented in the form of a software functional module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing an electronic device (which may be a personal computer, a server, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read Only Memory), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application provides a mobile terminal, which includes a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor executes the computer program to implement the steps in the calibration method for a touch screen provided in the foregoing embodiment.
Correspondingly, the embodiment of the present application provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the calibration method of the touch screen.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that fig. 7 is a schematic diagram of a hardware entity of a mobile terminal according to an embodiment of the present application, and as shown in fig. 7, the hardware entity of the mobile terminal 700 includes: a processor 701, a communication interface 702, and a memory 703, wherein
The processor 701 generally controls the overall operation of the mobile terminal 700.
The communication interface 702 may enable the mobile terminal 700 to communicate with other terminals or servers via a network.
The Memory 703 is configured to store instructions and applications executable by the processor 701, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 701 and modules in the mobile terminal 700, and may be implemented by a FLASH Memory (FLASH Memory) or a Random Access Memory (RAM).
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments. Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict. The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of calibrating a touch screen, the method comprising:
receiving a pressing event reported by a touch screen system; the press event comprises a press duration and a pressed fingerprint image;
determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length;
under the condition that the touch screen is in a black screen locking state, switching the touch screen from the black screen locking state to a bright screen unlocking state;
and after a lifting event corresponding to the pressing event is received, updating the touch parameters of the touch screen into reference data so as to calibrate the touch effect of the touch screen after the state is switched.
2. The method of claim 1, wherein the touch parameter comprises a capacitance;
correspondingly, after the touch screen is switched from the black screen locking state to the bright screen unlocking state, the method further comprises the following steps:
and prohibiting updating of the capacitance data of the touch screen before a lift-off event corresponding to the press event is received.
3. The method according to claim 1 or 2, wherein after receiving the pressing event reported by the touch screen system, the method further comprises:
setting the state of the identification icon positioned in the touch screen to be a highlight state;
and collecting the fingerprint image by using the light source provided by the identification icon in the high-brightness state.
4. The method of claim 3, further comprising:
after a lifting event corresponding to the pressing event is received, if the identification icon is in a high-brightness state, the identification icon is switched from the high-brightness state to an off state, or the identification icon is switched from the high-brightness state to a low-brightness state.
5. The method of claim 4, further comprising:
if the touch screen is in a black screen locking state, starting a gesture function under the black screen;
and closing the gesture function under the condition that the fingerprint image is matched with the preset image and the pressing time is more than or equal to the preset time.
6. The method of claim 1, further comprising:
and prompting the user that the unlocking fails under the condition that the fingerprint image is not matched with the preset image or the pressing time is less than the preset time.
7. The method of claim 6, wherein the compression event further comprises a degree of compression;
correspondingly, under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to a preset time length, determining the state of the touch screen, including:
and determining the state of the touch screen under the conditions that the fingerprint image is matched with a preset image, the pressing time is more than or equal to the preset time, and the pressing force is more than or equal to the preset pressure value.
8. An apparatus for calibrating a touch screen, the apparatus comprising:
the receiving unit is used for receiving the pressing event reported by the touch screen system; the press event comprises a press duration and a pressed fingerprint image;
the determining unit is used for determining the state of the touch screen under the condition that the fingerprint image is matched with a preset image and the pressing time length is greater than or equal to the preset time length;
the switching unit is used for switching the touch screen from the black screen locking state to a bright screen unlocking state under the condition that the touch screen is in the black screen locking state;
and the processing unit is used for updating the touch parameters of the touch screen into reference data after receiving a lifting event corresponding to the pressing event so as to calibrate the touch effect of the touch screen after the state is switched.
9. A mobile terminal comprising a memory and a processor, the memory storing a computer program operable on the processor, the processor implementing the steps in the method of calibrating a touch screen according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for calibrating a touch screen according to any one of claims 1 to 7.
CN202010804785.3A 2020-08-12 2020-08-12 Calibration method and device of touch screen, equipment and storage medium Pending CN111949159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010804785.3A CN111949159A (en) 2020-08-12 2020-08-12 Calibration method and device of touch screen, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010804785.3A CN111949159A (en) 2020-08-12 2020-08-12 Calibration method and device of touch screen, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111949159A true CN111949159A (en) 2020-11-17

Family

ID=73332236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010804785.3A Pending CN111949159A (en) 2020-08-12 2020-08-12 Calibration method and device of touch screen, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949159A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 The method and relevant apparatus of unlocked by fingerprint
CN111026296A (en) * 2018-10-10 2020-04-17 佛山市顺德区美的洗涤电器制造有限公司 Response control method and device for touch key and electric appliance
US20200125229A1 (en) * 2017-06-05 2020-04-23 Huawei Technologies Co., Ltd. Display Processing Method and Apparatus
CN111291653A (en) * 2020-01-21 2020-06-16 Oppo(重庆)智能科技有限公司 Fingerprint event reporting method and device and electronic equipment
CN111352529A (en) * 2020-02-20 2020-06-30 Oppo(重庆)智能科技有限公司 Method, device, terminal and storage medium for reporting touch event

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200125229A1 (en) * 2017-06-05 2020-04-23 Huawei Technologies Co., Ltd. Display Processing Method and Apparatus
CN111026296A (en) * 2018-10-10 2020-04-17 佛山市顺德区美的洗涤电器制造有限公司 Response control method and device for touch key and electric appliance
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 The method and relevant apparatus of unlocked by fingerprint
CN111291653A (en) * 2020-01-21 2020-06-16 Oppo(重庆)智能科技有限公司 Fingerprint event reporting method and device and electronic equipment
CN111352529A (en) * 2020-02-20 2020-06-30 Oppo(重庆)智能科技有限公司 Method, device, terminal and storage medium for reporting touch event

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李海青等: "Windows CE.NET下触摸屏驱动分析与开发", 《微型电脑应用》 *

Similar Documents

Publication Publication Date Title
CN108701178B (en) Authentication method and electronic device using the same
US10739994B2 (en) Method and electronic device for recognizing touch
EP3163502A1 (en) Method and device for region identification
JP6997792B2 (en) Message reading method and device
EP3719701A2 (en) Method for fingerprint recognition, electronic device, and non-transitory computer-readable storage medium
CN107831992B (en) Unlocking control method and related product
EP3188078B1 (en) Method and device for fingerprint identification
US10310733B2 (en) Method and electronic device for recognizing touch
CN108334769B (en) Fingerprint unlocking method and device
EP3506163B1 (en) Error prompting method, device, and electronic apparatus
EP3835926A1 (en) Prompt method and apparatus for eye-protection mode, electronic device and storage medium
EP3509012B1 (en) Fingerprint recognition method and device
CN108509849A (en) Utilize the electronic equipment and method of the pixel identification sensor position of display
EP2765482A1 (en) Handheld electronic apparatus and operation method thereof
CN108090441B (en) Fingerprint identification control method, mobile terminal and storage medium
US20220300141A1 (en) Detection method, device, and electronic equipment
CN106778169B (en) Fingerprint unlocking method and device
CN111949159A (en) Calibration method and device of touch screen, equipment and storage medium
US10679026B2 (en) Method and device for controlling fingerprint sensor and storage medium
CN112153219B (en) Alarm clock processing method and device, electronic equipment and readable storage medium
US20170220847A1 (en) Method and device for fingerprint recognition
US20190129609A1 (en) Electronic apparatus
CN109740538B (en) Fingerprint acquisition method, electronic device and computer readable storage medium
CN111930296A (en) Electronic equipment control method and device and electronic equipment
CN110442241A (en) Schedule display methods, device, mobile terminal and computer readable storage medium

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