Touchscreen calibration methods, devices, electronic equipment and storage media

CN117348765BActive Publication Date: 2026-09-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311333998.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2026-09-01
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

其中,光学式指纹识别采用触摸屏做为事件按下和抬起的输入源,而触摸屏在灭屏前或灭屏到亮屏等显示信号变化的瞬间,容易产生干扰信号,出现鬼点或乱跳点等问题,影响指纹识别,进而影响用户使用体验

Benefits of technology

[0008]本申请提供的一种触摸屏校准方法、装置、电子设备以及存储介质,通过在触摸屏处于黑屏状态且开启了屏下指纹识别功能的情况下,响应作用于所述触摸屏的屏下指纹识别区域的按压操作,获取指纹图像,以进行指纹识别;若所述指纹图像未与预设指纹图像匹配,对所述触摸屏进行复位操作,以更新所述触摸屏的基准电容数据。从而通过上述方式实现了在存在作用于触摸屏的屏下指纹识别区域的按压操作的情况下,如果按压操作失败,则及时的对触摸屏进行复位操作,以更新触摸屏的基准电容数据,从而可以降低触摸屏在显示信号发生变化时出现鬼点的风险,进而提升用户体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117348765B_ABST
    Figure CN117348765B_ABST
Patent Text Reader

Abstract

This application discloses a touchscreen calibration method, apparatus, electronic device, and storage medium. The method includes: when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, responding to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen, acquiring a fingerprint image for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, resetting the touchscreen to update the touchscreen's reference capacitance data. This method enables timely reset of the touchscreen to update its reference capacitance data when a press operation on the under-display fingerprint recognition area fails, thereby reducing the risk of ghost pixels appearing when the display signal changes, and thus improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and more specifically, to a touch screen calibration method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the advancement of technology, fingerprint recognition has become ubiquitous in our daily lives, appearing in everything from e-commerce and banking to security systems, from mobile phones and smart locks to surveillance cameras. Currently, most electronic devices incorporate fingerprint recognition functionality. One method is through the touchscreen of electronic devices. There are currently three main fingerprint recognition methods: capacitive fingerprint recognition, optical fingerprint recognition, and ultrasonic fingerprint recognition. Optical fingerprint recognition uses the touchscreen as the input source for pressing and releasing events. However, touchscreens are prone to interference signals during the moment of display signal change, such as before the screen goes off or during the transition from off to on, resulting in ghost fingerprints or random fingerprint jumps, which affect fingerprint recognition and consequently impact the user experience. Summary of the Invention

[0003] This application proposes a touchscreen calibration method, apparatus, electronic device, and storage medium to improve the above-mentioned problems.

[0004] In a first aspect, embodiments of this application provide a touchscreen calibration method that can be applied to an electronic device, the electronic device including a touchscreen, the method comprising: when the touchscreen is in a black screen state and the under-display fingerprint recognition function is enabled, in response to a pressing operation acting on the under-display fingerprint recognition area of ​​the touchscreen, acquiring a fingerprint image for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, resetting the touchscreen to update the reference capacitance data of the touchscreen.

[0005] Secondly, embodiments of this application provide a touchscreen calibration device that can operate on an electronic device, the electronic device including a touchscreen, the device including: a fingerprint image acquisition module, used to acquire a fingerprint image in response to a pressing operation on the under-display fingerprint recognition area of ​​the touchscreen when the touchscreen is in a black screen state and the under-display fingerprint recognition function is enabled, for fingerprint recognition; and a touchscreen control module, used to reset the touchscreen if the fingerprint image does not match a preset fingerprint image, so as to update the reference capacitance data of the touchscreen.

[0006] Thirdly, this application provides an electronic device including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method described in the first aspect above.

[0007] Fourthly, this application provides a computer-readable storage medium storing program code, wherein the method described in the first aspect is executed when the program code is run.

[0008] This application provides a touchscreen calibration method, apparatus, electronic device, and storage medium. When the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, it responds to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen to acquire a fingerprint image for fingerprint recognition. If the fingerprint image does not match a preset fingerprint image, the touchscreen is reset to update its reference capacitance data. This method ensures that even when a press operation on the under-display fingerprint recognition area fails, the touchscreen is promptly reset to update its reference capacitance data. This reduces the risk of ghost pixels appearing when the display signal changes, thereby improving the user experience. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 A flowchart of a touchscreen calibration method provided in one embodiment of this application is shown.

[0011] Figure 2 A schematic diagram of the communication system provided in an embodiment of this application is shown.

[0012] Figure 3 A flowchart of a touchscreen calibration method provided in another embodiment of this application is shown.

[0013] Figure 4 A schematic diagram illustrating the preset channel range division of the under-display fingerprint recognition area provided in an embodiment of this application is shown.

[0014] Figure 5 A flowchart of a touchscreen calibration method provided in another embodiment of this application is shown.

[0015] Figure 6 A flowchart of a touchscreen calibration method provided in another embodiment of this application is shown.

[0016] Figure 7 A structural block diagram of a touch screen calibration device provided in an embodiment of this application is shown.

[0017] Figure 8 A structural block diagram of an electronic device provided in an embodiment of this application is shown.

[0018] Figure 9 A storage unit for storing or carrying program code implementing the touch screen calibration method according to an embodiment of the present application is shown. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0020] Touchscreens include optical fingerprint screens and capacitive fingerprint screens. Optical fingerprint screens provide a light source to the finger pressed on the fingerprint recognition area under the screen. By collecting and capturing images of the fingerprint, they compare and identify whether it is a preset fingerprint, thereby realizing functions such as unlocking and payment. Capacitive fingerprint screens use the capacitive sensing principle of the touchscreen to determine whether an object is in contact with the touchscreen and then report the status of the object.

[0021] The inventors discovered that touchscreens are prone to interference signals during the moment of display signal change, such as before the screen goes off or during the transition from screen off to screen on. This can lead to problems like ghost dots or random dots, affecting fingerprint recognition and consequently impacting the user experience.

[0022] Through long-term research, the inventors discovered that even when the touchscreen is in a black state and the in-display fingerprint recognition function is enabled, a fingerprint image can be acquired in response to a press operation applied to the in-display fingerprint recognition area of ​​the touchscreen for fingerprint recognition. If the fingerprint image does not match a preset fingerprint image, the touchscreen is reset to update its reference capacitance data. This method achieves timely touchscreen reset and updating of reference capacitance data in the event of a press operation on the in-display fingerprint recognition area, reducing the risk of ghost pixels appearing when the display signal changes, thereby improving the user experience.

[0023] Therefore, in order to improve the above problems, the inventors have proposed a touch screen calibration method, apparatus, electronic device, and computer-readable storage medium that can reduce the risk of ghost points appearing on the touch screen when the display signal changes, thereby improving the user experience.

[0024] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0025] Please see Figure 1This document illustrates a flowchart of a touchscreen calibration method according to an embodiment of this application. This embodiment provides a touchscreen calibration method applicable to electronic devices, including mobile phones, computers, tablets, and wearable electronic devices; the specific type of electronic device is not limited. The electronic device includes a touchscreen. In this embodiment, the touchscreen can be an optical fingerprint screen; in other embodiments, the type of touchscreen is not limited, for example, it can be a capacitive fingerprint screen. The method includes:

[0026] Step S110: When the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, the fingerprint image is acquired in response to the pressing operation on the under-display fingerprint recognition area of ​​the touch screen for fingerprint recognition.

[0027] Touchscreens have two states: on screen and off screen. The in-display fingerprint recognition function performs different functions in these different states. For example, in the off-screen state, the in-display fingerprint recognition function is mainly used to wake up the system and unlock the screen; while in the on-screen state, it is mainly used to unlock applications or make payments.

[0028] As one implementation, the device can be configured to automatically activate the in-display fingerprint recognition function when the touchscreen enters a black screen state, enabling timely fingerprint recognition. In a specific implementation, when the touchscreen enters a black screen state, the device's terminal system can automatically trigger the activation of the in-display fingerprint recognition function and transmit the activation result to the touchscreen system. For this implementation, please refer to [link to relevant documentation]. Figure 2 The diagram illustrates the structure of a communication system provided in an embodiment of this application. Figure 2 As shown, the terminal system 51 and the touch screen system 52 can communicate via I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface) interfaces. The INT interrupt pin is a signal interface used by the touch screen system to notify the terminal system to read touch screen data.

[0029] The touch screen system has its own IC (Integrated Circuit Chip) and its own memory, which can be implemented using registers.

[0030] As one implementation method, when it is determined that the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, if there is a pressing operation on the under-display fingerprint recognition area of ​​the touch screen, the touch screen system can respond to the pressing operation on the under-display fingerprint recognition area of ​​the touch screen, collect the current capacitance data, obtain the fingerprint (finger) image, and then perform fingerprint recognition.

[0031] Step S120: If the fingerprint image does not match the preset fingerprint image, the touch screen is reset to update the reference capacitance data of the touch screen.

[0032] In practical applications, for capacitive touchscreens, when the capacitive touchscreen is powered on, it first obtains the capacitance reference value when there is no interference on the capacitive touchscreen, and then uses the capacitance reference value as a reference to detect the capacitance change on the touchscreen, and then uses this to determine whether there is a touch operation on the touchscreen. In order to ensure that the capacitive touchscreen can properly recognize touch operation, the capacitance reference value of the capacitive touchscreen is usually calibrated.

[0033] Optical fingerprint displays use the touchscreen as the input source for press and release events. Typically, in scenarios involving only turning the screen on and off, the system resets the touchscreen to prevent ghosting or other abnormalities. However, when a user presses on the in-display fingerprint recognition area, any fingerprint event triggering the fingerprint recognition area is recorded as a flag bit 1. During the screen-on initialization process, if the flag bit is 1, the touchscreen is not reset. This can easily lead to abnormalities after the screen turns on, such as ghosting or other issues, and may result in inaccurate fingerprint recognition results, impacting the user experience.

[0034] As one implementation, when a press operation occurs on the under-display fingerprint recognition area of ​​the touchscreen, the acquired fingerprint image can be matched with a preset fingerprint image to determine whether the current finger is the correct finger or an incorrect finger. Optionally, if the fingerprint image matches the preset image (which can be understood as identical), the current finger can be determined to be the correct finger, and the touchscreen does not need to be reset; if the fingerprint image does not match the preset image, the current finger can be determined to be an incorrect finger, and the touchscreen needs to be reset to update the touchscreen's reference capacitance data.

[0035] The preset fingerprint image can be either the first fingerprint image registered on the touchscreen or the last fingerprint image registered on the touchscreen. Optionally, the fingerprint images registered on the touchscreen can include at least one fingerprint image. If the fingerprint images registered on the touchscreen include multiple fingerprint images, the fingerprint image with the highest frequency of use can be selected as the preset fingerprint image.

[0036] As one implementation, if the fingerprint image does not match a preset fingerprint image, the touchscreen can be reset after the current fingerprint image is recognized to update the touchscreen's reference capacitance data.

[0037] In this embodiment, the reset operation may include at least one of the following operations: pulling the reset hardware pin low; issuing a command to the touchscreen system to perform software services; and re-acquiring the touchscreen's reference capacitance data. The specific content of the reset operation is not limited.

[0038] The touchscreen calibration method provided in this embodiment, when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, responds to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen to acquire a fingerprint image for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, the touchscreen is reset to update the touchscreen's reference capacitance data. Thus, this method enables timely reset of the touchscreen to update its reference capacitance data when a press operation on the under-display fingerprint recognition area fails, thereby reducing the risk of ghost pixels appearing when the display signal changes, and ultimately improving the user experience.

[0039] By acquiring and recognizing fingerprints through a press operation that only applies to the under-display fingerprint recognition area of ​​the touchscreen, the timeliness of fingerprint recognition can be improved, thereby increasing the efficiency of touchscreen calibration.

[0040] Please see Figure 3 The diagram illustrates a flowchart of a touchscreen calibration method according to another embodiment of this application. This embodiment provides a touchscreen calibration method applicable to electronic devices, including touchscreens. The method includes:

[0041] Step S210: When the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, respond to the pressing operation on the under-display fingerprint recognition area of ​​the touch screen. If the pressing operation meets the preset conditions, acquire the fingerprint image for fingerprint recognition.

[0042] As one implementation, when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, in order to improve the accuracy of touchscreen calibration, a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen can be initiated. If the press operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition. Optionally, if the press operation does not meet the preset conditions, the current press operation can be ignored.

[0043] In this embodiment of the application, the preset conditions may include the pressing operation being performed within a preset channel range of the under-display fingerprint recognition area.

[0044] Please see Figure 4 This diagram illustrates an example of a preset channel range provided in an embodiment of this application. As one implementation method, such as... Figure 4 As shown, the touchscreen can be divided into TX transmitting channel and RX receiving channel. TX represents the vertical screen direction and RX represents the horizontal direction. The area enclosed by TX transmitting channel 5-10 and RX receiving channel 28-30 is the preset channel range of the under-screen fingerprint recognition area.

[0045] In one implementation, the touchscreen may include a fingerprint module. In this approach, if the pressing operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition. This may include: if the pressing operation meets preset conditions, reporting a fingerprint press event to the fingerprint module to notify it to acquire a fingerprint image for fingerprint recognition. Specifically, the fingerprint module can acquire a finger image based on the press event reported by the touchscreen, thereby performing fingerprint recognition. After acquiring the finger image, the fingerprint module can compare whether the current finger is correct or incorrect. Optionally, if the fingerprint module determines that the current finger is the correct preset finger after comparison, it can keep the touchscreen from being reset, i.e., not issue any command; if the fingerprint module determines that the current finger is incorrect after comparison, it can issue a first command to notify the touchscreen driver after completing fingerprint recognition of the current finger, and instruct the touchscreen driver to perform a reset operation on the touchscreen.

[0046] Step S220: If the fingerprint image does not match the preset fingerprint image, the touch screen is reset to update the reference capacitance data of the touch screen.

[0047] The specific implementation of step S220 can be referred to the relevant description of step S120 in the foregoing embodiments, and will not be repeated here.

[0048] The touchscreen calibration method provided in this embodiment, when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, responds to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen. If the press operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, the touchscreen is reset to update its reference capacitance data. This method ensures that even when a press operation occurs on the under-display fingerprint recognition area, if the press operation fails, the touchscreen is promptly reset to update its reference capacitance data. This reduces the risk of ghost pixels appearing when the display signal changes, thereby improving the user experience.

[0049] By only acquiring a fingerprint image for fingerprint recognition if the pressing operation meets preset conditions, the accuracy of touchscreen calibration can be improved.

[0050] Please see Figure 5 This illustration shows a flowchart of a touchscreen calibration method according to another embodiment of this application. This embodiment provides a touchscreen calibration method that can be applied to electronic devices, the electronic devices including touchscreens, and the method includes:

[0051] Step S310: When the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, respond to the pressing operation on the under-display fingerprint recognition area of ​​the touch screen. If the pressing operation meets the preset conditions, acquire the fingerprint image for fingerprint recognition.

[0052] The specific implementation of step S310 can be referred to the relevant descriptions of steps S110 and S210 in the foregoing embodiments, and will not be repeated here.

[0053] Step S320: If the fingerprint image does not match the preset fingerprint image, when the pressing operation is in the released state, the touch screen is reset to update the reference capacitance data of the touch screen.

[0054] Most optical fingerprint scanners use the touchscreen as the trigger for press and release events. Therefore, for optical fingerprint screens, when a user presses the fingerprint recognition area under the touchscreen, the touchscreen triggers a "press" event, which sends a notification to the system to activate the fingerprint module and capture an image for fingerprint identification. When the user's finger leaves the fingerprint recognition area, the touchscreen triggers a "release" event, which then stops image acquisition.

[0055] Therefore, as one implementation, when the press operation for the under-display fingerprint recognition area of ​​the touch screen is in the lift-off state, the under-display fingerprint lift-off event can be triggered, indicating that the current fingerprint recognition is completed. In this way, the touch screen can be reset to update the reference capacitance data of the touch screen.

[0056] As one implementation, the press operation can be determined to be in a lifted state when the finger corresponding to the press operation has been lifted. Optionally, if the finger corresponding to the press operation has not yet been lifted, the touchscreen can be reset before resetting to update the touchscreen's reference capacitance data. By determining that the touchscreen is reset and updated when the press operation is lifted, the completion of the current fingerprint recognition can be ensured, and the capacitance data corresponding to the current fingerprint recognition can be prevented from affecting the subsequent fingerprint recognition function of the touchscreen, thereby improving the accuracy of touchscreen calibration.

[0057] The touchscreen calibration method provided in this embodiment, when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, responds to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen. If the press operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, the touchscreen is reset when the press operation is released to update the touchscreen's reference capacitance data. This method achieves timely touchscreen reset and updating of reference capacitance data in the event of a press operation applied to the under-display fingerprint recognition area, reducing the risk of ghost pixels appearing when the display signal changes, thereby improving the user experience.

[0058] Meanwhile, by determining that the touchscreen is reset when the press operation is in the released state to update the reference capacitance data of the touchscreen, it is possible to ensure that the current fingerprint recognition is completed and to avoid the capacitance data corresponding to the current fingerprint recognition affecting the subsequent fingerprint recognition function of the touchscreen, thereby improving the accuracy of touchscreen calibration.

[0059] Please see Figure 6 The diagram illustrates a flowchart of a touchscreen calibration method according to another embodiment of this application. This embodiment provides a touchscreen calibration method that can be applied to electronic devices, the electronic devices including touchscreens. The method includes:

[0060] Step S410: When the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, respond to the pressing operation on the under-display fingerprint recognition area of ​​the touch screen. If the pressing operation meets the preset conditions, acquire the fingerprint image for fingerprint recognition.

[0061] The specific implementation of step S410 can be referred to the relevant descriptions of steps S110 and S210 in the foregoing embodiments, and will not be repeated here.

[0062] Step S420: If the fingerprint image does not match the preset fingerprint image, when the pressing operation is in the released state and there is no new pressing operation, the touch screen is reset to update the reference capacitance data of the touch screen.

[0063] As one implementation method, to further improve the sensitivity and accuracy of touchscreen calibration, when the press operation is determined to be in the released state, it can be further determined whether a new finger is pressed (i.e., a new press operation). Optionally, if no new finger is pressed, a reset operation can be started on the touchscreen to update the reference capacitance data of the touchscreen; if a new finger is pressed, the touchscreen calibration is exited, and fingerprint recognition of the newly pressed finger continues.

[0064] As one implementation, if the fingerprint image does not match a preset fingerprint image, the touchscreen can be reset when the press operation is in the released state and no new press operation occurs within a preset time period to update the touchscreen's reference capacitance data. The specific value of the preset time period is not limited; for example, it can be 3 seconds, 5 seconds, 8 seconds, or 10 seconds. Optionally, if a new press operation occurs within the preset time period while the press operation is in the released state, the touchscreen calibration process can be exited.

[0065] The touchscreen calibration method provided in this embodiment, when the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, responds to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen. If the press operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition; if the fingerprint image does not match a preset fingerprint image, and the press operation is lifted without a new press operation, a reset operation is performed on the touchscreen to update the touchscreen's reference capacitance data. Thus, in the event of a press operation applied to the under-display fingerprint recognition area, if the press operation fails, a timely reset operation is performed on the touchscreen to update the touchscreen's reference capacitance data. This reduces the risk of ghost pixels appearing on the touchscreen when the display signal changes, thereby improving the user experience.

[0066] When the press operation is determined to be in the released state, further judgment can be made as to whether a new finger is pressed at this time, so as to determine the moment to start the reset operation of the touch screen. This can further improve the sensitivity of touch screen calibration and thus improve the accuracy of touch screen calibration.

[0067] Please see Figure 7This is a structural block diagram of a touchscreen calibration device provided in an embodiment of this application. This embodiment provides a touchscreen calibration device 500, which can operate on an electronic device. The electronic device includes a touchscreen, and the device 500 includes a fingerprint image acquisition module 510 and a touchscreen control module 520.

[0068] The fingerprint image acquisition module 510 is used to acquire a fingerprint image in response to a pressing operation on the under-display fingerprint recognition area of ​​the touch screen when the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, so as to perform fingerprint recognition.

[0069] As one implementation, the fingerprint image acquisition module 510 can be used to respond to a pressing operation on the under-display fingerprint recognition area of ​​the touch screen when the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled. If the pressing operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition.

[0070] In this embodiment, the touch screen includes a fingerprint module. In this way, the fingerprint image acquisition module 510 can be used to report a fingerprint press event to the fingerprint module if the pressing operation meets preset conditions, so as to notify the fingerprint module to acquire a fingerprint image for fingerprint recognition.

[0071] In this embodiment, the preset conditions include the pressing operation being performed within a preset channel range of the under-display fingerprint recognition area.

[0072] The touchscreen control module 520 is used to reset the touchscreen if the fingerprint image does not match a preset fingerprint image, so as to update the reference capacitance data of the touchscreen.

[0073] In one implementation, the touchscreen control module 520 can be used to reset the touchscreen when the press operation is in the released state if the fingerprint image does not match the preset fingerprint image, so as to update the reference capacitance data of the touchscreen.

[0074] In one implementation, the touchscreen control module 520 can be used to reset the touchscreen when the fingerprint image does not match a preset fingerprint image, and the press operation is in the released state and there is no new press operation, so as to update the reference capacitance data of the touchscreen.

[0075] In this embodiment of the application, the reset operation includes at least one of the following operations: pulling the reset hardware pin low; issuing a command to notify the touch screen system to perform software services; and re-acquiring the touch screen's reference capacitance data.

[0076] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0077] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0078] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0079] Please see Figure 8 Based on the aforementioned touchscreen calibration method and apparatus, this application also provides an electronic device 100 capable of performing the aforementioned touchscreen calibration method. The electronic device 100 includes a memory 102 and one or more (only one shown in the figure) processors 104 coupled to each other, with communication lines connecting the memory 102 and the processors 104. The memory 102 stores a program capable of executing the contents of the aforementioned embodiments, and the processors 104 can execute the program stored in the memory 102.

[0080] The processor 104 may include one or more processing cores. The processor 104 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 102, and by calling data stored in the memory 102. Optionally, the processor 104 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 104 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 104 and may be implemented separately using a communication chip.

[0081] The memory 102 may include random access memory (RAM) or read-only memory (ROM). The memory 102 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 102 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the aforementioned embodiments. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).

[0082] Please refer to Figure 9 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 600 stores program code that can be called by a processor to execute the methods described in the above method embodiments.

[0083] The computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 600 has storage space for program code 610 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.

[0084] In summary, this application provides a touchscreen calibration method, apparatus, electronic device, and storage medium. The method is applied to an electronic device, including a touchscreen. When the touchscreen is in a black-out state and the under-display fingerprint recognition function is enabled, the method responds to a press operation on the under-display fingerprint recognition area of ​​the touchscreen to acquire a fingerprint image for fingerprint recognition. If the fingerprint image does not match a preset fingerprint image, the touchscreen is reset to update its reference capacitance data. This achieves timely reset of the touchscreen to update its reference capacitance data when a press operation on the under-display fingerprint recognition area fails, thereby reducing the risk of ghost pixels appearing when the display signal changes, and thus improving the user experience.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A touchscreen calibration method, characterized in that, Applied to an electronic device, the electronic device including a touchscreen, the method includes: When the touchscreen is in a black state and the under-display fingerprint recognition function is enabled, the fingerprint image is acquired in response to the pressing operation on the under-display fingerprint recognition area of ​​the touchscreen for fingerprint recognition. If the fingerprint image does not match the preset fingerprint image, the touch screen is reset to update the reference capacitance data of the touch screen.

2. The method according to claim 1, characterized in that, The response to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen to acquire a fingerprint image for fingerprint recognition includes: In response to a press operation applied to the under-display fingerprint recognition area of ​​the touchscreen, if the press operation meets preset conditions, a fingerprint image is acquired for fingerprint recognition.

3. The method according to claim 2, characterized in that, The touchscreen includes a fingerprint module. The step of acquiring a fingerprint image for fingerprint recognition if the pressing operation meets preset conditions includes: If the pressing operation meets the preset conditions, a fingerprint press event is reported to the fingerprint module to notify the fingerprint module to acquire a fingerprint image for fingerprint recognition.

4. The method according to claim 3, characterized in that, The preset conditions include the pressing operation being performed within a preset channel range of the under-display fingerprint recognition area.

5. The method according to claim 2, characterized in that, The reset operation on the touchscreen to update the touchscreen's reference capacitance data includes: When the press operation is in the released state, the touch screen is reset to update the touch screen's reference capacitance data.

6. The method according to claim 2, characterized in that, The reset operation on the touchscreen to update the touchscreen's reference capacitance data includes: When the press operation is in the released state and there is no new press operation, the touch screen is reset to update the reference capacitance data of the touch screen.

7. The method according to any one of claims 1-6, characterized in that, The reset operation includes at least one of the following operations: Pull the reset hardware pin low; Issue instructions to the touchscreen system to provide software services; Reacquire the reference capacitance data of the touchscreen.

8. A touchscreen calibration device, characterized in that, Operating in an electronic device, the electronic device including a touchscreen, the device includes: The fingerprint image acquisition module is used to acquire a fingerprint image in response to a pressing operation on the under-display fingerprint recognition area of ​​the touch screen when the touch screen is in a black screen state and the under-display fingerprint recognition function is enabled, so as to perform fingerprint recognition. The touchscreen control module is used to reset the touchscreen if the fingerprint image does not match a preset fingerprint image, so as to update the reference capacitance data of the touchscreen.

9. An electronic device, characterized in that, Includes one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method of any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code, wherein the program code, when executed by a processor, performs the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Capacitive touch screen calibration method and capacitive touch device

    CN103677452A

  • Fingerprint-awakening control method, device, storage medium and mobile terminal

    CN107291313A