CN115525202A - Electronic equipment control method and device and electronic equipment - Google Patents

Electronic equipment control method and device and electronic equipment Download PDF

Info

Publication number
CN115525202A
CN115525202A CN202211216255.2A CN202211216255A CN115525202A CN 115525202 A CN115525202 A CN 115525202A CN 202211216255 A CN202211216255 A CN 202211216255A CN 115525202 A CN115525202 A CN 115525202A
Authority
CN
China
Prior art keywords
target
area
relative position
position relationship
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211216255.2A
Other languages
Chinese (zh)
Inventor
高营
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211216255.2A priority Critical patent/CN115525202A/en
Publication of CN115525202A publication Critical patent/CN115525202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application discloses a control method and a control device of electronic equipment and the electronic equipment, wherein the control method comprises the steps of determining the relative position relation between a target area of the electronic equipment and a target object if the target object is detected; and enabling the touch function of the target area if the relative position relationship is the first relative position relationship, and disabling the touch function of the target area if the relative position relationship is the second relative position relationship. According to the method and the device, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the condition that the target area is touched by mistake is effectively prevented, and the user experience is improved.

Description

Electronic equipment control method and device and electronic equipment
Technical Field
The present disclosure relates to the field of control technologies of electronic devices, and in particular, to a method and an apparatus for controlling an electronic device, and an electronic device.
Background
For the multi-mode dual-screen product form, if a touch screen is arranged on the C-side of the notebook computer, when a user uses a keyboard of the notebook computer to input characters, instructions and the like, the touch screen is touched by mistake, which results in waste of processing resources, low processing efficiency and the like.
Disclosure of Invention
The embodiment of the application aims to provide an electronic device control method and device and an electronic device.
In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, including:
if the target object is detected, determining a relative position relationship between a target area of the electronic equipment and the target object;
and if the relative position relationship is a first relative position relationship, enabling the touch function of the target area, and if the relative position relationship is a second relative position relationship, disabling the touch function of the target area.
In one possible implementation, determining a relative positional relationship between a target area of an electronic device and a target object includes:
acquiring a first detection parameter and a second detection parameter;
if the first detection parameter meets a first detection condition, determining that the relative position relationship between the target area and the target object is a first relative position relationship;
and if the first detection parameter does not meet the first detection condition and the second detection parameter meets the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
In one possible embodiment, the second detection parameter is obtained by at least one detection component;
if the relative position relationship is a second relative position relationship, disabling the touch function of the target area, including:
determining a target detection component from the at least one detection component based on a second detection parameter meeting a second detection condition;
acquiring target position information of the target detection assembly;
and disabling the touch function of the target area based on the target position information.
In a possible implementation manner, the disabling, based on the target location information, a touch function of the target area includes:
determining an overlap area based on the target location information;
under the condition that the number of the overlapped areas is one or more and the overlapped areas fall into a first area, determining a partial area in the target area corresponding to each overlapped area, wherein the area of the partial area is larger than or equal to that of the overlapped areas;
and disabling the touch function of the partial area, and enabling the touch function of the area outside the partial area in the target area.
In a possible implementation manner, the disabling, based on the target position information, a touch function of the target area further includes:
determining an overlap area based on the target location information;
determining the time length of the overlapping area falling into a first area under the condition that the overlapping area is one or more and the overlapping area falls into the first area;
and forbidding all touch functions of the target area under the condition that the duration reaches the preset duration.
In a possible implementation manner, the disabling, based on the target location information, a touch function of the target area includes:
determining an overlap area based on the target location information;
determining a current distance between the target object and a second area if the overlap area is one or more and the overlap area falls into the second area;
and disabling the touch control functions of all the target areas under the condition that the current distance is greater than the preset distance.
In one possible embodiment, the determining the overlapping area based on the target position information includes:
determining target coordinates in the target position information;
and determining the region of the target coordinate in the first region or the second region as the overlapping region.
In a second aspect, an embodiment of the present application further provides a control apparatus for an electronic device, including:
the determining module is configured to determine a relative position relationship between a target area of the electronic equipment and the target object if the target object is detected;
the control module is configured to enable the touch function of the target area if the relative position relationship is a first relative position relationship, and disable the touch function of the target area if the relative position relationship is a second relative position relationship.
In a possible implementation, the determining module is specifically configured to:
acquiring a first detection parameter and a second detection parameter;
if the first detection parameter meets a first detection condition, determining that the relative position relation between the target area and the target object is a first relative position relation;
and if the first detection parameter does not meet the first detection condition and the second detection parameter meets the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
In a third aspect, an embodiment of the present application further provides a storage medium, where the computer-readable storage medium stores a computer program, and when executed by a processor, the computer program performs the following steps:
if the target object is detected, determining a relative position relationship between a target area of the electronic equipment and the target object;
and enabling the touch function of the target area if the relative position relationship is a first relative position relationship, and disabling the touch function of the target area if the relative position relationship is a second relative position relationship.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over a bus when an electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of:
if the target object is detected, determining a relative position relationship between a target area of the electronic equipment and the target object;
and enabling the touch function of the target area if the relative position relationship is a first relative position relationship, and disabling the touch function of the target area if the relative position relationship is a second relative position relationship.
According to the embodiment of the application, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the switching efficiency and the timeliness are high, the situation that the target area is touched by mistake is effectively prevented, and the user experience is improved; and moreover, the touch function forbidden energy of the target area is controlled in real time based on the relative position relation, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided.
Drawings
The following drawings of the present disclosure are included to provide an understanding of the present disclosure. The drawings illustrate embodiments of the disclosure and their description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a control method of an electronic device provided in the present application;
fig. 2 is a flowchart illustrating a method for determining a relative position relationship between a target area of an electronic device and a target object in a control method provided by the present application;
FIG. 3 is a schematic diagram showing a plurality of detection components set as edges of a target area;
fig. 4 is a flowchart illustrating a first situation of disabling the touch function of the first area if the relative position relationship is the second relative position relationship in the control method provided by the present application;
FIG. 5 shows a schematic diagram of one example provided herein;
FIG. 6 shows a schematic diagram of another example provided herein;
fig. 7 is a flowchart illustrating a second situation in which the touch function of the first area is disabled if the relative position relationship is the second relative position relationship in the control method provided by the present application;
fig. 8 is a flowchart illustrating a third situation of disabling the touch function of the first area if the relative position relationship is the second relative position relationship in the control method provided by the present application;
FIG. 9 is a schematic diagram illustrating an example of the present application providing that the current distance falls within the second zone at the overlap zone and is less than or equal to the preset distance;
FIG. 10 is a schematic diagram illustrating an internal connection structure of an electronic device provided herein;
fig. 11 is a schematic structural diagram illustrating a control apparatus of an electronic device provided in the present application;
fig. 12 shows a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It should be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be considered as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above, and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
According to the control method of the electronic equipment, the touch function of the target area is enabled or disabled, the switching efficiency and the timeliness are high, the situation that mistaken touch is generated on the target area is effectively prevented, and the user experience is improved; and moreover, the touch function forbidden energy of the target area is controlled in real time based on the relative position relation, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided. For the understanding of the present application, a detailed description of one control method provided in the present application will be given first.
As shown in fig. 1, which is a flowchart of a control method provided in an embodiment of the present application, specific steps include S101 and S102.
S101, if the target object is detected, determining a relative position relation between a target area of the electronic equipment and the target object.
In a specific implementation, the electronic device is provided with a detection device, which includes a pressure sensor, a transceiver, and the like, and it can be determined whether a target object, that is, an object falling within a target area, is detected through a parameter change of the detection device. The object includes a hand of a user, a touch pen, and the like, and the target area is an area having a touch function in the electronic device, for example, a touch area adjacent to a keyboard area on the C-plane of the notebook computer.
After the parameters of the detection device are acquired, the relative position relationship between the target area of the electronic equipment and the target object is further determined. Wherein the relative positional relationship between the target area and the target object includes contact, approach, and distance.
Optionally, the relative position relationship between the target area of the electronic device and the target object is determined with reference to a method flowchart shown in fig. 2, where the specific steps include S201-S203.
S201, acquiring a first detection parameter and a second detection parameter.
S202, if the first detection parameter meets the first detection condition, determining that the relative position relationship between the target area and the target object is the first relative position relationship.
S203, if the first detection parameter does not satisfy the first detection condition and the second detection parameter satisfies the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
In a specific implementation, the first detection parameter is a current pressure value on the target area, optionally, a pressure sensor is disposed on the electronic device, and the current pressure value on the target area is acquired in real time by using the pressure sensor to determine whether an object exists in the target area. And the second detection parameter is a current capacitance value of the transceiver, and the presence or absence of an object near or far from the target area is determined by using the capacitance value of the transceiver itself as a function of the presence or absence of the object near the transceiver and the change in distance from the object.
After the first detection parameter is acquired, determining whether the first detection parameter meets a first detection condition, wherein the first detection condition is that the current pressure value is greater than a preset pressure value. In the case where the first detection parameter satisfies the first detection condition, it is determined that the relative positional relationship between the target region and the target object is a first relative positional relationship, which is contact.
If the first detection parameter does not satisfy the first detection condition, determining whether a second detection parameter satisfies a second detection condition, wherein the second detection condition is that the current capacitance value is greater than a preset capacitance value. In a case where the first detection parameter does not satisfy the first detection condition and the second detection parameter satisfies the second detection condition, determining that a relative positional relationship between the target area and the target object is a second relative positional relationship, the second relative positional relationship including an approaching and a departing. Optionally, for each transceiver, a difference between its current capacity value and the historical capacity value is determined, and whether the second relative positional relationship is close or far is determined based on the plurality of differences.
S102, if the relative position relationship is the first relative position relationship, enabling the touch function of the target area, and if the relative position relationship is the second relative position relationship, disabling the touch function of the target area.
Optionally, after determining that the relative position relationship is the first relative position relationship, that is, the target object is in contact with the target area, that is, the target object performs a touch operation on the target area, and at this time, the touch function of the target area is used, so that the electronic device responds to the touch operation of the target object.
After the relative position relationship is determined to be the second relative position relationship, that is, the target object is not in contact with the target area, that is, in a close or far relationship, that is, the target object does not want to perform the touch operation in the target area, at this time, in order to avoid generating the misoperation in the target area, the touch function of the target area is disabled.
In a specific implementation, the second detection parameter is obtained by at least one detection component, that is, a plurality of detection components, that is, transceivers, are disposed on the electronic device, and the plurality of detection components are set as the edge of the target area. As an example, fig. 3 shows a schematic diagram of a plurality of detection components set as the edge of a target area, specifically, an independent receiving/transmitting channel TX/RX trace is designed at the outer edge of the target area, that is, a touch area, to sense an operation of approaching or departing a hand of a user, and a maximum distance sensed by the detection components, for example, 2cm, may also be set, that is, a plurality of detection components can sense an object which is 2cm away from the detection components. It should be noted that on/off of the plurality of detection elements may set a periodic on/off sensing function according to a thought, or may turn on/off the sensing function based on a preset trigger condition, and the like, which is not specifically limited in the embodiment of the present application.
After the relative position relationship is determined to be the second relative position relationship, when the touch function of the target area is disabled, the target detection assembly is determined from the at least one detection assembly based on the second detection parameter meeting the second detection condition, that is, the detection assembly with the current capacitance value larger than the preset capacitance value is screened from the at least one detection assembly and determined as the target detection assembly.
After the target detection assemblies are determined, target position information of each target detection assembly is further acquired, and based on the target position information, a touch function of a target area is forbidden. The touch control functions of all the target areas can be disabled, the touch control functions of part of the target areas can be disabled, and then different situations are explained respectively.
Fig. 4 is a flowchart illustrating a method of a first case of disabling the touch function of the first area if the relative position relationship is the second relative position relationship, wherein the specific steps include S401 to S403.
S401, an overlap region is determined based on the target position information.
S402, under the condition that the number of the overlapping regions is one or more and the overlapping regions fall into the first region, determining a partial region in the target region corresponding to each overlapping region, wherein the area of the partial region is larger than or equal to that of the overlapping region.
S403, disabling the touch function of the partial area and enabling the touch function of the area except the partial area in the target area.
In a specific implementation, coordinates of each detection assembly and a corresponding area of each detection assembly in the first area are determined in advance, and after target position information of each target detection assembly is determined, target coordinates in the target position information are further determined, where the target coordinates may be numbers, identifications and the like of the detection assemblies, and may also be coordinates and the like of the detection assemblies in a pre-constructed coordinate system. And determining the region of the target coordinate in the first region as an overlapping region, wherein each coordinate corresponds to a region in the first region.
And under the condition that the overlapping area is one or more and falls into a first area, determining a partial area in the target area corresponding to each overlapping area, wherein the first area is an area where the detection component positioned between the target area and the keyboard area is positioned. For example, fig. 5 is a schematic diagram of an example, where the target object is a hand of a user, and both hands of the user operate on a keyboard region, that is, both hands form an overlapping region, at this time, the touch function in a part of the target region is disabled, the touch function in a region other than the part of the target region is enabled, and the part of the touch function in the first region can be ensured while avoiding that the processor wastes processing resources due to a false touch. Meanwhile, under the condition that both hands of the user are determined to operate aiming at the keyboard area, the display function of a part of areas in the target area can be closed; fig. 6 also shows a schematic diagram of another example, namely, when one hand of the user operates on the keyboard region, the display function of only a part of the target region can be closed.
In the case where the area of the disabled region is larger than or equal to the area of the partial region, optionally, considering that the target object is moving and the volumes of different target objects are different, the area of the disabled region is set to be larger than the area of the partial region, that is, the cases shown in fig. 5 and 6, so that the accidental touch can be more effectively avoided.
In specific implementation, in order to enable a user to clearly know the disabled partial region, the disabled partial region may be set to be a special display, for example, a line frame corresponding to the disabled partial region, a filling color of the disabled partial region is different from a filling color of a region other than the disabled partial region in the target region, and the like, so that the user is ensured to perform a touch operation on the region other than the disabled partial region in time, and the user experience is improved.
Fig. 7 is a flowchart illustrating a method of a second case of disabling the touch function of the first area if the relative position relationship is a second relative position relationship, wherein the specific steps include S701-S703.
S701, determining an overlap region based on the target position information.
S702, under the condition that one or more overlapping areas are included and the overlapping areas fall into the first area, determining the time length of the overlapping areas falling into the first area.
And S703, disabling the touch control functions of all the target areas when the duration reaches the preset duration.
The manner of determining the overlap area based on the target position information is referred to above, and is not described herein again.
In the case that the overlap area is one or more and the overlap area falls into the first area, the time length of the overlap area falling into the first area can be further determined, and the time length of the overlap area falling into the first area represents the time length of the operation performed by the user in the keyboard area.
The time length of the overlapping area falling into the first area is compared with the preset time length, and when the time length reaches the preset time length, namely the time that a user needs to execute operation in the keyboard area is longer, at the moment, touch control functions of all target areas are forbidden, so that the waste of processing resources of a processor caused by false touch is avoided, and meanwhile, the resource consumption can be reduced.
Fig. 8 is a flowchart illustrating a method of a third case of disabling the touch function of the first area if the relative position relationship is the second relative position relationship, wherein the specific steps include S801-S803.
S801, determining an overlap area based on the target position information.
S802, under the condition that the overlapping area is one or more and the overlapping area falls into the second area, the current distance between the target object and the second area is determined.
And S803, disabling the touch functions of all target areas under the condition that the current distance is greater than the preset distance.
The manner of determining the overlap area based on the target position information is referred to above, and is not described herein again.
And determining the current distance between the target object and a second area under the condition that the overlapping area is one or more and falls into the second area, wherein the second area is the area except the first area in the areas corresponding to the plurality of detection assemblies. Alternatively, the second detection parameter may be determined by detecting a second detection parameter of the component, such as the second detection parameter or a variation trend thereof; the current distance between the target object and the second area may also be acquired by an infrared device disposed on the electronic device, which is not specifically limited in this embodiment of the application.
After the current distance between the target object and the second area is determined, the current distance is compared with the preset distance, if the current distance is greater than the preset distance, the target object does not need to perform touch operation on the target area, at this time, touch functions of all the first areas are disabled, and meanwhile, the display function of the target area can be determined to be turned on/off according to actual requirements.
Fig. 9 is a schematic diagram illustrating that the current distance is less than or equal to the preset distance, and at this time, the target object may need to perform a touch operation on the target area, so that the touch functions of all the first areas are enabled, and at this time, the display function of the target area is turned on.
According to the embodiment of the application, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the switching efficiency and the timeliness are high, the situation that the target area is touched by mistake is effectively prevented, and the user experience is improved; and moreover, the touch function disabling of the target area is controlled in real time based on the relative position relationship, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided.
Fig. 10 shows a schematic diagram of an internal connection structure of the electronic device when the above steps are performed, where the internal connection structure includes a Central Processing Unit (CPU), a touch controller, a touch detector, a pressure sensor, a transceiver, a Processor, and the like, and the Processor may store a preset detection period, a first detection condition, a second detection condition, and the like, and is used to calculate parameters of the touch detector, the pressure sensor, and the transceiver (TX 1_ F/RX1_ F \82309; TXn _ F/RXn _ F) and the like to determine a relative positional relationship between a target area and a target object of the electronic device, enable a touch function of the target area based on the relative positional relationship, and record and send a control process to the CPU to store the CPU and the like.
Based on the same inventive concept, the second aspect of the present application further provides a control apparatus for an electronic device corresponding to the control method for an electronic device, and since the principle of solving the problem of the electronic device in the present application is similar to that of the control method in the present application, the implementation of the control apparatus may refer to the implementation of the method, and the repeated parts are not described again.
Fig. 11 shows a schematic diagram of a control device provided in an embodiment of the present application, which specifically includes:
a determining module 1101 configured to determine a relative positional relationship between a target area of the electronic device and the target object if the target object is detected;
the control module 1102 is configured to enable the touch function of the target area if the relative position relationship is a first relative position relationship, and disable the touch function of the target area if the relative position relationship is a second relative position relationship.
In yet another embodiment, the determining module 1101 is specifically configured to:
acquiring a first detection parameter and a second detection parameter;
if the first detection parameter meets a first detection condition, determining that the relative position relationship between the target area and the target object is a first relative position relationship;
and if the first detection parameter does not meet the first detection condition and the second detection parameter meets the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
In yet another embodiment, the second detection parameter is obtained by at least one detection component;
the control module 1102 is specifically configured to:
determining a target detection component from the at least one detection component based on a second detection parameter meeting a second detection condition;
acquiring target position information of the target detection assembly;
and disabling the touch function of the target area based on the target position information.
In another embodiment, the control module 1102, when disabling the touch function of the target area based on the target location information, includes:
determining an overlap area based on the target location information;
under the condition that the number of the overlapping regions is one or more and the overlapping regions fall into a first region, determining a partial region in the target region corresponding to each overlapping region, wherein the area of the partial region is larger than or equal to that of the overlapping region;
and disabling the touch function of the partial area, and enabling the touch function of the area outside the partial area in the target area.
In another embodiment, when disabling the touch function of the target area based on the target position information, the control module 1102 includes:
determining an overlap area based on the target location information;
determining the time length of the overlapping area falling into a first area under the condition that the overlapping area is one or more and the overlapping area falls into the first area;
and forbidding all touch functions of the target area under the condition that the duration reaches the preset duration.
In another embodiment, the control module 1102, when disabling the touch function of the target area based on the target location information, includes:
determining an overlap area based on the target location information;
determining a current distance between the target object and a second area if the overlap area is one or more and the overlap area falls into the second area;
and disabling all touch functions of the first area under the condition that the current distance is greater than a preset distance.
In yet another embodiment, the control module 1102, when determining the overlap region based on the target location information, comprises:
determining target coordinates in the target position information;
and determining the region of the target coordinate in the first region or the second region as the overlapping region.
According to the embodiment of the application, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the switching efficiency and the timeliness are high, the situation that the target area is touched by mistake is effectively prevented, and the user experience is improved; and moreover, the touch function forbidden energy of the target area is controlled in real time based on the relative position relation, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided.
An embodiment of the present application provides a storage medium, which is a computer-readable medium storing a computer program, where the computer program, when executed by a processor, implements a method provided in any embodiment of the present application, and includes the following steps S11 and S12:
s11, if the target object is detected, determining a relative position relation between a target area of the electronic equipment and the target object;
and S12, enabling the touch function of the target area if the relative position relationship is a first relative position relationship, and disabling the touch function of the target area if the relative position relationship is a second relative position relationship.
According to the embodiment of the application, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the switching efficiency and the timeliness are high, the situation that the target area is touched by mistake is effectively prevented, and the user experience is improved; and moreover, the touch function disabling of the target area is controlled in real time based on the relative position relationship, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided.
An electronic device provided in an embodiment of the present application may be as shown in fig. 12, where the electronic device at least includes a memory 1201 and a processor 1202, where the memory 1201 stores a computer program, and the processor 1202 implements the method provided in any embodiment of the present application when executing the computer program on the memory 1201. Illustratively, the electronic device computer program steps are as follows S21 and S22:
s21, if the target object is detected, determining the relative position relationship between the target area of the electronic equipment and the target object;
and S22, if the relative position relationship is a first relative position relationship, enabling the touch function of the target area, and if the relative position relationship is a second relative position relationship, disabling the touch function of the target area.
According to the embodiment of the application, the relative position relation between the target area of the electronic equipment and the target object is dynamically determined, so that the enabling or disabling of the touch function of the target area is controlled in real time based on the relative position relation, the switching efficiency and the timeliness are high, the situation that the target area is touched by mistake is effectively prevented, and the user experience is improved; and moreover, the touch function forbidden energy of the target area is controlled in real time based on the relative position relation, so that the energy consumption can be saved to a certain extent, and the resource waste is avoided.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above detailed description, various features may be grouped together to streamline the application. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, subject matter of the present application can lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the application should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
The embodiments of the present application have been described in detail, but the present application is not limited to these specific embodiments, and those skilled in the art can make various modifications and modified embodiments based on the concept of the present application, and these modifications and modified embodiments should fall within the scope of the present application.

Claims (10)

1. A method of controlling an electronic device, comprising:
if the target object is detected, determining a relative position relationship between a target area of the electronic equipment and the target object;
and if the relative position relationship is a first relative position relationship, enabling the touch function of the target area, and if the relative position relationship is a second relative position relationship, disabling the touch function of the target area.
2. The control method of claim 1, determining a relative positional relationship between a target area of the electronic device and the target object, comprising:
acquiring a first detection parameter and a second detection parameter;
if the acquired first detection parameter meets a first detection condition, determining that the relative position relationship between the target area and the target object is a first relative position relationship;
and if the acquired first detection parameter does not meet the first detection condition and the acquired second detection parameter meets the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
3. The control method according to claim 2, the second detection parameter being acquired by at least one detection component;
if the relative position relationship is a second relative position relationship, disabling the touch function of the target area, including:
determining a target detection component from the at least one detection component based on a second detection parameter meeting a second detection condition;
acquiring target position information of the target detection assembly;
and disabling the touch function of the target area based on the target position information.
4. The control method of claim 3, the disabling the touch functionality of the target area based on the target location information, comprising:
determining an overlap area based on the target location information;
under the condition that the number of the overlapped areas is one or more and the overlapped areas fall into a first area, determining a partial area in the target area corresponding to each overlapped area, wherein the area of the partial area is larger than or equal to that of the overlapped areas;
and disabling the touch function of the partial area, and enabling the touch function of the area outside the partial area in the target area.
5. The control method of claim 3, the disabling of the touch functionality of the target area based on the target location information, further comprising:
determining an overlap area based on the target location information;
determining the time length of the overlapping area falling into a first area under the condition that the overlapping area is one or more and the overlapping area falls into the first area;
and forbidding all touch functions of the target area under the condition that the duration reaches the preset duration.
6. The control method of claim 3, the disabling the touch functionality of the target area based on the target location information, comprising:
determining an overlap area based on the target location information;
determining a current distance between the target object and a second area if the overlap area is one or more and the overlap area falls into the second area;
and disabling the touch control functions of all the target areas under the condition that the current distance is greater than the preset distance.
7. The control method of any of claims 4-6, the determining an overlap region based on the target location information, comprising:
determining target coordinates in the target position information;
and determining the region of the target coordinate in the first region or the second region as the overlapping region.
8. A control apparatus of an electronic device, comprising:
the determining module is configured to determine a relative position relationship between a target area of the electronic equipment and the target object if the target object is detected;
and the control module is configured to enable the touch function of the target area if the relative position relationship is a first relative position relationship, and disable the touch function of the target area if the relative position relationship is a second relative position relationship.
9. The control apparatus of claim 8, the determination module being specifically configured to:
acquiring a first detection parameter and a second detection parameter;
if the first detection parameter meets a first detection condition, determining that the relative position relationship between the target area and the target object is a first relative position relationship;
and if the first detection parameter does not meet the first detection condition and the second detection parameter meets the second detection condition, determining that the relative position relationship between the target area and the target object is a second relative position relationship.
10. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over a bus when an electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of:
if the target object is detected, determining a relative position relationship between a target area of the electronic equipment and the target object;
and enabling the touch function of the target area if the relative position relationship is a first relative position relationship, and disabling the touch function of the target area if the relative position relationship is a second relative position relationship.
CN202211216255.2A 2022-09-28 2022-09-28 Electronic equipment control method and device and electronic equipment Pending CN115525202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211216255.2A CN115525202A (en) 2022-09-28 2022-09-28 Electronic equipment control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211216255.2A CN115525202A (en) 2022-09-28 2022-09-28 Electronic equipment control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115525202A true CN115525202A (en) 2022-12-27

Family

ID=84700719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211216255.2A Pending CN115525202A (en) 2022-09-28 2022-09-28 Electronic equipment control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115525202A (en)

Similar Documents

Publication Publication Date Title
CN108958490B (en) Electronic device, gesture recognition method thereof and computer-readable storage medium
EP3514667B1 (en) Method and terminal for preventing false touch
US9778785B2 (en) Touch sensing system and method for providing proximity sensing function using touch screen panel
CN105912260B (en) The startup method and mobile terminal of a kind of application program
US10831315B2 (en) Touch control method and system, mobile terminal, and storage medium
CN104571693B (en) Information processing method and electronic equipment
US20190179486A1 (en) Touch Sensitive Processing Apparatus and Electronic System for Detecting Whether Touch Panel is Mostly Covered by Conductive Liquid or Object and Method Thereof
EP3260959B1 (en) Electronic device preventing malfunction of touch panel and malfunction prevention method
CN103616970B (en) Touch-control response method and device
EP2693313A2 (en) Electronic pen input recognition apparatus and method using capacitive-type touch screen panel (tsp)
EP3678001B1 (en) Method and device for controlling output of report
CN107172268B (en) Power control method and electronic equipment
CN107179849B (en) Terminal, input control method thereof, and computer-readable storage medium
US20150077351A1 (en) Method and system for detecting touch on user terminal
EP2799970A1 (en) Touch screen panel display and touch key input system
CN113989963A (en) Signal processing method and related equipment
CN115525202A (en) Electronic equipment control method and device and electronic equipment
CN109002339A (en) touch operation method, device, storage medium and electronic equipment
CN111176541B (en) Method and device for preventing false touch
EP4092516A1 (en) False touch rejection method, terminal device, and storage medium
CN110187795B (en) Data processing method and electronic equipment
US9569029B2 (en) Baseline management with large input object detection
CN113760128A (en) Electronic device control method, electronic device control device, storage medium and electronic device
JP5904062B2 (en) Information processing apparatus and program
US20200310620A1 (en) Electronic device and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination