Touch device, pen, system, and handwriting generation method

CN117742528BActive Publication Date: 2026-08-07GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Filing Date
2022-09-15
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]本发明实施例提供了一种触控设备、笔、系统及笔迹生成方法,以至少解决由于目前市面上数字化毛笔缺失,造成传统书法和绘画需要用到的油墨、纸张和水等资源浪费的技术问题

Benefits of technology

[0021]In this embodiment of the invention, a touch device is used, including a touch display screen and a processor. The touch display screen includes a panel and a capacitive touch substrate, wherein the capacitive touch substrate is located below the panel. When the panel is subjected to pressure applied by a target object, the charge value of the capacitor module in the capacitive touch substrate corresponding to the pressure point of the panel changes. The processor is configured to determine the charge value distribution of the capacitive touch substrate when the charge value of the capacitor module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge value distribution, wherein the handwriting area is the area in the touch display screen that coincides with the target handwriting; and generate the target handwriting in the handwriting area based on the charge value distribution. By using spatial filtering and temporal filtering to remove edge noise in handwriting display, bilateral filtering to smooth edges, and centroid method to calculate the center trend of the handwriting and optimize the details of the strokes, the handwriting experience is made extremely consistent with real handwriting. This solves the technical problem of wasting resources such as ink, paper, and water used in traditional calligraphy and painting due to the lack of digital brushes currently available on the market.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117742528B_ABST
    Figure CN117742528B_ABST
Patent Text Reader

Abstract

The application discloses a touch device, a pen, a system and a handwriting generation method. The device comprises a touch display screen and a processor. The touch display screen comprises a panel and a capacitive touch substrate. The capacitive touch substrate is located below the panel. When the panel is subjected to pressure applied by a target object, the charge value of a capacitive module corresponding to the stress point of the panel in the capacitive touch substrate changes. The processor is configured to determine the charge value distribution of the capacitive touch substrate when the charge value of the capacitive module in the touch display screen changes. According to the charge value distribution, a handwriting area is determined in the touch display screen. According to the charge value distribution, a target handwriting is generated in the handwriting area. The application solves the technical problem of waste of resources such as ink, paper and water required for traditional calligraphy and painting due to the lack of digital brush on the market.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of touch interaction, and more specifically, to a touch device, pen, system, and handwriting generation method. Background Technology

[0002] Against the backdrop of promoting excellent traditional culture, traditional calligraphy and ink painting have demonstrated their important role. At the same time, with the continuous advancement of public digital culture construction, the application scenarios of public cultural digital services have become richer. Therefore, combining digital services with traditional calligraphy and ink painting has become extremely important.

[0003] Traditional calligraphy and painting require resources such as ink, paper, and water, making the process cumbersome, inconvenient, and wasteful. Capacitive touch is the main trend for future development. However, there is a serious lack of soft brushes and painting brushes specifically for calligraphy and painting on the current touch market. The few digital brushes that exist still require water to gather the brush tip or have severely jagged brush strokes.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a touch device, pen, system, and handwriting generation method to at least solve the technical problem of wasting resources such as ink, paper, and water needed for traditional calligraphy and painting due to the current lack of digital brushes on the market.

[0006] According to one aspect of the present invention, a touch device is provided, comprising: a touch display screen and a processor, wherein the touch display screen includes a panel and a capacitive touch substrate, wherein the capacitive touch substrate is located below the panel, and when the panel is subjected to pressure applied by a target object, the charge value of a capacitor module in the capacitive touch substrate corresponding to the pressure point of the panel changes; the processor is configured to, when the charge value of the capacitor module in the touch display screen changes, determine the charge value distribution of the capacitive touch substrate; determine a handwriting area in the touch display screen based on the charge value distribution, wherein the handwriting area is a region in the touch display screen that coincides with a target handwriting; and generate a target handwriting in the handwriting area based on the charge value distribution.

[0007] Optionally, the processor is further configured to: determine a first charge value distribution map based on the charge value distribution, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; determine a preset charge value, and perform binarization processing on the charge values ​​in the first charge value distribution map based on the preset charge value to obtain a target binary map; perform a closing operation on the target binary map to determine a target region in the target binary map, wherein the target region is the region in the target binary map corresponding to the handwriting region; and determine the handwriting region in the touch display screen based on the target region.

[0008] Optionally, the processor is further configured to: determine the target element whose value changes after a closing operation is performed on the target binary image; determine the charge value of the element adjacent to the target element in the first charge value distribution map; calculate and replace the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element to obtain a second charge value distribution map; and generate the target handwriting in the handwriting area based on the second charge value distribution map.

[0009] Optionally, the processor is further configured to: determine a first charge value of the element above the target element, a second charge value of the element below the target element, a third charge value of the element to the left of the target element, and a fourth charge value of the element to the right of the target element; determine a first coefficient corresponding to the first charge value, a second coefficient corresponding to the second charge value, a third coefficient corresponding to the third charge value, and a fourth coefficient corresponding to the fourth charge value, wherein the sum of the first coefficient, the second coefficient, the third coefficient, and the fourth coefficient is 1; determine a first calculation result of multiplying the first charge value and the first coefficient, a second calculation result of multiplying the second charge value and the second coefficient, a third calculation result of multiplying the third charge value and the third coefficient, and a fourth calculation result of multiplying the fourth charge value and the fourth coefficient; and determine that the charge value after the target element is replaced is equal to the sum of the first calculation result, the second calculation result, the third calculation result, and the fourth calculation result, thereby obtaining a second charge value distribution map.

[0010] Optionally, the processor is further configured to: determine edge elements in the second charge value distribution map based on the charge value distribution in the second charge value distribution map, wherein the edge elements are elements in the second charge value distribution map corresponding to the edges of the handwriting region; determine the charge values ​​of elements adjacent to the edge elements in the second charge value distribution map; calculate and replace the charge values ​​of the edge elements in the second charge value distribution map based on the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map to obtain a third charge value distribution map; and generate the target handwriting in the handwriting region based on the third charge value distribution map.

[0011] Optionally, the processor is further configured to: determine a fifth charge value for an element above an edge element and a sixth charge value for an element below an edge element; determine a fifth coefficient corresponding to the fifth charge value, a sixth coefficient corresponding to the sixth charge value, and a seventh coefficient corresponding to the charge value of the edge element, wherein the sum of the fifth, sixth, and seventh coefficients is 1; determine a fifth calculation result of multiplying the fifth charge value by the fifth coefficient, a sixth calculation result of multiplying the sixth charge value by the sixth coefficient, and a seventh calculation result of multiplying the charge value of the edge element by the seventh coefficient; and determine that the charge value of the edge element is equal to the fifth calculation result, the sixth calculation result, and the seventh calculation result, thereby obtaining a third charge value distribution map.

[0012] Optionally, the processor is further configured to: determine the historical charge value corresponding to each element in the second charge value distribution map, wherein the historical charge value corresponding to each element is the charge value of each element in a preset number of frames prior to the current frame, and the current frame is the frame in which the charge value of the capacitor module in the touch display changes; calculate and replace the current frame charge value of each element in the third charge value distribution map based on the current frame charge value of each element in the second charge value distribution map and the historical charge value, to obtain a fourth charge value distribution map; and generate a target handwriting in the handwriting area based on the fourth charge value distribution map.

[0013] Optionally, the processor is further configured to: determine a planar coordinate system in the panel; determine a first coordinate value and a second coordinate value of a sensing point in the handwriting area in the planar coordinate system, and a charge value corresponding to the sensing point, wherein the sensing point is a point in the panel corresponding to a capacitor module in the capacitive touch substrate, and each sensing point corresponds to a capacitor module; determine a first coordinate value and a second coordinate value of a target point in the planar coordinate system based on the charge value corresponding to the sensing point, the first coordinate value corresponding to the sensing point, and the second coordinate value corresponding to the sensing point, wherein the target point is the centroid of the target handwriting; and adjust the edge of the target handwriting based on the centroid.

[0014] According to another aspect of the present invention, a stylus is also provided, comprising: a first pen tip and a second pen tip, wherein the first pen tip is made of conductive polymer foam, and the second pen tip is made of conductive metal compound fiber; the first pen tip or the second pen tip applies a second pressure to a touch display screen in a touch device when subjected to a first pressure applied by a target object, and the magnitude of the second pressure is proportional to the magnitude of the first pressure, wherein the second pressure is used to instruct the capacitive touch substrate in the touch device to generate a handwriting corresponding to the second pressure.

[0015] According to another aspect of the present invention, a touch system is also provided, comprising: a touch device and a stylus, wherein the stylus includes a first pen tip and a second pen tip, wherein the first pen tip is made of conductive polymer foam and the second pen tip is made of conductive metal compound fiber; the first pen tip or the second pen tip, when subjected to a first pressure applied by a target object, applies a second pressure to a touch display screen in the touch device, and the magnitude of the second pressure is proportional to the magnitude of the first pressure, wherein the second pressure is used to instruct a capacitive touch substrate in the touch device to generate a handwriting corresponding to the second pressure; the touch device includes: a touch display screen and a processor; the processor is configured to: determine the charge distribution of the capacitive touch substrate when the charge value of the capacitive module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge distribution, wherein the handwriting area is an area in the touch display screen that coincides with a target handwriting; and generate a target handwriting in the handwriting area based on the charge distribution.

[0016] According to another aspect of the present invention, a handwriting generation method is also provided, which is applicable to the above-mentioned touch device, comprising: determining the charge distribution of a capacitor module in a capacitive touch substrate when pressure is applied to a target object; determining a handwriting area in a touch display screen based on the charge distribution, wherein the handwriting area is an area in the touch display screen that overlaps with a target handwriting; and generating a target handwriting in the handwriting area based on the charge distribution.

[0017] Optionally, the step of determining the handwriting area in the touch display screen includes: determining a first charge value distribution map based on the charge value distribution, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; determining a preset charge value, and performing binarization processing on the charge values ​​in the first charge value distribution map based on the preset charge value to obtain a target binary map; performing a closing operation on the target binary map to determine a target area in the target binary map, wherein the target area is the area in the target binary map corresponding to the handwriting area; and determining the handwriting area in the touch display screen based on the target area.

[0018] Optionally, the step of determining the handwriting area in the touch display screen includes: determining the target element whose value changes after performing a closing operation on the target binary image; determining the charge value of the element adjacent to the target element in the first charge value distribution map; calculating and replacing the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element to obtain a second charge value distribution map; and generating the target handwriting in the handwriting area based on the second charge value distribution map.

[0019] Optionally, the step of determining the handwriting area in the touch display screen includes: determining edge elements in the second charge value distribution map based on the charge value distribution in the second charge value distribution map, wherein the edge elements are the elements in the second charge value distribution map corresponding to the edge of the handwriting area; determining the charge value of the elements adjacent to the edge elements in the second charge value distribution map; calculating and replacing the charge value of the edge elements in the second charge value distribution map based on the charge value of the elements adjacent to the edge elements in the second charge value distribution map to obtain a third charge value distribution map; and generating the target handwriting in the handwriting area based on the third charge value distribution map.

[0020] Optionally, the step of determining the handwriting area in the touch display screen includes: determining the historical charge value corresponding to each element in the second charge value distribution map, wherein the historical charge value corresponding to each element is the charge value of each element in a preset number of frames before the current frame, and the current frame is the frame in which the charge value of the capacitor module in the touch display screen changes; calculating and replacing the current frame charge value of each element in the third charge value distribution map based on the current frame charge value of each element in the second charge value distribution map and the historical charge value to obtain a fourth charge value distribution map; and generating the target handwriting in the handwriting area based on the fourth charge value distribution map.

[0021] In this embodiment of the invention, a touch device is used, including a touch display screen and a processor. The touch display screen includes a panel and a capacitive touch substrate, wherein the capacitive touch substrate is located below the panel. When the panel is subjected to pressure applied by a target object, the charge value of the capacitor module in the capacitive touch substrate corresponding to the pressure point of the panel changes. The processor is configured to determine the charge value distribution of the capacitive touch substrate when the charge value of the capacitor module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge value distribution, wherein the handwriting area is the area in the touch display screen that coincides with the target handwriting; and generate the target handwriting in the handwriting area based on the charge value distribution. By using spatial filtering and temporal filtering to remove edge noise in handwriting display, bilateral filtering to smooth edges, and centroid method to calculate the center trend of the handwriting and optimize the details of the strokes, the handwriting experience is made extremely consistent with real handwriting. This solves the technical problem of wasting resources such as ink, paper, and water used in traditional calligraphy and painting due to the lack of digital brushes currently available on the market. Attached Figure Description

[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0023] Figure 1 This is a schematic diagram of the structure of a touch device according to an embodiment of the present invention;

[0024] Figure 2 This is a schematic diagram of the structure of a calligraphy soft-touch pen provided according to an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of the structure of a painting brush stylus provided in an embodiment of the present invention;

[0026] Figure 4 This is a schematic flowchart of a handwriting generation method provided by an embodiment of the present invention;

[0027] Figure 5 This is a schematic flowchart of a handwriting fitting method provided according to an embodiment of the present invention;

[0028] Figure 6 This is a schematic diagram of the original data of brush writing according to an embodiment of the present invention;

[0029] Figure 7 This is a schematic diagram of a binarized image provided according to an embodiment of the present invention;

[0030] Figure 8This is a schematic diagram of a binary image after a closing operation according to an embodiment of the present invention;

[0031] Figure 9 This is a schematic diagram of the boundary of a writing region after a closing operation according to an embodiment of the present invention;

[0032] Figure 10 This is a schematic diagram illustrating the principle of calculating the centroid coordinates according to an embodiment of the present invention. Detailed Implementation

[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] Example 1

[0036] According to an embodiment of the present invention, an embodiment of a touch device is provided. Figure 1 This is a schematic diagram of the structure of a touch device according to an embodiment of the present invention, such as... Figure 1As shown, the touch device includes a touch display screen and a processor 20. The touch display screen includes a panel 10 and a capacitive touch substrate 12. The capacitive touch substrate 12 is located below the panel 10. When the panel 10 is subjected to pressure applied by a target object, the charge value of the capacitor module in the capacitive touch substrate 12 corresponding to the pressure point of the panel 10 changes. The processor 20 is configured to determine the charge value distribution of the capacitive touch substrate 12 when the charge value of the capacitor module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge value distribution, wherein the handwriting area is the area in the touch display screen that coincides with the target handwriting; and generate the target handwriting in the handwriting area based on the charge value distribution.

[0037] In this embodiment, the panel 10 can be a protective panel made of glass.

[0038] To achieve the technical effect of generating target handwriting based on the changes in the charge values ​​of the capacitor modules in the touch display screen, the processor 20 is further configured to: determine a first charge value distribution map based on the charge value distribution, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate 12, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate 12 in the touch display screen; determine a preset charge value, and perform binarization processing on the charge values ​​in the first charge value distribution map based on the preset charge value to obtain a target binary map; perform a closing operation on the target binary map to determine a target region in the target binary map, wherein the target region is the region in the target binary map corresponding to the handwriting region; and determine the handwriting region in the touch display screen based on the target region.

[0039] Specifically, when the brush tip or sponge touches the capacitive screen, the capacitive screen will sense the change in charge of the corresponding touch point (i.e., the aforementioned capacitive module) and obtain the original data of the brush writing, namely the aforementioned first charge value distribution map; the original data is binarized to obtain a binarized map (i.e., the aforementioned target binary map), and mathematical morphology closing operation is performed on the binarized map to remove noise in space.

[0040] To fill in noise in the original data, the processor 20 is also configured to: determine the target element whose value changes after a closing operation is performed on the target binary image; determine the charge value of the element adjacent to the target element in the first charge value distribution map; calculate and replace the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element, to obtain a second charge value distribution map; and generate the target handwriting in the handwriting area based on the second charge value distribution map.

[0041] In some embodiments of this application, the processor 20 is further configured to: determine a first charge value of an element above a target element, a second charge value of an element below a target element, a third charge value of an element to the left of the target element, and a fourth charge value of an element to the right of the target element; determine a first coefficient corresponding to the first charge value, a second coefficient corresponding to the second charge value, a third coefficient corresponding to the third charge value, and a fourth coefficient corresponding to the fourth charge value, wherein the sum of the first coefficient, the second coefficient, the third coefficient, and the fourth coefficient is 1; determine a first calculation result of multiplying the first charge value by the first coefficient, a second calculation result of multiplying the second charge value by the second coefficient, a third calculation result of multiplying the third charge value by the third coefficient, and a fourth calculation result of multiplying the fourth charge value by the fourth coefficient; and determine that the charge value after the target element is replaced is equal to the sum of the first calculation result, the second calculation result, the third calculation result, and the fourth calculation result, thereby obtaining a second charge value distribution map.

[0042] Specifically, after denoising the binary image, it is necessary to fill in the original data corresponding to the coordinate points in the binary image that were previously filled with 0 and now filled with 1. In this embodiment, the fill value is 0.2 (i.e., the first coefficient mentioned above). The capacitance value of the adjacent previous coordinate point (i.e., the first charge value mentioned above) + 0.2 (i.e., the second coefficient mentioned above). The capacitance value at the next adjacent coordinate point (i.e., the second charge value mentioned above) + 0.3 (i.e., the third coefficient mentioned above). The capacitance value of the adjacent left coordinate point (i.e., the third charge value mentioned above) + 0.3 (i.e., the fourth coefficient mentioned above) The capacitance value of the adjacent right coordinate point (i.e., the fourth charge value mentioned above). The first, second, third, and fourth coefficients are adjustable and can be adjusted according to the actual situation to fill in noise in the original data. A constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0043] To remove noise at the boundaries of the written data, the processor 20 is further configured to: determine edge elements in the second charge value distribution map based on the charge value distribution in the second charge value distribution map, wherein the edge elements are elements in the second charge value distribution map corresponding to the edges of the handwriting area; determine the charge values ​​of elements adjacent to the edge elements in the second charge value distribution map; calculate and replace the charge values ​​of the edge elements in the second charge value distribution map based on the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map to obtain a third charge value distribution map; and generate the target handwriting in the handwriting area based on the third charge value distribution map.

[0044] In some embodiments of this application, the processor 20 is further configured to: determine a fifth charge value for an element above an edge element and a sixth charge value for an element below an edge element; determine a fifth coefficient corresponding to the fifth charge value, a sixth coefficient corresponding to the sixth charge value, and a seventh coefficient corresponding to the charge value of the edge element, wherein the sum of the fifth coefficient, the sixth coefficient, and the seventh coefficient is 1; determine a fifth calculation result of multiplying the fifth charge value and the fifth coefficient, a sixth calculation result of multiplying the sixth charge value and the sixth coefficient, and a seventh calculation result of multiplying the charge value of the edge element and the seventh coefficient; determine that the charge value of the edge element is equal to the fifth calculation result, and add the sixth calculation result and the seventh calculation result to obtain a third charge value distribution map.

[0045] In this embodiment, spatial noise filtering is performed on the original data corresponding to the edge elements. Specifically, for each boundary point (i.e., edge element), its capacitance value is filled with a new value based on the capacitance values ​​of its adjacent previous and next points. The formula is: Boundary point fill value = 0.6 (i.e., the seventh coefficient mentioned above). The original capacitance value at the boundary point (i.e., the charge value of the edge element mentioned above) + 0.2 (i.e., the fifth coefficient mentioned above). The capacitance value of the previous coordinate point adjacent to the boundary point (i.e., the fifth charge value mentioned above) + 0.2 (i.e., the sixth coefficient mentioned above). The capacitance value of the next coordinate point adjacent to the boundary point (i.e., the sixth charge value mentioned above). Among them, 0.2 and 0.6 are filter coefficients, namely the fifth, sixth and seventh coefficients mentioned above, which can be adjusted according to the actual situation. The constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0046] To remove abrupt noise in capacitance values ​​within the writing area, the processor 20 is further configured to: determine the historical charge values ​​corresponding to each element in the second charge value distribution map, wherein the historical charge values ​​corresponding to each element are the charge values ​​of each element in a preset number of frames prior to the current frame, and the current frame is the frame in which the charge values ​​of the capacitor modules in the touch display screen change; calculate and replace the current frame charge values ​​of each element in the third charge value distribution map based on the current frame charge values ​​of each element in the second charge value distribution map and the historical charge values, to obtain a fourth charge value distribution map; and generate the target handwriting in the handwriting area based on the fourth charge value distribution map.

[0047] Specifically, IIR filtering (Infinite Impulse Responder) is performed on the historical charge values ​​from one or more frames preceding each element in the second charge value distribution map. For example, when filtering only the data from the previous frame, the coefficients can be set to 0.5, so the filtered capacitance value = 0.5. Current capacitance value at this coordinate point + 0.5 The capacitance value of this coordinate point in the previous frame; when filtering with the data from the previous two frames, the coefficients can be set to 0.5, 0.25, and 0.25, then the filtered capacitance value = 0.5. Current capacitance value at this coordinate point + 0.25 The capacitance value of this coordinate point in the previous frame is increased by 0.25. The capacitance values ​​for the two frames at this coordinate point. The specific filtering and filter coefficient settings for this frame, along with the previous frames, can be adjusted according to the actual situation. A constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0048] To further define the edges, the processor 20 is also configured to: determine a planar coordinate system in the panel 10; determine the first and second coordinate values ​​of the sensing points in the handwriting area in the planar coordinate system, as well as the charge value corresponding to the sensing points, wherein the sensing points are points in the panel 10 corresponding to the capacitor modules in the capacitive touch substrate 12, and each sensing point corresponds to a capacitor module; determine the first and second coordinate values ​​of the target point in the planar coordinate system based on the charge value corresponding to the sensing point, the first coordinate value corresponding to the sensing point, and the second coordinate value corresponding to the sensing point, wherein the target point is the centroid of the target handwriting; and adjust the edges of the target handwriting based on the centroid.

[0049] In this embodiment, the centroid method is used to calculate the centroid of each frame of writing touch data. Then, in the time domain, the handwriting trend is beautified based on the movement trajectory of the centroid to achieve the most realistic writing experience. Specifically, the principle of calculating the centroid coordinates is as follows: determine the first and second coordinate values ​​of the sensing points in the handwriting area in the planar coordinate system, as well as the charge value corresponding to the sensing point. The horizontal axis is equal to the sum of the capacitance value of each touch point (and the charge value corresponding to the sensing point) and the x-coordinate value of the touch point (i.e., the first coordinate value), and then divided by the sum of the capacitance values ​​of each touch point. The vertical axis is equal to the sum of the capacitance value of each touch point and the y-coordinate value of the touch point (i.e., the second coordinate value), and then divided by the sum of the capacitance values ​​of each touch point.

[0050] In this embodiment of the invention, by means of a touch device, including a touch display screen and a processor, edge noise is removed by using spatial filtering and temporal filtering in handwriting display, edge smoothing is achieved by bilateral filtering, and the center trend of the handwriting is calculated by the centroid method to further optimize the details of the strokes. This achieves the goal of handwriting experience being extremely consistent with real handwriting, thereby solving the technical problem of wasting resources such as ink, paper and water used in traditional calligraphy and painting due to the lack of digital brushes on the market.

[0051] Example 2

[0052] According to an embodiment of the present invention, a stylus is provided, comprising: a first pen tip and a second pen tip, wherein the first pen tip is made of conductive polymer foam, and the second pen tip is made of conductive metal compound fiber; the first pen tip or the second pen tip applies a second pressure to a touch display screen in a touch device when subjected to a first pressure applied by a target object, and the magnitude of the second pressure is proportional to the magnitude of the first pressure, wherein the second pressure is used to instruct the capacitive touch substrate in the touch device to generate a handwriting corresponding to the second pressure.

[0053] In this embodiment, the stylus can use a calligraphy soft brush tip (i.e., the first brush tip mentioned above) and a painting brush tip (i.e., the second brush tip mentioned above). Both types of brush tips are conductive, and the connection between the brush tip and the pen barrel is made into a detachable structure that can be screwed on. The pen barrel shell is made of conductive metal.

[0054] Figure 2 This is a structural schematic diagram of a calligraphy soft-touch pen provided according to an embodiment of the present invention, such as... Figure 2 As shown.

[0055] In this embodiment, the calligraphy brush tip (i.e., the first brush tip mentioned above) is made of conductive IXPE foam, and is formed as follows: Figure 2 The shape shown resembles the gathering of water when a real calligraphy brush is dipped in water.

[0056] Specifically, conductive IXPE foam uses polyethylene (PE) and carbon black as the main raw materials, with the addition of dozens of high-performance additives. Through a series of refined processes including intensive mixing, granulation, extrusion, irradiation, and heated mixing and foaming, the carbon black additives are combined with the polyethylene to form a conductive network within the foam, resulting in a high-molecular conductive foam. This foam possesses high elasticity, wear resistance, excellent conductivity, and corrosion resistance. The physical properties of conductive IXPE foam are similar to those of a dip pen used for calligraphy, except that conductive IXPE foam does not require water and can be used directly on capacitive touchscreens.

[0057] Figure 3 This is a schematic diagram of the structure of a drawing brush stylus provided according to an embodiment of the present invention, such as... Figure 3 As shown.

[0058] The brush tip (i.e., the second brush tip mentioned above) is made of conductive chemical fibers.

[0059] Specifically, conductive fibers refer to chemical fibers, metal fibers, carbon fibers, etc., spun from polymers incorporating conductive media. They possess superior static elimination and prevention properties compared to antistatic fibers, and their resistivity remains constant and is largely unaffected by humidity. Based on the distribution of conductive components, they are classified into three types: uniform, coated, and composite. They are generally produced by adding conductive media such as carbon black, graphite, metal powder, or metal compounds to the fibers using methods such as solution mixing, vapor deposition, electroplating, and composite spinning. Their crystallization can be used for electrostatic induction shielding, and fabrics containing a small amount of conductive fibers can also be used as special work clothes, dust brushes, etc.

[0060] As an alternative embodiment, the brush tip can be made of conductive metal compound fibers, using sulfides, iodides or oxides of copper, silver, nickel and cadmium as conductive materials, and manufactured by mixed spinning, adsorption or chemical reaction methods; or it can be made of organic conductive fibers directly spun from polymer conductive materials such as polyacetylene, polyaniline, polypyrrole, and polythiophene.

[0061] In this embodiment of the invention, the stylus has a user experience where the pen tip material, made of conductive sponge or conductive fiber, has a physical feel extremely similar to a real sponge brush or paintbrush, resulting in realistic handwriting that meets the requirements of calligraphy and painting. Furthermore, practicing and teaching calligraphy and painting with the stylus of this invention saves water and ink, eliminates the need for dipping, and is low-carbon and environmentally friendly.

[0062] Example 3

[0063] According to an embodiment of the present invention, a touch system is provided, the touch system comprising: a touch device, a stylus, wherein the stylus includes a first pen tip and a second pen tip, wherein the first pen tip is made of conductive polymer foam, and the second pen tip is made of conductive metal compound fiber; the first pen tip or the second pen tip, when subjected to a first pressure applied by a target object, applies a second pressure to a touch display screen in the touch device, and the magnitude of the second pressure is proportional to the magnitude of the first pressure, wherein the second pressure is used to instruct a capacitive touch substrate in the touch device to generate a handwriting corresponding to the second pressure; the touch device includes: a touch display screen and a processor; the processor is configured to: determine the charge distribution of the capacitive touch substrate when the charge value of the capacitive module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge distribution, wherein the handwriting area is an area in the touch display screen that coincides with a target handwriting; and generate a target handwriting in the handwriting area based on the charge distribution.

[0064] Specifically, the stylus can use either a calligraphy brush tip or a painting brush tip, both of which are conductive. The connection between the brush tip and the pen body is a detachable structure that can be screwed on. The pen body shell is made of conductive metal. When writing or drawing on a capacitive touchscreen device, the contact area between the brush tip and the screen changes. Different pressures cause variations in the capacitance of the contact surface between the brush tip and the screen. The device filters and fits the handwriting based on the sensed capacitance and its changes, calculates the true handwriting, and then displays it on the screen.

[0065] Traditional calligraphy requires a large amount of water, ink, and paper, which exacerbates deforestation and increases environmental pollution. However, using the touch-screen system of this invention for practicing and teaching calligraphy and painting eliminates the need for water, ink, and paper, making it low-carbon, environmentally friendly, and energy-saving.

[0066] Example 4

[0067] According to an embodiment of the present invention, a method for generating handwriting is provided, which is applicable to the aforementioned touch device.

[0068] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0069] Figure 4 This is a schematic diagram of a handwriting generation method according to an embodiment of the present invention, such as... Figure 4 As shown, the method includes the following steps:

[0070] Step S402: Determine the charge distribution of the capacitor module in the capacitive touch substrate when pressure is applied to the target object.

[0071] Step S404: Based on the charge distribution, determine the handwriting area in the touch screen, wherein the handwriting area is the area in the touch screen that overlaps with the target handwriting.

[0072] To achieve the technical effect of generating target handwriting based on the changes in the charge values ​​of the capacitor modules in the touch display screen, the steps for determining the handwriting area in the touch display screen include: determining a first charge value distribution map based on the charge value distribution, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; determining a preset charge value, and performing binarization processing on the charge values ​​in the first charge value distribution map based on the preset charge value to obtain a target binary map; performing a closing operation on the target binary map to determine a target area in the target binary map, wherein the target area is the area in the target binary map corresponding to the handwriting area; and determining the handwriting area in the touch display screen based on the target area.

[0073] Specifically, when the brush tip or sponge touches the capacitive screen, the capacitive screen will sense the change in charge of the corresponding touch point (i.e., the aforementioned capacitive module) and obtain the original data of the brush writing, namely the aforementioned first charge value distribution map; the original data is binarized to obtain a binarized map (i.e., the aforementioned target binary map), and mathematical morphology closing operation is performed on the binarized map to remove noise in space.

[0074] To fill in noise in the original data, the steps for determining the handwriting area in the touch display screen include: identifying the target element whose value changes after performing a closing operation on the target binary image; determining the charge value of the element adjacent to the target element in the first charge value distribution map; calculating and replacing the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element, to obtain a second charge value distribution map; and generating the target handwriting in the handwriting area based on the second charge value distribution map.

[0075] To remove noise at the boundaries of the written data, the steps for determining the handwriting area in the touch screen include: determining edge elements in the second charge value distribution map based on the charge value distribution in the second charge value distribution map, wherein the edge elements are the elements in the second charge value distribution map corresponding to the edges of the handwriting area; determining the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map; calculating and replacing the charge values ​​of the edge elements in the second charge value distribution map based on the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map to obtain a third charge value distribution map; and generating the target handwriting in the handwriting area based on the third charge value distribution map.

[0076] To remove abrupt noise from capacitance values ​​within the writing area, the steps for determining the handwriting area in the touchscreen display include: determining the historical charge value corresponding to each element in the second charge value distribution map, wherein the historical charge value corresponding to each element is the charge value of each element in a preset number of frames prior to the current frame, and the current frame is the frame in which the charge value of the capacitor module in the touchscreen display changes; calculating and replacing the current frame charge value of each element in the third charge value distribution map based on the current frame charge value of each element in the second charge value distribution map and the historical charge value, to obtain a fourth charge value distribution map; and generating the target handwriting in the handwriting area based on the fourth charge value distribution map.

[0077] Specifically, IIR filtering (recursive filtering) is performed on the historical charge values ​​from one or more frames preceding each element in the second charge value distribution map. For example, when filtering only the data from the previous frame, the coefficients can be set to 0.5, so the filtered capacitance value = 0.5. Current capacitance value at this coordinate point + 0.5 The capacitance value of this coordinate point in the previous frame; when filtering with the data from the previous two frames, the coefficients can be set to 0.5, 0.25, and 0.25, then the filtered capacitance value = 0.5. Current capacitance value at this coordinate point + 0.25 The capacitance value of this coordinate point in the previous frame is increased by 0.25. The capacitance values ​​for the two frames at this coordinate point. The specific filtering and filter coefficient settings for this frame, along with the previous frames, can be adjusted according to the actual situation. A constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0078] Step S406: Generate the target handwriting in the handwriting area based on the charge distribution.

[0079] The method for generating handwriting in steps S402 to S406 of this application embodiment is further described below.

[0080] Figure 5 This is a schematic flowchart of a handwriting fitting method provided by an embodiment of the present invention, as shown below. Figure 5 As shown, the method includes the following steps:

[0081] Step S502: Set a threshold to perform binarization grayscale processing on the capacitive touch value;

[0082] Specifically, when a pen tip or sponge touches the capacitive screen, the screen senses a change in the amount of charge at the corresponding touch point. For example, a charge of 0 represents no touch, and a charge greater than 10 represents a touch. The touch data is then binarized: values ​​greater than 10 are marked as 1, and values ​​less than 10 are marked as 0, resulting in a binarized image. Figure 6 This is a schematic diagram of the original data for brush writing according to an embodiment of the present invention, such as... Figure 6 As shown; Figure 7 This is a schematic diagram of a binarized image provided according to an embodiment of the present invention, such as... Figure 7 As shown.

[0083] Step S504: The closing operation removes the noise from the empty spots in the middle of the handwriting and fills in the noise.

[0084] Specifically, a mathematical morphological closing operation is performed on the binarized image to remove spatial noise. Figure 8 This is a schematic diagram of a binary graph after a closing operation according to an embodiment of the present invention, such as... Figure 8 As shown.

[0085] In this embodiment, the kernel matrix used in the closing operation can be 3. 3-matrix or 5-matrix The matrix consists of 5 parts, where the kernel matrix can be adjusted according to the actual situation.

[0086] Specifically, after denoising the binary image, it is necessary to fill in the original data corresponding to the coordinate points in the binary image that were previously filled with 0 and now filled with 1. In this embodiment, the fill value is 0.2 (i.e., the first coefficient mentioned above). The capacitance value of the adjacent previous coordinate point (i.e., the first charge value mentioned above) + 0.2 (i.e., the second coefficient mentioned above). The capacitance value at the next adjacent coordinate point (i.e., the second charge value mentioned above) + 0.3 (i.e., the third coefficient mentioned above). The capacitance value of the adjacent left coordinate point (i.e., the third charge value mentioned above) + 0.3 (i.e., the fourth coefficient mentioned above) The capacitance value of the adjacent right coordinate point (i.e., the fourth charge value mentioned above). The first, second, third, and fourth coefficients are adjustable and can be adjusted according to the actual situation to fill in noise in the original data. A constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0087] Step S506: Edge spatial domain filtering removes edge noise;

[0088] Specifically, noise is removed from the capacitance values ​​at the boundaries of the original data. Figure 9 This is a schematic diagram of the writing region boundary after a closing operation according to an embodiment of the present invention, as shown above. Figure 9 As shown, after the binary graph is closed, the boundary of the writing region is marked as 10, and the original data corresponding to the marked 10 is subjected to spatial noise filtering.

[0089] Specifically, for each boundary point (i.e., edge element), its capacitance value is filled with a new value based on the capacitance values ​​of its adjacent previous and next points. The formula is: Boundary point fill value = 0.6 (i.e., the seventh coefficient mentioned above). The original capacitance value at the boundary point (i.e., the charge value of the edge element mentioned above) + 0.2 (i.e., the fifth coefficient mentioned above). The capacitance value of the previous coordinate point adjacent to the boundary point (i.e., the fifth charge value mentioned above) + 0.2 (i.e., the sixth coefficient mentioned above). The capacitance value of the next coordinate point adjacent to the boundary point (i.e., the sixth charge value mentioned above). Among them, 0.2 and 0.6 are filter coefficients, namely the fifth, sixth and seventh coefficients mentioned above, which can be adjusted according to the actual situation. The constraint on the filter coefficients is that the sum of the filter coefficients must be 1.

[0090] Step S508: Time-domain filtering removes internal abrupt noise;

[0091] Specifically, noise reduction is performed on the capacitance values ​​within the original data writing area. For example... Figure 9 As shown, the binary image after the closing operation, with area marked 1 representing the internal touch data. The original data corresponding to each coordinate point marked 1 must undergo IIR filtering with one or more previous frames. For example, when filtering only with the data from the previous frame, the coefficients can be set to 0.5, resulting in a filtered capacitance value of 0.5. Current capacitance value at this coordinate point + 0.5 The capacitance value of this coordinate point in the previous frame; when filtering with the data from the previous two frames, the coefficients can be set to 0.5, 0.25, and 0.25, then the filtered capacitance value = 0.5. Current capacitance value at this coordinate point + 0.25 The capacitance value of this coordinate point in the previous frame is increased by 0.25. The capacitance values ​​for the two frames at this coordinate point. The specific filtering and filter coefficient settings for this frame, along with the previous frames, can be adjusted according to the actual situation. A constraint for the filter coefficients is that the sum of the filter coefficients must be 1. This step prevents data abrupt changes caused by noise interference in the internal touch area.

[0092] Step S510: Edge bilateral filtering smooths the boundary;

[0093] Specifically, bilateral filtering, while filtering the writing touch area, can effectively preserve the edges of the complete touch area. Its principle involves multiplying a Gaussian function representing spatial distance with a Gaussian function representing grayscale distance. The bilateral formula is shown below:

[0094]

[0095] in, for:

[0096]

[0097] in, For the spatial domain core, Let p and q represent pixels, s represent the set of all pixels in the image to be processed, and I represent the capacitance value corresponding to a pixel.

[0098] In this embodiment, through 3 3 or 5 The window in step 5 performs bilateral filtering on the raw data filtered in the previous step. This step aims to further refine edges and remove internal noise.

[0099] Step S512: Calculate the center stroke trend using the centroid method and fine-tune the stroke edges.

[0100] In this embodiment, the center of gravity of each frame of writing touch data is calculated using the center of gravity method. Then, in the time domain, the handwriting trend is beautified based on the movement trajectory of the center of gravity to achieve the most realistic writing experience. Figure 10 This is a schematic diagram illustrating the principle of calculating the centroid coordinates according to an embodiment of the present invention, as shown below. Figure 10 As shown.

[0101] Specifically, the principle for calculating the centroid coordinates is as follows: Cx is the abscissa of the centroid, and Cy is the abscissa of the centroid. The first and second coordinate values ​​of the sensing points in the handwriting area in the planar coordinate system are determined, along with the corresponding charge value of each sensing point. The abscissa is equal to the sum of the capacitance value of each touch point (and the corresponding charge value of the sensing point) and the x-coordinate value of that touch point (i.e., the first coordinate value mentioned above), divided by the sum of the capacitance values ​​of all touch points. The ordinate is equal to the sum of the capacitance value of each touch point and the y-coordinate value of that touch point (i.e., the second coordinate value mentioned above), divided by the sum of the capacitance values ​​of all touch points.

[0102] In this embodiment, spatial filtering and temporal filtering are used to remove edge noise in handwriting display, bilateral filtering is used to smooth the edges, and the centroid method is used to calculate the center trend of the handwriting and optimize the details of the strokes. Finally, the handwriting experience is extremely consistent with real handwriting.

[0103] Through the above steps, by using spatial filtering and temporal filtering to remove edge noise in handwriting display, bilateral filtering to smooth edges, and centroid method to calculate the center trend of handwriting and optimize the details of the strokes, the handwriting experience is extremely consistent with real handwriting. This solves the technical problem of wasting resources such as ink, paper and water used in traditional calligraphy and painting due to the lack of digital brushes on the market.

[0104] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0105] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0106] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0107] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0108] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0109] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0110] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A touch device, characterized in that, Including a touch display and a processor, among which, The touch display screen includes a panel and a capacitive touch substrate, wherein the capacitive touch substrate is located below the panel, and when the panel is subjected to pressure applied by a target object, the charge value of the capacitor module in the capacitive touch substrate corresponding to the pressure point of the panel will change. The processor is configured to, when the charge value of the capacitor module in the touch display changes, determine the charge distribution of the capacitive touch substrate; determine a handwriting area in the touch display based on the charge distribution, wherein the handwriting area is an area in the touch display that coincides with a target handwriting; and generate the target handwriting in the handwriting area based on the charge distribution. The processor is also configured to: Based on the charge value distribution, a first charge value distribution map is determined, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; a preset charge value is determined, and the charge values ​​in the first charge value distribution map are binarized according to the preset charge value to obtain a target binary map; a closing operation is performed on the target binary map to determine a target region in the target binary map, wherein the target region is the region in the target binary map corresponding to the handwriting region; based on the target region, the handwriting region is determined in the touch display screen; The processor is also configured to: Identify the target element whose value changes after performing a closing operation on the target binary image; determine the charge value of the element adjacent to the target element in the first charge value distribution map; calculate and replace the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element to obtain a second charge value distribution map; generate the target handwriting in the handwriting area based on the second charge value distribution map.

2. The touch device according to claim 1, characterized in that, The processor is also configured to: Determine the first charge value of the element above the target element, the second charge value of the element below the target element, the third charge value of the element to the left of the target element, and the fourth charge value of the element to the right of the target element; Determine a first coefficient corresponding to the first charge value, a second coefficient corresponding to the second charge value, a third coefficient corresponding to the third charge value, and a fourth coefficient corresponding to the fourth charge value, wherein the sum of the first coefficient, the second coefficient, the third coefficient, and the fourth coefficient is 1; Determine a first calculation result by multiplying the first charge value and the first coefficient, a second calculation result by multiplying the second charge value and the second coefficient, a third calculation result by multiplying the third charge value and the third coefficient, and a fourth calculation result by multiplying the fourth charge value and the fourth coefficient; The charge value after the target element is replaced is determined to be equal to the first calculation result, the second calculation result, the third calculation result, and the fourth calculation result, thereby obtaining the second charge value distribution map.

3. The touch device according to claim 1, characterized in that, The processor is also configured to: Based on the charge value distribution in the second charge value distribution map, edge elements are determined in the second charge value distribution map, wherein the edge elements are the elements in the second charge value distribution map that correspond to the edge of the handwriting area; Determine the charge value of the element adjacent to the edge element in the second charge value distribution map; Based on the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map, calculate and replace the charge values ​​of the edge elements in the second charge value distribution map to obtain a third charge value distribution map; Based on the third charge distribution map, the target handwriting is generated in the handwriting area.

4. The touch device according to claim 3, characterized in that, The processor is also configured to: Determine the fifth charge value of the element above the edge element and the sixth charge value of the element below the edge element; Determine the fifth coefficient corresponding to the fifth charge value, the sixth coefficient corresponding to the sixth charge value, and the seventh coefficient corresponding to the charge value of the edge element, wherein the sum of the fifth coefficient, the sixth coefficient, and the seventh coefficient is 1; The fifth calculation result is determined by multiplying the fifth charge value by the fifth coefficient, the sixth calculation result is determined by multiplying the sixth charge value by the sixth coefficient, and the seventh calculation result is determined by multiplying the charge value of the edge element by the seventh coefficient. The charge value of the edge element is determined to be equal to the fifth calculation result. The sixth calculation result and the seventh calculation result are added together to obtain the third charge value distribution map.

5. The touch device according to claim 3, characterized in that, The processor is also configured to: Determine the historical charge value corresponding to each element in the second charge value distribution map, wherein the historical charge value corresponding to each element is the charge value of each element in a preset number of frames before the current frame, and the current frame is the frame in which the charge value of the capacitor module in the touch display screen changes; Based on the current frame charge value of each element in the second charge value distribution map and the historical charge value, calculate and replace the current frame charge value of each element in the third charge value distribution map to obtain the fourth charge value distribution map. Based on the fourth charge distribution map, the target handwriting is generated in the handwriting area.

6. The touch device according to claim 1, characterized in that, The processor is also configured to: A planar coordinate system is defined in the panel; The first coordinate value and the second coordinate value of the sensing point in the handwriting area in the plane coordinate system are determined, as well as the charge value corresponding to the sensing point, wherein the sensing point is a point in the panel that corresponds to the capacitor module in the capacitive touch substrate, and each sensing point corresponds to one capacitor module. Based on the charge value corresponding to the sensing point, the first coordinate value corresponding to the sensing point, and the second coordinate value corresponding to the sensing point, the first coordinate value and the second coordinate value of the target point in the plane coordinate system are determined, wherein the target point is the centroid of the target handwriting; The edges of the target handwriting are adjusted based on the center of gravity.

7. A touch system, characterized in that, The touch system includes a touch device and a stylus, wherein... The stylus includes a first pen tip and a second pen tip, wherein the first pen tip is made of conductive polymer foam, and the second pen tip is made of conductive metal compound fiber. When the first pen tip or the second pen tip is subjected to a first pressure applied by a target object, it applies a second pressure to the touch display screen in the touch device, and the magnitude of the second pressure is proportional to the magnitude of the first pressure. The second pressure is used to instruct the capacitive touch substrate in the touch device to generate a handwriting corresponding to the second pressure. The touch device includes: a touch display screen and a processor; the processor is configured to: determine the charge distribution of the capacitive touch substrate when the charge value of the capacitor module in the touch display screen changes; determine a handwriting area in the touch display screen based on the charge distribution, wherein the handwriting area is an area in the touch display screen that coincides with a target handwriting; and generate the target handwriting in the handwriting area based on the charge distribution. The processor is also configured to: Based on the charge value distribution, a first charge value distribution map is determined, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; a preset charge value is determined, and the charge values ​​in the first charge value distribution map are binarized according to the preset charge value to obtain a target binary map; a closing operation is performed on the target binary map to determine a target region in the target binary map, wherein the target region is the region in the target binary map corresponding to the handwriting region; based on the target region, the handwriting region is determined in the touch display screen; The processor is also configured to: Identify the target element whose value changes after performing a closing operation on the target binary image; determine the charge value of the element adjacent to the target element in the first charge value distribution map; calculate and replace the charge value corresponding to the first target capacitor module in the first charge value distribution map based on the charge value of the element adjacent to the target element to obtain a second charge value distribution map; generate the target handwriting in the handwriting area based on the second charge value distribution map.

8. A handwriting generation method, characterized in that, The handwriting generation method is applicable to the touch device described in claim 1, comprising: Determine the charge distribution of the capacitor modules in the capacitive touch substrate when pressure is applied to the target object; Based on the charge distribution, a handwriting area is determined in the touch screen, wherein the handwriting area is the area in the touch screen that overlaps with the target handwriting; Based on the charge distribution, the target handwriting is generated in the handwriting area; The step of determining the handwriting area on the touch display screen includes: Based on the charge value distribution, a first charge value distribution map is determined, wherein the first charge value distribution map is composed of the charge values ​​corresponding to each capacitor module in the capacitive touch substrate, and the arrangement order of the charge values ​​in the first charge value distribution map is the same as the arrangement order of the capacitive touch substrate in the touch display screen; A preset charge value is determined, and the charge values ​​in the first charge value distribution map are binarized according to the preset charge value to obtain a target binary map; A closing operation is performed on the target binary image to determine a target region in the target binary image, wherein the target region is the region in the target binary image corresponding to the handwriting region; Determining the handwriting region in the touch display screen based on the target region includes: determining the target element whose value changes after performing a closing operation on the target binary image; Determine the charge values ​​of the elements adjacent to the target element in the first charge value distribution map; Based on the charge values ​​of the elements adjacent to the target element, calculate and replace the charge value corresponding to the first target capacitor module in the first charge value distribution map to obtain the second charge value distribution map; The target handwriting is generated in the handwriting area based on the second charge value distribution map.

9. The handwriting generation method according to claim 8, characterized in that, The step of determining the handwriting area on the touch display screen includes: Based on the charge value distribution in the second charge value distribution map, edge elements are determined in the second charge value distribution map, wherein the edge elements are the elements in the second charge value distribution map that correspond to the edge of the handwriting area; Determine the charge value of the element adjacent to the edge element in the second charge value distribution map; Based on the charge values ​​of the elements adjacent to the edge elements in the second charge value distribution map, calculate and replace the charge values ​​of the edge elements in the second charge value distribution map to obtain a third charge value distribution map; Based on the third charge distribution map, the target handwriting is generated in the handwriting area.

10. The handwriting generation method according to claim 9, characterized in that, The step of determining the handwriting area on the touch display screen includes: Determine the historical charge value corresponding to each element in the second charge value distribution map, wherein the historical charge value corresponding to each element is the charge value of each element in a preset number of frames before the current frame, and the current frame is the frame in which the charge value of the capacitor module in the touch display screen changes; Based on the current frame charge value of each element in the second charge value distribution map and the historical charge value, calculate and replace the current frame charge value of each element in the third charge value distribution map to obtain the fourth charge value distribution map. Based on the fourth charge distribution map, the target handwriting is generated in the handwriting area.

Citation Information

Patent Citations

  • Touch panel system and electronic apparatus

    US20160349897A1