CN111064847B - False touch prevention method and device, storage medium and electronic equipment - Google Patents

False touch prevention method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111064847B
CN111064847B CN201911286808.XA CN201911286808A CN111064847B CN 111064847 B CN111064847 B CN 111064847B CN 201911286808 A CN201911286808 A CN 201911286808A CN 111064847 B CN111064847 B CN 111064847B
Authority
CN
China
Prior art keywords
equipment
holding posture
false touch
screen
holding
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.)
Active
Application number
CN201911286808.XA
Other languages
Chinese (zh)
Other versions
CN111064847A (en
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911286808.XA priority Critical patent/CN111064847B/en
Publication of CN111064847A publication Critical patent/CN111064847A/en
Application granted granted Critical
Publication of CN111064847B publication Critical patent/CN111064847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for preventing false touch, a storage medium and electronic equipment.

Description

False touch prevention method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a false touch prevention method and device, a storage medium and electronic equipment.
Background
With the rapid development of electronic equipment, more and more applications appear, when the applications are installed in electronic equipment based on a touch screen, a user can control the applications through the touch screen, due to the development of technologies such as fingerprint under the screen and camera under the screen, the touch screen of the electronic equipment is close to 100% of screen occupation ratio at present, and real full-screen frameless electronic equipment is closer to consumers.
At present, the problem of mistaken touch of holding by both hands can be caused by electronic equipment without a frame, the design of mistaken touch prevention is carried out on the peripheral edges of a screen in the prior art, but the edges of two sides which are not held can not be touched, and the experience of a user is reduced.
Disclosure of Invention
The invention provides a false touch prevention method and device, a storage medium and electronic equipment, which can enable the electronic equipment to intelligently perform false touch prevention operation on a screen according to different holding postures, and improve user experience.
In one aspect, the invention provides a method for preventing false touch:
the false touch prevention method comprises the following steps:
acquiring a holding posture of equipment, wherein the holding posture of the equipment comprises a transverse screen and a vertical screen;
determining an anti-false touch area of the equipment according to the holding posture;
and closing the touch function of the false touch prevention area.
Further preferably, the acquiring a holding posture of the device includes:
calculating the inclination angle of the human face relative to the equipment;
and acquiring the holding posture of the equipment according to the inclination angle.
Further preferably, the acquiring the holding posture of the device according to the inclination angle includes:
acquiring a critical angle of a human face relative to the equipment;
when the inclination angle is smaller than the critical angle, the holding posture of the equipment is vertical screen;
and when the inclination angle is larger than the critical angle, the holding posture of the equipment is a transverse screen.
Further preferably, before acquiring the holding posture of the device, the method further includes:
detecting the induction parameters of a sensor in the equipment;
acquiring the holding posture of the equipment in advance according to the induction parameters;
when the holding gesture is a horizontal screen, detecting the application layout of the current application program;
the holding posture of the equipment is determined secondarily according to the application layout, and the holding posture of the equipment is acquired secondarily in advance.
Further preferably, the false touch prevention area is rectangular, and determining the false touch prevention area of the device according to the holding posture includes:
determining the length of the false touch prevention area according to the holding posture of the equipment;
acquiring structural information of the equipment;
and selecting the width of the false touch prevention area according to the structure information.
In another aspect, the present invention provides a false touch prevention device, including:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring the holding posture of the device, and the holding posture of the device comprises a transverse screen and a vertical screen;
the determining module is used for determining a false touch prevention area of the equipment according to the holding posture;
and the control module is used for closing the touch function of the false touch prevention area.
Further preferably, the obtaining module is specifically configured to:
calculating the inclination angle of the human face relative to the equipment;
and acquiring the holding posture of the equipment according to the inclination angle.
Further preferably, the false touch prevention device further includes an advanced acquisition module, the advanced acquisition module includes:
the first detection unit is used for detecting the induction parameters of the sensor in the equipment;
the first acquisition unit is used for acquiring the holding posture of the equipment in advance according to the induction parameters;
the second detection unit is used for detecting the application layout of the current application program when the holding gesture is a horizontal screen;
a second acquisition unit configured to determine a holding posture of the device twice in advance according to the application layout, and acquire the holding posture of the device twice in advance.
In yet another aspect, the present invention provides a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described anti-false touch methods.
The invention also provides electronic equipment which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the false touch prevention method.
The invention has the beneficial effects that: through the posture of gripping of acquireing equipment, the posture of gripping of this equipment includes horizontal screen and perpendicular screen, confirms the mistake of preventing that horizontal screen and perpendicular screen correspond according to the posture of gripping of horizontal vertical screen again and touches the region, then closes the touch-control function that the mistake that corresponds touched the region, and then can set up two sets of mistake of preventing that correspond and touch the tactics to two kinds of different postures of gripping, can make electronic equipment grip the posture according to the user difference and intelligently prevent the mistake and touch the operation to the screen, improve user experience.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a false touch prevention device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a method for calculating an inclination angle of a human face relative to a device according to an embodiment of the present invention;
FIG. 5 is a schematic view of a scene for holding an electronic device according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for preventing false touch according to a third embodiment of the present invention;
FIG. 7 is a schematic flow chart illustrating a method for preventing false touch according to a third embodiment of the present invention;
fig. 8 is a schematic flow chart of a false touch prevention method according to a fourth embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides electronic equipment.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes a smart phone, a tablet computer, and the like. The electronic device 100 comprises a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102. The processor 101 is a control center of the electronic device 100, connects various parts of the whole electronic device 100 by using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by operating or loading a function module stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device.
In this embodiment, according to the steps in the false touch prevention method provided by the embodiment of the present invention, the processor 101 in the electronic device 100 loads the instruction corresponding to the functional module in the false touch prevention device provided by the present invention from the memory 102 to the processor 101, and the processor 101 runs the functional module stored in the memory 102, thereby implementing various functions.
Referring to fig. 2, fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 200 may include: RF circuitry 210, memory 220, input unit 230, display unit 240, sensor 250, audio circuitry 260, transmission module 270, processor 280, power supply 290, and the like.
The RF circuit 210 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 210 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 210 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE 802.2.access, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Internet Microwave Access (Microwave for Wireless Communication), other suitable protocols for short message service (Max), and any other suitable protocols, and may even include those protocols that have not yet been developed.
The memory 220 may be used to store functional modules and data. The memory 220 stores functional modules including executable codes, and the application programs may constitute various functional modules. The processor 280 executes various functional applications and data processing by executing functional modules stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a functional module (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 220 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 volatile solid state storage device. Accordingly, the memory 220 may also include a memory controller to provide the processor 280 and the input unit 230 access to the memory 220.
The input unit 230 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 230 may include a touch-sensitive surface 231 as well as other input devices 232. The touch-sensitive surface 231, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 231 (e.g., operations by a user on or near the touch-sensitive surface 231 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 231 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and then provides the touch point coordinates to the processor 280, and can receive and execute commands from the processor 280. In addition, the touch-sensitive surface 231 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 230 may comprise other input devices 232 in addition to the touch sensitive surface 231. In particular, other input devices 232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 240 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 200, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 240 may include a Display panel 241, and optionally, the Display panel 241 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 231 may overlay the display panel 241, and when the touch-sensitive surface 231 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 280 to determine the type of the touch event, and then the processor 280 provides a corresponding visual output on the display panel 241 according to the type of the touch event. Although in FIG. 7, the touch-sensitive surface 231 and the display panel 241 are implemented as two separate components for input and output functions, in some embodiments, the touch-sensitive surface 231 may be integrated with the display panel 241 for input and output functions.
The electronic device 200 may also include at least one sensor 250, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 241 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 241 and/or the backlight when the electronic device 200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 200, detailed descriptions thereof are omitted.
Audio circuitry 260 may provide an audio interface between a user and electronic device 200 through speaker 261 and microphone 262. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, and convert the electrical signal into a sound signal by the speaker 261 and output the sound signal; on the other hand, the microphone 262 converts the collected sound signal into an electric signal, which is received by the audio circuit 260 and converted into audio data, which is then processed by the audio data output processor 280, and then transmitted to, for example, another terminal via the RF circuit 210, or the audio data is output to the memory 220 for further processing. The audio circuitry 260 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 200.
The electronic device 200, via the transport module 270 (e.g., Wi-Fi module), may assist the user in emailing, browsing web pages, accessing streaming media, etc., which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 270, it is understood that it does not belong to the essential constitution of the electronic device 200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 280 is a control center of the electronic device 200, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 200 and processes data by operating or executing software programs and/or modules stored in the memory 220 and calling data stored in the memory 220, thereby integrally monitoring the cellular phone. Optionally, processor 280 may include one or more processing cores; in some embodiments, processor 280 may integrate an application processor, which primarily handles operating systems, user interfaces, functional modules, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 280.
Electronic device 200 also includes a power supply 290 (e.g., a battery) for powering the various components, which may be logically coupled to processor 280 via a power management system in some embodiments, such that the functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like. Although not shown, the electronic device 200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
The embodiment of the invention also provides a false touch prevention device applied to the electronic equipment 200.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an anti-false touch device 300 according to an embodiment of the present invention, where the anti-false touch device 300 may be integrated in the electronic device 200, and according to a first embodiment of the present invention, the obtaining module 310, the determining module 320, and the control module 330 in the anti-false touch device 300 may be run by the processor 301 and execute functions thereof, where:
the acquiring module 310 is configured to acquire a holding posture of the device, where the holding posture of the device includes a landscape screen and a portrait screen.
When a user holds the electronic device with both hands, the electronic device generally has two holding postures, namely a landscape holding posture and a portrait holding posture, and the acquisition module 310 in the apparatus 300 can acquire the holding posture of the device.
Preferably, the obtaining module 310 may be specifically configured to:
calculating the inclination angle of the human face relative to the equipment;
and acquiring the holding posture of the equipment according to the inclination angle.
In this embodiment, when a user uses a mobile phone, a device may calculate an inclination angle of a face of the user relative to the device according to a face recognition system, please refer to fig. 4, where fig. 4 is a schematic diagram of a method for calculating an inclination angle of a face relative to a device according to an embodiment of the present invention, and an offset angle of a symmetry axis 402 of the face relative to a vertical center line 403 is an inclination angle of the face relative to a device electronic 401 with reference to the vertical center line 403 of the electronic device 401. The angle of the face relative to the equipment is calculated through the face recognition algorithm, so that the obtained holding posture can be more accurate, and a user can be ensured to use the mobile phone.
Further preferably, the obtaining module 310 may be further specifically configured to:
acquiring a critical angle of a human face relative to the equipment;
when the inclination angle is smaller than the critical angle, the holding posture of the equipment is vertical screen;
when the inclination angle is larger than the critical angle, the holding posture of the equipment is a transverse screen.
In this embodiment, the obtaining module 310 first obtains the critical angle of the apparatus, which may be 45 °. When the inclination angle of the face relative to the electronic equipment is smaller than 45 degrees, the holding posture of the equipment is vertical screen; when the inclination angle of the human face relative to the electronic equipment is larger than 45 degrees, the holding posture of the equipment is a transverse screen. In an angle range, the holding posture of the equipment is judged to be more in line with the habit of using the mobile phone.
A determining module 320, configured to determine a false touch prevention area of the device according to the holding gesture.
The embodiment of the invention provides different anti-false touch modes aiming at different postures of equipment held by a user, and particularly provides different anti-false touch areas on a screen, and the electronic equipment needs to determine the anti-false touch area of the equipment according to the holding posture through the determining module 320.
Referring to fig. 5, fig. 5 is a schematic view of a scene of holding an electronic device according to an embodiment of the present invention, where a holding gesture of the electronic device includes a horizontal screen and a vertical screen, and when the electronic device detects that the holding gesture is a horizontal screen, as shown in a left diagram of fig. 5, areas a on two short sides of the electronic device may be determined as an erroneous touch prevention area; when the electronic device detects that the electronic device is in the portrait screen holding posture, as shown in the right diagram of fig. 5, the two long-side B regions thereof may be determined as the anti-false touch regions.
Preferably, the anti-false-touch area may be a rectangle, specifically, the length of the rectangle with the edge of the electronic device as the anti-false-touch area is set, and then the width of the rectangle is set, and the determining module 320 may include:
and the length determining unit is used for determining the length of the false touch prevention area according to the holding posture of the equipment.
If the holding posture of the equipment is vertical screen, the long edge of the electronic equipment is taken as the length of the false touch prevention area; if the holding posture of the equipment is horizontal screen, the short side of the electronic equipment is taken as the length of the false touch prevention area. The length of the anti-false touch region may be equal to the side length of the electronic device.
A structure acquisition unit for acquiring structure information of the device.
And the width determining unit is used for selecting the width of the false touch prevention area according to the structure information.
The width of the anti-false touch area of the electronic equipment with different structures can be defined through experimental research and test, and the width can be about 2 mm.
The control module 330 is configured to close the touch function of the anti-false touch area.
According to the second embodiment of the present invention, there is also provided a false touch preventing device applied to the electronic device 200, wherein in addition to the obtaining module 310, the device further includes an advanced obtaining module 305, which includes:
the first detection unit 306 is used for detecting the sensing parameters of the sensors in the device.
The sensor may be a three/six-axis gyroscope, and the first detection unit 306 may monitor changes in sensing parameters of the sensor in real time, so as to determine a holding posture of the device in advance.
The sensor may be combined with a gravity sensor, and the gravity sensor may change acceleration at the moment of switching between the horizontal screen and the vertical screen, and may be used as a criterion for switching between the horizontal screen and the vertical screen in the holding posture, that is, if the first detection unit 306 detects that the holding posture of the device is the vertical screen, when the acceleration changes instantaneously, it may be determined that the holding posture of the device is the horizontal screen.
The first obtaining unit 307 is configured to obtain a holding posture of the device in advance according to the sensing parameter.
After the holding posture of the electronic device is determined by the sensing parameters of the sensor, the first obtaining unit 307 is used to obtain the holding posture of the electronic device in advance, and when the holding posture is vertical, the first obtaining unit 307 obtains the holding posture in advance as vertical.
A second detecting unit 308, configured to detect an application layout of the current application program when the holding gesture is a landscape screen.
The system can detect the layout state of the application currently used by the user through the second detection unit 308 to secondarily determine whether the holding posture of the device is a landscape screen.
A second acquiring unit 309 configured to determine the holding posture of the apparatus twice according to the application layout, and acquire the holding posture of the apparatus twice in advance.
When the application layout is a vertical screen, the holding posture acquired by the second acquiring unit 309 in advance for the second time is the vertical screen; when the application layout is a landscape screen, the holding posture of the device is determined to be the landscape screen for the second time, and then the obtaining module 310 continues to obtain the holding posture of the device according to the face angle. The holding posture of the equipment is obtained through the composite detection of the face angle, so that the detection is more accurate, and the electronic equipment is ensured to be used by a user.
The embodiment of the invention has the beneficial effects that: the acquisition module 310 acquires the holding posture of the device, the holding posture of the device includes a horizontal screen and a vertical screen, the determination module 320 can determine the false touch prevention areas corresponding to the horizontal screen and the vertical screen according to the holding posture of the horizontal screen and the vertical screen, then the control module 330 is used for closing the touch control function of the corresponding false touch prevention areas, and then two corresponding sets of false touch prevention strategies can be set for two different holding postures, so that the electronic device can intelligently perform false touch prevention operation on the screen according to different holding postures, and user experience is improved. In a further embodiment, when the advanced acquisition module 305 is added, the vertical screen gesture of the electronic device can be acquired more easily and conveniently.
The embodiment of the present invention further provides a false touch preventing method applied to the false touch preventing device 300 according to the third embodiment of the present invention.
Referring to fig. 6 and 7, fig. 6 is a schematic flow chart of a false touch prevention method according to a third embodiment of the present invention, fig. 7 is another schematic flow chart of the false touch prevention method according to the third embodiment of the present invention, and the step flow in the diagram is specifically realized by the false touch prevention device 300, so that the false touch prevention method is specifically described with reference to the false touch prevention device 300, and includes the following steps:
step S1: the holding posture of the equipment is acquired, and the holding posture of the equipment comprises a horizontal screen and a vertical screen.
When the user holds the electronic device with both hands, the electronic device generally has two holding postures, namely a landscape holding posture and a portrait holding posture, and the step of acquiring the holding posture of the device may be implemented by the acquiring module 310.
Preferably, the step of acquiring the holding posture of the device may specifically include:
step S10: calculating the inclination angle of the human face relative to the equipment;
step S11: and acquiring the holding posture of the equipment according to the inclination angle.
In this embodiment, when a user uses a mobile phone, a device may calculate an inclination angle of a face of the user relative to the device according to a face recognition system, please refer to fig. 4, where fig. 4 is a schematic diagram of a method for calculating an inclination angle of a face relative to a device according to an embodiment of the present invention, and an angle of a symmetry axis 402 of the face relative to a vertical center line 403 is an inclination angle of the face relative to a device electronic 401 with reference to the vertical center line 403 of the electronic device 401.
Further preferably, the "acquiring the holding posture of the device according to the inclination angle" may specifically include:
step S111: acquiring a critical angle of a human face relative to the equipment;
step S112: when the inclination angle is smaller than the critical angle, the holding posture of the equipment is vertical screen;
step S113: when the inclination angle is larger than the critical angle, the holding posture of the equipment is a transverse screen.
In this embodiment, the obtaining module 310 first obtains the critical angle of the apparatus, which may be 45 °. When the inclination angle of the face relative to the electronic equipment is smaller than 45 degrees, the holding posture of the equipment is vertical screen; when the inclination angle of the human face relative to the electronic equipment is larger than 45 degrees, the holding posture of the equipment is a transverse screen. In an angle range, the holding posture of the equipment is judged to be more in line with the habit of using the mobile phone.
Step S2: and determining the false touch prevention area of the equipment according to the holding posture.
The embodiment of the invention provides different anti-false touch modes aiming at different postures of equipment held by a user, and particularly provides different anti-false touch areas on a screen, and the electronic equipment needs to determine the anti-false touch area of the equipment according to the holding posture through the determining module 320.
As shown in fig. 5, the holding gesture of the electronic device includes a landscape screen and a portrait screen, and when the electronic device detects that the holding gesture is a landscape screen holding gesture, as shown in the left diagram of fig. 5, the two short side a areas thereof may be determined as the anti-false touch areas; when the electronic device detects that the electronic device is in the portrait screen holding posture, as shown in the right diagram of fig. 5, the two long-side B regions thereof may be determined as the anti-false touch regions.
Preferably, the anti-false-touch area may be a rectangle, and in particular, taking an edge of the electronic device as a length of the rectangle of the anti-false-touch area, and then setting a width of the rectangle, "determining the anti-false-touch area of the device according to the holding posture" may include:
step S20: and determining the length of the false touch prevention area according to the holding posture of the equipment.
If the holding posture of the equipment is vertical screen, the long edge of the electronic equipment is taken as the length of the false touch prevention area; if the holding posture of the equipment is horizontal screen, the short side of the electronic equipment is taken as the length of the false touch prevention area. The length of the anti-false touch region may be equal to the side length of the electronic device.
Step S21: structural information of the device is acquired.
Step S22: and selecting the width of the false touch prevention area according to the structure information.
The width of the anti-false touch area of the electronic equipment with different structures can be defined through experimental research and test, and the width can be about 2 mm.
Step S3: and closing the touch function of the false touch prevention area.
Referring to fig. 8, fig. 8 is a schematic flow chart of a false touch prevention method according to a fourth embodiment of the present invention.
Before the step of S10 "calculating the inclination angle of the human face relative to the device", the method further includes:
step S101: and detecting the sensing parameters of the sensors in the equipment.
The sensor may be a three/six-axis gyroscope, and the first detection unit 311 may monitor a change of an induction parameter of the sensor in real time, so as to determine a holding posture of the device in advance.
The sensor may be combined with a gravity sensor, and the gravity sensor may change acceleration at the moment of switching between the horizontal screen and the vertical screen, and may be used as a determination basis for switching between the horizontal screen and the vertical screen of the holding posture, that is, if the first detection unit 311 detects that the holding posture of the device is the vertical screen, when the acceleration changes instantaneously, the holding posture of the device may be determined as the horizontal screen in advance.
Step S102: and acquiring the holding posture of the equipment in advance according to the induction parameters.
After the holding posture of the electronic device is determined by the sensing parameters of the sensor, the first obtaining unit 307 is used to obtain the holding posture of the electronic device in advance, and when the holding posture is vertical, the first obtaining unit 307 obtains the holding posture in advance as vertical.
Step S103: when the holding gesture is a landscape screen, an application layout of a current application program is detected.
The system can detect the layout state of the application currently used by the user through the second detection unit 313 to secondarily determine whether the holding posture of the apparatus is a landscape.
Step S104: the holding posture of the equipment is determined twice according to the application layout, and the holding posture of the equipment is acquired in advance twice.
When the application layout is vertical screen, the holding posture acquired by the second acquiring unit 314 in advance for the second time is vertical screen; when the application layout is a landscape screen, the holding posture of the device is determined to be the landscape screen for the second time, and then the obtaining module 310 continues to obtain the holding posture of the device according to the face angle. The holding posture of the equipment is obtained through the composite detection of the face angle, so that the detection is more accurate, and the electronic equipment is ensured to be used by a user.
The embodiment of the invention has the beneficial effects that: the electronic equipment comprises a horizontal screen, a vertical screen, a touch area, a touch control function and two sets of corresponding anti-false touch strategies, wherein the anti-false touch area corresponds to the horizontal screen and the vertical screen, the touch control function corresponds to the touch area, and then the touch control function can be used for aiming at two different holding postures.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded to a processor to execute the steps in any one of the false touch prevention methods provided by the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any of the false touch prevention methods provided in the embodiments of the present invention, the beneficial effects that any of the false touch prevention methods provided in the embodiments of the present invention can achieve may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description of the embodiments is only for helping understanding the technical solution of the present invention and its core idea; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. An anti-false touch method, characterized in that the anti-false touch method comprises:
detecting the induction parameters of a sensor in the equipment;
acquiring the holding posture of the equipment in advance according to the induction parameters;
when the holding gesture is a horizontal screen, detecting the application layout of the current application program;
secondarily judging the holding posture of the equipment according to the application layout, and secondarily and previously acquiring the holding posture of the equipment;
when the holding posture is a transverse screen, calculating the inclination angle of the human face relative to the equipment;
acquiring the holding posture of the equipment according to the inclination angle, wherein the holding posture of the equipment comprises a transverse screen and a vertical screen;
determining an anti-false touch area of the equipment according to the holding posture;
and closing the touch function of the false touch prevention area.
2. The method for preventing false touch according to claim 1, wherein the obtaining of the holding posture of the device according to the inclination angle includes:
acquiring a critical angle of a human face relative to the equipment;
when the inclination angle is smaller than the critical angle, the holding posture of the equipment is vertical screen;
and when the inclination angle is larger than the critical angle, the holding posture of the equipment is a transverse screen.
3. The false touch prevention method of claim 1, wherein the false touch prevention region is rectangular, and wherein determining the false touch prevention region of the device based on the holding gesture comprises:
determining the length of the false touch prevention area according to the holding posture of the equipment;
acquiring structural information of the equipment;
and selecting the width of the false touch prevention area according to the structure information.
4. An anti-false touch device, comprising:
the first detection unit is used for detecting the induction parameters of the sensor in the equipment;
the first acquisition unit is used for acquiring the holding posture of the equipment in advance according to the induction parameters;
the second detection unit is used for detecting the application layout of the current application program when the holding gesture is a horizontal screen;
a second acquisition unit configured to secondarily determine a holding posture of the device according to the application layout, and secondarily acquire the holding posture of the device in advance;
the acquisition module is used for calculating an inclination angle of a human face relative to the equipment when the holding posture is a horizontal screen, and acquiring the holding posture of the equipment according to the inclination angle, wherein the holding posture of the equipment comprises a horizontal screen and a vertical screen;
the determining module is used for determining a false touch prevention area of the equipment according to the holding posture;
and the control module is used for closing the touch function of the false touch prevention area.
5. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the anti-false touch method of any one of claims 1 to 3.
6. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the false touch prevention method according to any one of claims 1 to 3.
CN201911286808.XA 2019-12-14 2019-12-14 False touch prevention method and device, storage medium and electronic equipment Active CN111064847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911286808.XA CN111064847B (en) 2019-12-14 2019-12-14 False touch prevention method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911286808.XA CN111064847B (en) 2019-12-14 2019-12-14 False touch prevention method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111064847A CN111064847A (en) 2020-04-24
CN111064847B true CN111064847B (en) 2021-05-07

Family

ID=70301793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911286808.XA Active CN111064847B (en) 2019-12-14 2019-12-14 False touch prevention method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111064847B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110762B (en) * 2021-04-20 2023-04-07 Tcl通讯(宁波)有限公司 Touch display device and false touch prevention method thereof
CN115639905B (en) * 2022-08-25 2023-10-27 荣耀终端有限公司 Gesture control method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572245A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Mistouch prevention device and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5927342B2 (en) * 2013-05-28 2016-06-01 京セラドキュメントソリューションズ株式会社 Display device and image forming apparatus
US10691332B2 (en) * 2014-02-28 2020-06-23 Samsung Electronics Company, Ltd. Text input on an interactive display
CN106708520A (en) * 2016-12-16 2017-05-24 广东欧珀移动通信有限公司 Touch screen control method and device of mobile terminal and mobile terminal
CN106775404A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of display interface, device and mobile terminal
CN106855783A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method of false-touch prevention, device and mobile terminal
CN109388262B (en) * 2017-08-04 2022-03-18 荷兰移动驱动器公司 Electronic equipment and false touch prevention method
CN110456938B (en) * 2019-06-28 2021-01-29 华为技术有限公司 False touch prevention method for curved screen and electronic equipment
CN110457885B (en) * 2019-08-08 2022-02-01 维沃移动通信有限公司 Operation method and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572245A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Mistouch prevention device and method

Also Published As

Publication number Publication date
CN111064847A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN106778585B (en) A kind of face key point-tracking method and device
CN109067418B (en) Antenna control method and mobile terminal
CN106487984B (en) A kind of method and apparatus adjusting volume
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN110837318B (en) Anti-false touch method and device for folding screen of mobile terminal and storage medium
US20210329123A1 (en) Method for Adjusting Parameter of Audio Service and Terminal
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN105208208B (en) Network connection switchs deployment method and device
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN109672242B (en) Terminal charging control method and device and storage medium
CN112433694A (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant