CN111105478A - Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium - Google Patents

Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium Download PDF

Info

Publication number
CN111105478A
CN111105478A CN201911239318.4A CN201911239318A CN111105478A CN 111105478 A CN111105478 A CN 111105478A CN 201911239318 A CN201911239318 A CN 201911239318A CN 111105478 A CN111105478 A CN 111105478A
Authority
CN
China
Prior art keywords
handwriting
point
sampling point
pen
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911239318.4A
Other languages
Chinese (zh)
Other versions
CN111105478B (en
Inventor
于百川
王扬
黄健
王科峰
李�根
贲卫国
于波
宋微
李伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911239318.4A priority Critical patent/CN111105478B/en
Publication of CN111105478A publication Critical patent/CN111105478A/en
Application granted granted Critical
Publication of CN111105478B publication Critical patent/CN111105478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

The invention provides a handwriting processing method, a handwriting processing device, handwriting processing equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a handwriting to be reconstructed sent by terminal equipment, wherein the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points; determining a handwriting standing point corresponding to the handwriting according to the handwriting to be reconstructed, and determining a handwriting end point corresponding to the handwriting according to the handwriting to be reconstructed; and reconstructing the handwriting according to the pen stopping point information, the pen front information and the writing speed information to obtain the real handwriting corresponding to the handwriting to be reconstructed. As the natural writing characteristics of human beings such as the pen holding point and the handwriting end point in the writing process are restored according to the writing speed information, the real-time restoration is supported, the writing characteristics of the writer are restored to the maximum extent, and the accuracy of the handwriting restoration is improved.

Description

Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for handwriting processing.
Background
In the process of developing and maintaining a long-term office automation system, the paperless technology is difficult to popularize in the approval link in the process control. Because the traditional signing adopts a handwriting signing mode, the electronic signing technology has low common acceptance. However, the handwritten signature mode often fails to verify the validity, so that the validity of the signature content cannot be determined.
In the process of adopting electronic signature, the prior art generally adopts a mode of storing handwriting as pictures, and the handwriting can be really restored and is easy to accept. However, the data size of the picture is large, so that the picture is easy to fake and copy, and the comparison needs to extract digital features, so that the accuracy is not high. It is difficult to apply to a real signing environment.
Disclosure of Invention
The invention provides a handwriting processing method, a handwriting processing device, handwriting processing equipment and a computer-readable storage medium, which are used for solving the technical problems of large data volume, easiness in counterfeiting and imitation, digital features required to be extracted for comparison and low accuracy of the conventional handwriting reconstruction method.
The first aspect of the present invention provides a handwriting processing method, including:
acquiring a handwriting to be reconstructed sent by terminal equipment, wherein the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points;
determining a handwriting standing point corresponding to the handwriting according to the handwriting to be reconstructed, and determining a handwriting end point corresponding to the handwriting according to the handwriting to be reconstructed;
and reconstructing the handwriting according to the pen stopping point information, the pen front information and the writing speed information to obtain the real handwriting corresponding to the handwriting to be reconstructed.
A second aspect of the present invention provides a handwriting processing apparatus, including:
the system comprises an acquisition module, a reconstruction module and a processing module, wherein the acquisition module is used for acquiring the handwriting to be reconstructed sent by the terminal equipment, and the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points;
the determining module is used for determining a handwriting standing point corresponding to the handwriting according to the to-be-reconstructed handwriting and determining a handwriting end point corresponding to the handwriting according to the to-be-reconstructed handwriting;
and the reconstruction module is used for reconstructing the handwriting according to the pen standing point information, the pen tip information and the writing speed information to obtain the real handwriting corresponding to the handwriting to be reconstructed.
A third aspect of the present invention provides a handwriting processing apparatus comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the handwriting processing method of the first aspect by the processor.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the handwriting processing method according to the first aspect when the computer-executable instructions are executed by a processor.
According to the handwriting processing method, the device and the equipment and the computer readable storage medium, the pen holding point, the handwriting end point and the like corresponding to the handwriting to be reconstructed are determined through the sampling point and the writing speed information corresponding to the handwriting to be reconstructed, and therefore the reconstruction of the handwriting to be reconstructed can be achieved. As the natural writing characteristics of human beings such as the pen holding point and the handwriting end point in the writing process are restored according to the writing speed information, the real-time restoration is supported, the writing characteristics of the writer are restored to the maximum extent, and the accuracy of the handwriting restoration is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram of a network architecture on which the present invention is based;
FIG. 2 is a flowchart illustrating a handwriting processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a pen holding point according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating handwriting end points according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a handwriting processing method according to a second embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a handwriting processing apparatus according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a handwriting processing apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other examples obtained based on the examples in the present invention are within the scope of the present invention.
The invention provides a handwriting processing method, a handwriting processing device, handwriting processing equipment and a computer-readable storage medium, aiming at the technical problems that the existing handwriting reconstruction method has large picture data volume, is easy to counterfeit and copy, needs to extract digital features for comparison and has low accuracy. Because the handwriting is stored as the picture, the data volume is large, and other people are easy to imitate, and the safety is not high. Therefore, in order to improve the reconstruction efficiency and the handwriting safety, the user-specific information in the handwriting writing process can be stored, for example, the writing speed information in the handwriting writing process of the user can be stored. The writing speed information is a group of data, so that the data volume required to be stored is small, the writing speed information can represent the personalized information of the user, other people are not easy to counterfeit, and the safety of handwriting can be improved.
It should be noted that the handwriting processing method, apparatus, device and computer-readable storage medium provided in the present application may be applied in various scenarios of handwriting verification and handwriting reconstruction.
Fig. 1 is a schematic diagram of a network architecture based on the present invention, and as shown in fig. 1, the network architecture based on the present invention at least includes: the handwriting processing device comprises terminal equipment 1 and a handwriting processing device 2, wherein the handwriting processing device 2 is written by C/C + +, Java, Shell or Python and other languages; the terminal device 1 may be a desktop computer, a tablet computer, or the like. The terminal device 1 is in communication connection with the handwriting processing apparatus 2, so that the terminal device and the handwriting processing apparatus can perform information interaction.
Fig. 2 is a schematic flow chart of a handwriting processing method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
step 101, acquiring a handwriting to be reconstructed sent by a terminal device, wherein the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points.
The execution main body of the embodiment is a handwriting processing device, and the handwriting processing device can be in communication connection with the terminal equipment, so that information interaction can be performed with the terminal equipment. Specifically, when handwriting reconstruction operation is required, a user can determine handwriting information required to be reconstructed on the terminal device and send the handwriting to be reconstructed to the handwriting processing device. Correspondingly, the handwriting processing device can obtain the handwriting to be reconstructed sent by the terminal equipment. In order to improve the efficiency of handwriting reconstruction and the safety of handwriting, the handwriting to be reconstructed may include a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points. Because the writing speed information is a group of data, the data volume needing to be stored is small, the writing speed information can represent the personalized information of a writer, other people are not easy to counterfeit, and the safety of handwriting can be improved.
And 102, determining a handwriting standing point corresponding to the handwriting according to the handwriting to be reconstructed, and determining a handwriting end point corresponding to the handwriting according to the handwriting to be reconstructed.
In this embodiment, the pen holding point is a position where the writer holds the pen in the writing process, the handwriting end point is a position where the writer finishes writing a certain stroke, the stroke is formed in a sequential manner, and the pen holding point and the handwriting end point both carry the personalized habit of the writer, so that the writer is less prone to being counterfeited, and the personalized habit of the writer can be restored to the greatest extent on the basis of the less prone to being counterfeited according to the handwriting information reconstructed from the pen holding point and the handwriting end point. In the process of writing characters, a pen or a gel pen is mostly used for signing, the pen point is hard and is not easy to deform, and more information of the pen point comes from the change of writing speed. That is, the ink flow rate at the pen tip is constant, and the slower the writing, the more ink is absorbed on the paper, the faster the writing, the less ink is absorbed on the paper, and vice versa. Therefore, the pen holding point and the handwriting end point can be accurately determined according to the writing speed information in the handwriting to be reconstructed.
And 103, reconstructing the handwriting according to the pen standing point information, the pen front information and the writing speed information to obtain a real handwriting corresponding to the handwriting to be reconstructed.
In this embodiment, after determining the pen holding point and the handwriting ending point according to the writing speed information in the handwriting to be reconstructed, the handwriting can be reconstructed according to the pen holding point information, the pen front information and the writing speed information, so as to obtain the real handwriting corresponding to the handwriting to be reconstructed.
According to the handwriting processing method provided by the embodiment, the pen holding point, the handwriting end point and the like corresponding to the handwriting are determined through the sampling point and the writing speed information corresponding to the handwriting to be reconstructed, so that the reconstruction of the handwriting to be reconstructed can be realized. As the natural writing characteristics of human beings such as the pen holding point and the handwriting end point in the writing process are restored according to the writing speed information, the real-time restoration is supported, the writing characteristics of the writer are restored to the maximum extent, and the accuracy of the handwriting restoration is improved.
Further, on the basis of any of the above embodiments, the step 102 specifically includes:
calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold or not aiming at each sampling point;
if so, taking the sampling point as the pen stopping point, taking the next sampling point as the current sampling point, and repeatedly executing the step of calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold value until the distance between the current sampling point and the next sampling point is larger than the preset distance threshold value, so as to obtain all pen stopping points corresponding to the handwriting to be reconstructed.
In this embodiment, the pen holding point is a position where a writer pauses during writing, fig. 3 is a schematic diagram of the pen holding point provided by the embodiment of the present invention, as shown in fig. 3, according to writing habits of the writer, the writing speed is slow when starting the pen, the writing speed in the middle of the stroke is fast, the horizontal stroke tail, that is, the position where the pen pauses, the writing speed is slow, and since the terminal device samples according to a preset sampling frequency, the distance between two sampling points corresponding to the pen holding point is smaller than a preset distance threshold, so that the determination of the pen holding point can be realized according to the distance between the sampling points.
Specifically, in the analysis process, each sampling point may be sequentially read, and for each sampling point, whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold may be calculated, where the distance threshold may specifically be 3 pixel points, and may also be other numerical values, and corresponding adjustment may be performed according to actual application, which is not limited by the present invention. If so, continuously reading the next sampling point, and repeatedly executing the step of calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold value or not until the distance between the current sampling point and the next sampling point is larger than the preset distance threshold value, so as to obtain all pen holding points corresponding to the handwriting to be reconstructed.
According to the handwriting processing method provided by the embodiment, the handwriting standing point of the handwriting is determined according to the distance information between the two sampling points, so that the extraction and reconstruction of the personalized handwriting characteristics of the user can be accurately realized, and the authenticity of the reconstructed handwriting is improved.
Correspondingly, on the basis of any of the above embodiments, the step 102 specifically includes:
and regarding each sampling point as the handwriting end point if no other sampling point exists behind the current sampling point and/or the distance between the current sampling point and the next sampling point is larger than a preset distance threshold value and the writing speed information between the current sampling point and the last sampling point is larger than a preset speed threshold value.
In this embodiment, the handwriting end point is a handwriting formed by a certain stroke extending after the writing of the certain stroke is finished, and fig. 4 is a schematic diagram of the handwriting end point provided by the embodiment of the present invention, as shown in fig. 4, for example, the last stroke of the "medium" character is often elongated and the writing speed is fast, so that the distance between two sampling points exceeds a preset distance threshold. Specifically, in the analysis process, each sampling point may be sequentially read, and for each sampling point, whether the distance between the current sampling point and the next sampling point is greater than a preset distance threshold may be calculated, where the distance threshold may specifically be 5 pixel points, and may also be other numerical values, and corresponding adjustment may be performed according to actual application, which is not limited by the present invention. If so, the current sampling point can be used as a handwriting end point, an extension line can be made according to the direction from the sampling point to the next sampling point, and a pen point corresponding to the handwriting can be generated.
According to the handwriting processing method provided by the embodiment, the handwriting end point and the handwriting front of the handwriting are determined according to the distance information between the two sampling points, so that the extraction and reconstruction of the personalized handwriting characteristics of the user can be accurately realized, and the authenticity of the reconstructed handwriting is improved.
Further, on the basis of any of the above embodiments, step 103 specifically includes:
determining the handwriting thickness corresponding to the writing speed information according to the corresponding relation between the preset speed and the handwriting thickness;
determining the radius of the pen-holding image according to the number of the pen-holding points, and constructing the pen-holding image corresponding to the pen-holding points according to the radius of the pen-holding image;
extending according to the direction from the last sampling point of the handwriting end point to the handwriting end point, and constructing a stroke image corresponding to the handwriting;
and reconstructing the handwriting according to the handwriting thickness, the pen standing image and the pen front image to obtain the real handwriting corresponding to the handwriting to be reconstructed.
In this embodiment, after determining the pen stopping point, the handwriting ending point, and the writing speed information, the handwriting can be reproduced according to the pen stopping point, the handwriting ending point, and the writing speed information. Specifically, the corresponding relation between the speed and the thickness of the handwriting can be preset, so that the thickness of the line can be changed dynamically according to the speed of two adjacent points to draw the line. Correspondingly, the radius of the pen-holding image can be determined according to the number of the pen-holding points, and then the pen-holding image corresponding to the pen-holding point can be constructed according to the radius of the pen-holding image. Furthermore, the stroke image corresponding to the handwriting can be constructed by extending from the last sampling point of the handwriting end point to the handwriting end point. Therefore, after the thickness of each stroke, the pen standing image and the stroke front image are determined, the real handwriting can be reproduced. The thickness of the strokes, the pen standing image and the stroke front image can effectively reflect the personalized characteristics of a writer during writing, so that the constructed real handwriting has high reality.
According to the handwriting processing method provided by the embodiment, the real handwriting is reproduced according to the thickness of each stroke, the pen standing image and the stroke front image, so that the personalized writing characteristics of the user can be accurately extracted and reconstructed, and the reality degree of the reconstructed handwriting is improved.
Fig. 5 is a schematic flow chart of a handwriting processing method according to a second embodiment of the present invention, where on the basis of any of the foregoing embodiments, the method further includes:
step 201, obtaining handwriting information to be verified;
step 202, judging the legality of the handwriting information to be verified according to the handwriting information to be verified and a preset judgment rule.
In this embodiment, besides reconstructing the real handwriting according to the writing speed information, the validity of the handwriting can be determined according to the writing speed information. Specifically, handwriting information to be verified can be obtained, and the handwriting information to be verified can be acquired by the terminal device in the writing process of the user. And judging the legality of the handwriting information to be verified according to the handwriting information to be verified and a preset judgment rule.
Specifically, on the basis of any of the above embodiments, step 202 specifically includes:
determining a proportional sequence of handwriting speeds according to the length of each handwriting in the handwriting information to be verified;
determining sampling points of which the handwriting speed is smaller than a preset speed threshold according to the proportional sequence, and taking the overlapping positions of the sampling points of which the handwriting speed is smaller than the preset speed threshold as handwriting inflection points;
aligning the handwriting inflection point corresponding to the handwriting information to be verified with the handwriting inflection point of the preset standard handwriting, and calculating at least one speed value according to data interpolation between the two inflection points;
if each speed value is not greater than a preset speed value threshold, judging that the interpolation points are overlapped;
and if the proportion of the overlapped interpolation points to all the interpolation points is greater than a preset proportion threshold value, judging that the handwriting information to be verified is legal.
In this embodiment, a proportional sequence of the handwriting speeds may be specifically determined according to the corresponding relationship between the preset speed and the thickness of the handwriting and the lengths of the handwriting in the handwriting information to be verified, so as to determine sampling points at which the handwriting writing speeds are smaller than a preset speed threshold according to the proportional sequence, and an overlapping position of a plurality of sampling points at which the handwriting speeds are smaller than the preset speed threshold is used as a handwriting inflection point. And aligning the handwriting inflection point corresponding to the handwriting information to be verified with the handwriting inflection point of a preset standard handwriting, wherein the standard handwriting is a real handwriting written by a writer. Carrying out interpolation calculation according to data between two inflection points to obtain at least one speed value; if each speed value is not greater than a preset speed value threshold value, judging that the interpolation points are overlapped; if the proportion of the overlapped interpolation points to all the interpolation points is greater than the preset proportion threshold value, the similarity of the handwriting information to be verified and the preset standard handwriting is high and the handwriting information to be verified is written by the same writer, so that the legality of the handwriting information to be verified can be judged.
The handwriting processing method provided by the embodiment realizes the judgment of the handwriting legality according to the writing speed information, and has the advantages that the data volume is small because only one group of data needs to be judged, and the judgment accuracy is high because information such as the personalized writing characteristic inflection point of the user is introduced in the judgment process.
Fig. 6 is a schematic structural diagram of a handwriting processing apparatus according to a third embodiment of the present invention, and as shown in fig. 6, the apparatus includes: an acquisition module 31, a determination module 32 and a reconstruction module 33. The acquiring module 31 is configured to acquire a handwriting to be reconstructed sent by a terminal device, where the handwriting to be reconstructed includes a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points; the determining module 32 is configured to determine a handwriting standing point corresponding to the handwriting according to the to-be-reconstructed handwriting, and determine a handwriting ending point corresponding to the handwriting according to the to-be-reconstructed handwriting; and the rebuilding module 33 is configured to perform rebuilding operation on the handwriting according to the pen stopping point information, the pen front information and the writing speed information, so as to obtain a real handwriting corresponding to the handwriting to be rebuilt.
The handwriting processing device provided by the embodiment determines the pen holding point, the handwriting end point and the like corresponding to the handwriting through the sampling point and the writing speed information corresponding to the handwriting to be reconstructed, so that the reconstruction of the handwriting to be reconstructed can be realized. As the natural writing characteristics of human beings such as the pen holding point and the handwriting end point in the writing process are restored according to the writing speed information, the real-time restoration is supported, the writing characteristics of the writer are restored to the maximum extent, and the accuracy of the handwriting restoration is improved.
Further, on the basis of any of the above embodiments, the determining module is configured to:
calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold or not aiming at each sampling point;
if so, taking the sampling point as the pen stopping point, taking the next sampling point as the current sampling point, and repeatedly executing the step of calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold value until the distance between the current sampling point and the next sampling point is larger than the preset distance threshold value, so as to obtain all pen stopping points corresponding to the handwriting to be reconstructed.
Further, on the basis of any of the above embodiments, the determining module is configured to:
and regarding each sampling point as the handwriting end point if no other sampling point exists behind the current sampling point and/or the distance between the current sampling point and the next sampling point is larger than a preset distance threshold value and the writing speed information between the current sampling point and the last sampling point is larger than a preset speed threshold value.
Further, on the basis of any of the above embodiments, the reconstruction module is specifically configured to:
determining the handwriting thickness corresponding to the writing speed information according to the corresponding relation between the preset speed and the handwriting thickness;
determining the radius of the pen-holding image according to the number of the pen-holding points, and constructing the pen-holding image corresponding to the pen-holding points according to the radius of the pen-holding image;
extending according to the direction from the last sampling point of the handwriting end point to the handwriting end point, and constructing a stroke image corresponding to the handwriting;
and reconstructing the handwriting according to the handwriting thickness, the pen standing image and the pen front image to obtain the real handwriting corresponding to the handwriting to be reconstructed.
Further, on the basis of any one of the above embodiments, the apparatus further includes:
the acquisition module is used for acquiring handwriting information to be verified;
and the judging module is used for judging the legality of the handwriting information to be verified according to the handwriting information to be verified and a preset judging rule.
Further, on the basis of any of the above embodiments, the determining module is specifically configured to:
determining a proportional sequence of handwriting speeds according to the length of each handwriting in the handwriting information to be verified;
determining sampling points of which the handwriting speed is smaller than a preset speed threshold according to the proportional sequence, and taking the overlapping positions of the sampling points of which the handwriting speed is smaller than the preset speed threshold as handwriting inflection points;
aligning the handwriting inflection point corresponding to the handwriting information to be verified with the handwriting inflection point of the preset standard handwriting, and calculating at least one speed value according to data interpolation between the two inflection points;
if each speed value is not greater than a preset speed value threshold, judging that the interpolation points are overlapped;
and if the proportion of the overlapped interpolation points to all the interpolation points is greater than a preset proportion threshold value, judging that the handwriting information to be verified is legal.
Fig. 7 is a schematic structural diagram of handwriting processing equipment according to a fourth embodiment of the present invention, and as shown in fig. 7, the equipment specifically includes: a memory 41, a processor 42;
a memory 41; a memory 41 for storing instructions executable by the processor 42;
wherein the processor 42 is configured to execute the handwriting processing method according to any one of the above embodiments by the processor 42.
The memory 41 stores a program. In particular, the program may include program code comprising computer operating instructions. The memory 41 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 42 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
Alternatively, in a specific implementation, if the memory 41 and the processor 42 are implemented independently, the memory 41 and the processor 42 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Alternatively, in a specific implementation, if the memory 41 and the processor 42 are integrated on a chip, the memory 41 and the processor 42 may perform the same communication through an internal interface.
The invention further provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used for implementing the handwriting processing method according to any one of the above embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for handwriting processing, comprising:
acquiring a handwriting to be reconstructed sent by terminal equipment, wherein the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points;
determining a handwriting standing point corresponding to the handwriting according to the handwriting to be reconstructed, and determining a handwriting end point corresponding to the handwriting according to the handwriting to be reconstructed;
and reconstructing the handwriting according to the pen stopping point information, the pen front information and the writing speed information to obtain the real handwriting corresponding to the handwriting to be reconstructed.
2. The method according to claim 1, wherein the determining a handwriting stopping point corresponding to the handwriting to be reconstructed comprises:
calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold or not aiming at each sampling point;
if so, taking the sampling point as the pen stopping point, taking the next sampling point as the current sampling point, and repeatedly executing the step of calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold value until the distance between the current sampling point and the next sampling point is larger than the preset distance threshold value, so as to obtain all pen stopping points corresponding to the handwriting to be reconstructed.
3. The method according to claim 1, wherein the determining a handwriting end point corresponding to the handwriting according to the handwriting to be reconstructed comprises:
and regarding each sampling point as the handwriting end point if no other sampling point exists behind the current sampling point and/or the distance between the current sampling point and the next sampling point is larger than a preset distance threshold value and the writing speed information between the current sampling point and the last sampling point is larger than a preset speed threshold value.
4. The method according to any one of claims 1-3, wherein the reconstructing the handwriting according to the pen dwell point information, the pen tip information and the writing speed information comprises:
determining the handwriting thickness corresponding to the writing speed information according to the corresponding relation between the preset speed and the handwriting thickness;
determining the radius of the pen-holding image according to the number of the pen-holding points, and constructing the pen-holding image corresponding to the pen-holding points according to the radius of the pen-holding image;
extending according to the direction from the last sampling point of the handwriting end point to the handwriting end point, and constructing a stroke image corresponding to the handwriting;
and reconstructing the handwriting according to the handwriting thickness, the pen standing image and the pen front image to obtain the real handwriting corresponding to the handwriting to be reconstructed.
5. The method according to any one of claims 1-3, further comprising:
acquiring handwriting information to be verified;
and judging the legality of the handwriting information to be verified according to the handwriting information to be verified and a preset judgment rule.
6. The method as claimed in claim 5, wherein the determining the validity of the handwriting information to be verified according to the handwriting information to be verified and a preset determination rule comprises:
determining a proportional sequence of handwriting speeds according to the length of each handwriting in the handwriting information to be verified;
determining sampling points of which the handwriting speed is smaller than a preset speed threshold according to the proportional sequence, and taking the overlapping positions of the sampling points of which the handwriting speed is smaller than the preset speed threshold as handwriting inflection points;
aligning the handwriting inflection point corresponding to the handwriting information to be verified with the handwriting inflection point of the preset standard handwriting, and calculating at least one speed value according to data interpolation between the two inflection points;
if each speed value is not greater than a preset speed value threshold, judging that the interpolation points are overlapped;
and if the proportion of the overlapped interpolation points to all the interpolation points is greater than a preset proportion threshold value, judging that the handwriting information to be verified is legal.
7. A handwriting processing apparatus, comprising:
the system comprises an acquisition module, a reconstruction module and a processing module, wherein the acquisition module is used for acquiring the handwriting to be reconstructed sent by the terminal equipment, and the handwriting to be reconstructed comprises a plurality of sampling points corresponding to the handwriting and writing speed information between two adjacent sampling points;
the determining module is used for determining a handwriting standing point corresponding to the handwriting according to the to-be-reconstructed handwriting and determining a handwriting end point corresponding to the handwriting according to the to-be-reconstructed handwriting;
and the reconstruction module is used for reconstructing the handwriting according to the pen standing point information, the pen tip information and the writing speed information to obtain the real handwriting corresponding to the handwriting to be reconstructed.
8. The apparatus of claim 7, wherein the determining module is configured to:
calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold or not aiming at each sampling point;
if so, taking the sampling point as the pen stopping point, taking the next sampling point as the current sampling point, and repeatedly executing the step of calculating whether the distance between the current sampling point and the next sampling point is smaller than a preset distance threshold value until the distance between the current sampling point and the next sampling point is larger than the preset distance threshold value, so as to obtain all pen stopping points corresponding to the handwriting to be reconstructed.
9. A handwriting processing apparatus, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform a handwriting processing method according to any one of claims 1-6 by the processor.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement a handwriting processing method according to any one of claims 1 to 6.
CN201911239318.4A 2019-12-06 2019-12-06 Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium Active CN111105478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911239318.4A CN111105478B (en) 2019-12-06 2019-12-06 Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911239318.4A CN111105478B (en) 2019-12-06 2019-12-06 Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111105478A true CN111105478A (en) 2020-05-05
CN111105478B CN111105478B (en) 2023-04-25

Family

ID=70421763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911239318.4A Active CN111105478B (en) 2019-12-06 2019-12-06 Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111105478B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5285506A (en) * 1991-04-30 1994-02-08 Ncr Corporation Method of recording a handwritten message
US20070040813A1 (en) * 2003-01-16 2007-02-22 Forword Input, Inc. System and method for continuous stroke word-based text input
US7453439B1 (en) * 2003-01-16 2008-11-18 Forward Input Inc. System and method for continuous stroke word-based text input
CN101551724A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Method and device for writing characters on touch screen
CN101697234A (en) * 2009-09-25 2010-04-21 华南理工大学 Stroke segmentation modeling-based handwritten Chinese character Lishu beautifying method
WO2010140728A1 (en) * 2009-06-02 2010-12-09 (주)프리애드 Script input method using a touch screen, and script input apparatus using same
WO2011149257A2 (en) * 2010-05-25 2011-12-01 Jang Kyung-Ho System for implementing the english cursive script handwriting of a user
CN103824094A (en) * 2012-11-16 2014-05-28 方正国际软件(武汉)有限公司 Handwriting verification apparatus and handwriting verification method
CN104821005A (en) * 2015-05-12 2015-08-05 南京师范大学 Method of writing process dynamic reproduction of Chinese character calligraphy works, capable of simulating gesture style
CN105046730A (en) * 2015-07-09 2015-11-11 北京盛世宣合信息科技有限公司 Writing trace demonstration method and apparatus applied to writing brush
CN106529255A (en) * 2016-11-14 2017-03-22 北京爱知之星科技股份有限公司 Handwriting fingerprint based user identity identification method and device
CN107481299A (en) * 2017-06-27 2017-12-15 北京新国人智慧科技股份有限公司 A kind of written handwriting display methods and system, intelligent terminal and intelligent writing system
CN110531875A (en) * 2019-08-21 2019-12-03 深圳市威屏科技有限公司 Write generation method, terminal device and the storage medium of the vigour of style in writing

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5285506A (en) * 1991-04-30 1994-02-08 Ncr Corporation Method of recording a handwritten message
US20070040813A1 (en) * 2003-01-16 2007-02-22 Forword Input, Inc. System and method for continuous stroke word-based text input
US7453439B1 (en) * 2003-01-16 2008-11-18 Forward Input Inc. System and method for continuous stroke word-based text input
CN101551724A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Method and device for writing characters on touch screen
WO2010140728A1 (en) * 2009-06-02 2010-12-09 (주)프리애드 Script input method using a touch screen, and script input apparatus using same
CN101697234A (en) * 2009-09-25 2010-04-21 华南理工大学 Stroke segmentation modeling-based handwritten Chinese character Lishu beautifying method
WO2011149257A2 (en) * 2010-05-25 2011-12-01 Jang Kyung-Ho System for implementing the english cursive script handwriting of a user
CN103824094A (en) * 2012-11-16 2014-05-28 方正国际软件(武汉)有限公司 Handwriting verification apparatus and handwriting verification method
CN104821005A (en) * 2015-05-12 2015-08-05 南京师范大学 Method of writing process dynamic reproduction of Chinese character calligraphy works, capable of simulating gesture style
CN105046730A (en) * 2015-07-09 2015-11-11 北京盛世宣合信息科技有限公司 Writing trace demonstration method and apparatus applied to writing brush
CN106529255A (en) * 2016-11-14 2017-03-22 北京爱知之星科技股份有限公司 Handwriting fingerprint based user identity identification method and device
CN107481299A (en) * 2017-06-27 2017-12-15 北京新国人智慧科技股份有限公司 A kind of written handwriting display methods and system, intelligent terminal and intelligent writing system
CN110531875A (en) * 2019-08-21 2019-12-03 深圳市威屏科技有限公司 Write generation method, terminal device and the storage medium of the vigour of style in writing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
戴斯荻: "离线签名鉴别" *
戴超兰: "触摸板数字手写签名与中性笔签名字迹的比较与分析" *
邹杰;孙宝林;於俊;: "基于笔画特征的在线笔迹匹配算法" *

Also Published As

Publication number Publication date
CN111105478B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US11422693B2 (en) Digital ink generating apparatus, method and program, and digital ink reproducing apparatus, method and program
WO2020082610A1 (en) Identity card information verification method and apparatus, device, and computer readable storage medium
CN110781923B (en) Feature extraction method and device
CN112464845B (en) Bill recognition method, equipment and computer storage medium
CN106067019A (en) The method and device of Text region is carried out for image
CN112995749A (en) Method, device and equipment for processing video subtitles and storage medium
CN112686134A (en) Handwriting recognition method and device, electronic equipment and storage medium
CN112668580A (en) Text recognition method, text recognition device and terminal equipment
CN112861844A (en) Service data processing method and device and server
CN109615671A (en) A kind of character library sample automatic generation method, computer installation and readable storage medium storing program for executing
CN115100659A (en) Text recognition method and device, electronic equipment and storage medium
CN112749639B (en) Model training method and device, computer equipment and storage medium
JP2019528520A (en) Classification network training apparatus, character recognition apparatus and method for character recognition
CN113627159A (en) Method, device, medium and product for determining training data of error correction model
CN111105478B (en) Handwriting processing method, handwriting processing device, handwriting processing equipment and computer readable storage medium
CN110516202B (en) Document generator acquisition method, document generation device and electronic equipment
CN110175539B (en) Character creating method and device, terminal equipment and readable storage medium
CN111353493A (en) Text image direction correction method and device
CN111738248B (en) Character recognition method, training method of character decoding model and electronic equipment
CN110309517B (en) Expression document processing method, device, system and storage medium
CN112818301A (en) Method and device for embedding and extracting hidden information of OFD format electronic document
CN112861847A (en) OCR image recognition device
CN107241100B (en) Character library component compresses method and device
CN114386407B (en) Word segmentation method and device for text
CN113448923B (en) File generation method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant