CN114860108A - Writing track processing method and device based on cloud desktop and electronic equipment - Google Patents

Writing track processing method and device based on cloud desktop and electronic equipment Download PDF

Info

Publication number
CN114860108A
CN114860108A CN202210547626.9A CN202210547626A CN114860108A CN 114860108 A CN114860108 A CN 114860108A CN 202210547626 A CN202210547626 A CN 202210547626A CN 114860108 A CN114860108 A CN 114860108A
Authority
CN
China
Prior art keywords
track
sampling
points
variable
point
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
CN202210547626.9A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210547626.9A priority Critical patent/CN114860108A/en
Publication of CN114860108A publication Critical patent/CN114860108A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a writing track processing method and device based on a cloud desktop and electronic equipment, and relates to the technical field of cloud computing. The method comprises the following steps: responding to a first erasing request aiming at a writing track displayed by a cloud desktop client, and determining a first erasing track of the writing track; sampling track points of the first erasing track to obtain first sampling track points; and generating a replacement track of the first erasing track based on the first sampling track point, and displaying the replacement track at the cloud desktop client. In the embodiment of the application, the erased writing track is sampled to generate the replacing track, so that the problem of distortion caused by cross-network transmission of the writing track is solved, and the writing track meeting the user requirements is restored in a cloud desktop scene.

Description

Writing track processing method and device based on cloud desktop and electronic equipment
Technical Field
The application relates to the technical field of cloud computing, in particular to a writing track processing method and device based on a cloud desktop and an electronic device.
Background
Many touch screen devices, or external touch peripherals, support/employ stylus input. Sampling is performed through sensing points of the screen/panel to form electronic input. The stylus is indispensable in many office scenes, such as signing, taking notes, designing drawings and the like. However, high-frequency sampling of the handwriting pen itself and algorithm optimization of the cloud desktop operating system on the handwriting pen sampling point result in cross-network transmission in a cloud desktop scene, and writing handwriting cannot be completely or even approximately restored, so that distortion to a certain degree is caused. For some signing and designing scenes with particularly high requirements on the notes, better service cannot be provided.
Disclosure of Invention
The embodiment of the application provides a writing track processing method and device based on a cloud desktop and electronic equipment, and aims to solve the problem of distortion caused by cross-network transmission of the writing track and restore the writing track meeting the requirements of a user in a cloud desktop scene.
In a first aspect, an embodiment of the present application provides a method for processing a writing track based on a cloud desktop, including:
responding to a first erasing request aiming at a writing track displayed by a cloud desktop client, and determining a first erasing track of the writing track;
sampling track points of the first erasing track to obtain first sampling track points;
and generating a replacement track of the first erasing track based on the first sampling track point, and displaying the replacement track at the cloud desktop client.
In a possible implementation manner, sampling the trace point of the first erase trace to obtain a first sampled trace point includes:
sampling the variable track points between the starting point and the end point of the track segment of the first erasing track to obtain first sampling track points; the variable track points are track points of which the input data are changed;
wherein the input data comprises at least one of: the coordinates of the input track points, the pressure values, the inclination and the rotation degree of the track input.
In a possible implementation, sampling the variable trace point to obtain a first sampled trace point includes:
based on the input data of the variable track points input in the first time range, the variable track points are sampled to obtain first sampling track points.
In a possible implementation manner, based on input data of a variable trace point input in a first time range, sampling the variable trace point to obtain a first sampling trace point, including:
determining data offset of a plurality of variable track points based on input data of the variable track points input in a first time range;
based on a plurality of data offsets, sampling is carried out on the variable track points to obtain first sampling track points.
In one possible implementation manner, determining data offsets of a plurality of variable trace points based on input data of the variable trace points input in a first time range includes:
determining an average coordinate based on the coordinates of a plurality of variable track points input within a first time range under the condition that the input data is the coordinates of the input track points;
and determining the data offset of the plurality of variable track points based on the coordinates and the average coordinates of the plurality of variable track points.
In a possible implementation manner, sampling the variable trace point based on a plurality of data offsets to obtain a first sampling trace point, includes:
and determining the variable track point with the maximum data offset in the plurality of variable track points, and determining the variable track points except the variable track point with the maximum data offset as first sampling track points.
In a possible implementation manner, sampling the variable trace point based on a plurality of data offsets to obtain a first sampling trace point, includes:
and determining the change track point with the minimum data offset in the plurality of change track points as a first sampling track point.
In one possible implementation, the method further includes:
responding to a second erasing request aiming at the writing track, and obtaining a second sampling track point based on input data of the variable track point input in a second time range; the second time range is greater than or less than the first time range;
and generating a replacing track of the second erasing track based on the second sampling track point, and displaying the replacing track at the cloud desktop client.
In a possible implementation manner, sampling the trace point of the first erase trace to obtain a first sampled trace point includes:
in response to selection operation of one sampling mode of at least two sampling modes which are configured in advance, sampling track points of a first erasing track based on the sampling mode corresponding to the selection operation to obtain first sampling track points; at least two sampling modes are associated with the time range for acquiring the variable trace points.
In a second aspect, an embodiment of the present application provides a processing apparatus for a writing track based on a cloud desktop, including:
the determining module is used for responding to a first erasing request aiming at the writing track displayed by the cloud desktop client and determining a first erasing track of the writing track;
the sampling module is used for sampling track points of the first erasing track to obtain first sampling track points;
and the replacing module is used for generating a replacing track of the first erasing track based on the first sampling track point and displaying the replacing track at the cloud desktop client.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory, where the processor, when executing the computer program, implements the method provided in any embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method provided in any embodiment of the present application.
Compared with the prior art, the method has the following advantages:
according to the processing method and device for the writing track based on the cloud desktop and the electronic equipment, a first erasing track of the writing track is determined in response to a first erasing request aiming at the writing track displayed by a cloud desktop client; sampling track points of the first erasing track to obtain first sampling track points; and generating a replacement track of the first erasing track based on the first sampling track point, and displaying the replacement track at the cloud desktop client. In the embodiment of the application, the erased writing track is sampled to generate the replacing track, so that the problem of distortion caused by cross-network transmission of the writing track is solved, and the writing track meeting the user requirements is restored in a cloud desktop scene.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
Fig. 1 is a schematic diagram of a system architecture of a processing method for a writing trace based on a cloud desktop according to an embodiment of the present application;
fig. 2 is a flowchart of a processing method for a writing track based on a cloud desktop according to an embodiment of the present application;
fig. 3 is a schematic diagram of a processing method of a writing track based on a cloud desktop according to an embodiment of the present application;
fig. 4 is a schematic diagram of a processing device for a cloud desktop-based writing track according to an embodiment of the present application;
FIG. 5 is a block diagram of an electronic device used to implement embodiments of the present application.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
For the convenience of understanding of the technical solutions of the embodiments of the present application, the following related technologies of the embodiments of the present application are described below, and the following related technologies may be optionally combined with the technical solutions of the embodiments of the present application as alternatives, and all of them belong to the protection scope of the embodiments of the present application.
In order to more clearly show the processing method of the writing track based on the cloud desktop provided in the embodiment of the present application, an application scenario that can be used to implement the method is first introduced.
The technical scheme can be applied to scenes in which writing tracks need to be converted into electronic data to be displayed on a cloud desktop client, such as signing files, making notes, designing drawings and the like.
Fig. 1 is a schematic diagram of a system architecture of a processing method for a writing trace based on a cloud desktop according to an embodiment of the present application; as shown in fig. 1, a cloud desktop client is installed on a user terminal, the cloud desktop is located on a cloud server, the user terminal acquires a writing track of a user and sends the writing track to the cloud server, and the cloud server caches the writing track data and displays the writing track data through the cloud desktop client. And if the user terminal receives an erasing request of the user, acquiring data of an erasing track from the cached writing track data, sampling track points of the erasing track again, generating a replacing track, and displaying the replacing track on the cloud desktop client again.
An embodiment of the present application provides a method for processing a writing track based on a cloud desktop, and fig. 2 is a flowchart of the method for processing a writing track based on a cloud desktop according to an embodiment of the present application, where the method may be applied to a device for processing a writing track based on a cloud desktop, and the device may be deployed in a user terminal, a server, or other processing devices. In some possible implementations, the method may also be implemented by a processor calling computer readable instructions stored in a memory. As shown in fig. 2, the method includes:
step S201, responding to a first erasing request aiming at a writing track displayed by a cloud desktop client, and determining a first erasing track of the writing track;
in the embodiment of the application, a cloud server is used as an execution subject for introduction. The cloud server receives a writing track sent by the user terminal, wherein the writing track comprises coordinates, pressure values, gradient and rotation degree of track input and the like of each track point. The writing track may be a track generated by moving a pen tip of an electronic pen, other input devices, a finger, and the like on a screen or a panel of the user terminal. After receiving the writing track, the cloud server can cache the writing track and display the writing track at the cloud desktop client.
Since the writing track is sent from the operating system of the user terminal to the operating system of the cloud desktop client, and since the cross-network transmission occurs, the interval of the sampling points of the writing track changes, the operating system of the cloud desktop client performs optimization processing, such as smoothing processing, on the writing track. Therefore, the writing track may be distorted, the writing track displayed by the cloud desktop client may have a different effect from the actual writing track of the user, and the user's requirement may not be met. The user may erase the track by an erase request. The server receives a request for erasing the writing track sent by the user terminal, and determines a first erasing track of the writing track corresponding to the erasing request, wherein the first erasing track can be all or part of the writing track.
Step S202, sampling track points of the first erasing track to obtain first sampling track points;
the cloud server obtains the first erasing track from the cache, samples track points of the first erasing track and obtains first sampling track points.
And S203, generating a replacement track of the first erasing track based on the first sampling track point, and displaying the replacement track at the cloud desktop client.
And the cloud server regenerates the track based on the first sampling track point, replaces the erased track as a replacement track, and displays the replaced track to the user through the cloud desktop client. In this embodiment, for the display of the writing track, the specific display mode may be static display or dynamic display. Wherein, the static display can directly display all the contents of the track; the dynamic presentation may be a process of presenting track points of the written track in a dynamic playback manner to gradually generate the track.
According to the processing method of the writing track based on the cloud desktop, the erased writing track is sampled to generate the replacement track, so that the problem of distortion caused by cross-network transmission of the writing track is solved, and the writing track meeting the user requirements is restored in the cloud desktop scene.
There are various implementation manners for sampling the trace points of the erase trace, which are specifically shown in the following embodiments:
in a possible implementation manner, step S203, sampling the trace points of the first erase trace to obtain first sampling trace points, includes:
sampling the variable track points between the starting point and the end point of the track segment of the first erasing track to obtain first sampling track points; the variable track points are track points of which the input data are changed;
wherein the input data comprises at least one of: the coordinates of the input track points, the pressure values, the inclination and the rotation degree of the track input.
Wherein, first erasure orbit can include a plurality of orbit fragments, and take the electronic pen as an example, the starting point and the terminal point of orbit fragment can be the orbit point that lifts, falls of corresponding electronic pen nib respectively. When the trace point sampling is carried out, in order to ensure the similarity of the alternative handwriting and the original handwriting to a certain extent, the raised and fallen trace points of the pen point are not sampled, and the trace points between the starting point and the end point of the trace segment are sampled, namely the trace points with changed input data. The input data includes at least one of: the coordinates of the input track points, the pressure values, the inclination and the rotation degree of the track input and the like. The coordinates of the input track points are position coordinates of the track points in the screen or the panel; the pressure value is the pressure acted on the pen point corresponding to the track point. The slope of the trace input may be the degree of slope of the pen tip corresponding to the trace point. The degree of rotation of the trace input may be the degree of rotation of the pen tip corresponding to the trace point.
The specific implementation manner of sampling the variable trace points is as follows:
in a possible implementation, sampling the variable trace point to obtain a first sampled trace point includes:
based on the input data of the variable track points input in the first time range, the variable track points are sampled to obtain first sampling track points.
In practical application, the first time range can be configured according to specific needs, the first time range corresponds to the number of the variable track points, and the longer the first time range is, the more the number of the input variable track points is. According to the input data of the variable track points: and sampling at least one of the coordinate of the input track point, the pressure value, the inclination and the rotation degree of the track input, and the like to obtain a first sampling track point.
The specific implementation manner of sampling the input data based on the variable trace points is as follows:
in a possible implementation manner, based on input data of a variable trace point input in a first time range, sampling the variable trace point to obtain a first sampling trace point, including:
determining data offset of a plurality of variable track points based on input data of the variable track points input in a first time range;
based on a plurality of data offsets, sampling is carried out on the variable track points to obtain first sampling track points.
In practical application, because a plurality of change track points are input in the first time range, the track points are sampled based on the input data of the change track points, the data offset of each change track point is calculated according to the input data of each change track point, and the change track points are sampled according to the numerical value of the data offset of each change track point to obtain a first sampling track point. The data offset is used for representing the data offset degree of the current change locus point compared with the standard value. The standard value may be calculated from input data that inputs a plurality of change trace points within a first time range.
The specific way of calculating the data offset of the change track point is shown in the following embodiment:
in one possible implementation manner, determining data offsets of a plurality of variable trace points based on input data of the variable trace points input in a first time range includes:
determining an average coordinate based on the coordinates of a plurality of variable track points input within a first time range under the condition that the input data is the coordinates of the input track points;
and determining the data offset of the plurality of variable track points based on the coordinates and the average coordinates of the plurality of variable track points.
In practical application, taking the input data as the coordinates of the track points as an example, calculating the average value of the coordinates of the multiple variable track points input in the first time range, namely the average coordinate, calculating the distance between the coordinates of the variable track points and the average coordinate for each variable track point, taking the distance as the data offset of the variable track points, and obtaining the data offset of the multiple variable track points by the same principle.
Wherein, based on a plurality of data offsets, sampling is carried out to the change track point, there can be a plurality of implementation modes, see the following embodiment specifically:
in a possible implementation manner, sampling the variable trace point based on a plurality of data offsets to obtain a first sampling trace point, includes:
and determining the variable track point with the maximum data offset in the plurality of variable track points, and determining the variable track points except the variable track point with the maximum data offset as first sampling track points.
In practical application, after data offsets of a plurality of variable track points input in a first time range are determined, the data offsets are sequenced, the variable track point with the largest data offset can be obtained, the variable track point is discarded, and the variable track points except the variable track point in the plurality of variable track points input in the first time range are determined as a first sampling track point. Therefore, a plurality of first sampling track points can be obtained based on a plurality of variable track points input in the first time range, so that the sampling times can be reduced, and the sampling efficiency is improved.
In a possible implementation manner, sampling the variable trace point based on a plurality of data offsets to obtain a first sampling trace point, includes:
and determining the change track point with the minimum data offset in the plurality of change track points as a first sampling track point.
In practical application, in addition to discarding the changed trace point with the largest data offset, the changed trace point with the smallest data offset can be selected as the first sampling trace point. Therefore, more accurate data can be obtained, and the generated replacement track has higher similarity with the original writing track based on the first sampling track point obtained in the mode.
In the actual application process, if the generated replacement track cannot meet the user requirement, the track can be erased again according to the erasing request, and a new replacement track is generated again through other sampling manners, which is specifically shown in the following embodiment:
in one possible implementation, the method further includes:
responding to a second erasing request aiming at the writing track, and obtaining a second sampling track point based on input data of the variable track point input in a second time range; the second time range is greater than or less than the first time range;
and generating a replacing track of the second erasing track based on the second sampling track point, and displaying the replacing track at the cloud desktop client.
In practical application, if the generated replacement track cannot meet the user requirement, the user erases the replacement track again, and sampling is performed again in response to a second erasing request for the writing track, and a new replacement track is generated.
Optionally, the second time range is greater than the first time range. Determining data offset of a plurality of variable track points based on input data of the variable track points input in a second time range; based on a plurality of data offsets, the variable track points are sampled to obtain second sampling track points, and a replacement track of a second erasing track is generated based on the second sampling track points. Because the second time range is greater than the first time range, the number of the variable track points obtained based on the second time range is more, if the sampling mode same as that of the first sampling track points is adopted, for example, the variable track points with the maximum data offset are discarded, and the second sampling track points are obtained, more variable track points can be reserved, so that the similarity between the obtained new replacement track and the original writing track is higher.
Optionally, the second time range is smaller than the first time range. Determining data offset of a plurality of variable track points based on input data of the variable track points input in a second time range; based on a plurality of data offsets, the variable track points are sampled to obtain second sampling track points, and a replacement track of a second erasing track is generated based on the second sampling track points. Because the second time range is smaller than the first time range, the number of the variable track points obtained based on the second time range is less, if the sampling mode same as that of the first sampling track points is adopted, for example, the variable track points with the maximum data offset are discarded, and the second sampling track points are obtained, the less variable track points are reserved, so that the obtained new replacement track is smoother compared with the original writing track, but the similarity of the obtained new replacement track and the original writing track is reduced.
In a possible implementation manner, step S203, sampling the trace points of the first erase trace to obtain first sampling trace points, includes:
in response to selection operation of one sampling mode of at least two sampling modes which are configured in advance, sampling track points of a first erasing track based on the sampling mode corresponding to the selection operation to obtain first sampling track points; at least two sampling modes are associated with the time range for acquiring the variable trace points.
In practical application, at least two sampling modes can be configured for users to select according to different time ranges for acquiring the variable track points.
In one example, three basic styles are provided for user selection: accurate, moderate and convenient.
1. The sampling mode of the precise pattern is as follows: acquiring the input variable track points within 0.08 second every time to obtain 8 variable track points, and discarding the data with the largest offset to obtain 7 sampling track points;
2. moderate style sampling: acquiring the input variable track points within 0.05 second each time to obtain 5 variable track points, and discarding the data with the largest offset to obtain 4 sampling track points;
3. sampling mode of convenient pattern: acquiring the input variable track points within 0.03 second each time to obtain 3 variable track points, and discarding the data with the largest offset to obtain 2 sampling track points;
the intervals of the sampling track points after cross-network transmission often change, so that the final writing track shakes and is not smooth enough. If one point is discarded every few points, the physical distance of the input track point is increased, and finally, under the processing of an operating system of the cloud desktop client, the handwriting is more smooth, the more discarded the handwriting is, the smoother the handwriting is, and the more the handwriting deviates from the real handwriting. Therefore, for the three sampling modes, sampling is carried out through a precise pattern, and the similarity between the obtained track and the original writing track is the highest finally; and sampling is carried out through a convenient style, and the similarity of the obtained track and the original writing track is the lowest, but the obtained track is the smoothest.
In order to more clearly present the technical idea of the present application, a specific application example is provided below. Fig. 3 is a schematic diagram of a processing method of a writing trace based on a cloud desktop according to an embodiment of the present application. In the implementation, a cloud desktop client or a cloud application client is installed on the user terminal; the cloud desktop or the cloud application is located on the cloud server and provides writing track service through the cloud desktop client. The specific implementation process is as follows:
1. starting handwriting recording according to triggering operation of a user on a button (or providing a suspension button in a cloud application scene) on a toolbar of a cloud desktop window aiming at a cloud desktop client;
2. acquiring a writing track of a user for signing or drawing on a terminal screen through a handwriting pen;
3. through cloud desktop client, catch operating system's Pointer event, acquire the input data of each track point of writing the orbit, include: coordinates, pressure values, inclination, rotation degree and the like, and can also comprise state data of lifting, falling and the like;
4. the information is transmitted to an Agent component Agent in the cloud desktop (or cloud application) through a protocol channel;
5. and the Agent component Agent injects input data into a pointer event of an operating system running in the cloud desktop. And put the stylus Pen input data into "record queue" (Pen points inject queue);
6. the handwriting effect can generate certain distortion after crossing the network, and if a user is not satisfied, the handwriting effect can be erased, and the trace points are sampled and redrawn according to the style selected by the user in response to the triggering operation of a selection button (or a suspension button provided in a cloud application scene) of the user on a toolbar of a cloud desktop window;
7. when the handwriting is redrawn, after secondary sampling of different styles is carried out according to the cached data, injecting the data into an operating system of the cloud desktop client again, generating replacement tracks with different characteristics by combining new data through a handwriting algorithm of the operating system, and carrying out handwriting playback;
8. and continuously erasing the redraws according to the erasing request of the user until the user selects satisfactory handwriting.
Corresponding to the application scenario and the method of the method provided by the embodiment of the application, the embodiment of the application further provides a processing device of the writing track based on the cloud desktop. As shown in fig. 4, the processing device for the cloud desktop-based writing track may include:
the determining module 401 is configured to determine, in response to a first erasing request for a writing track displayed by a cloud desktop client, a first erasing track of the writing track;
the sampling module 402 is configured to sample track points of the first erasure track to obtain first sampling track points;
and a replacing module 403, configured to generate a replacing track of the first erasing track based on the first sampling track point, and display the replacing track at the cloud desktop client.
The processing apparatus of writing orbit based on cloud desktop that this application embodiment provided generates the replacement orbit through sampling the writing orbit of erasing to solve the distortion problem that writing orbit cross-network transmission caused, restore the writing orbit that satisfies the user's demand under the realization is in the cloud desktop scene.
In one possible implementation, the sampling module 402 is configured to:
sampling the variable track points between the starting point and the end point of the track segment of the first erasing track to obtain first sampling track points; the variable track points are track points of which the input data are changed;
wherein the input data comprises at least one of: the coordinates of the input track points, the pressure values, the inclination and the rotation degree of the track input.
In one possible implementation, the sampling module 402 is configured to:
based on the input data of the variable track points input in the first time range, the variable track points are sampled to obtain first sampling track points.
In one possible implementation, the sampling module 402 includes a determining unit and a sampling unit;
the determining unit is used for determining data offset of a plurality of variable track points based on input data of the variable track points input in a first time range;
the sampling unit is used for sampling the variable track points based on a plurality of data offsets to obtain first sampling track points.
In a possible implementation, the determining unit is specifically configured to:
determining an average coordinate based on the coordinates of a plurality of variable track points input within a first time range under the condition that the input data is the coordinates of the input track points;
and determining the data offset of the plurality of variable track points based on the coordinates and the average coordinates of the plurality of variable track points.
In a possible implementation manner, the sampling unit is specifically configured to:
and determining the variable track point with the maximum data offset in the plurality of variable track points, and determining the variable track points except the variable track point with the maximum data offset as first sampling track points.
In a possible implementation, the sampling unit is specifically configured to:
and determining the change track point with the minimum data offset in the plurality of change track points as a first sampling track point.
In one possible implementation manner, the apparatus further includes a generation module configured to:
responding to a second erasing request aiming at the writing track, and obtaining a second sampling track point based on input data of the variable track point input in a second time range; the second time range is greater than or less than the first time range;
and generating a replacing track of the second erasing track based on the second sampling track point, and displaying the replacing track at the cloud desktop client.
In one possible implementation, the sampling module 402 is configured to:
in response to selection operation of one sampling mode of at least two sampling modes which are configured in advance, sampling track points of a first erasing track based on the sampling mode corresponding to the selection operation to obtain first sampling track points; at least two sampling modes are associated with the time range for acquiring the variable trace points.
The functions of each module in each device in the embodiment of the present application can be referred to the corresponding description in the above method, and have corresponding beneficial effects, which are not described herein again.
FIG. 5 is a block diagram of an electronic device used to implement embodiments of the present application. As shown in fig. 5, the electronic apparatus includes: a memory 510 and a processor 520, the memory 510 having stored therein computer programs that are executable on the processor 520. The processor 520, when executing the computer program, implements the method in the above embodiments. The number of the memory 510 and the processor 520 may be one or more.
The electronic device further includes:
the communication interface 530 is used for communicating with an external device to perform data interactive transmission.
If the memory 510, the processor 520, and the communication interface 530 are implemented independently, the memory 510, the processor 520, and the communication interface 530 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Optionally, in an implementation, if the memory 510, the processor 520, and the communication interface 530 are integrated on a chip, the memory 510, the processor 520, and the communication interface 530 may complete communication with each other through an internal interface.
Embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the method provided in the embodiments of the present application.
The embodiment of the present application further provides a chip, where the chip includes a processor, and is configured to call and execute instructions stored in a memory from the memory, so that a communication device on which the chip is installed executes the method provided in the embodiment of the present application.
An embodiment of the present application further provides a chip, including: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the embodiment of the application.
It should be understood that the processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an Advanced reduced instruction set machine (ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can include Random Access Memory (RAM), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available. For example, Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Memory bus RAM (DR RAM).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the present application are generated in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes other implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the method of the above embodiments may be implemented by hardware that is configured to be instructed to perform the relevant steps by a program, which may be stored in a computer-readable storage medium, and which, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present application, and these should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A processing method of a writing track based on a cloud desktop is characterized by comprising the following steps:
responding to a first erasing request aiming at a writing track displayed by a cloud desktop client, and determining a first erasing track of the writing track;
sampling track points of the first erasing track to obtain first sampling track points;
and generating a replacement track of the first erasing track based on the first sampling track point, and displaying the replacement track at the cloud desktop client.
2. The method of claim 1, wherein sampling the trace points of the first erase trace to obtain first sampled trace points comprises:
sampling a variable track point between the starting point and the end point of the track segment of the first erasing track to obtain a first sampling track point; the variable track points are track points with changed input data;
wherein the input data comprises at least one of: the coordinates of the input track point, the pressure value, the inclination and the rotation degree of the track input.
3. The method of claim 2, wherein sampling the varying trace points to obtain first sampled trace points comprises:
based on the input data of the variable track points input in the first time range, the variable track points are sampled to obtain first sampling track points.
4. The method according to claim 3, wherein sampling the variable trace points based on the input data of the variable trace points input in the first time range to obtain first sampled trace points comprises:
determining data offset of the plurality of variable track points based on input data of the variable track points input in a first time range;
based on a plurality of data offsets, sampling is carried out on the variable track points to obtain first sampling track points.
5. The method of claim 4, wherein determining the data offset for the plurality of varying trace points based on the input data for the varying trace points input over the first time range comprises:
determining an average coordinate based on the coordinates of a plurality of variable track points input within a first time range under the condition that the input data is the coordinates of the input track points;
and determining the data offset of the plurality of variable track points based on the coordinates of the plurality of variable track points and the average coordinates.
6. The method of claim 4, wherein sampling the varying trace points based on the plurality of data offsets to obtain a first sampled trace point comprises:
and determining the variable track point with the maximum data offset in the plurality of variable track points, and determining the variable track points except the variable track point with the maximum data offset as the first sampling track point.
7. The method of claim 4, wherein sampling the varying trace points based on the plurality of data offsets to obtain a first sampled trace point comprises:
and determining the change track point with the minimum data offset in the plurality of change track points as the first sampling track point.
8. The method of claim 3, further comprising:
responding to a second erasing request aiming at the writing track, and obtaining a second sampling track point based on the input data of the changing track point input in a second time range; the second time range is greater than or less than the first time range;
and generating a replacing track of the second erasing track based on the second sampling track point, and displaying the replacing track at the cloud desktop client.
9. The method of claim 2, wherein sampling the trace points of the first erase trace to obtain first sampled trace points comprises:
responding to selection operation of one sampling mode in at least two sampling modes which are configured in advance, and sampling track points of the first erasing track based on the sampling mode corresponding to the selection operation to obtain first sampling track points; the at least two sampling modes are associated with a time range for acquiring the change track points.
10. An apparatus for processing a writing trace based on a cloud desktop, the apparatus comprising:
the determining module is used for responding to a first erasing request aiming at a writing track displayed by a cloud desktop client and determining a first erasing track of the writing track;
the sampling module is used for sampling the track points of the first erasing track to obtain first sampling track points;
and the replacing module is used for generating a replacing track of the first erasing track based on the first sampling track point and displaying the replacing track at the cloud desktop client.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of claims 1-9 when executing the computer program.
12. A computer-readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-9.
CN202210547626.9A 2022-05-18 2022-05-18 Writing track processing method and device based on cloud desktop and electronic equipment Pending CN114860108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210547626.9A CN114860108A (en) 2022-05-18 2022-05-18 Writing track processing method and device based on cloud desktop and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210547626.9A CN114860108A (en) 2022-05-18 2022-05-18 Writing track processing method and device based on cloud desktop and electronic equipment

Publications (1)

Publication Number Publication Date
CN114860108A true CN114860108A (en) 2022-08-05

Family

ID=82638738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210547626.9A Pending CN114860108A (en) 2022-05-18 2022-05-18 Writing track processing method and device based on cloud desktop and electronic equipment

Country Status (1)

Country Link
CN (1) CN114860108A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040383A1 (en) * 2022-08-22 2024-02-29 广州视源电子科技股份有限公司 Writing display method, writing response method and apparatus, terminal device, and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040383A1 (en) * 2022-08-22 2024-02-29 广州视源电子科技股份有限公司 Writing display method, writing response method and apparatus, terminal device, and server

Similar Documents

Publication Publication Date Title
CN106919333B (en) Method and device for recording writing content on electronic writing board
US9207858B2 (en) Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
US9645922B2 (en) Garbage collection in SSD drives
CN105068727A (en) Realization method and device for drawing tool
JP2007317159A (en) Input apparatus of electronic device and input method thereof
KR20100023914A (en) Method, apparatus and computer program product for providing an object selection mechanism for display devices
CN112506413B (en) Touch point prediction method and device, terminal equipment and computer readable storage medium
AU2017232150A1 (en) Calculating device, graph display method of calculating device, and storage medium retaining graph display program
CN112114734B (en) Online document display method, device, terminal and storage medium
US20190324621A1 (en) System and Methods for Utilizing Multi-Finger Touch Capability to Efficiently Perform Content Editing on a Computing Device
CN107798717A (en) Electronic brush writing method, device, computer equipment and storage medium
CN114860108A (en) Writing track processing method and device based on cloud desktop and electronic equipment
CN112596661A (en) Writing track processing method and device and interactive panel
CN112835455A (en) Method and equipment for predicting drawing point of stylus pen
WO2023020047A1 (en) Electronic handwriting writing and erasing method, storage medium, and device
CN112783346A (en) Handwriting data processing method and system, computer equipment and storage medium
CN114879869A (en) Note erasing method, electronic device and computer storage medium
US9594798B2 (en) File system with per-file selectable integrity
CN110321321A (en) Network control techology snapshot reading/writing method, device, equipment and storage medium
CN112860112B (en) Handwriting erasing method and device of electronic whiteboard, electronic equipment and storage medium
CN111125564A (en) Thermodynamic diagram generation method and device, computer equipment and storage medium
JP2016122406A (en) Input method, input device, and program
US20170285902A1 (en) Modifying Settings of an Electronic Test or Measurement Instrument
CN106648751B (en) Method for rapidly upgrading embedded software and embedded equipment
CN113467671A (en) Text selection method and device, terminal equipment and readable storage medium

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