CN116414219A - Terminal equipment processing method and device, electronic equipment and medium - Google Patents

Terminal equipment processing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN116414219A
CN116414219A CN202111642961.9A CN202111642961A CN116414219A CN 116414219 A CN116414219 A CN 116414219A CN 202111642961 A CN202111642961 A CN 202111642961A CN 116414219 A CN116414219 A CN 116414219A
Authority
CN
China
Prior art keywords
target area
infrared sensor
determining
terminal equipment
operation corresponding
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
CN202111642961.9A
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.)
Hainan Palm Energy Media Co ltd
Original Assignee
Hainan Palm Energy Media Co 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 Hainan Palm Energy Media Co ltd filed Critical Hainan Palm Energy Media Co ltd
Priority to CN202111642961.9A priority Critical patent/CN116414219A/en
Publication of CN116414219A publication Critical patent/CN116414219A/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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/941Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated using an optical detector
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure relates to a processing method, a processing device, an electronic device and a medium of a terminal device; wherein the method comprises the following steps: determining that the infrared sensor is shielded, and acquiring shielding time of the infrared sensor; determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor; and triggering the target area based on the triggering operation corresponding to the target area. According to the embodiment of the disclosure, the key design cost of the terminal equipment can be saved, meanwhile, the storage space of devices of the terminal equipment is reduced, and the model weight and the model size of the terminal equipment are effectively optimized.

Description

Terminal equipment processing method and device, electronic equipment and medium
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a processing method and device of terminal equipment, electronic equipment and a medium.
Background
At present, the key-press modes of the terminal equipment mainly can be divided into two types, namely a mechanical key-press and a capacitance sensing key-press, and the terminal equipment can be controlled by the key-press, such as starting up, screen-off and playing state of music such as pause/play.
Wherein, the mechanical key can be realized by using a peripheral key device, such as an external keyboard; the capacitive sensing key may be implemented using an internal capacitive sensing device integral with the terminal device, such as a touch screen.
However, the above-mentioned key manner requires a dedicated key chip or physical device to support the control of the terminal device, which increases the hardware design cost of the terminal device, and makes it difficult to deploy the key chip or physical device under the condition that some wiring and device space of the terminal device is limited.
Disclosure of Invention
In order to solve the technical problems, the present disclosure provides a processing method, an apparatus, an electronic device, and a medium for a terminal device.
In a first aspect, the present disclosure provides a method for processing a terminal device, including:
determining that an infrared sensor is shielded, and acquiring shielding time of the infrared sensor;
determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor;
and triggering the target area based on the triggering operation corresponding to the target area.
Optionally, detecting that the shielding duration is in a preset first duration range;
the determining triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor comprises the following steps:
determining a triggering operation corresponding to a target area of the terminal equipment as a first preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
And executing the first preset operation on the target area.
Optionally, detecting that the shielding duration is in a preset second duration range;
before determining the triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor, the method further comprises the following steps:
increasing the current count value by a first preset value to obtain a target count value;
the determining triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor comprises the following steps:
and determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value.
Optionally, the determining, according to the shielding duration of the infrared sensor and the target count value, a trigger operation corresponding to a target area of the terminal device includes:
determining that the target count value is less than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a second preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
and executing the first preset operation on the target area.
Optionally, detecting that the shielding duration is in a preset third duration range;
The step of determining the triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value comprises the following steps:
determining that the target count value is greater than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as double-click third preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
and executing the third preset operation on the target area.
Optionally, the method further comprises:
determining that the target count value is smaller than the first preset value;
and increasing the target count value by the first preset value to obtain an increased target count value, so as to determine the triggering operation corresponding to the target area of the terminal equipment according to the target count value.
Optionally, the method further comprises:
detecting that the shielding duration is in a preset fourth duration range;
setting the target count value to a second preset value to re-determine that the infrared sensor is shielded, and determining triggering operation corresponding to a target area of the terminal equipment according to shielding duration of the infrared sensor.
Optionally, the target area is determined according to the current application scene of the terminal device.
In a second aspect, the present disclosure provides a processing method of a terminal device, including:
the acquisition module is used for determining that the infrared sensor is shielded and acquiring the shielding duration of the infrared sensor;
the determining module is used for determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor;
and the triggering module is used for triggering the target area based on the triggering operation corresponding to the target area.
Optionally, detecting that the shielding duration is in a preset first duration range;
the determining module is specifically configured to:
determining a triggering operation corresponding to a target area of the terminal equipment as a first preset operation;
the triggering module is specifically used for:
and executing the first preset operation on the target area.
Optionally, detecting that the shielding duration is in a preset second duration range;
the determining module is further used for increasing the current count value by a first preset value to obtain a target count value;
the determining module is specifically configured to:
and determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value.
Optionally, the determining module is specifically configured to:
Determining that the target count value is less than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a second preset operation;
the triggering module is specifically used for:
and executing the second preset operation on the target area.
Optionally, detecting that the shielding duration is in a preset third duration range;
the determining module is specifically configured to:
determining that the target count value is greater than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a third preset operation;
the triggering module is specifically used for:
and executing the third preset operation on the target area.
Optionally, the determining module is further configured to determine that the target count value is smaller than the first preset value;
the determining module is further configured to increase the target count value by the first preset value, and obtain an increased target count value, so as to determine a trigger operation corresponding to the target area of the terminal device according to the target count value.
Optionally, the method further comprises: the device comprises a detection module and a setting module;
the detection module is used for detecting that the shielding duration is in a preset fourth duration range;
the setting module is used for setting the target count value to be a second preset value so as to redetermine that the infrared sensor is shielded, and determining triggering operation corresponding to a target area of the terminal equipment according to shielding duration of the infrared sensor.
Optionally, the target area is determined according to the current application scene of the terminal device.
In a third aspect, the present disclosure also provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the processing method of the terminal device according to any one of the embodiments of the present invention.
In a fourth aspect, the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements a processing method of a terminal device according to any one of the embodiments of the present invention.
In the embodiment of the disclosure, whether a user triggers or not can be determined through the shielding state of the infrared sensor, when the infrared sensor is shielded, the shielding time of the infrared sensor is obtained, the triggering operation corresponding to the target area of the terminal equipment is determined according to the shielding time of the infrared sensor, the key triggering of the terminal equipment by the user is simulated, the triggering operation corresponding to the target area is based on the triggering operation corresponding to the target area, the target area is triggered, the user does not need to directly contact the terminal equipment, the user can interact with the terminal equipment within a certain distance, the key design cost of the terminal equipment is saved, meanwhile, the device storage space of the terminal equipment is also reduced, and the model weight and the model size of the terminal equipment are effectively optimized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flow chart of a processing method of a terminal device provided in an embodiment of the disclosure;
fig. 2 is a schematic diagram of an operating principle of an infrared sensor according to an embodiment of the disclosure;
fig. 3 is a flowchart of another processing method of a terminal device according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a processing method of another terminal device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a processing apparatus of a terminal device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
When the key operation is needed, the current terminal equipment is mainly realized by a mechanical key or a capacitive sensing key.
For example, the terminal device may be a mobile power supply, and physical keys, such as a switch key, are disposed on the mobile power supply, and the short press/long press may control the on/off of the mobile power supply, where the switch key is a mechanical key disposed on the mobile power supply.
However, in the implementation process of the above-mentioned key manner, a corresponding device needs to be deployed inside the mobile terminal to support the terminal device to control through the key, so that the hardware design cost of the terminal device can be increased, and meanwhile, the production volume/size of the terminal device can be increased.
The present disclosure provides a processing method, an apparatus, an electronic device, and a medium for a terminal device, capable of determining whether there is a user trigger by using a blocking state of an infrared sensor, acquiring a blocking duration of the infrared sensor when determining that the infrared sensor is blocked, determining a triggering operation corresponding to a target area of the terminal device according to the blocking duration of the infrared sensor, simulating a key trigger of the terminal device by a user, and triggering the target area based on the triggering operation corresponding to the target area, wherein the user does not need to directly contact the terminal device, and can interact with the terminal device within a certain distance, thereby saving key design cost of the terminal device, reducing a device storage space of the terminal device, and effectively optimizing model weight and model size of the terminal device.
See in particular fig. 1.
Fig. 1 is a flowchart of a processing method of a terminal device according to an embodiment of the present disclosure. The method of the embodiment may be performed by a processing device of the terminal device, where the device may be implemented in hardware and/or software, and may be configured in an electronic device. The processing method of the terminal device described in any embodiment of the present application may be implemented. As shown in fig. 1, the method specifically includes the following steps:
S110, determining that the infrared sensor is shielded, and acquiring shielding duration of the infrared sensor.
The infrared sensor can be an infrared transceiver, can be deployed in the terminal equipment and is integrated with the terminal equipment, and when a target object approaches the terminal equipment, the infrared sensor can acquire a signal and send the signal to the terminal equipment for shielding judgment.
The schematic diagram of the working principle of the infrared sensor can be exemplarily shown in fig. 2.
In fig. 2, a target object other than a terminal device and an infrared sensor are included, wherein the infrared sensor may include two signal processing ports and two signal transmission ports.
Wherein the signal processing port may comprise: the infrared sensor comprises a transmitting end and a receiving end, wherein the transmitting end can transmit infrared signals to a target object, and the receiving end can receive the infrared signals returned by the target object, so that the relative position information of the target object and the infrared sensor can be judged.
Wherein, the signal transmission port may include: the input end and the output end, the signal corresponding to the relative position information (such as shielding area) of the target object and the infrared sensor which can be detected by the input end is converted into the signal which can be identified by the terminal equipment, and the signal is sent to the terminal equipment by the output end.
For example, when the target object is close to the terminal device, the infrared sensor may acquire the detected shielding data and send the shielding data to the terminal device, so that the terminal device determines the shielding duration of the infrared sensor according to the shielding device, where the shielding data may include a start shielding time and a stop shielding time, and the terminal device may determine a time difference between the start shielding time and the stop shielding time as the shielding duration of the infrared sensor.
Wherein the target object may comprise: finger, arm, or other object, etc.
When the terminal equipment does not have the infrared sensor, the infrared sensor can be arranged at a preset position on the outer side of the terminal equipment so as to be in signal communication with the terminal equipment, so that the terminal equipment can judge the shielding state of the terminal equipment.
For example, when the target object is close to the terminal device, the infrared sensor at the outer side of the terminal device may acquire the detected shielding data, and send the shielding data to the terminal device through communication connection with the terminal device, so that the terminal device determines a shielding duration of the infrared sensor according to the shielding device, where the shielding data may include a start shielding time and a stop shielding time, and the terminal device may determine a time difference between the start shielding time and the stop shielding time as the shielding duration of the infrared sensor.
In addition, the shielding data detected by the infrared sensor may further include: the area ratio of the infrared sensor blocked by the target object may be a ratio between an area of the infrared sensor blocked by the target object and all scan areas of the infrared sensor.
Wherein, a decision threshold value can be preset for deciding whether the infrared sensor is blocked or not.
For example, when the ratio of the area of the infrared sensor blocked by the target object is smaller than a preset determination threshold, the blocking state of the infrared sensor is determined to be non-blocked, or when the ratio of the area of the infrared sensor blocked by the target object is greater than or equal to the preset determination threshold, the blocking state of the infrared sensor is determined to be blocked.
Therefore, when the terminal equipment judges the shielding duration of the infrared sensor, the detection duration in a non-shielding state can be filtered through the preset judging threshold, so that the terminal equipment can accurately judge the shielding intention of the target object, and the interaction sensitivity of the terminal equipment is effectively improved.
S120, determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor.
The target area of the terminal device may be a trigger area corresponding to a physical key of the terminal device and a trigger area corresponding to a capacitive sensing virtual key.
The triggering operation of the target area of the terminal device may include, but is not limited to: long press, single click (e.g., short press), double click, etc.
It should be noted that, the long press/short press mentioned in this disclosure may refer to a preset time threshold to distinguish the time.
For example, if the trigger duration of the trigger operation on the target area of the terminal device is greater than the preset time threshold, it may be determined that the trigger operation on the target area of the terminal device is a long press, or if the trigger duration of the trigger operation on the target area of the terminal device is less than or equal to the preset time threshold, it may be determined that the trigger operation on the target area of the terminal device is a short press (e.g., a single click).
The double click can be understood as a two-time short pressing action within a preset period, the preset period can be set based on different applicable scenes, and the specific range of the preset period is not limited in the present disclosure.
Optionally, the target area may be determined according to a current application scenario of the terminal device.
For example, the terminal device may be an audio playing device, and the current application scenario of the audio playing device may include: the audio playing device is provided with a plurality of physical keys, for example, the audio playing device can correspond to a first physical key, the first physical key can control audio to pause/play, the device standby scene can correspond to a second physical key, and the device on-off scene can correspond to a third physical key.
It should be noted that the first physical key, the second physical key and the third physical key may belong to the same physical key in different application scenarios, so as to implement a multiplexing function of a single key, thereby saving a physical hardware design of the device.
When the current application scene of the audio playing device is in the audio playing scene, the target area of the terminal device is a triggerable area corresponding to the first physical key, or when the current application scene of the audio playing device is in the device standby scene, the target area of the terminal device is a triggerable area corresponding to the second physical key, or when the current application scene of the audio playing device is in the device shutdown scene, the target area of the terminal device is a triggerable area corresponding to the third physical key.
It should be noted that, when the first physical key, the second physical key, and the third physical key belong to the same physical key, the triggerable area corresponding to the first physical key, the triggerable area corresponding to the second physical key, and the triggerable area corresponding to the third physical key may be the same.
Therefore, the target area corresponding to the current application scene can be accurately positioned based on the current application scene of the terminal equipment, and the terminal equipment can be accurately controlled conveniently through the shielding duration of the infrared sensor.
S130, triggering the target area based on the triggering operation corresponding to the target area.
In combination with the above example, when the current application scenario of the audio playing device is in the audio playing scenario and the current playing state of the terminal device is in playing, if the determined triggering operation corresponding to the target area is a short press, the short press operation may be performed on the triggerable area corresponding to the first physical key, and the current playing state of the terminal device is switched from playing to suspending, or the current playing state of the terminal device is in suspending, and if the determined triggering operation corresponding to the target area is a short press, the short press operation may be performed on the triggerable area corresponding to the first physical key, and the current playing state of the terminal device is switched from suspending to playing.
When the current application scene of the audio playing device is in the device standby scene, and the current standby state of the terminal device is in a bright screen, if the determined triggering operation corresponding to the target area is a short press, the short press operation can be performed on the triggerable area corresponding to the second physical key, the current standby state of the terminal device is switched from bright screen to off screen, or the current standby state of the terminal device is in off screen, if the determined triggering operation corresponding to the target area is a short press, the short press operation can be performed on the triggerable area corresponding to the second physical key, and the current standby state of the terminal device is switched from off screen to bright screen.
When the current application scene of the audio playing device is in the device on-off scene, and the current on-off state of the terminal device is in the off state, if the determined triggering operation corresponding to the target area is long-press, the long-press operation can be performed on the triggerable area corresponding to the third physical key, the current on-off state of the terminal device is switched from the off state to the on state, or the current on-off state of the terminal device is in the on state, if the determined triggering operation corresponding to the target area is long-press, the long-press operation can be performed on the triggerable area corresponding to the third physical key, and the current on-off state of the terminal device is switched from the on state to the off state.
According to the processing method of the terminal equipment, whether the user triggers or not can be determined through the shielding state of the infrared sensor, when the infrared sensor is shielded, the shielding time of the infrared sensor is obtained, the triggering operation corresponding to the target area of the terminal equipment is determined according to the shielding time of the infrared sensor, the key triggering of the user on the terminal equipment is simulated, the target area is triggered based on the triggering operation corresponding to the target area, the user does not need to directly contact the terminal equipment, interaction with the terminal equipment within a certain distance is achieved, the key design cost of the terminal equipment is saved, meanwhile, the device storage space of the terminal equipment is reduced, and the model weight and the model size of the terminal equipment are effectively optimized.
Fig. 3 is a flowchart of another processing method of a terminal device according to an embodiment of the present disclosure. The present embodiment is based on the foregoing embodiment, where when it is detected that the occlusion duration is in a preset first time range, the first time range may be: t is more than or equal to 1s, and t is the shielding duration.
One possible implementation of S120 is as follows:
s1211, determining a triggering operation corresponding to a target area of the terminal equipment as a first preset operation according to the shielding duration of the infrared sensor.
When the shielding time of the infrared sensor is detected to be longer than 1s, a manipulator (such as a user) of the target object can be considered to have a continuous key requirement, and a triggering operation corresponding to a target area of the terminal device can be determined to be a first preset operation.
Further, one possible implementation of S130 is as follows:
s1311, performing a first preset operation on the target area.
When the first preset operation corresponds to the long-press operation, the terminal equipment can execute the long-press operation on the target area, namely long-press of the physical keys corresponding to the target area by the user can be simulated/realized, and therefore function control on the target area of the terminal equipment under no touch is realized.
For example, when the shielding duration of the infrared sensor is detected to be 2s, it is determined that the triggering operation corresponding to the target area of the terminal device is long press, wherein if the target area is the triggerable area corresponding to the on-off function key, the operation of the on-off function key can be triggered by long press, so that the on-off operation of the terminal device through the infrared sensing signal is effectively realized.
Fig. 4 is a flowchart of a processing method of another terminal device according to an embodiment of the present disclosure. The embodiment is based on the foregoing embodiment, where when it is detected that the occlusion duration is in a preset second duration range, the second duration range may be: and the time interval is 400ms, t is more than or equal to 200ms, and t is the shielding time.
Further, before S120, the method of this embodiment may further include:
and S111, increasing the current count value by a first preset value to obtain a target count value.
When the infrared sensor reports the shielding duration once, the terminal device can restart the timer, and the current count value of the timer is set to be the initial count value, namely, the current count value of the counter can be set to be 0.
The first preset value may be set to 1, and specific setting of the first preset value may be adjusted based on different detection requirements, which is not limited in this disclosure.
For example, when the shielding duration of the infrared sensor is detected to be 300ms, the terminal device may start the counter, clear the current count value of the counter to 0, and perform the 1-adding operation, so as to obtain the target count value of 1.
The count value can effectively represent the shielding times of the infrared sensor by the target object, so that different shielding control requirements of the target object can be effectively distinguished.
One possible implementation of S120 is as follows:
s1221, determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value.
The terminal equipment can divide a finer distinction for triggering operation corresponding to a target area of the terminal equipment by combining the shielding duration of the infrared sensor and the target count value, so that the sensitivity of controlling the terminal equipment through the infrared sensor is further increased.
The shielding duration of the infrared sensor can correspond to at least one target count value.
For example, the shielding duration of the infrared sensor is 300ms, which corresponds to three target count values, namely a count value 1, a count value 2 and a count value 3, and the triggering operation corresponding to the target area of the terminal device can be determined to be a first triggering operation according to the shielding duration of the infrared sensor and the count value 1, or the triggering operation corresponding to the target area of the terminal device can be determined to be a second triggering operation according to the shielding duration of the infrared sensor and the count value 2, or the triggering operation corresponding to the target area of the terminal device can be determined to be a third triggering operation according to the shielding duration of the infrared sensor and the count value 3.
Wherein, optionally, according to the shielding duration of the infrared sensor and the target count value, determining the triggering operation corresponding to the target area of the terminal device includes:
determining that the target count value is smaller than or equal to a first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a second preset operation;
triggering the target area based on the triggering operation corresponding to the target area, including:
and executing a second preset operation on the target area.
The first preset value may be 1, so that under the shielding duration of the infrared sensor, according to the comparison result of the target count value and 1, the actual requirement of the target object is estimated, and the triggering operation corresponding to the target area of the terminal device is measured.
For example, when the second preset operation corresponds to a click operation and it is determined that the target count value is 1 and the target area of the terminal device is the triggerable area corresponding to the pause function key, it may be determined that the trigger operation corresponding to the target area of the terminal device is a click, and the click operation is performed on the triggerable area corresponding to the pause function key to switch the current display state of the terminal device, for example, to switch the current display state of the terminal device from play to pause, or to switch the current display state of the terminal device from pause to play.
Therefore, when the shielding time length of the infrared sensor is determined to be within the second time length range, the triggering operation corresponding to the target area of the terminal equipment can be effectively determined by combining the target count value, and the triggering operation is utilized to respond to the target area.
Based on the description of the foregoing embodiment, optionally, when the terminal device detects that the occlusion duration is in a preset third duration range, the third duration range may be: 1s is more than or equal to t is more than or equal to 400ms, and t is the shielding duration.
According to the shielding duration of the infrared sensor and the target count value, determining triggering operation corresponding to the target area of the terminal equipment, wherein the triggering operation comprises the following steps:
determining that the target count value is greater than or equal to a first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a third preset operation;
triggering the target area based on the triggering operation corresponding to the target area, including:
and executing a third preset operation on the target area.
When the shielding duration of the infrared sensor is in a preset third duration range, it is determined that the target count value is greater than or equal to a first preset value, the user can be considered to have the requirement of multiple clicks, and the triggering operation corresponding to the target area of the terminal equipment can be determined to be double-click.
For example, when the shielding duration of the infrared sensor is detected to be 600ms and the target area of the terminal device is a triggerable area corresponding to the virtual key of the screen capturing function/the physical key of the screen capturing function, it may be determined that the triggering operation corresponding to the target area of the terminal device is double-click, and the double-click operation may be performed on the triggerable area corresponding to the virtual key of the screen capturing function/the physical key of the screen capturing function, so as to implement the screen capturing function, for example, the double-click operation is performed on the triggerable area corresponding to the virtual key of the screen capturing function/the physical key of the screen capturing function, so as to obtain the screen capturing interface after the screen capturing process on the current interface of the terminal device.
Therefore, when the shielding time length of the infrared sensor is determined to be within the third time length range, the triggering operation corresponding to the target area of the terminal equipment can be effectively determined by combining the target count value, and the triggering operation is utilized to respond to the target area.
It should be noted that the first preset operation, the second preset operation, and the third preset operation mentioned above may include, but are not limited to: single click, double click, and long press.
The first preset operation, the second preset operation and the third preset operation can respectively correspond to any one of single click, double click and long press, and the three operations respectively correspond to different operations; that is, when the first preset operation is long pressing, the second preset operation may correspond to a single click, and the third preset operation may correspond to a double click.
Wherein, optionally, the method of this embodiment further includes:
determining that the target count value is smaller than a first preset value;
and increasing the target count value by a first preset value to obtain an increased target count value.
Wherein the first preset value may be 1.
When the shielding duration of the infrared sensor is in a preset third duration range, if the target count value is determined to be smaller than the first preset value, the user intention is not recognized, and any triggering operation for the target area of the terminal equipment is not determined.
The target count value is increased by a first preset value, so that an increased target count value is obtained, and the increased target count value can be used for continuing to determine triggering operation corresponding to a target area of the terminal equipment according to the target count value.
The target count value can be increased by 1, the current recorded target count value of the terminal equipment is updated in value, and the detection of the shielding duration of the infrared sensor is continued, so that the triggering operation corresponding to the target area of the terminal equipment is redetermined based on the detected new shielding duration of the infrared sensor and the new shielding duration, and the terminal equipment can conveniently and accurately respond for a plurality of times based on the multiple times of operation of a user.
Wherein, optionally, the method of this embodiment further includes:
Detecting that the shielding duration is in a preset fourth duration range;
the target count value is set to a second preset value.
Wherein the fourth time range may be: t is less than or equal to 200ms, and t is the shielding time.
The time range corresponding to the fourth time range is smaller, and when the shielding time of the infrared sensor is detected to be in a period with a smaller time range, the use requirement of the user on the terminal equipment is difficult to be estimated effectively, and the detection and identification process is considered to be invalid.
The method comprises the steps of setting a target count value to zero, carrying out zero clearing processing on the target count value after invalid detection to identify and determine that the infrared sensor is shielded again, and determining triggering operation corresponding to a target area of the terminal equipment according to shielding duration of the infrared sensor.
For example, when the shielding duration of the infrared sensor is detected to be 50ms, the error touch behavior of the user may affect the signal acquisition of the infrared sensor, for example, the terminal device is a mobile phone, the finger of the user is rapidly scratched on the surface of the terminal device, or an object falls onto the terminal device and is rapidly scratched off the terminal device, which may trigger the detection of the infrared sensor, and at this time, the shielding signal may also be acquired by the infrared sensor, so as to be reported to the terminal device.
In order to avoid some false detections of the infrared sensor, the terminal equipment needs to perform validity judgment on the shielding duration of the infrared sensor, so that the problem that the response of the terminal equipment is wrong due to some invalid shielding duration is avoided, and the interaction capability of the terminal equipment is further improved.
Fig. 5 is a schematic structural diagram of a processing apparatus of a terminal device according to an embodiment of the present disclosure; the device is configured in the electronic equipment, and can realize the processing method of the terminal equipment. The device specifically comprises the following steps:
an obtaining module 510, configured to determine that an infrared sensor is blocked, and obtain a blocking duration of the infrared sensor;
a determining module 520, configured to determine a trigger operation corresponding to a target area of the terminal device according to a shielding duration of the infrared sensor;
and the triggering module 530 is configured to trigger the target area based on a triggering operation corresponding to the target area.
In this embodiment, optionally, it is detected that the shielding duration is in a preset first duration range;
the determining module 520 is specifically configured to:
determining a triggering operation corresponding to a target area of the terminal equipment as a first preset operation;
the triggering module 530 is specifically configured to:
And executing the first preset operation on the target area.
In this embodiment, optionally, it is detected that the occlusion duration is within a preset second duration range;
the determining module 520 is further configured to increment the current count value by a first preset value to obtain a target count value;
the determining module 520 is specifically configured to:
and determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value.
In this embodiment, the optional determining module 520 is specifically configured to:
determining that the target count value is less than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a second preset operation;
the triggering module 530 is specifically configured to:
and executing the second preset operation on the target area.
In this embodiment, optionally, it is detected that the shielding duration is within a preset third duration range;
the determining module 520 is specifically configured to:
determining that the target count value is greater than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a third preset operation;
the triggering module 530 is specifically configured to:
And executing the third preset operation on the target area.
In this embodiment, optionally, the determining module 520 is further configured to determine that the target count value is less than the first preset value;
the determining module 520 is further configured to increment the target count value by the first preset value to obtain an incremented target count value, so as to determine a trigger operation corresponding to the target area of the terminal device according to the target count value.
In this embodiment, optionally, the apparatus of this embodiment further includes: the device comprises a detection module and a setting module;
the detection module is used for detecting that the shielding duration is in a preset fourth duration range;
the setting module is used for setting the target count value to be a second preset value so as to redetermine that the infrared sensor is shielded, and determining triggering operation corresponding to a target area of the terminal equipment according to shielding duration of the infrared sensor.
In this embodiment, optionally, the target area is determined according to a current application scenario of the terminal device.
By means of the processing device of the terminal equipment, whether a user triggers or not can be determined through the shielding state of the infrared sensor, when the infrared sensor is shielded, shielding time of the infrared sensor is obtained, triggering operation corresponding to a target area of the terminal equipment is determined according to the shielding time of the infrared sensor, key triggering of the terminal equipment by a user is simulated, the target area is triggered based on the triggering operation corresponding to the target area, the user does not need to directly contact the terminal equipment, interaction with the terminal equipment within a certain distance is achieved, key design cost of the terminal equipment is saved, device storage space of the terminal equipment is reduced, and model weight and model size of the terminal equipment are effectively optimized.
The processing device of the terminal equipment provided by the embodiment of the invention can execute the processing method of the terminal equipment provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device may include a server or a mobile power supply cabinet. As shown in fig. 6, the electronic device includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of processors 610 in the electronic device may be one or more, one processor 610 being taken as an example in fig. 6; the processor 610, memory 620, input device 630, and output device 640 in the electronic device may be connected by a bus or other means, for example in fig. 6.
The memory 620 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the processing method of the terminal device in the embodiment of the present invention. The processor 610 executes various functional applications of the electronic device and data processing by running software programs, instructions and modules stored in the memory 620, that is, implements the processing method of the terminal device provided by the embodiment of the present invention.
Memory 620 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 620 may further include memory remotely located relative to processor 610, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device, which may include a keyboard, mouse, etc. The output device 640 may include a display device such as a display screen.
The disclosed embodiments also provide a storage medium containing computer executable instructions, which when executed by a computer processor, are used to implement the processing method of the terminal device provided by the embodiments of the present invention.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the processing method of the terminal device provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above-mentioned embodiments of the search apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method for processing a terminal device, comprising:
determining that an infrared sensor is shielded, and acquiring shielding time of the infrared sensor;
determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor;
and triggering the target area based on the triggering operation corresponding to the target area.
2. The method of claim 1, wherein the occlusion period is detected to be within a preset first period range;
the determining triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor comprises the following steps:
Determining a triggering operation corresponding to a target area of the terminal equipment as a first preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
and executing the first preset operation on the target area.
3. The method of claim 1, wherein the occlusion period is detected to be within a preset second period range;
before determining the triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor, the method further comprises the following steps:
increasing the current count value by a first preset value to obtain a target count value;
the determining triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor comprises the following steps:
and determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value.
4. A method according to claim 3, wherein the determining, according to the shielding duration of the infrared sensor and the target count value, a trigger operation corresponding to a target area of the terminal device includes:
determining that the target count value is less than or equal to the first preset value;
Determining triggering operation corresponding to a target area of the terminal equipment as a second preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
and executing the second preset operation on the target area.
5. A method according to claim 3, wherein the occlusion period is detected to be within a preset third period of time;
the step of determining the triggering operation corresponding to the target area of the terminal equipment according to the shielding duration of the infrared sensor and the target count value comprises the following steps:
determining that the target count value is greater than or equal to the first preset value;
determining triggering operation corresponding to a target area of the terminal equipment as a third preset operation;
the triggering the target area based on the triggering operation corresponding to the target area includes:
and executing the third preset operation on the target area.
6. The method as recited in claim 5, further comprising:
determining that the target count value is smaller than the first preset value;
and increasing the target count value by the first preset value to obtain an increased target count value, so as to determine the triggering operation corresponding to the target area of the terminal equipment according to the target count value.
7. A method according to claim 3, further comprising:
detecting that the shielding duration is in a preset fourth duration range;
setting the target count value to a second preset value to re-determine that the infrared sensor is shielded, and determining triggering operation corresponding to a target area of the terminal equipment according to shielding duration of the infrared sensor.
8. The method of claim 1, wherein the target area is determined according to a current application scenario of the terminal device.
9. A processing apparatus of a terminal device, comprising:
the acquisition module is used for determining that the infrared sensor is shielded and acquiring the shielding duration of the infrared sensor;
the determining module is used for determining triggering operation corresponding to a target area of the terminal equipment according to the shielding duration of the infrared sensor;
and the triggering module is used for triggering the target area based on the triggering operation corresponding to the target area.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of processing a terminal device according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a processing method of a terminal device according to any of claims 1-8.
CN202111642961.9A 2021-12-29 2021-12-29 Terminal equipment processing method and device, electronic equipment and medium Pending CN116414219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111642961.9A CN116414219A (en) 2021-12-29 2021-12-29 Terminal equipment processing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111642961.9A CN116414219A (en) 2021-12-29 2021-12-29 Terminal equipment processing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116414219A true CN116414219A (en) 2023-07-11

Family

ID=87058122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111642961.9A Pending CN116414219A (en) 2021-12-29 2021-12-29 Terminal equipment processing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116414219A (en)

Similar Documents

Publication Publication Date Title
CN106775084B (en) A kind of false-touch prevention method, device and mobile terminal of touch screen
CN106855782B (en) A kind of method, apparatus and terminal for preventing from accidentally touching
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
CN106775087B (en) Touch screen control method and device of mobile terminal and mobile terminal
CN106855784A (en) Prevent method, device and the terminal of touch key-press false triggering
CN108710469B (en) Application program starting method, mobile terminal and medium product
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
CN106406904A (en) Information processing method, electronic equipment and information processing device
CN107340910B (en) Touch key response method and device, storage medium and electronic equipment
CN106708263A (en) Method and device for preventing mistaken touch of touch screens and mobile terminal
KR20170072904A (en) Method, system for implementing operation of mobile terminal according to touching signal and mobile terminal
CN106681636B (en) Method and device for preventing false touch and mobile terminal
US20130222338A1 (en) Apparatus and method for processing a plurality of types of touch inputs
CN106855783A (en) A kind of method of false-touch prevention, device and mobile terminal
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN108647505A (en) Unlocked by fingerprint method and Related product
CN106681555A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN107105090B (en) A kind of control method, device and the mobile terminal of suspension button
CN107463290A (en) Response control mehtod, device, storage medium and the mobile terminal of touch operation
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
CN106708520A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN108399042B (en) Touch identification method, device and system
CN107357458A (en) Response method, device, storage medium and the mobile terminal of touch key-press
CN105867822B (en) Information processing method and electronic equipment
CN104751586A (en) Terminal, information processing method and information processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication