The present invention relates to the field of touch technologies, and in particular, to a touch determination method and a touch device.
At present, increasing electronic devices are provided with touch screens to enhance performance of man-machine interaction. Existing touch screens are primarily planar in design, while a growing number of electronic devices will be designed primarily based on a curved surface in the future. However, a curved-surface touch screen usually has a non-uniform thickness. Therefore, detection of precise coordinates of a touch is affected. For example, on a planar touch screen with a uniform thickness in
To solve the above-mentioned problem, the embodiments of the present invention disclose a touch determination method and a touch device, so as to improve touch detection precision.
Disclosed is a touch determination method, applied to a touch panel having a non-uniform thickness, and including: obtaining a position coordinate range (xa, xb) based on sensing signal data generated by a touch operation of a user on the touch panel; and selecting one coordinate xm from the position coordinate range (xa, xb), and obtaining a touch center position coordinate through compensation based on the coordinate xm.
Disclosed is a touch device, including: a touch panel having a non-uniform thickness and a processor, where the touch panel is configured to generate sensing signal data based on a touch operation of a user, and the processor is configured to: obtain a position coordinate range (xa, xb) based on the sensing signal data; and select one coordinate xm from the position coordinate range (xa, xb), and obtain a touch center position coordinate through compensation based on the coordinate xm.
According to the touch determination method and the touch device provided in the present invention, one coordinate xm is selected from the sensed position coordinate range (xa, xb), and the touch center position coordinate is obtained through compensation based on the coordinate xm, thereby improving touch detection precision.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
The touch center position coordinate is obtained through compensation based on the coordinate xm selected from the position coordinate range (xa, xb), thereby improving touch detection precision of the touch device 10.
In the implementation, referring to
In the implementation, a touch surface 113 of the touch panel 11 is an arc surface, and a cross section of the touch panel 11 is substantially arc-shaped. The curve formula is a sine function formula, and the sine function formula is presented as y=Asinωx, where A and ω are constants.
It can be understood that, the curve formula is not limited to a sine function, and may alternatively be another curve formula, for example, a cosine function.
It can be understood that, the touch surface 113 may not be an arc surface, and may be another curved-surface structure or a flat surface, and the touch panel 11 has a non-uniform thickness within the position coordinate range (xa, xb).
Specifically, when the user touches the touch panel 11, a capacitance at a corresponding position on the touch panel 11 changes, and the sensing signal data is generated. The processor 13 obtains the position coordinate range (xa, xb) based on the sensing signal data. Because the thickness y corresponding to the touch panel 11 at any position coordinate x within the position coordinate range (xa, xb) and the coordinate x meet the sine function formula, the processor 13 obtains an actual thickness ya of the touch panel 11 at a position coordinate xa and an actual thickness yb of the touch panel 11 at a position coordinate xb by calculation based on y=Asinωx.
The processor 13 randomly selects one coordinate xm from the position coordinate range (xa, xb). The processor 13 obtains an actual thickness ym of the touch panel 11 at the position corresponding to the coordinate xm and determines the compensation coefficient based on the actual thickness yin, including: converting an actual thickness ym at any position coordinate xm within the position coordinate range (xa, xb) into a uniform thickness h, and establishing a touch panel model that has the uniform thickness h within the position coordinate range (xa, xb); and determining the compensation coefficient based on the actual thickness ym and the uniform thickness h. In the implementation, the uniform thickness h is the actual thickness yb of the touch panel 11 at the position coordinate xb.
It can be understood that, the uniform thickness h is not limited to the actual thickness yb of the touch panel 11 at the position coordinate xb, and may be set to another value, for example, h is a mean value of ya and yb.
It can be understood that, the touch panel model is not limited to having the uniform thickness h within the position coordinate range (xa, xb), and the touch panel model corresponds to the same thickness at any coordinate x.
Further, a capacitance corresponding to the touch panel 11 at the coordinate xm is
ε is a dielectric constant, and S is a relative electrode area of the touch panel 11 at a position corresponding to the coordinate xm.
The actual thickness ym at any coordinate xm within the position coordinate range (xa, xb) is converted into the uniform thickness h. If the capacitance corresponding to the touch panel 11 at the coordinate xm is
a capacitance corresponding to the touch panel model at the coordinate xm is a compensated capacitance
is obtained based on
where
is a compensation coefficient.
In the implementation, the actual thickness y corresponding to the touch panel 11 at any position coordinate x within the position coordinate range (xa, xb) meets a curve formula: y=Asinωx, that is, yb=Asinωxb and ym=Asinωxm. The uniform thickness h is the actual thickness yb corresponding to the touch panel 11 at the coordinate xb, and the compensation coefficient is
The processor 13 obtains compensated sensing signal data through compensation based on the compensation coefficient.
Sensing signal data D at the same position coordinate is directly proportional to a capacitance C. It is assumed that sensing signal data of the touch panel 11 at the coordinate xm is Dm, and Dm is directly proportional to Cm. The compensated sensing signal data is Dm′. Similarly, Dm′ is directly proportional to a compensated capacitance Cm′, and
The processor 13 determines the touch center position coordinate by using the compensated sensing signal data. Further, the processor 13 determines a virtual touch position of the touch panel model based on the compensated sensing signal data, and the virtual touch position is the touch center position coordinate. In the implementation, the processor 13 determines the virtual touch position of the touch panel model by using a preset algorithm (for example, the PIXCIR algorithm or a centroid computation method) based on the compensated sensing signal data. It can be understood that, the preset algorithm may alternatively be implemented by selecting another algorithm.
In other words, it is equivalent to that the touch panel 11 having the non-uniform thickness within the position coordinate range (xa, xb) is regarded as the touch panel model that has the uniform thickness h within the position coordinate range (xa, xb), and the touch center position coordinate on the touch panel 11 is determined by determining the virtual touch position of the touch panel model.
It can be understood that, the processor 13 may calculate the touch center position coordinate by multiplying the selected coordinate xm with the compensation coefficient
The coordinate xm may not be randomly selected, and may be obtained by using a preset algorithm such as
or may be another value.
According to the touch device 10 provided in the present invention, the touch panel having the non-uniform thickness within the position coordinate range (xa, xb) is converted into the touch panel model that has the uniform thickness h within the position coordinate range (xa, xb) for compensation to determine the compensation coefficient and further obtain the touch center position coordinate, thereby improving the touch detection precision.
It can be understood that, the touch panel 11 is not limited to a capacitive touch panel, and the touch panel 11 may alternatively be another type of touch panel, for example, a resistive touch panel.
Referring to
Step 501. Obtain a position coordinate range (xa, xb) based on sensing signal data generated by a touch operation of a user on the touch panel. In the implementation, the touch panel is a capacitive curved-surface touch panel.
Step 502. Select one coordinate xm from the position coordinate range (xa, xb).
Step 503. Obtain an actual thickness ym corresponding to the touch panel at the coordinate xm and determine a compensation coefficient based on the actual thickness ym.
The obtaining an actual thickness ym corresponding to the touch panel at the coordinate xm and determining a compensation coefficient based on the actual thickness ym includes: converting an actual thickness ym at any coordinate xm within the position coordinate range (xa, xb) into a uniform thickness h, and establishing a touch panel model that has the uniform thickness h within the position coordinate range (xa, xb); and determining that the compensation coefficient is
based on the actual thickness ym and the uniform thickness h.
In the implementation, a thickness y corresponding to the touch panel at any position coordinate x within the position coordinate range (xa, xb) and the coordinate x meet a curve formula. In the implementation, the curve formula is a sine function formula, and the sine function formula is represented as y=Asinωx, where A and ω are constants. The uniform thickness h is an actual thickness yb of the touch panel at a position coordinate xb.
If a capacitance corresponding to the touch panel at the coordinate xm is
a capacitance corresponding to the touch panel model at the coordinate xm is a compensated capacitance
is obtained based on
where
is the compensation coefficient. In the implementation, the thickness y corresponding to the touch panel at any position coordinate x within the position coordinate range (xa, xb) meets a curve formula: y=Asinωx, that is, yb=Asinωxb and ym=Asinωxm The uniform thickness h is the actual thickness yb corresponding to the touch panel at the coordinate xb, and the compensation coefficient is
It can be understood that, the uniform thickness h is not limited to the actual thickness yb of the touch panel at the position coordinate xb, and the uniform thickness h may be set to another value, for example, h is a mean value of ya and yb.
It can be understood that, the touch panel model is not limited to having the uniform thickness h within the position coordinate range (xa, xb), and the touch panel model corresponds to the same thickness at any coordinate x.
Step 504. Obtain compensated sensing signal data based on the compensation coefficient.
Sensing signal data D at the same position coordinate is directly proportional to a capacitance C. For example, sensing signal data Dm corresponding to the touch panel at the coordinate xm is directly proportional to a capacitance Cm. It is assumed that sensing signal data of the touch panel at the coordinate xm is Dm, and the compensated sensing signal data is Dm′. Similarly, Dm′ is directly proportional to
a compensated capacitance Cm′, and
Step 505. Determine a touch center position coordinate based on the compensated sensing signal data. In the implementation, a virtual touch position of the touch panel model is determined based on the compensated sensing signal data, and the virtual touch position is determined as the touch center position coordinate.
In the implementation, the virtual touch position of the touch panel model is determined based on the compensated sensing signal data by using a preset algorithm. For example, the virtual touch position of the touch panel model is determined based on the compensated sensing signal data by using a preset algorithm (such as, the PIXCIR algorithm or a centroid computation method). It can be understood that, the preset algorithm may alternatively be implemented by selecting another algorithm.
In an implementation, a touch determination method is provided, and is applied to a touch panel having a non-uniform thickness. The method includes: obtaining a position coordinate range (xa, xb) based on sensing signal data generated by a touch operation of a user on the touch panel; and selecting one coordinate xm from the position coordinate range (xa, xb), and obtaining a touch center position coordinate through compensation based on the coordinate xm.
Further, the selecting one coordinate xm from the position coordinate range (xa, xb), and obtaining a touch center position coordinate through compensation based on the coordinate xm includes: randomly selecting one coordinate xm from the position coordinate range (xa, xb); obtaining an actual thickness ym corresponding to the touch panel at the coordinate xm and determining a compensation coefficient based on the actual thickness ym; obtaining compensated sensing signal data based on the compensation coefficient; and determining the touch center position coordinate based on the compensated sensing signal data.
Further, the obtaining an actual thickness ym corresponding to the touch panel at the coordinate xm and determining a compensation coefficient based on the actual thickness ym includes: converting an actual thickness ym at any position coordinate xm within the position coordinate range (xa, xb) into a uniform thickness h, and establishing a touch panel model that has a uniform thickness h within the position coordinate range (xa, xb); and determining that the compensation coefficient is
based on the actual thickness ym and the uniform thickness h.
Further, the obtaining an actual thickness ym corresponding to the touch panel at the coordinate xm and determining a compensation coefficient based on the actual thickness ym further includes: establishing a touch panel model that has a uniform thickness h within the position coordinate range (xa, xb). The determining the touch center position coordinate based on the compensated sensing signal data includes: determining a virtual touch position of the touch panel model based on the compensated sensing signal data, where the virtual touch position is the touch center position coordinate.
Further, a thickness y corresponding to the touch panel at any position coordinate x within the position coordinate range (xa, xb) and the coordinate x meet a curve formula.
Further, the curve formula is a sine function formula.
Further, the uniform thickness h is an actual thickness yb of the touch panel at a position coordinate xb.
Further, the position coordinate range (xa, xb) is an x coordinate range that extends along a surface of the touch panel.
It can be understood that, the touch panel is not limited to a capacitive touch panel, and may be another type of touch panel, such as a resistive touch panel.
The foregoing descriptions are preferred embodiments of the present invention. It should be noted that a person of ordinary skill in the art may make several improvements or polishing without departing from the principle of the present invention and the improvements or polishing shall fall within the protection scope of the present invention.
This application is a continuation of International Disclosure No. PCT/CN2018/123193, filed on Dec. 24, 2018. The disclosures of the aforementioned disclosures are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/123193 | Dec 2018 | US |
Child | 17356979 | US |