CN114756143A - Handwriting element deleting method and device, storage medium and electronic equipment - Google Patents
Handwriting element deleting method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114756143A CN114756143A CN202011608795.6A CN202011608795A CN114756143A CN 114756143 A CN114756143 A CN 114756143A CN 202011608795 A CN202011608795 A CN 202011608795A CN 114756143 A CN114756143 A CN 114756143A
- Authority
- CN
- China
- Prior art keywords
- handwriting
- new
- new handwriting
- editing interface
- handwriting element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000012217 deletion Methods 0.000 claims abstract description 121
- 230000037430 deletion Effects 0.000 claims abstract description 121
- 230000006870 function Effects 0.000 claims description 54
- 235000013619 trace mineral Nutrition 0.000 claims description 33
- 239000011573 trace mineral Substances 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 18
- 230000002452 interceptive effect Effects 0.000 abstract description 22
- 238000012545 processing Methods 0.000 abstract description 20
- 238000010586 diagram Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 13
- 238000005516 engineering process Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000001427 coherent effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 238000010897 surface acoustic wave method Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
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/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- 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/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
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 embodiment of the application discloses a method and a device for deleting a handwriting element, a storage medium and electronic equipment, and belongs to the technical field of data processing. The method comprises the following steps: displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface; receiving writing operation on the handwriting editing interface, and displaying a corresponding new handwriting element at a corresponding position of the writing operation on the handwriting editing interface; and if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface. And the user normally executes writing operation based on the interactive interface, and if the written new handwriting element is the deletion identifier, the display of the new handwriting element and the original at least one handwriting element can be cancelled, namely the corresponding handwriting element is deleted. The writing state and the editing state are not switched, the writing efficiency is improved, and the writing experience of a user is improved.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for deleting a trace element, a storage medium, and an electronic device.
Background
Electronic whiteboard applications generally have writing and editing (moving, deleting, etc.) functions, and in order to distinguish the types of user input operations, different functions are usually implemented in different working states, and the states are mutually exclusive. For example, when the user needs to write, the writing state is started; when a user needs to delete written handwriting elements, the user needs to switch from a writing state to an erasing state to delete the handwriting elements.
The consistency of writing is undoubtedly influenced by the switching of different states, the writing efficiency is reduced, and meanwhile, the writing experience of a user is also poor.
Disclosure of Invention
The embodiment of the application provides a method and a device for deleting handwriting elements, a storage medium and electronic equipment, and can solve the problems that the consistency of writing is influenced and the writing efficiency is low due to the fact that the electronic whiteboard applies different states to be switched. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for deleting a trace element, including:
displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface;
receiving writing operation on the handwriting editing interface, and displaying a corresponding new handwriting element at a corresponding position of the writing operation on the handwriting editing interface;
and if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
Optionally, if the new handwriting element is a deletion identifier, cancelling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface, including:
if the new note element is a deletion identifier, determining the note element to be deleted according to the deletion identifier;
canceling the display of the new handwriting element and the handwriting element to be deleted on the handwriting editing interface;
and the note element to be deleted is a note element covered by the new note element and/or a previous note element of the new note element.
Optionally, after canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface, the method further includes:
and receiving a withdrawal operation on the handwriting editing interface, and restoring to display the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
Optionally, the method further includes:
receiving an intelligent deleting function starting operation on the handwriting editing interface, and starting an intelligent deleting function;
and when the intelligent deleting function is determined to be in the opening state, judging whether the new handwriting element is the deleting identifier.
Optionally, the method further includes:
acquiring a set condition of a deletion identifier corresponding to the intelligent deletion function;
the judging whether the new handwriting element is a deletion identifier comprises the following steps:
acquiring a plurality of coordinate points corresponding to the new handwriting elements;
determining feature information of the new handwriting element according to the plurality of coordinate points;
judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier or not;
and if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier.
Optionally, the deletion identifier is a straight line that covers at least one existing trace element, and has a length greater than or equal to a first preset value, a slope greater than or equal to a second preset value, and less than or equal to a third preset value;
the determining the feature information of the new handwriting element according to the plurality of coordinate points comprises:
determining the shape, the slope, the length and the coverage range of the new handwriting element according to the plurality of coordinate points;
the judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier includes:
judging whether the shape of the new handwriting element is a straight line, judging whether the length of the new handwriting element is greater than or equal to a first preset value, judging whether the slope of the new handwriting element is greater than or equal to a second preset value and less than or equal to a third preset value, and judging whether handwriting elements exist in the coverage range of the new handwriting element;
if the shape of the new handwriting is a straight line, the length of the new handwriting is greater than or equal to a first preset value, the slope of the new handwriting is greater than or equal to a second preset value and smaller than or equal to a third preset value, and handwriting elements exist in the coverage area, the new handwriting elements are determined to be deletion identifiers, and the handwriting elements existing in the coverage area are to-be-deleted note elements.
Optionally, the determining whether the shape of the new handwriting element is a straight line includes:
inputting a plurality of coordinate points corresponding to the new handwriting elements into a recognition model, and judging whether the shape of the new handwriting is a straight line; if the output result is a straight line, determining that the shape of the new handwriting element is a straight line;
alternatively, the first and second electrodes may be,
determining a slope value of a connecting line of any two adjacent coordinate points in the plurality of coordinate points corresponding to the new handwriting element; judging whether a plurality of slope values corresponding to the new handwriting elements are in a preset range or not; and if the plurality of slope values corresponding to the new handwriting elements are within a preset range, determining that the shape of the new handwriting elements is a straight line.
In a second aspect, an embodiment of the present application provides a device for deleting a trace element, including:
the display module is used for displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface;
the receiving module is used for receiving the writing operation on the handwriting editing interface and displaying a corresponding new handwriting element at a position corresponding to the writing operation on the handwriting editing interface;
and the cancellation display module is used for canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface if the new handwriting element is the deletion identifier.
Optionally, the cancel display module is specifically configured to:
if the new note element is a deletion identifier, determining the note element to be deleted according to the deletion identifier;
canceling the display of the new handwriting element and the handwriting element to be deleted on the handwriting editing interface;
and the note element to be deleted is a note element covered by the new note element and/or a previous note element of the new note element.
Optionally, the apparatus further comprises:
and the recovery display module is used for receiving the undo operation on the handwriting editing interface and recovering and displaying the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
Optionally, the apparatus further comprises:
the intelligent deleting function starting module is used for receiving the intelligent deleting function starting operation on the handwriting editing interface and starting the intelligent deleting function;
and the deletion identifier identification module is used for judging whether the new handwriting element is a deletion identifier or not when the intelligent deletion function is determined to be in an open state.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the set conditions of the deletion identifiers corresponding to the intelligent deletion function;
the deletion identifier recognition module is specifically configured to, when determining whether the new handwriting element is a deletion identifier:
acquiring a plurality of coordinate points corresponding to the new handwriting elements;
determining feature information of the new handwriting element according to the plurality of coordinate points;
judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier or not;
and if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier.
Optionally, the deletion identifier is a straight line that covers at least one existing trace element, and has a length greater than or equal to a first preset value, a slope greater than or equal to a second preset value, and a slope less than or equal to a third preset value;
the deletion identifier identifying module, when determining the feature information of the new trace element according to the plurality of coordinate points, is specifically configured to:
determining the shape, the slope, the length and the coverage range of the new handwriting element according to the plurality of coordinate points;
when determining whether the feature information of the new handwriting element meets the set condition of the deletion identifier, the deletion identifier identification module is specifically configured to:
judging whether the shape of the new handwriting element is a straight line, judging whether the length of the new handwriting element is greater than or equal to a first preset value, judging whether the slope of the new handwriting element is greater than or equal to a second preset value and less than or equal to a third preset value, and judging whether handwriting elements exist in the coverage range of the new handwriting element;
if the shape of the new handwriting is a straight line, the length of the new handwriting is greater than or equal to a first preset value, the slope of the new handwriting is greater than or equal to a second preset value and smaller than or equal to a third preset value, and handwriting elements exist in the coverage area, the new handwriting elements are determined to be deletion identifiers, and the handwriting elements existing in the coverage area are to-be-deleted note elements.
Optionally, when the identifier-deleting recognition module determines whether the shape of the new handwriting element is a straight line, the identifier-deleting recognition module is specifically configured to:
inputting a plurality of coordinate points corresponding to the new handwriting elements into a recognition model, and judging whether the shape of the new handwriting is a straight line; if the output result is a straight line, determining that the shape of the new handwriting element is a straight line;
alternatively, the first and second electrodes may be,
determining a slope value of a connecting line of any two adjacent coordinate points in a plurality of coordinate points corresponding to the new handwriting element; judging whether a plurality of slope values corresponding to the new handwriting elements are in a preset range or not; and if the plurality of slope values corresponding to the new handwriting elements are within a preset range, determining that the shape of the new handwriting elements is a straight line.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In a fifth aspect, the present application provides a computer program product comprising a computer program, which when executed by a processor, implements the above-mentioned method steps.
In the embodiment of the application, a method and a device for deleting a handwriting element, a storage medium and an electronic device are provided. The method comprises the following steps: displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface; receiving writing operation on the handwriting editing interface, and displaying a corresponding new handwriting element at a corresponding position of the writing operation on the handwriting editing interface; and if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface. In the process of writing by a user based on the interactive interface, the writing operation is normally executed, if the written new handwriting element is the deletion identifier, the display of the new handwriting element and the original at least one handwriting element can be cancelled, and the deletion of the corresponding handwriting element is equivalent to the deletion of the original at least one handwriting element. The user is free from switching between the writing state and the editing state, the writing process is more coherent, the writing efficiency is improved, and the writing experience of the user is also improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
FIG. 2 is a flowchart of a method for deleting a trace element according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a length of a new trace element provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating coverage of a new trace element provided by an embodiment of the present application;
FIG. 5 is a diagram of a handwriting element covered by a new handwriting element provided by an embodiment of the present application;
FIG. 6 is a diagram illustrating a method for determining a straight line of a new trace element according to an embodiment of the present disclosure;
fig. 7 to fig. 11 are schematic diagrams illustrating a display effect of an interface corresponding to a method for deleting a handwriting element according to an embodiment of the present application;
FIG. 12 is a schematic structural diagram of a device for deleting a trace element according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The electronic whiteboard application is a type of application supporting a user to write and edit on an interactive interface of the electronic equipment, and can present an effect similar to paper writing on the electronic equipment.
However, the electronic device needs to recognize the operation of the user on the interactive interface, and then can execute the corresponding operation, for example, displaying the handwriting elements input by the user, or performing editing operations such as moving and deleting some handwriting elements. In fact, the operation of the user when inputting the handwriting element and the operation when moving the handwriting element are the same for the electronic device, and both touch and move a point on the interactive interface. In order to make the electronic device correctly distinguish the operation types of the user, a plurality of different working states (or identification modes) are generally set. The user selects the corresponding working state before operation, and then touch operation is carried out, so that the electronic equipment can correctly identify the operation type of the user by combining the current working state. For example, when a user needs to write, a writing state is selected and started, and at the moment, the action of 'pressing and moving a point on the interactive interface' can be recognized as inputting a new handwriting element; when a user needs to delete written handwriting elements, the writing state can be switched to the erasing state, and at the moment, the action of pressing and moving a point on the interactive interface can be recognized as deleting the original handwriting elements.
The switching between different states undoubtedly affects the consistency of writing and reduces the writing efficiency. Meanwhile, the user is required to change the writing habit of the paper pen to adapt to different working state settings of the electronic equipment, so that misoperation is easy to occur, and the writing experience of the user is influenced.
Based on this, the embodiment of the application provides a handwriting element deleting method, a handwriting element deleting device, a storage medium and electronic equipment, and provides a new handwriting element deleting method, which follows the habit of writing with a paper pen, and solves the problems that the writing continuity is influenced and the writing efficiency is low due to the switching of different states of the electronic whiteboard application.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application. As shown in fig. 1, the method of the present application can be applied to an electronic device. In the process of writing on the interactive interface based on the electronic equipment, a user only needs to write normally as in the case of writing with a paper pen, and the electronic equipment can automatically identify whether the input operation of the user belongs to the writing operation for generating new handwriting elements or the deleting operation for deleting old handwriting elements.
Wherein, the electronic equipment can be an intelligent interactive tablet. The hardware part of the intelligent interactive flat panel is composed of a touch display module, an intelligent processing system (including a controller) and the like, the hardware part is combined together by an integral structural member and is supported by a special software system, wherein the touch display module comprises a display screen, a touch assembly and a backlight assembly, the backlight assembly is used for providing a backlight light source for the display screen, the display screen generally adopts a liquid crystal display device and is used for displaying pictures, and the touch assembly is arranged on the display screen or at the front end of the display screen and is used for collecting touch operation data of a user and sending the collected touch operation data to the intelligent processing system for processing.
In actual use, the screen data is displayed on the display screen of the intelligent interactive panel, when a user clicks the content displayed on the display screen through a touch object such as a finger or a touch pen, for example, a graphical button displayed on the display screen is clicked, the touch component of the intelligent interactive panel acquires touch data, the touch component converts the touch data into coordinate data of a touch point and then sends the coordinate data to the intelligent processing system, or the coordinate data is sent to the intelligent processing system and converted into coordinate data of the touch point by the intelligent processing system, after the intelligent processing system obtains the coordinate data of the touch point, corresponding control operation is realized according to a preset program, the display content of the display screen is driven to change, and diversified display and operation effects are realized.
Touch components are distinguished from technical principles and can be divided into five basic categories; a vector pressure sensing technology touch component, a resistance technology touch component, a capacitance technology touch component, an electromagnetic technology touch screen, an infrared technology touch component, and a surface acoustic wave technology touch component. According to the working principle of the touch assembly and the medium for transmitting information, the touch assembly can be divided into four categories: resistive, capacitive, electromagnetic, infrared, and surface acoustic wave.
When a user touches the display screen by a finger or a pen, the touch assembly can acquire data of touch points and send the data to the intelligent processing system, and then different functional applications are realized along with software built in the intelligent processing system, so that touch control of the intelligent processing system is realized.
The 'screen' and 'large screen' mentioned in the application refer to the display screen of the intelligent interactive flat panel; the intelligent interaction panel displays a certain interface, namely the display screen of the intelligent interaction panel displays the interface.
It should be noted that, for the sake of brevity, this description does not exhaust all alternative embodiments, and it should be understood by those skilled in the art after reading this description that any combination of features may constitute an alternative embodiment as long as the features are not mutually inconsistent. The features described in the different embodiments that are not mutually inconsistent may also be combined arbitrarily to form alternative embodiments. The following examples are described in detail.
The embodiment of the application discloses a handwriting element deleting method which is applied to electronic equipment such as an intelligent interactive panel. The method for deleting handwriting elements provided by the embodiment of the application will be described in detail below with reference to fig. 2. Please refer to fig. 2, which is a flowchart illustrating a method for deleting a trace element according to an embodiment of the present application. The method comprises the following steps:
s201, displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface.
The handwriting editing interface refers to an interface for a user to input and/or edit handwriting elements through touch operations. For example, an interface for an electronic whiteboard application, or an interface for other similar applications.
The handwriting elements refer to handwriting forming characters or pictures which are generated and displayed according to the operation of a user, and one handwriting element is correspondingly generated through one-time input operation. Specifically, the operation is performed as one input operation from the time when the user contacts the interactive interface until the user leaves the interactive interface.
The handwriting elements may be Arabic numerals, Chinese character strokes, character structures of other languages, lines, geometric shapes and the like.
S202, receiving writing operation on the handwriting editing interface, and displaying corresponding new handwriting elements at the corresponding position of the writing operation on the handwriting editing interface.
Specifically, the electronic device detects a touch operation on the interactive interface, and displays a new handwriting element at a corresponding position when the touch operation is determined to be a writing operation.
The touch operation may be performed by a user directly using a finger, or may be performed by a stylus or the like.
After receiving the writing operation of the user, the position coordinate corresponding to the writing operation of the user can be determined, and the pixel point corresponding to the coordinate position is adjusted to be the default (or selected by the user) color, so that the display of the new handwriting element can be realized.
In one embodiment, after entering the handwriting editing interface, the electronic device may identify which area on the current interactive interface is an area where the user can perform writing operation according to the original setting of the software, and when the touch operation of the user is detected in the area, the electronic device may determine the touch operation as the writing operation. In addition, other virtual function keys may exist on the handwriting editing interface, and the click operation of the user is supported to trigger corresponding functions.
S203, if the new handwriting element is the deletion identifier, the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface is cancelled.
The electronic equipment can simultaneously detect the new handwriting elements and judge whether the new handwriting elements are the set deletion identifiers, if the new handwriting elements are the deletion identifiers, the electronic equipment can determine that the user actually wants to delete at least one original handwriting element at present, and the display of the new handwriting elements and the at least one original handwriting element can be cancelled.
Specifically, the display cancellation can be realized by restoring the pixel points at the corresponding positions of the handwriting elements to default values (i.e., default colors of the handwriting editing interface).
In some embodiments, if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface may specifically include: if the new note element is the deletion identifier, determining the note element to be deleted according to the deletion identifier; canceling the display of the new handwriting elements and the handwriting elements to be deleted on the handwriting editing interface; the note element to be deleted is the note element covered by the new note element and/or the previous note element of the new note element.
After determining that the new note element is the deletion identifier, the note element to be deleted may be further determined according to the deletion identifier. The at least one handwriting element to be deleted is determined by combining the set deletion rule of the deletion identifier. For example, if the deletion identifier is set to delete the handwriting elements covered by the deletion identifier, the handwriting elements covered by the deletion identifier can be determined to be the handwriting elements which need to be cancelled; if the deletion identifier is set to delete the handwriting element generated before the deletion identifier, the last handwriting element generated before the deletion identifier can be determined to be the handwriting element needing to be cancelled. For another example, a plurality of different deletion identifiers may be simultaneously defined to respectively correspond to different deletion rules, and the handwriting element to be deleted may be determined by identifying which deletion identifier the new handwriting element specifically belongs to. Here, the specific deletion rule is only an example, and may be set according to an actual scene, or may set a plurality of selectable deletion rules to be selected and replaced by a user according to a requirement of the user.
In an embodiment of the present application, a method for deleting a handwriting element is provided, including: displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface; receiving writing operation on the handwriting editing interface, and displaying corresponding new handwriting elements at the corresponding positions of the writing operation on the handwriting editing interface; and if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface. And in the process of writing by the user based on the interactive interface, normally executing writing operation, and if the written new handwriting element is the deletion identifier, canceling the display of the new handwriting element and the original at least one handwriting element, namely deleting the corresponding handwriting element. The user is free from switching between the writing state and the editing state, the writing process is more coherent, the writing efficiency is improved, and the writing experience of the user is also improved.
In some embodiments, after canceling the display of the new handwriting element and at least one handwriting element preceding the new handwriting element on the handwriting editing interface, the method further comprises: and receiving an undo operation on the handwriting editing interface, and resuming to display the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
During writing by a user, there may be a need to undo the delete operation. For example, handwriting elements that should not have been deleted are deleted due to a misrecognition by the electronic device; or, the handwriting elements which are not wanted to be deleted are deleted due to the error operation of the user. In these cases, it is necessary to redisplay the handwriting elements whose display was canceled by S203.
Thus, a revocation operation may be predefined. When receiving the input canceling operation on the handwriting editing interface, the display of the new handwriting element and at least one handwriting element before the new handwriting element can be restored, namely the latest handwriting element deletion after the handwriting element is canceled correspondingly.
Specifically, the undo operation may be defined as a specific input action, such as a two-click, a three-click, a multi-finger touch, a multi-finger slide, and so on. Alternatively, the undo operation may be set to the corresponding function of a certain virtual function key, and the click operation at the position of the virtual key may be recognized as the undo operation.
By means of the display restoring function of the restoring operation, the user can conveniently cancel the error deletion and restore the original handwriting elements without inputting the handwriting elements again, and the writing efficiency and the use experience of the user are further improved.
In some embodiments, an intelligent deleting function starting operation on the handwriting editing interface can be received, and an intelligent deleting function is started; and when the intelligent deleting function is determined to be in the opening state, judging whether the new handwriting element is the deleting identifier.
The method integrates a method for deleting handwriting elements based on new handwriting into a new function, namely an intelligent deleting function, and the intelligent deleting function is added into electronic equipment or electronic whiteboard application carried by the electronic equipment, and a user selects whether to start the function. And when the intelligent deleting function is not started, the electronic equipment only executes S201-S202 to generate a new handwriting element. As for the way of deleting the handwriting elements, a default way of the electronic device or an electronic whiteboard application carried by the electronic device may be adopted. When the intelligent deleting function is started, the electronic equipment executes S201-S203 to generate a new handwriting element, judges whether the new handwriting element is a deleting identifier or not, and then deletes the handwriting element when the new handwriting element is determined to be the deleting identifier.
By adding the intelligent deleting function, the embodiment of the application can enable the user to select the handwriting element deleting mode by himself, can be suitable for more different writing scenes, and improves the use experience of the user.
In some embodiments, after the intelligent deletion function is started, the setting condition of the deletion identifier corresponding to the intelligent deletion function may also be obtained. Accordingly, the above determining whether the new trace element is a deletion identifier may include: acquiring a plurality of coordinate points corresponding to the new handwriting elements; determining the characteristic information of the new handwriting element according to the plurality of coordinate points; judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier or not; and if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier.
The condition that the deletion identifier matches may be set in advance and pre-stored in the electronic device as the set condition. And when the intelligent deleting function is determined to be started, acquiring the set conditions of the deleting identifier from the corresponding position for subsequent judgment of the new handwriting element. Once the new trace element is generated, the feature information of the new trace element may be determined based on the coordinate point of the new trace element and compared with the setting condition of the deletion identifier. And if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier. Thereby canceling the display of the new handwriting element and the at least one handwriting element preceding the new handwriting element.
In some implementations, the deletion identifier may be set to cover a straight line having a length of at least one existing trace element greater than or equal to a first preset value, a slope greater than or equal to a second preset value, and a slope less than or equal to a third preset value. Correspondingly, the determining the characteristic information of the new handwriting element according to the plurality of coordinate points comprises determining the shape, the slope, the length and the coverage range of the new handwriting element according to the plurality of coordinate points; judging whether the characteristic information of the new handwriting element meets the set condition for deleting the identifier or not, wherein the judging comprises judging whether the shape of the new handwriting element is a straight line or not, judging whether the length of the new handwriting element is greater than or equal to a first preset value or not, judging whether the slope of the new handwriting element is greater than or equal to a second preset value and less than or equal to a third preset value or not, and judging whether the handwriting element exists in the coverage range of the new handwriting element or not; if the shape of the new handwriting is a straight line, the length of the new handwriting is greater than or equal to a first preset value, the slope of the new handwriting is greater than or equal to a second preset value and smaller than or equal to a third preset value, and handwriting elements exist in the coverage area, the new handwriting elements are determined to be deletion identifiers, and the handwriting elements existing in the coverage area are to-be-deleted note elements.
Since the deletion identifier is set to a straight line that covers at least one existing trace element, the length of the straight line is greater than or equal to the first preset value, the slope of the straight line is greater than or equal to the second preset value, and the slope of the straight line is less than or equal to the third preset value, it can be known that the setting conditions of the deletion identifier include: and the length of the straight line is greater than or equal to a first preset value, the slope is greater than or equal to a second preset value and less than or equal to a third preset value, and the straight line covers at least one existing trace element. Thus, the characteristic information of the new trace element that needs to be determined includes: shape, length, slope, coverage.
Wherein, the length of the new trace element refers to the length of the connection line between the two end points of the new trace element, and the slope of the new trace element refers to the slope of the connection line between the two end points of the new trace element. As shown in FIG. 3, the thick line is a new trace element, the thin line is a connection line between two end points of the new trace element, the length is L, and the slope is-k. Thus, the new trace element has a length L and a slope of-k.
The coverage range of the new handwriting element refers to the range of the rectangle marked by the extreme value of the horizontal coordinate and the extreme value of the vertical coordinate in all the coordinate points corresponding to the new handwriting element. As shown in fig. 4, the abscissa of the endpoint a of the new trace element is the minimum value of all the coordinate points, the ordinate of the endpoint a is the maximum value of all the coordinate points, the abscissa of the endpoint b is the maximum value of all the coordinate points, and the ordinate of the endpoint b is the minimum value of all the coordinate points. The dotted line in the figure is the rectangle marked by the horizontal and vertical coordinates of the end points a and b, i.e. the coverage of the new handwriting element. If the coincidence degree of the coverage range of a certain handwriting element and the coverage range of the new handwriting element exceeds a certain threshold value, the handwriting element can be considered to exist in the coverage range of the new handwriting element. Alternatively, if a certain handwriting element includes coordinate points exceeding a certain threshold number within the coverage of the new handwriting element, the handwriting element may also be considered to exist within the coverage of the new handwriting element. As shown in FIG. 5, if the threshold is set to 60%, the note elements "1", "2" and "3" are all within the coverage of the new handwriting element, and the handwriting element "4" is not within the coverage of the new handwriting element.
Because the lines input by the user through handwriting may not form true straight lines, the determination of whether a new handwriting element is a straight line may be related, and specifically, various manners may be adopted: inputting a plurality of coordinate points corresponding to the new handwriting elements into the recognition model, and judging whether the shape of the new handwriting is a straight line; and if the output result is a straight line, determining that the shape of the new handwriting element is a straight line. Or determining a slope value of a connecting line of two adjacent coordinate points aiming at any two adjacent coordinate points in the plurality of coordinate points corresponding to the new handwriting element; judging whether a plurality of slope values corresponding to the new handwriting elements are in a preset range or not; and if the plurality of slope values corresponding to the new handwriting elements are within the preset range, determining that the shape of the new handwriting elements is a straight line.
The former relies on model training. Firstly, a line sample which can be regarded as a straight line is input into a recognition model for model training, a new handwriting element is recognized by using the trained model after judgment, and whether the line sample is a straight line or not is judged according to a recognition result.
The latter is a mathematical based judgment. As shown in fig. 6, the new trace element corresponds to 8 coordinate points, the white dotted line is a connection line between any two adjacent coordinate points, and the slopes are k1, k2, k3, and the like. If the new trace element can be considered as a straight line, the slopes should be similar, i.e. the variance of 7 slopes is small.
The setting method of the deletion identifier is only an example, and other similar methods can be selected and adopted in actual application. For example, the deletion identifier may be set to be a rectangle covering at least one existing handwriting element with a side length greater than or equal to a fourth preset value, or a closed curve covering at least one existing handwriting element with a coverage area greater than or equal to a fifth preset value, and the handwriting element existing in the coverage area of the deletion identifier is the note element to be deleted. For another example, the deletion identifier may be set to a symbol with a specific shape, or a symbol in a specific area on the display interface, and the handwriting element before the deletion identifier is the note element to be deleted.
In a specific embodiment, as shown in fig. 7, a toolbar including a plurality of function buttons is displayed on the left side of the display interface. Wherein, F1 is the on/off button of the intelligent delete function, F2 is the button of the cancel delete function, and F3 and F4 are the buttons corresponding to other functions.
The user turns on the smart delete function by touching F1. The toolbar could be hidden and the display turned to fig. 8. The user may begin writing on the display interface and enter four handwriting elements, the handwritten arabic numerals "1", "2", "3" and "4", as shown in fig. 9.
At this time, after the electronic device receives the touch operation of the user, a new handwriting element is generated and displayed, and the display interface is changed to fig. 10. Meanwhile, the electronic device recognizes the new trace element as the deletion identifier, so that the display of the deletion identifier and the corresponding elements "1", "2" and "3" to be deleted is cancelled, and the display interface is changed to fig. 11.
If the user wants to cancel the delete operation, the user simply calls the toolbar and clicks F2, and the display interface may return to fig. 9.
It should be noted that, for the sake of brevity, the present application is not intended to be exhaustive, and any features that are not mutually inconsistent can be freely combined to form alternative embodiments of the present application.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 12, which shows a schematic structural diagram of a handwriting element deleting apparatus according to an exemplary embodiment of the present application. The handwriting element deleting apparatus 1200 may be implemented by software, hardware or a combination of both as all or part of the smart interactive tablet. The device comprises a display module 1201, a receiving module 1202 and a display canceling module 1203.
The display module 1201 is used for displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface;
the receiving module 1202 is configured to receive a writing operation on the handwriting editing interface, and display a corresponding new handwriting element at a corresponding position of the writing operation on the handwriting editing interface;
and a cancellation display module 1203, configured to cancel, if the new handwriting element is the deletion identifier, display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
Optionally, the cancel display module 1203 is specifically configured to:
if the new note element is the deletion identifier, determining the note element to be deleted according to the deletion identifier;
canceling the display of the new handwriting elements and the handwriting elements to be deleted on the handwriting editing interface;
the note element to be deleted is the note element covered by the new note element and/or the previous note element of the new note element.
Optionally, the apparatus 1200 further includes:
and a restoring and displaying module 1204, configured to receive the undo operation on the handwriting editing interface, and restore and display the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
Optionally, the apparatus 1200 further includes:
the intelligent deletion function starting module 1205 is used for receiving the intelligent deletion function starting operation on the handwriting editing interface and starting the intelligent deletion function;
and the deletion identifier identification module 1206 is configured to determine whether the new handwriting element is a deletion identifier when it is determined that the intelligent deletion function is in an on state.
Optionally, the apparatus 1200 further includes:
an obtaining module 1207, configured to obtain a setting condition of a deletion identifier corresponding to the intelligent deletion function;
the deletion identifier identifying module 1206 is specifically configured to, when determining whether the new handwriting element is a deletion identifier:
acquiring a plurality of coordinate points corresponding to the new handwriting elements;
determining the characteristic information of the new handwriting element according to the plurality of coordinate points;
judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier or not;
and if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier.
Optionally, the deletion identifier is a straight line that covers at least one existing trace element, and has a length greater than or equal to a first preset value, a slope greater than or equal to a second preset value, and less than or equal to a third preset value;
the deletion identifier identifying module 1206 is specifically configured to, when determining the feature information of the new handwriting element according to the plurality of coordinate points:
determining the shape, the slope, the length and the coverage range of the new handwriting element according to the plurality of coordinate points;
the deletion identifier identifying module 1206 is specifically configured to, when determining whether the feature information of the new handwriting element meets the set condition of the deletion identifier:
judging whether the shape of the new handwriting element is a straight line, judging whether the length of the new handwriting element is greater than or equal to a first preset value, judging whether the slope of the new handwriting element is greater than or equal to a second preset value and less than or equal to a third preset value, and judging whether the handwriting element exists in the coverage range of the new handwriting element;
if the shape of the new handwriting is a straight line, the length of the new handwriting is greater than or equal to a first preset value, the slope of the new handwriting is greater than or equal to a second preset value and smaller than or equal to a third preset value, and handwriting elements exist in the coverage area, the new handwriting elements are determined to be deletion identifiers, and the handwriting elements existing in the coverage area are to-be-deleted note elements.
Optionally, the deletion identifier identifying module 1206 is specifically configured to, when determining whether the shape of the new handwriting element is a straight line:
inputting a plurality of coordinate points corresponding to the new handwriting elements into the recognition model, and judging whether the shape of the new handwriting is a straight line; if the output result is a straight line, determining that the shape of the new handwriting element is a straight line;
alternatively, the first and second electrodes may be,
determining a slope value of a connecting line of two adjacent coordinate points aiming at any two adjacent coordinate points in a plurality of coordinate points corresponding to the new handwriting element; judging whether a plurality of slope values corresponding to the new handwriting elements are in a preset range or not; and if the plurality of slope values corresponding to the new handwriting elements are within the preset range, determining that the shape of the new handwriting elements is a straight line.
It should be noted that, when the handwriting element deleting device provided in the foregoing embodiment executes the handwriting element deleting method, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for deleting handwriting elements and the method for deleting handwriting elements provided by the above embodiments belong to the same concept, and the detailed implementation process thereof is referred to the method embodiments, which is not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiment, and a specific execution process may refer to specific descriptions of the foregoing embodiment, which is not described herein again.
The device on which the storage medium is located may be an electronic device, such as a smart interactive tablet.
Please refer to fig. 13, which provides a schematic structural diagram of an electronic device according to an embodiment of the present application. Take the smart interactive tablet as an example. As shown in fig. 13, electronic device 1300 may include: at least one processor 1301, at least one network interface 1304, a user interface 1303, memory 1305, at least one communication bus 1302.
Wherein a communication bus 1302 is used to enable connective communication between these components.
The user interface 1303 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1303 may also include a standard wired interface and a wireless interface.
The network interface 1304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
The Memory 1305 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1305 includes a non-transitory computer-readable medium. The memory 1305 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1305 may optionally be at least one memory device located remotely from the processor 1301. As shown in fig. 13, the memory 1305, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application program of the electronic device.
In the electronic device 1300 shown in fig. 13, the user interface 1303 is mainly used as an interface for providing input to a user to obtain data input by the user; the processor 1301 may be adapted to invoke an operating application of the electronic device stored in the memory 1305 and to perform the method steps in the above-described embodiments in particular.
Embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method steps in the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information and/or information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (11)
1. A method for deleting a handwriting element, comprising:
displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface;
receiving writing operation on the handwriting editing interface, and displaying a corresponding new handwriting element at a corresponding position of the writing operation on the handwriting editing interface;
and if the new handwriting element is the deletion identifier, canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
2. A method as described in claim 1, wherein said canceling the display of the new handwriting element and at least one handwriting element preceding the new handwriting element on the handwriting editing interface if the new handwriting element is a deletion identifier comprises:
if the new note element is a deletion identifier, determining the note element to be deleted according to the deletion identifier;
canceling the display of the new handwriting element and the handwriting element to be deleted on the handwriting editing interface;
and the note element to be deleted is a note element covered by the new note element and/or a previous note element of the new note element.
3. A method according to claim 1 or 2, wherein after cancelling the display of the new handwriting element and at least one handwriting element preceding the new handwriting element on the handwriting editing interface, the method further comprises:
and receiving a withdrawal operation on the handwriting editing interface, and restoring to display the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface.
4. The method of claim 1 or 2, further comprising:
receiving an intelligent deleting function starting operation on the handwriting editing interface, and starting an intelligent deleting function;
and when the intelligent deleting function is determined to be in an opening state, judging whether the new handwriting element is a deleting identifier.
5. The method of claim 4, further comprising:
acquiring a set condition of a deletion identifier corresponding to the intelligent deletion function;
the judging whether the new handwriting element is a deletion identifier comprises the following steps:
acquiring a plurality of coordinate points corresponding to the new handwriting elements;
determining feature information of the new handwriting element according to the plurality of coordinate points;
judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier or not;
and if the characteristic information of the new handwriting element meets the set condition of the deletion identifier, determining the new handwriting element as the deletion identifier.
6. The method of claim 5, wherein the deletion identifier is a straight line covering at least one existing trace element, and having a length greater than or equal to a first preset value, a slope greater than or equal to a second preset value, and a slope less than or equal to a third preset value;
the determining the feature information of the new handwriting element according to the plurality of coordinate points comprises:
determining the shape, the slope, the length and the coverage range of the new handwriting element according to the plurality of coordinate points;
the judging whether the characteristic information of the new handwriting element meets the set condition of the deletion identifier includes:
judging whether the shape of the new handwriting element is a straight line, judging whether the length of the new handwriting element is greater than or equal to a first preset value, judging whether the slope of the new handwriting element is greater than or equal to a second preset value and less than or equal to a third preset value, and judging whether handwriting elements exist in the coverage range of the new handwriting element;
if the shape of the new handwriting is a straight line, the length of the new handwriting is greater than or equal to a first preset value, the slope of the new handwriting is greater than or equal to a second preset value and smaller than or equal to a third preset value, and handwriting elements exist in the coverage area, the new handwriting elements are determined to be deletion identifiers, and the handwriting elements existing in the coverage area are to-be-deleted note elements.
7. The method according to claim 6, wherein the determining whether the shape of the new handwriting element is a straight line comprises:
inputting a plurality of coordinate points corresponding to the new handwriting elements into a recognition model, and judging whether the shape of the new handwriting is a straight line; if the output result is a straight line, determining that the shape of the new handwriting element is a straight line;
alternatively, the first and second electrodes may be,
determining a slope value of a connecting line of any two adjacent coordinate points in a plurality of coordinate points corresponding to the new handwriting element; judging whether a plurality of slope values corresponding to the new handwriting elements are in a preset range or not; and if the plurality of slope values corresponding to the new handwriting elements are within a preset range, determining that the shape of the new handwriting elements is a straight line.
8. A handwriting element deletion apparatus, comprising:
the display module is used for displaying a handwriting editing interface; at least one handwriting element input by a user is displayed on the handwriting editing interface;
the receiving module is used for receiving the writing operation on the handwriting editing interface and displaying a corresponding new handwriting element at a position corresponding to the writing operation on the handwriting editing interface;
and the cancellation display module is used for canceling the display of the new handwriting element and at least one handwriting element before the new handwriting element on the handwriting editing interface if the new handwriting element is the deletion identifier.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1-7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011608795.6A CN114756143A (en) | 2020-12-29 | 2020-12-29 | Handwriting element deleting method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011608795.6A CN114756143A (en) | 2020-12-29 | 2020-12-29 | Handwriting element deleting method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114756143A true CN114756143A (en) | 2022-07-15 |
Family
ID=82324530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011608795.6A Pending CN114756143A (en) | 2020-12-29 | 2020-12-29 | Handwriting element deleting method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114756143A (en) |
-
2020
- 2020-12-29 CN CN202011608795.6A patent/CN114756143A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829327B (en) | Writing method and device of interactive intelligent equipment | |
CN110058782B (en) | Touch operation method and system based on interactive electronic whiteboard | |
CN111475097B (en) | Handwriting selection method and device, computer equipment and storage medium | |
CN109643213B (en) | System and method for a touch screen user interface for a collaborative editing tool | |
CN109739372B (en) | Graph drawing method for handwriting input equipment and handwriting reading equipment | |
CN111752419A (en) | Interaction control method and device for intelligent blackboard, intelligent blackboard and storage medium | |
CN108984089B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN110413187B (en) | Method and device for processing annotations of interactive intelligent equipment | |
CN109215098B (en) | Handwriting erasing method and device | |
CN109032450B (en) | Mobile terminal and floating mark display method thereof | |
CN108108117B (en) | Screen capturing method and device and terminal | |
CN107977155B (en) | Handwriting recognition method, device, equipment and storage medium | |
CN114690930A (en) | Handwriting processing method and device, interactive panel and storage medium | |
CN111228790B (en) | Game role display control method and device, electronic equipment and computer medium | |
CN108492349A (en) | Processing method, device and equipment for writing strokes and storage medium | |
CN110427139B (en) | Text processing method and device, computer storage medium and electronic equipment | |
EP3855301A1 (en) | Display control program, display control method, and display controller | |
CN112639696A (en) | Handwriting board, handwriting board device and writing control method | |
CN106990900A (en) | One kind writing implementation method and device | |
US9323431B2 (en) | User interface for drawing with electronic devices | |
CN114756143A (en) | Handwriting element deleting method and device, storage medium and electronic equipment | |
WO2019024507A1 (en) | Touch control method and device, and terminal | |
WO2018082239A1 (en) | Method and apparatus for obtaining color based on touch screen | |
JP2015022524A (en) | Terminal device and system | |
CN114578956A (en) | Equipment control method and device, virtual wearable equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |