Cloud drawing board trajectory synchronization methods, systems, devices and storage media
By monitoring and rendering user swipe commands in real time on the terminal, combined with synchronous processing in the cloud, the problem of graphics drawing latency in the cloud drawing board is solved, enabling users to achieve instant response and synchronous drawing effects on the cloud drawing board.
Patent Information
- Application Number
- CN202310001278.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-03
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-01-03
AI Technical Summary
Existing cloud drawing boards suffer from excessive display delays on the client side due to network transmission latency when drawing graphics, which affects the user experience.
By monitoring the user's swipe commands, especially pen and erase commands, in real time on the terminal drawing system, the system renders trajectory graphics in real time and sends the trajectory coordinates and type to the cloud drawing system for synchronous processing, achieving real-time local response, while simultaneously synchronizing new drawing interfaces from the cloud to the terminal.
It enables real-time synchronous response of user drawings on the cloud drawing board, reduces the impact of network transmission latency on the drawing experience, and improves the client's response speed and user experience.
Smart Images

Figure CN115953500B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of painting display, and more particularly to a method, system, device, and storage medium for synchronizing the trajectory of a cloud drawing board. Background Technology
[0002] Cloud-based drawing boards are increasingly being used in various scenarios, such as company meetings, online classes, presentations, and live-streaming sales demonstrations, where users need to share drawing and writing content.
[0003] However, currently, touch and swipe events on cloud drawing boards are transmitted from the client to the cloud desktop over the network, a process that takes time. Therefore, when a user draws on the board, the pen stroke is delayed by hundreds of milliseconds. Similarly, the cloud desktop's drawing board image also takes time to be transmitted over the network to the client for display. As a result, after a user draws a line, it takes two network transmissions before the line becomes visible, leading to a significant delay and a poor user experience when drawing graphics on the client. Therefore, the current excessive display delay on the client side negatively impacts the user experience, necessitating a new technology to address this problem. Summary of the Invention
[0004] The main objective of this invention is to solve the technical problem of excessive display delay in current graphics drawing clients, which affects the user experience.
[0005] The first aspect of this invention provides a trajectory synchronization method for a cloud drawing board. This method is applied to a trajectory synchronization system for a cloud drawing board, which includes a cloud-based drawing system and a terminal drawing system. The trajectory synchronization method for the cloud drawing board includes: The terminal drawing system receives the user's sliding command, wherein the sliding type of the sliding command includes: pen command type and erase command type; Determine whether the sliding type of the sliding command is a pen command type; If it is a pen instruction type, the trajectory coordinates of the sliding instruction are monitored, the trajectory graphic corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface, and the trajectory coordinates and the sliding type are sent to the cloud drawing system. If it is not a pen instruction type, then monitor the trajectory coordinates of the sliding instruction and send the trajectory coordinates and the sliding type to the cloud drawing system; Upon monitoring the lifting state of the sliding command, the rendered graphic of the trajectory coordinates is cleared on the terminal drawing interface; The cloud-based drawing system receives the trajectory coordinates and the sliding type, adjusts the cloud-based drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud-based drawing interface, and synchronizes the new cloud-based drawing interface to the terminal drawing system.
[0006] Optionally, in a first implementation of the first aspect of the present invention, before the terminal drawing system receives the user's swipe command, it further includes: The terminal drawing system receives the user's drawing start command, activates the terminal drawing interface according to the drawing start command, and sends the drawing start command to the cloud drawing system; The cloud-based drawing system receives the drawing start command, activates the cloud-based drawing interface according to the drawing start command, and sends the cloud-based drawing interface to the terminal drawing system. The terminal drawing system receives the cloud drawing interface and overlays the cloud drawing interface with the terminal drawing interface.
[0007] Optionally, in a second implementation of the first aspect of the present invention, synchronizing the new cloud-based drawing interface to the terminal drawing system includes: The new cloud-based drawing interface is sent to the terminal drawing system; The terminal drawing system receives the new cloud drawing interface and replaces the existing cloud drawing interface with the new cloud drawing interface so that the new cloud drawing interface and the terminal drawing interface are displayed overlappingly.
[0008] Optionally, in a third implementation of the first aspect of the present invention, monitoring the trajectory coordinates of the sliding command and rendering and displaying the trajectory graphic corresponding to the trajectory coordinates in real time on the terminal drawing interface includes: Monitor the trajectory coordinates of the sliding command; Based on the brush color of the sliding command, the brush color trajectory corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface.
[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the step of adjusting the cloud-based drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud-based drawing interface includes: When the sliding type is the brush instruction type, the trajectory is rendered in the cloud painting interface according to the trajectory coordinates to obtain a new cloud painting interface.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the step of adjusting the cloud-based drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud-based drawing interface further includes: When the sliding type is the erase instruction type, the trajectory pixels are erased in the cloud drawing interface according to the trajectory coordinates to obtain a new cloud drawing interface.
[0011] Optionally, in a sixth implementation of the first aspect of the present invention, monitoring the lifting state of the sliding command includes: Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; If the trajectory coordinates of the sliding command are discontinuous, the sliding command is marked as a lifted state.
[0012] A second aspect of the present invention provides a trajectory synchronization system for a cloud drawing board, the trajectory synchronization system for the cloud drawing board comprising: Cloud-based rendering system, terminal-based rendering system; The terminal drawing system is used to receive the user's sliding instructions, wherein the sliding type of the sliding instructions includes: pen instruction type and erase instruction type; Determine whether the sliding type of the sliding command is a pen command type; If it is a pen instruction type, the trajectory coordinates of the sliding instruction are monitored, the trajectory graphic corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface, and the trajectory coordinates and the sliding type are sent to the cloud drawing system. If it is not a pen instruction type, then monitor the trajectory coordinates of the sliding instruction and send the trajectory coordinates and the sliding type to the cloud drawing system; Upon monitoring the lifting state of the sliding command, the rendered graphic of the trajectory coordinates is cleared on the terminal drawing interface; The cloud-based drawing system is used to receive the trajectory coordinates and the sliding type, adjust the cloud drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud drawing interface, and synchronize the new cloud drawing interface to the terminal drawing system.
[0013] A third aspect of the present invention provides a trajectory synchronization device for a cloud drawing board, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor invokes the instructions in the memory to cause the trajectory synchronization device for the cloud drawing board to execute the aforementioned trajectory synchronization method for the cloud drawing board.
[0014] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the above-described cloud drawing board trajectory synchronization method.
[0015] In this embodiment of the invention, by responding instantly on the local terminal and closely following the user's operation, while the cloud drawing board transfer is executed in another interface, the two interfaces respond to the user's drawing operation in parallel, realizing the real-time synchronous response of the current user's drawing on the cloud drawing board trajectory, which is not affected by the response of network transmission delay. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of an embodiment of the trajectory synchronization method of the cloud drawing board in this invention; Figure 2 This is a schematic diagram of an embodiment of the trajectory synchronization system of the cloud drawing board in this invention; Figure 3 This is a schematic diagram of an embodiment of the trajectory synchronization device for the cloud drawing board in this invention. Detailed Implementation
[0017] This invention provides a method, system, device, and storage medium for synchronizing the trajectory of a cloud drawing board.
[0018] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 This invention provides an embodiment of a trajectory synchronization method for a cloud drawing board. The method is applied to a trajectory synchronization system for the cloud drawing board, which includes a cloud-based drawing system and a terminal drawing system. The trajectory synchronization method for the cloud drawing board includes: 101. The terminal drawing system receives the user's sliding command, wherein the sliding type of the sliding command includes: pen command type and erase command type; In this embodiment, the terminal drawing system can be a mobile phone, computer or other terminal. When it receives the user's swipe command on the screen, it can execute the operation related to the swipe command. Before the swipe command, the user will select the type of swipe, which can be either a pen command type or an erase command type.
[0020] Furthermore, before step 101, the following steps can also be performed: 1011. The terminal drawing system receives the user's drawing start command, activates the terminal drawing interface according to the drawing start command, and sends the drawing start command to the cloud drawing system. 1012. The cloud drawing system receives the drawing start command, activates the cloud drawing interface according to the drawing start command, and sends the cloud drawing interface to the terminal drawing system. 1013. The terminal drawing system receives the cloud drawing interface and overlays the cloud drawing interface with the terminal drawing interface.
[0021] In steps 1011-1013, when the cloud drawing board is opened on a mobile phone, computer or other terminal, the terminal drawing interface of the terminal device is activated first according to the drawing start command, and then the cloud drawing board is also activated. After the cloud server synchronizes the cloud drawing board on the mobile phone and computer terminal, the cloud drawing interface and the terminal drawing interface are overlapped to facilitate the removal of delay when the user operation is displayed locally and in the cloud.
[0022] 102. Determine whether the sliding type of the sliding command is a pen command type; In this embodiment, the sliding type can be divided into pen instruction type, which is mainly a normal color pen, such as red, blue, yellow, etc., and may also be an erase instruction type used to erase the drawn pen trajectory.
[0023] 103. If it is a pen instruction type, monitor the trajectory coordinates of the sliding instruction, render and display the trajectory graphic corresponding to the trajectory coordinates in real time on the terminal drawing interface, and send the trajectory coordinates and sliding type to the cloud drawing system. In this example, if it's a pen command type, the client draws a trajectory of the corresponding color at the coordinates of the touch event. Then, the trajectory coordinates recorded by the touch event are sent to the cloud-based drawing system, which adjusts the drawing data accordingly.
[0024] Furthermore, the following steps can be performed at 103: 1031. Monitor the trajectory coordinates of the sliding command; 1032. Based on the brush color of the sliding command, render and display the brush color trajectory corresponding to the trajectory coordinates in real time on the terminal drawing interface.
[0025] In steps 1031-1032, the coordinates of the touch events of the swipe command are monitored, and the set of coordinates is used as the trajectory coordinates for rendering. The brush color is rendered as red, blue, yellow, etc., and the trajectory is rendered as the corresponding color.
[0026] 104. If it is not a pen instruction type, monitor the trajectory coordinates of the sliding instruction and send the trajectory coordinates and sliding type to the cloud drawing system; In this embodiment, when the sliding command is an erase command type, no trajectory is drawn. Instead, the trajectory coordinates and erase command type are sent to the cloud-based drawing system, which then adjusts the display of the drawing interface.
[0027] 105. Upon monitoring the release state of the sliding command, clear the rendered graphic of the trajectory coordinates on the terminal drawing interface. In this embodiment, after a user finishes drawing once, the drawn trajectory is cleared, which means clearing all rendered graphics of the trajectory coordinates.
[0028] Specifically, the execution method for "monitoring the release state of the swipe command" is as follows: 1053. Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; 1054. When the trajectory coordinates of a sliding command are discontinuous, the sliding command is marked as lifted.
[0029] In steps 1053-1054, the real-time determination of the continuity of the sliding coordinate trajectory mainly involves analyzing whether each coordinate trajectory is adjacent to the coordinate of the next generated trajectory. If they are adjacent, there are no discontinuous coordinates. If they are not adjacent, they are considered discontinuous, the sliding command has ended, and the sliding command is marked as lifted.
[0030] 106. The cloud drawing system receives the trajectory coordinates and the sliding type. Based on the sliding type and trajectory coordinates, it adjusts the cloud drawing interface to obtain a new cloud drawing interface and synchronizes the new cloud drawing interface to the terminal drawing system.
[0031] In this embodiment, after receiving the trajectory coordinates and sliding type, the cloud drawing system adjusts the screen of the cloud drawing interface and then synchronizes it back to the terminal drawing system. However, since the sliding trajectory has been displayed locally, the user cannot notice the relevant delay, and the two are in an overlapping state. During the operation, it feels like one screen, and the cloud drawing board function is realized.
[0032] Specifically, in step 106, the following steps can be performed: 1061. When the sliding type is a pen instruction type, the trajectory is rendered in the cloud drawing interface according to the trajectory coordinates to obtain a new cloud drawing interface.
[0033] In this embodiment, in the cloud drawing system, a trajectory image is rendered on the cloud drawing interface based on the trajectory coordinates, and then a new cloud drawing interface is generated.
[0034] Specifically, in step 106, the following steps can be performed: 1062. When the sliding type is the erase command type, the trajectory pixels are erased in the cloud drawing interface according to the trajectory coordinates to obtain a new cloud drawing interface.
[0035] In this embodiment, in the cloud drawing system, the pixels of the cloud drawing interface in the trajectory coordinates are erased to obtain a new cloud drawing interface.
[0036] Furthermore, after step 106, the following steps can be performed: 107. Send the new cloud-based drawing interface to the terminal drawing system; 108. The terminal drawing system receives the new cloud drawing interface and replaces the existing cloud drawing interface with the new cloud drawing interface so that the new cloud drawing interface and the terminal drawing interface can be displayed overlappingly.
[0037] In steps 107-108, the new cloud drawing interface needs to be sent to the terminal device, which will then replace the original cloud drawing interface with the new one. The new cloud drawing interface and the terminal drawing interface will then be displayed overlaid to facilitate subsequent drawing operations.
[0038] In this embodiment of the invention, by responding instantly on the local terminal and closely following the user's operation, while the cloud drawing board transfer is executed in another interface, the two interfaces respond to the user's drawing operation in parallel, realizing the real-time synchronous response of the current user's drawing on the cloud drawing board trajectory, which is not affected by the response of network transmission delay.
[0039] The trajectory synchronization method of the cloud drawing board in the embodiments of the present invention has been described above. The trajectory synchronization system of the cloud drawing board in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 2 One embodiment of the trajectory synchronization system for the cloud drawing board in this invention includes: Cloud-based rendering system 201, terminal-based rendering system 202; The terminal drawing system 202 is used to receive the user's sliding command, wherein the sliding type of the sliding command includes: pen command type and erase command type; Determine whether the sliding type of the sliding command is a pen command type; If it is a pen instruction type, the trajectory coordinates of the sliding instruction are monitored, the trajectory graphic corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface, and the trajectory coordinates and the sliding type are sent to the cloud drawing system. If it is not a pen instruction type, then monitor the trajectory coordinates of the sliding instruction and send the trajectory coordinates and the sliding type to the cloud drawing system; Upon monitoring the lifting state of the sliding command, the rendered graphic of the trajectory coordinates is cleared on the terminal drawing interface; The cloud-based drawing system 201 is used to receive the trajectory coordinates and the sliding type, adjust the cloud-based drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud-based drawing interface, and synchronize the new cloud-based drawing interface to the terminal drawing system. This invention provides beneficial effects.
[0040] Specifically, the terminal rendering system 202 is used for: Receive the user's drawing start command, activate the terminal drawing interface according to the drawing start command, and send the drawing start command to the cloud drawing system; The cloud-based drawing system receives the drawing start command, activates the cloud-based drawing interface according to the drawing start command, and sends the cloud-based drawing interface to the terminal drawing system. The terminal drawing system receives the cloud drawing interface and overlays the cloud drawing interface with the terminal drawing interface.
[0041] Specifically, the cloud-based rendering system 201 is used for: The new cloud-based drawing interface is sent to the terminal drawing system; The terminal drawing system receives the new cloud drawing interface and replaces the existing cloud drawing interface with the new cloud drawing interface so that the new cloud drawing interface and the terminal drawing interface are displayed overlappingly.
[0042] Specifically, the terminal rendering system 202 is further used for: Monitor the trajectory coordinates of the sliding command; Based on the brush color of the sliding command, the brush color trajectory corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface.
[0043] Specifically, the cloud-based rendering system 201 is also used for: When the sliding type is the brush instruction type, the trajectory is rendered in the cloud painting interface according to the trajectory coordinates to obtain a new cloud painting interface.
[0044] Specifically, the cloud-based rendering system 201 is also used for: When the sliding type is the erase instruction type, the trajectory pixels are erased in the cloud drawing interface according to the trajectory coordinates to obtain a new cloud drawing interface.
[0045] Specifically, the terminal rendering system 202 is further used for: Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; If the trajectory coordinates of the sliding command are discontinuous, the sliding command is marked as a lifted state.
[0046] above Figure 2 The trajectory synchronization system of the cloud drawing board in this embodiment of the invention is described in detail from the perspective of modular functional entities. The trajectory synchronization device of the cloud drawing board in this embodiment of the invention is described in detail from the perspective of hardware processing.
[0047] Figure 3 This is a schematic diagram of the structure of a cloud drawing board trajectory synchronization device 300 provided in an embodiment of the present invention. The trajectory synchronization device 300 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 310 (e.g., one or more processors) and a memory 320, and one or more storage media 330 (e.g., one or more mass storage devices) for storing application programs 333 or data 332. The memory 320 and storage media 330 can be temporary or persistent storage. The program stored in the storage media 330 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the cloud drawing board trajectory synchronization device 300. Furthermore, the processor 310 may be configured to communicate with the storage media 330 and execute the series of instruction operations in the storage media 330 on the cloud drawing board trajectory synchronization device 300.
[0048] The cloud-based trajectory synchronization device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input / output interfaces 360, and / or one or more operating systems 331, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 3 The illustrated trajectory synchronization device structure of the cloud drawing board does not constitute a limitation on cloud drawing board-based trajectory synchronization devices. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0049] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the cloud drawing board trajectory synchronization method.
[0050] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system or system / unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0051] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0052] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A trajectory synchronization method for a cloud drawing board, characterized in that, The trajectory synchronization method for the cloud drawing board is applied to the trajectory synchronization system of the cloud drawing board, which includes: a cloud-based drawing system and a terminal drawing system. The trajectory synchronization method for the cloud drawing board includes: The terminal drawing system receives the user's sliding command, wherein the sliding type of the sliding command includes: pen command type and erase command type; Determine whether the sliding type of the sliding command is a pen command type; If it is a pen instruction type, the trajectory coordinates of the sliding instruction are monitored, the trajectory graphic corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface, and the trajectory coordinates and the sliding type are sent to the cloud drawing system. If it is not a pen instruction type, then monitor the trajectory coordinates of the sliding instruction, send the trajectory coordinates and the sliding type to the cloud drawing system, and the terminal drawing system does not render the trajectory graphic corresponding to the trajectory coordinates on the terminal drawing interface; The system monitors the trajectory coordinates of the sliding command in real time and determines whether the trajectory coordinates of the sliding command and the next trajectory coordinates are adjacent coordinates. When the trajectory coordinates of the sliding command and the next trajectory coordinates are not adjacent coordinates, the system monitors the lifting state of the sliding command and clears the rendered graphics of the trajectory coordinates on the terminal drawing interface. The cloud-based drawing system receives the trajectory coordinates and the sliding type, adjusts the cloud-based drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud-based drawing interface, and synchronizes the new cloud-based drawing interface to the terminal drawing system. The step of adjusting the cloud painting interface based on the sliding type and the trajectory coordinates to obtain a new cloud painting interface further includes: When the sliding type is the erase instruction type, the trajectory pixel erase process is performed on the cloud painting interface according to the trajectory coordinates to obtain a new cloud painting interface. The monitored lifting state of the sliding command includes: Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; If the trajectory coordinates of the sliding command are discontinuous, the sliding command is marked as a lifted state.
2. The trajectory synchronization method for cloud drawing board according to claim 1, characterized in that, Before the terminal drawing system receives the user's swipe command, it also includes: The terminal drawing system receives the user's drawing start command, activates the terminal drawing interface according to the drawing start command, and sends the drawing start command to the cloud drawing system; The cloud-based drawing system receives the drawing start command, activates the cloud-based drawing interface according to the drawing start command, and sends the cloud-based drawing interface to the terminal drawing system. The terminal drawing system receives the cloud drawing interface and overlays the cloud drawing interface with the terminal drawing interface.
3. The trajectory synchronization method for cloud drawing board according to claim 2, characterized in that, The step of synchronizing the new cloud-based drawing interface to the terminal drawing system includes: The new cloud-based drawing interface is sent to the terminal drawing system; The terminal drawing system receives the new cloud drawing interface and replaces the existing cloud drawing interface with the new cloud drawing interface so that the new cloud drawing interface and the terminal drawing interface are displayed overlappingly.
4. The trajectory synchronization method for cloud drawing board according to claim 1, characterized in that, The monitoring of the trajectory coordinates of the sliding command, and the real-time rendering and display of the trajectory graphic corresponding to the trajectory coordinates on the terminal drawing interface, includes: Monitor the trajectory coordinates of the sliding command; Based on the brush color of the sliding command, the brush color trajectory corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface.
5. The trajectory synchronization method for cloud drawing board according to claim 1, characterized in that, The monitored state of the lifted sliding command includes: Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; If the trajectory coordinates of the sliding command are discontinuous, the sliding command is marked as a lifted state.
6. A trajectory synchronization system for a cloud drawing board, characterized in that, The trajectory synchronization system of the cloud drawing board includes: Cloud-based rendering system, terminal-based rendering system; The terminal drawing system is used to receive the user's sliding command, wherein the sliding type of the sliding command includes: pen command type and erase command type; Determine whether the sliding type of the sliding command is a pen command type; If it is a pen instruction type, the trajectory coordinates of the sliding instruction are monitored, the trajectory graphic corresponding to the trajectory coordinates is rendered and displayed in real time on the terminal drawing interface, and the trajectory coordinates and the sliding type are sent to the cloud drawing system. If it is not a pen instruction type, then monitor the trajectory coordinates of the sliding instruction, send the trajectory coordinates and the sliding type to the cloud drawing system, and the terminal drawing system does not render the trajectory graphic corresponding to the trajectory coordinates on the terminal drawing interface; The system monitors the trajectory coordinates of the sliding command in real time and determines whether the trajectory coordinates of the sliding command and the next trajectory coordinates are adjacent coordinates. When the trajectory coordinates of the sliding command and the next trajectory coordinates are not adjacent coordinates, the system monitors the lifting state of the sliding command and clears the rendered graphics of the trajectory coordinates on the terminal drawing interface. The cloud-based drawing system is used to receive the trajectory coordinates and the sliding type, adjust the cloud drawing interface according to the sliding type and the trajectory coordinates to obtain a new cloud drawing interface, and synchronize the new cloud drawing interface to the terminal drawing system. The step of adjusting the cloud painting interface based on the sliding type and the trajectory coordinates to obtain a new cloud painting interface further includes: When the sliding type is the erase instruction type, the trajectory pixel erase process is performed on the cloud painting interface according to the trajectory coordinates to obtain a new cloud painting interface. The monitored lifting state of the sliding command includes: Real-time determination of whether there are discontinuous coordinates in the trajectory coordinates of the sliding command; If the trajectory coordinates of the sliding command are discontinuous, the sliding command is marked as a lifted state.
7. A trajectory synchronization device for a cloud drawing board, characterized in that, The trajectory synchronization device of the cloud drawing board includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the cloud drawing board trajectory synchronization device to perform the cloud drawing board trajectory synchronization method as described in any one of claims 1-5.
8. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the trajectory synchronization method of the cloud drawing board as described in any one of claims 1-5.
Citation Information
Patent Citations
Handwriting display processing method and system based on dual systems, storage medium and equipment
CN107450831A
