This application claims the priority benefit of China application serial no. 201711076629.4, filed on Nov. 6, 2017. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The invention relates to an electronic device, and particularly relates to a touch device and a touch signal processing method thereof.
Generally, a touch panel may not only support finger touch, but may also support a stylus to perform touch operations. When the stylus is applied to perform the touch operation, an intensity of a touch sensing signal of the stylus sensed by a touch panel is lower than an intensity of a touch sensing signal of a finger, and due to an influence of environmental noise, a touch trajectory of the stylus is easily broken due to the low intensity of the touch sensing signal or misjudgement of a touch position is liable to be occurred. Generally, the influence of the noise may be eliminated by using a median filter, and a main effect of the median filter is to reorder the dispersed noises in the signal for filtering, though such filtering method may result in intensity attenuation of the touch sensing signal.
The invention is directed to a touch device and a touch signal processing method thereof, by which a type of a touch tool is effectively determined, and interruption of a touch signal and misjudgment of a touch position due to inadequate intensity of sensing signals of the touch tool are avoided.
An embodiment of the invention provides a touch device including a touch panel and a processing circuit. The touch panel receives a touch operation of a touch tool to generate a touch signal corresponding to the touch operation, wherein the touch signal includes a plurality of sub touch signals generated by a plurality of touch units in a touch region touched by the touch tool. The processing circuit is coupled to the touch panel, and calculates an average of signal intensities of the sub touch signals of the touch units in a target region, wherein a center of the target region is a touch unit having the maximum signal intensity within the touch region, the processing circuit determines a type of the touch tool according to a ratio between an average of signal intensities of the sub touch signals of the touch units located adjacent to the touch unit having the maximum signal intensity and a signal intensity of the sub touch signal of the touch unit having the maximum signal intensity.
In an embodiment of the invention, when the ratio is smaller than a predetermined ratio, the processing circuit determines that the touch tool is a stylus.
In an embodiment of the invention, the predetermined ratio is 2/3.
In an embodiment of the invention, when the touch tool is a stylus, the processing circuit further performs a sharpening processing to the touch signal according to the signal intensities of the sub touch signals produced by the touch units in the touch region in a current touch detection cycle and last N touch detection cycles, wherein N is a positive integer.
In an embodiment of the invention, when the touch tool is the stylus, the processing circuit multiplies the signal intensities of the sub touch signals produced by each of the touch units in the touch region in the current touch detection cycle and the last N touch detection cycles to sharpen the touch signal.
In an embodiment of the invention, the processing circuit further determines whether the touch signal is a noise signal according to an average of the signal intensities of the sub touch signals of each of the touch units in the touch region within a predetermined period.
An embodiment of the invention provides a touch signal processing method of a touch device, which include following steps: producing a touch signal corresponding to a touch operation of a touch tool on a touch panel, wherein the touch signal includes a plurality of sub touch signals generated by a plurality of touch units in a touch region touched by the touch tool; calculating an average of signal intensities of the sub touch signals of the touch units in a target region, wherein a center of the target region is a touch unit having the maximum signal intensity within the touch region; determining a type of the touch tool according to a ratio between an average of signal intensities of the sub touch signals of the touch units located adjacent to the touch unit having the maximum signal intensity and a signal intensity of the sub touch signal of the touch unit having the maximum signal intensity.
In an embodiment of the invention, when the ratio is smaller than a predetermined ratio, the touch tool is determined as a stylus.
In an embodiment of the invention, the predetermined ratio is 2/3.
In an embodiment of the invention, when the touch tool is a stylus, the touch signal processing method of the touch device further includes: performing a sharpening processing to the touch signal according to the signal intensities of the sub touch signals produced by the touch units in the touch region in a current touch detection cycle and last N touch detection cycles, wherein N is a positive integer.
In an embodiment of the invention, when the touch tool is the stylus, the touch signal processing method of the touch device further includes: multiplying the signal intensities of the sub touch signals produced by each of the touch units in the touch region in the current touch detection cycle and the last N touch detection cycles to sharpen the touch signal.
In an embodiment of the invention, the touch signal processing method of the touch device further includes: determining whether the touch signal is a noise signal according to an average of the signal intensities of the sub touch signals of each of the touch units in the touch region within a predetermined period.
According to the above description, in the embodiment of the invention, the type of the touch tool is determined according to the ratio between the average of the signal intensities of the sub touch signals of the touch units in the target region and the signal intensity of the sub touch signal of the touch unit having the maximum signal intensity, and the touch signal is sharpened according to the type of the touch tool, so as to avoid the interruption of the touch signal and misjudgment of a touch position due to inadequate intensity of sensing signals of the touch tool.
In order to make the aforementioned and other features and advantages of the invention comprehensible, several exemplary embodiments accompanied with figures are described in detail below.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Reference will now be made in detail to the present preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
The touch panel 102 may receive a touch operation of a touch tool to generate a touch signal corresponding to the touch operation, where the touch tool is, for example, a finger or a stylus, though the invention is not limited thereto. The touch signal may include a plurality of sub touch signals generated by a plurality of touch units in a touch region touched by the touch tool, for example, in a capacitive touch panel, each of the touch units may be composed of a transistor and a corresponding touch sensing pad, and when the touch tool touches the touch panel 102, the touch tool may simultaneously contact a plurality of the touch units, and the touched touch units form the touch region, and the touched touch units may all produce the corresponding sub touch signals.
The processing circuit 104 is coupled to the touch panel 102, and the processing circuit 104 may calculate an average of signal intensities of the sub touch signals of the touch units in a target region, wherein a center of the target region is the touch unit having the maximum signal intensity within the touch region, namely, the target region is formed by the touch unit having the maximum signal intensity and the surrounding touch units in the touch region, and the target region is smaller than or equal to the touch region. The processing circuit 104 may determine a type of the touch tool according to a ratio between an average of signal intensities of the sub touch signals of the touch units located directly adjacent to the touch unit having the maximum signal intensity and a signal intensity of the sub touch signal of the touch unit having the maximum signal intensity.
In detail, before determining the type of the touch tool, the processing circuit 104 may first determines whether the touch signal is a noise signal according to an average of signal intensities of signals output by each of the touch units in the touch region within a predetermined period. For example,
After determining that the signals output by the touch units are not noise signals, the processing circuit 104 may further determine the type of the touch tool. For example,
Moreover, when the touch tool is the stylus, the processing circuit 104 further performs a sharpening processing to the touch signal according to the signal intensities of the sub touch signals produced by the touch units in the touch region in a current touch detection cycle and last N touch detection cycles, wherein N is a positive integer. For example,
In summary, in the embodiment of the invention, the type of the touch tool is determined according to the ratio between the average of the signal intensities of the sub touch signals of the touch units in the target region and the signal intensity of the sub touch signal of the touch unit having the maximum signal intensity, and the touch signal is sharpened according to the type of the touch tool, so as to avoid the interruption of the touch signal and misjudgment of a touch position due to inadequate intensity of sensing signals of the touch tool. In this way, the touch panel is adapted to the stylus with a smaller tip width, which improves a touch resolution of the touch device, and the touch panel is adapted to execute a more precise touch operation.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201711076629.4 | Nov 2017 | CN | national |