CN115858138A - Method and device for processing handwriting track and storage medium - Google Patents

Method and device for processing handwriting track and storage medium Download PDF

Info

Publication number
CN115858138A
CN115858138A CN202210501525.8A CN202210501525A CN115858138A CN 115858138 A CN115858138 A CN 115858138A CN 202210501525 A CN202210501525 A CN 202210501525A CN 115858138 A CN115858138 A CN 115858138A
Authority
CN
China
Prior art keywords
track
user
drawing board
coordinate array
electronic drawing
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.)
Pending
Application number
CN202210501525.8A
Other languages
Chinese (zh)
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.)
Beijing Zhongguancun Kejin Technology Co Ltd
Original Assignee
Beijing Zhongguancun Kejin Technology 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 Beijing Zhongguancun Kejin Technology Co Ltd filed Critical Beijing Zhongguancun Kejin Technology Co Ltd
Priority to CN202210501525.8A priority Critical patent/CN115858138A/en
Publication of CN115858138A publication Critical patent/CN115858138A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device and a storage medium for processing a handwritten track, wherein the method comprises the following steps: the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user; the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage; and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array. The handwriting track is stored in a mode of transmitting and storing the coordinate points, the memory loss is low during transmission, and only a small storage space is needed. The invention can generate the track picture according to the requirement, can generate pictures with different formats and can verify the authenticity. The technical problems that the transmission of the track picture consumes memory and the track picture is stored in the background, the occupied space is large and resources are wasted in the prior art are solved.

Description

Method and device for processing handwriting track and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method and an apparatus for processing a handwritten trajectory, and a storage medium.
Background
The electronic seal is a new thing, changes the obscure electronic signature technology into a common signature stamping mode which is commonly used by people, enables the original mysterious electronic signature and electronic evidence to be things which can be mastered by people, eliminates the application obstacle of the electronic signature, and has great value for the application and popularization of the electronic signature. The electronic signature is an online identity authentication system based on the international PKI standard, a digital certificate is equivalent to an online identity card, online identity authentication is effectively carried out through third party authority authentication in a digital signature mode, each main body is helped to identify the identity of the other side and show the identity of the main body, and the electronic signature has authenticity and anti-repudiation functions. Different from a physical identity card, the digital certificate also has the characteristics of safety, confidentiality and tamper resistance, and can effectively protect and safely transfer information transmitted on an enterprise network.
In the process of electric signing, a signing version needs to be opened on electronic equipment (mobile phone, pad and writing pad equipment) of a client, so that the user signs a name or a wind transcription (wind transcription: risk informing transcription), the handwriting written by the client is extracted and merged into a contract, and an electronic contract with a certificate is generated. Wherein the extracted handwriting cannot be distorted due to inconsistent dimensional resolutions of different consumer electronic devices.
Most of the existing electronic signature methods are that an electronic signature version is opened on a device by a service mobile terminal (ios, app on android device), and a signature track of a user is stored as a picture and uploaded to a background for use. However, for a device with higher resolution, the larger the generated picture is, the more memory is consumed in transmission. Moreover, the pictures are saved in the background, which occupies a large space and wastes resources.
In view of the above technical problems of memory consumption in track picture transmission and large occupied space and resource waste in track picture storage in the background in the prior art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for processing a handwritten track, which are used for at least solving the technical problems that the transmission of a track picture consumes memory and the storage of the track picture in the background occupies a large space and wastes resources in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for processing a handwriting track, including: the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user; the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage; and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
Optionally, the determining, by the mobile terminal, a trajectory coordinate array of a trajectory generated on the electronic drawing board by the user in response to a trigger operation of the user includes: the mobile terminal responds to the triggering operation of the user on the CLICK event and extracts a coordinate point of the user action according to a preset speed; and storing the extracted coordinate points into a track coordinate array according to a time sequence.
Optionally, before the mobile terminal determines the track coordinate array of the track generated on the electronic drawing board by the user in response to the trigger operation of the user, the method further includes: and the mobile terminal draws the electronic drawing board according to the size of the screen and binds a corresponding CLICK event for the drawn electronic drawing board.
Optionally, after the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to the background server, the background server stores the size information of the electronic drawing board and the track coordinate array into the database according to the user ID, and generates the unique identification code according to the user ID and the track coordinate array.
Optionally, the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array, including: the background server sets the size of the canvas according to the size information of the electronic canvas; the background server connects each coordinate point on the canvas according to the track coordinate array and the time sequence generated by each coordinate point to form a signature track; and generating a track picture based on the formed signature track.
Optionally, generating a track picture based on the formed signature track, including: adjusting the thickness of the signature track; cutting blank areas on the canvas; and generating a track picture in a corresponding format according to a preset format requirement.
Optionally, the method further comprises: generating a unique identification code of the track picture according to the MD5 value and the user ID of the track picture; and storing the generated unique identification code into a column of manufacturer information in EXIF information of the track picture.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the method of any one of the above is performed by a processor when the program is run.
According to another aspect of the embodiments of the present invention, there is also provided a device for processing a handwritten trajectory, including: the track coordinate array determining module is used for determining a track coordinate array of a track generated on the electronic drawing board by a user through the mobile terminal in response to the trigger operation of the user; the track coordinate array uploading module is used for uploading the user ID, the size information of the electronic drawing board and the track coordinate array to a background server through the mobile terminal for storage; and the track picture generation module is used for generating a track picture according to the size information of the electronic drawing board and the track coordinate array through the background server.
According to another aspect of the embodiments of the present invention, there is also provided a device for processing a handwritten trajectory, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user; the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage; and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
In the embodiment of the invention, the mobile terminal responds to the trigger operation of the user and determines the track coordinate array of the track generated on the electronic drawing board by the user. And then, the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage. And finally, the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array. The handwriting track is stored in a mode of transmitting and storing the coordinate points, the memory loss is low during transmission, and only a small storage space is needed. The invention can generate the track picture according to the requirement, can generate pictures with different formats and can verify the authenticity. The technical problems that the transmission of the track picture consumes memory and the track picture is stored in the background, the occupied space is large and resources are wasted in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computing apparatus for implementing the method according to embodiment 1 of the present invention;
fig. 2 is a flowchart illustrating a processing method of a handwriting track according to the first aspect of embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a framework of a handwriting track processing method according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram of generating different electronic drawing boards according to different screen sizes according to embodiment 1 of the present invention;
fig. 5a is a schematic diagram of a signature track generated on an electronic drawing board of a certain size according to embodiment 1 of the present invention;
fig. 5b is a schematic diagram of signature tracks generated on an electronic drawing board of another type according to embodiment 1 of the present invention;
fig. 6 is a schematic diagram of a track picture generated by a backend server according to size information of an electronic drawing board and a track coordinate array according to embodiment 1 of the present invention;
fig. 7 is a schematic diagram of a device for processing a handwritten trajectory according to embodiment 2 of the present invention; and
fig. 8 is a schematic diagram of a device for processing a handwritten trajectory according to embodiment 3 of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of a portion of the invention and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present invention are applicable to the following explanations:
java. Awt. Image: various categories of creating and modifying images are provided. The images are processed using a flow framework involving the image producer, optional image filter, and image user. This framework makes it possible to gradually present the image while it is being acquired and generated. Moreover, the framework allows applications to discard the storage space used by the image and regenerate it at any time. This package provides a variety of image producers, users, and filters that can be configured according to the needs of the image processing.
Thumbbnailator: is a good Google open source Java class library for picture processing. The processing effect is far better than that of Java API. Providing existing classes of image files and image objects from the API simplifies the process, enables two or three lines of code to generate a processed picture from an existing picture, and allows fine-tuning of the way the picture is generated, while maintaining the minimum amount of code that needs to be written. It also supports batch processing operations on all pictures of a directory.
Example 1
According to the present embodiment, an embodiment of a method for processing a handwritten trajectory is provided, it should be noted that the steps shown in the flowcharts of the figures may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in an order different from that described herein.
The method embodiments provided by the present embodiment may be executed in a server or similar computing device. Fig. 1 shows a hardware configuration block diagram of a computing device for implementing a processing method of a handwritten trajectory. As shown in fig. 1, the computing device may include one or more processors (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. In addition, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computing device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computing device. As referred to in the embodiments of the invention, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory may be configured to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the method for processing a handwritten trajectory in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the method for processing a handwritten trajectory of the application program. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory located remotely from the processor, which may be connected to the computing device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by communication providers of the computing devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computing device.
It should be noted that in some alternative embodiments, the computing device illustrated in fig. 1 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that FIG. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in a computing device as described above.
In the above operating environment, according to the first aspect of the present embodiment, a method for processing a handwritten trajectory is provided. Fig. 2 shows a flow diagram of the method, and referring to fig. 2, the method comprises:
s202: and the mobile terminal responds to the trigger operation of the user and determines a track coordinate array of a track generated on the electronic drawing board by the user.
Optionally, the determining, by the mobile terminal, a trajectory coordinate array of a trajectory generated on the electronic drawing board by the user in response to a trigger operation of the user includes: the mobile terminal responds to the triggering operation of the user on the CLICK event and extracts a coordinate point of the user action according to a preset speed; and storing the extracted coordinate points into a track coordinate array according to a time sequence.
Optionally, before the mobile terminal determines the trajectory coordinate array of the trajectory generated on the electronic drawing board by the user in response to the trigger operation of the user, the method further includes: and the mobile terminal draws the electronic drawing board according to the size of the screen and binds a corresponding CLICK event for the drawn electronic drawing board.
In the embodiment of the present invention, as shown in fig. 3, the mobile terminal captures the trajectory first. Specifically, the mobile app draws an electronic sign board (electronic drawing board) according to the screen size. For example, but not limited to, the current screen size includes a horizontal screen and a vertical screen, and at this time, the mobile end app needs to draw an electronic sign board as shown in fig. 4 according to the screen size and bind a corresponding CLICK event to the drawn electronic sign board. When a user touches a screen, a CLICK event is triggered, and when the CLICK event is triggered, the mobile terminal needs to extract a coordinate point of a user action according to a preset speed, for example, but not limited to, taking one coordinate point of the user action every microsecond, and storing the coordinate points into a track coordinate array in a time sequence.
Fig. 5a shows a schematic diagram of a signature track generated by a user on an electronic drawing board of a certain size. Fig. 5b shows a schematic diagram of a signature track generated by a user on an electronic drawing board of another type of size. In order to extract the real handwriting information of a client on different devices and ensure that the user handwriting can be restored, the client needs to extract coordinate points of user actions according to a certain speed and store the coordinate points into a track coordinate array according to a time sequence. And the background server can restore the handwriting of the user according to the track coordinate array.
S204: and the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage.
Optionally, after the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to the background server, the background server stores the size information of the electronic drawing board and the track coordinate array into the database according to the user ID, and generates the unique identification code according to the user ID and the track coordinate array.
In the embodiment of the present invention, the size information of the electronic drawing board includes width and height and units (pixels).
S206: and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
Optionally, the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array, including: the background server sets the size of the canvas according to the size information of the electronic canvas; the background server connects each coordinate point on the canvas according to the track coordinate array and the time sequence generated by each coordinate point to form a signature track; and generating a track picture based on the formed signature track.
In the embodiment of the present invention, as shown in fig. 6, the background server sets the size of the canvas according to the size information of the electronic drawing board according to the coordinate point information stored in the database, and then connects each coordinate point on the canvas according to the stored trajectory coordinate array in sequence to form a signature trajectory. And finally, generating a track picture based on the formed signature track.
Optionally, generating a track picture based on the formed signature track, including: adjusting the thickness of the signature track; cutting a blank area on the canvas; and generating a track picture in a corresponding format according to a preset format requirement.
Optionally, the method further comprises: generating a unique identification code of the track picture according to the MD5 value and the user ID of the track picture; and storing the generated unique identification code into a column of manufacturer information in EXIF information of the track picture.
In the embodiment of the invention, handwriting information can be drawn according to coordinate track information, and the thickness of a stroke can be adjusted. The exported picture format can be set, and the blank area can be cut by acquiring the maximum point and the minimum point of the x and y axes, so that the canvas is minimized, and the picture size is reduced. The picture size may be compressed again by the thumbceiling to reduce network bandwidth. After the track picture is finally generated, a unique identification code is generated according to the md5 value of the track picture and user information (user ID), and the unique identification code is stored in a column of manufacturer information in exif information of the track picture for verifying authenticity in the future.
Therefore, according to the method for processing the handwritten track, the mobile terminal responds to the trigger operation of the user and determines the track coordinate array of the track generated on the electronic drawing board by the user. And then, the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage. And finally, the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array. The handwriting track is stored in a mode of transmitting and storing the coordinate points, the memory loss is low during transmission, and only a small storage space is needed. The invention can generate the track picture according to the requirement, can generate pictures with different formats and can verify the authenticity. The technical problems that the transmission of the track picture consumes memory and the track picture is stored in the background, the occupied space is large and resources are wasted in the prior art are solved.
It should be noted that for simplicity of description, the above-mentioned method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 7 shows a processing device 700 of a handwritten trajectory according to the embodiment, which device 700 corresponds to the method according to the first aspect of embodiment 1. Referring to fig. 7, the apparatus 700 includes: the track coordinate array determining module 710 is configured to determine, by the mobile terminal, a track coordinate array of a track generated on the electronic drawing board by the user in response to a trigger operation of the user; the track coordinate array uploading module 720 is used for uploading the user ID, the size information of the electronic drawing board and the track coordinate array to a background server through the mobile terminal for storage; and the track picture generation module 730 is configured to generate a track picture according to the size information of the electronic drawing board and the track coordinate array through the background server.
Optionally, the trajectory coordinate array determining module 710 is specifically configured to: the mobile terminal responds to the triggering operation of the user on the CLICK event and extracts a coordinate point of the user action according to a preset speed; and storing the extracted coordinate points into a track coordinate array according to the time sequence.
Optionally, the system further comprises an electronic drawing board drawing module, configured to: and drawing the electronic drawing board according to the screen size through the mobile terminal, and binding a corresponding CLICK event for the drawn electronic drawing board.
Optionally, after the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to the background server, the background server stores the size information of the electronic drawing board and the track coordinate array into the database according to the user ID, and generates the unique identification code according to the user ID and the track coordinate array.
Optionally, the track picture generating module 730 is specifically configured to: the background server sets the size of the canvas according to the size information of the electronic canvas; the background server connects each coordinate point on the canvas according to the track coordinate array and the time sequence generated by each coordinate point to form a signature track; and generating a track picture based on the formed signature track.
Optionally, generating a track picture based on the formed signature track, including: adjusting the thickness of the signature track; cutting a blank area on the canvas; and generating a track picture in a corresponding format according to a preset format requirement.
Optionally, the apparatus is further configured to: generating a unique identification code of the track picture according to the MD5 value and the user ID of the track picture; and storing the generated unique identification code into a column of manufacturer information in EXIF information of the track picture.
Therefore, according to the embodiment, firstly, the mobile terminal responds to the trigger operation of the user to determine the track coordinate array of the track generated on the electronic drawing board by the user. And then, uploading the user ID, the size information of the electronic drawing board and the track coordinate array to a background server through the mobile terminal for storage. And finally, generating a track picture according to the size information of the electronic drawing board and the track coordinate array through a background server. The handwriting track is stored in a mode of transmitting and storing the coordinate points, the memory loss is low during transmission, and only a small storage space is needed. The invention can generate the track picture according to the requirement, can generate pictures with different formats and can verify the authenticity. The technical problems that the transmission of the track picture consumes memory and the track picture is stored in the background, the occupied space is large and resources are wasted in the prior art are solved.
Example 3
Fig. 8 shows a device 800 for processing a handwritten trajectory according to the present embodiment, which device 800 corresponds to the method according to the first aspect of embodiment 1. Referring to fig. 8, the apparatus 800 includes: a processor 810; and a memory 820 coupled to the processor 810 for providing instructions to the processor 810 to process the following process steps: the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user; the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage; and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
Optionally, the determining, by the mobile terminal, a trajectory coordinate array of a trajectory generated on the electronic drawing board by the user in response to the user's trigger operation includes: the mobile terminal responds to the triggering operation of a user on the CLICK event and extracts a coordinate point of the user action according to a preset speed; and storing the extracted coordinate points into a track coordinate array according to the time sequence.
Optionally, before the mobile terminal determines the track coordinate array of the track generated on the electronic drawing board by the user in response to the trigger operation of the user, the method further includes: and the mobile terminal draws the electronic drawing board according to the size of the screen and binds a corresponding CLICK event for the drawn electronic drawing board.
Optionally, after the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to the background server, the background server stores the size information of the electronic drawing board and the track coordinate array into the database according to the user ID, and generates the unique identification code according to the user ID and the track coordinate array.
Optionally, the generating, by the backend server, the track picture according to the size information of the electronic drawing board and the track coordinate array includes: the background server sets the size of the canvas according to the size information of the electronic canvas; the background server connects each coordinate point on the canvas according to the track coordinate array and the time sequence generated by each coordinate point to form a signature track; and generating a track picture based on the formed signature track.
Optionally, generating a track picture based on the formed signature track, including: adjusting the thickness of the signature track; cutting a blank area on the canvas; and generating a track picture in a corresponding format according to a preset format requirement.
Optionally, the method further comprises: generating a unique identification code of the track picture according to the MD5 value and the user ID of the track picture; and storing the generated unique identification code into a column of manufacturer information in EXIF information of the track picture.
Therefore, according to the embodiment, the mobile terminal determines the track coordinate array of the track generated on the electronic drawing board by the user in response to the trigger operation of the user. And then, the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage. And finally, the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array. The handwriting track is stored in a mode of transmitting and storing the coordinate points, the memory loss is low during transmission, and only a small storage space is needed. The invention can generate the track picture according to the requirement, can generate pictures with different formats and can verify the authenticity. The technical problems that the transmission of the track picture consumes memory and the track picture is stored in the background, the occupied space is large and resources are wasted in the prior art are solved.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered as the protection scope of the present invention.

Claims (10)

1. A method for processing a handwritten trajectory, comprising:
the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user;
the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage;
and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
2. The method according to claim 1, wherein the mobile terminal determines a track coordinate array of a track generated on the electronic drawing board by the user in response to a trigger operation of the user, and the method comprises:
the mobile terminal responds to the triggering operation of the user on the CLICK event and extracts a coordinate point of the user action according to a preset speed;
and storing the extracted coordinate points into a track coordinate array according to a time sequence.
3. The method according to claim 2, wherein before the mobile terminal determines the track coordinate array of the track generated on the electronic drawing board by the user in response to the trigger operation of the user, the method further comprises: and the mobile terminal draws the electronic drawing board according to the size of the screen and binds a corresponding CLICK event for the drawn electronic drawing board.
4. The method according to claim 1, wherein after the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to the background server, the background server stores the size information of the electronic drawing board and the track coordinate array into a database according to the user ID, and generates the unique identification code according to the user ID and the track coordinate array.
5. The method of claim 1, wherein the backend server generates the track picture according to the size information of the electronic drawing board and the track coordinate array, and comprises:
the background server sets the size of the canvas according to the size information of the electronic canvas;
the background server connects each coordinate point on the canvas according to the track coordinate array and the time sequence generated by each coordinate point to form a signature track;
and generating a track picture based on the formed signature track.
6. The method of claim 5, wherein generating a trace picture based on the formed signature trace comprises:
adjusting the thickness of the signature track;
cutting a blank area on the canvas;
and generating a track picture in a corresponding format according to a preset format requirement.
7. The method of claim 5, further comprising:
generating a unique identification code of the track picture according to the MD5 value and the user ID of the track picture;
and storing the generated unique identification code into a column of manufacturer information in EXIF information of the track picture.
8. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 7 is performed by a processor when the program is run.
9. A device for processing a handwritten trajectory, comprising:
the track coordinate array determining module is used for determining a track coordinate array of a track generated on the electronic drawing board by a user through the mobile terminal in response to the trigger operation of the user;
the track coordinate array uploading module is used for uploading the user ID, the size information of the electronic drawing board and the track coordinate array to a background server through the mobile terminal for storage;
and the track picture generation module is used for generating a track picture according to the size information of the electronic drawing board and the track coordinate array through the background server.
10. A device for processing a handwritten trajectory, comprising:
a processor; and
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:
the mobile terminal responds to the trigger operation of a user and determines a track coordinate array of a track generated on the electronic drawing board by the user;
the mobile terminal uploads the user ID, the size information of the electronic drawing board and the track coordinate array to a background server for storage;
and the background server generates a track picture according to the size information of the electronic drawing board and the track coordinate array.
CN202210501525.8A 2022-05-09 2022-05-09 Method and device for processing handwriting track and storage medium Pending CN115858138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210501525.8A CN115858138A (en) 2022-05-09 2022-05-09 Method and device for processing handwriting track and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210501525.8A CN115858138A (en) 2022-05-09 2022-05-09 Method and device for processing handwriting track and storage medium

Publications (1)

Publication Number Publication Date
CN115858138A true CN115858138A (en) 2023-03-28

Family

ID=85660097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210501525.8A Pending CN115858138A (en) 2022-05-09 2022-05-09 Method and device for processing handwriting track and storage medium

Country Status (1)

Country Link
CN (1) CN115858138A (en)

Similar Documents

Publication Publication Date Title
CN106101091B (en) Method and device for processing data between terminals
CN103902147A (en) Method and device for opening application program
CN103942054A (en) Data evidence obtaining system based on Android
CN111367562A (en) Data acquisition method and device, storage medium and processor
EP4191513A1 (en) Image processing method and apparatus, device and storage medium
CN103051652A (en) Mobile terminal cloud commuting delivery platform
US20190007479A1 (en) Multimedia Data Transmission Method and Device
US8620027B2 (en) Augmented reality-based file transfer method and file transfer system thereof
CN106227483B (en) Display control method and mobile terminal
CN109951318A (en) The function configuration method and device of application
CN114398672A (en) Authority-based flow creation method and device and storage medium
CN115526160A (en) Rich text processing method, device and equipment and storage medium
CN111506551A (en) Conference file extraction method and system and computer equipment
CN113255505A (en) Certificate photo generation method, device, equipment and storage medium
CN112363932A (en) Method and device for testing business object to be tested and electronic device
CN115858138A (en) Method and device for processing handwriting track and storage medium
WO2014166255A1 (en) Method, device, and terminal for determining user interface language display of sim card
CN108667647B (en) Method and device for setting device parameters and server
CN110730080A (en) Signed document client and server based on private key self-support
CN110337074B (en) Interactive information transmission method, system and terminal equipment
CN113971010A (en) High-speed shooting instrument, printer control method and device and storage medium
CN103491234A (en) Data processing method and electronic equipment
CN114039969A (en) Data transmission method and device
CN103971422A (en) Check-in method and device based on electronic business card adopting NFC (Near Field Communication) technology
RU2666283C1 (en) Method for distribution of advertising content through technologies of nfc-points and qr-code

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