CN108733293A - writing track processing method and device - Google Patents

writing track processing method and device Download PDF

Info

Publication number
CN108733293A
CN108733293A CN201810596701.4A CN201810596701A CN108733293A CN 108733293 A CN108733293 A CN 108733293A CN 201810596701 A CN201810596701 A CN 201810596701A CN 108733293 A CN108733293 A CN 108733293A
Authority
CN
China
Prior art keywords
point
handwriting trace
erasing
path
painting canvas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810596701.4A
Other languages
Chinese (zh)
Other versions
CN108733293B (en
Inventor
朱志豪
刘少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810596701.4A priority Critical patent/CN108733293B/en
Publication of CN108733293A publication Critical patent/CN108733293A/en
Application granted granted Critical
Publication of CN108733293B publication Critical patent/CN108733293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

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

Abstract

The application provides a writing track processing method and device, wherein an erasing area input by a user in a canvas displayed on a browser is obtained; further, sequentially determining whether each point on the writing track in the canvas is positioned in the erasing area; further, removing the points in the erasing area from the writing track displayed in the canvas, and deleting the points from the writing path corresponding to the writing track stored in the storage unit, so that each segment of sub-writing track obtained after erasing in the canvas respectively corresponds to one segment of sub-writing path; and further, receiving the dragging operation of the user on any point on the canvas, and if the coordinate information of any point is located on any segment of the erased sub-writing path, dragging the sub-writing path corresponding to the sub-writing path. The function of dragging any sub-writing tracks formed after erasing respectively based on the browser is achieved.

Description

Handwriting trace processing method and processing device
Technical field
This application involves field of computer technology more particularly to a kind of handwriting trace processing method and processing devices.
Background technology
As user is had become in terminal device often to being carried out the increase of writing demand, tablet function based on terminal device The product interactive function seen.Under normal conditions, user can write on the painting canvas of clipboard, form one or more and write rail Mark;The handwriting trace write on painting canvas can also be wiped.
In the related technology based on browser in terminal device, the application programming interface provided by browser (Application Programming Interface, API) can realize the erasing of writing and vision level.With user It is further increased to writing demand, proposes to need to realize to being formed by multiple sub- handwriting traces point after erasing based on browser The function of not pulled.But in the related technology only from vision level erasing be formed by multiple sub- handwriting traces can not respectively into Row pulls.
Invention content
The application provides a kind of handwriting trace processing method and processing device, realizes the handwriting trace segmentation work(based on browser Can, improve user experience.
In a first aspect, the application provides a kind of handwriting trace processing method, including:
Obtain the erasing region inputted in the painting canvas that user shows on a web browser;
Determine whether each point on the handwriting trace in the painting canvas is located in the erasing region successively;
Point in the erasing region is removed from the handwriting trace shown in the painting canvas, and from storage unit Middle the stored handwriting trace is deleted in corresponding writing path, so that the every cross-talk book obtained after being wiped in the painting canvas It writes track and corresponds to cross-talk writing path respectively;Wherein, it includes that write path corresponding for the philosophical works that every section of philosophical works, which writes path, Coordinate information of each point in the painting canvas on sub- handwriting trace;
Drag operation of the user to arbitrary point on the painting canvas is received, is wiped if the coordinate information of the arbitrary point is located at Any one section of philosophical works after removing is write on path, then writing the corresponding sub- handwriting trace in path to the philosophical works carries out dragging behaviour Make.
In one possible implementation, described to obtain the scratching area inputted in the painting canvas that user shows on a web browser Domain, including:
Obtain the erasing track that the user inputs in the painting canvas;
The corresponding erasing region in the painting canvas is determined according to the erasing track.
In one possible implementation, described that the corresponding erasing in the painting canvas is determined according to the erasing track Region, including:
According to coordinate information of each point in the painting canvas in the erasing track, in each pixel of virtual canvas really Fixed pixel corresponding with the erasing track, the virtual canvas is identical as the canvas size shown on the browser, and The coordinate information of each pixel stores in the memory unit in the virtual canvas;
To pixel configuration image information corresponding with the erasing track in the virtual canvas and it is stored in described deposit In storage unit, wherein region corresponding with the configuration pixel of described image information is in the painting canvas shown on the browser The erasing region, described image information include at least one of color value and transparence value.
In one possible implementation, whether each point determined successively on the handwriting trace in the painting canvas In the erasing region, including:
According to coordinate information in the painting canvas that each point is shown on the browser in the handwriting trace and described The coordinate information of each pixel in virtual canvas determines pixel corresponding with the handwriting trace in the virtual canvas;
If there are described image information for the corresponding pixel of the handwriting trace, it is determined that the pixel is located at the wiping Except in region.
In one possible implementation, described to obtain the erasing rail inputted in the painting canvas that user shows on a web browser Mark, including:
Receive the startup erasing instruction of user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to The left mouse button bounces, and the track that each point of the mouse movement is formed is the erasing track.
In one possible implementation, whether each point determined successively on the handwriting trace in the painting canvas Before in the erasing region, further include:
Instruction is write in the startup for receiving user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to The left mouse button bounces, and the track that each point of the mouse movement is formed is the handwriting trace.
In one possible implementation, the method further includes:
Link process, the Bezier of acquisition are carried out using secondary Bezier successively to each point of mouse movement The key point of curve is the key point in the handwriting trace;
The corresponding writing path of the handwriting trace is stored in the memory unit;Wherein, the writing path includes institute State the coordinate information of the key point in handwriting trace.
In one possible implementation, whether each point determined successively on the handwriting trace in the painting canvas In the erasing region, including:
Sampled value is determined according to the distance of the key point in the handwriting trace;
Institute is determined according to key point, the sampled value and the secondary Bezier formula in the handwriting trace State the sampled point on handwriting trace;
Determine whether each sampled point on the handwriting trace is located in the erasing region successively.
In one possible implementation, the point by the erasing region is shown from the painting canvas It is removed in handwriting trace, including:
Call removings application programming interface API in browser by positioned at the key point wiped in region from institute It states and is removed in the handwriting trace shown in painting canvas, to form at least two cross-talk handwriting traces.
In one possible implementation, the institute point in the erasing region stored from storage unit It states and is deleted in the corresponding writing path of handwriting trace, including:
It is determined in the key point of the handwriting trace and wipes critical the first critical point in region with described and/or second face Boundary's point, first critical point along the handwriting trace direction next key point in the erasing region, described second Critical point along the handwriting trace direction a upper key point in the erasing region;
Increase first critical point the first control of secondary Bezier according to secondary Bezier partitioning algorithm System point and terminal increase by second critical point the second control point and the starting point of secondary Bezier, and from the writing Track is corresponding to write the coordinate information that the key point being located in the erasing region is deleted in path, to form at least two cross-talks Write path.
It is in one possible implementation, described to receive drag operation of the user to arbitrary point on the painting canvas, If any one section of philosophical works that the coordinate information of the arbitrary point is located at after erasing is write on path, path is write to the philosophical works Corresponding sub- handwriting trace carries out drag operation, including:
Push of the user to left mouse button is listened to, and determines the position of the push in the painting canvas Coordinate information is located at any one cross-talk stored in the storage unit and writes on path, then starts the distance for obtaining mouse movement It is bounced until listening to the left mouse button;
The coordinate information of each key point and mouse movement on path are write according to the philosophical works stored in storage unit Distance, determine that the philosophical works writes terminating coordinates information of each key point on the painting canvas on path;
Show that the philosophical works writes the corresponding sub- handwriting trace in path on the painting canvas according to the terminating coordinates information.
In one possible implementation, described that the son is shown on the painting canvas according to the terminating coordinates information After writing the corresponding sub- handwriting trace in path, further include:
The coordinate information that the philosophical works stored in storage unit is write to each key point on path is revised as the termination seat Mark information.
Second aspect, the application provide a kind of handwriting trace processing unit, including:
First acquisition module, for obtaining the erasing region inputted in the painting canvas that user shows on a web browser;
Determining module, for determining whether each point on the handwriting trace in the painting canvas is located at the scratching area successively In domain;
Module is removed, for the point in the erasing region will to be located at from the handwriting trace shown in the painting canvas It removes, and is deleted from the corresponding writing path of the handwriting trace stored in storage unit, so as to be wiped in the painting canvas The every cross-talk handwriting trace obtained afterwards corresponds to a cross-talk and writes path respectively;Wherein, it includes described that every section of philosophical works, which writes path, The philosophical works writes coordinate information of each point in the painting canvas on the corresponding sub- handwriting trace in path;
Dragging module, the drag operation for receiving the user to arbitrary point on the painting canvas, if the arbitrary point Any one section of philosophical works that coordinate information is located at after erasing is write on path, then writes the corresponding philosophical works in path to the philosophical works and write rail Mark carries out drag operation.
In one possible implementation, first acquisition module includes:
First acquisition unit, the erasing track inputted in the painting canvas for obtaining the user;
First determination unit, for determining the corresponding erasing region in the painting canvas according to the erasing track.
In one possible implementation, first determination unit is specifically used for:
According to coordinate information of each point in the painting canvas in the erasing track, in each pixel of virtual canvas really Fixed pixel corresponding with the erasing track, the virtual canvas is identical as the canvas size shown on the browser, and The coordinate information of each pixel stores in the memory unit in the virtual canvas;
To pixel configuration image information corresponding with the erasing track in the virtual canvas and it is stored in described deposit In storage unit, wherein region corresponding with the configuration pixel of described image information is in the painting canvas shown on the browser The erasing region, described image information include at least one of color value and transparence value.
In one possible implementation, the determining module is specifically used for:
According to coordinate information in the painting canvas that each point is shown on the browser in the handwriting trace and described The coordinate information of each pixel in virtual canvas determines pixel corresponding with the handwriting trace in the virtual canvas;
If there are described image information for the corresponding pixel of the handwriting trace, it is determined that the pixel is located at the wiping Except in region.
In one possible implementation, the first acquisition unit is specifically used for:
Receive the startup erasing instruction of user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to The left mouse button bounces, and the track that each point of the mouse movement is formed is the erasing track.
In one possible implementation, described device further includes:
Instruction is write in receiving module, the startup for receiving user;
Second acquisition module starts after listening to user to the push of left mouse button and obtains mouse movement Each point until listening to the left mouse button and bouncing, the track that each point of the mouse movement is formed is the writing rail Mark.
In one possible implementation, described device further includes:
Processing module, each point for being moved to the mouse are carried out using secondary Bezier at line successively Reason, the key point of the Bezier of acquisition are the key point in the handwriting trace;
Memory module, for storing the corresponding writing path of the handwriting trace in the memory unit;Wherein, the writing Path includes the coordinate information of the key point in the handwriting trace.
In one possible implementation, the determining module, including:
Second determination unit, for determining sampled value according to the distance of the key point in the handwriting trace;
Third determination unit, for according to key point, the sampled value and the secondary shellfish in the handwriting trace Sai Er curve equations determine the sampled point on the handwriting trace;
4th determination unit, for determining whether each sampled point on the handwriting trace is located at the erasing region successively It is interior.
In one possible implementation, the removal module is specifically used for:
Call removings application programming interface API in browser by positioned at the key point wiped in region from institute It states and is removed in the handwriting trace shown in painting canvas, to form at least two cross-talk handwriting traces.
In one possible implementation, the removal module is specifically used for:
It is determined in the key point of the handwriting trace and wipes critical the first critical point in region with described and/or second face Boundary's point, first critical point along the handwriting trace direction next key point in the erasing region, described second Critical point along the handwriting trace direction a upper key point in the erasing region;
Increase first critical point the first control of secondary Bezier according to secondary Bezier partitioning algorithm System point and terminal increase by second critical point the second control point and the starting point of secondary Bezier, and from the writing Track is corresponding to write the coordinate information that the key point being located in the erasing region is deleted in path, to form at least two cross-talks Write path.
In one possible implementation, the dragging module, including:
Second acquisition unit for listening to push of the user to left mouse button, and determines the push Coordinate information of the position in the painting canvas is located at any one cross-talk stored in the storage unit and writes on path, then starts The distance for obtaining mouse movement bounces until listening to the left mouse button;
5th determination unit, the coordinate for writing each key point on path according to the philosophical works stored in storage unit are believed The distance of breath and mouse movement determines that the philosophical works writes terminating coordinates letter of each key point on the painting canvas on path Breath;
Display unit, it is corresponding for showing that the philosophical works writes path on the painting canvas according to the terminating coordinates information Sub- handwriting trace.
In one possible implementation, described device further includes:
Modified module, the coordinate information for the philosophical works stored in storage unit to be write to each key point on path are changed For the terminating coordinates information.
The third aspect, the application provide a kind of handwriting trace processing unit, including:Memory and processor;Wherein, described Memory is for storing the computer program executed for the processor;
The processor is used to execute the computer program and realizes method described in any one of above-mentioned first aspect.
Fourth aspect, the application provide a kind of computer readable storage medium, including computer-readable instruction, when writing rail When mark processing unit reads and executes the computer-readable instruction so that the handwriting trace processing unit executes above-mentioned first Method described in any one of aspect.
Handwriting trace processing method and processing device provided by the present application, by obtaining in the painting canvas that user shows on a web browser The erasing region of input;Further, determine whether each point on the handwriting trace in painting canvas is located in erasing region successively; Further, the point in erasing region is removed from the handwriting trace shown in painting canvas, and is deposited from storage unit It is deleted in the corresponding writing path of handwriting trace of storage, so that the every cross-talk handwriting trace obtained after being wiped in painting canvas corresponds to respectively One cross-talk writes path;Further, drag operation of the user to arbitrary point on painting canvas is received, if the coordinate information position of arbitrary point Any one section of philosophical works after erasing is write on path, then antithetical phrase writes the corresponding sub- handwriting trace in path and carries out dragging behaviour Make.As it can be seen that the function of being pulled respectively based on browser to being formed by anyon handwriting trace after erasing is realized, to Improve user experience.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Figure 1A is the flow diagram for the handwriting trace processing method that one embodiment of the application provides;
Figure 1B is a kind of schematic diagram of input mode of erasing track provided by the embodiments of the present application;
Fig. 1 C are the schematic diagram of the sub- handwriting trace after segmentation provided by the embodiments of the present application;
Fig. 1 D are the dragging schematic diagram of sub- handwriting trace provided by the embodiments of the present application;
Fig. 2A is the flow diagram for the handwriting trace processing method that another embodiment of the application provides;
Fig. 2 B are a kind of schematic diagram of input mode of handwriting trace provided by the embodiments of the present application;
Fig. 2 C are the schematic diagram of the key point and erasing region of handwriting trace provided by the embodiments of the present application;
Fig. 3 is the flow diagram for the handwriting trace processing method that another embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the handwriting trace processing unit that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the handwriting trace processing unit that another embodiment of the application provides.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
First, application scenarios and part vocabulary involved in the embodiment of the present application are explained.
User in using terminal device procedures, can sometimes open in a browser webpage execute some operation (such as It consults resource, and/or carries out online exchange etc. with remote subscriber).Under normal conditions, user is carrying out those behaviour based on browser During work, it may be necessary to carry out basic write such as some writings and/or erasing and operate.
Increase with user to writing demand in operating process based on browser write and the erasing of vision level On the basis of, user proposes that also need to realization based on browser pulls respectively to being formed by multiple sub- handwriting traces after erasing Function.But it is only formed by multiple sub- handwriting traces after the erasing of vision level in the related technology not pulled respectively. Therefore, become urgently to being formed by the function that multiple sub- handwriting traces are pulled respectively after erasing based on how browser is realized Problem to be solved.
In the embodiment of the present application, the device for executing handwriting trace processing method can be terminal device, can also be terminal Handwriting trace processing unit in equipment.Illustratively, right by taking handwriting trace processing unit as an example in the following embodiments of the application Handwriting trace processing method in the embodiment of the present application illustrates.
Illustratively, handwriting trace processing unit can be chip system, circuit or module etc., and the application does not limit System.
This application involves terminal device can include but is not limited to it is any one of following:Mobile phone, tablet computer, desktop computer With the equipment such as personal digital assistant.
This application involves terminal device may include hardware layer, operate in the operating system layer on hardware layer, and Operate in the application layer on operating system layer.The hardware layer include central processing unit (Central Processing Unit, CPU), the hardware such as memory management unit (Memory Management Unit, MMU) and memory (also referred to as main memory).The operation System can be the computer operating system that any one or more realizes business processing by process (Process), for example, (SuSE) Linux OS, Unix operating systems, Android operation system, iOS operating systems or windows operating systems etc..It should Application layer includes the applications such as browser, address list, word processor, instant communication software.
Storage unit involved in the embodiment of the present application can include but is not limited at least one of following:It memory and deposits temporarily Storage unit.
The principle of secondary Bezier partitioning algorithm involved in the embodiment of the present application is as follows:
Assuming that the coordinate (Cx, Cy) and terminal E of the coordinate (Sx, Sy) of the starting point S of secondary Bezier, control point C Coordinate (Ex, Ey), and assume (0 at t0<t0<1) secondary Bezier is divided into two two after being divided songs Line (such as curve 1 and curve 2), it is determined that the coordinate (Sx, Sy) of the starting point S1 in curve 1, the coordinate (Sx*t1+ of control point C1 Cx*t0, Sy*t1+Cy*t0) and terminal E1 coordinate (Z1x*t1+Z2x*t0, Z1y*t1+Z2y*t0);Wherein, t1=1- T0, Z1x=Sx*t1+Cx*t0, Z1y=Sy*t1+Cy*t0, Z2x=Cx*t1+Ex*t0, Z2y=Cy*t1+Ey*t0.Further Ground determines the coordinate (Z1x*t1+Z2x*t0, Z1y*t1+Z2y*t0) of the starting point S2 in curve 2, the coordinate (Cx* of control point C2 T1+Ex*t0, Cy*t1+Ey*t0) and terminal E2 coordinate (Ex, Ey).
Optionally, t0 refers to the ration of division of the cut-point (or critical point) on secondary Bezier.Illustratively, false If totally 10 and cut-point (or critical point) are the 4th sampled point to the sampled point of secondary Bezier, then t0 is 4/10.
Number " first " and " second " in the embodiment of the present application etc. are for distinguishing similar object, without being used for The specific sequence of description or precedence should not constitute any restriction to the embodiment of the present application.
How the technical solution of the application and the technical solution of the application are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for same or analogous concept Or process may repeat no more in certain embodiments.
Figure 1A is the flow diagram for the handwriting trace processing method that one embodiment of the application provides.As shown in Figure 1A, originally Apply for that the method for embodiment may include:
Step S101, the erasing region inputted in the painting canvas that user shows on a web browser is obtained.
In this step, illustratively, the picture that handwriting trace processing unit can on a web browser be shown by obtaining user The erasing track inputted in cloth (show canvas for ease of description, can be referred to as in the embodiment of the present application), and according to wiping Except track determines the corresponding erasing region in show canvas.For example, user can (such as input equipment can by input equipment To include but not limited to mouse or control pen) input erasing instruction (is used to indicate user in show canvas on browser The erasing track of input), accordingly, handwriting trace processing unit according to erasing instruction obtain user browser show canvas The erasing track of middle input;Further, handwriting trace processing unit can be according to erasing track and/or the size of erasing component Determine corresponding in painting canvas (i.e. show canvas) erasing region, in order to subsequently judge each point on handwriting trace whether position In in erasing region.Optionally, the size for wiping component can be pre-set dimension, or can be the size of user's selection.
Illustratively, handwriting trace processing unit can also be by the first API user in real in browser aobvious Show the erasing region inputted in painting canvas.
The following embodiments of the application can be real to obtain the erasing track inputted in the painting canvas that shows on a web browser of user Existing mode illustrates:
A kind of possible realization method:Receive the startup erasing instruction of user;Further, user is listened to a mouse left side After the push of key, each point for starting acquisition mouse movement bounces until listening to left mouse button, wherein mouse moves Each point formed track be erasing track.
Figure 1B is a kind of schematic diagram of input mode of erasing track provided by the embodiments of the present application.In this realization method, Illustratively, as shown in Figure 1B, user can click erasing control (such as the rubber in the show canvas of browser by mouse Wipe control etc.) to input startup erasing instruction;Further, user is by long-press left mouse button and movement, to drive browser Show canvas in erasing component (such as erasing rubber) it is mobile, until user discharges left mouse button and completes erasing operation.It is corresponding Ground, handwriting trace processing unit just begin listening for operation of the user to mouse after detecting that user inputs startup erasing instruction. After listening to push of the user to left mouse button, start each point for obtaining mouse movement until listening to a mouse left side Until key bounces;Wherein, it is erasing track that each point of mouse movement, which is formed by track,.It is alternatively possible to clear by calling The 2nd API that device of looking at is provided obtains each point of mouse movement, or can also obtain mouse movement otherwise It is each, this is not restricted in the embodiment of the present application.
Alternatively possible realization method:Receive the startup erasing instruction that user inputs by controlling pen;Further, it opens It moves and obtains the end erasing instruction that each point for the nib movement for controlling pen is inputted up to listening to user by controlling pen, In, the track for controlling the mobile each point formation of nib of pen is erasing track.
Certainly, also the erasing inputted in the painting canvas that user shows on a web browser can be obtained by other achievable modes Track is not restricted this in the embodiment of the present application.
The following embodiments of the application according to erasing track to determining the corresponding achievable mode for wiping region in painting canvas It illustrates:
A kind of possible realization method:According to coordinate information of each point in painting canvas in erasing track, in virtual canvas Pixel corresponding with erasing track is determined in each pixel;Further, to picture corresponding with erasing track in virtual canvas Vegetarian refreshments configures image information and simultaneously stores in the memory unit, wherein in the painting canvas shown on browser with configuration image information The corresponding region of pixel is erasing region.
In this realization method, illustratively, handwriting trace processing unit can create a virtual picture in the memory unit (virtual canvas i.e. involved in the embodiment of the present application can't be shown to user to cloth by browser, be only stored in storage unit In), wherein virtual canvas is identical as painting canvas (i.e. show canvas) size shown on browser, and each pixel in virtual canvas The coordinate information storage of point is in the memory unit.Further, handwriting trace processing unit is being shown according to each point in erasing track Show the coordinate information in painting canvas, from being determined in each pixel of virtual canvas and the pixel in erasing track corresponding to each point (first object pixel for ease of description, can be referred to as in the embodiment of the present application).
Illustratively, point in the show canvas involved in the embodiment of the present application is corresponding with the pixel in virtual canvas to be Refer to:The point is located at the coordinate information in show canvas, and it is identical to be located at the coordinate information in virtual canvas with the pixel.For example, Assuming that the erasing track in the show canvas includes that (corresponding coordinate information is for A points (corresponding coordinate information is a) and B points B), then it is determined from each pixel of virtual canvas and first object pixel A ' (the corresponding coordinate informations corresponding to A points For a) and with the first object pixel B ' corresponding to B points (corresponding coordinate information is b).
Further, in virtual canvas with erasing track corresponding first object pixel configuration image information (such as First pre-set image information) and store in the memory unit, wherein image information (such as first pre-set image information) can wrap It includes but is not limited to:At least one of color value (such as first color value) and transparence value (such as first transparence value).Show Example property, first object pixel corresponding with erasing track in virtual canvas is carried out at coloring according to the size of erasing component Reason (is equivalent to and synchronizes erasing to virtual canvas and show canvas), wherein the first object pixel institute after coloring treatment Corresponding first pre-set image information can include but is not limited to:Corresponding first color value of coloring treatment and/or first transparent Angle value (such as non-zero numerical value).
Optionally, other pixels in virtual canvas in addition to the corresponding first object pixel in erasing track can be with Any image information is not configured, or can configure other image informations (such as second pre-set image information), the second default figure As information can include but is not limited to:At least one of second color value and the second transparence value.As it can be seen that by virtually drawing First object pixel corresponding with erasing track configures the first pre-set image information in cloth, may thereby determine that in virtual canvas Region corresponding to first object pixel configured with the first pre-set image information is erasing region, and then is determined on browser Show canvas in the region corresponding to each first object pixel be wipe region.
Alternatively possible realization method:According to erasing track and the size of erasing component, passes through and call browser institute The 3rd API provided, determines user in the erasing region that show canvas is inputted.
Certainly, erasing region corresponding in painting canvas can also be determined by other achievable modes according to erasing track, this This is not restricted in application embodiment.
Certainly, the erasing region that user inputs in painting canvas can be also obtained otherwise, it is right in the embodiment of the present application This is not restricted.
Step S102, determine whether each point on the handwriting trace in painting canvas is located in erasing region successively.
In this step, (for ease of description, originally handwriting trace processing unit determines the handwriting trace in show canvas successively Application embodiment in can be referred to as initial written track) on each point whether be located at erasing region in, in order to being located at Each point in erasing region carries out respective handling (for example, being deposited in removal display and/or deletion storage unit in show canvas The coordinate information etc. of each point of storage).
Illustratively, handwriting trace processing unit can be according to the painting canvas that each point is shown on a web browser in handwriting trace The coordinate information of each pixel in coordinate information and virtual canvas in (i.e. show canvas), determine in virtual canvas with book Write the corresponding pixel in track (the second target pixel points for ease of description, can be referred to as in the embodiment of the present application).Example Property, point in the show canvas involved in the embodiment of the present application is corresponding with the pixel in virtual canvas to refer to:The point is located at It is identical to be located at the coordinate information in virtual canvas with the pixel for coordinate information in show canvas.For example, it is assumed that positioned at display Handwriting trace in painting canvas includes C points (corresponding coordinate information is c) and D points (corresponding coordinate information is d), then is drawn from virtual Determined in each pixel of cloth with corresponding to C points the second target pixel points C ' (corresponding coordinate information be c) and with D points Corresponding the second target pixel points D ' (corresponding coordinate information is d).
Further, if there are image informations (such as the corresponding pixel of handwriting trace (such as the second target pixel points) One pre-set image information), it is determined that the pixel (such as the second target pixel points) is located in erasing region.Optionally, if writing The corresponding pixel in track (such as the second target pixel points) there is no image information (such as there is no any image informations, or There is no first pre-set image informations etc.), it is determined that the pixel (such as the second target pixel points) is not located in erasing region.
Certainly, can also by other achievable modes, successively determine painting canvas in handwriting trace on each point whether position In in erasing region, this is not restricted in the embodiment of the present application.
Step S103, the point in erasing region is removed from the handwriting trace shown in painting canvas, and single from storage It is deleted in the corresponding writing path of handwriting trace stored in member, so that the every cross-talk handwriting trace obtained after being wiped in painting canvas A cross-talk is corresponded to respectively writes path.
In this step, on the one hand writing that handwriting trace processing unit will be shown positioned at the point in erasing region from painting canvas It is removed in track, to which handwriting trace to be divided at least two cross-talk handwriting traces in vision level;On the other hand, in order to just Every cross-talk handwriting trace is carried out respectively in subsequently the operation such as to pull, handwriting trace processing unit will also be located in erasing region Point is deleted from the corresponding writing path of handwriting trace stored in storage unit, to write path in data plane It is divided at least two cross-talks and writes path, wherein the every cross-talk handwriting trace obtained after being wiped in painting canvas corresponds to a cross-talk respectively Path is write, it includes that the cross-talk writes seat of each point in painting canvas on the corresponding sub- handwriting trace in path that path is write per cross-talk Mark information.
Fig. 1 C are the schematic diagram of the sub- handwriting trace after segmentation provided by the embodiments of the present application.In this step, such as Fig. 1 C institutes Show, handwriting trace processing unit can be by determining each critical point (wherein, critical point critical with erasing region in handwriting trace Refer to that next point or a upper point in handwriting trace positioned at the point is located at scratching area domain), and it is each two is adjacent critical The point being located between point in erasing region is removed from the handwriting trace shown in the show canvas of browser, in show canvas Handwriting trace is divided into multistage by at least two cross-talk handwriting traces after middle display erasing to realize in vision level Handwriting trace.
Illustratively, handwriting trace processing unit can be in user's erase process, in real time by the adjacent critical point of each two Between be located at the corresponding book of handwriting trace that coordinate information of the point in painting canvas in erasing region is stored from storage unit It writes in path and deletes, writing path is divided at least two cross-talks writing path in data plane to realize.
Illustratively, handwriting trace processing unit can in user's erase process in real time will positioned at erasing region in it is each Point is removed from the handwriting trace shown in show canvas, and the visual effect to reach erasing (is located at erasing i.e. in handwriting trace The coordinate information of each point in region still has in the memory unit);Further, after user stops erasing, by true Determine each critical point critical with erasing region in handwriting trace, and will be located between the adjacent critical point of each two in erasing region The coordinate information of each point is deleted from the corresponding writing path of handwriting trace stored in storage unit, in data plane Path will be write and be divided at least two cross-talks writing path;It thereby may be ensured that fluency of the user in erase process, improve User experience.
Step S104, drag operation of the user to arbitrary point on painting canvas is received, if the coordinate information of arbitrary point is located at erasing Any one cross-talk afterwards is write on path, then writing the corresponding sub- handwriting trace in path to the philosophical works carries out drag operation.
In this step, handwriting trace processing unit is preferred when receiving user to the drag operation of arbitrary point on painting canvas Judge that any one the cross-talk whether coordinate information of the point is located at after erasing is write on path;Further, however, it is determined that the point Coordinate information is located at the cross-talk after erasing and writes on path (i.e. it is selected to write the corresponding sub- handwriting trace in path for the cross-talk), The corresponding sub- handwriting trace in path then is write to the philosophical works and carries out corresponding drag operation;If it is determined that the coordinate information of the point is not located at Any one cross-talk after erasing writes on path (i.e. the cross-talk is write the corresponding sub- handwriting trace in path and is not selected), then is not necessarily to Response, or can prompt the user with and reselect other points progress drag operations.
Fig. 1 D are the dragging schematic diagram of sub- handwriting trace provided by the embodiments of the present application.Illustratively, handwriting trace is handled Device is when receiving user to the drag operation of certain point on painting canvas, however, it is determined that the coordinate information of the point is located at one after erasing Cross-talk writes on path (i.e. it is selected to write the corresponding sub- handwriting trace in path for the cross-talk), then can write path pair to the philosophical works The sub- handwriting trace answered carries out corresponding drag operation, such as the corresponding dragging track of detection drag operation in real time, so as to real-time The mobile philosophical works writes position of the corresponding sub- handwriting trace in path in picture, and is finally moved to the corresponding target of drag operation Position.
In addition, handwriting trace processing unit receive user to arbitrary point on painting canvas other operations (e.g., including but It is not limited to stretch and/or change color etc.) when, if the coordinate information of the point is located at any one cross-talk after erasing and writes path On, then the corresponding sub- handwriting trace in path can also be write to the philosophical works to carry out stretching and/or changing the operations such as color accordingly.
In the embodiment of the present application, by obtaining the erasing region inputted in the painting canvas that user shows on a web browser;Into one Step ground, determines whether each point on the handwriting trace in painting canvas is located in erasing region successively;Further, erasing will be located at Point in region is removed from the handwriting trace shown in painting canvas, and the corresponding book of the handwriting trace stored from storage unit It writes in path and deletes, so that the every cross-talk handwriting trace obtained after being wiped in painting canvas corresponds to a cross-talk and writes path respectively;Into one Step ground receives drag operation of the user to arbitrary point on painting canvas, if the coordinate information of the point is located at any one cross-talk after erasing It writes on path, then writing the corresponding sub- handwriting trace in path to the philosophical works carries out drag operation.As it can be seen that realizing based on browser The function of being pulled respectively to being formed by anyon handwriting trace after erasing, to improve user experience.
Fig. 2A is the flow diagram for the handwriting trace processing method that another embodiment of the application provides.In above-described embodiment On the basis of, the embodiment of the present application is to the acquisition modes of key point and sample point in handwriting trace and point of handwriting trace The achievable mode for cutting mode illustrates.As shown in Figure 2 A, on the basis of the above embodiments, the method for the embodiment of the present application Can also include:
Step S105, instruction is write in the startup for receiving user, and after listening to user to the push of left mouse button, The each point for starting acquisition mouse movement bounces until listening to left mouse button, and the track that each point of mouse movement is formed is book Write track.
Fig. 2 B are a kind of schematic diagram of input mode of handwriting trace provided by the embodiments of the present application, as shown in Figure 2 B, are used Family can be clicked the writing control (such as paintbrush control etc.) in the show canvas of browser by mouse and be write with inputting to start Instruction;Further, user is by long-press left mouse button and movement, to drive the Writing assembly in the show canvas of browser (such as paintbrush) is mobile, until user discharges left mouse button and completes to write operation.
In the present embodiment before step S102, illustratively, handwriting trace processing unit detect user input open After dynamic writing instruction, operation of the user to mouse is just begun listening for.After listening to push of the user to left mouse button, Start each point for obtaining mouse movement until listening to left mouse button and bouncing;Wherein, each point of mouse movement is formed Track be handwriting trace.It is alternatively possible to by calling the 2nd API that browser is provided to obtain each of mouse movement Point, or each point of mouse movement can also be obtained otherwise, this is not restricted in the embodiment of the present application.
Certainly, also the picture that user shows on a web browser can be obtained by other achievable modes in the embodiment of the present application The handwriting trace inputted in cloth is not restricted this in the embodiment of the present application.
Step S106, link process is carried out using secondary Bezier successively to each point of mouse movement, acquisition The key point of Bezier is the key point in handwriting trace, and the corresponding writing road of storage handwriting trace in the memory unit Diameter.
In this step, illustratively, initial point that handwriting trace processing unit is moved according to mouse, mouse movement it is each Midpoint in other points and other points in point in addition to initial point between each adjacent two point uses secondary shellfish plug successively You carry out link process by curve, to obtain each key point in handwriting trace;Further, by each key in handwriting trace Point coordinate information preserve to storage unit, form the corresponding writing path of handwriting trace, in order to subsequently can to write Track such as is split and/or pulls at the operations.For example, it is assumed that each point of mouse movement includes A1, B1, C1, D1, E1 and F1, First, put in order to control using A1 as starting point, B1 and the midpoint X between B1 and C1 be as terminal, using secondary Bezier into Row link process;Secondly, using X as starting point, C1 as the midpoint Y between control point and C1 and D1 as terminal, using two Secondary Bezier carries out link process;Further, using Y as starting point, D1 as between control point and D1 and E1 Point Z carries out link process as terminal, using secondary Bezier;Further, using Z as starting point, E1 as control point And the midpoint W between E1 and F1 carries out link process using secondary Bezier, finally obtains handwriting trace as terminal In each key point;Further, by each key point (the corresponding writing path of composition handwriting trace) storage in handwriting trace To storage unit.
In view of being limited to the refreshing frequency of browser, each pixel that mouse is passed through can not be got in step S105 Point, actually acquired is only some discrete points.It, can be to handwriting trace in the embodiment of the present application in order to improve erasing precision It is sampled processing, to obtain sample point intensive enough on handwriting trace.
Further, in step s 102, handwriting trace processing unit can according to the key point in handwriting trace away from From determining sampled value;Further, it is determined according to key point, sampled value and the secondary Bezier formula in handwriting trace Sampled point on handwriting trace, and determine whether each sampled point on handwriting trace is located in erasing region successively.
Since every three adjacent key points are connected in the form of secondary Bezier in handwriting trace, in the present embodiment In step s 102, illustratively, handwriting trace processing unit can be respectively according to every three adjacent key points in handwriting trace The distance between determine corresponding sampled value (for example, sampled value may include in sampling interval Δ and/or secondary Bessel Formula Parameter t, wherein Δ is positive integer more than 0, and t is greater than or equal to 0, and less than or equal to 1).Optionally, according to every three The ratio result (can downward rounding) of the sum of the distance of adjacent key point and default value (such as 2) is used as sampling interval Δ, and The value of parameter t is determined according to sampling interval Δ.
For example, it is assumed that the coordinate of three adjacent key points is respectively:A1 (0,0), B1 (1,0) and X (1,3), it is determined that The distance between A1 and B1 are 1 and the distance between B1 and X are 2, and according between the distance between A1 and B1 and B1 and X Sum of the distance divided by default value (such as 2), obtain sampling interval Δ be 2 (downward roundings);Further, according to the sampling interval Δ determines that the value of parameter t is respectively 0,0.5 and 1.
Further, respectively according to every three adjacent key points, the corresponding sampled value of every three adjacent key points and two Secondary Bezier formula determines the sampled point corresponding to every three adjacent key points.For example, it is assumed that three adjacent key points Coordinate is respectively:A1 (0,0), B1 (1,0) and X (1,3) and the corresponding sampled value of this three adjacent key points include:Sampling Interval delta be 2 and parameter t value be respectively 0,0.5 and 1, then according to secondary Bezier formula obtain this three it is adjacent The coordinate of three sampled points corresponding to key point;Wherein, secondary Bezier formula can be B (t)=(1-t)2P0+2t (1-t)P1+t2P2, B (t) represents secondary Bezier function, P0Represent starting point (such as A1), P1Represent control point (such as B1), P2 Represent terminal (such as X).
Further, handwriting trace processing unit determines whether each sampled point on handwriting trace is located at erasing region successively It is interior, in order to in scratching area domain each key point carry out respective handling (for example, in show canvas removal display and/ Or delete the coordinate information etc. of each key point stored in storage unit).
Illustratively, handwriting trace processing unit can on a web browser be shown according to each sampled point in handwriting trace The coordinate information of each pixel, determines in virtual canvas in coordinate information and virtual canvas in painting canvas (i.e. show canvas) (for ease of description, it can be referred to as in the embodiment of the present application with the pixel corresponding to each sampled point in handwriting trace Second target pixel points).Further, if any sampled point corresponding pixel (such as the second object pixel in handwriting trace Point) there are image information (such as first pre-set image informations), it is determined that and the pixel (such as the second target pixel points), which is located at, to be wiped Except in region.Optionally, if the corresponding pixel of any sampled point (such as the second target pixel points) in handwriting trace is not present Image information (such as there is no any image informations, or there is no first pre-set image informations etc.), it is determined that the pixel (such as the second target pixel points) are not located in erasing region.
By according to any sampled point in handwriting trace and corresponding pixel points in virtual canvas in the embodiment of the present application Image information wipes region to judge whether any sampled point belongs to, and speed is judged, to improve handwriting trace Treatment effeciency.
Certainly, also it can determine whether each sampled point on handwriting trace is located at erasing successively by other achievable modes In region, this is not restricted in the embodiment of the present application.
Further, in step s 103, on the one hand, handwriting trace processing unit can call the API in browser will Key point in erasing region is removed from the handwriting trace shown in painting canvas, to form at least two cross-talk handwriting traces. Illustratively, it is determined in each sampled point that handwriting trace processing unit can be on handwriting trace and wipes that region is critical respectively adopts Sample critical point (refer to the key point before or after being located at the sampling critical point in erasing region), and is called in browser API by each adjacent two sample critical point between be located at erasing region in key point from the handwriting trace shown in painting canvas Removal realizes the segmentation erasing of vision level to which handwriting trace is divided at least two cross-talk handwriting traces.
On the other hand, handwriting trace processing unit can determine critical with erasing region in the key point of handwriting trace First critical point and/or the second critical point, (Fig. 2 C are the key point of handwriting trace provided by the embodiments of the present application as shown in Figure 2 C With the schematic diagram in erasing region);Wherein, the first critical point along handwriting trace direction next key point in erasing region in, Second critical point along handwriting trace direction a upper key point in erasing region in.It should be noted that the embodiment of the present application Involved in handwriting trace key point in may include multiple first critical points and/or multiple second critical points.
Illustratively, handwriting trace processing unit traverses each sampled point in handwriting trace successively, judges each sampling Whether point is located in erasing region.If it is determined that the first sampled point is not located at erasing region, but next sampling of the first sampled point Point (along handwriting trace direction) is located in erasing region, it is determined that the key point before being located at the first sampled point is first critical Point;If it is determined that the second sampled point is not located at erasing region, but a upper sampled point for the second sampled point (along handwriting trace direction) In erasing region, it is determined that the key point after the second sampled point is the second critical point.
Further, secondary Bezier is increased to each first critical point according to secondary Bezier partitioning algorithm First control point and terminal, the second control point and the starting point that increase each second critical point secondary Bezier, and from writing Track is corresponding to write the coordinate information that the key point being located in erasing region is deleted in path, is write with forming at least two cross-talks Path to realize the segmentation for writing path in data plane, and can save the memory space of storage unit.
Illustratively, increase by first according to secondary the first critical point of Bezier partitioning algorithm pair in the embodiment of the present application The specific implementation at control point and terminal can be referred to divide about secondary Bezier in the above embodiments of the present application and be calculated The associated internal memory of method, details are not described herein again.
Illustratively, increase by second according to secondary the second critical point of Bezier partitioning algorithm pair in the embodiment of the present application The specific implementation at control point and starting point can be referred to divide about secondary Bezier in the above embodiments of the present application and be calculated The associated internal memory of method, details are not described herein again.
In the embodiment of the present application, used successively by obtaining each point of mouse movement, and to each point of mouse movement Secondary Bezier carries out link process, and the key point of the Bezier of acquisition is the key point in handwriting trace, and The corresponding writing path (coordinate information for including the key point in handwriting trace) of handwriting trace is stored in storage unit;Further Ground determines each sampled point on handwriting trace, and determines whether each sampled point on handwriting trace is located at erasing region successively It is interior;Further, on the one hand by calling the API in browser to show the key point in erasing region from painting canvas It is removed in handwriting trace, to form at least two cross-talk handwriting traces;On the other hand it determines and wipes from the key point of handwriting trace Except region critical the first critical point and/or the second critical point, and secondary Bezier is increased to the first critical point respectively First control point and terminal, the second control point for increasing the second critical point secondary Bezier and starting point, and from writing rail Mark is corresponding to write the coordinate information that the key point being located in erasing region is deleted in path, and road is write to form at least two cross-talks Diameter.As it can be seen that the embodiment of the present application not only realizes the segmentation of handwriting trace in vision level, also achieves and write in data plane The segmentation in path carries out the processing such as pulling respectively in order to subsequently write path to every cross-talk after segmentation.
Fig. 3 is the flow diagram for the handwriting trace processing method that another embodiment of the application provides.In above-described embodiment On the basis of, can be achieved for (or above-mentioned steps S104) is pulled to the sub- handwriting trace after segmentation in the embodiment of the present application Mode illustrates.As shown in figure 3, above-mentioned steps S104 may include:
Step S301, push of the user to left mouse button is listened to, and determines the position of push in painting canvas Coordinate information be located at any one cross-talk for being stored in storage unit and write on path, then start obtain mouse movement distance it is straight It is bounced to left mouse button is listened to.
In this step, illustratively, handwriting trace processing unit can pull instruction receiving startup input by user After (such as user can click the selection control in the show canvas of browser by mouse), start to monitor user on painting canvas The drag operation of arbitrary point, such as start to detect user to the push of left mouse button and the position of push.Into one Step ground, handwriting trace processing unit are detecting coordinate of the user to the position of the push of left mouse button in show canvas Information is located at the cross-talk that is stored in storage unit and writes on path that (i.e. the cross-talk is write the corresponding sub- handwriting trace in path and is chosen In), just start the distance (e.g., including but be not limited to lateral distance and/or fore-and-aft distance) for detecting mouse movement in real time until It listens to left mouse button to bounce, subsequently to carry out the operation such as pulling to the selected cross-talk handwriting trace.
Certainly, handwriting trace processing unit can also start to detect user to left mouse button under other trigger conditions Position of the push in show canvas is not restricted this in the embodiment of the present application.,
Step S302, the coordinate information and mouse that each key point on path is write according to the philosophical works stored in storage unit move Dynamic distance determines that the philosophical works writes terminating coordinates information of each key point on painting canvas on path.
In this step, handwriting trace processing unit writes each key point on path according to the philosophical works stored in storage unit The distance of coordinate information and mouse movement determines that the philosophical works is write on path on the show canvas of each key point on a web browser in real time Terminating coordinates information.Illustratively, handwriting trace processing unit can write the coordinate of each key point on path according to the philosophical works The distance (such as lateral distance and/or fore-and-aft distance) of information and the mouse movement detected in real time, determines the philosophical works in real time respectively Write terminating coordinates information of each key point on show canvas on path.
Step S303, show that the philosophical works writes the corresponding sub- handwriting trace in path on painting canvas according to terminating coordinates information.
In this step, handwriting trace processing unit writes the terminating coordinates information of each key point on path according to the philosophical works, real When show that the philosophical works writes the corresponding sub- handwriting trace in path on show canvas on a web browser, to realize to this times Write the dragging processing of the corresponding sub- handwriting trace in path.
Optionally, for the ease of subsequently continuing to pull, handwriting trace processing unit according to terminating coordinates information in painting canvas After upper display philosophical works writes the corresponding sub- handwriting trace in path, the philosophical works stored in storage unit can also be write on path The coordinate information of each key point is revised as terminating coordinates information.
In the embodiment of the present application, by listening to push of the user to left mouse button, and the position of push is determined It sets the coordinate information in painting canvas to be located on any one cross-talk writing path stored in storage unit, then starts and obtain mouse shifting Dynamic distance bounces until listening to left mouse button;Further, it is write according to the philosophical works stored in storage unit each on path The distance of coordinate information and the mouse movement of key point, determines that the philosophical works writes terminating coordinates of each key point on painting canvas on path Information, and show that the philosophical works writes the corresponding sub- handwriting trace in path on painting canvas according to terminating coordinates information.As it can be seen that realizing pair The dragging of any sub- handwriting trace after segmentation is handled.
Fig. 4 is the structural schematic diagram for the handwriting trace processing unit that one embodiment of the application provides.As shown in figure 4, this reality Applying the handwriting trace processing unit 40 that example provides may include:First acquisition module 401, determining module 402, removal module 403 And pull module 404.
Wherein, the first acquisition module 401, for obtaining the scratching area inputted in the painting canvas that user shows on a web browser Domain;
Determining module 402, for determining whether each point on the handwriting trace in the painting canvas is located at the wiping successively Except in region;
Module 403 is removed, for the point in the erasing region will to be located at from the handwriting trace shown in the painting canvas Removal, and deleted from the corresponding writing path of the handwriting trace stored in storage unit, so as to be wiped in the painting canvas The every cross-talk handwriting trace obtained after removing corresponds to a cross-talk and writes path respectively;Wherein, it includes institute that every section of philosophical works, which writes path, It states the philosophical works and writes coordinate information of each point in the painting canvas on the corresponding sub- handwriting trace in path;
Pull module 404, the drag operation for receiving the user to arbitrary point on the painting canvas, if the arbitrary point Coordinate information be located at erasing after any one section of philosophical works write on path, then the corresponding philosophical works in path is write to the philosophical works and writes Track carries out drag operation.
Optionally, first acquisition module 401 includes:
First acquisition unit, the erasing track inputted in the painting canvas for obtaining the user;
First determination unit, for determining the corresponding erasing region in the painting canvas according to the erasing track.
Optionally, first determination unit is specifically used for:
According to coordinate information of each point in the painting canvas in the erasing track, in each pixel of virtual canvas really Fixed pixel corresponding with the erasing track, the virtual canvas is identical as the canvas size shown on the browser, and The coordinate information of each pixel stores in the memory unit in the virtual canvas;
To pixel configuration image information corresponding with the erasing track in the virtual canvas and it is stored in described deposit In storage unit, wherein region corresponding with the configuration pixel of described image information is in the painting canvas shown on the browser The erasing region, described image information include at least one of color value and transparence value.
Optionally, the determining module 402 is specifically used for:
According to coordinate information in the painting canvas that each point is shown on the browser in the handwriting trace and described The coordinate information of each pixel in virtual canvas determines pixel corresponding with the handwriting trace in the virtual canvas;
If there are described image information for the corresponding pixel of the handwriting trace, it is determined that the pixel is located at the wiping Except in region.
Optionally, the first acquisition unit is specifically used for:
Receive the startup erasing instruction of user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to The left mouse button bounces, and the track that each point of the mouse movement is formed is the erasing track.
Optionally, described device further includes:
Instruction is write in receiving module, the startup for receiving user;
Second acquisition module starts after listening to user to the push of left mouse button and obtains mouse movement Each point until listening to the left mouse button and bouncing, the track that each point of the mouse movement is formed is the writing rail Mark.
Optionally, described device further includes:
Processing module, each point for being moved to the mouse are carried out using secondary Bezier at line successively Reason, the key point of the Bezier of acquisition are the key point in the handwriting trace;
Memory module, for storing the corresponding writing path of the handwriting trace in the memory unit;Wherein, the writing Path includes the coordinate information of the key point in the handwriting trace.
Optionally, the determining module 402, including:
Second determination unit, for determining sampled value according to the distance of the key point in the handwriting trace;
Third determination unit, for according to key point, the sampled value and the secondary shellfish in the handwriting trace Sai Er curve equations determine the sampled point on the handwriting trace;
4th determination unit, for determining whether each sampled point on the handwriting trace is located at the erasing region successively It is interior.
Optionally, the removal module 403 is specifically used for:
Call removings application programming interface API in browser by positioned at the key point wiped in region from institute It states and is removed in the handwriting trace shown in painting canvas, to form at least two cross-talk handwriting traces.
Optionally, the removal module 403 is specifically used for:
It is determined in the key point of the handwriting trace and wipes critical the first critical point in region with described and/or second face Boundary's point, first critical point along the handwriting trace direction next key point in the erasing region, described second Critical point along the handwriting trace direction a upper key point in the erasing region;
Increase first critical point the first control of secondary Bezier according to secondary Bezier partitioning algorithm System point and terminal increase by second critical point the second control point and the starting point of secondary Bezier, and from the writing Track is corresponding to write the coordinate information that the key point being located in the erasing region is deleted in path, to form at least two cross-talks Write path.
Optionally, the dragging module 404, including:
Second acquisition unit for listening to push of the user to left mouse button, and determines the push Coordinate information of the position in the painting canvas is located at any one cross-talk stored in the storage unit and writes on path, then starts The distance for obtaining mouse movement bounces until listening to the left mouse button;
5th determination unit, the coordinate for writing each key point on path according to the philosophical works stored in storage unit are believed The distance of breath and mouse movement determines that the philosophical works writes terminating coordinates letter of each key point on the painting canvas on path Breath;
Display unit, it is corresponding for showing that the philosophical works writes path on the painting canvas according to the terminating coordinates information Sub- handwriting trace.
Optionally, described device further includes:
Modified module is revised as the philosophical works stored in storage unit to be write the coordinate information of key point on path The terminating coordinates information.
The handwriting trace processing unit of the present embodiment can be used for executing the above-mentioned handwriting trace processing method of the application and implement The technical solution of example, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 5 is the structural schematic diagram for the handwriting trace processing unit that another embodiment of the application provides.As shown in figure 5, this Embodiment provide handwriting trace processing unit 50 may include:Memory 501 and processor 502.Optionally, the memory It is connected by bus 503 between 501 and the processor 502.For ease of indicating, only indicated with a thick line in Fig. 5, but not Indicate only have a bus or a type of bus.
Wherein, the memory 501 is for storing the computer program executed for the processor 502;
The processor 502 realizes that the above-mentioned handwriting trace processing method of the application is implemented for executing the computer program The technical solution of example, implementing principle and technical effect are similar, and details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, including computer-readable instruction, when writing rail When mark processing unit reads and executes the computer-readable instruction so that the handwriting trace processing unit executes in the application The technical solution of handwriting trace processing method embodiment is stated, implementing principle and technical effect are similar, and details are not described herein again.
One with ordinary skill in the art would appreciate that in the various embodiments of the application, the serial number of above-mentioned each process Size is not meant that the order of the execution order, and the execution sequence of each process should be determined by its function and internal logic, without answering Any restriction is constituted to the implementation process of the embodiment of the present application.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:Read-only memory (Read-Only Memory, referred to as:ROM), random access memory (Random Access Memory, abbreviation:RAM), magnetic disc or CD etc. The various media that can store program code.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (26)

1. a kind of handwriting trace processing method, which is characterized in that including:
Obtain the erasing region inputted in the painting canvas that user shows on a web browser;
Determine whether each point on the handwriting trace in the painting canvas is located in the erasing region successively;
Point in the erasing region is removed from the handwriting trace shown in the painting canvas, and the institute from storage unit It is deleted in the corresponding writing path of the handwriting trace of storage, so that the every cross-talk obtained after being wiped in the painting canvas is write Track corresponds to a cross-talk and writes path respectively;Wherein, it includes that the philosophical works writes the corresponding son in path that every section of philosophical works, which writes path, Coordinate information of each point in the painting canvas on handwriting trace;
Drag operation of the user to arbitrary point on the painting canvas is received, if after the coordinate information of the arbitrary point is located at erasing Any one section of philosophical works write on path, then writing the corresponding sub- handwriting trace in path to the philosophical works carries out drag operation.
2. according to the method described in claim 1, it is characterized in that, defeated in the painting canvas that the acquisition user shows on a web browser The erasing region entered, including:
Obtain the erasing track that the user inputs in the painting canvas;
The corresponding erasing region in the painting canvas is determined according to the erasing track.
3. according to the method described in claim 2, it is characterized in that, described determine according to the erasing track in the painting canvas Corresponding erasing region, including:
According to coordinate information of each point in the painting canvas in the erasing track, determined in each pixel of virtual canvas with The corresponding pixel in the erasing track, the virtual canvas and the canvas size shown on the browser are identical and described The coordinate information of each pixel stores in the memory unit in virtual canvas;
To pixel configuration image information corresponding with the erasing track in the virtual canvas and it is stored in the storage list In member, wherein region corresponding with the configuration pixel of described image information is described in the painting canvas shown on the browser Region is wiped, described image information includes at least one of color value and transparence value.
4. according to the method described in claim 3, it is characterized in that, on the handwriting trace determined successively in the painting canvas Whether each point is located in the erasing region, including:
According to coordinate information in the painting canvas that each point is shown on the browser in the handwriting trace and described virtual The coordinate information of each pixel in painting canvas determines pixel corresponding with the handwriting trace in the virtual canvas;
If there are described image information for the corresponding pixel of the handwriting trace, it is determined that the pixel is located at the scratching area In domain.
5. according to claim 2-4 any one of them methods, which is characterized in that described to obtain what user showed on a web browser The erasing track inputted in painting canvas, including:
Receive the startup erasing instruction of user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to described Left mouse button bounces, and the track that each point of the mouse movement is formed is the erasing track.
6. according to the described method of any one of claim 1-4, which is characterized in that the book determined successively in the painting canvas Before each point on track is write whether in the erasing region, further include:
Instruction is write in the startup for receiving user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to described Left mouse button bounces, and the track that each point of the mouse movement is formed is the handwriting trace.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
Link process, the Bezier of acquisition are carried out using secondary Bezier successively to each point of mouse movement Key point be the handwriting trace in key point;
The corresponding writing path of the handwriting trace is stored in the storage unit;Wherein, the writing path includes institute State the coordinate information of the key point in handwriting trace.
8. the method according to the description of claim 7 is characterized in that on the handwriting trace determined successively in the painting canvas Whether each point is located in the erasing region, including:
Sampled value is determined according to the distance of the key point in the handwriting trace;
The book is determined according to key point, the sampled value and the secondary Bezier formula in the handwriting trace Write the sampled point on track;
Determine whether each sampled point on the handwriting trace is located in the erasing region successively.
9. according to the method described in claim 8, it is characterized in that, the point by the erasing region is from the picture It is removed in the handwriting trace shown in cloth, including:
Call removings application programming interface API in browser by positioned at the key point wiped in region from the picture It is removed in the handwriting trace shown in cloth, to form at least two cross-talk handwriting traces.
10. method according to claim 8 or claim 9, spy are, by the point in the erasing region from storage unit Middle the stored handwriting trace is deleted in corresponding writing path, including:
It is determined in the key point of the handwriting trace and wipes critical the first critical point in region and/or second critical with described Point, first critical point along the handwriting trace direction next key point in the erasing region, described second faces Boundary's point along the handwriting trace direction a upper key point in the erasing region;
Increase first critical point the first control point of secondary Bezier according to secondary Bezier partitioning algorithm Increase the second control point and the starting point of secondary Bezier with terminal, to second critical point, and from the handwriting trace The coordinate information that the key point being located in the erasing region is deleted in corresponding writing path, is write with forming at least two cross-talks Path.
11. according to the method described in claim 10, it is characterized in that, described receive the user to arbitrary point on the painting canvas Drag operation, if the coordinate information of the arbitrary point be located at erasing after any one section of philosophical works write on path, to institute It states the philosophical works and writes the corresponding sub- handwriting trace progress drag operation in path, including:
Push of the user to left mouse button is listened to, and determines coordinate of the position of the push in the painting canvas Information is located at any one cross-talk stored in the storage unit and writes on path, then start the distance for obtaining mouse movement until The left mouse button is listened to bounce;
The coordinate information of each key point and mouse movement on path are write according to the philosophical works stored in the storage unit Distance, determine that the philosophical works writes terminating coordinates information of each key point on the painting canvas on path;
Show that the philosophical works writes the corresponding sub- handwriting trace in path on the painting canvas according to the terminating coordinates information.
12. according to the method for claim 11, which is characterized in that it is described according to the terminating coordinates information in the painting canvas After the upper display philosophical works writes the corresponding sub- handwriting trace in path, further include:
The coordinate information that the philosophical works stored in the storage unit writes each key point on path is revised as the termination to sit Mark information.
13. a kind of handwriting trace processing unit, which is characterized in that including:
First acquisition module, for obtaining the erasing region inputted in the painting canvas that user shows on a web browser;
Determining module, for determining whether each point on the handwriting trace in the painting canvas is located at the erasing region successively It is interior;
Module is removed, for the point being located in the erasing region to be removed from the handwriting trace shown in the painting canvas, and It is deleted from the corresponding writing path of the handwriting trace stored in storage unit, so as to be obtained after being wiped in the painting canvas Every cross-talk handwriting trace respectively correspond to a cross-talk write path;Wherein, it includes that the philosophical works is write that every section of philosophical works, which writes path, Coordinate information of each point in the painting canvas on the corresponding sub- handwriting trace in path;
Pull module, the drag operation for receiving the user to arbitrary point on the painting canvas, if the coordinate of the arbitrary point Information be located at erasing after any one section of philosophical works write on path, then to the philosophical works write the corresponding sub- handwriting trace in path into Row drag operation.
14. device according to claim 13, which is characterized in that first acquisition module includes:
First acquisition unit, the erasing track inputted in the painting canvas for obtaining the user;
First determination unit, for determining the corresponding erasing region in the painting canvas according to the erasing track.
15. device according to claim 14, which is characterized in that first determination unit is specifically used for:
According to coordinate information of each point in the painting canvas in the erasing track, determined in each pixel of virtual canvas with The corresponding pixel in the erasing track, the virtual canvas and the canvas size shown on the browser are identical and described The coordinate information of each pixel stores in the memory unit in virtual canvas;
To pixel configuration image information corresponding with the erasing track in the virtual canvas and it is stored in the storage list In member, wherein region corresponding with the configuration pixel of described image information is described in the painting canvas shown on the browser Region is wiped, described image information includes at least one of color value and transparence value.
16. device according to claim 15, which is characterized in that the determining module is specifically used for:
According to coordinate information in the painting canvas that each point is shown on the browser in the handwriting trace and described virtual The coordinate information of each pixel in painting canvas determines pixel corresponding with the handwriting trace in the virtual canvas;
If there are described image information for the corresponding pixel of the handwriting trace, it is determined that the pixel is located at the scratching area In domain.
17. according to claim 14-16 any one of them devices, which is characterized in that the first acquisition unit is specifically used for:
Receive the startup erasing instruction of user;
After user is listened to the push of left mouse button, start each point for obtaining mouse movement until listening to described Left mouse button bounces, and the track that each point of the mouse movement is formed is the erasing track.
18. according to the device described in any one of claim 13-16, which is characterized in that described device further includes:
Instruction is write in receiving module, the startup for receiving user;
Second acquisition module starts after listening to user to the push of left mouse button and obtains each of mouse movement A point bounces until listening to the left mouse button, and the track that each point of the mouse movement is formed is the handwriting trace.
19. device according to claim 18, which is characterized in that described device further includes:
Processing module, each point for being moved to the mouse carry out link process using secondary Bezier successively, obtain The key point of the Bezier obtained is the key point in the handwriting trace;
Memory module, for storing the corresponding writing path of the handwriting trace in the storage unit;Wherein, the writing Path includes the coordinate information of the key point in the handwriting trace.
20. device according to claim 19, which is characterized in that the determining module, including:
Second determination unit, for determining sampled value according to the distance of the key point in the handwriting trace;
Third determination unit, for according to key point, the sampled value and the secondary Bezier in the handwriting trace Curve equation determines the sampled point on the handwriting trace;
4th determination unit, for determining whether each sampled point on the handwriting trace is located in the erasing region successively.
21. device according to claim 20, which is characterized in that the removal module is specifically used for:
Call removings application programming interface API in browser by positioned at the key point wiped in region from the picture It is removed in the handwriting trace shown in cloth, to form at least two cross-talk handwriting traces.
22. the device according to claim 20 or 21, which is characterized in that the removal module is specifically used for:
It is determined in the key point of the handwriting trace and wipes critical the first critical point in region and/or second critical with described Point, first critical point along the handwriting trace direction next key point in the erasing region, described second faces Boundary's point along the handwriting trace direction a upper key point in the erasing region;
Increase first critical point the first control point of secondary Bezier according to secondary Bezier partitioning algorithm Increase the second control point and the starting point of secondary Bezier with terminal, to second critical point, and from the handwriting trace The coordinate information that the key point being located in the erasing region is deleted in corresponding writing path, is write with forming at least two cross-talks Path.
23. device according to claim 22, which is characterized in that the dragging module, including:
Second acquisition unit for listening to push of the user to left mouse button, and determines the position of the push Coordinate information in the painting canvas is located at any one cross-talk stored in the storage unit and writes on path, then starts acquisition The distance of mouse movement bounces until listening to the left mouse button;
5th determination unit, for according to the philosophical works stored in storage unit write on path the coordinate information of each key point and The distance of the mouse movement, determines that the philosophical works writes terminating coordinates information of each key point on the painting canvas on path;
Display unit, for showing that the philosophical works writes the corresponding philosophical works in path on the painting canvas according to the terminating coordinates information Write track.
24. device according to claim 23, which is characterized in that described device further includes:
Modified module, the coordinate information for the philosophical works stored in storage unit to be write to each key point on path are revised as institute State terminating coordinates information.
25. a kind of handwriting trace processing unit, which is characterized in that including:Memory and processor;Wherein, the memory is used In the computer program that storage executes for the processor;
The processor is used to execute method of the computer program realization as described in any one of claim 1 to 12.
26. a kind of computer readable storage medium, which is characterized in that including computer-readable instruction, when handwriting trace processing fills When setting reading and executing the computer-readable instruction so that the handwriting trace processing unit executes such as claim 1 to 12 Any one of described in method.
CN201810596701.4A 2018-06-11 2018-06-11 Writing track processing method and device Active CN108733293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810596701.4A CN108733293B (en) 2018-06-11 2018-06-11 Writing track processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810596701.4A CN108733293B (en) 2018-06-11 2018-06-11 Writing track processing method and device

Publications (2)

Publication Number Publication Date
CN108733293A true CN108733293A (en) 2018-11-02
CN108733293B CN108733293B (en) 2021-09-07

Family

ID=63932945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810596701.4A Active CN108733293B (en) 2018-06-11 2018-06-11 Writing track processing method and device

Country Status (1)

Country Link
CN (1) CN108733293B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764674A (en) * 2019-09-12 2020-02-07 湖南新云网科技有限公司 Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard
CN110782504A (en) * 2019-09-16 2020-02-11 腾讯科技(深圳)有限公司 Curve determination method, device, computer readable storage medium and equipment
CN112035035A (en) * 2020-08-27 2020-12-04 哈尔滨工业大学(深圳) Eraser realizing method and system capable of erasing strokes of top layer local area
CN112527182A (en) * 2020-12-23 2021-03-19 青岛海信移动通信技术股份有限公司 Electronic device and pattern drawing method
CN114115265A (en) * 2021-11-23 2022-03-01 未岚大陆(北京)科技有限公司 Path processing method of self-moving equipment and self-moving equipment
CN114356201A (en) * 2021-12-23 2022-04-15 科大讯飞股份有限公司 Writing beautifying method, device, equipment and readable storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587495A (en) * 2009-07-08 2009-11-25 伍帝州 Method and system for downloading and disposing application through browser and providing application entrance
CN101609560A (en) * 2009-07-16 2009-12-23 广东威创视讯科技股份有限公司 A kind of method of erasing handwriting
CN102262508A (en) * 2011-07-21 2011-11-30 福州锐达数码科技有限公司 Method for generating measuring tool by mouse track
CN103064613A (en) * 2012-12-13 2013-04-24 鸿富锦精密工业(深圳)有限公司 Method and device for erasing contents of touch screen
CN103077025A (en) * 2012-12-28 2013-05-01 锐达互动科技股份有限公司 Method for erasing trace line and generating new trace line for closed geometric figure
CN103257828A (en) * 2013-05-30 2013-08-21 无锡久源软件科技有限公司 Graffiti type full screen sliding and unlocking method
CN103729127A (en) * 2013-12-24 2014-04-16 广西大学 Method for controlling browser by mouse moving trajectory
US20140168077A1 (en) * 2012-12-14 2014-06-19 Barnesandnoble.Com Llc Multi-touch navigation mode
CN104571847A (en) * 2013-10-15 2015-04-29 纬创资通股份有限公司 operation method of electronic device
CN104714724A (en) * 2011-09-30 2015-06-17 北京奇虎科技有限公司 Touch control type browser of portable mobile terminal
US20160098186A1 (en) * 2014-10-02 2016-04-07 Kabushiki Kaisha Toshiba Electronic device and method for processing handwritten document
CN105653144A (en) * 2014-11-12 2016-06-08 北大方正集团有限公司 Webpage-based hand input method and editor
CN106227454A (en) * 2016-07-27 2016-12-14 努比亚技术有限公司 A kind of touch trajectory detecting system and method
CN106325737A (en) * 2016-08-03 2017-01-11 青岛海信电器股份有限公司 Method and equipment for erasing writing path
CN106569692A (en) * 2016-10-26 2017-04-19 青岛海信电器股份有限公司 Method and device for erasing gesture
CN106886304A (en) * 2017-02-20 2017-06-23 联想(北京)有限公司 Data processing method, stylus applications client and electronic equipment
CN106933474A (en) * 2015-12-30 2017-07-07 网易(杭州)网络有限公司 Image blend processing method and processing device
CN106991711A (en) * 2017-03-15 2017-07-28 广州视源电子科技股份有限公司 Handwriting editing method and system
CN107193424A (en) * 2017-06-27 2017-09-22 北京北纬天辰科技有限公司 A kind of Intelligent electronic-type method for deleting and device

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587495A (en) * 2009-07-08 2009-11-25 伍帝州 Method and system for downloading and disposing application through browser and providing application entrance
CN101609560A (en) * 2009-07-16 2009-12-23 广东威创视讯科技股份有限公司 A kind of method of erasing handwriting
CN102262508A (en) * 2011-07-21 2011-11-30 福州锐达数码科技有限公司 Method for generating measuring tool by mouse track
CN104714724A (en) * 2011-09-30 2015-06-17 北京奇虎科技有限公司 Touch control type browser of portable mobile terminal
CN103064613A (en) * 2012-12-13 2013-04-24 鸿富锦精密工业(深圳)有限公司 Method and device for erasing contents of touch screen
US20140168077A1 (en) * 2012-12-14 2014-06-19 Barnesandnoble.Com Llc Multi-touch navigation mode
CN103077025A (en) * 2012-12-28 2013-05-01 锐达互动科技股份有限公司 Method for erasing trace line and generating new trace line for closed geometric figure
CN103257828A (en) * 2013-05-30 2013-08-21 无锡久源软件科技有限公司 Graffiti type full screen sliding and unlocking method
CN104571847A (en) * 2013-10-15 2015-04-29 纬创资通股份有限公司 operation method of electronic device
CN103729127A (en) * 2013-12-24 2014-04-16 广西大学 Method for controlling browser by mouse moving trajectory
US20160098186A1 (en) * 2014-10-02 2016-04-07 Kabushiki Kaisha Toshiba Electronic device and method for processing handwritten document
CN105653144A (en) * 2014-11-12 2016-06-08 北大方正集团有限公司 Webpage-based hand input method and editor
CN106933474A (en) * 2015-12-30 2017-07-07 网易(杭州)网络有限公司 Image blend processing method and processing device
CN106227454A (en) * 2016-07-27 2016-12-14 努比亚技术有限公司 A kind of touch trajectory detecting system and method
CN106325737A (en) * 2016-08-03 2017-01-11 青岛海信电器股份有限公司 Method and equipment for erasing writing path
CN106569692A (en) * 2016-10-26 2017-04-19 青岛海信电器股份有限公司 Method and device for erasing gesture
CN106886304A (en) * 2017-02-20 2017-06-23 联想(北京)有限公司 Data processing method, stylus applications client and electronic equipment
CN106991711A (en) * 2017-03-15 2017-07-28 广州视源电子科技股份有限公司 Handwriting editing method and system
CN107193424A (en) * 2017-06-27 2017-09-22 北京北纬天辰科技有限公司 A kind of Intelligent electronic-type method for deleting and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764674A (en) * 2019-09-12 2020-02-07 湖南新云网科技有限公司 Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard
CN110782504A (en) * 2019-09-16 2020-02-11 腾讯科技(深圳)有限公司 Curve determination method, device, computer readable storage medium and equipment
CN112035035A (en) * 2020-08-27 2020-12-04 哈尔滨工业大学(深圳) Eraser realizing method and system capable of erasing strokes of top layer local area
CN112527182A (en) * 2020-12-23 2021-03-19 青岛海信移动通信技术股份有限公司 Electronic device and pattern drawing method
CN114115265A (en) * 2021-11-23 2022-03-01 未岚大陆(北京)科技有限公司 Path processing method of self-moving equipment and self-moving equipment
CN114356201A (en) * 2021-12-23 2022-04-15 科大讯飞股份有限公司 Writing beautifying method, device, equipment and readable storage medium
CN114356201B (en) * 2021-12-23 2024-02-20 科大讯飞股份有限公司 Writing beautifying method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN108733293B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN108733293A (en) writing track processing method and device
US9207858B2 (en) Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
CN109445676A (en) The method of the handwritten stroke information of user&#39;s input is deleted on handwriting equipment
CN107450833B (en) Handwriting writing setting method and system based on dual systems, storage medium and equipment
US20130111380A1 (en) Digital whiteboard implementation
US8542207B1 (en) Pencil eraser gesture and gesture recognition method for touch-enabled user interfaces
CN102566862B (en) Method and device for erasing geometric figures in interactive electronic whiteboard
CN106325737A (en) Method and equipment for erasing writing path
CN108932053A (en) Drawing practice, device, storage medium and computer equipment based on gesture
CN109215098B (en) Handwriting erasing method and device
CN106910232A (en) Line drawing eraser removes method and device
CN106775429A (en) A kind of method and apparatus based on setting-out storage on touch-screen
CN106909286A (en) A kind of information sharing method and device based on terminal
CN111524211B (en) Handwriting erasing method, handwriting erasing device and handwriting erasing equipment
CN110458920A (en) A kind of handwriting erasing method and device
CN108733296A (en) Method, device and equipment for erasing handwriting
CN106991711A (en) Handwriting editing method and system
US9542093B2 (en) Methods and apparatus for providing partial modification of a digital illustration
CN107203434A (en) A kind of texture shared method, device and computer-readable recording medium
CN106354366A (en) Method for treating desktop icons arrangement and device thereof
CN110347318B (en) Handwriting drawing method, device, equipment and storage medium
CN110297585A (en) Electronic white board realization method, device, equipment and storage medium
CN110297558A (en) Multi-point touch control method and device, intelligent interactive panel and storage medium
CN112035035B (en) Eraser realizing method and system capable of erasing strokes of top layer local area
JP6718524B2 (en) Delete items based on user interaction

Legal Events

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