CN109407954B - Writing track erasing method and system - Google Patents

Writing track erasing method and system Download PDF

Info

Publication number
CN109407954B
CN109407954B CN201811058564.5A CN201811058564A CN109407954B CN 109407954 B CN109407954 B CN 109407954B CN 201811058564 A CN201811058564 A CN 201811058564A CN 109407954 B CN109407954 B CN 109407954B
Authority
CN
China
Prior art keywords
writing
track
erasing
current
action
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.)
Active
Application number
CN201811058564.5A
Other languages
Chinese (zh)
Other versions
CN109407954A (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.)
Ningbo Sijun Technology Co ltd
Original Assignee
Ningbo Sijun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sijun Technology Co ltd filed Critical Ningbo Sijun Technology Co ltd
Priority to CN201811058564.5A priority Critical patent/CN109407954B/en
Publication of CN109407954A publication Critical patent/CN109407954A/en
Application granted granted Critical
Publication of CN109407954B publication Critical patent/CN109407954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method and a system for erasing a writing track, and relates to the technical field of information science. The method comprises the following steps: and when the current action of the user is an erasing action, storing the newly added track as a track array object, simultaneously drawing a point position array of the original writing track into a curve and storing the curve as a picture in the png format, then erasing the picture of the original writing track according to the area through which the input track passes, and displaying the processed writing track in real time. The method has the advantages that: the writing device has a plurality of working modes, and the erasing method can automatically judge whether the current erasing action is the erasing action according to the input mode of a user; the existing writing track can be locally erased, and the use habit of a user is met; the ink screen can be suitable for writing and displaying on the ink screen, and has the characteristics of no harm to eyes, good hand feeling and the like.

Description

Writing track erasing method and system
Technical Field
The invention relates to the technical field of information science, in particular to a method and a system for erasing a writing track.
Background
In the field of education, post-school practice is an indispensable link for consolidating knowledge and learning to use. With the development of science and technology, the paperless operation and practice in the field of education is gradually promoted.
Can improve the operating efficiency greatly, because different with the LCD screen, ink screen equipment can not have the injury to student's eyesight etc.. Therefore, in the education field, the ink screen equipment is used for distributing, practicing and correcting the operation, so that the ink screen equipment is widely popularized, and the operation efficiency is greatly improved.
The tablet personal computer has rich functions and is convenient for teachers and students to interact with each other, so that the teacher end is suitable for adopting the tablet personal computer. In order to improve the efficiency of teachers using tablet computers to carry out work such as homework correction and the like, when handwriting and erasing operations are required to be carried out on the tablet computers, the hand feeling and the operation experience are similar to those of paper materials when the operation is carried out on the tablet computers, the input requirements of users can be met, and the input requirements are consistent with the handwriting annotation habits of the users.
However, the existing handwriting erasing method is mainly applied to a liquid crystal display such as an electronic blackboard and a mobile phone, or other handwriting equipment of screens, and when the handwriting erasing is performed on the equipment, the following defects mainly exist: the handwriting object can not be generated for the handwriting, and the handwriting object can be generated for the handwriting, so that the handwriting detection is carried out by establishing complex algorithms such as external rectangles and the like, the operation time is long, the real-time display of the erasing effect can not be realized, in addition, the applicable equipment type has great limitation, and the efficiency is not high.
Disclosure of Invention
The present invention is directed to a method and system for erasing a writing trace, so as to solve the foregoing problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for erasing a written track comprises the following steps:
step 1, obtaining a current writing action;
step 2, judging whether the current writing action is an erasing action, if so, forming an erasing track input this time for storage and executing subsequent steps, otherwise, skipping to step 6;
step 3, storing the original writing track as png picture;
step 4, erasing the original writing track on the png picture according to the area through which the erasing track input this time passes to obtain the png picture after erasing;
and 5, displaying the erased png picture.
Preferably, step 1 is specifically: the handwriting equipment obtains user input and material information used by current input through sensing pressure, wherein the user input comprises an action mode and/or a writing action, the writing action is presented as a track of a two-dimensional plane and is stored as a point set array with elements of two-dimensional coordinates, and the array only has limited points.
Preferably, in step 2, the determining whether the current writing action is an erasing action specifically includes: acquiring the current system state and the collected user input information, and judging the operation type according to the current touch material, the track type and the position and the system state;
the current touch material comprises a pen point or a pen cap, and under the condition of different materials, the operation comprises writing and erasing; the current track type comprises an independent point or a track line, the current track position comprises a writable position or a button position, whether the current action is a click action or not is judged according to the track type and the position, and the writing or erasing action and the user interface switching interaction action are distinguished; the current system state comprises a draft state or a non-draft state, and operations in different states are performed on different layers.
Preferably, in step 2, the forming of the erase trajectory of the current input specifically includes: during erasing action, the collected track is stored in an erasing track array, elements in the array are two-dimensional point location coordinates, a handwriting area is added, and other attributes are added according to action types or system conditions and serve as an operable object to be stored.
Preferably, step 3 is specifically: before the erasing action is detected, the writing track is a dotted line formed by limited points in a two-dimensional coordinate system, when the erasing action is detected, the format of the writing track is adjusted, the point position array format of the vector is converted into a drawn curve graph, and all relevant lines on the current canvas are combined to be used as a two-dimensional png image format.
Preferably, the converting the point position array format of the vector into a drawn curve graph is implemented by the following method:
a1, newly building a canvas, and emptying the contents in the canvas;
a2, obtaining an array where all points are located;
a3, establishing a mapping relation between points and diameters of the points as an object array, wherein each element in the array is a drawing path which has a width attribute and comprises a queue, and the elements in the queue are the points collected in the front;
a4, traversing the current handwriting storage array to obtain a writing track line;
a5, establishing a mapping relation of width;
a6, traversing the current writing track line to obtain a point in the line;
a7, if the point is consistent with the width of the mapping relation processed currently, adding the point into the queue; if not, adding the current mapping relationship into the mapping relationship array, establishing a width mapping relationship, and adding the point into the queue;
a8, if the current line is not traversed, circularly executing A6-A7 until the traversal of the current line is finished, otherwise, entering A9;
a9, if the current handwriting storage array is not traversed, circularly executing A4-A8 until the current handwriting is traversed, otherwise entering A10;
and A10, obtaining the width arrays of all the points at present, traversing the width arrays, drawing each path with the same width, and finishing drawing the curve graph.
Preferably, step 4 is specifically: and drawing the erasing track into a smooth curve in the canvas, performing region clipping on the png picture in the canvas, and removing the region through which the erasing track passes to realize erasing of the writing track.
Preferably, step 5 is followed by the step of: and uploading the erased handwriting information to a server.
A written trace erasing system, comprising: the device comprises a writing board, a writing control unit, a storage control unit, a display control unit and a display screen;
the writing board is used for obtaining the current writing action, and comprises a writing pen or a finger which is used for touching the board surface and moving on the board surface;
the writing control unit is used for obtaining an operation action track obtained by the writing board, touching material information and judging the current action type;
the storage control unit is used for storing the original writing track as the png picture, acquiring an erasing track and erasing the original writing track according to the area where the erasing track passes;
the display control unit is used for acquiring the image updated by the storage control unit and transmitting the image to the display screen;
the display screen is used for displaying the updated image.
The invention has the beneficial effects that: according to the erasing method of the writing track provided by the embodiment of the invention, when the current action of the user is judged to be the erasing action, the newly added track is stored as the track array object, meanwhile, the point position array of the original writing track is drawn into the curve and stored as the picture in the png format, then, according to the area through which the input track passes, the picture of the original writing track is erased, and the processed writing track is displayed in real time. The method has the advantages that: (1) the erasing method can automatically judge whether the current erasing action is the erasing action according to the input mode of a user, (2) the method can locally erase the existing writing track and is in line with the use habit of the user, and (3) the method can be suitable for writing and displaying on an ink screen, and the ink screen has the characteristics of no harm to eyes, good hand feeling and the like.
Drawings
Fig. 1 is a schematic flow chart of a method for erasing a writing track according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a method for erasing a written track, including the following steps:
step 1, obtaining a current writing action;
step 2, judging whether the current writing action is an erasing action, if so, forming an erasing track input this time for storage and executing subsequent steps, otherwise, skipping to step 6;
step 3, storing the original writing track as png picture;
step 4, erasing the original writing track on the png picture according to the area through which the erasing track input this time passes to obtain the png picture after erasing;
and 5, displaying the erased png picture.
Wherein, the step 1 may specifically be: the handwriting equipment obtains user input and material information used by current input through sensing pressure, wherein the user input comprises an action mode and/or a writing action, the writing action is presented as a track of a two-dimensional plane and is stored as a point set array with elements of two-dimensional coordinates, and the array only has limited points.
In step 2, the judging whether the current writing action is an erasing action may specifically be: acquiring the current system state and the collected user input information, and judging the operation type according to the current touch material, the track type and the position and the system state;
the current touch material comprises a pen point or a pen cap, and under the condition of different materials, the operation comprises writing and erasing; the current track type comprises an independent point or a track line, the current track position comprises a writable position or a button position, whether the current action is a click action or not is judged according to the track type and the position, and the writing or erasing action and the user interface switching interaction action are distinguished; the current system state comprises a draft state or a non-draft state, and operations in different states are performed on different layers.
In step 2, the forming of the erase trajectory of the current input may specifically be: during erasing action, the collected track is stored in an erasing track array, elements in the array are two-dimensional point location coordinates, a handwriting area is added, and other attributes are added according to action types or system conditions and serve as an operable object to be stored.
The step 3 may specifically be: before the erasing action is detected, the writing track is a dotted line formed by limited points in a two-dimensional coordinate system, when the erasing action is detected, the format of the writing track is adjusted, the point position array format of the vector is converted into a drawn curve graph, and all relevant lines on the current canvas are combined to be used as a two-dimensional png image format.
The conversion of the point position array format of the vector into the drawn curve graph can be implemented by adopting the following method:
a1, newly building a canvas, and emptying the contents in the canvas;
a2, obtaining an array where all points are located;
a3, establishing a mapping relation between points and diameters of the points as an object array, wherein each element in the array is a drawing path which has a width attribute and comprises a queue, and the elements in the queue are the points collected in the front;
a4, traversing the current handwriting storage array to obtain a writing track line;
a5, establishing a mapping relation of width;
a6, traversing the current writing track line to obtain a point in the line;
a7, if the point is consistent with the width of the mapping relation processed currently, adding the point into the queue; if not, adding the current mapping relationship into the mapping relationship array, establishing a width mapping relationship, and adding the point into the queue;
a8, if the current line is not traversed, circularly executing A6-A7 until the traversal of the current line is finished, otherwise, entering A9;
a9, if the current handwriting storage array is not traversed, circularly executing A4-A8 until the current handwriting is traversed, otherwise entering A10;
and A10, obtaining the width arrays of all the points at present, traversing the width arrays, drawing each path with the same width, and finishing drawing the curve graph.
The step 4 may specifically be: and drawing the erasing track into a smooth curve in the canvas, performing region clipping on the png picture in the canvas, and removing the region through which the erasing track passes to realize erasing of the writing track.
Step 5 may be followed by the step of: and uploading the erased handwriting information to a server.
Example two
The embodiment of the invention provides a writing track erasing system, which comprises: the device comprises a writing board, a writing control unit, a storage control unit, a display control unit and a display screen;
the writing board is used for obtaining the current writing action, and comprises a writing pen or a finger which is used for touching the board surface and moving on the board surface;
the writing control unit is used for obtaining an operation action track obtained by the writing board, touching material information and judging the current action type;
the storage control unit is used for storing the original writing track as the png picture, acquiring an erasing track and erasing the original writing track according to the area where the erasing track passes;
the display control unit is used for acquiring the image updated by the storage control unit and transmitting the image to the display screen;
the display screen is used for displaying the updated image.
The erasing method of the erasing system can be referred to the description in the first embodiment, and is not described herein again.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The embodiment of the invention provides a method for erasing a writing track, which comprises the following steps:
step 1, the writing device obtains the current action of the user.
The writing device comprises a writing board and a writing control unit, wherein the writing board obtains the operation action of a user on the writing device, and the operation action comprises the step of touching the board surface by using a stylus or a finger and moving on the board surface. The writing control unit judges the touch material to obtain the moving track of the stylus;
the writing board adopts ink screen equipment, and the handwriting feel is similar to the visual perception and the paper handwriting experience. The ink screen equipment has the advantages of no screen flashing, no light emitting and the like, has a protective effect on the eyesight of a user, and is very suitable for application in the field of education. The ink screen input device does not have the glass surface of the liquid crystal screen, and the thickness of a writing line can be finely adjusted according to pen pressure, pen point retention time and the like during writing, so that the handwriting level of a user can be improved.
And 2, the writing control unit obtains information such as the operation action track and the touch material obtained by the writing board, and judges the current action type according to the comprehensive information such as the state of the control unit. If the current action type is an erasing action, performing the step 3, and if the current action type is not the erasing action, performing other processing on the writing track by using display equipment to display the handwriting;
the following is a detailed explanation of the determination method of the above-described action type. The actions in the present system may be writing or erasing actions, and may be draft or answering actions. The actions of the system can be divided into the following four combinations: a writing operation in the draft mode, an erasing operation in the draft mode, a writing operation in the answer mode, and an erasing operation in the answer mode.
Therefore, when the interface operation on the hardware is detected, the type of the operation is detected and classified. In this embodiment, the detection and classification of the input actions first adopts a method of detecting a current state, where the current state may be in an answer mode or a draft mode, which enables a user to select in advance on a system operation interface, add the current state to an input object in advance when capturing an input, and add an input type or a state attribute to the object for subsequent processing and resolution.
Since the writing and erasing operations are frequent, the continuous use of the mode of state selection for distinction increases the click rate of the user, thereby bringing inconvenience to the user operation. In this embodiment, another method is used to distinguish between writing and erasing: and switching the handwriting pen. In this embodiment, the stylus pen used in the input device has a pen point and two ends of a pen cap, respectively. When the writing board collects pen point input, judging the input type as writing action; and when the writing board collects the input of the pen cap, judging the input type as an erasing action.
Therefore, the system realizes classification detection of four actions.
Step 3, the storage control unit stores the original writing track as a png format picture, which specifically comprises the following steps:
the storage control unit stores the original data of each track. The track original data is the point array format arranged by the writing board and the writing control unit and the object added with information such as position, type and the like when writing action is performed each time. In this step, the storage control unit renders the original data, and converts the rendered image into a png format picture.
The drawing method specifically comprises the following steps:
(1) and newly building a canvas, and emptying the contents in the canvas.
(2) An array is obtained where all points are located.
(3) And establishing a mapping relation between the points and the diameters of the points to serve as an object array. Each element in the array is a drawing path that has a width attribute and contains a queue, the elements in the queue being previously collected points.
(4) And traversing the current handwriting storage array to obtain a writing track line.
(5) And establishing a mapping relation of width.
(6) And traversing the current writing track line to obtain one point in the line.
(7) If the point is consistent with the width of the mapping relation processed currently, adding the point into the queue; and if the mapping relation does not accord with the mapping relation, adding the current mapping relation into the mapping relation array, newly establishing a width mapping relation, and adding the point into the queue.
(8) And if the current line is not traversed and ended, circularly executing (6) to (7). Otherwise, go to (9).
(9) And (4) if the current handwriting storage array is not traversed, executing (4) to (8) in a circulating way, otherwise, entering (10).
(10) A width array of all points is currently available. And traversing the width array, and drawing each path with the same width.
(11) And finishing the execution of the drawing algorithm.
The method for converting the image into the picture specifically comprises the following steps: and the storage control unit stores the modified canvas format drawn by the method.
And 4, the writing control unit transmits the handwriting to a storage control unit and stores the handwriting into storage equipment, and the method specifically comprises the following steps:
the writing control unit may arrange the writing action, the touch material, etc. into the internal mark code in step 2. In the step, the storage control unit obtains the handwriting and stores the handwriting into an erasing track object, wherein the erasing track object comprises specific information such as a coordinate track array of points, an erasing track position, a belonging title type and the like.
Step 5, the storage control unit erases the area where the erasing track passes in the storage medium, specifically:
and the erased handwriting is the png format image sorted in the step 3, and the image is subjected to area clearing according to the erasing track stored in the step 4. The storage control unit firstly determines the canvas of the image to be erased and the position of the canvas according to the position information and the like in the erasing track object. And after obtaining the corresponding canvas mark, drawing the handwriting erasing area on the canvas. And after the area is drawn, saving the corresponding area as a clipping area, and clearing the canvas in the clipping area to obtain the image after erasing and modification.
Step 6, the display control unit refreshes and displays the erased handwriting information, which specifically comprises the following steps: the display control unit clears the information already drawn on the current screen and displays the currently modified canvas.
And 7, uploading the erased handwriting information to a server by the storage control unit. The server is a remote storage device, and the system is applied to the ink screen terminal and is best suitable for application in a C/S mode. And compressing the erased handwriting, transmitting the compressed handwriting to a server end through a network, and storing the compressed handwriting. It is within the scope of the present invention to employ only equivalent methods of the foregoing invention.
In this embodiment, through the above steps, when erasing, the existing writing trace is erased in real time and the erasing result is displayed by processing the writing device, the writing control unit, the erasing control unit, the display device, and the display control unit.
It can be seen that the method and system provided by the present invention have the following advantages:
(1) whether the current action is the erasing action can be automatically judged according to the input mode of the user. The user does not need to switch the eraser or the pencil during input, the action is directly collected and recognized according to the input medium and the input position during input, and the switching of the pen point and the pen cap is more in line with the writing habit of the user.
(2) Partial erasing of handwriting can be realized, and detailed operation is facilitated, so that unnecessary erasing and rewriting are avoided, and the erasing habit of a user is met.
(3) And simultaneously, the erasing effect of the strokes is displayed on an ink screen interface in real time while the data is cleared. The instant feedback of the erasing result is beneficial to improving the operation efficiency of the user and accords with the writing habit of the user.
(4) The ink screen equipment can be adopted, has the use feeling of paper equipment, and has the advantages of protecting the eyesight of a user and providing better input texture compared with a liquid crystal screen.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: according to the erasing method of the writing track provided by the embodiment of the invention, when the current action of the user is judged to be the erasing action, the newly added track is stored as the track array object, meanwhile, the point position array of the original writing track is drawn into the curve and stored as the picture in the png format, then, according to the area through which the input track passes, the picture of the original writing track is erased, and the processed writing track is displayed in real time. The method has the advantages that: (1) the erasing method can automatically judge whether the current erasing action is the erasing action according to the input mode of a user, (2) the method can locally erase the existing writing track and is in line with the use habit of the user, and (3) the method can be suitable for writing and displaying on an ink screen, and the ink screen has the characteristics of no harm to eyes, good hand feeling and the like.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (4)

1. A method for erasing a written track is characterized by comprising the following steps:
step 1, obtaining a current writing action;
step 2, judging whether the current writing action is an erasing action, if so, forming an erasing track input this time for storage and executing subsequent steps, otherwise, skipping to step 6;
step 3, storing the original writing track as png picture;
step 4, erasing the original writing track on the png picture according to the area through which the erasing track input this time passes to obtain the png picture after erasing;
step 5, displaying the erased png picture;
step 6, after the writing track is processed, the display equipment displays the handwriting;
wherein:
in step 2, the step of judging whether the current writing action is an erasing action specifically includes: acquiring the current system state and the collected user input information, and judging the operation type according to the current touch material, the track type and the position and the system state;
the current touch material comprises a pen point or a pen cap, and under the condition of different materials, the operation comprises writing and erasing; the current track type comprises an independent point or a track line, the current track position comprises a writable position or a button position, whether the current action is a click action or not is judged according to the track type and the position, and the writing or erasing action and the user interface switching interaction action are distinguished; the current system state comprises a draft state or a non-draft state, and the operation under different states is carried out on different layers;
wherein, the step 1 specifically comprises the following steps: the method comprises the steps that the handwriting equipment obtains user input and material information used by current input through sensing of pressure, wherein the user input comprises writing actions, the writing actions are represented as tracks of a two-dimensional plane and stored as point set arrays of which elements are two-dimensional coordinates, and the arrays only have limited points;
in step 2, the forming of the erase trajectory of the current input specifically includes: during erasing action, storing the acquired track into an erasing track array, wherein elements in the array are two-dimensional point location coordinates, handwriting areas are added, and action types or other attributes are added according to system conditions and are used as an operable object for storage;
wherein, the step 3 is specifically as follows: before the erasing action is detected, the writing track is a dotted line formed by limited points in a two-dimensional coordinate system, when the erasing action is detected, the format of the writing track is adjusted, the point position array format of the vector is converted into a drawn curve graph, and all relevant lines on the current canvas are combined to be used as a two-dimensional png image format;
the point position array format of the vector is converted into a drawn curve graph, and the method is implemented by adopting the following method:
a1, newly building a canvas, and emptying the contents in the canvas;
a2, obtaining an array where all points are located;
a3, establishing a mapping relation between points and diameters of the points as an object array, wherein each element in the array is a drawing path which has a width attribute and comprises a queue, and the elements in the queue are the points collected in the front;
a4, traversing the current handwriting storage array to obtain a writing track line;
a5, establishing a mapping relation of width;
a6, traversing the current writing track line to obtain a point in the line;
a7, if the point is consistent with the width of the mapping relation processed currently, adding the point into the queue; if not, adding the current mapping relationship into the mapping relationship array, establishing a width mapping relationship, and adding the point into the queue;
a8, if the current line is not traversed, circularly executing A6-A7 until the traversal of the current line is finished, otherwise, entering A9;
a9, if the current handwriting storage array is not traversed, circularly executing A4-A8 until the current handwriting is traversed, otherwise, entering A10;
a10, obtaining the width array of all points at present, traversing the width array, drawing each path with the same width, and completing the drawing of the curve graph.
2. The method for erasing a writing trace according to claim 1, wherein the step 4 specifically comprises: and drawing the erasing track into a smooth curve in the canvas, performing region clipping on the png picture in the canvas, and removing the region through which the erasing track passes to realize erasing of the writing track.
3. An erasing method of a writing trace according to claim 1, characterized by further comprising, after the step 5, the steps of: and uploading the erased handwriting information to a server.
4. An erasing system of a writing trace based on the erasing method of a writing trace of claim 1, comprising: the device comprises a writing board, a writing control unit, a storage control unit, a display control unit and a display screen;
the writing board is used for obtaining the current writing action, and comprises a writing pen or a finger which is used for touching the board surface and moving on the board surface;
the writing control unit is used for obtaining an operation action track obtained by the writing board, touching material information and judging the current action type;
judging whether the current writing action is an erasing action, specifically: acquiring the current system state and the collected user input information, and judging the operation type according to the current touch material, the track type and the position and the system state;
the current touch material comprises a pen point or a pen cap, and under the condition of different materials, the operation comprises writing and erasing; the current track type comprises an independent point or a track line, the current track position comprises a writable position or a button position, whether the current action is a click action or not is judged according to the track type and the position, and the writing or erasing action and the user interface switching interaction action are distinguished; the current system state comprises a draft state or a non-draft state, and the operation under different states is carried out on different layers;
the storage control unit is used for storing the original writing track as the png picture, acquiring an erasing track and erasing the original writing track according to the area where the erasing track passes;
the display control unit is used for acquiring the image updated by the storage control unit and transmitting the image to the display screen;
the display screen is used for displaying the updated image.
CN201811058564.5A 2018-09-11 2018-09-11 Writing track erasing method and system Active CN109407954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811058564.5A CN109407954B (en) 2018-09-11 2018-09-11 Writing track erasing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811058564.5A CN109407954B (en) 2018-09-11 2018-09-11 Writing track erasing method and system

Publications (2)

Publication Number Publication Date
CN109407954A CN109407954A (en) 2019-03-01
CN109407954B true CN109407954B (en) 2022-02-11

Family

ID=65464014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811058564.5A Active CN109407954B (en) 2018-09-11 2018-09-11 Writing track erasing method and system

Country Status (1)

Country Link
CN (1) CN109407954B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109920029A (en) * 2019-03-18 2019-06-21 河北华发教育科技股份有限公司 A method of drawing erasable figure
CN110879686B (en) * 2019-11-13 2021-05-18 讯飞幻境(北京)科技有限公司 Label erasing method and device and electronic equipment
CN111880716B (en) * 2020-07-06 2022-06-10 深圳博为教育科技有限公司 Gesture recognition method and device and touch control equipment
CN112596623B (en) * 2020-12-23 2022-12-02 深圳市鸿合创新信息技术有限责任公司 Interaction method and device of interaction equipment, electronic equipment and storage medium
CN113288712B (en) * 2021-05-08 2024-03-26 傅键炯 Clinical rehabilitation training device for neurology
CN113345384B (en) * 2021-05-28 2022-06-10 深圳市爱码讯实业发展有限公司 Handwriting erasing method and system for handwriting board
CN115705141A (en) * 2021-08-11 2023-02-17 广州视源电子科技股份有限公司 Handwriting erasing method and device, storage medium and electronic equipment
CN113934394B (en) * 2021-10-19 2024-05-03 河北师达教育科技有限公司 Method, device and terminal equipment for realizing memory display in display screen
CN114444451A (en) * 2021-12-14 2022-05-06 北京鸿合爱学教育科技有限公司 Remote annotation method and device
CN114356205A (en) * 2022-01-04 2022-04-15 掌阅科技股份有限公司 Note processing method, electronic device and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992460A (en) * 2015-05-28 2015-10-21 深圳市创易联合科技有限公司 Method for erasing vector scripts
CN106843650A (en) * 2017-01-17 2017-06-13 创维光电科技(深圳)有限公司 The touch identification method and system of a kind of touch screen integrated machine
CN107450825A (en) * 2016-05-31 2017-12-08 富士施乐株式会社 Information processor and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201965567U (en) * 2011-04-02 2011-09-07 周佳 Electromagnetic stylus
US9383834B2 (en) * 2012-12-26 2016-07-05 Xerox Corporation System and method for creating and modifying physically transient handwritten digital documents
CN105913467B (en) * 2016-04-01 2017-02-22 北京视骏科技有限公司 Electronic writing method supporting draft function
CN106383657A (en) * 2016-09-26 2017-02-08 广东小天才科技有限公司 Handwriting input control method and handwriting input control apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992460A (en) * 2015-05-28 2015-10-21 深圳市创易联合科技有限公司 Method for erasing vector scripts
CN107450825A (en) * 2016-05-31 2017-12-08 富士施乐株式会社 Information processor and method
CN106843650A (en) * 2017-01-17 2017-06-13 创维光电科技(深圳)有限公司 The touch identification method and system of a kind of touch screen integrated machine

Also Published As

Publication number Publication date
CN109407954A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109407954B (en) Writing track erasing method and system
CN109445676B (en) Method for deleting handwritten stroke information input by user on handwriting equipment
US8244233B2 (en) Systems and methods for operating a virtual whiteboard using a mobile phone device
CN107273002B (en) Handwriting input answering method, terminal and computer readable storage medium
CN108334486B (en) Table control method, device, equipment and storage medium
JP5240653B2 (en) Electronic pen system, terminal device and program thereof
EP2781992A2 (en) Portable terminal with pen for providing a haptic effect
CN108733296B (en) Method, device and equipment for erasing handwriting
US20150212713A1 (en) Information processing apparatus, information processing method, and computer-readable recording medium
CN109358799B (en) Method for adding handwritten annotation information input by user on handwriting equipment
CN112596660B (en) Writing display processing method and electronic equipment
CN113703631A (en) Writing control method and device, electronic equipment and storage medium
JP5408513B2 (en) Electronic pen system and program thereof
JP5708113B2 (en) Computer apparatus and program thereof
JP3169604U (en) Terminal device and electronic pen system
JP5408511B2 (en) Electronic pen system, computer apparatus and program thereof
JP3174897U (en) Teaching material content display system, computer apparatus thereof, and sheet used therefor
CN106371644B (en) Method and device for simultaneously writing by multiple persons on screen
JP2002278703A (en) Information input device and electronic blackboard system
CN110570930A (en) medical image sketching method and system based on tablet personal computer
CN113377220B (en) Information storage method and device
CN113345384B (en) Handwriting erasing method and system for handwriting board
JP2021081762A (en) Question creation system, image formation device, question creation program, and question creation device
JP5899819B2 (en) Learning system and program
JP3299577B2 (en) Interactive correction device

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