CN112154403A - Screen control method and terminal - Google Patents

Screen control method and terminal Download PDF

Info

Publication number
CN112154403A
CN112154403A CN201980033496.3A CN201980033496A CN112154403A CN 112154403 A CN112154403 A CN 112154403A CN 201980033496 A CN201980033496 A CN 201980033496A CN 112154403 A CN112154403 A CN 112154403A
Authority
CN
China
Prior art keywords
touch screen
sequence
water
fitting
reference value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980033496.3A
Other languages
Chinese (zh)
Inventor
董志聪
岑显龙
赵再常
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology 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 SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN112154403A publication Critical patent/CN112154403A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation

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

A screen control method and a terminal are provided, and the method comprises the following steps: acquiring a point coordinate sequence reported by a touch screen; fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen. According to the method and the device, when the screen is detected to be in the water outlet state or the water inlet state, the point reported by the screen is subjected to inhibition processing, so that the error triggering operation caused when the terminal is in a water area is avoided, and the user experience is good.

Description

Screen control method and terminal
Technical Field
The embodiment of the application relates to the technical field of touch screens, in particular to a screen control method and a terminal.
Background
With the development of terminal technology, more and more terminals are equipped with touch screens which are easy to operate, and among them, capacitive touch screens are most widely used. When water acts on the screen, false triggering operation of the capacitive touch screen is easily caused, and a wrong operation instruction may be triggered or a wrong switching of the screen may be caused, so that user experience is reduced. Therefore, how to effectively prevent the misoperation caused by the water acting on the screen becomes a hot point problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a screen control method and a terminal, which can perform suppression processing on points reported by a screen when the screen is detected to be in a water outlet state or a water inlet state, so that false triggering operation caused when the terminal is in a water area is avoided, and user experience is good.
In a first aspect, an embodiment of the present application provides a method for controlling a screen, where the method includes:
acquiring a point coordinate sequence reported by a touch screen;
fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence;
and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
In a second aspect, an embodiment of the present application provides a terminal, including a memory for storing program instructions and a processor for executing the program instructions stored in the memory, wherein when the program instructions are executed, the processor is configured to:
acquiring a point coordinate sequence reported by a touch screen;
fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence;
and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
In a third aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored; the computer program, when executed, implements a method of controlling a screen as described in embodiments of the present application in the first aspect.
According to the screen control method and the terminal, the point coordinate sequence reported by the touch screen is obtained; fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen. Whether the screen is in the water outlet state or the water inlet state can be detected by determining whether the fitting parameters meet the fitting parameter conditions, and when the screen is in the water inlet state or the water outlet state, the points reported by the screen are subjected to inhibition treatment, so that false triggering operation caused when the terminal is in a water area is avoided, and user experience is good.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
fig. 2 is a flowchart of a screen control method according to an embodiment of the present application;
fig. 3 is a flowchart of a screen control method according to another embodiment of the present application;
FIG. 4 is a flowchart of obtaining a reference value according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When a component is referred to as being "connected" to another component, it can be directly connected to the other component or intervening components may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application. The present embodiment is described by taking a motion camera as an example.
The motion camera 100 may include a touch screen 110, a camera 120, a housing 130; the housing 130 of the motion camera 100 is generally a sealed and waterproof casing, and a circuit board, an imaging sensor, a communication component and the like are disposed in the cavity of the housing 130, and a processor chip, a memory and the like (not shown in the figure) are integrated on the circuit board. The processor chip is electrically connected to the imaging sensor, the communication component, the memory, the touch screen 110, the camera 120, and the like. In particular use, a user may send control instructions to the processor chip via various keys on the touch screen 110 and/or the housing 130 for performing a shooting task.
The motion camera 100 is often used in an underwater environment for photographing. Although the housing 130 of the sports camera 100 is waterproof, the touch screen 110 of the sports camera is generally a capacitive touch screen, and when the sports camera is in a water-entering state or a water-exiting state, the touch screen 110 generates an electrical signal similar to a touch operation, thereby causing a false touch operation and affecting the normal operation of the sports camera.
In order to solve the above problem, in the embodiment of the present application, a processor chip of the motion camera 100 is configured to obtain a point coordinate sequence reported by the touch screen 110; then fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen 110. The fitting parameter condition means that the absolute value of the difference between the fitting parameter and the reference value is smaller than a preset threshold value; the reference value is related to the change rule of the point coordinate sequence reported by the touch screen when the touch screen is in the water inlet state or the water outlet state. Therefore, the motion camera in this embodiment can perform suppression processing on points reported by the screen when the screen is detected to be in the water outlet state or the water inlet state, so as to avoid false triggering operation caused when the terminal is in a water area, and provide good user experience.
Fig. 2 is a flowchart of a screen control method according to an embodiment of the present application, and as shown in fig. 2, the method of the present embodiment may include:
s201, acquiring a point coordinate sequence reported by a touch screen.
In this embodiment, the processor obtains a point coordinate sequence reported by the touch screen, where the point coordinate sequence includes: and in a preset time period, the coordinate value sequence of the geometric center position of the contact area of the water and the touch screen. The method of the embodiment is suitable for electronic products with capacitive touch screens, such as mobile phones and motion cameras with waterproof functions. In this embodiment, a moving camera is taken as an example for description.
Specifically, in the process of water entering/exiting of the motion camera, water contacts the capacitive touch screen, and a phenomenon of mistaken touch often occurs. Generally, the contact area between the water and the touch screen is processed by the touch screen into a coordinate point and reported to the main controller, and the coordinate point is usually a coordinate value of the center or gravity of the contact area between the water and the touch screen. The embodiment can utilize the point coordinate information in the water outlet and water inlet processes obtained by the capacitive touch screen technology. Based on the point coordinate information, the change of the area covered by water on the touch screen within a preset time period can be obtained in the time dimension.
In an alternative embodiment, after the point coordinate value sequence is acquired through step S201, the coordinate values in the coordinate value sequence may be subjected to a filtering process.
In this embodiment, the point coordinate sequence obtained by the processor is a sequence of coordinates of a contact center point of the water and the touch screen, and the change of the point coordinate sequence is related to the water inlet/outlet posture of the whole product. Because the application considers the scenes that the water bodies such as sea, river and the like are static or the motion state of the water bodies does not change much, the water inlet/outlet attitude of the whole product machine can be equivalent to the self attitude of the whole product machine, and the motion state only considers the motion state of the whole product machine. At this time, the curve obtained by the change of the point coordinate sequence should be a smooth curve, and some points deviating from the curve can be considered as error points or noise points caused by the motion of the water body. Therefore, the point coordinate sequence can be filtered by adopting a data processing method, namely, the coordinate values of the point coordinate sequence with fluctuation exceeding a first preset range are removed, so that the obtained curve is smoother.
In another optional embodiment, after the point coordinate sequence reported by the touch screen is obtained in step S201, the following determination may be made:
and when the number of the point coordinates is smaller than a preset threshold value, inhibiting the point coordinates reported by the touch screen until the number of the point coordinates is not smaller than the preset threshold value.
In this embodiment, a sufficient number of point coordinates are required for fitting the point coordinate sequence. In the initial stage of obtaining the point coordinate sequence, if the number of the point coordinates is insufficient, whether the whole machine is in a water inlet state or a water outlet state cannot be judged. Therefore, the point coordinates reported by the touch screen are firstly inhibited until the number of the point coordinates is not less than the preset threshold value. In this embodiment, the number of acquired point coordinates is limited, that is, when the number of point coordinates in the acquired point coordinate sequence is smaller than a preset threshold, the point coordinates reported by the touch screen are suppressed, so that the effect of delaying processing can be achieved. The design mode can ensure that enough point coordinates are obtained so as to enable the subsequent fitting operation to be more accurate.
S202, fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence.
In this embodiment, the processor may obtain a change rule of the contact area between the water and the capacitive touch screen by calculating a change rule of the point coordinates. In the implementation process, the point coordinate sequence can be fitted to obtain the fitting parameters of the point coordinate sequence.
Specifically, in the process of entering water, the contact area of the touch screen and water is continuously increased, and point coordinate information is continuously close to the center of the touch screen; in the water outlet process, the contact area of the touch screen and water is continuously reduced, and the point coordinate information continuously moves from the center to the edge of the touch screen. Therefore, fitting analysis can be performed on the point coordinate sequence reported by the touch screen to judge whether the motion camera is in a water outlet state or a water inlet state. It should be noted that, in this embodiment, the fitting parameters obtained after fitting the point coordinate sequence are related to the water inlet/outlet attitude of the whole product.
And S203, when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
In this embodiment, when the fitting parameter satisfies the fitting parameter condition, the point coordinate reported by the touch screen is suppressed, that is, the point coordinate reported by the touch screen is not processed. And when the fitting parameters do not meet the preset fitting parameter conditions, normally processing the point coordinates reported by the touch screen.
For example, the point coordinates reported by the touch screen correspond to the virtual shooting keys on the touch screen, and when the fitting parameters satisfy the fitting parameter conditions, that is, when the touch screen is judged to be in a water inlet state or a water outlet state, the reported coordinate points are not processed, that is, the shooting instructions corresponding to the virtual shooting keys are not generated.
Specifically, in the process of entering water, when the contact area between the touch screen and water reaches a certain condition, for example, when the touch screen completely enters a water area, the touch screen notifies the main control of the large-area inhibition state and stops reporting coordinates, and at this time, the touch screen continuously maintains the large-area inhibition state after entering water. And when the contact area of the touch screen and water does not meet the large-area inhibition state any more, recovering the reported coordinates.
Illustratively, the fitting parameter satisfying the fitting parameter condition includes: the absolute value of the difference between the fitting parameter and the reference value is smaller than a preset threshold value.
Specifically, the contact area changes corresponding to different water inlet postures and different water inlet speeds are different. For example, the point coordinate information of different water entry postures and different water entry speeds can be acquired according to an experimental mode or a simulation mode, then curve fitting is carried out on the point coordinate information of different water entry postures and different water entry speeds to obtain the reference values, and the reference values of different water entry postures and different water entry speeds are stored. And when judging whether the fitting parameters meet the fitting parameter conditions, comparing the fitting parameters obtained in the actual state with the prestored reference values, and if the absolute value of the difference between the fitting parameters in the actual state and the reference values is smaller than a preset threshold value, determining that the fitting parameters meet the fitting parameter conditions. Otherwise, the fitting parameters do not satisfy the fitting parameter conditions.
For example, the processor may further obtain the attitude information and the motion information of the touch screen according to a certain frequency during the motion of the touch screen, perform real-time calculation on the reference value, and when it is determined that the absolute value of the difference between the fitting parameter and the reference value calculated in real time is smaller than a preset threshold, the fitting parameter satisfies the fitting parameter condition. Otherwise, the fitting parameters do not satisfy the fitting parameter conditions.
In this embodiment, a point coordinate sequence reported by a touch screen is obtained; fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen. Therefore, when the screen is detected to be in the water outlet state or the water inlet state, the points reported by the screen can be restrained, the false triggering operation caused when the terminal is in the water area is avoided, and the user experience is good.
Fig. 3 is a flowchart of a screen control method according to another embodiment of the present application, and as shown in fig. 3, the method of this embodiment may include:
s301, acquiring a reference value.
In this embodiment, the processor may obtain the attitude information and the motion information of the whole electronic device by using an inertial navigation system provided in the electronic device. Then, the water inlet/outlet attitude of the capacitive touch screen can be calculated through the attitude information of the electronic equipment, and a reference value can be obtained by combining motion information, such as speed information. The reference value is related to a change rule of a point coordinate sequence reported by the touch screen when the touch screen is in a water inlet state or a water outlet state. Optionally, the reference values comprise: an inlet water reference value and an outlet water reference value.
Fig. 4 is a flowchart of acquiring a reference value according to an embodiment of the present application, and as shown in fig. 4, a possible implementation manner of the foregoing S301 may include:
s3011, obtaining gesture information and motion information of the touch screen.
In this embodiment, a common inertial navigation system includes a three-axis gyroscope and three-axis acceleration, and the three-dimensional attitude angle information and the three-dimensional acceleration information of the whole product with higher accuracy can be obtained by the inertial navigation system, and then the velocity information is obtained by performing integral operation on the three-dimensional acceleration information.
S3012, determining a first variable quantity sequence of the contact area of the water and the touch screen in a preset time period according to the posture information of the touch screen and the motion information of the touch screen.
Optionally, determining the water inlet angle of the touch screen according to the attitude information; determining the water inlet speed of the touch screen according to the motion information; according to the water inlet angle of the touch screen and the water inlet speed of the touch screen, a first variable quantity sequence of the contact area of water and the touch screen in a preset time period is determined.
Optionally, determining a water outlet angle of the touch screen according to the posture information; determining the water outlet speed of the touch screen according to the motion information; according to the water outlet angle of the touch screen and the water outlet speed of the touch screen, a first variable quantity sequence of the contact area of water and the touch screen in a preset time period is determined.
Specifically, an inertial navigation system is formed by a three-axis gyroscope and a three-axis accelerometer, so that information such as the attitude and the motion of the product can be calculated, wherein the attitude information comprises attitude angles of three dimensions, the attitude angles can be represented by quaternions or Euler angles, and the motion information comprises acceleration information of the three dimensions. The water outlet angle or the water inlet angle of the touch screen can be obtained according to the attitude angles of the three dimensions. And performing integral operation according to the angular velocity information of the three dimensions to obtain the water outlet or water inlet speed of the touch screen. And finally, determining a first variable quantity sequence of the contact area of the water and the touch screen in a preset time period according to the water outlet angle of the touch screen and the water outlet speed of the touch screen.
S3013, converting the first variation sequence into: and within a preset time period, the first coordinate value sequence of the geometric center position of the contact area of the water and the touch screen.
In this embodiment, the point coordinate information obtained by using the capacitive touch screen technology represents the central position of the area covered by water of the capacitive touch screen in the water outlet and water inlet processes. Thus, the first sequence of variations is converted into: and within a preset time period, the first coordinate value sequence of the geometric center position of the contact area of the water and the touch screen.
And S3014, acquiring a reference value according to the first coordinate value sequence.
In this embodiment, a first fitted curve is determined according to the first coordinate value sequence; acquiring a function expression of a first fitting curve; the coefficients in the functional expression of the first fitted curve are taken as reference values.
S302, a point coordinate sequence reported by the touch screen is obtained.
And S303, fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence.
In this embodiment, reference may be made to the description of S201 and S202 in S302 and S303, which are not described herein again.
And S304, when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
In this embodiment, whether the fitting parameter satisfies the fitting parameter condition may be determined, and the point coordinates reported by the touch screen may be subjected to suppression processing or normal processing according to whether the fitting parameter condition is satisfied. For a specific process, reference is made to the description of S303 above, and details are not repeated here.
Optionally, the fitting parameter satisfying the preset fitting parameter condition includes: and the absolute value of the difference between the fitting parameter and the water inlet reference value or the water outlet reference value is smaller than a preset threshold value.
Specifically, the fitting parameter may be compared with the water inlet reference value or the water outlet reference value, and whether the fitting parameter is the same as the water inlet reference value or the water outlet reference value, or whether an absolute value of a difference between the fitting parameter and the water inlet reference value or the water outlet reference value is within a preset threshold value may be determined. And if the absolute value of the difference between the fitting parameter and the water inlet reference value or the water outlet reference value is smaller than a preset threshold value, the fitting parameter meets the fitting parameter condition. Otherwise, the fitting parameters do not satisfy the fitting parameter conditions.
In this embodiment, a point coordinate sequence reported by a touch screen is obtained; fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen. Therefore, when the screen is detected to be in the water outlet state or the water inlet state, the points reported by the screen can be restrained, the false triggering operation caused when the terminal is in the water area is avoided, and the user experience is good.
In addition, the embodiment can also acquire a reference value; the reference value is related to a change rule of a point coordinate sequence reported by the touch screen when the touch screen is in a water inlet state or a water outlet state. In the implementation process, the posture information and the motion information of the touch screen can be acquired; determining a first variable quantity sequence of the contact area of water and the touch screen in a preset time period according to the attitude information of the touch screen and the motion information of the touch screen; converting the first variation sequence into: within a preset time period, a first coordinate value sequence of the geometric center position of the contact area of water and the touch screen; and acquiring a reference value according to the first coordinate value sequence. Therefore, when the screen is detected to be in the water outlet state or the water inlet state, the points reported by the screen can be restrained, the false triggering operation caused when the terminal is in the water area is avoided, and the user experience is good.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in fig. 5, a terminal 500 according to this embodiment includes a memory 501 and a processor 502, where the memory 501 is configured to store program instructions, and the processor 502 is configured to execute the program instructions stored in the memory 501, and when the program instructions are executed, the processor 502 is configured to:
acquiring a point coordinate sequence reported by a touch screen;
fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence;
and when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
Optionally, the processor 502 is specifically configured to:
and (4) not processing the point coordinates reported by the touch screen.
Optionally, the processor 502 is further configured to:
and when the fitting parameters do not meet the fitting parameter conditions, normally processing the point coordinates reported by the touch screen.
Optionally, the processor 502 is further configured to: after the point coordinate sequence reported by the touch screen is obtained, when the number of the point coordinates is smaller than a preset threshold, the point coordinates reported by the touch screen are subjected to inhibition processing until the number of the point coordinates is not smaller than the preset threshold.
Optionally, the fitting parameter satisfying the fitting parameter condition includes: the absolute value of the difference between the fitting parameter and the reference value is smaller than a preset threshold value.
Optionally, the processor 502 is further configured to:
acquiring a reference value; the reference value is related to a change rule of a point coordinate sequence reported by the touch screen when the touch screen is in a water inlet state or a water outlet state.
Optionally, the processor 502 is specifically configured to:
acquiring gesture information and motion information of a touch screen;
determining a first variable quantity sequence of the contact area of water and the touch screen in a preset time period according to the attitude information of the touch screen and the motion information of the touch screen;
converting the first variation sequence into: within a preset time period, a first coordinate value sequence of the geometric center position of the contact area of water and the touch screen;
and acquiring a reference value according to the first coordinate value sequence.
Optionally, the processor 502 is specifically configured to:
determining a first fitting curve according to the first coordinate value sequence;
acquiring a function expression of a first fitting curve;
and taking coefficients in the functional expression of the first fitted curve as reference values of the water inlet state.
Optionally, the reference values comprise: an inlet water reference value and an outlet water reference value.
Optionally, the processor 502 is specifically configured to:
determining the water inlet angle of the touch screen according to the attitude information;
determining the water inlet speed of the touch screen according to the motion information;
according to the water inlet angle of the touch screen and the water inlet speed of the touch screen, a first variable quantity sequence of the contact area of water and the touch screen in a preset time period is determined.
Optionally, the processor 502 is specifically configured to:
determining a water outlet angle of the touch screen according to the attitude information;
determining the water outlet speed of the touch screen according to the motion information;
according to the water outlet angle of the touch screen and the water outlet speed of the touch screen, a first variable quantity sequence of the contact area of water and the touch screen in a preset time period is determined.
Optionally, the fitting parameter satisfying the preset fitting parameter condition includes: and the absolute value of the difference between the fitting parameter and the water inlet reference value or the water outlet reference value is smaller than a preset threshold value.
Optionally, the point coordinate sequence comprises: and in a preset time period, the coordinate value sequence of the geometric center position of the contact area of the water and the touch screen.
Optionally, the processor 502 is further configured to:
and filtering the coordinate values in the coordinate value sequence.
Optionally, the processor 502 is specifically configured to:
and eliminating the coordinate values with the fluctuation exceeding a first preset range.
The terminal 500 of this embodiment may be configured to execute the technical solutions of fig. 2 and fig. 3 and the corresponding method embodiments thereof, and the implementation principles and technical effects thereof are similar and will not be described herein again.
In this embodiment, a point coordinate sequence reported by a touch screen is obtained; fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence; and when the fitting parameters meet the fitting parameter conditions, inhibiting the point coordinates reported by the touch screen. Therefore, when the screen is detected to be in the water outlet state or the water inlet state, the points reported by the screen can be restrained, the false triggering operation caused when the terminal is in the water area is avoided, and the user experience is good.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (31)

1. A method for controlling a screen, comprising:
acquiring a point coordinate sequence reported by a touch screen;
fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence;
and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
2. The method of claim 1, wherein the suppressing the point coordinates reported by the touch screen comprises:
and not processing the point coordinates reported by the touch screen.
3. The method of claim 1, further comprising:
and when the fitting parameter does not meet the fitting parameter condition, normally processing the point coordinates reported by the touch screen.
4. The method of claim 1, after obtaining the point coordinate sequence reported by the touch screen, further comprising:
and when the number of the point coordinates is smaller than a preset threshold value, performing inhibition processing on the point coordinates reported by the touch screen until the number of the point coordinates is not smaller than the preset threshold value.
5. The method of claim 1, wherein the fitting parameters satisfying a fitting parameter condition comprise: and the absolute value of the difference between the fitting parameter and the reference value is smaller than a preset threshold value.
6. The method of claim 5, further comprising:
acquiring a reference value; and the reference value is related to the change rule of the point coordinate sequence reported by the touch screen when the touch screen is in the water inlet state or the water outlet state.
7. The method of claim 6, wherein the obtaining the reference value comprises:
acquiring gesture information and motion information of a touch screen;
determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the posture information of the touch screen and the motion information of the touch screen;
converting the first variation sequence into: within a preset time period, a first coordinate value sequence of the geometric center position of the contact area of the water and the touch screen;
and acquiring the reference value according to the first coordinate value sequence.
8. The method according to claim 7, wherein said obtaining the reference value according to the first sequence of coordinate values comprises:
determining a first fitting curve according to the first coordinate value sequence;
acquiring a function expression of the first fitting curve;
and taking coefficients in the functional expression of the first fitted curve as reference values of the water inlet state.
9. The method of claim 7, wherein the reference value comprises: an inlet water reference value and an outlet water reference value.
10. The method according to claim 7, wherein the determining a first variation sequence of the contact area of the touch screen and the water in a preset time period according to the posture information of the touch screen and the motion information of the touch screen comprises:
determining the water inlet angle of the touch screen according to the attitude information;
determining the water inlet speed of the touch screen according to the motion information;
and determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the water inlet angle of the touch screen and the water inlet speed of the touch screen.
11. The method according to claim 7, wherein the determining a first variation sequence of the contact area of the touch screen and the water in a preset time period according to the posture information of the touch screen and the motion information of the touch screen comprises:
determining a water outlet angle of the touch screen according to the attitude information;
determining the water outlet speed of the touch screen according to the motion information;
and determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the water outlet angle of the touch screen and the water outlet speed of the touch screen.
12. The method of claim 9, wherein the fitting parameters satisfying the preset fitting parameter condition comprise: and the absolute value of the difference between the fitting parameter and the water inlet reference value or the water outlet reference value is smaller than a preset threshold value.
13. The method of claim 1, wherein the sequence of point coordinates comprises: and in a preset time period, the coordinate value sequence of the geometric center position of the contact area of the water and the touch screen.
14. The method of claim 13, further comprising:
and filtering the coordinate values in the coordinate value sequence.
15. The method according to claim 14, wherein the filtering of the coordinate values in the coordinate value sequence comprises:
and eliminating the coordinate values with the fluctuation exceeding a first preset range.
16. A terminal, comprising a memory for storing program instructions and a processor for executing the program instructions stored by the memory, wherein when the program instructions are executed the processor is configured to:
acquiring a point coordinate sequence reported by a touch screen;
fitting the point coordinate sequence to determine a fitting parameter corresponding to the point coordinate sequence;
and when the fitting parameters meet fitting parameter conditions, inhibiting the point coordinates reported by the touch screen.
17. The terminal of claim 16, wherein the processor is specifically configured to:
and not processing the point coordinates reported by the touch screen.
18. The terminal of claim 16, wherein the processor is further configured to:
and when the fitting parameter does not meet the fitting parameter condition, normally processing the point coordinates reported by the touch screen.
19. The terminal of claim 16, wherein the processor is further configured to: after a point coordinate sequence reported by a touch screen is obtained, when the number of point coordinates is less than a preset threshold, the point coordinates reported by the touch screen are subjected to inhibition processing until the number of the point coordinates is not less than the preset threshold.
20. The terminal of claim 16, wherein the fitting parameters satisfying the fitting parameter condition comprise: and the absolute value of the difference between the fitting parameter and the reference value is smaller than a preset threshold value.
21. The terminal of claim 20, wherein the processor is further configured to:
acquiring a reference value; and the reference value is related to the change rule of the point coordinate sequence reported by the touch screen when the touch screen is in the water inlet state or the water outlet state.
22. The terminal of claim 21, wherein the processor is specifically configured to:
acquiring gesture information and motion information of a touch screen;
determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the posture information of the touch screen and the motion information of the touch screen;
converting the first variation sequence into: within a preset time period, a first coordinate value sequence of the geometric center position of the contact area of the water and the touch screen;
and acquiring the reference value according to the first coordinate value sequence.
23. The terminal of claim 22, wherein the processor is specifically configured to:
determining a first fitting curve according to the first coordinate value sequence;
acquiring a function expression of the first fitting curve;
and taking coefficients in the functional expression of the first fitted curve as reference values of the water inlet state.
24. The terminal of claim 23, wherein the reference value comprises: an inlet water reference value and an outlet water reference value.
25. The terminal of claim 22, wherein the processor is specifically configured to:
determining the water inlet angle of the touch screen according to the attitude information;
determining the water inlet speed of the touch screen according to the motion information;
and determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the water inlet angle of the touch screen and the water inlet speed of the touch screen.
26. The terminal of claim 22, wherein the processor is specifically configured to:
determining a water outlet angle of the touch screen according to the attitude information;
determining the water outlet speed of the touch screen according to the motion information;
and determining a first variable quantity sequence of the contact area of water and the touch screen within a preset time period according to the water outlet angle of the touch screen and the water outlet speed of the touch screen.
27. The terminal of claim 24, wherein the fitting parameters satisfying the preset fitting parameter condition comprise: and the absolute value of the difference between the fitting parameter and the water inlet reference value or the water outlet reference value is smaller than a preset threshold value.
28. The terminal of claim 16, wherein the point coordinate sequence comprises: and in a preset time period, the coordinate value sequence of the geometric center position of the contact area of the water and the touch screen.
29. The terminal of claim 28, wherein the processor is further configured to:
and filtering the coordinate values in the coordinate value sequence.
30. The terminal of claim 29, wherein the processor is specifically configured to:
and eliminating the coordinate values with the fluctuation exceeding a first preset range.
31. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program, when executed, performs a control method of a screen according to any one of claims 1-15.
CN201980033496.3A 2019-09-11 2019-09-11 Screen control method and terminal Pending CN112154403A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/105269 WO2021046735A1 (en) 2019-09-11 2019-09-11 Screen control method and terminal

Publications (1)

Publication Number Publication Date
CN112154403A true CN112154403A (en) 2020-12-29

Family

ID=73891509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980033496.3A Pending CN112154403A (en) 2019-09-11 2019-09-11 Screen control method and terminal

Country Status (2)

Country Link
CN (1) CN112154403A (en)
WO (1) WO2021046735A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827468A (en) * 2022-04-25 2022-07-29 Oppo广东移动通信有限公司 Control method, control device, computer-readable storage medium, and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843532A (en) * 2015-02-04 2016-08-10 佳能株式会社 Electronic apparatus and control method of the same
CN106557240A (en) * 2016-11-29 2017-04-05 维沃移动通信有限公司 A kind of detection method and mobile terminal
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN108920007A (en) * 2018-07-20 2018-11-30 京东方科技集团股份有限公司 Touch-control report point threshold setting method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034362B (en) * 2011-09-30 2017-05-17 三星电子株式会社 Method and apparatus for handling touch input in a mobile terminal
JP6301809B2 (en) * 2014-10-23 2018-03-28 アルパイン株式会社 Touch panel input device and computer program
WO2019023883A1 (en) * 2017-07-31 2019-02-07 深圳市汇顶科技股份有限公司 Method and device for determining reference for touchscreen, touchscreen, and electronic terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843532A (en) * 2015-02-04 2016-08-10 佳能株式会社 Electronic apparatus and control method of the same
CN106557240A (en) * 2016-11-29 2017-04-05 维沃移动通信有限公司 A kind of detection method and mobile terminal
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN108920007A (en) * 2018-07-20 2018-11-30 京东方科技集团股份有限公司 Touch-control report point threshold setting method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827468A (en) * 2022-04-25 2022-07-29 Oppo广东移动通信有限公司 Control method, control device, computer-readable storage medium, and mobile terminal

Also Published As

Publication number Publication date
WO2021046735A1 (en) 2021-03-18

Similar Documents

Publication Publication Date Title
CN102520858B (en) Mobile terminal application control method and device
JP6140278B2 (en) Adaptive switching between vision-assisted inertial camera pose estimation and vision-based camera pose estimation
CN109361985B (en) TWS earphone wearing detection method and system, electronic device and storage medium
EP2512110B1 (en) Camera mobile phone with an anti-shaking function and anti-shaking method for use by a camera mobile phone in image capturing.
CN107030699B (en) Pose error correction method and device, robot and storage medium
US9417705B2 (en) Motion detection device, electronic device, motion detection method, and program storage medium
US8589113B2 (en) Movement detection device, electronic device, movement detection method and storage medium stored with a program
CN109167893B (en) Shot image processing method and device, storage medium and mobile terminal
JP2010009498A (en) Motion sensor
CN113031840B (en) False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN108875519B (en) Object detection method, device and system and storage medium
CN105578007A (en) Method and device used for mobile terminal, and mobile terminal
CN104469165A (en) Mobile terminal and method for detecting rotating state of camera
CN110738078A (en) face recognition method and terminal equipment
CN108390961B (en) Touch response method and device, readable storage medium and mobile terminal
CN112154403A (en) Screen control method and terminal
JP2006139537A (en) Portable terminal, and operation method for portable terminal
CN109302563B (en) Anti-shake processing method and device, storage medium and mobile terminal
JP6942719B2 (en) Seismic module and seismic system
KR102020133B1 (en) How to Display Desktop Icons and Mobile Terminals
AU2020294281A1 (en) Target tracking method and apparatus, electronic device, and storage medium
AU2020294217A1 (en) Gesture recognition method and apparatus, electronic device, and storage medium
EP3537376A2 (en) Image processing method and electronic device supporting image processing
CN108650422B (en) Terminal bright screen control method and device, terminal and storage medium
CN110827226A (en) Skeleton point smoothing method and device and electronic equipment

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