Equipment control method and device and electronic equipment
By detecting the touch range of multi-touch operations in electronic devices, identifying and avoiding false triggering, the problem of easy mistouching of multi-finger touch operations is solved, and the user experience and operation accuracy are improved.
Patent Information
- Application Number
- CN202310963412.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2025-02-14
AI Technical Summary
In electronic devices, multi-finger touch operation can easily lead to false triggering and affect user experience.
After detecting the multi-touch operation, the touch range of each touch point is obtained and the error touch range condition is determined. If it is satisfied, it is determined that the operation is an error operation.
It effectively avoids the mistriggering of multi-touch operations, improves the user experience, and ensures the accuracy and reliability of operations.
Smart Images

Figure CN119440293A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and more specifically, to a device control method, apparatus, and electronic device. Background Art
[0002] When an electronic device is equipped with a touch screen, a multi-finger touch operation can be used to trigger the electronic device to perform a corresponding operation. However, the multi-finger touch operation may still be triggered by mistake, which results in a need to improve the user experience. Summary of the invention
[0003] In view of the above problems, the present application proposes a device control method, apparatus and electronic device to improve the above problems.
[0004] In a first aspect, the present application provides a device control method, which is applied to an electronic device, and the method includes: in response to detecting a multi-touch operation, obtaining the touch range of each of the multiple touch points corresponding to the multi-touch operation; if the touch range of at least one touch point meets the erroneous touch range condition, determining that the multi-touch operation is an erroneous operation.
[0005] In a second aspect, the present application provides a device control device that runs on an electronic device, the device comprising: a touch range acquisition unit, for acquiring the touch range of each of multiple touch points corresponding to the multi-touch operation in response to detecting a multi-touch operation; a touch identification unit, for determining that the multi-touch operation is an erroneous operation if the touch range of at least one touch point meets an erroneous touch range condition.
[0006] In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium storing a program code executable by a processor, wherein the computer-readable storage medium includes the stored program code, wherein the above method is executed when the program code is run.
[0008] The present application provides a device control method, apparatus, and electronic device. After detecting a multi-touch operation, the touch ranges of the multiple touch points corresponding to the multi-touch operation can be first obtained, and then the touch ranges can be detected. When it is detected that the touch range of at least one touch point meets the error touch range condition, the multi-touch operation is determined to be an error operation. Thus, through the above method, when a multi-touch operation is detected, the touch range of at least one touch point can be further combined to identify whether the multi-touch operation is an error operation, so that when it is detected that the touch range of at least one touch point meets the error touch range condition, the multi-touch operation is determined to be an error operation, and the control behavior corresponding to the multi-touch operation will not be triggered. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flow chart of a device control method proposed in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram showing multiple touch points in an embodiment of the present application is shown;
[0012] Figure 3 A schematic diagram showing a first direction and a second direction in an embodiment of the present application is shown;
[0013] Figure 4 A flow chart of a device control method proposed in another embodiment of the present application is shown;
[0014] Figure 5 A schematic diagram of the upper half and the top of an embodiment of the present application is shown;
[0015] Figure 6 A flow chart of a device control method proposed in another embodiment of the present application is shown;
[0016] Figure 7 A flow chart of a device control method proposed in another embodiment of the present application is shown;
[0017] Figure 8 A flow chart of a device control method proposed in another embodiment of the present application is shown;
[0018] Fig. 9 A structural block diagram of a device control device proposed in an embodiment of the present application is shown;
[0019] Fig.10 A structural block diagram of an electronic device for executing a device control method according to an embodiment of the present application is shown;
[0020] Fig.11 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the device control method according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] When the electronic device is equipped with a touch screen, a multi-finger touch operation can be used to trigger the electronic device to perform a corresponding operation. For example, a multi-finger touch operation can be used to trigger the electronic device to perform a screenshot operation.
[0023] However, there are still cases of false triggering in the related multi-finger touch operations, which results in the need to improve the user experience. Among them, for electronic devices, the touch display screen (for example, a capacitive touch screen) includes a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data collected from the transmitting channel and the receiving channel is mutual capacitance data. Currently, mutual capacitance data is usually used to determine whether the touch object is in a pressed state, whether the touch object is sliding, or whether the touch object has ended touching. Therefore, when the user attaches the screen to the ear or puts it in a pocket, the electronic device may also recognize that there is a touch operation, resulting in misrecognition.
[0024] Therefore, the inventors have proposed a device control method, apparatus, and electronic device in the present application. After detecting a multi-touch operation, the touch ranges of the multiple touch points corresponding to the multi-touch operation can be first obtained, and then the touch ranges can be detected. When it is detected that the touch range of at least one touch point meets the false touch range condition, the multi-touch operation is determined to be a false operation. Thus, through the above method, when a multi-touch operation is detected, it is possible to further identify whether the multi-touch operation is a false operation in combination with the touch range of at least one touch point, so that when it is detected that the touch range of at least one touch point meets the false touch range condition, the multi-touch operation is determined to be a false operation, and the control behavior corresponding to the multi-touch operation will not be triggered.
[0025] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0026] See also Figure 1 The present application provides a device control method, which is applied to an electronic device, and the method includes:
[0027] S110: In response to detecting a multi-touch operation, acquiring touch ranges of respective touch points corresponding to the multi-touch operation.
[0028] In the embodiment of the present application, it can be determined that a multi-touch operation is detected when multiple independent areas on the screen are touched synchronously. The synchronous touch can be understood as multiple independent areas being touched simultaneously, or the time difference between the multiple independent areas being touched is within a specified time difference range. In the embodiment of the present application, multiple independent areas can be understood as areas that are not connected to each other. For example, Figure 2 As shown, when it is detected that the position 10, the position 11 and the position 12 on the screen are touched simultaneously, it can be determined that a multi-touch operation is detected. Among them, the position 10, the position 11 and the position 12 are independent of each other and are not connected.
[0029] In the embodiment of the present application, the multi-touch operation can be implemented in a variety of ways. For example, the multi-touch operation can include a two-touch operation, a three-touch operation, or a four-touch operation. In this case, when a multi-touch operation is detected, the number of touch points corresponding to the multi-touch operation can be determined first, and when the number of touch points meets the number threshold, the touch ranges of the multiple touch points corresponding to the multi-touch operation are obtained.
[0030] The quantity threshold may be manually configured by a user of the electronic device, or may be automatically configured by the electronic device according to actual conditions.
[0031] Optionally, a quantity threshold configuration interface may be configured in the electronic device, in which the quantity threshold configuration interface provides the number of touch points for the user to select, and the user may select the target quantity threshold according to his or her needs.
[0032] Optionally, the electronic device may determine the target quantity threshold value based on the currently enabled touch operation. It should be noted that although the electronic device itself may support multiple multi-touch operations, not every multi-touch operation is in an enabled state. Among them, the multi-touch operation being in an enabled state can be understood as the existence of at least one program in the electronic device that configures a corresponding control behavior for the multi-touch operation. Correspondingly, if no program in the electronic device configures a corresponding control behavior for a multi-touch operation, then the multi-touch operation can be understood as being in a non-enabled state.
[0033] As a method, a multi-touch operation status record file can be stored in the electronic device. In the multi-touch operation status record file, the status of each multi-touch operation can be recorded. The status can be enabled or not enabled. In this way, when the electronic device needs to configure the target quantity threshold, it can first read the multi-touch operation status record file, and then obtain the multi-touch operation whose corresponding status is enabled recorded in the multi-touch operation status record file, and then use the multi-touch operation with the smallest number of touch points in the multi-touch operation whose corresponding status is enabled as the target multi-touch operation, and use the number of touch points corresponding to the target multi-touch operation as the target quantity threshold.
[0034] For example, it is shown in Table 1 below:
[0035] ID Operation Type state 1 Two-point touch operation Enable 2 Three-point touch operation Enable 3 Four-point touch operation Enable
[0036] Table 1
[0037] As shown in Table 1 above, the multi-touch operation recorded in the multi-touch operation status record file may include the contents shown in the above table. Among them, the electronic device can detect that the status of the two-point touch operation, the three-point touch operation and the four-point touch operation are all enabled, and then the number of touch points of the two-point touch operation (target multi-touch operation) is used as the target number threshold, that is, the target number threshold is 2.
[0038] Furthermore, if the state switching of each multi-touch operation recorded in the multi-touch operation state record file is as shown in Table 2 below:
[0039] ID Operation Type state 1 Two-point touch operation Not enabled 2 Three-point touch operation Enable 3 Four-point touch operation Enable
[0040] Table 2
[0041] As shown in Table 2 above, the state corresponding to the two-point touch operation is switched from enabled in Table 1 to not enabled. In this case, the target multi-touch operation obtained is a three-point touch operation, and the number of touch points of the three-point touch operation is used as the target number threshold, that is, the target number threshold is 3.
[0042] Among them, the multi-touch operation can be performed by a touch object, which can be a user's finger or a stylus. Whether it is a user's finger or a stylus, it will occupy a certain area when touching the screen. Among them, the touch range of each of the multiple touch points of the multi-touch operation represents the size of the area occupied by each of the multiple touch objects that perform the multi-touch operation on the screen. For example, taking the multi-touch operation performed by fingers as an example, in the case of performing the multi-touch operation by fingers, the multi-touch operation can also be understood as a multi-finger touch operation, in which each finger has a certain touch range when in contact with the screen.
[0043] As an approach, the touch range of the touch point includes at least one of a touch width or a touch area.
[0044] The touch width may be determined according to the maximum distance of the area included in the touch point in a specified direction. The area included in the touch point may be understood as the area occupied when the touch object acting on the touch point contacts the screen. The specified direction may be at least one of a first direction and a second direction. The first direction is the direction from the top to the bottom of the screen, or may be the direction from the bottom to the top of the screen. The second direction is a direction perpendicular to the first direction. For example, Figure 3 As shown, the first direction and the second direction can be as Figure 3 Optionally, when calculating the touch width of a touch point, the electronic device may use the maximum distance of the area included in the touch point in the first direction as the touch width of the touch point, or may use the maximum distance of the area included in the touch point in the second direction as the touch width of the touch point, or may compare the maximum distance in the first direction and the maximum distance in the second direction and use the larger one of the maximum distance in the first direction and the maximum distance in the second direction as the touch width of the touch point.
[0045] The touch area can be understood as the area of the region included by the touch point. Optionally, the region included by the touch point can be an ellipse, and the area of the ellipse can be used as the touch range corresponding to the touch point.
[0046] S120: If the touch range of at least one touch point satisfies the erroneous touch range condition, determining that the multi-touch operation is an erroneous operation.
[0047] It should be noted that although an electronic device can also recognize a touch operation through an object other than a finger or a stylus, the size of the area occupied by an object other than a finger or a stylus when in contact with the screen is different from the size of the area occupied by a finger or a stylus when touching the screen. Among them, the false touch range condition is a condition for identifying whether the touch object that performs a multi-touch operation is a finger or a stylus. Among them, when it is determined that the touch object that performs a multi-touch operation is not a finger or a stylus, the multi-touch operation is determined to be a false operation.
[0048] As shown in the foregoing content, the touch range may include multiple implementations. In this case, when the touch range may have multiple implementations, the false touch range condition may also have multiple implementations.
[0049] As one mode, the touch range includes the touch width. In this mode, the false touch range condition may include: the touch width is greater than a specified width threshold. As another mode, the touch range includes the touch area. In this mode, the false touch range condition may include: the touch area is greater than a specified area threshold. As another mode, the touch range includes the touch width and the touch area. In this mode, the false touch range condition may include: the touch width is greater than a specified width threshold, and the touch area is greater than a specified area threshold.
[0050] The present application provides a device control method, which can first obtain the touch ranges of the multiple touch points corresponding to the multi-touch operation after detecting a multi-touch operation, and then detect the touch ranges, and then determine that the multi-touch operation is an erroneous operation when it is detected that the touch range of at least one touch point meets the erroneous touch range condition. Thus, through the above method, when a multi-touch operation is detected, it is possible to further identify whether the multi-touch operation is an erroneous operation in combination with the touch range of at least one touch point, so that when it is detected that the touch range of at least one touch point meets the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation, and then the control behavior corresponding to the multi-touch operation will not be triggered.
[0051] See also Figure 4 The present application provides a device control method, which is applied to an electronic device, and the method includes:
[0052] S210: In response to detecting a multi-touch operation, obtaining an action position of the multi-touch operation.
[0053] S220: Detect whether the action position is at a preset position.
[0054] S230: If the action position is not at the preset position, executing a control operation corresponding to the multi-touch operation.
[0055] It should be noted that the erroneous operation of the multi-touch operation may occur in a partial area of the screen. In this case, further misidentification detection can be performed only on the area prone to erroneous operation, and no further misidentification detection is required for areas outside the area prone to erroneous operation, so as to improve the effectiveness of misidentification detection. For example, if the action position of the multi-touch operation is not at the preset position, the control operation or control behavior corresponding to the multi-touch operation can be directly executed. Among them, the control operation or control behavior may include: screenshot operation.
[0056] Optionally, the preset position is at least a portion of the upper half of the screen of the electronic device. For example, the preset position may be the top of the screen, or the preset position may be all areas in the upper half of the screen.
[0057] The area between the edge of the screen at the top of the electronic device and the specified position can be understood as the top of the screen. In this case, the top of the screen can be understood as the area in the upper half of the screen that is relatively closer to the top of the electronic device. The specified position is between the edge of the screen at the top of the electronic device and the middle line of the screen. The middle line of the screen is the line that divides the upper half of the screen and the lower half of the screen.
[0058] For example, Figure 5 As shown, the screen middle line 20 divides the screen into an upper half and a lower half. It should be noted that the screen middle line 20 is not an actual line. Figure 5 The above is only for the convenience of visually distinguishing the upper and lower parts of the screen. Figure 5 As shown, the top of the screen may be the area between an edge 21 of the screen at the top of the electronic device and a designated position 22 .
[0059] As a method, the screen can be divided into different areas by the coordinates of the pixels included in the screen. Optionally, any position on the screen can be used as the origin of the coordinate system. For example, the center of the screen can be used as the origin of the coordinate system, or any vertex of the screen can be used as the origin of the coordinate system. In this case, the first coordinates corresponding to the middle line of the screen are all first values. In this case, the position where the corresponding first coordinate is less than the first value can be used as the lower half of the screen, and correspondingly, the position where the corresponding first coordinate is greater than the first value can be used as the upper half of the screen. Among them, the first coordinate of the specified position can be a second value (greater than the first value), and the position where the corresponding first coordinate is greater than the second value can be used as the top of the screen. Among them, the first coordinate can be a vertical coordinate.
[0060] S240: If the action position is at the preset position, acquiring touch ranges corresponding to the multiple touch points corresponding to the multi-touch operation.
[0061] S250: If the touch range of at least one touch point satisfies the erroneous touch range condition, determining that the multi-touch operation is an erroneous operation.
[0062] It should be noted that if the user can see the screen of the electronic device, the multi-touch operation detected by the electronic device is likely to be triggered by the user subjectively. However, if the electronic device still detects a multi-touch operation when the user cannot see the screen of the electronic device, the detected multi-touch operation is more likely to be an erroneous operation.
[0063] As a method, in response to detecting a multi-touch operation, it can be detected whether the error operation recognition function is turned on. If it is detected that the error operation recognition function is turned on, the touch ranges of the multiple touch points corresponding to the multi-touch operation can be obtained, and then further determined based on the detection result of the touch range whether the detected multi-touch operation is an error operation.
[0064] As a method, in response to detecting a multi-touch operation, it can be detected whether the erroneous operation recognition function is turned on. If it is detected that the erroneous operation recognition function is turned on, the action position of the multi-touch operation is obtained.
[0065] The misoperation recognition function may be automatically started when the electronic device detects that the user cannot currently see the screen. Optionally, if the electronic device detects that the electronic device is in a handset call state or is in a pocket, it is determined that the user cannot currently see the screen.
[0066] The present application provides a device control method, so that through the above method, when a multi-touch operation is detected, it can further combine the touch range of at least one touch point to identify whether the multi-touch operation is an erroneous operation, so that when it is detected that the touch range of at least one touch point meets the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation, and then the control behavior corresponding to the multi-touch operation will not be triggered. In addition, in this embodiment, by configuring the preset position, it is possible to detect the erroneous operation only for the multi-touch operation at the preset position, thereby improving the effectiveness of the erroneous operation detection of the multi-touch operation.
[0067] See also Figure 6 The present application provides a device control method, which is applied to an electronic device, and the method includes:
[0068] S310: In response to detecting a multi-touch operation, acquiring touch ranges of respective touch points corresponding to the multi-touch operation.
[0069] S320: If the touch range of at least one touch point satisfies the false touch range condition, and within a specified time period after the multi-touch operation starts, the number of times the touch range of at least one touch point is detected to satisfy the false touch range condition is greater than a specified number, then the operation parameters of the multi-touch operation are obtained.
[0070] In the embodiment of the present application, during the multi-touch operation, the electronic device detects the touch range of the touch point multiple times. After each detection, the touch range of each of the multiple touch points can be obtained, and then the number of times the touch range of at least one touch point is detected to meet the false touch range condition can be counted.
[0071] S330: Detect whether the operating parameters meet corresponding operating conditions.
[0072] S340: If the operation parameter does not satisfy the corresponding operation condition, determine that the multi-touch operation is an erroneous operation.
[0073] S350: If the operation parameter satisfies the corresponding operation condition, executing a control operation corresponding to the multi-touch operation.
[0074] The present application provides a device control method, so that through the above-mentioned method, when a multi-touch operation is detected, the touch range of at least one touch point can be further combined to identify whether the multi-touch operation is an erroneous operation, so that when it is detected that the touch range of at least one touch point meets the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation, and then the control behavior corresponding to the multi-touch operation will not be triggered. In addition, in this embodiment, in addition to detecting the touch range corresponding to only one touch point, the number of times the touch range of at least one touch point is detected to meet the erroneous touch range condition within a specified time period will also be detected, thereby improving the accuracy of identifying whether the multi-touch operation is an erroneous operation. Furthermore, after completing the detection of the touch range of the touch point and the number of times the touch range of at least one touch point is detected to meet the erroneous touch range condition, it will be further combined with the touch parameters of the multi-touch operation for detection, and then further accurately determine whether the control behavior corresponding to the multi-touch operation needs to be executed.
[0075] Next, pass Figure 7 , Figure 8 The device control method involved in the embodiment of the present application is further described below.
[0076] like Figure 7As shown, when a touch operation is detected, the center position of the screen where the touch operation occurs will be detected first. If the position of the touch operation is not the preset position, the process ends. If the position of the touch operation is the preset position, the number of touch points corresponding to the touch operation will be further detected. Figure 7 In the illustrated case, the preset position may be defined as a position that may respond to a multi-touch operation.
[0077] If the number of touch points detected in the touch operation is the target number threshold, the detected touch operation is determined to be a multi-touch operation, and then the touch ranges of the multiple touch points of the multi-touch operation are detected to meet the false touch range condition, and the number of times the touch range of at least one touch point is detected to meet the false touch range condition within the specified time period. If it is detected that the touch range of at least one touch point meets the false touch range condition, and the number of times the touch range of at least one touch point is detected to meet the false touch range condition within the specified time period is greater than the specified number, the touch duration of the multi-touch operation will be further detected. If the touch duration meets the specified duration corresponding to the multi-touch operation, the control behavior corresponding to the multi-touch operation will be executed.
[0078] like Figure 7 As shown, when a touch operation is detected, the center position of the screen where the touch operation occurs will be detected first. If the position of the touch operation is not the preset position, the process ends. If the position of the touch operation is the preset position, the number of touch points corresponding to the touch operation will be further detected. Figure 7 In the illustrated case, the preset position may be defined as a position that may respond to a multi-touch operation.
[0079] If the number of touch points detected in the touch operation is the target number threshold, the detected touch operation is determined to be a multi-touch operation, and then the touch ranges of the multiple touch points of the multi-touch operation are detected to meet the false touch range condition, and the number of times the touch range of at least one touch point is detected to meet the false touch range condition within the specified time period. If it is detected that the touch range of at least one touch point meets the false touch range condition, and the number of times the touch range of at least one touch point is detected to meet the false touch range condition within the specified time period is greater than the specified number, the sliding distance of the multi-touch operation will be further detected. If the sliding distance meets the specified distance corresponding to the multi-touch operation, the control behavior corresponding to the multi-touch operation will be executed.
[0080] See also Fig. 9 The present application provides a device control device 400, which runs on an electronic device. The device 400 includes:
[0081] A touch range acquisition unit 410, configured to acquire, in response to detecting a multi-touch operation, a touch range of each of a plurality of touch points corresponding to the multi-touch operation;
[0082] The touch recognition unit 420 is configured to determine that the multi-touch operation is an erroneous operation if the touch range of at least one touch point satisfies an erroneous touch range condition.
[0083] As a method, the touch range acquisition unit 410 is specifically used to obtain the action position of the multi-touch operation in response to detecting the multi-touch operation; if the action position is at a preset position, obtain the touch range corresponding to each of the multiple touch points corresponding to the multi-touch operation.
[0084] Optionally, the touch range acquisition unit 410 is further specifically configured to execute a control operation corresponding to the multi-touch operation if the action position is not at the preset position.
[0085] Optionally, the preset position is at least a partial area in the upper half of the screen of the electronic device.
[0086] As a method, the touch recognition unit 420 is specifically used to obtain the operation parameters of the multi-touch operation if the touch range of at least one touch point meets the false touch range condition, and within a specified time period after the start of the multi-touch operation, the number of times it is detected that the touch range of at least one touch point meets the false touch range condition is greater than a specified number; if the operation parameters do not meet the corresponding operation conditions, it is determined that the multi-touch operation is an erroneous operation.
[0087] Optionally, the touch recognition unit 420 is further specifically configured to execute a control operation corresponding to the multi-touch operation if the operation parameters meet corresponding operation conditions.
[0088] Optionally, the operating parameter includes a pressing duration, and the operating condition corresponding to the pressing duration includes that the pressing duration is greater than a specified duration; or the operating parameter includes a sliding distance, and the operating condition corresponding to the sliding distance includes that the sliding distance is greater than a specified distance.
[0089] The present application provides a device control device, which, through the above-mentioned device, can further combine the touch range of at least one touch point to identify whether the multi-touch operation is an erroneous operation when a multi-touch operation is detected, so that when it is detected that the touch range of at least one touch point meets the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation, and the control behavior corresponding to the multi-touch operation will not be triggered.
[0090] It should be noted that the device embodiments in the present application correspond to the aforementioned method embodiments, and the specific implementation principles of each unit in the device embodiments are similar to the principles in the aforementioned method embodiments. The specific contents in the device embodiments can be found in the method embodiments, and will not be repeated in the device embodiments.
[0091] The following will be combined Fig.10 An electronic device provided by the present application is described.
[0092] See also Fig.10 Based on the above-mentioned storage box positioning method and device, the embodiment of the present application also provides an electronic device 1000 that can execute the above-mentioned storage box positioning method. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106, and an audio acquisition device 108 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content of the above-mentioned embodiment, and the processor 105 can execute the program stored in the memory 104.
[0093] Among them, the processor 105 may include one or more processing cores. The processor 105 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 105 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 105 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 105, but may be implemented separately through a communication chip.
[0094] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.
[0095] Furthermore, in addition to the aforementioned components, the electronic device 1000 may further include a network module 110 , a sensor module 112 , and a touch screen system 114 .
[0096] The network module 110 is used to realize information interaction between the electronic device 1000 and other devices. For example, a connection can be established with other audio playback devices or other electronic devices, and information interaction is performed based on the established connection. As a way, the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize the mutual conversion of electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. For example, the radio frequency module can interact with external devices through electromagnetic waves sent or received.
[0097] The sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include but is not limited to: a pressure sensor, a motion sensor, an acceleration sensor, and other sensors.
[0098] Among them, the pressure sensor may be a sensor that detects the pressure generated by pressing on the electronic device 1000. That is, the pressure sensor detects the pressure generated by contact or pressing between the user and the electronic device 1000, for example, the pressure generated by contact or pressing between the user's ear and the electronic device 1000. Therefore, the pressure sensor can be used to determine whether contact or pressing occurs between the user and the electronic device 1000, and the magnitude of the pressure.
[0099] Among them, the acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the electronic device 1000 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 1000 can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be repeated here.
[0100] The touch screen system 114 is used to display content and respond to touch operations performed by the user. For example, the touch screen system can detect multi-touch operations. The touch screen system 114 communicates with the processor 105 via SPI (Serial Peripheral interface).
[0101] The audio collection device 108 is used to collect audio signals. Optionally, the audio collection device 108 includes a plurality of audio collection devices, which may be microphones.
[0102] Please refer to Fig.11 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1100 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0103] The computer readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed, for example, in an appropriate form.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0105] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0106] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0107] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0108] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0109] In summary, the device control method, apparatus, and electronic device provided by the present application can first obtain the touch ranges of the multiple touch points corresponding to the multi-touch operation after detecting a multi-touch operation, and then detect the touch ranges, and then determine that the multi-touch operation is an erroneous operation when it is detected that the touch range of at least one touch point meets the erroneous touch range condition. Thus, through the above method, when a multi-touch operation is detected, it is possible to further identify whether the multi-touch operation is an erroneous operation in combination with the touch range of at least one touch point, so that when it is detected that the touch range of at least one touch point meets the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation, and the control behavior corresponding to the multi-touch operation will not be triggered.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device control method, characterized in that: Applied to electronic equipment, the method comprises: In response to detecting a multi-touch operation, acquiring a touch range of each of a plurality of touch points corresponding to the multi-touch operation; If the touch range of at least one touch point satisfies the erroneous touch range condition, the multi-touch operation is determined to be an erroneous operation.
2. The method according to claim 1, characterized in that In response to detecting a multi-touch operation, acquiring the touch ranges of the multiple touch points corresponding to the multi-touch operation includes: In response to detecting a multi-touch operation, obtaining an action position of the multi-touch operation; If the action position is at the preset position, the touch ranges corresponding to the multiple touch points corresponding to the multi-touch operation are obtained.
3. The method according to claim 2, characterized in that The method further comprises: If the action position is not at the preset position, a control operation corresponding to the multi-touch operation is performed.
4. The method according to claim 2, characterized in that: The preset position is at least a partial area in the upper half of the screen of the electronic device.
5. The method according to claim 1, characterized in that: If the touch range of at least one touch point satisfies the erroneous touch range condition, determining that the multi-touch operation is an erroneous operation includes: If the touch range of at least one touch point satisfies the false touch range condition, and within a specified time period after the multi-touch operation starts, the number of times that the touch range of at least one touch point satisfies the false touch range condition is greater than a specified number, then obtaining the operation parameters of the multi-touch operation; If the operation parameter does not satisfy the corresponding operation condition, the multi-touch operation is determined to be an erroneous operation.
6. The method according to claim 5, characterized in that The method further comprises: If the operation parameter satisfies the corresponding operation condition, a control operation corresponding to the multi-touch operation is performed.
7. The method according to claim 5 or 6, characterized in that: The operation parameter includes a pressing duration, and the operation condition corresponding to the pressing duration includes that the pressing duration is greater than a specified duration; or The operating parameter includes a sliding distance, and the operating condition corresponding to the sliding distance includes that the sliding distance is greater than a specified distance.
8. The method according to claim 1, characterized in that The touch range includes a touch width, and the false touch range condition includes: the touch width is greater than a specified width threshold.
9. A device control device, characterized in that: Running on an electronic device, the device comprises: A touch range acquisition unit, configured to acquire, in response to detecting a multi-touch operation, a touch range of each of a plurality of touch points corresponding to the multi-touch operation; The touch recognition unit is used to determine that the multi-touch operation is an erroneous operation if the touch range of at least one touch point meets the erroneous touch range condition.
10. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing a program code executable by a processor, characterized in that: The computer-readable storage medium includes stored program code, wherein when the program code is executed, the method according to any one of claims 1 to 8 is executed.