CPC G06F 3/038 (2013.01) [G06F 3/03545 (2013.01); G06F 3/0416 (2013.01)] | 11 Claims |
1. A method for generating handwriting, wherein the method is applied to an electronic device comprising a first device, and the electronic device is communicatively connected to a second device, wherein the first device is configured to collect writing coordinate data, the second device is configured to collect writing pressure data, and the method comprises:
acquiring the writing coordinate data collected by the first device and the writing pressure data collected by the second device;
matching the writing coordinate data and the writing pressure data according to acquisition time of the writing coordinate data and acquisition time of the writing pressure data, so as to obtain fused writing information;
generating the handwriting according to the fused writing information,
wherein before matching the writing coordinate data and the writing pressure data according to the acquisition time of the writing coordinate data and the acquisition time of the writing pressure data, the method further comprises:
packaging and writing the writing coordinate data and the acquisition time of the writing coordinate data into a first cache queue;
packaging and writing the writing pressure data and the acquisition time of the writing pressure data into a second cache queue.
|