A data processing method, device and electronic equipment
By acquiring image data and touch chip data, the device status and operation type are determined. The baseline data is updated only when the face is visible and the device is held, which solves the problem of unresponsiveness after screen switching and improves the user experience.
Patent Information
- Application Number
- CN202211336868.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-10-28
AI Technical Summary
When an electronic device screen switches from off to on, the user's touch on the screen becomes unresponsive, affecting the user experience.
By acquiring image data and touch data from the touch chip, the device status and operation type are determined. The baseline data is updated only when the image data contains facial information and the device is being held, and the response is based on the updated baseline data.
It improves the responsiveness of screen touch operations, enhancing the user experience.
Smart Images

Figure CN115617203B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a data processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] Electronic device screens have both off-screen and on-screen states. With the continuous development of communication product technology, users expect electronic devices to automatically switch between these states based on different usage scenarios. For example, an electronic device could automatically switch to on-screen mode after detecting a lift gesture, or automatically switch to on-screen mode when a foldable screen is unfolded.
[0003] During their research, the inventors discovered that when an electronic device's screen switches from off to on, the user's touch on the screen can result in unresponsive operation, negatively impacting the user experience. Summary of the Invention
[0004] The purpose of this application is to provide a data processing method, apparatus, electronic device, and readable storage medium that can solve the problem of unresponsive operation when the user touches a location on the screen after the screen has switched from a screen-off state to a screen-on state.
[0005] In a first aspect, embodiments of this application provide a data processing method, the method comprising:
[0006] When the electronic device switches from a screen-off state to a screen-on state, image data and first touch data from the touch chip of the electronic device are acquired.
[0007] The state of the electronic device is determined based on the first touch data, and the type of touch operation is determined based on the first touch data;
[0008] If the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, the reference data is updated based on the first touch data;
[0009] The touch operation is responded to based on the first touch data and the updated reference data.
[0010] Secondly, embodiments of this application provide a data processing apparatus, the apparatus comprising:
[0011] The acquisition module is used to acquire image data and first touch data of the touch chip of the electronic device when the electronic device switches from a screen-off state to a screen-on state.
[0012] The determining module is used to determine the state of the electronic device based on the first touch data and to determine the type of touch operation based on the first touch data;
[0013] The update module is used to update the reference data based on the first touch data when the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation.
[0014] The response module is used to respond to the touch operation based on the first touch data and the updated reference data.
[0015] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0016] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0017] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0018] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0019] In this embodiment, when the electronic device switches from a screen-off state to a screen-on state, image data and first touch data from the touch chip of the electronic device can be acquired. The state of the electronic device and the type of touch operation are determined based on the first touch data. If the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, reference data is updated based on the first touch data. The touch operation is responded to based on the first touch data and the updated reference data. Thus, by determining whether the image data includes a face, whether the electronic device is in a holding state, and whether the touch operation is a target touch operation, it can be determined whether the user is using the electronic device normally. When the user is using the electronic device normally, updating the reference data based on the first touch data makes the reference data more consistent with the actual screen touch data. Then, the touch operation is responded to based on the first touch data and the updated reference data, thereby improving the sensitivity of the response and enhancing the user experience. Attached Figure Description
[0020] Figure 1 This is a flowchart of the steps of a data processing method provided in an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of a process where an electronic device is unresponsive, provided in an embodiment of this application.
[0022] Figure 3 This is a flowchart of the steps of a data processing method provided in an embodiment of this application;
[0023] Figure 4 This is a schematic diagram of an electronic device in a holding state provided in an embodiment of this application;
[0024] Figure 5 This is a schematic diagram of touch data provided in an embodiment of this application;
[0025] Figure 6 This is a schematic diagram of the second difference value of adjacent channels provided in an embodiment of this application;
[0026] Figure 7 This is a schematic diagram of a third difference value calculation process provided in an embodiment of this application;
[0027] Figure 8 This is a schematic diagram illustrating the process of obtaining a touch area according to an embodiment of this application;
[0028] Figure 9 This is a schematic diagram illustrating a vertical method for determining replacement data according to an embodiment of this application;
[0029] Figure 10 This is a schematic diagram illustrating a method for horizontally determining replacement data according to an embodiment of this application;
[0030] Figure 11 This is a schematic diagram of a fitting process provided in an embodiment of this application;
[0031] Figure 12 This is a schematic diagram of a second touch data provided in an embodiment of this application;
[0032] Figure 13 This is a schematic diagram of a row gripping differential value of second touch data provided in an embodiment of this application;
[0033] Figure 14 This is a schematic diagram of a column gripping difference value of second touch data provided in an embodiment of this application;
[0034] Figure 15 This is a block diagram of a data processing apparatus provided in an embodiment of this application;
[0035] Figure 16 This is an electronic device provided in the embodiments of this application;
[0036] Figure 17 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0038] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, the first object can be one or at least two. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0039] The data processing method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0040] Reference Figure 1 , Figure 1 This application provides a flowchart illustrating the steps of a data processing method, which specifically includes the following steps:
[0041] Step 101: When the electronic device switches from a screen-off state to a screen-on state, acquire image data and acquire the first touch data of the touch chip of the electronic device.
[0042] In this embodiment, the electronic device may have a foldable screen, which can be a foldable screen composed of multiple screens or a foldable screen made of flexible screens. The electronic device can change the screen size by bending, for example, by changing the screen size. The bending process of the foldable screen includes a folding process and an unfolding process. The folding process refers to folding multiple screens together to reduce the screen size of the electronic device, while the unfolding process refers to unfolding multiple screens, which can be used to form a large screen for display. Of course, the screen of the electronic device can also be a non-foldable screen, and this embodiment does not limit it.
[0043] Electronic devices include touch chips. For capacitive electronic devices, the screen contains multiple touch nodes. These touch nodes receive input signals such as pressing and touching, and output corresponding first touch data to the touch chip. The touch chip can upload the obtained first touch data to the touch driver for processing, determine the location where the user presses or touches the screen, and drive the electronic device to respond to the user's operation.
[0044] The screen states of an electronic device include a screen-off state and a screen-on state. During the unfolding process of a foldable screen, the electronic device switches from a screen-off state to a screen-on state. Simultaneously, the electronic device updates the first touch data generated by a finger touch on the current screen to the display's reference data. If the user clicks or swipes at the location where their finger is pressing on the screen, the electronic device does not respond until the finger is lifted for a preset time, such as 2 seconds. At this time, the display's reference data is updated to the first touch data from the state before the finger is touched. Only then will a normal response resume when the user clicks or swipes again. This preset time can be set according to actual conditions, and this embodiment does not limit it.
[0045] Of course, for non-foldable screens, if an electronic device switches from a screen-off state to a screen-on state, the electronic device updates the touch data generated by the finger touch on the current screen to the display's reference data. This will also cause the electronic device to not respond when the user clicks or slides at the position where the finger is pressed on the screen. It will only resume normal response after the user lifts their finger and clicks or slides again after a preset time.
[0046] Under normal circumstances, the touch IC (integrated circuit), that is, the touch chip, reports touch data to the touch driver. Then, the touch driver provides the determined touch operation to the corresponding application (APP), and the APP responds to the touch operation. Figure 2 This application provides a schematic diagram illustrating a process for an electronic device to become unresponsive, as shown in the embodiment of the present application. Figure 2 As shown, when the folding screen of the electronic device unfolds, the screen switches from a sleep state to a light state. The signal generated by the finger touch on the screen is updated into the reference data (diff value). The touch IC subtracts the reference data from the signal generated by the finger touch, but still cannot detect that the finger is touching the screen. Therefore, it will not report the touch data to the touch driver. The touch driver cannot make a judgment on the touch operation, which causes the electronic device to be unable to respond to the user's touch operation.
[0047] In this embodiment, to determine the state of the electronic device and perform subsequent operations, it is necessary to first acquire image data captured by the electronic device and touch data received by the screen. The first touch data refers to the first touch data received by the screen of the electronic device. The electronic device has a camera function; in practical applications, it can use its front-facing camera to capture images, i.e., the image data. The electronic device can perform facial recognition based on the captured image data. For example, even when the electronic device is in a suppressed state, the camera can maintain intermittent detection; the front-facing camera can capture images every 1-2 seconds. The specific interval is not limited in this embodiment.
[0048] For capacitive electronic devices, the screen includes touch nodes, and changes in the capacitance value of these touch nodes reflect external operations on the screen. When a conductive material comes into contact with the screen, the touch data of the touch nodes changes. In this embodiment, the touch data can be the capacitance value of the touch nodes on the touchscreen. Specifically, the electronic device can update the touch data at a frequency of 120 Hz (Hertz). Of course, the electronic device can also update the touch data at other frequencies, and this embodiment does not limit this.
[0049] like Figure 2 If the touchscreen refreshes the touch data at the aforementioned frequency, the touch chip can also obtain the corresponding first touch data. Therefore, in this embodiment, the first touch data can be obtained from the touch chip. The first touch data may include: the coordinate positions of each touch node and the capacitance value of each touch node.
[0050] In addition, image data can be acquired to accurately determine whether a user is using the electronic device normally. In practical applications, image data from the front-facing camera can be obtained, because when a user wants to use the electronic device normally, their face is facing the screen when clicking or swiping the touchscreen.
[0051] This electronic device has a camera function. In practical applications, it can capture images, i.e., image data, using its front-facing camera. For example, when the electronic device detects that its foldable screen has been folded, or when it detects that the phone has been picked up, it maintains intermittent camera detection. The front-facing camera can capture images every 1 to 2 seconds. The specific interval is not limited in this embodiment of the invention.
[0052] In this application embodiment, the electronic device can be a mobile terminal such as a mobile phone or tablet computer. This embodiment of the invention does not limit it. The electronic device has the aforementioned foldable screen.
[0053] Step 102: Determine the state of the electronic device based on the first touch data and determine the type of touch operation based on the first touch data.
[0054] In reality, clothing and other conductive materials, as well as other factors, can affect the touch data. Therefore, before responding to a touch operation, the state of the electronic device and the type of touch operation corresponding to the touch data received by the electronic device should be determined first. Based on the state of the electronic device and the type of touch operation, it is determined whether the current operation is normal. Only in normal operation scenarios is it necessary to continue responding to the touch operation to avoid meaningless operations consuming resources. Therefore, in this embodiment, the state of the electronic device can first be determined based on the aforementioned first touch data, specifically whether it is being held, and the type of touch operation can be determined based on this first touch data, thereby helping to determine whether the user is using the electronic device normally.
[0055] Step 103: If the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, update the reference data based on the first touch data.
[0056] When a user uses an electronic device, they are facing the screen. If the image data does not include facial information, it indicates that the user is not using the electronic device. However, if the image data includes facial information, it indicates that the user may be using the electronic device.
[0057] Therefore, if the image data packet contains the user's facial information, the electronic device is in a holding state, and the touch operation is a target-type touch operation, it means the user is using the electronic device normally and is currently in a normal operating scenario. There is a possibility that the user's normal operation may not be responsive, requiring an update to the baseline data. If any one of the following three conditions exists: the image data does not contain facial information, the electronic device is not in a holding state, or the touch operation is not a target-type touch operation, it indicates that the user is not intending to use the electronic device normally. This means that no update to the baseline data is required, and the original logic of the touch IC can continue to be executed.
[0058] Among them, the target type of touch operation includes at least one of click operation and swipe operation.
[0059] Step 104: Respond to the touch operation based on the first touch data and the updated reference data.
[0060] The initial touch data and the updated reference data package contain touch coordinate data, touch time, and other data from the screen. The touch chip of the electronic device can process the acquired initial touch data and updated reference data to determine the position of the user's press or touch on the screen, and drive the electronic device to respond to the user's operation, that is, to respond to the touch operation.
[0061] In this embodiment, it can be determined whether the user is using the electronic device normally by judging whether the image data includes a face, whether the electronic device is being held, and whether the touch operation is the target touch operation. When the user is using the electronic device normally, the reference data is updated based on the first touch data to make the reference data more consistent with the actual screen touch data. Then, based on the first touch data and the updated reference data, the touch operation is responded to, thereby improving the sensitivity of the response and enhancing the user experience.
[0062] Reference Figure 3 , Figure 3 This application provides a flowchart illustrating the steps of a data processing method, which specifically includes the following steps:
[0063] Step 201: When the electronic device switches from a screen-off state to a screen-on state, acquire image data and acquire the first touch data of the touch chip of the electronic device.
[0064] Reference Figure 5 , Figure 5 This illustration shows a schematic diagram of touch data provided in an embodiment of this application, such as... Figure 5 As shown, the original touch data packet contains multiple channels, each channel contains multiple nodes, and each node contains a capacitance value, i.e., the first touch data.
[0065] In this embodiment of the application, the touch IC can obtain such as Figure 5 The first touch data. Of course, in this embodiment, Figure 5 It can display touch data from the front of the foldable screen. Furthermore, the touch IC in this application can also acquire data such as... Figure 12 The touch data on the back of the foldable screen.
[0066] This step is similar to step 101, and will not be described in detail here.
[0067] Step 202: Determine the state of the electronic device based on the first touch data and determine the type of touch operation based on the first touch data.
[0068] This step is similar to step 102, and will not be described in detail here.
[0069] Step 203: If the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, obtain the touch area corresponding to the touch operation based on the first touch data.
[0070] In the embodiments of this application, the state of the electronic device includes a holding state, as referred to Figure 4 , Figure 4 The illustration shows a schematic diagram of an electronic device in a held state according to an embodiment of this application, as shown below. Figure 4 As shown, when a user is using an electronic device, the screen is folded or unfolded, the user's face is facing the screen, and the position of the finger pressing on the back of the electronic device does not change much, indicating that the electronic device is in a holding state. The electronic device acquires the first touch data at certain time intervals and updates the latest frame of the first touch data as the reference data when switching from the screen-off state to the screen-on state. This reference data will cause no response when the user continues to click or swipe at the finger pressing position.
[0071] In this embodiment, the third touch data is the touch data corresponding to the front area of the electronic device in the first touch data, that is, the touch data of the screen area operated by the user. During the unfolding of the electronic device, the device may mistakenly update the touch data with a finger signal. Touching the original pressing position at this time will result in insensitivity. Therefore, the area affected by the finger can be calculated based on the third touch data, and the boundary of this area is the touch boundary. Then, the reference data within the boundary area is removed and replaced.
[0072] Reference Figure 8 , Figure 8 This illustration shows a process for obtaining a touch area according to an embodiment of this application, such as... Figure 8As shown, subtracting adjacent rows of touch data yields the row difference, and subtracting adjacent columns yields the column difference. Both row and column differences reflect the degree to which the touch data is affected, and their absolute values can be taken. Then, the row and column differences are added together to obtain the new touch data. The touch boundary is composed of multiple nodes, used to distinguish between the touch area and the unaffected area. The area inside the touch boundary formed by the nodes is the touch area, and the area outside the touch boundary is the unaffected area. Therefore, by traversing the nodes, when the touch data of a node's external adjacent nodes is less than a preset value, and the touch data of that node is greater than a preset value, that node can be determined as a touch boundary.
[0073] Step 204: Calculate replacement data based on the fourth touch data, and replace the data corresponding to the touch area in the reference data with the replacement data to obtain updated reference data, wherein the fourth touch data is the data in the first touch data located outside the touch area.
[0074] In this embodiment, the touch IC refreshes the reference data during the process of turning the screen on from off to on. The refresh process involves updating the first touch data uploaded to the touch IC from the screen to the reference data. The reference data will have a high value for the position of the finger touch.
[0075] Therefore, in this embodiment, the touch area of the finger touch can be identified first. The touch data in the touch area is the touch data affected by the finger signal. Therefore, the touch data in the touch area is removed, and the touch data outside the touch boundary that is not affected by the finger signal or is less affected by the finger signal is used as the basis to determine the replacement data that is closer to the truth within the touch boundary, and replace the original data within the touch boundary.
[0076] Reference Figure 9 , Figure 9 This illustration shows a schematic diagram of a vertical method for determining replacement data according to an embodiment of this application. Figure 10 This illustration shows a schematic diagram of a method for determining replacement data in the horizontal direction according to an embodiment of this application. First, nodes within the touch boundary are selected. Then, linear fitting is performed on the adjacent horizontal and vertical directions of each node to obtain fitting data X1 and Y1 in two directions. The average of the fitting data in the two directions is then calculated to obtain the final fitted value. This process is repeated until the outermost boundary is fitted, followed by inward shrinkage, and then fitting continues according to the above rules. Figure 11 This is a schematic diagram of a fitting process provided in an embodiment of this application, such as... Figure 11 As shown, after fitting the new boundary X, the boundary Y is then fitted based on X, expanding inward layer by layer until the final z position is also fitted, at which point the fitting stops, thus obtaining the replacement data within the touch boundary.
[0077] Since the first touch data touched by the finger within the touch area is replaced with the aforementioned replacement data, the touch data inside and outside the touch boundary is more consistent with the actual touch data under the condition of not being touched. Then, the replacement data is used to replace the data belonging to the touch area (including the touch boundary) in the original reference data. Finally, the data belonging to the touch boundary in the reference data and the data of the replaced touch area are used as the new reference data for identifying touch operations.
[0078] Step 205: Obtain the difference data based on the first touch data and the updated reference data.
[0079] Because the touch driver cannot directly obtain coordinate data from the touch data sent by the touch IC, it needs to determine the touch coordinates based on the difference between the third touch data and the updated reference data. The difference data is obtained by subtracting the first touch data from the fitted updated reference data.
[0080] Step 206: Determine the touch coordinates corresponding to the touch operation based on the difference data.
[0081] In the embodiments of this application, the touch coordinates in the display area can be determined by the center of gravity law based on the difference data, or the touch coordinates in the display area can be determined by other methods, and this application does not limit this.
[0082] It should be noted that steps 203-206 can be optional steps of the aforementioned step 103.
[0083] Step 207: Respond to the touch operation based on the touch coordinates.
[0084] It should be noted that when the touch coordinates are located within the application icon area, the electronic device directly responds to the touch operation corresponding to the touch data, causing the app to be responded to, which can be inconvenient for the user. Therefore, when the touch coordinates are located within the application icon area, the touch operation corresponding to the touch data will not be responded to. "Touch coordinates located within the application icon area" can also be understood as the touch coordinates completely or partially coinciding with the coordinates of the application icon area. Only when the touch coordinates are completely non-coinciding with the coordinates of the application icon area will the touch operation corresponding to the touch coordinates be responded to.
[0085] In this embodiment, it is also possible to bypass the determination of whether the touch coordinates are located within the application icon area, and instead directly cause the application icon or desktop at the location of the touch coordinates to respond based on the touch coordinates. This embodiment does not impose specific limitations on this approach.
[0086] Optionally, step 202 includes:
[0087] Sub-step 2021: Determine the state of the electronic device based on the second touch data, wherein the second touch data is the touch data in the first touch data that corresponds to the back area of the electronic device.
[0088] When an electronic device is held, the user folds or unfolds the screen, faces the screen, and the position of the fingers pressing on the back of the device does not change significantly. Therefore, when the electronic device is held, the finger pressing position on the back of the device does not change much, and the touch data on the back of the device does not change much. By detecting whether there are significant changes in the touch data on the back of the electronic device over a period of time, it is possible to detect whether there are significant changes in the position of the fingers on the back of the device. The lack of significant changes in the touch data on the back of the electronic device indicates that the electronic device is in a held state.
[0089] Reference Figure 5 , Figure 5 This illustration shows a schematic diagram of touch data provided in an embodiment of this application, such as... Figure 5 As shown, the original touch data packet contains multiple channels, each channel contains multiple nodes, and each node contains capacitance values, i.e., touch data. The touch data includes the capacitance values of the touch nodes on the foldable screen.
[0090] It should be noted that for non-foldable screens, if the back area is not a screen, the corresponding touch data can be touch data obtained by other sensors, such as additional pressure sensors, etc. This application embodiment does not limit it.
[0091] Optionally, sub-step 2021 includes:
[0092] Sub-step 20211: Based on multiple frames of the second touch data within a preset time period, obtain the consistency value of the multiple frames of the second touch data.
[0093] Sub-step 20212: If the consistency value of the second touch data in multiple frames meets the first preset condition, determine that the state of the electronic device is a holding state.
[0094] In this embodiment of the application, the first preset condition is that the consistency value is less than a threshold preset according to the specific circumstances such as the type of electronic device and user habits. The larger the consistency value, the greater the change in the pressing position of the finger. Therefore, when the consistency value is greater than or equal to the preset threshold, it means that the pressing position of the finger has changed significantly and the state of the electronic device is not the holding state; when the consistency value is less than the preset threshold, it means that the pressing position of the finger has changed slightly and the state of the electronic device is the holding state.
[0095] Optionally, the second touch data includes second sub-touch data from multiple channels, and sub-step 20211 includes:
[0096] Sub-step s111: For each frame of the second touch data, subtract the second sub-touch data of the adjacent channels to obtain the first difference value of the adjacent channels; wherein, the second sub-touch data of the channel is a row of data or a column of data in the second touch data.
[0097] Adjacent channels can be horizontal or vertical. The first difference value, including row grip difference value and column grip difference value, can be taken as absolute values. Subtracting the touch data between adjacent rows of the second touch data and taking the absolute value yields the row grip difference value; subtracting the touch data between adjacent columns of the second touch data and taking the absolute value yields the column grip difference value. In this embodiment, the row grip difference value and column grip difference value reflect the degree of change in the touch data, therefore, absolute values can be taken.
[0098] Reference Figure 12 , Figure 12 This illustration shows a schematic diagram of a second touch data provided in an embodiment of this application. Figure 13 This illustration shows a schematic diagram of a row gripping differential value for second touch data provided in an embodiment of this application; Figure 14 This illustration shows a schematic diagram of a column gripping difference value for a second touch data provided in an embodiment of this application.
[0099] for example Figure 13 In China, with Figure 12 The values are for calculation reference; the value of each row is the absolute value of the current row's value minus the value of the next row. Figure 13 The first row and first column of the result is 0 (863-863), the first row and first column of the result is 1 (the absolute value of -1) (863-864), the first row and first column of the result is 3 (the absolute value of -3) (864-867), the first row and first column of the result is 3 (867-870), the first row and first column of the result is 2 (870-872), and so on.
[0100] for example Figure 12 In China, with Figure 12 The values are for calculation reference; the value in each column is the absolute value of the current row's value minus the value in the next column. Figure 12 The first row and first column of the result is 2 (863-861), the first row and second column is 2 (861-859), the first row and third column is 3 (859-856), the first row and fourth column is 4 (856-852), and so on.
[0101] Sub-step s112: Determine the consistency value of multiple frames of the second touch data based on the first difference value of each frame of the second touch data.
[0102] For example, adding the column grip difference values and the row grip difference values of all second touch data can yield the consistency value of the second touch data. Another example is that for each frame of touch data, the consistency value of the second touch data can be obtained by... Figure 13 The row differences are summed row by row. Figure 14 The column differences are accumulated column by column. For multi-frame data, the row and column differences between consecutive frames are subtracted to obtain the row error and column error. The absolute values of these errors are then summed to obtain the total error between the two frames. A consistency value is calculated based on this total error, for example, by averaging the total errors across all frames. This method allows for a more convenient determination of the consistency value.
[0103] Optionally, the first touch data includes third touch data, wherein the third touch data is the touch data in the first touch data corresponding to the front area of the electronic device; the third touch data includes third sub-touch data of multiple channels, and step 202 includes:
[0104] Reference Figure 12 , Figure 12 This illustration shows a schematic diagram of touch data provided in an embodiment of this application, such as... Figure 12 As shown, the touch data packet contains third sub-touch data for multiple channels. Each channel's third sub-touch data packet contains multiple nodes, and each node contains a capacitance value, i.e., touch data. Adjacent channels can be horizontally adjacent channels (adjacent rows) or vertically adjacent channels (adjacent columns).
[0105] Sub-step 2022: Obtain multiple frames of the third touch data within a preset time period.
[0106] Sub-step 2023: For each frame of the third touch data, subtract the third sub-touch data of the adjacent channels to obtain the second difference value, wherein the third sub-touch data of the channel is a column of data or a row of data in the third touch data.
[0107] The preset duration can be set according to actual needs, such as 2 seconds, but this application embodiment does not limit it.
[0108] Subtracting the third sub-touch data from adjacent channels yields the capacitance difference between the adjacent channels, which is the second difference value. Since the second difference value can characterize the degree of difference, its absolute value can be taken.
[0109] Reference Figure 6 , Figure 6This illustration shows a schematic diagram of a second difference value for adjacent channels provided in an embodiment of this application. Figure 6 Each column of data is obtained by subtracting the third sub-touch data of the adjacent channel. Figure 6 Subtracting the third sub-touch data of adjacent channels in the middle vertical direction yields the following result: Figure 6 result. Figure 6 The values in the first column are the absolute values of the difference between the second and first columns, and the values in the second column are the absolute values of the difference between the third and second columns.
[0110] In practical applications, after subtracting to obtain the node difference value for each touch node, the node difference values of each touch node can be added together to obtain the cumulative node difference value. Figure 6 The difference values of each touch node are added together to obtain the accumulated second difference value. Therefore, Figure 6 The second difference value of the touch data shown is equal to 0+0+3+3+0+…+1+3+0+1=2425. The accumulated second difference value can reflect whether there is a conductive material near or in contact with the screen.
[0111] Of course, you can also subtract by row.
[0112] Sub-step 2024: For multiple frames of the third touch data, subtract the multiple frames of the third touch data to obtain the third difference value between the multiple frames of the third touch data.
[0113] After confirming that a conductive material is near or in contact with the screen, it is necessary to further determine the specific type of touch operation and obtain the touch data of the (N+1)th frame. The (N+1)th frame can be the next frame of touch data after the Nth frame, or it can be touch data some time after the Nth frame. This is because when the refresh rate of touch data is high, changes in touch data may not be reflected in the next frame, but rather in a frame within a certain period of time. The specific time is not limited in this embodiment of the invention and can be set according to specific circumstances. Subtracting the first touch data of the (N+1)th frame from the first touch data of the Nth frame yields the third difference value between multiple frames. Here, N is an integer greater than 0.
[0114] In practical applications, after subtracting the values to obtain the difference value for each touch node, the difference values of each touch node can be added together to obtain the accumulated third difference value. The third difference value reflects the change between the first touch data in frame N and the first touch data in frame N+1. The larger the third difference value, the greater the change in touch data over a period of time, and the more obvious the user's operation on the screen.
[0115] Specifically, the calculation process for the third difference value is as follows: Figure 7 , Figure 7This illustration shows a schematic diagram of a third difference value calculation process provided in an embodiment of this application, such as... Figure 7 As shown, the difference value of each node is obtained by subtracting the first touch data of the Nth frame from the first touch data of the (N+1)th frame. Then, the third difference value 11685 is obtained by summing all the touch data differences. Figure 7 The original difference value between adjacent frames is 11685.
[0116] Sub-step 2025: Determine the type of the touch operation based on the second difference value and the third difference value.
[0117] After obtaining the second and third difference values, the type of touch operation can be analyzed based on these two values. The types of touch operations include: click operations, swipe operations, long press operations, and accidental touch operations.
[0118] Only when the type of touch operation is target type does it mean that the baseline data may need to be updated.
[0119] In this embodiment of the application, when the second difference value is greater than the first preset value and the difference value between the multiple frames is greater than the second preset value, the touch operation can be determined to be a click operation or a swipe operation based on the distribution of the difference values between the multiple frames.
[0120] Before determining the type of touch operation based on the second and third difference values, it is first necessary to determine whether the screen is being touched. If the summed second difference value (i.e., the difference between adjacent channels) is greater than a first preset value, it can be determined that a conductive material is approaching or contacting the screen. The first preset value can be obtained through multiple experiments, and different first preset values can be set according to different environments or user factors; this application embodiment does not limit this. Different environments can be determined by electronic devices based on parameters from various sensors; for example, in a humid environment, the value of the humidity sensor can be used. Different users can be determined by electronic devices using facial recognition based on image data.
[0121] The accumulated second difference value reflects whether a conductive substance is near or in contact with the screen; the accumulated third difference value reflects the magnitude of touch data changes over a period of time. A larger third difference value indicates a greater change in touch data over a period of time, and a more noticeable user action on the screen. Therefore, when the sum of the second difference values within the same frame is greater than the first preset value, and the third difference value (the difference between multiple frames) is greater than the second preset value, it can be determined that the user's action is a click or a swipe. The second preset value can be obtained through multiple experiments, and different second preset values can be set according to different environments or user factors.
[0122] Furthermore, the system can obtain the node positions that exceed the difference threshold in the difference values of the touch nodes in each frame, and then compare the node positions in each frame. If the offset between the node positions in multiple frames is less than or equal to the offset threshold, the touch operation is determined to be a click operation; if the offset between the node positions in multiple frames is greater than the offset threshold, the touch operation is determined to be a swipe operation.
[0123] If the second difference value is greater than the first preset value and the third difference value is less than or equal to the second preset value, the touch operation is determined to be a long press operation.
[0124] If the sum of the second difference values in the same frame is greater than the first preset value, and the third difference value is less than or equal to the second preset value, it can be determined that the user's operation is a long press.
[0125] If the second difference value is less than or equal to the first preset value, the touch operation is determined to be a false touch operation.
[0126] In this embodiment of the application, the accumulated second difference value, that is, the difference value of adjacent channels, can reflect whether there is a conductive material approaching or contacting the screen. The difference value of the same frame obtained by summing the second difference values is less than the first preset value, indicating that no conductive material is approaching the screen and the screen has not received a touch or press. Therefore, the touch operation is determined to be a mis-touch operation.
[0127] In summary, in this embodiment, it can be determined whether a user is using the electronic device normally by judging whether the image data includes a face, whether the electronic device is being held, and whether the touch operation is the target touch operation. When the user is using the electronic device normally, the reference data is updated based on the first touch data to make the reference data more consistent with the actual touch data of the screen. Then, based on the first touch data and the updated reference data, the touch operation is responded to. This can compensate for errors in the detection process of the anti-mistouch function of electronic devices such as foldable screen phones, and avoid screen insensitivity caused by updating finger signals on the screen to the electronic device during the unfolding of the foldable screen, thus improving the user experience.
[0128] The data processing method provided in this application embodiment can be executed by a data processing device. (Refer to...) Figure 15 , Figure 15 This is a block diagram of a data processing apparatus provided in an embodiment of this application, such as... Figure 15 As shown, the data processing apparatus includes:
[0129] The acquisition module 301 is used to acquire image data and the first touch data of the touch chip of the electronic device when the electronic device switches from a screen-off state to a screen-on state.
[0130] The determining module 302 is used to determine the state of the electronic device based on the first touch data and to determine the type of touch operation based on the first touch data;
[0131] The update module 303 is used to update the reference data based on the first touch data when the image data includes face information, the electronic device is in a holding state, and the touch operation is a target type touch operation.
[0132] The response module 304 is used to respond to the touch operation based on the first touch data and the updated reference data.
[0133] Optionally, module 302 includes:
[0134] The determination submodule 3021 is used to determine the state of the electronic device based on the second touch data, wherein the second touch data is the touch data in the first touch data that corresponds to the back area of the electronic device.
[0135] Optionally, submodule 3021 is defined, including:
[0136] The second acquisition submodule 30211 is used to acquire the consistency value of multiple frames of the second touch data based on multiple frames of the second touch data within a preset time period;
[0137] The second determining submodule 30212 is used to determine the state of the electronic device as a holding state when the consistency value of multiple frames of the second touch data meets the first preset condition.
[0138] The second touch data includes second sub-touch data from multiple channels. The second acquisition submodule 30211 includes:
[0139] The third acquisition submodule 311 is used to subtract the second sub-touch data of adjacent channels from each frame of the second touch data to obtain the first difference value of the adjacent channels; wherein, the second sub-touch data of the channel is a row of data or a column of data in the second touch data;
[0140] The third determining submodule 312 is used to determine the consistency value of multiple frames of the second touch data based on the first difference value of each frame of the second touch data.
[0141] Optionally, the first touch data includes third touch data, wherein the third touch data is the touch data in the first touch data corresponding to the front area of the electronic device; the third touch data includes third sub-touch data of multiple channels, and the determining module 302 includes:
[0142] The fourth acquisition submodule 3022 is used to acquire multiple frames of the third touch data within a preset time period;
[0143] The calculation submodule 3023 is used to subtract the third sub-touch data of adjacent channels for each frame of the third touch data to obtain a second difference value, wherein the third sub-touch data of the channel is a column of data or a row of data in the third touch data;
[0144] The fifth acquisition submodule 3024 is used to subtract the third touch data from the third touch data in multiple frames to obtain the third difference value between the third touch data in multiple frames;
[0145] The fourth determining submodule 3025 is used to determine the type of the touch operation based on the second difference value and the third difference value.
[0146] Optionally, the update module 303 includes:
[0147] The area acquisition submodule 3031 is used to acquire the touch area corresponding to the touch operation based on the first touch data;
[0148] The replacement submodule 3032 is used to calculate replacement data based on the fourth touch data, and replace the data corresponding to the touch area in the reference data with the replacement data to obtain the updated reference data, wherein the fourth touch data is the data in the first touch data located outside the touch area;
[0149] The response module 304 includes:
[0150] The sixth acquisition submodule 3041 is used to obtain difference data based on the first touch data and the updated reference data;
[0151] The fifth determining submodule 3042 is used to determine the touch coordinates corresponding to the touch operation based on the difference data;
[0152] The response submodule 3043 is used to respond to the touch operation based on the touch coordinates.
[0153] In summary, the embodiments of this application can determine whether a user is using the electronic device normally by judging whether the image data includes a face, whether the electronic device is being held, and whether the touch operation is the target touch operation. When the user is using the electronic device normally, the reference data is updated based on the first touch data to make the reference data more consistent with the actual touch data of the screen. Then, based on the first touch data and the updated reference data, the touch operation is responded to. This can compensate for errors in the detection process of the anti-mistouch function of electronic devices such as foldable screen phones to a certain extent, avoiding screen insensitivity problems caused by updating the reference data of the screen with finger touch signals during the unfolding of the foldable screen, thus improving response sensitivity and enhancing the user experience.
[0154] The data processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0155] The data processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0156] The data processing device provided in this application embodiment can achieve... Figures 1 to 14 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0157] Optionally, such as Figure 16As shown, this application embodiment also provides an electronic device M00, including a processor M01 and a memory M02. The memory M02 stores a program or instructions that can run on the processor M01. When the program or instructions are executed by the processor M01, they implement the various steps of the above-described data processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0158] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0159] Figure 17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0160] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
[0161] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0162] The processor 1010 is configured to: acquire image data and acquire first touch data from the touch chip of the electronic device when the electronic device switches from a screen-off state to a screen-on state; determine the state of the electronic device and the type of touch operation based on the first touch data; update reference data based on the first touch data when the image data includes facial information, the state of the electronic device is a holding state, and the touch operation is a target type touch operation; and respond to the touch operation based on the first touch data and the updated reference data.
[0163] Optionally, the processor 1010 is further configured to determine the state of the electronic device based on second touch data, wherein the second touch data is the touch data in the first touch data corresponding to the back area of the electronic device;
[0164] Optionally, the processor 1010 is further configured to obtain a consistency value of multiple frames of the second touch data based on multiple frames of the second touch data within a preset time period, and determine that the state of the electronic device is a holding state when the consistency value of the multiple frames of the second touch data meets a first preset condition;
[0165] The second touch data includes second sub-touch data of multiple channels. Optionally, the processor 1010 is further configured to subtract the second sub-touch data of adjacent channels for each frame of the second touch data to obtain a first difference value of adjacent channels, wherein the second sub-touch data of the channel is a row of data or a column of data of the second touch data, and to determine the consistency value of multiple frames of the second touch data based on the first difference value of each frame of the second touch data.
[0166] The first touch data includes third touch data, which is the touch data in the first touch data corresponding to the front area of the electronic device. The third touch data includes third sub-touch data of multiple channels. Optionally, the processor 1010 is further configured to subtract the third sub-touch data of adjacent channels to obtain a second difference value for each frame. For multiple frames of third touch data, the processor subtracts the third touch data of multiple frames to obtain a third difference value between multiple frames. Based on the second difference value and the third difference value, the type of touch operation is determined.
[0167] Optionally, the processor 1010 is further configured to obtain the touch boundary corresponding to the touch operation based on the first touch data, calculate the reference data replacement data based on the third touch data outside the touch boundary, and replace the data in the reference data corresponding to the third touch data within the touch boundary with the replacement data reference data to obtain the updated reference data;
[0168] Optionally, the processor 1010 is further configured to obtain difference data based on the first touch data and the updated reference data, determine the touch coordinates corresponding to the touch operation based on the difference data, and respond to the touch operation based on the touch coordinates.
[0169] In this embodiment, it can be determined whether the user is using the electronic device normally by judging whether the image data includes a face, whether the electronic device is being held, and whether the touch operation is the target touch operation. When the user is using the electronic device normally, the reference data is updated based on the first touch data to make the reference data more consistent with the actual screen touch data. Then, based on the first touch data and the updated reference data, the touch operation is responded to, thereby improving the sensitivity of the response and enhancing the user experience.
[0170] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 1041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0171] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0172] Processor 1010 may include one or at least two processing units; optionally, processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1010.
[0173] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described data processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0174] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0175] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described data processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0176] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0177] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above data processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0178] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0179] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the data processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0180] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0181] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0182] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data processing method, characterized in that, The method includes: When the electronic device switches from a screen-off state to a screen-on state, image data and first touch data from the touch chip of the electronic device are acquired. The state of the electronic device is determined based on the first touch data, and the type of touch operation is determined based on the first touch data; When the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, the touch area corresponding to the touch operation is obtained based on the first touch data; The replacement data is calculated based on the fourth touch data, and the replacement data is used to replace the data in the reference data corresponding to the touch area to obtain the updated reference data. The fourth touch data is the data in the first touch data located outside the touch area. The touch operation is responded to based on the first touch data and the updated reference data.
2. The method according to claim 1, characterized in that, Determining the state of the electronic device based on the first touch data includes: The state of the electronic device is determined based on the second touch data, which is the touch data in the first touch data that corresponds to the back area of the electronic device.
3. The method according to claim 2, characterized in that, Determining the state of the electronic device based on the second touch data includes: Based on multiple frames of the second touch data within a preset time period, obtain the consistency value of the multiple frames of the second touch data; If the consistency value of multiple frames of the second touch data meets the first preset condition, the state of the electronic device is determined to be a holding state; The second touch data includes second sub-touch data from multiple channels. The step of obtaining a consistency value for multiple frames of the second touch data within a preset time period includes: For each frame of the second touch data, the second sub-touch data of adjacent channels are subtracted to obtain a first difference value; wherein, the second sub-touch data of the channel is a row of data or a column of data in the second touch data; Based on the first difference value of the second touch data in each frame, a consistency value of the second touch data in multiple frames is determined.
4. The method according to claim 1, characterized in that, The first touch data includes third touch data, which is the touch data in the first touch data corresponding to the front area of the electronic device; the third touch data includes third sub-touch data of multiple channels, and determining the type of touch operation based on the first touch data includes: Acquire multiple frames of the third touch data within a preset time period; For each frame of the third touch data, the third sub-touch data of the adjacent channels are subtracted to obtain the second difference value, wherein the third sub-touch data of the channel is a column of data or a row of data in the third touch data; For multiple frames of the third touch data, subtract the multiple frames of the third touch data to obtain the third difference value between the multiple frames of the third touch data; The type of touch operation is determined based on the second difference value and the third difference value.
5. The method according to claim 1, characterized in that, The step of responding to the touch operation based on the first touch data and the updated reference data includes: Based on the first touch data and the updated baseline data, difference data is obtained; Based on the difference data, determine the touch coordinates corresponding to the touch operation; The touch operation is responded to based on the touch coordinates.
6. A data processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire image data and first touch data of the touch chip of the electronic device when the electronic device switches from a screen-off state to a screen-on state. The determining module is used to determine the state of the electronic device based on the first touch data and to determine the type of touch operation based on the first touch data; An update module is configured to, when the image data includes facial information, the electronic device is in a holding state, and the touch operation is a target type touch operation, obtain the touch area corresponding to the touch operation based on the first touch data; calculate replacement data based on the fourth touch data, and replace the data corresponding to the touch area in the reference data with the replacement data to obtain updated reference data, wherein the fourth touch data is the data in the first touch data located outside the touch area; The response module is used to respond to the touch operation based on the first touch data and the updated reference data.
7. The apparatus according to claim 6, characterized in that, The determining module includes: A determination submodule is used to determine the state of the electronic device based on second touch data, wherein the second touch data is the touch data in the first touch data that corresponds to the back area of the electronic device.
8. The apparatus according to claim 7, characterized in that, The determining submodule includes: The second acquisition submodule is used to acquire the consistency value of multiple frames of the second touch data based on multiple frames of the second touch data within a preset time period; The second determining submodule is used to determine the state of the electronic device as a holding state when the consistency value of multiple frames of the second touch data meets the first preset condition; The second touch data includes second sub-touch data from multiple channels, and the second acquisition submodule includes: The third acquisition submodule is used to subtract the second sub-touch data of adjacent channels from each frame of the second touch data to obtain the first difference value of the adjacent channels; wherein, the second sub-touch data of the channel is a row of data or a column of data in the second touch data; The third determining submodule is used to determine the consistency value of multiple frames of the second touch data based on the first difference value of each frame of the second touch data.
9. The apparatus according to claim 6, characterized in that, The first touch data includes third touch data, which is the touch data in the first touch data corresponding to the front area of the electronic device; the third touch data includes third sub-touch data from multiple channels, and the determining module includes: The fourth acquisition submodule is used to acquire multiple frames of the third touch data within a preset time period; The calculation submodule is used to subtract the third sub-touch data of adjacent channels for each frame of the third touch data to obtain a second difference value, wherein the third sub-touch data of the channel is a column of data or a row of data in the third touch data; The fifth acquisition submodule is used to subtract the third touch data from the third touch data in multiple frames to obtain the third difference value between the multiple frames of third touch data; The fourth determining submodule is used to determine the type of the touch operation based on the second difference value and the third difference value.
10. The apparatus according to claim 6, characterized in that, The response module includes: The sixth acquisition submodule is used to obtain difference data based on the first touch data and the updated reference data; The fifth determining submodule is used to determine the touch coordinates corresponding to the touch operation based on the difference data; The response submodule is used to respond to touch operations based on the touch coordinates.
11. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the data processing method of any one of claims 1 to 5.
Citation Information
Patent Citations
Touch signal anti-interference processing method, system, chip and household appliance
CN111897449A
Touch screen control method and electronic equipment
CN112540703A