Disclosure of Invention
In view of the foregoing analysis, embodiments of the present invention provide a handwriting signing method and device based on quick touch of a handwriting screen, so as to solve the problems of poor user experience and low efficiency caused by the existing handwriting signing method.
On one hand, the embodiment of the invention provides a handwriting signing method based on quick touch of a handwriting screen, which comprises the following steps:
the service application system loads a handwritten signature file to a handwriting screen for display;
obtaining a corresponding virtual key value based on the key operation of a user on a hand-written screen; the virtual key value comprises a set virtual key value;
packaging and outputting the virtual key value to a service application system; and/or obtaining a setting parameter according to the setting virtual key value, packaging the setting parameter and outputting the setting parameter to a service application system; wherein the setting parameters comprise the size of a pen point, the color of the pen, the width of the pen and the size of an eraser;
responding to the received virtual key value and/or setting parameters, and performing handwriting control on a handwriting screen by the service application system;
and obtaining a user signature on the handwriting screen based on the handwriting control and the handwriting operation of the user, and finishing the handwriting signature.
Furthermore, the keys comprise a pen key, an eraser key, a hand-held key, an upper page key, a lower page key and a setting key;
and correspondingly generating a pen key virtual key value, an eraser virtual key value, a hand-held virtual key value, a previous page virtual key value, a next page virtual key value and the set virtual key value according to the pen key, the eraser key, the hand-held key, the previous page key, the next page key and the set key.
Further, the virtual key value is packaged and output to a business application system; and/or, obtaining the setting parameter according to the setting virtual key value, packaging the setting parameter and outputting the setting parameter to a service application system, comprising the following steps:
packaging and outputting the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value and the next page virtual key value to a business application system; and/or the like, and/or,
and acquiring the size of a pen point, the color of the pen, the width of the pen or the size of an eraser according to the set virtual key value, packaging the size of the pen point, the color of the pen, the width of the pen or the size of the eraser and outputting the packaged size of the pen point, the color of the pen, the width of the pen or the size of the eraser to a business application system.
Further, the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value, the next page virtual key value or the setting parameter are output to the service application system through an event message bus.
Further, the virtual key value is realized based on an ASCII code value, wherein the ASCII code value sequentially corresponding to the stroke key virtual key value, the eraser virtual key value, the hand-grabbing virtual key value, the previous page virtual key value, the next page virtual key value and the set virtual key value is 191-196.
Further, the handwriting signature file comprises a format file, a streaming file, a picture file or a webpage which can be applied to the handwriting signature.
On the other hand, the embodiment of the invention provides a handwriting signing device based on quick touch of a handwriting screen, which comprises the handwriting screen and a service application system, wherein a panel of the handwriting screen comprises a display area and a key area, and the handwriting screen further comprises a virtual key module and a hand-assistant control panel; wherein,
the virtual key module is used for obtaining a corresponding virtual key value according to the key operation of the user on the key area; the virtual key value comprises a set virtual key value;
the assistant control panel is used for packaging and outputting the virtual key value to a business application system; and/or obtaining setting parameters according to the setting virtual key value, packaging the setting parameters and outputting the setting parameters to a business application system, wherein the setting parameters comprise the size of a pen point, the color of a pen, the width of the pen and the size of an eraser;
and the business application system is used for responding to the received virtual key value or the setting parameter so as to realize the corresponding function of the handwriting screen.
Further, the virtual key module comprises a pen key, an eraser key, a hand-grasping key, a previous page key, a next page key and a setting key;
and correspondingly generating a pen key virtual key value, an eraser virtual key value, a hand-held virtual key value, a previous page virtual key value and a next page virtual key value or setting a virtual key value according to the pen key, the eraser key, the hand-held key, the previous page key, the next page key or the setting key.
Further, the helper control panel comprises a virtual key value receiving unit and a parameter acquiring unit;
the virtual key value receiving unit is used for packaging the pen key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value and the next page virtual key value and outputting the packaged virtual key values to a service application system; and/or, a parameter acquisition unit is displayed or hidden according to the set virtual key value;
the parameter obtaining unit is used for obtaining the size of a pen point, the color of a pen, the width of the pen or the size of an eraser, packaging the size of the pen point, the color of the pen, the width of the pen or the size of the eraser and outputting the packaged size of the pen point, the color of the pen, the width of the pen or the size of the eraser to a business application system.
Further, the virtual key value is realized based on an ASCII code value, wherein the ASCII code value sequentially corresponding to the stroke key virtual key value, the eraser virtual key value, the hand-grabbing virtual key value, the previous page virtual key value, the next page virtual key value and the set virtual key value is 191-196.
Compared with the prior art, the invention can realize at least one of the following beneficial effects:
1. firstly, generating a virtual key value corresponding to the key operation of a user based on a handwriting screen, packaging the virtual key value and outputting the virtual key value to a service application system; or obtaining the setting parameters based on the virtual key value, packaging the setting parameters and outputting the setting parameters to the business application system, responding the virtual key value or the setting parameters by the business application system to realize the handwriting control of the handwriting screen, and finally, signing on the handwriting screen by the user to finish the handwriting signing.
2. The corresponding virtual key values are obtained through key operation of a user on the handwriting screen, the types of keys are more, the requirements of the user can be basically met, technical support and basis are provided for the user to perform handwriting signing in the later period, meanwhile, the virtual key values are simple to operate and easy to implement through ASCII code values, and reliability of handwriting signing is improved.
3. The virtual key values are packaged, or the setting parameters such as the size of a pen point, the color of a pen, the width of the pen, the size of an eraser and the like are obtained according to the set virtual keys, the setting parameters are packaged, and the virtual keys or the setting parameters are output to the business application system through the event message bus, so that the business application system carries out handwriting control on the handwriting screen, the requirements of a user on multiple functions of the handwriting screen are met, the satisfaction degree and the experience degree of the user are improved, and meanwhile, the working efficiency of the user is improved.
4. And the service application system responds to the encapsulated virtual key value and/or the setting parameter after receiving the encapsulated virtual key value and/or the setting parameter so as to realize handwriting control on the handwriting screen. Through the mutual cooperation of the handwriting screen and the service application system, handwriting signing is finally realized, the requirements of users are met, and the satisfaction and experience of the users are improved.
In the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
At present, different service application systems and format signing components have different interface operations, so that a uniform user operation interface and experience cannot be formed, a user needs to learn again when using the handwriting signing components provided by different service application systems, and the handwriting signing method influences the working efficiency and the user experience. Therefore, the application provides a handwriting signing method and a handwriting signing device based on quick touch of a handwriting screen, wherein the handwriting screen generates a corresponding virtual key value according to a key of a user, encapsulates the virtual key value and outputs the virtual key value to a service application system; or obtaining the setting parameters based on the virtual key value, packaging the setting parameters and outputting the setting parameters to the business application system, responding the virtual key value or the setting parameters by the business application system to realize the handwriting control of the handwriting screen, and finally, signing on the handwriting screen by the user to finish the handwriting signing.
A specific embodiment of the present invention discloses a handwriting signing method based on quick touch of a handwriting screen, as shown in fig. 1. Includes the following steps S1-S5.
And step S1, the service application system loads the handwriting signature file to a handwriting screen for display. In detail, before the handwriting signing, the service application system needs to load and display the handwriting signing file on a handwriting screen, wherein the handwriting signing file comprises a format file, a streaming file, a picture file or a webpage which can be applied to the handwriting signing. The handwritten endorsement files which can be loaded by the handwriting screen are more in types, various requirements of different users can be met, and the satisfaction degree and the experience degree of the users can be improved.
Step S2, obtaining a corresponding virtual key value based on the key operation of the user on the hand-written screen; the virtual key value includes a set virtual key value. Specifically, the keys on the handwriting screen comprise a pen key, an eraser key, a hand-held key, a previous page key, a next page key and a setting key, and a virtual key value can be correspondingly generated according to each key. In detail, the pen key, the eraser key, the hand-held key, the previous page key, the next page key and the setting key respectively and correspondingly generate a pen key virtual key value, an eraser virtual key value, a hand-held virtual key value, a previous page virtual key value, a next page virtual key value and a setting virtual key value. Each virtual key is represented by an ASCII code value, and the ASCII code values sequentially corresponding to a pen key virtual key value, an eraser virtual key value, a hand-held virtual key value, a previous page virtual key value, a next page virtual key value and a set virtual key value are 191-196.
The corresponding virtual key values are obtained through key operation of a user on the handwriting screen, the types of keys are more, the requirements of the user can be basically met, technical support and basis are provided for the user to perform handwriting signing in the later period, meanwhile, the virtual key values are simple to operate and easy to implement through ASCII code values, and reliability of handwriting signing is improved.
Step S3, packaging and outputting the virtual key value to a service application system; and/or obtaining a setting parameter according to the set virtual key value, packaging the setting parameter and outputting the setting parameter to a service application system; the setting parameters comprise the size of a pen point, the color of the pen, the width of the pen and the size of an eraser. Specifically, after the virtual key value is generated based on the key operation of the user in step S2, the message encapsulation may be directly performed on the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value, and the next page virtual key value, and the encapsulated virtual key value is output to the service application system. The message encapsulation is a common encapsulation technology, and mainly performs message encapsulation on the virtual key values through a Json data format. Meanwhile, the setting parameters such as the size of the pen tip, the color of the pen, the pen width, the size of the eraser, and the like selected by the user may also be obtained according to the setting virtual key generated in step S2, and these setting parameters are encapsulated and then output to the service application system. Meanwhile, the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value, the next page virtual key value or the setting parameter are output to the business application system through the event message bus.
Preferably, the virtual key value is packaged and output to a business application system; and/or, obtaining the setting parameter according to the set virtual key value, packaging the setting parameter and outputting the setting parameter to the service application system, comprising the following steps:
encapsulating and outputting the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value and the next page virtual key value to a business application system; and/or the like, and/or,
and acquiring the size of a pen point, the color of the pen, the width of the pen or the size of an eraser according to the set virtual key value, packaging the size of the pen point, the color of the pen, the width of the pen or the size of the eraser and outputting the packaged size of the pen point, the color of the pen, the width of the pen or the size of the eraser to a business application system.
The virtual key values are packaged, or the setting parameters such as the size of a pen point, the color of a pen, the width of the pen, the size of an eraser and the like are obtained according to the set virtual keys, the setting parameters are packaged, and the virtual keys or the setting parameters are output to the business application system through the event message bus, so that the business application system carries out handwriting control on the handwriting screen, the requirements of a user on multiple functions of the handwriting screen are met, the satisfaction degree and the experience degree of the user are improved, and meanwhile, the working efficiency of the user is improved.
And step S4, responding to the received virtual key value and/or setting parameter, and the service application system performs handwriting control on the handwriting screen. And the service application system responds to the encapsulated virtual key value and/or the setting parameter after receiving the encapsulated virtual key value and/or the setting parameter so as to realize handwriting control on the handwriting screen. Through the mutual cooperation of the handwriting screen and the service application system, handwriting signing is finally realized, the requirements of users are met, and the satisfaction and experience of the users are improved.
And step S5, obtaining the user signature on the handwriting screen based on the handwriting control and the handwriting operation of the user, and completing the handwriting signature.
Compared with the prior art, the handwriting signing method based on the quick touch of the handwriting screen provided by the embodiment generates the virtual key values corresponding to the user keys based on the handwriting screen, encapsulates the virtual key values and outputs the virtual key values to the service application system; or obtaining the setting parameters based on the virtual key value, packaging the setting parameters and outputting the setting parameters to the business application system, responding the virtual key value or the setting parameters by the business application system to realize the handwriting control of the handwriting screen, and finally, signing on the handwriting screen by the user to finish the handwriting signing.
In another embodiment of the present invention, a handwriting signing device based on quick touch of a handwriting screen is disclosed, as shown in fig. 2, comprising a handwriting screen 10 and a service application system 20, wherein a panel of the handwriting screen comprises a display area and a key area, and the handwriting screen further comprises a virtual key module 100 and a helper control panel 110; the virtual key module is used for obtaining a corresponding virtual key value according to the key operation of a user on the key area; the virtual key value comprises a set virtual key value; the assistant control panel is used for packaging and outputting the virtual key values to a business application system; and/or obtaining setting parameters according to the set virtual key value, packaging the setting parameters and outputting the setting parameters to a business application system, wherein the setting parameters comprise the size of a pen point, the color of a pen, the width of the pen and the size of an eraser; and the business application system is used for responding to the received virtual key value or the set parameter so as to realize the corresponding function of the handwriting screen. The handwriting screen also comprises a key monitor which can monitor the virtual keys correspondingly generated by the virtual key module and output the received virtual key values to the assistant control panel. Meanwhile, one or more service application systems for receiving the virtual key values and/or setting parameters output by the handwriting screen can be provided, and the control of the handwriting screen by the service application systems can be more reliably realized by setting a plurality of service application systems.
Generating a virtual key value corresponding to the user key based on the operation of the user on the virtual key in the virtual key module, and packaging the virtual key value and outputting the virtual key value to a service application system by the assistant control panel; or obtaining the setting parameters based on the virtual key value, packaging the setting parameters and outputting the setting parameters to the business application system, responding the virtual key value or the setting parameters by the business application system to realize the handwriting control of the handwriting screen, and finally, signing on the handwriting screen by the user to finish the handwriting signing.
Preferably, the virtual key module 100 includes a pen key 1001, an eraser key 1002, a grab key 1003, a previous page key 1004, a next page key 1005, and a set key 1006; and correspondingly generating a pen key virtual key value, an eraser virtual key value, a hand-held virtual key value, a previous page virtual key value and a next page virtual key value or setting a virtual key value according to the pen key, the eraser key, the hand-held key, the previous page key, the next page key or the setting key. As shown in fig. 3, the panel of the handwriting screen includes a display area and a key area, wherein the key area includes 6 keys, i.e., a P (pen key), an E (eraser key), an H (hand-held key), a U (previous page key), a D (next page key), and an S (set key), arranged from top to bottom. The assistant control panel is displayed right below the handwriting screen and can be used for setting the size of a pen point, the color of a pen, the width of the pen, the size of eraser and the like, and the width of a screen display area is 4 times that of the assistant control panel.
Through adopting virtual key module, the user obtains corresponding virtual key value to the key operation of handwriting screen, and the kind of button is more, can satisfy user's demand basically, carries out the hand writing for the later stage user and signs and approve and provide technical support and basis, simultaneously, virtual key value passes through the ASCII sign value, and simple operation has easily implemented, has improved the reliability of the hand writing sign and approve.
Preferably, the helper control panel includes a virtual key value receiving unit and a parameter acquiring unit; the virtual key value receiving unit is used for packaging and outputting the stroke key virtual key value, the eraser virtual key value, the hand-held virtual key value, the previous page virtual key value and the next page virtual key value to a business application system; and/or, according to setting up the virtual key value and revealing or hiding the acquisition unit of the parameter; and the parameter acquisition unit is used for acquiring the size of the pen point, the color of the pen, the pen width or the size of the eraser, packaging the size of the pen point, the color of the pen, the pen width or the size of the eraser and outputting the packaged size to the service application system. Specifically, the helper control panel is used for not only message encapsulation but also for a user to select and set parameters under a visual condition, and comprises a virtual key value receiving unit and a parameter acquiring unit, wherein the virtual key value receiving unit is used for receiving a virtual key value, performing message encapsulation on a stroke key virtual key value, an eraser virtual key value, a hand-grabbing virtual key value, a previous page virtual key value or a next page virtual key value in a Json data format, and sending the encapsulated virtual key value to a service application system; meanwhile, the virtual key value receiving unit displays or hides the parameter setting unit according to the received setting virtual key value, illustratively, a user operates the setting key for the first time to display the parameter setting unit, and operates the setting key for the second time to hide the parameter setting unit, when the parameter setting unit is displayed on an operation interface, the parameters such as the size of a pen point, the color of a pen, the width of the pen or the size of an eraser selected by the user can be obtained, the corresponding parameters are packaged by messages in a Json data format, and the packaged setting parameters are sent to a business application system.
Preferably, the virtual key values are realized based on ASCII code values, wherein the virtual key values of the pen key, the eraser, the grab, the previous page and the next page correspond to ASCII code values 191-196 in sequence.
The virtual key values are packaged through the help-hand control panel, or setting parameters such as the size of a pen point, the color of a pen, the width of the pen, the size of an eraser and the like are obtained according to the set virtual keys, the setting parameters are packaged, the virtual keys or the setting parameters are output to the business application system through the event message bus, so that the business application system carries out handwriting control on the handwriting screen, the requirements of a user on multiple functions of the handwriting screen are met, the satisfaction degree and experience degree of the user are improved, and meanwhile, the working efficiency of the user is improved.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.