CN109358799B - Method for adding handwritten annotation information input by user on handwriting equipment - Google Patents
Method for adding handwritten annotation information input by user on handwriting equipment Download PDFInfo
- Publication number
- CN109358799B CN109358799B CN201811056990.5A CN201811056990A CN109358799B CN 109358799 B CN109358799 B CN 109358799B CN 201811056990 A CN201811056990 A CN 201811056990A CN 109358799 B CN109358799 B CN 109358799B
- Authority
- CN
- China
- Prior art keywords
- handwriting
- stroke
- points
- information
- array
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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
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)
- Processing Or Creating Images (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention discloses a method for adding handwritten annotation information input by a user on handwriting equipment, and relates to the technical field of information science. The method comprises the following steps: after receiving the handwritten information input by the user and identifying the information type as the handwritten information, judging whether to update the stored handwritten annotation information or not by comparing the existing information with the track information, and displaying the modified handwriting information in real time by the display equipment. In the using process, the handwriting equipment has multiple working modes, the handwriting annotation method can select functions of handwriting, erasing, collecting and the like according to the buttons, and after handwriting annotation tracks on a screen are read, handwriting before and after handwriting can be judged, so that whether new strokes are stored or not is judged, the handwriting annotation requirements of partial users are met, the new effect of the strokes is displayed on an ink screen interface in real time while data storage is achieved, the display speed is high, and the efficiency is high.
Description
Technical Field
The invention relates to the technical field of information science, in particular to a method for adding handwritten annotation information input by a user on handwriting equipment.
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 annotation method is mainly applied to a liquid crystal display such as an electronic blackboard and a mobile phone, or other handwriting devices with screens, and when the handwriting annotation is performed on the devices, the following defects mainly exist: the handwriting object can not be generated on the handwriting, but can be generated on the handwriting, and the handwriting detection is carried out by establishing complex algorithms such as external rectangles and the like, so that the operation time is long, the display of the annotation effect by handwriting can not be realized in real time, in addition, the applicable equipment type has great limitation, the efficiency is low, and the real-time display can not be realized.
Disclosure of Invention
The invention aims to provide a method for adding handwritten annotation information input by a user on handwriting equipment, so that the problems in the prior art are solved.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for adding handwritten annotation information input by a user on handwriting equipment comprises the following steps:
step 1, a handwriting device obtains the current action of a user;
step 2, judging whether the current action is a handwritten annotation action, if so, executing the subsequent steps, otherwise, skipping to the step 11;
step 3, the display equipment stores the original writing track and the adding position information from the memory, and the handwriting equipment stores the newly added handwriting annotation track and the adding position information;
step 4, selecting a point m from the newly added handwritten annotation track;
step 5, selecting a stroke L from the original writing track;
step 6, acquiring each point p on the stroke L;
step 7, comparing the positions of the point m and the point p, judging whether the two points are overlapped, if so, recording the stroke L, and executing the step 8, otherwise, skipping to the step 6; meanwhile, judging whether the point p is the last point of the stroke L or not, if so, executing the step 8, otherwise, jumping to the step 6;
step 8, judging whether the stroke L is the last stroke of the original writing track, if so, executing step 9, otherwise, skipping to step 5;
step 9, judging whether the point m is the last point of the newly-added handwritten annotation track, if so, executing step 10, otherwise, skipping to step 4;
step 10, adding the stroke L recorded in the step 7 to a memory;
and step 11, displaying the existing strokes in the memory.
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, 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; and judging whether the user interface is in a handwriting mode, an erasing mode or a collection mode, and distinguishing the writing or erasing action from the user interface switching interaction action.
Preferably, in step 3, the original writing track is stored in the form of a stroke array, each element in the array represents a stroke object, and each stroke object is an object array of points formed by a limited number of two-dimensional coordinates.
Preferably, in step 7, the positions of the point m and the point p are compared to determine whether the two points coincide, specifically, if the difference between the coordinates of the two points is smaller than a preset threshold, the two points coincide, otherwise, the two points do not coincide; the preset threshold is adjusted according to the selection of the user.
Preferably, step 10 is specifically that the strokes are stored in the memory in the form of object arrays, and when accessing, the arrays in the memory are accessed and corresponding strokes are added from the arrays by determining the positions of the marked strokes in the arrays in the memory.
Preferably, step 11 specifically includes clearing information already drawn on the current display screen, where the drawing information refers to information displayed on the current display screen; through traversing the stroke array in the memory, performing smooth connection drawing on points on the stroke array, and displaying the handwriting added with handwriting annotation processing again, wherein the smooth connection drawing specifically comprises the following steps: the elements on the stroke array are coordinates of points, the points are limited points, when the stroke array is drawn into a line, the diameter of the points is processed, and the points are connected according to the distance and the sequence of strokes; and the connection processing is to connect the points on the same stroke according to the sequence.
The invention has the beneficial effects that: according to the method for adding the handwritten annotation information input by the user to the handwriting equipment, provided by the embodiment of the invention, after the handwritten information input by the user is received and the information type is identified to be the handwritten information, whether the stored handwritten annotation information is updated or not is judged by comparing the existing information with the track information, and the display equipment displays the modified handwriting information in real time. In the using process, the handwriting equipment has multiple working modes, the handwriting annotation method can select functions of handwriting, erasing, collecting and the like according to the buttons, and after handwriting annotation tracks on a screen are read, handwriting before and after handwriting can be judged, so that whether new strokes are stored or not is judged, the handwriting annotation requirements of partial users are met, the new effect of the strokes is displayed on an ink screen interface in real time while data storage is achieved, the display speed is high, and the efficiency is high.
Drawings
Fig. 1 is a flowchart illustrating a method for adding handwritten annotation information input by a user on a handwriting device 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.
As shown in fig. 1, an embodiment of the present invention provides a method for adding handwritten annotation information input by a user on a handwriting device, including the following steps:
step 1, a handwriting device obtains the current action of a user;
step 2, judging whether the current action is a handwritten annotation action, if so, executing the subsequent steps, otherwise, skipping to the step 11;
step 3, the display equipment stores the original writing track and the adding position information from the memory, and the handwriting equipment stores the newly added handwriting annotation track and the adding position information;
step 4, selecting a point m from the newly added handwritten annotation track;
step 5, selecting a stroke L from the original writing track;
step 6, acquiring each point p on the stroke L;
step 7, comparing the positions of the point m and the point p, judging whether the two points are overlapped, if so, recording the stroke L, and executing the step 8, otherwise, skipping to the step 6; meanwhile, judging whether the point p is the last point of the stroke L or not, if so, executing the step 8, otherwise, jumping to the step 6;
step 8, judging whether the stroke L is the last stroke of the original writing track, if so, executing step 9, otherwise, skipping to step 5;
step 9, judging whether the point m is the last point of the newly-added handwritten annotation track, if so, executing step 10, otherwise, skipping to step 4;
step 10, adding the stroke L recorded in the step 7 to a memory;
and step 11, displaying the existing strokes in the memory.
The handwriting equipment can comprise a handwriting board and a handwriting control unit, wherein the handwriting board is used for obtaining operation actions of a user on the handwriting equipment, and the operation actions comprise using a handwriting pen or a finger to touch a board surface and moving on the board surface. The handwriting board can adopt a tablet personal computer device, and the handwriting texture and the visual perception are similar to the paper handwriting experience. The tablet personal computer has powerful functions and is suitable for teachers. And can finely tune the thickness of the writing line according to the pen pressure, the pen point dwell time and the like when writing, thereby improving the writing experience of users.
The handwriting control unit can judge the action type according to the selection of the user and obtain a handwritten moving track; the action may be writing or erasing action or may be collecting action, so when the interface operation on the hardware is detected, the system detects and classifies the type of the operation. The user preselects on the system operation interface, adds the current state to the input object in advance when capturing the input, and adds the input type or state attribute to the object for the resolution of the subsequent processing.
When the handwriting equipment collects data, the track position of a point is collected. The handwriting equipment detects that the input is not a straight line every time, but a line formed by a plurality of points is formed by limited points, judges whether the two points are on the same stroke or not according to the time delay of each point of handwriting, then respectively stores the point position input of the handwriting board according to the stroke, and transmits all the writing tracks to be displayed to a display screen for displaying.
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.
The step 2 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; and judging whether the user interface is in a handwriting mode, an erasing mode or a collection mode, and distinguishing the writing or erasing action from the user interface switching interaction action.
In step 3, the original writing track is stored in a stroke array form, each element in the array represents a stroke object, and each stroke object is an object array of points formed by a limited number of two-dimensional coordinates.
Step 7, comparing the positions of the point m and the point p, and judging whether the two points coincide, specifically, if the difference between the coordinates of the two points is smaller than a preset threshold value, the two points coincide, otherwise, the two points do not coincide; the preset threshold is adjusted according to the selection of the user.
Wherein, the preset threshold value can be understood as the stroke thickness set by the user. The specific judgment method may be: the two points m and p are both points on a two-dimensional plane, and the abscissa and the ordinate of the two points are subtracted from each other. And when the two distances are both smaller than the threshold value, the two points are determined to be coincident.
If the two points are judged to be coincident, whether the point is the last point on the stroke needs to be judged, and if not, the point which is not compared needs to be judged. If yes, the stroke does not pass through the point on the newly added handwriting track, and the step 8 is executed to judge the next stroke.
Step 10 may specifically be that the strokes are stored in the memory in the form of an object array, and when accessing, the array in the memory is accessed and corresponding strokes are added from the array by determining the position of the marked strokes in the array in the memory.
The following explains the stroke adding operation described above. Firstly, the storage structure of strokes is introduced: all strokes are stored in an array in memory, with each element in the array representing a stroke. The structure of each stroke element is trajectory information and other additional information. The trajectory information for each stroke is an array, and each element of the array is the coordinates of a point on the stroke. When the handwriting speed is too high during the collection and the input, points in each stroke are possibly sparse, so that the intersection judgment cannot be carried out in other modes such as point location mapping, whether the intersection is subjected to minimum external rectangles or not during the writing, and the problems that the handwriting efficiency is reduced, the writing track passed by the handwriting is not correctly displayed and the like are solved.
And determining the subscript of each newly added stroke as the last subscript of the array in the memory plus one according to the storage structure.
Step 11 may specifically be that information already drawn on the current display screen is cleared, where the drawing information refers to information displayed on the current display screen; through traversing the stroke array in the memory, performing smooth connection drawing on points on the stroke array, and displaying the handwriting added with handwriting annotation processing again, wherein the smooth connection drawing specifically comprises the following steps: the elements on the stroke array are coordinates of points, the points are limited points, when the stroke array is drawn into a line, the diameter of the points is processed, and the points are connected according to the distance and the sequence of strokes; and the connection processing is to connect the points on the same stroke according to the sequence.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: according to the method for adding the handwritten annotation information input by the user to the handwriting equipment, provided by the embodiment of the invention, after the handwritten information input by the user is received and the information type is identified to be the handwritten information, whether the stored handwritten annotation information is updated or not is judged by comparing the existing information with the track information, and the display equipment displays the modified handwriting information in real time. In the using process, the handwriting equipment has multiple working modes, the handwriting annotation method can select functions of handwriting, erasing, collecting and the like according to the buttons, and after handwriting annotation tracks on a screen are read, handwriting before and after handwriting can be judged, so that whether new strokes are stored or not is judged, the handwriting annotation requirements of partial users are met, the new effect of the strokes is displayed on an ink screen interface in real time while data storage is achieved, the display speed is high, and the efficiency is high.
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 (5)
1. A method for adding handwritten annotation information input by a user on handwriting equipment is characterized by comprising the following steps:
step 1, a handwriting device obtains the current action of a user; 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 an action mode and/or a writing action, the writing action is presented as a track of a two-dimensional plane and stored as a point set array of which the elements are two-dimensional coordinates, and the array only has limited points;
step 2, judging whether the current action is a handwritten annotation action, if so, executing the subsequent steps, otherwise, skipping to the step 11;
step 3, the display equipment stores the original writing track and the adding position information from the memory, and the handwriting equipment stores the newly added handwriting annotation track and the adding position information;
step 4, selecting a point m from the newly added handwritten annotation track;
step 5, selecting a stroke L from the original writing track;
step 6, acquiring each point p on the stroke L;
step 7, comparing the positions of the point m and the point p, judging whether the two points are overlapped, if so, recording the stroke L, and executing the step 8, otherwise, skipping to the step 6; meanwhile, judging whether the point p is the last point of the stroke L or not, if so, executing the step 8, otherwise, jumping to the step 6; step 7, comparing the positions of the point m and the point p, and judging whether the two points coincide, specifically, if the difference between the coordinates of the two points is smaller than a preset threshold value, the two points coincide, otherwise, the two points do not coincide; the preset threshold value is adjusted according to the selection of a user;
step 8, judging whether the stroke L is the last stroke of the original writing track, if so, executing step 9, otherwise, skipping to step 5;
step 9, judging whether the point m is the last point of the newly-added handwritten annotation track, if so, executing step 10, otherwise, skipping to step 4;
step 10, adding the stroke L recorded in the step 7 to a memory;
and step 11, displaying the existing strokes in the memory.
2. The method for adding handwritten annotation information input by a user on handwriting equipment according to claim 1, wherein in step 2, 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; and judging whether the user interface is in a handwriting mode, an erasing mode or a collection mode, and distinguishing the writing or erasing action from the user interface switching interaction action.
3. The method of claim 1, wherein in step 3, the original writing track is stored in the form of a stroke array, each element in the array representing a stroke object, each stroke object being an object array of points formed by a finite number of two-dimensional coordinates.
4. The method according to claim 1, wherein the strokes are stored in the memory in an object array form, and when accessing, the memory is accessed by determining the position of the marked stroke in the array in the memory, and the corresponding stroke is added from the array.
5. The method for adding handwritten annotation information input by a user on handwriting equipment according to claim 1, wherein step 11 specifically is to remove information already drawn on the current display screen, where the drawn information refers to information displayed on the current display screen; through traversing the stroke array in the memory, performing smooth connection drawing on points on the stroke array, and displaying the handwriting added with handwriting annotation processing again, wherein the smooth connection drawing specifically comprises the following steps: the elements on the stroke array are coordinates of points, the points are limited points, when the stroke array is drawn into a line, the diameter of the points is processed, and the points are connected according to the distance and the sequence of strokes; and the connection processing is to connect the points on the same stroke according to the sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811056990.5A CN109358799B (en) | 2018-09-11 | 2018-09-11 | Method for adding handwritten annotation information input by user on handwriting equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811056990.5A CN109358799B (en) | 2018-09-11 | 2018-09-11 | Method for adding handwritten annotation information input by user on handwriting equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109358799A CN109358799A (en) | 2019-02-19 |
CN109358799B true CN109358799B (en) | 2021-06-15 |
Family
ID=65350883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811056990.5A Active CN109358799B (en) | 2018-09-11 | 2018-09-11 | Method for adding handwritten annotation information input by user on handwriting equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358799B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185445A (en) * | 2019-04-17 | 2022-10-14 | 华为技术有限公司 | Method for adding annotations and electronic equipment |
CN112053301B (en) * | 2020-09-03 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Method and device for generating smear image, storage medium and terminal equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916174A (en) * | 2010-06-28 | 2010-12-15 | 汉王科技股份有限公司 | Display method and device thereof, treatment method and device thereof for electronic document handwriting |
CN102156577A (en) * | 2011-03-28 | 2011-08-17 | 安徽科大讯飞信息科技股份有限公司 | Method and system for realizing continuous handwriting recognition input |
CN103092822A (en) * | 2011-11-07 | 2013-05-08 | 汉王科技股份有限公司 | Method and device for adding annotations in electronic document |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150011621A (en) * | 2013-07-23 | 2015-02-02 | 주식회사 케이티 | Method of providing additional information for electronic books and apparatus therefor |
CN107656633A (en) * | 2017-10-19 | 2018-02-02 | 广州视源电子科技股份有限公司 | Intelligent pen, control method, device, equipment and storage medium of intelligent pen |
-
2018
- 2018-09-11 CN CN201811056990.5A patent/CN109358799B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916174A (en) * | 2010-06-28 | 2010-12-15 | 汉王科技股份有限公司 | Display method and device thereof, treatment method and device thereof for electronic document handwriting |
CN102156577A (en) * | 2011-03-28 | 2011-08-17 | 安徽科大讯飞信息科技股份有限公司 | Method and system for realizing continuous handwriting recognition input |
CN103092822A (en) * | 2011-11-07 | 2013-05-08 | 汉王科技股份有限公司 | Method and device for adding annotations in electronic document |
Also Published As
Publication number | Publication date |
---|---|
CN109358799A (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445676B (en) | Method for deleting handwritten stroke information input by user on handwriting equipment | |
CN109407954B (en) | Writing track erasing method and system | |
CN108334486B (en) | Table control method, device, equipment and storage medium | |
KR101825154B1 (en) | Overlapped handwriting input method | |
US9141134B2 (en) | Utilization of temporal and spatial parameters to enhance the writing capability of an electronic device | |
CN107273002B (en) | Handwriting input answering method, terminal and computer readable storage medium | |
CN105468278B (en) | Contact action identification, response, game control method and the device of virtual key | |
US11734920B2 (en) | Object detection device, object detection method, and recording medium | |
CN103390358A (en) | Method and device for judging normativity of character writing operation of electronic equipment | |
CN104679416A (en) | Mobile terminal and screen control method thereof | |
US20150212713A1 (en) | Information processing apparatus, information processing method, and computer-readable recording medium | |
CN104007920A (en) | Method for selecting waveforms on electronic test equipment | |
CN109358799B (en) | Method for adding handwritten annotation information input by user on handwriting equipment | |
CN109933276B (en) | Method for judging false hand-sleeve touch in handwriting of large-screen electronic whiteboard based on touch | |
CN109814787B (en) | Key information determination method, device, equipment and storage medium | |
JP2017515241A (en) | Element deletion method and apparatus based on touch panel | |
CN114690967A (en) | Touch operation processing method and device, interactive panel and storage medium | |
CN103513884A (en) | Information processing device and information processing method | |
CN107608510A (en) | Method for building up, device and the electronic equipment in gesture model storehouse | |
CN109509240A (en) | A kind of smart machine display methods, readable storage medium storing program for executing and smart machine | |
CN113485570A (en) | Multi-user writing method and device, computer readable storage medium and terminal equipment | |
CN110019862B (en) | Courseware recommendation method, device, equipment and storage medium | |
CN112596660A (en) | Writing display processing method and electronic equipment | |
CN113849106B (en) | Page turning handwriting processing method, device, electronic device and storage medium | |
CN102426517B (en) | Method and equipment for executing tool module in first page container |
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 |