CN109254691B - False touch prevention method and device and storage medium - Google Patents
False touch prevention method and device and storage medium Download PDFInfo
- Publication number
- CN109254691B CN109254691B CN201811162901.5A CN201811162901A CN109254691B CN 109254691 B CN109254691 B CN 109254691B CN 201811162901 A CN201811162901 A CN 201811162901A CN 109254691 B CN109254691 B CN 109254691B
- Authority
- CN
- China
- Prior art keywords
- type
- area
- false touch
- determining
- touch prevention
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
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)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a false touch prevention method and device and a computer readable storage medium, wherein the method comprises the following steps: determining a false touch prevention area according to a set false touch prevention object; receiving an operation acting on the false touch prevention area, and determining a response type of the operation; and responding to the operation according to the response type of the operation. The embodiment of the invention also provides a device for realizing the method and a computer readable storage medium. The invention can prevent the mistaken touch operation of the user and improve the user experience.
Description
Technical Field
The invention relates to the technical field of terminal operation, in particular to a method and a device for preventing false touch and a storage medium.
Background
Currently, a touch screen has become a standard configuration of most terminals, and a user can easily and quickly implement various operations on the terminal through the touch screen. In order to display more contents on a screen of a terminal and improve the sensory experience of a user, the size of the touch screen is getting larger.
Due to the large size of the touch screen, the user may generate a false touch operation on the screen during the use process, such as: when the chicken playing application is used, a user searches for the room operation, easily touches a shooting area by mistake, so that a gunshot and an exposed position are triggered, touch screen events which are not intended by the user occur, the touch events frequently occur, and the user experience is influenced.
Therefore, it is desirable to provide a technical solution for preventing a user from performing a false touch operation.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a storage medium for preventing a user from performing a false touch operation.
The technical scheme of the embodiment of the invention is realized as follows:
in one aspect, an embodiment of the present invention provides a method for preventing a false touch, where the method includes: determining a false touch prevention area according to a set false touch prevention object; receiving an operation acting on the false touch prevention area, and determining a response type of the operation; and responding to the operation according to the response type of the operation.
On the other hand, an embodiment of the present invention provides an apparatus for implementing the above false touch prevention method, where the apparatus includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement: determining a false touch prevention area according to a set false touch prevention object; receiving an operation acting on the false touch prevention area, and determining a response type of the operation; and responding to the operation according to the response type of the operation.
In another aspect, a computer-readable storage medium implementing the above-mentioned false touch prevention method is provided.
The embodiment of the invention provides a false touch prevention method, a false touch prevention device and a computer readable storage medium, wherein the method comprises the following steps: determining a false touch prevention area according to a set false touch prevention object; receiving an operation acting on the false touch prevention area, and determining a response type of the operation; responding to the operation according to the response type of the operation; therefore, the false touch operation of the user can be prevented, and the user experience is improved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a schematic flow chart illustrating a method for preventing false touch according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a false touch prevention method according to a second embodiment of the present invention;
FIG. 4-1 is a schematic diagram illustrating an interface display effect of a motion trajectory of a user on a touch screen according to a second embodiment of the present invention;
FIG. 5 is a schematic flow chart illustrating a false touch prevention method according to a third embodiment of the present invention;
FIG. 5-1 is a schematic diagram illustrating an interface display effect of a click operation performed by a user on a false touch prevention area according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a false touch prevention device in the fourth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, a color temperature sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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; the color temperature sensor is used for detecting the color temperature of the ambient light; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
The embodiment of the invention provides a false touch prevention method which is applied to a terminal, the functions realized by the method can be realized by calling a program code through a processor in the terminal, the program code can be saved in a computer storage medium, and the terminal at least comprises the processor and the storage medium.
Here, the terminal may be various types of devices with information processing capability in the process of the specific embodiment, for example, the terminal may include not only a mobile electronic device but also a stationary electronic device, and in the process of implementation, the terminal includes a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, and the like.
Fig. 3 is a schematic flow chart of a false touch prevention method according to an embodiment of the present invention, as shown in fig. 3, the method includes:
step S301, determining a false touch prevention area according to a set false touch prevention object;
here, the object to be prevented from being touched by mistake is a touch object that is not intended by the user, that is, an object that the user does not want to touch in the operation process of the terminal. Wherein, the preset object of preventing touching by mistake can set up according to user's actual demand, for example: the user searches for a room in the chicken eating application, and at the moment, the user takes the shooting button as a set mistaken touch prevention object in order to prevent touching the shooting button.
According to the preset mistaken touch preventing object, the area containing the mistaken touch preventing object can be determined to be the mistaken touch preventing area, the mistaken touch preventing area can be an area in any shape, and the application does not limit the area.
Such as: in the same way, the user searches for a room in the chicken eating application, takes the shooting button as a set mistaken touch prevention object, and takes a touch screen area which contains the shooting button and is centered on the shooting button and has a radius of 2 centimeters as a mistaken touch prevention area according to the set mistaken touch prevention object.
In practical application, aiming at various application programs running on a terminal, the false touch prevention object of each application program is different, different false touch prevention areas are set for different application programs according to the false touch prevention objects of different application programs, and when the application programs are started, the false touch prevention areas corresponding to the application programs are in effect.
When determining the false touch prevention area, the false touch prevention area may have a relationship with an associated object, where the associated object is an object having an association relationship with the false touch prevention object, for example: the object for preventing false touch is a shooting button, and the related object is a search button for searching a room. The area where the mistaken touch preventing object is located can be the mistaken touch preventing area under the condition that only the associated object exists. Such as: as in the above example, the search room is a related object, the area including the shooting button is a false touch prevention area, and only when the room is searched, the area including the shooting button is a false touch prevention area.
Step S302, receiving an operation acting on the false touch prevention area, and determining a response type of the operation;
wherein, the operation acting on the anti-false touch area may include: a slide operation, a click operation, and the like.
And receiving the operation acting on the false touch prevention area after the false touch prevention area is determined, responding the operation acting on the false touch prevention area when the operation acting on the false touch prevention area is received, and determining the response type of the operation acting on the false touch prevention area according to the set false touch prevention strategy. Here, the anti-false touch policy is set according to the actual needs of the user, such as: receiving that the operation acting on the false touch prevention area is a sliding operation, and determining that the response type of the operation acting on the false touch prevention area is a first type according to the received sliding operation; and receiving that the operation acting on the false touch prevention area is a click operation, and determining that the response type of the operation acting on the false touch prevention area is a first type or a second type according to whether the display interface comprises the target object. Here, when the operation acting on the anti-false touch region is received as a click operation, the response type of the operation acting on the anti-false touch region is determined to be the first type or the second type according to whether the target region in the display interface includes the target object.
The first type representation shields the operation acting on the false touch prevention area, and the second type representation responds to the operation acting on the false touch prevention area.
And step S303, responding to the operation according to the response type of the operation.
Responding to the operation acting on the false touch prevention area according to the determined response type, such as: if the determined response type is the first type, shielding the operation acting on the false touch prevention area; and if the determined response type is the second type, responding to the operation acting on the false touch prevention area.
In the embodiment of the invention, a false touch prevention area is determined according to a set false touch prevention object; receiving an operation acting on the false touch prevention area, and determining a response type of the operation; responding to the operation according to the response type of the operation; therefore, the false touch operation of the user can be prevented, and the user experience is improved.
Example two
Based on the foregoing embodiments, the embodiments of the present invention provide a false touch prevention method, where the method is applied to a terminal, and a function implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 4 is a schematic flow chart of a false touch prevention method according to a second embodiment of the present invention, and as shown in fig. 4, the method includes:
step S401, determining a false touch prevention area according to a set false touch prevention object;
step S402, receiving operation acting on the false touch prevention area;
when a finger of a user operates on the anti-false touch area, the terminal receives the user operation acting on the anti-false touch area.
Step S403, if the operation is a sliding operation, determining a motion track of the sliding operation;
and receiving the operation acting on the false touch prevention area, and if the operation acting on the false touch prevention area is a sliding operation, detecting the motion track of the sliding operation to obtain the initial position and the end position of the motion track.
For example, the movement locus is from the operation area to the false touch prevention area, or from the false touch prevention area to the operation area, where the operation area is different from the false touch prevention area, and the operation area is a display area outside the false touch prevention area.
Step S404, the starting position of the motion track is located in an operation area, the ending position of the motion track is located in the false touch prevention area, and the response type of the operation is determined to be a first type; the operation area is different from the false touch prevention area;
the starting position of the motion track of the sliding operation is positioned in the operation area, the ending position of the motion track of the sliding operation is positioned in the false touch prevention area, a motion track moving from the operation area to the false touch prevention area is formed, and the response type of the operation acting on the false touch prevention area can be determined to be the first type according to the motion track.
Here, the operation region is different from the erroneous touch prevention region, and the operation region is a region other than the erroneous touch prevention region. The first type of characterization masks operations that act on the anti-false touch area.
Such as: as shown in fig. 4-1, when a finger of a user moves from the operation area to the anti-false-touch area to form a motion track moving from the operation area to the anti-false-touch area, the terminal receives the motion track of the user, determines that a start position of the motion track is located in the operation area, and determines that an end position of the motion track is located in the anti-false-touch area, and at this time, may determine that a response type of an operation applied to the anti-false-touch area is a first type.
Step S405, according to the first type, shielding the operation.
And when the response type of the operation acting on the false touch prevention area is determined to be the first type, shielding the operation acting on the false touch prevention area and not responding.
Such as: when a user plays a chicken game, the user sets an area comprising a shooting button to be an anti-false-touch area, when the user searches a room, fingers move from an operation area to the anti-false-touch area to form a movement track moving from the operation area to the anti-false-touch area, the shooting button is touched unintentionally, at the moment, the response type of the sliding operation can be determined to be a first type, the operation of touching the shooting button located in the anti-false-touch area is shielded, and the operation is not responded.
In the method for preventing the false touch provided by the embodiment of the invention, the operation is sliding operation; determining a motion track of the sliding operation; the starting position of the motion track is located in an operation area, the ending position of the motion track is located in the false touch prevention area, and the response type of the operation is determined to be a first type; and shielding the operation according to the first type, thereby preventing the user from mistakenly touching the operation.
EXAMPLE III
Based on the foregoing embodiments, the embodiments of the present invention provide a false touch prevention method, where the method is applied to a terminal, and a function implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 5 is a schematic flow chart of a false touch prevention method according to a third embodiment of the present invention, and as shown in fig. 5, the method includes:
step S501, determining a false touch prevention area according to a set false touch prevention object;
step S502, receiving operation acting on the false touch prevention area;
step S503, if the operation is a click operation, detecting whether a target object exists in a set target area to obtain a detection result;
and receiving the operation acting on the false touch prevention area, and if the operation acting on the false touch prevention area is a click operation, determining whether a target object exists in the set target area or not according to the click operation to obtain a detection result.
As shown in fig. 5-1, the finger of the user acts on the anti-false touch region to generate a click operation acting on the anti-false touch region.
Here, the detection result includes two cases: the target object exists in the set target area, or the target object does not exist in the set target area.
The detecting whether the set target area has the target object or not to obtain a detection result includes: determining the type of an object in the set target area; if the type of the object is consistent with a preset type, determining that a target object exists in the set target area; and if the type of the object does not accord with the preset type, determining that the set target area does not have the target object.
The detecting whether the set target area has the target object or not to obtain a detection result may further include: acquiring contour information of an object in a set target area, determining the type of the object according to the contour information of the object, detecting whether the type of the object is consistent with a preset type in the set target area, and if the type of the object is consistent with the preset type, determining that the target object exists in the set target area; and if the type of the object does not accord with the preset type, the set target area does not have the target object.
Such as: when a user plays a chicken game, the user sets a target area, the set preset type is a person, contour information of a target object in the target area is detected, the type of the target object is determined to be the person according to the obtained contour information of the target object, and the type of the target object is determined: human and preset type: if the person is consistent, the target object exists in the target area;
it should be noted that the target area, the preset type, and the target object may be set according to the actual requirements of the user.
Step S504, determining the response type of the operation according to the detection result;
and determining a response type of the operation acting on the false touch prevention area according to the detection result, wherein the response type is a second type if the detection result indicates that a target object exists in the set target area, and the response type is a first type if the detection result indicates that the target object does not exist in the set target area.
And step S505, responding to the operation according to the response type of the operation.
Responding the operation acting on the false touch prevention area according to the determined response type, and shielding the operation acting on the false touch prevention area if the determined response type is the first type; and if the determined response type is the second type, responding to the operation acting on the false touch prevention area.
In the method for preventing the false touch provided by the embodiment of the invention, if the operation is a click operation, whether a target object exists in a set target area is detected to obtain a detection result; and determining the response type of the operation according to the detection result, responding the operation according to the response type of the operation, preventing the user from mistakenly touching the operation, and improving the user experience.
Example four
Based on the foregoing embodiments, an embodiment of the present invention provides a false touch prevention device, as shown in fig. 6, the device includes: a memory 601, a processor 602, and a computer program stored on the memory 601 and executable on the processor 602, the processor 602 executing the computer program to implement:
determining a false touch prevention area according to a set false touch prevention object;
receiving an operation acting on the false touch prevention area, and determining a response type of the operation;
and responding to the operation according to the response type of the operation.
In one embodiment, processor 602, when executing the computer program, performs the determining the response type of the operation if the operation is a sliding operation, including: determining a motion track of the sliding operation; the starting position of the motion track is located in an operation area, the ending position of the motion track is located in the false touch prevention area, and the response type of the operation is determined to be a first type; the operation area is different from the false touch prevention area.
In one embodiment, processor 602, when executing the computer program, performs the determining the response type of the operation if the operation is a click operation, including: detecting whether a target object exists in a set target area to obtain a detection result; and determining the response type of the operation according to the detection result.
In an embodiment, when the processor 602 executes the computer program, the detecting whether a target object exists in the set target area to obtain a detection result includes: determining the type of an object in the set target area; if the type of the object is consistent with a preset type, determining that a target object exists in the set target area; and if the type of the object does not accord with the preset type, determining that the set target area does not have the target object.
In an embodiment, the determining the response type of the operation according to the detection result by processor 602 when executing the computer program includes: the detection result is that the target object does not exist in the target area, and the response type is a first type.
In an embodiment, the determining the response type of the operation according to the detection result by processor 602 when executing the computer program includes: the detection result indicates that the target object exists in the target area, and the response type is a second type.
In an embodiment, when the computer program is executed by processor 602, implementing the responding to the operation according to the response type of the operation includes: masking the operation according to the first type.
In an embodiment, when the computer program is executed by processor 602, implementing the responding to the operation according to the response type of the operation includes: and executing operation processing corresponding to the operation according to the second type.
It should be noted that the memory 601 in the embodiment of the present invention may correspond to the memory 160 in fig. 1, and the processor 602 may correspond to the controller 180 in fig. 1.
Here, it should be noted that: the above description of the embodiment of the apparatus is similar to the above description of the embodiment of the method, and has similar beneficial effects to the embodiment of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
EXAMPLE six
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements:
determining a false touch prevention area according to a set false touch prevention object;
receiving an operation acting on the false touch prevention area, and determining a response type of the operation;
and responding to the operation according to the response type of the operation.
In one embodiment, the computer program when executed by a processor implements the determining the response type of the operation if the operation is a swipe operation, comprising: determining a motion track of the sliding operation; the starting position of the motion track is located in an operation area, the ending position of the motion track is located in the false touch prevention area, and the response type of the operation is determined to be a first type; the operation area is different from the false touch prevention area.
In one embodiment, the computer program when executed by a processor enables the determination of the response type of the operation if the operation is a click operation: detecting whether a target object exists in a set target area to obtain a detection result; and determining the response type of the operation according to the detection result.
In an embodiment, when executed by a processor, the computer program implements the detecting whether a target object exists in the set target area, and obtains a detection result, including: determining the type of an object in the set target area; if the type of the object is consistent with a preset type, determining that a target object exists in the set target area; and if the type of the object does not accord with the preset type, determining that the set target area does not have the target object.
In one embodiment, the computer program, when executed by a processor, enables determining a response type of the operation based on the detection result, comprising: the detection result is that the target object does not exist in the target area, and the response type is a first type.
In one embodiment, the computer program, when executed by a processor, implements the determining the response type of the operation according to the detection result, comprising: the detection result indicates that the target object exists in the target area, and the response type is a second type.
In one embodiment, the computer program, when executed by a processor, implements the responding to the operation according to the response type of the operation, including: masking the operation according to the first type.
In one embodiment, the computer program, when executed by a processor, implements the responding to the operation according to the response type of the operation, including: and executing operation processing corresponding to the operation according to the second type.
Here, it should be noted that: the description of the terminal embodiment is similar to the description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention to understand that, for brevity, detailed description is omitted here.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (7)
1. A method of preventing false touches, the method comprising:
determining a false touch prevention area according to a set false touch prevention object;
receiving an operation acting on the false touch prevention area, and determining a response type of the operation;
responding to the operation according to the response type of the operation;
if the operation is a click operation, the determining the response type of the operation comprises:
detecting whether a target object exists in a set target area to obtain a detection result;
the detection result indicates that the target object does not exist in the target area, and the response type is a first type;
the responding to the operation according to the response type of the operation comprises: masking the operation according to the first type.
2. The method of claim 1, wherein if the operation is a slide operation, the determining the response type of the operation comprises:
determining a motion track of the sliding operation;
the starting position of the motion track is located in an operation area, the ending position of the motion track is located in the false touch prevention area, and the response type of the operation is determined to be a first type; the operation area is different from the false touch prevention area.
3. The method according to claim 1, wherein the detecting whether the target object exists in the set target area to obtain a detection result comprises:
determining the type of an object in the set target area;
if the type of the object is consistent with a preset type, determining that a target object exists in the set target area; and if the type of the object does not accord with the preset type, determining that the set target area does not have the target object.
4. The method of claim 1, wherein determining the response type of the operation according to the detection result comprises:
the detection result indicates that the target object exists in the target area, and the response type is a second type.
5. The method of claim 4, wherein responding to the operation according to the operation's response type comprises:
and executing operation processing corresponding to the operation according to the second type.
6. An anti-false touch device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement:
determining a false touch prevention area according to a set false touch prevention object;
receiving an operation acting on the false touch prevention area, and determining a response type of the operation;
responding to the operation according to the response type of the operation;
if the operation is a click operation, the determining the response type of the operation comprises:
detecting whether a target object exists in a set target area to obtain a detection result;
the detection result indicates that the target object does not exist in the target area, and the response type is a first type;
the responding to the operation according to the response type of the operation comprises: masking the operation according to the first type.
7. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements a false touch protection method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811162901.5A CN109254691B (en) | 2018-09-30 | 2018-09-30 | False touch prevention method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811162901.5A CN109254691B (en) | 2018-09-30 | 2018-09-30 | False touch prevention method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109254691A CN109254691A (en) | 2019-01-22 |
CN109254691B true CN109254691B (en) | 2022-03-18 |
Family
ID=65045331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811162901.5A Active CN109254691B (en) | 2018-09-30 | 2018-09-30 | False touch prevention method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109254691B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445408B (en) * | 2019-09-02 | 2022-08-05 | Oppo(重庆)智能科技有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN115277938A (en) * | 2021-04-29 | 2022-11-01 | 北京小米移动软件有限公司 | Call control method and device, electronic equipment and storage medium |
CN113608816B (en) * | 2021-08-18 | 2023-05-23 | 北京字跳网络技术有限公司 | Progress adjustment method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571693A (en) * | 2014-12-22 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105930088A (en) * | 2016-05-31 | 2016-09-07 | 联想(北京)有限公司 | Input method and electronic equipment |
CN107402712A (en) * | 2017-07-26 | 2017-11-28 | 广东欧珀移动通信有限公司 | A kind of response method of touch operation, device, storage medium and terminal |
CN107422916A (en) * | 2017-07-26 | 2017-12-01 | 广东欧珀移动通信有限公司 | A kind of response method of touch operation, device, storage medium and terminal |
CN107450773A (en) * | 2017-07-25 | 2017-12-08 | 维沃移动通信有限公司 | A kind of false-touch prevention method, terminal and computer-readable recording medium |
CN108319386A (en) * | 2018-01-08 | 2018-07-24 | 维沃移动通信有限公司 | A kind of display screen false-touch prevention method and mobile terminal |
CN108388400A (en) * | 2018-01-25 | 2018-08-10 | 维沃移动通信有限公司 | A kind of operation processing method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104714692B (en) * | 2015-01-30 | 2016-08-24 | 努比亚技术有限公司 | Mobile terminal Touch-control error prevention method and device |
-
2018
- 2018-09-30 CN CN201811162901.5A patent/CN109254691B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571693A (en) * | 2014-12-22 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105930088A (en) * | 2016-05-31 | 2016-09-07 | 联想(北京)有限公司 | Input method and electronic equipment |
CN107450773A (en) * | 2017-07-25 | 2017-12-08 | 维沃移动通信有限公司 | A kind of false-touch prevention method, terminal and computer-readable recording medium |
CN107402712A (en) * | 2017-07-26 | 2017-11-28 | 广东欧珀移动通信有限公司 | A kind of response method of touch operation, device, storage medium and terminal |
CN107422916A (en) * | 2017-07-26 | 2017-12-01 | 广东欧珀移动通信有限公司 | A kind of response method of touch operation, device, storage medium and terminal |
CN108319386A (en) * | 2018-01-08 | 2018-07-24 | 维沃移动通信有限公司 | A kind of display screen false-touch prevention method and mobile terminal |
CN108388400A (en) * | 2018-01-25 | 2018-08-10 | 维沃移动通信有限公司 | A kind of operation processing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109254691A (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108037893B (en) | Display control method and device of flexible screen and computer readable storage medium | |
CN109284065B (en) | Key false touch prevention method and device, mobile terminal and readable storage medium | |
CN109701266B (en) | Game vibration method, device, mobile terminal and computer readable storage medium | |
CN109471571B (en) | Display method of suspension control, mobile terminal and computer readable storage medium | |
CN107809534B (en) | Control method, terminal and computer storage medium | |
CN107832032B (en) | Screen locking display method and mobile terminal | |
CN110275794B (en) | Screen display method of terminal, and computer-readable storage medium | |
CN107329572B (en) | Control method, mobile terminal and computer-readable storage medium | |
CN110187808B (en) | Dynamic wallpaper setting method and device and computer-readable storage medium | |
CN107193379B (en) | Application program starting method, terminal and computer readable storage medium | |
CN109254691B (en) | False touch prevention method and device and storage medium | |
CN112306366A (en) | Operation method, mobile terminal and storage medium | |
CN108563388B (en) | Screen operation method, mobile terminal and computer-readable storage medium | |
CN109491577B (en) | Holding interaction method and device and computer readable storage medium | |
CN108536368B (en) | Key using method, terminal and computer readable storage medium | |
CN108810262B (en) | Application configuration method, terminal and computer readable storage medium | |
CN112346824B (en) | Screen projection application control method and device and computer readable storage medium | |
CN109710168B (en) | Screen touch method and device and computer readable storage medium | |
CN109683796B (en) | Interaction control method, equipment and computer readable storage medium | |
CN111530067A (en) | Method for controlling game by multiple keys, mobile terminal and computer readable storage medium | |
CN107613108B (en) | Operation processing method and device and computer readable storage medium | |
CN110755840A (en) | Game control method, key structure, mobile terminal and readable storage medium | |
CN107580106B (en) | Call control method, mobile terminal and computer readable storage medium | |
CN107562304B (en) | Control method, mobile terminal and computer readable storage medium | |
CN107239220B (en) | Method for preventing misoperation and mobile terminal |
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 |