Touch area calculation method and related device

By collecting and expanding the touch difference data and combining it with the regional maximum value to calculate the effective touch area, the problem of inaccurate touch area calculation in the existing technology is solved, and more accurate touch area measurement is achieved.

CN119376559BActive Publication Date: 2025-09-16GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310934987.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2025-09-16
Estimated Expiration
2043-07-27

AI Technical Summary

Technical Problem

In the prior art, the touch area calculation method can only roughly determine a larger touch range and cannot accurately measure the size of the pressed area.

Method used

By collecting the press touch difference data, expanding the first touch area and the second touch area to obtain the touch area to be measured, determining the target node according to the node difference of the node to be measured and the preset threshold, and calculating the effective touch area at the current moment in combination with the area maximum value.

Benefits of technology

Improves the accuracy of touch area calculation, and can more precisely determine the user's effective touch range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376559B_ABST
    Figure CN119376559B_ABST
Patent Text Reader

Abstract

The present application discloses a touch area calculation method and related device, which includes: performing edge expansion processing based on a first touch area and a second touch area to obtain a touch area to be measured; determining at least one target node based on the node difference corresponding to each node to be measured in the touch area to be measured and a preset threshold; determining the first effective touch area corresponding to the current moment based on the at least one target node and the maximum value of the area; obtaining the second effective touch area and the third effective touch area corresponding to two adjacent historical moments; and determining the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area. In this way, the actual effective area value can be obtained by calculating the pressed touch difference data in a specific manner, thereby improving the accuracy of the touch area calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a touch area calculation method and related devices. Background Art

[0002] With the development of electronic devices, more and more users are pressing and touching the touch screen of electronic devices to select text or images in the target area and perform related operations. In this application scenario, electronic devices need to identify the user's effective touch range to provide a more accurate response. The more common method of calculating the touch area is generally to calculate the touch area by counting the number of nodes in the pressed area. However, this method can only roughly determine a larger touch range and cannot accurately measure the area of ​​the pressed area.

[0003] Therefore, a method for calculating the touch area is urgently needed to solve the above problem. Summary of the Invention

[0004] The embodiments of the present application provide a touch area calculation method and related apparatus, which calculate the actual effective area value by calculating the touch pressure difference data in a specific manner, thereby improving the accuracy of touch area calculation.

[0005] In a first aspect, an embodiment of the present application provides a touch area calculation method, which is applied to an electronic device. The method includes:

[0006] Performing edge expansion processing on the first touch area and the second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent the area covered by the touch operation in the vertical direction, the second touch area is used to represent the area covered by the touch operation in the horizontal direction, and the touch area to be measured includes at least one node to be measured;

[0007] Determine the node to be measured whose value is greater than a preset threshold as a target node, wherein the target node includes one or more;

[0008] determining a first effective touch area corresponding to the current moment according to the target node and the area maximum value, wherein the area maximum value is used to represent the farthest distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen;

[0009] Acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment;

[0010] A target effective touch area is determined according to the first effective touch area, the second effective touch area, and the third effective touch area.

[0011] In a second aspect, an embodiment of the present application provides a touch area calculation device, which is applied to an electronic device. The device includes: a determination unit, a processing unit, and an acquisition unit; wherein:

[0012] The processing unit is configured to perform edge expansion processing on the first touch area and the second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent the area covered by the touch operation in the vertical direction, the second touch area is used to represent the area covered by the touch operation in the horizontal direction, and the touch area to be measured includes at least one node to be measured;

[0013] The determining unit is configured to determine the node to be measured that is greater than a preset threshold as a target node, wherein the target node includes one or more;

[0014] The determining unit is further configured to determine a first effective touch area corresponding to a current moment based on the target node and the area maximum value, wherein the area maximum value is used to represent the maximum distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen;

[0015] The acquisition unit is configured to acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment;

[0016] The determining unit is further configured to determine a target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area.

[0017] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps of any method of the first aspect of the embodiment of the present application.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0019] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0020] As can be seen, the embodiments of the present application disclose a touch area calculation method and related device, which include: collecting touch-press difference data; determining a first touch area and a second touch area based on the touch-press difference data; performing edge expansion processing based on the first touch area and the second touch area to obtain a touch area to be measured; determining at least one target node based on the node difference corresponding to each node to be measured and a preset threshold; determining the first effective touch area corresponding to the current moment based on the at least one target node and the maximum value of the area; obtaining the second effective touch area and the third effective touch area corresponding to two adjacent moments of the current moment; and determining the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area. In this way, the accuracy of touch area calculation can be improved by calculating the actual effective area value by calculating the touch-press difference data in a specific manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 1 is a flow chart of a touch area calculation method provided in an embodiment of the present application;

[0023] Figure 2A This is a schematic diagram of a scenario in which a user touches a touch screen of an electronic device, provided in an embodiment of the present application;

[0024] Figure 2B This is a schematic diagram of frame data corresponding to the current moment provided by an embodiment of the present application;

[0025] Figure 3 1 is a schematic structural diagram of a touch area calculation device provided in an embodiment of the present application;

[0026] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0029] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0030] The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch, smart glasses, a smart helmet), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may also be the electronic device in the solution of this application.

[0031] To better understand this application, please refer to Figure 1 , Figure 1 : This is a flow chart of a touch area calculation method provided in an embodiment of the present application:

[0032] Specifically, if Figure 1 As shown:

[0033] S101. Expand a first touch area and a second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent the area covered by a touch operation in a vertical direction, the second touch area is used to represent the area covered by the touch operation in a horizontal direction, and the touch area to be measured includes at least one node to be measured.

[0034] In a possible example, before determining the touch area to be measured, press touch difference data is collected.

[0035] The press touch difference data includes a node difference of at least one node in the frame data at the current moment, and the node difference is used to represent a node change amount of each of the nodes.

[0036] For example, touch-press difference data refers to the change in the touch signal detected and recorded when a user presses on the touch screen of an electronic device. When a user presses on the touch screen, the touch sensor captures the touch signal and converts it into digital data. This data can represent information such as the location, force, and speed of the touch. Touch-press difference data refers to the change in the value, i.e., the difference, obtained by comparing this data at the current moment with the touch state at a previous moment. The touch-press difference data corresponding to each moment corresponds to a frame of data, and each frame of data contains the node difference generated by the user's touch operation at the current moment for each node in at least one node.

[0037] For example, see Figure 2A and Figure 2B , Figure 2A A schematic diagram of a scenario in which a user touches a touch screen of an electronic device provided in this application solution. Figure 2B A schematic diagram of frame data corresponding to the current moment provided by the present application solution.

[0038] Specifically, the user performs a touch operation on the electronic device display screen through a finger, and controls the area covered by the current touch operation with different strengths.

[0039] For example, Figure 2A In the application scenario shown, the user selects a target translation sentence by pressing and touching the touch screen of the electronic device. For example, the current user's touch operation target is to select "Good morning" and the target is to translate it into English.

[0040] Furthermore, the electronic device sensor detects the user's touch operation and collects the frame data corresponding to the touch operation at the current moment, such as Figure 2B As shown in Figure 2. Among them, the node is the smallest unit in the touch unit, that is, Figure 2B Each small square shown.

[0041] For example, Figure 2A Take the scenario as an example, Figure 2B The image shows the current moment's touch difference data for the entire electronic device's touchscreen. The darker areas represent the interpolated touch data corresponding to the user's touch on the target area (i.e., the area containing the word "Good Morning"). The lighter areas represent areas not touched by the user.

[0042] For example, by analyzing the touch-press difference data, the following information can be obtained:

[0043] Position change: The change in touch position can be measured as the difference in touch coordinates. This can help determine the direction and distance the user's finger or stylus has moved on the screen.

[0044] Force changes: Changes in the intensity of the touch signal can reflect changes in the user's pressure. Larger differences may indicate that the user applied more force, while smaller differences may indicate a slight adjustment in the pressure.

[0045] Speed ​​change: The speed at which a touch signal changes can reveal how quickly the user is pressing. Large differences may indicate a fast swipe or drag, while smaller differences may indicate slow or subtle movements.

[0046] Furthermore, a first touch area and a second touch area are determined based on the press touch difference data, wherein the first touch area is used to characterize the area covered by the touch operation in the vertical direction, and the second touch area is used to characterize the area covered by the touch operation in the horizontal direction, and the area is composed of one or more nodes.

[0047] For example, Figure 2A As shown in the figure, when the user's finger touches the touch screen, the touch screen will detect an area value, which reflects the size of the touch area. In actual touch scenarios, when the finger touches the touch screen, it will generate a vertical force, that is, a downward force, and a pressing force along the horizontal axis of the contact surface between the finger and the display screen. These correspond to different touch areas. The electronic device will detect the area value based on the acquired information. Figure 2B The touch pressure difference data shown is used to determine the first touch area and the second touch area.

[0048] Among them, the first touch area is used to characterize the main touch area: it refers to the contact area between the finger and the touch screen in the vertical direction, that is, the height of the touch area. It indicates the actual touch area size of the finger on the screen. In most cases, the touch screen device will use the main touch area as an input signal to interpret the user's instructions or operations. The second touch area is used to characterize the touch area in the horizontal direction: it refers to the size of the contact area between the finger and the touch screen in the horizontal (horizontal) direction, that is, the width of the touch area. This concept is mainly used to describe the size of the horizontal range when the finger slides or touches the screen. It can be used to detect the sliding speed, direction, and horizontal gesture operations of the finger.

[0049] The first touch area and the second touch area are respectively represented by at least one node.

[0050] For example, when a user's finger contacts the touchscreen, the edge of the finger also exerts pressure on the touchscreen. Due to the smaller contact area, the change in node difference is less noticeable. However, this pressed area still falls within the current pressed touch area. Therefore, the electronic device performs a horizontal and vertical expansion process based on the first and second touch areas determined in step S102 to obtain a new pressed touch area, i.e., the touch area to be tested.

[0051] The touch pressing area to be tested includes at least one node to be tested, and the nodes to be tested include but are not limited to nodes corresponding to the first touch area and the second touch area and nodes after edge expansion processing. Each node to be tested corresponds to a node difference, such as Figure 2B The value in each grid shown is the node difference corresponding to the node represented by the current grid.

[0052] S102: Determine the node to be measured that is greater than a preset threshold as a target node, wherein the target node includes one or more nodes.

[0053] For example, the electronic device determines at least one target node based on the magnitude relationship between the node difference of each node to be measured and a preset threshold. In the present application, the preset threshold can be 30 for comparison. In actual scenarios, different preset thresholds can be determined based on actual usage habits.

[0054] For example, if there is a node to be measured that is greater than a preset threshold, the current node is determined to be a valid node for calculation, that is, the node is determined to be the target node. If the node to be measured is less than or equal to the preset threshold, it indicates that there may be an accidental touch or invalid touch in the current area, and the node is not included in the calculation scope.

[0055] Exemplarily, each node to be tested that is greater than a preset threshold is determined as a target node.

[0056] S103. Determine a first effective touch area corresponding to the current moment based on the at least one target node and the area maximum value, wherein the area maximum value is used to represent the farthest distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen.

[0057] Illustratively, in the solution of the present application, the maximum value of the region is used as a standard reference, and the first effective touch area corresponding to the current moment is determined by comparing the target node with the maximum value of the region.

[0058] It is important to note that the specific design and technology of touch screens may vary, so the maximum distance between the touch point and the controller may vary. Manufacturers usually provide relevant parameters of the touch screen in the product specifications so that users can understand the performance and limitations of the device.

[0059] S104: Acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment.

[0060] S105: Determine a target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area.

[0061] For example, the second and third effective touch areas are both calculated using the process described in steps S101-S105 above. Since the area values ​​obtained through steps S101-S105 are unstable and subject to jitter, it is considered to smooth the historical area values ​​to obtain a more accurate target effective touch area. That is, the electronic device obtains historical effective touch area data at adjacent moments, smooths them according to the corresponding smoothing coefficients at different moments, and then accumulates them to obtain the final target effective touch area.

[0062] As can be seen, the embodiment of the present application discloses a touch area calculation method. The electronic device performs edge expansion processing on the first touch area and the second touch area to obtain the touch area to be measured; determines at least one target node based on the node difference corresponding to each node to be measured and a preset threshold; determines the first effective touch area corresponding to the current moment based on the at least one target node and the maximum value of the area; obtains the second effective touch area and the third effective touch area corresponding to two moments adjacent to the current moment; and determines the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area. In this way, the actual effective area value can be obtained by calculating the pressed touch difference data in a specific manner, thereby improving the accuracy of touch area calculation.

[0063] In a possible example, the edge expansion processing includes longitudinal edge expansion processing and transverse edge expansion processing; the edge expansion processing of the first touch area and the second touch area to obtain the touch area to be tested may include the following steps: setting the edge expansion node value; performing the longitudinal edge expansion processing according to the edge expansion node value and the first touch area to obtain the first area to be tested; performing the transverse edge expansion processing according to the edge expansion node and the second touch area to obtain the second area to be tested; combining the first area to be tested and the second area to be tested to obtain the touch area to be tested.

[0064] For example, a touch screen device has a predefined touch-sensitive area where the user needs to place a finger or stylus to perform a touch operation. However, in some cases, the user may accidentally touch or inadvertently perform a touch operation on the edge area, which may result in unexpected responses or operational difficulties.

[0065] For example, to address this issue, the present application employs a touch area expansion process. Specifically, an additional inactive area is added around the touch-sensitive area and treated as part of the effective touch area. When a user touches the edge of the touch-sensitive area, the system maps the touch to the effective touch area and performs the corresponding response or operation.

[0066] Exemplarily, in the present application, the above-mentioned expansion node value is preset to 1, and the edge expansion processing is performed along the horizontal and vertical directions respectively with the expansion node value being 1. The edge of the current first touch area is expanded by one node along the vertical direction, and the edge of the second touch area is expanded by one node along the horizontal direction, to obtain a new touch area, namely the touch area to be tested.

[0067] As can be seen, in the embodiments of the present application, by expanding the touch area, the occurrence of false touches can be reduced, a larger touchable area can be provided, and thus the user experience can be improved. This edge expansion processing technology is commonly used in modern smartphones, tablets, and other touch screen devices to enhance the accuracy and reliability of operations.

[0068] In one possible example, the touch screen is divided into at least one area, and the area is used for sensor detection and positioning of the user's press; before determining the first effective touch area corresponding to the current moment based on the target node and the area maximum value, the above method also includes the following steps: obtaining sensor data of the electronic device; determining the signal strength value corresponding to each of the areas based on the sensor data, wherein the signal strength value is used to characterize the touch intensity of the user; and determining the maximum signal strength value as the area maximum value.

[0069] For example, in sensor technology, the touch screen of an electronic device can be divided into at least one region or channel for detecting and locating user presses. The regional maximum value indicates the channel or region with the strongest touch intensity or regional value among all channels or regions. The single-channel distance indicates the distance between the user's press location and the channel or region.

[0070] It can be seen that in the embodiment of the present application, the electronic device can obtain sensor data and determine the maximum value of the area based on the sensor data, thereby using the maximum value of the area as a standard to calculate the target effective touch area.

[0071] In one possible example, the method may further include the following steps: performing cumulative calculation based on the node difference corresponding to each target node in the at least one target node to obtain a first cumulative value; determining the area value corresponding to the current moment based on the ratio between the first cumulative value and the regional maximum value; and determining the first effective touch area based on the area value corresponding to the current moment and a first smoothing coefficient.

[0072] Exemplarily, the electronic device determines at least one target node in step S102 and accumulates the node difference corresponding to each target node to obtain a corresponding accumulated sum, namely, a first accumulated value.

[0073] Furthermore, the area value corresponding to the current moment is determined based on the ratio of the first accumulated value to the regional maximum value. At this point, the area value is used to determine the true effective touch range of the touch area. The main significance of this effective range is that the effective press distance is defined as the regional maximum value, and the ratio of other nodes to the regional maximum value is used to determine the true size of the distance occupied by other nodes.

[0074] Furthermore, a first effective touch area is determined according to the product of the area value corresponding to the current moment and the first smoothing coefficient.

[0075] As can be seen, through the method proposed in this example, the electronic device uses the maximum area value as the effective touch pressure of the standard single-channel distance, and then compares the cumulative sum of the node differences of the target node with it to determine the true value of the distance occupied by other nodes. Furthermore, smoothing is performed based on the product of the true value and its coefficient to obtain the first effective touch area.

[0076] In one possible example, the method may further include the following steps: determining the first effective touch area corresponding to the current moment based on the target node and the area maximum value: determining the area maximum value as the standard value; respectively calculating the ratio between the node difference corresponding to each target node and the standard value, wherein the ratio is used to characterize the effective pressing range of the area corresponding to each target node to the area corresponding to the standard value; and obtaining the first effective touch area based on the cumulative sum of the first smoothing coefficient and the ratio corresponding to each target node.

[0077] For example, by using the regional maximum as a criterion, a valid press by the user can be identified as a touch operation within the single channel distance corresponding to the regional maximum. If the user presses too far from the channel or region corresponding to the regional maximum, the system may consider it an invalid press.

[0078] For example, determining the ratio of the node difference value corresponding to each node to the standard value can help eliminate some erroneous operations or abnormal situations, ensuring that only presses within a range close to the regional maximum value are considered valid touch operations. This helps improve the accuracy and reliability of touch location in touchscreen devices.

[0079] For example, if the channel distance where the regional maximum value is located is N, and the ratio of another node to the regional maximum value is 0.5, it means that the effective pressing range of this node is also half of the channel area. Based on this principle, the effective pressing ranges of all nodes in the area are accumulated to obtain the final touch area.

[0080] It can be seen that through the method proposed in this example, the area maximum value is used as the effective press of the standard single-channel distance, and the ratio of the node difference corresponding to each node to the area maximum value is determined respectively, that is, the distance between the area where each node is located and the area corresponding to the area maximum value, so as to determine the actual effective pressing area ratio of each node, and then multiply the actual effective pressing area of ​​each target node and its corresponding coefficient to obtain the first effective touch area.

[0081] In a possible example, before determining the target effective touch area based on the first effective touch area, the second effective touch area and the third effective touch area, the above method may further include the following steps: setting the first smoothing coefficient, the second smoothing coefficient and the third smoothing coefficient corresponding to the first effective touch area, the second effective touch area and the third effective touch area respectively.

[0082] For example, the smoothing coefficient corresponding to different moments is an empirical value obtained by statistically analyzing the ratio of the calculated value to the actual physical value. Multiple statistical data and user usage data can be used to obtain a more accurate smoothing coefficient.

[0083] It can be seen that in the embodiment of the present application, the electronic device determines the smoothing coefficients corresponding to the effective touch areas calculated at historical moments based on relevant data during the actual use of the electronic device, and can more accurately determine the impact of the effective touch areas calculated at historical moments on the effective touch area at the current moment, thereby being more conducive to the accuracy of the calculation of the target effective touch area corresponding to the current moment.

[0084] In one possible example, the target effective touch area value is determined based on the first effective touch area, the second effective touch area and the third effective touch area. The method may also include the following steps: calculating the first touch area value based on the first effective touch area and the first smoothing coefficient; calculating the second touch area value based on the second effective touch area and the second smoothing coefficient; calculating the third touch area value based on the third effective touch area and the third smoothing coefficient; and obtaining the target effective touch area based on the first touch area value, the second touch area value and the third touch area value.

[0085] For example, in the present application, the calculation formula for the final target effective touch area is:

[0086] TouchMajor = (curTouchMajor*SMOOTH_CUR_COOR_RATIO+lastTouchMajor*

[0087] SMOOTH_LAST_COOR_RATIO+lastLastRxTouchMajor*SMOOTH_LLAST_COOR_RATIO) / SMOOTH_BASE_COOR_RATIO.

[0088] TouchMajor represents the target effective touch area; curTouchMajor represents the current touch area, also known as the first effective touch area; lastTouchMajor and lastLastRxTouchMajor represent the effective touch areas corresponding to the two historical moments adjacent to the current moment. SMOOTH_CUR_COOR_RATIO, SMOOTH_LAST_COOR_RATIO, and SMOOTH_LLAST_COOR_RATIO represent the first, second, and third smoothing coefficients, respectively; and SMOOTH_BASE_COOR_RATIO represents the cumulative sum of these three smoothing coefficients.

[0089] It can be seen that in the embodiment of the present application, the electronic device improves the accuracy of touch area calculation by integrating the effective touch area at historical moments into the actual effective area value obtained by calculating the press touch difference data in a specific manner.

[0090] The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process of the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0091] The embodiment of the present application can divide the functional units of the electronic device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0092] and Figure 1 For details, please refer to Figure 3 , Figure 3 FIG. 1 is a structural diagram of a touch area calculation device provided in an embodiment of the present application. Figure 3 As shown, the touch area calculation device 300 includes: a processing unit 301, a determination unit 302 and an acquisition unit 303, wherein:

[0093] The processing unit 301 is configured to perform edge expansion processing on the first touch area and the second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent the area covered by the touch operation in the vertical direction, the second touch area is used to represent the area covered by the touch operation in the horizontal direction, and the touch area to be measured includes at least one node to be measured;

[0094] The determining unit 302 is configured to determine the node to be measured that is greater than a preset threshold as a target node, wherein the target node includes one or more;

[0095] The determining unit 302 is further configured to determine a first effective touch area corresponding to the current moment based on the target node and the area maximum value, wherein the area maximum value is used to represent the maximum distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen;

[0096] The acquiring unit 303 is configured to acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment;

[0097] The determining unit 302 is further configured to determine a target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area.

[0098] As can be seen, the embodiment of the present application discloses a touch area calculation device. The electronic device uses a processing unit to perform edge expansion processing based on the first touch area and the second touch area to obtain a touch area to be measured; the determination unit determines at least one target node based on the node difference corresponding to each node to be measured and a preset threshold; the determination unit determines the first effective touch area corresponding to the current moment based on the at least one target node and the maximum value of the area; the acquisition unit obtains the second effective touch area and the third effective touch area corresponding to two adjacent moments of the current moment; the determination unit determines the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area. In this way, the actual effective area value can be obtained by calculating the pressed touch difference data in a specific manner, thereby improving the accuracy of the touch area calculation.

[0099] In a possible example, the edge expansion process includes a longitudinal edge expansion process and a transverse edge expansion process;

[0100] The first touch area and the second touch area are expanded to obtain the touch area to be measured. The processing unit 301 specifically performs the following steps:

[0101] Set the edge expansion node value;

[0102] Performing the longitudinal edge expansion process according to the edge expansion node value and the first touch area to obtain a first area to be measured;

[0103] Performing the lateral edge expansion process according to the edge expansion node and the second touch area to obtain a second area to be measured;

[0104] The first to-be-tested area and the second to-be-tested area are combined to obtain the to-be-tested touch area.

[0105] In a possible example, the touch screen is divided into at least one area, and the area is used for a sensor to detect and locate a press of the user;

[0106] Before determining the first effective touch area corresponding to the current moment according to the target node and the area maximum value, the determining unit 302 specifically performs the following steps:

[0107] Acquiring sensor data of the electronic device;

[0108] Determining a signal strength value corresponding to each of the areas according to the sensor data, wherein the signal strength value is used to represent the touch intensity of the user;

[0109] The maximum signal intensity value is determined as the regional maximum value.

[0110] In a possible example, the first effective touch area corresponding to the current moment is determined according to the target node and the area maximum value, and the determining unit 302 specifically performs the following steps:

[0111] Performing cumulative calculation processing on the node difference value corresponding to each target node in the at least one target node to obtain a first cumulative value;

[0112] determining an area value corresponding to the current moment according to a ratio between the first accumulated value and the regional maximum value;

[0113] The first effective touch area is determined according to the area value corresponding to the current moment and a first smoothing coefficient.

[0114] In a possible example, the first effective touch area corresponding to the current moment is determined according to the target node and the area maximum value, and the determining unit 302 specifically performs the following steps:

[0115] Determine the maximum value of the region as a standard value;

[0116] Calculating the ratio between the node difference value corresponding to each target node and the standard value respectively, wherein the ratio is used to represent the effective pressing range of the area corresponding to each target node to the area corresponding to the standard value;

[0117] The first effective touch area is obtained according to the cumulative sum of the first smoothing coefficient and the ratio corresponding to each of the target nodes.

[0118] In a possible example, before determining the target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area, the determining unit 302 specifically performs the following steps:

[0119] The first smoothing coefficient, the second smoothing coefficient, and the third smoothing coefficient corresponding to the first effective touch area, the second effective touch area, and the third effective touch area are set respectively.

[0120] In a possible example, the target effective touch area value is determined according to the first effective touch area, the second effective touch area, and the third effective touch area. The determining unit 302 specifically performs the following steps:

[0121] Calculating a first touch area value according to the first effective touch area and the first smoothing coefficient;

[0122] Calculating a second touch area value according to the second effective touch area and the second smoothing coefficient;

[0123] Calculating a third touch area value according to the third effective touch area and the third smoothing coefficient;

[0124] The target effective touch area is obtained according to the first touch area value, the second touch area value, and the third touch area value.

[0125] With the above Figure 1 For details on the embodiment shown, please refer to Figure 4 , Figure 4 is a structural diagram of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor.

[0126] In one possible example, the one or more programs include instructions for executing the following steps:

[0127] Collecting touch-press difference data, wherein the touch-press difference data includes a node difference of at least one node in the current moment frame data, and the node difference is used to represent a node change amount of each node;

[0128] Determining a first touch area and a second touch area based on the touch pressure difference data, wherein the first touch area is used to represent the area covered by the touch operation in the vertical direction, and the second touch area is used to represent the area covered by the touch operation in the horizontal direction, and the area is composed of one or more nodes;

[0129] Performing edge expansion processing based on the first touch area and the second touch area to obtain a touch area to be measured, wherein the edge expansion processing is used to incorporate peripheral position information of the area covered by the touch operation into calculation, and the touch area to be measured includes at least one node to be measured;

[0130] Determine at least one target node according to the node difference value corresponding to each of the nodes to be measured and a preset threshold value, wherein the target node is the node to be measured whose node difference value is greater than the preset threshold value;

[0131] determining a first effective touch area corresponding to the current moment according to the at least one target node and the area maximum value, wherein the area maximum value is used to represent the farthest distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen;

[0132] Acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment;

[0133] A target effective touch area is determined according to the first effective touch area, the second effective touch area, and the third effective touch area.

[0134] As can be seen, the embodiment of the present application discloses a touch area calculation device, in which the electronic device collects press touch difference data; determines a first touch area and a second touch area based on the press touch difference data; performs edge expansion processing based on the first touch area and the second touch area to obtain a touch area to be measured; determines at least one target node based on the node difference corresponding to each node to be measured and a preset threshold; determines the first effective touch area corresponding to the current moment based on the at least one target node and the maximum value of the area; obtains the second effective touch area and the third effective touch area corresponding to two adjacent moments of the current moment; and determines the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area. In this way, the accuracy of touch area calculation can be improved by calculating the press touch difference data in a specific manner to obtain the actual effective area value.

[0135] In a possible example, the edge expansion process includes a longitudinal edge expansion process and a transverse edge expansion process;

[0136] The first touch area and the second touch area are expanded to obtain the touch area to be tested. The above program includes instructions for executing the following steps:

[0137] Set the edge expansion node value;

[0138] Performing the longitudinal edge expansion process according to the edge expansion node value and the first touch area to obtain a first area to be measured;

[0139] Performing the lateral edge expansion process according to the edge expansion node and the second touch area to obtain a second area to be measured;

[0140] The first to-be-tested area and the second to-be-tested area are combined to obtain the to-be-tested touch area.

[0141] In a possible example, the touch screen is divided into at least one area, and the area is used for a sensor to detect and locate a press of the user;

[0142] Before determining the first effective touch area corresponding to the current moment based on the target node and the area maximum value, the program includes instructions for executing the following steps:

[0143] Acquiring sensor data of the electronic device;

[0144] Determining a signal strength value corresponding to each of the areas according to the sensor data, wherein the signal strength value is used to represent the touch intensity of the user;

[0145] The maximum signal intensity value is determined as the regional maximum value.

[0146] In a possible example, the first effective touch area corresponding to the current moment is determined based on the target node and the area maximum value, and the program includes instructions for executing the following steps:

[0147] Performing cumulative calculation processing on the node difference value corresponding to each target node in the at least one target node to obtain a first cumulative value;

[0148] determining an area value corresponding to the current moment according to a ratio between the first accumulated value and the regional maximum value;

[0149] The first effective touch area is determined according to the area value corresponding to the current moment and a first smoothing coefficient.

[0150] In a possible example, the first effective touch area corresponding to the current moment is determined based on the target node and the area maximum value, and the program includes instructions for executing the following steps:

[0151] Determine the maximum value of the region as a standard value;

[0152] Calculating the ratio between the node difference value corresponding to each target node and the standard value respectively, wherein the ratio is used to represent the effective pressing range of the area corresponding to each target node to the area corresponding to the standard value;

[0153] The first effective touch area is obtained according to the cumulative sum of the first smoothing coefficient and the ratio corresponding to each of the target nodes.

[0154] In a possible example, before determining the target effective touch area based on the first effective touch area, the second effective touch area, and the third effective touch area, the program includes instructions for executing the following steps:

[0155] The first smoothing coefficient, the second smoothing coefficient, and the third smoothing coefficient corresponding to the first effective touch area, the second effective touch area, and the third effective touch area are set respectively.

[0156] In one possible example, the target effective touch area value is determined based on the first effective touch area, the second effective touch area, and the third effective touch area. The program includes instructions for executing the following steps:

[0157] Calculating a first touch area value according to the first effective touch area and the first smoothing coefficient;

[0158] Calculating a second touch area value according to the second effective touch area and the second smoothing coefficient;

[0159] Calculating a third touch area value according to the third effective touch area and the third smoothing coefficient;

[0160] The target effective touch area is obtained according to the first touch area value, the second touch area value, and the third touch area value.

[0161] An embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange. The computer program includes execution instructions for executing some or all of the steps of any one of the touch area calculation methods described in the above-mentioned touch area calculation method embodiments. The computer includes an electronic terminal device.

[0162] An embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to perform some or all of the steps of any touch area calculation method described in the above method embodiments. The computer program product can be a software installation package.

[0163] It should be noted that for the sake of simplicity, each of the aforementioned embodiments of the touch area calculation method is described as a series of actions. However, those skilled in the art should be aware that this application is not limited by the order of the actions described, as certain steps can be performed in a different order or simultaneously. Furthermore, those skilled in the art should also be aware that the embodiments described in this specification are preferred embodiments, and the actions involved are not necessarily required by this application.

[0164] The embodiments of the present application have been described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of a touch area calculation method and related devices of the present application. The description of the above embodiments is intended only to facilitate understanding of the method and its core concept of the present application. Furthermore, those skilled in the art will appreciate that variations in the specific implementation methods and scope of application may occur based on the concepts of the touch area calculation method and related devices of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

[0165] When integrated, the electronic device may include a processing module, a storage module, and a communication module. The processing module may be used to control and manage the electronic device's operations. For example, it may be used to support the electronic device in executing the steps performed by the processing unit 301, the determining unit 302, and the acquiring unit 303. The storage module may be used to support the electronic device in executing and storing program code and data. The communication module may be used to support communication between the electronic device and other devices.

[0166] The processing module may be a processor or a controller. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.

[0167] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0168] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.

[0169] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0170] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0172] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0173] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0174] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0175] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0176] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A touch area calculation method, applied to electronic equipment, characterized in that: include: Collecting touch-press difference data, the touch-press difference data including a node difference of at least one node in the current moment frame data, the node difference being used to represent a node change amount of each of the nodes; Performing edge expansion processing on the first touch area and the second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent the area covered by the touch operation in the vertical direction, the second touch area is used to represent the area covered by the touch operation in the horizontal direction, and the touch area to be measured includes at least one node to be measured; Determine the node to be measured whose node difference is greater than a preset threshold as a target node, wherein the target node includes one or more; determining a first effective touch area corresponding to the current moment according to the target node and the area maximum value, wherein the area maximum value is used to represent the farthest distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen; Acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment; A target effective touch area is determined according to the first effective touch area, the second effective touch area, and the third effective touch area.

2. The method according to claim 1, characterized in that The edge expansion process includes longitudinal edge expansion process and transverse edge expansion process; The step of performing edge expansion processing on the first touch area and the second touch area to obtain the touch area to be tested includes: Set the edge expansion node value; Performing the longitudinal edge expansion process according to the edge expansion node value and the first touch area to obtain a first area to be measured; Performing the lateral edge expansion process according to the edge expansion node and the second touch area to obtain a second area to be measured; The first to-be-tested area and the second to-be-tested area are combined to obtain the to-be-tested touch area.

3. The method according to claim 1, characterized in that The touch screen is divided into at least one area, and the area is used for the sensor to detect and locate the user's pressing position; Before determining the first effective touch area corresponding to the current moment based on the target node and the area maximum value, the method further includes: Get sensor data; Determining a signal strength value corresponding to each of the areas according to the sensor data, wherein the signal strength value is used to represent the touch intensity of the user; The largest signal strength value is determined as the regional maximum value.

4. The method according to claim 3, characterized in that The determining, based on the target node and the maximum value of the area, a first effective touch area corresponding to the current moment includes: Performing cumulative calculation processing on the node difference corresponding to each target node in at least one of the target nodes to obtain a first cumulative value; determining an area value corresponding to the current moment according to a ratio between the first accumulated value and the regional maximum value; The first effective touch area is determined according to the area value corresponding to the current moment and a first smoothing coefficient.

5. The method according to claim 3, characterized in that The determining, based on the target node and the maximum value of the area, a first effective touch area corresponding to the current moment includes: Determine the maximum value of the region as a standard value; Calculating the ratio between the node difference value corresponding to each target node and the standard value respectively, wherein the ratio is used to represent the effective pressing range of the area corresponding to each target node to the area corresponding to the standard value; The first effective touch area is obtained according to the cumulative sum of the first smoothing coefficient and the ratio corresponding to each of the target nodes.

6. The method according to claim 4 or 5, characterized in that Before determining the target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area, the method further includes: The first smoothing coefficient, the second smoothing coefficient, and the third smoothing coefficient corresponding to the first effective touch area, the second effective touch area, and the third effective touch area are set respectively.

7. The method according to claim 6, characterized in that The determining a target effective touch area value according to the first effective touch area, the second effective touch area, and the third effective touch area includes: Calculating a first touch area value according to the first effective touch area and the first smoothing coefficient; Calculating a second touch area value according to the second effective touch area and the second smoothing coefficient; Calculating a third touch area value according to the third effective touch area and the third smoothing coefficient; The target effective touch area is obtained according to the first touch area value, the second touch area value, and the third touch area value.

8. A touch area calculation device, applied to electronic equipment, characterized in that: The device includes: a determination unit, a processing unit and an acquisition unit; wherein, The processing unit is configured to collect touch-press difference data, the touch-press difference data including a node difference of at least one node in the current moment frame data, the node difference being used to represent a node change amount of each of the nodes; perform edge expansion processing on the first touch area and the second touch area to obtain a touch area to be measured, wherein the first touch area is used to represent an area covered by the touch operation in the vertical direction, and the second touch area is used to represent an area covered by the touch operation in the horizontal direction, and the touch area to be measured includes at least one node to be measured; The determining unit is configured to determine the node to be measured whose node difference is greater than a preset threshold as a target node, wherein the target node includes one or more nodes; The determining unit is further configured to determine a first effective touch area corresponding to a current moment based on the target node and the area maximum value, wherein the area maximum value is used to represent the maximum distance between the touch point and the channel where the controller of the touch screen is located when the user performs the touch operation on the touch screen; The acquisition unit is configured to acquire a second effective touch area and a third effective touch area respectively corresponding to two historical moments adjacent to the current moment; The determining unit is further configured to determine a target effective touch area according to the first effective touch area, the second effective touch area, and the third effective touch area.

9. An electronic device, characterized in that: The system comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Input reception device, region control method, information recording medium, and program

    CN101627351A

  • Touch area positioning method and device, terminal equipment and storage medium

    CN115629674A