CN118244964A - Touch editing erasing method and device - Google Patents

Touch editing erasing method and device Download PDF

Info

Publication number
CN118244964A
CN118244964A CN202211666249.7A CN202211666249A CN118244964A CN 118244964 A CN118244964 A CN 118244964A CN 202211666249 A CN202211666249 A CN 202211666249A CN 118244964 A CN118244964 A CN 118244964A
Authority
CN
China
Prior art keywords
area
erasing
speed
erasure
tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211666249.7A
Other languages
Chinese (zh)
Inventor
徐海峰
张阳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202211666249.7A priority Critical patent/CN118244964A/en
Publication of CN118244964A publication Critical patent/CN118244964A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an erasing method and device for touch editing, wherein the method comprises the following steps: acquiring an erasure control parameter detected in an editing area of a display panel and acquiring a movement track of an erasure tool when the erasure tool is used; and controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter. According to the technical scheme, the self-adaptive switching can be performed between the process of erasing the edited large-area content and the process of erasing the edited detail content by controlling the moving track and the erasing control parameters, the user is not required to independently operate and switch the erasing precision, and the erasing efficiency is improved.

Description

Touch editing erasing method and device
Technical Field
The invention relates to the technical field of display, in particular to an erasing method and device for touch editing.
Background
With the popularity of electronic devices, more and more work is currently being performed on electronic devices that have specific software installed; such as document editing, drawing design, engineering drawing, etc. In order to simulate the input habit of a user on actual paper more truly, the user can directly write or draw on a touch screen in the prior art. When a user writes or draws an error, the error part can be erased through an eraser function provided by a software interface; however, the conventional erasing function of the eraser has many operation steps and low erasing efficiency when erasing large-area contents and erasing details.
Disclosure of Invention
In view of the above problems, the present invention provides a touch editing erasing method and apparatus, which can adaptively switch between erasing edited large-area content and erasing edited detail content, without requiring a user to individually operate to switch the erasing precision, thereby improving the erasing efficiency.
In a first aspect, the present application provides, by way of an embodiment, the following technical solutions:
An erasing method for touch editing, comprising:
Acquiring an erasure control parameter detected in an editing area of a display panel and acquiring a movement track of an erasure tool when the erasure tool is used; and controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
Optionally, the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
Determining an identification area of the erasure tool based on the erasure control parameters; the identification area is the erasure range of any target position when the erasure tool moves to the target position, and the erasure control parameter is positively correlated with the area of the identification area; and controlling the erasing tool to erase the edited content of the editing area based on the identification area and the moving track.
Optionally, the erasure control parameter is erasure speed; the determining the identification area of the erasure tool based on the erasure control parameters includes:
Based on the erase speed, an identification area of the erase tool is determined.
Optionally, the determining, based on the erasing speed, an identification area of the erasing tool includes:
Determining an identification area of the erasing tool based on the erasing speed and a preset speed area relation; wherein the speed area relationship is a changing relationship between the erasing speed and the identification area, and the erasing speed and the area of the identification area are positively correlated.
Optionally, the determining, based on the erasing speed, an identification area of the erasing tool includes:
Determining a target speed interval to which the erasing speed belongs from a plurality of preset speed intervals; wherein, different speed intervals correspond to identification areas with different areas; and determining an identification area of the erasing tool based on the target speed interval.
Optionally, the speed values in the plurality of speed intervals sequentially include, from small to large: a first speed interval, a second speed interval, and a third speed interval; the determining, based on the target speed interval, an identification area of the erasure tool includes:
If the target speed interval is a first speed interval, determining the identification area of a first area; if the target speed interval is a second speed interval, determining the identification area of a second area; if the target speed interval is a third speed interval, determining the identification area of a third area; wherein the first area is smaller than the second area, and the second area is smaller than the third area.
Optionally, the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
and if the erasing speed is determined to be greater than a preset first speed threshold value and the track length of the moving track is determined to be greater than a preset length threshold value, clearing the edited content of the editing area.
Optionally, the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
If the erasure speed is determined to be greater than a preset second speed threshold, determining a coverage area of the erasure tool based on the movement track; and clearing the content units which overlap with the coverage area.
Optionally, the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
If the erasing speed is determined to be greater than a preset third speed threshold, determining a track surrounding area of the erasing tool based on the moving track; and clearing the content units overlapped with the surrounding area or clearing the edited content in the surrounding area.
Optionally, the content unit includes:
Complete lines and/or single text units; wherein a single text unit includes any of a word, a sentence, a paragraph, and a word.
Optionally, the determining, based on the moving track, a track surrounding area of the erasing tool includes:
and determining the minimum circumscribed rectangle corresponding to the moving track as the surrounding area.
Optionally, the erasure control parameter is touch pressure; the determining the identification area of the erasure tool based on the erasure control parameters includes:
Determining an identification area of the erasing tool based on the touch pressure and a preset pressure area relation;
The pressure area relation is a change relation between the touch pressure and the identification area, and the touch pressure and the area of the identification area are positively correlated.
Optionally, the erasure control parameter is touch pressure; the determining the identification area of the erasure tool based on the erasure control parameters includes:
determining a target pressure interval to which the touch pressure belongs from a plurality of preset pressure intervals; wherein, the different areas of the identification areas corresponding to different pressure intervals;
Based on the target pressure interval, an identification area of the erase tool is determined.
Optionally, the pressure values in the pressure intervals sequentially include, from small to large: a first pressure interval, a second pressure interval, and a third pressure interval; the determining an identification area of the erasure tool based on the target pressure interval includes:
If the target pressure interval is a first pressure interval, determining the identification area of a first area; if the target pressure interval is a second pressure interval, determining the identification area of a second area; if the target pressure interval is a third pressure interval, determining the identification area of a third area; wherein the first area is smaller than the second area, and the second area is smaller than the third area.
Optionally, the acquiring the erasure control parameters detected in the editing area of the display panel includes:
Receiving touch pressure sent by a pressure sensing pen; the touch pressure is detected by the pressure sensing pen in an editing area of the display panel.
Optionally, before the acquiring the erasure control parameters detected in the editing area of the display panel, the method further includes:
Detecting touch operation of a user; and when the touch area corresponding to the touch operation is determined to be larger than the preset trigger area, starting the erasing tool.
According to the second aspect, based on the same inventive concept, the present application provides, through an embodiment, the following technical solutions:
An erasing apparatus for touch editing, comprising:
The erasing control parameter and track acquisition module is used for acquiring the erasing control parameter detected in the editing area of the display panel and acquiring the moving track of the erasing tool when the erasing tool is used; and the erasing control module is used for controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
In a third aspect, based on the same inventive concept, the present application provides, by an embodiment, the following technical solutions:
An electronic device comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of the preceding aspects.
According to the fourth aspect, based on the same inventive concept, the present application provides, through an embodiment, the following technical solutions:
A readable storage medium having stored thereon a computer program which when executed by a processor realizes the steps of the method according to any of the preceding aspects.
According to the erasing method and the erasing device for touch editing, when the erasing tool is used, the erasing control parameters detected in the editing area of the display panel are obtained, and the moving track of the erasing tool is obtained; then, based on the movement track and the erasure control parameter, the erasure tool is controlled to erase the edited content of the editing area. That is, when the user uses the erasing tool, the user can quickly erase or finely erase the edited content by controlling the movement track and the erasing control parameter, and the user does not need to perform additional switching operation, so that the erasing processing efficiency of the edited content is improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a flowchart illustrating an erasing method for touch editing according to an embodiment of the present invention;
Fig. 2 is an application interface schematic diagram of an erasing method of touch editing in an embodiment of the invention;
Fig. 3 shows an erasure speed calculation schematic diagram of an erasure method for touch editing in an embodiment of the invention;
FIG. 4 is a schematic diagram of the identification area of an erase tool at different erase speeds in an embodiment of the present invention;
FIG. 5 is a schematic diagram showing the erase principle of the combination of track length and erase speed in an embodiment of the present invention;
FIG. 6 is a schematic diagram showing the erase effect of the combination of track length and erase speed in an embodiment of the present invention;
FIG. 7 is a schematic diagram of an erase principle combining a coverage area and an erase speed in an embodiment of the present invention;
FIG. 8 is a schematic diagram showing the erase effect of the combination of the coverage area and the erase speed in an embodiment of the present invention;
FIG. 9 is a schematic diagram showing an erase principle combining a circumferential area and an erase speed in an embodiment of the present invention;
FIG. 10 illustrates a schematic diagram of an erase effect of a combination of circumferential area and erase speed in an embodiment of the present invention;
FIG. 11 is a schematic diagram showing the identification area of an erasure tool at different touch pressures in an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of an erasing device for touch editing according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 14 shows a schematic structural diagram of a readable storage medium provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The erasing method and the erasing device for touch editing provided by the embodiment of the invention can be applied to electronic equipment with a display panel, such as a tablet personal computer, a display screen for teaching, a display panel for exhibition, a mobile phone and the like. An operating system can be built in the electronic equipment, and corresponding touch control editing software is installed in the operating system; the electronic device may be provided with corresponding touch editing software. Touch types include, but are not limited to, capacitive touch, infrared touch, and the like. The touch editing software includes, but is not limited to, drawing software, text editing software, notes software, memo software, teaching demonstration software, design software, and the like. The following describes and illustrates the overall conception and implementation details of the method and apparatus for erasing touch editing according to the present invention by means of specific embodiments.
Referring to fig. 1, in this embodiment, an erasing method for touch editing is provided, which includes:
step S10: acquiring an erasure control parameter detected in an editing area of a display panel and acquiring a movement track of an erasure tool when the erasure tool is used;
Step S20: and controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
In steps S10 to S20, by acquiring an erasure control parameter detected by an editing area of the display panel when the erasure tool is used; then, an identification area of the erasure tool is determined based on the erasure control parameters. The area of the identification area is positively correlated with the erasure control parameters; finally, based on the identified region and the movement track, an erasure tool can be controlled to erase the edited content of the edited region. That is, the area of the identification area can be adjusted by controlling the erasure control parameters during the use of the erasure tool by the user. When the area of the identification area is adjusted to be smaller, the edited content can be finely erased; when the area of the recognition area is adjusted to be large, the edited content can be quickly erased. In the process of erasing the edited content, when the quick erasing and the fine erasing are switched, no additional switching operation is needed by a user, and the erasing processing efficiency of the edited content is improved.
Step S10: when an erasing tool is used, an erasing control parameter detected in an editing area of a display panel is acquired, and a moving track of the erasing tool is acquired.
In step S10, the editing area of the display panel may be understood as an editing area of the application software displayed on the display panel of the electronic device when the application software is displayed on the display panel. It can be understood that the editing area is a display area where the user actually edits graphics or characters; after the content is input or drawn in the editing area, the edited content can be obtained. The application software may include, without limitation, a toolbar, menu bar, and the like, in addition to the editing area. As shown in fig. 2, the application software shown therein includes an editing area 11 and a toolbar 12. In addition, the editing area can also be displayed on the display panel in a full screen mode, namely the whole surface of the display panel is the editing area.
The erasing tool can be used for erasing the content edited by the editing area; it is understood to have the function of an eraser for erasing writing or handwriting. For example, when the user edits text or graphics in the editing area, an editing error occurs, and then the erasing tool can be adjusted to erase the content of the editing error. Specifically, the erasing tool can be called out through a function button preset on a software interface, and the erasing tool can be called out through a gesture or touch operation of a user. The retrieving of the erasure tool is performed before step S10.
When the function buttons preset by the software interface are called out, the touch buttons of the erasing tool can be set in the toolbar of the software interface, and the attribute setting buttons corresponding to the erasing tool can also be set. The attribute setting button can set the initial state of the erasing tool, for example, set the initial identification area of the erasing tool or set the minimum identification area of the erasing tool, so that the erasing tool can be suitable for users to edit different contents; when editing fine content, the minimum identification area of the erasing tool can be set smaller, so that accurate erasing is realized; when editing the framed non-fine content, the minimum recognition area of the erasing tool can be set larger, and the erasing efficiency is improved. The identification area in this embodiment changes with the change of the erasure control parameter, and the following description is specifically referred to. Generally, the user can make a setting once when using the erasing tool for the first time, or the user makes a preset in advance based on the editing content of the regularity; and in the later use time, the self-adaptive adjustment can be realized through the erasure control parameters, so that the size of the erasure tool can be not adjusted any more, and the use efficiency is high.
The software interface may also be configured to provide a sensitivity of the erasure tool, which is a sensitivity of the identification area of the erasure tool as a function of the erasure control parameter, which may be a proportional value. For example, with greater sensitivity, a smaller change in the erase control parameter may result in a larger change in the identified area of the erase tool; when the sensitivity is small, the erasure control parameters are changed greatly, and the identification area of the erasure tool is not changed greatly.
In addition, a button for enabling intelligent erasing can be arranged on the software interface; that is, if the "intelligent erase" is off, the erase tool does not apply the methods of steps S10 to S30 in the present embodiment; otherwise, the method of steps S10 to S30 in this embodiment is applied.
When the user gesture or touch operation is adopted to call out the erasing tool, the touch operation of the user can be detected first, and then the erasing tool is started when the touch area corresponding to the touch operation is determined to be larger than the preset trigger area. For example, when the user touches the display panel or the editing area of the display panel with the palm or the back of the hand, the touch area of the palm or the back of the hand on the display panel or the editing area of the display panel is detected, and when the touch area is larger than the trigger area, the erasing tool is called. That is, the touch area S > a (a is a preset trigger area, and the value of a can be customized), and the identification area of the erasing tool is initially called as b. It should be noted that, when the erasing tool is first called out, the erasing tool is in a state of not being operated and moved by the user, and the identification area of the erasing tool is the minimum identification area, that is, b is the minimum identification area.
The trigger area can be preset by an engineer during development, or can be preset by a user based on the use habit, and is not limited. For example, the user may preset the area of all palms to be the trigger area; the area of the finger portion may also be set as the trigger area; the area of the back of the hand may also be set as the trigger area. Specifically, when the trigger area is preset, the acquisition can be performed through the display panel; firstly, receiving call-out operation of a user, displaying an acquisition interface for setting a preset trigger area, and prompting the user to attach the palm or the back of the hand to the display panel. When the back or the palm of the user is detected to be attached to the display panel, the attaching area is detected, and the attaching area obtained through detection is used as a trigger area.
In addition, the erasing tool can be called out through auxiliary equipment matched with the electronic equipment, such as a shortcut button on a pressure sensing pen, a shortcut button on a handwriting pen, a shortcut button on a remote controller, and the like, without limitation.
In this embodiment, there are provided at least two methods of acquiring erasure control parameters. First, the erase speed of the erase tool is detected as an erase control parameter, and the erase speed is understood to be the speed at which the user operates the erase tool to move. Secondly, detecting touch pressure at the position of the erasing tool as an erasing control parameter, wherein the touch pressure can be detected through a display panel with pressure sensing detection; the touch pressure can be detected by the pressure sensing pen and then sent to the electronic equipment in a wireless communication mode, and the touch pressure can be sent by using a wireless network or Bluetooth communication without limitation. That is, the electronic device may receive the touch pressure sent by the pressure-sensitive pen, where the touch pressure is detected by the pressure-sensitive pen in the editing area of the display panel. The different erasure control parameters will be described separately below.
The movement trajectory for the erasure tool can be defined as: and the track formed by moving the center position of the identification area is used as the moving track of the erasing tool. In addition, the movement track of the erasing tool may be defined in other manners, for example, in the square identification area, a track formed by moving any one corner point is used as the movement track of the erasing tool. The moving track can also be a track formed by the coordinate change of the first touch point detected by the display panel, and the moving track is not limited.
1. When the erasure control parameter is erasure speed:
The coordinates of the erasure tool can be determined before the erasure speed is determined. In some implementations, the coordinates of the erasing tool may be coordinates of a center position point of the identification area of the erasing tool, and if the erasing tool is rectangular, coordinates of four corner points of the erasing tool are also possible, without limitation; the coordinates of the erasure tool can be defined otherwise by the developer. Here, the coordinates of the erasing means are exemplified by the coordinates of the center position of the identification area of the erasing means.
Further, determining an erasure rate based on the coordinates of the erasure tool; the display panel has a certain touch sampling frequency, and the coordinates of the erasing tool can be recorded while the touch sampling is performed; two coordinates of the erasing tool can be obtained through two times of sampling, and the two coordinates can be a first coordinate and a second coordinate; the time of the two samplings is known; thus, the erase speed of the erase tool is obtained based on the ratio of the distance between the first and second coordinates to the time interval of the two samples. The frequency of calculating the erase speed should be less than or equal to the frequency of touch sampling; for example, the frequency of touch sampling is 720Hz, and the frequency of calculating the erasing speed may be less than or equal to 720Hz, which may be 10Hz, 20Hz, 30Hz, 60Hz, 120Hz, 270Hz, 480Hz, etc., so that the processing load may be significantly reduced with little change in the operational feeling of the user. When the frequency of calculating the erasing speed is smaller than the touch sampling rate, the corresponding data can be extracted from the touch sampling result uniformly to calculate the erasing speed.
For example:
Referring to FIG. 3, the erasing means has a coordinate (X n,Yn) at the current sampling point n, a coordinate (X n-1,Yn-1) at the sampling point n-1, and a coordinate (X n-2,Yn-2) at the sampling point n-2; the time when the erasure tool reaches the sampling point n-1 is T n-1 and the time when the erasure tool reaches the sampling point n-1 is Tn, so the erasure tool takes a long time t=t n-Tn-1 to move from the sampling point n-1 to the sampling point n. Thus, the moving distance of the erasing tool The speed of the erasing tool reaching the n position of the current sampling point isThe erase speed is obtained. In the whole calculation process, every two adjacent sampling points need to be calculated, namely when the erasing tool reaches one sampling point, the erasing speed can be calculated by using the data of the current sampling point and the previous sampling point.
In the following, in step S20, explanation and explanation will be made mainly taking the erasure control parameter as an example of the erasure speed.
Step S20: and controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
In step S20, an identification area of the erasure tool may be determined based on the erasure control parameters; the identification area is the erasing range at any target position when the erasing tool moves to the target position; the erasure control parameter is positively correlated with the area of the identification area; then, based on the identification area and the movement track, the erasing tool is controlled to erase the edited content of the editing area.
The identification area of the erasing tool in a state of not being operated by the user is an identification area of an initial size, that is, a minimum area. When a user operates the erasing tool to erase, different erasing speeds can be correspondingly generated based on the actual erasing operation of the user; here, the area of the corresponding identification area can be adaptively adjusted based on the erasing speed, so that different application scenes can be adaptively adapted; i.e. on the basis of the erase speed, an identification area of the erase tool is determined. In general, the erase speed is positively correlated with the area of the identified area. The larger the area, the larger the erasable range and the smaller the area, the smaller the erasable range when the erasure tool moves the same distance. When the user performs editing operation, if a large-scale editing error occurs, the user often rapidly performs large-scale erasing; if editing errors of local details occur, detail erasure correction is often performed very carefully, and the erasure speed is low. Therefore, the identification area of the erasing tool is controlled and adjusted through the erasing speed, the actual editing process of a user is well adapted, and the erasing efficiency is improved.
When the identification area of the erasing tool is adjusted, the step adjustment can be performed, or the continuous adjustment can be performed, and the adjustment is not limited.
When the identification area of the erasing instrument is continuously adjusted based on the erasing speed, the following can be made:
Determining an identification area of the erasing tool based on the erasing speed and a preset speed area relation; the speed area relation is a change relation between the erasing speed and the identification area, and the erasing speed and the identification area are positively correlated. It can be appreciated that the change relationship between the erase speed and the identification area may be a linear change relationship or a nonlinear change relationship; for example, there may be a plurality of functional relationships, and the rate of change between the erase speed and the identification area corresponding to each functional relationship may be different. After the erasing speed is obtained, the area of the corresponding identification area can be calculated through the corresponding speed area relation, and the identification area can be determined on the display panel by combining the shape of the erasing tool and the coordinate position of the erasing tool.
The identification area can be provided with a corresponding upper limit of variation, the upper limit can be set based on the resolution of the real panel, and the user can also carry out self-defined setting, so that the identification area of the erasing tool is prevented from being increased along with the erasing speed without limitation, and the erasing effect is prevented from being influenced.
When the identification area of the erasure tool is stepwise adjusted based on the erasure speed, it is possible to:
First, a plurality of speed intervals may be pre-stored in the electronic device; for example, two, three, four, five, etc. may be pre-stored without limitation. Different speed intervals correspond to different identification areas. And then matching the obtained erasing speed with the speed intervals, and matching the target speed interval to which the erasing speed belongs from the speed intervals. Finding out the target speed interval, namely finding out the identification area of the corresponding area, and then adjusting the identification area of the erasing tool. The identification area of the erasing tool is adjusted in a stepwise manner, so that a more stable erasing area can be obtained in the conventional erasing process, and the erasing efficiency is improved and the erasing range is easier to control.
In some implementations, 3 or 4 speed intervals may be preset, which may cover a large portion of the application scenario and avoid overly complex multiple changes in the size of the identification area. Taking 3 speed intervals as an example, the speed values in the plurality of speed intervals sequentially comprise from small to large: a first speed interval, a second speed interval, and a third speed interval. The first speed interval may be expressed as (0, V1), the second speed interval may be expressed as (V1, V2), the third speed interval may be expressed as (V2, V3), V3 may take any value greater than V2 or may be +++, without limitation, for example, the erasure rate is denoted as V, and if V is less than or equal to V1, the target speed interval is a first speed interval; if V1 is less than V and less than or equal to V2, the target speed interval is a second speed interval, and if V is more than V2, the target speed interval is a third speed interval.
It should be noted that, whether the endpoint value in each speed interval is taken or not is not limited, and the user or developer can change and adjust based on the actual situation, but does not affect the protection of the inventive concept.
Specifically, if the target speed interval is the first speed interval, determining an identification area of the first area; if the target speed interval is the second speed interval, determining an identification area of a second area; if the target speed interval is the third speed interval, determining an identification area of a third area; wherein the first area is smaller than the second area, which is smaller than the third area, as shown in fig. 4. Therefore, the identification area can be adjusted through the erasing speed, so that the user is prevented from repeatedly adjusting the erasing range of the erasing tool when erasing the detail content and the large-area content; meanwhile, the step-type adjustment mode can ensure that a user can control and realize a more stable erasing range in a certain speed interval in the process of operating the erasing tool.
Based on the identification area and the movement track, the erasing tool is controlled to erase the edited content of the editing area.
The identification area of the erasure tool can be controlled to move along with the touch position on the display panel, and at this time, the erasure control parameters can comprise various coordinate points on the movement track of the erasure tool. The coordinate point can be the geometric center of the shape of the identification area, and the covered area in the moving process of the erasing tool can be determined based on the coordinate point and the area of the identification area; the area covered by these identification areas can be emptied and the erasure process can be completed.
Further, after the user has operated the erasing tool to a certain extent, the user may be considered to want to erase some edited content more quickly; but simply increases the identification area, although the range of erasures can be increased; but significantly reduces the accuracy of the erasure and increases the amount of edited content that the erasure user does not want to erase. In some implementations, the content that the user wants to erase is also identified by the erase speed in combination with the moving path of the erase tool, so as to further improve the erase efficiency and ensure the accuracy of erasing the edited content in a large range, as follows:
In some implementations, the erase speed can be combined with the track length of the moving track of the erase tool to improve erase efficiency while ensuring erase accuracy in fast erase.
Specifically, if it is determined that the erase speed is greater than the preset first speed threshold, the user may consider that he wants to perform quick erase. It will be appreciated that the first speed threshold may be defined or adjusted by a developer or user; here, the first speed threshold may also be set to the minimum erase speed at which the identification area reaches the maximum.
When the erase speed does not exceed the first speed threshold, a normal erase method of adjusting the identification area based on the erase speed may be identified. Referring to fig. 5, when the erase speed is greater than the first speed threshold, the user may be considered to have a possibility of requiring quick cleaning of the edited content of the editing area. At this time, the length of the moving track of the erasing tool is further determined, and if the track length of the moving track is determined to be greater than the preset length threshold, the edited content of the editing area is emptied, as shown in fig. 6, so that the edited content is quickly cleaned, and the erasing efficiency is improved; and through the double judgment of the first speed threshold value and the track length, the false recognition is avoided.
Further, it is also possible to determine whether to clear all edited contents in combination with judging the fluctuation degree of the moving track. When a user needs to quickly erase a plurality of edited contents that are not on a straight line, a curved moving track may occur, in which case the erase operation may not be recognized as quickly cleaning all edited contents even when the track length of the moving track exceeds the length threshold. The manner of judging the fluctuation degree of the movement track may be as follows:
firstly, acquiring a connecting line of the head and the tail of a moving track; then, based on the connecting line and the points on the moving track, the track point farthest from the connecting line on the moving track is determined, and the distance from the farthest track point to the connecting line is obtained as a fluctuation parameter representing the fluctuation degree. When the fluctuation parameter is smaller than a preset value and the track length exceeds the length threshold, determining that the erasing operation of the user is to clear the edited content of the editing area, so that the intention of the user is more accurately identified, and the misoperation probability is reduced.
In some implementations, the erase speed may also be combined with a coverage area formed by the movement track of the erase tool to improve erase efficiency while ensuring erase accuracy during fast erase.
Specifically, if the erasure speed is determined to be greater than the preset second speed threshold, determining a coverage area of the erasure tool based on the identification area and the movement track of the erasure tool. The definition of the second speed threshold herein refers to the aforementioned first speed threshold, and of course, the second speed threshold may be the same as or different from the aforementioned first speed threshold, and is not limited thereto.
The coverage area is all the area covered by the identification area of the erasure tool during the movement. For example, referring to fig. 7, when the identification area is rectangular with a length L and a width H, and the erasing tool is controlled to move along the length direction of the rectangle by a distance S1, the coverage area is formed as a rectangular area with a length l+s1 and a width H, i.e. coverage area a. Then, the content unit overlapping with the coverage area a is cleared, and the selected edited content can be erased, and the erased effect is shown in fig. 8. Of course, the coverage area is not limited to a rectangular area, and may be a circular area, or may be another irregular area, without limitation.
It is understood that the content unit may include: complete lines and/or single text units; wherein a single text unit may include any of a word, a sentence, a paragraph, and a word. Further, the definition of a complete line may be a continuous line where no break occurs; the line can also be a continuous line without a break point, and if a break point exists in a continuous target line, the target line can be considered to be formed by two complete lines taking the position of the break point as a boundary.
For example, in some application scenarios the user has edited a denser line, but has found that a wrong line was edited; when the user needs to erase the erroneous line, it is difficult to select each portion of the erroneous line among the dense lines to erase. At this time, if a mode of erasing the content unit overlapping with the coverage area is adopted, a part which is easier to select can be found out from the error line, and then the erasure tool is controlled to generate the coverage area to cover the part which is easier to select, so that the overall elimination of the error line can be realized. Therefore, the erasing difficulty of the complex graph can be greatly reduced, erasure errors are avoided, and the erasure efficiency is improved.
For another example, in some application scenarios, when a user edits text content, the user finds that a grammar error exists in a sentence, but the sentence is just at a line feed position, and two lines are formed; if a conventional erasing mode is adopted, a user is required to erase in two rows, and when an sentence is erased, an erasing tool is required to be controlled to erase at two opposite sides of an editing area, so that the erasing efficiency is low. And if the size of the identification area of the erasing tool is not controlled in the erasing process, the situation of error erasing can also occur. At this time, if the text unit is a sentence, and the mode of erasing the content unit overlapping with the coverage area is adopted, the coverage area formed by the erasing tool can be covered on any word in the sentence with grammar error, so that the erasure of the whole sentence can be realized, the erasure efficiency is obviously improved, and the risk of error erasure is reduced.
In addition, it can be understood that the text recognition can be performed on the content edited by the user in the editing area, and the text recognition can be uploaded to the cloud recognition through the electronic equipment, can be locally recognized, and is not limited; after recognition is complete, the text portion in the edit area may be split into individual text units, e.g., into any of text, words, sentences, paragraphs, and words. Quick erasure of individual text units can then be achieved when using an erasure tool. Furthermore, the content edited by the user in the editing area can be clustered, so that a plurality of clusters are obtained; wherein each cluster may represent content units of the same or similar type; this avoids the use of word recognition, and when a user quickly deletes a certain type of content unit, only the coverage area needs to be controlled to overlap with that type of content unit. Here, a common unsupervised clustering method may be selected, which may be implemented with reference to the prior art.
In some implementations, the erase speed may also be combined with the track wrap-around area formed during movement of the erase tool to improve erase efficiency while ensuring erase accuracy during fast erase.
It will be appreciated that if it is determined that the erase speed is greater than a predetermined third speed threshold, a track wrap region of the erase tool may be determined based on the movement track.
Specifically, the coverage area of the erasure tool may be determined first based on the identification area and the movement trajectory of the erasure tool. The definition of the third speed threshold herein refers to the aforementioned first speed threshold, and similarly, the third speed threshold may be the same as or different from the aforementioned first speed threshold, and is not limited thereto.
Then, determining a track surrounding area based on the peripheral position of the coverage area; for example, an area surrounded by circumscribed polygons corresponding to the peripheral boundary of the coverage area may be used as a track surrounding area, so that the area range that the user wants to erase can be matched as much as possible. Furthermore, the minimum circumscribed rectangle corresponding to the peripheral position of the coverage area can be determined as the track surrounding area, so that the method is suitable for editing the typesetting structure of the content under most conditions, the erasure accuracy is improved, and the erasure efficiency is improved. Finally, removing the content units overlapped with the track surrounding area, or removing the edited content in the track surrounding area; wherein the content unit is the smallest unit in the edited content. The relevant descriptions of the content units may refer to the descriptions in the foregoing embodiments, and are not repeated herein. In addition, the minimum circumscribed rectangle of the track formed by the change of the coordinate position of the center of the identification area can be used as the track surrounding area without limitation.
In order to further improve the recognition accuracy of the erasure, the moving track of the erasure tool can be limited to avoid the condition of no large-scale erasure. That is, it is necessary to first determine whether the shape of the moving track of the erasing tool matches the preset track before determining the track surrounding area; specifically, the matching can be performed based on the similarity between the moving track and the preset track, without limitation. If the movement track matches the preset track, a coverage area of the erasure tool can be determined based on the identification area and the movement track of the erasure tool. Wherein the preset trajectory may include any one or more of the following: "N" shape, "S" shape, "C" shape, "M" shape, "U" shape, "V" shape, "Z" shape, annular shape, rectangular shape, etc.
For example, when the user only wants to erase a certain specific continuous content, but not erase the content in a certain area, the user can avoid generating the preset track in the process of erasing, thereby avoiding generating erroneous erasure.
For example, referring to fig. 9, when the user erases using the erasing tool, the editing area is erased and moved from B1 to B2, and the erasing speed is greater than the third speed threshold in the moving process; and, if the erased moving track accords with the Z shape, the track surrounding area A1 corresponding to the Z shape is calculated, and the overlapping content units in the track surrounding area A1 are removed, and the erased effect is shown in fig. 10.
2. When the erasure control parameter is touch pressure:
in the following, the erasing control parameter is mainly taken as an example of the touch pressure, and the step S20 is explained and described again.
Step S20: and controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
In step S20, an identification area of the erasure tool may be determined based on the erasure control parameters; the identification area is the erasing range at any target position when the erasing tool moves to the target position; the erasure control parameter is positively correlated with the area of the identification area; then, based on the identification area and the movement track, the erasing tool is controlled to erase the edited content of the editing area.
Similarly, in this implementation, when the identification area of the erasing tool is adjusted, the adjustment may be performed stepwise or continuously, without limitation.
When the identification area of the erasing tool is continuously adjusted based on the touch pressure, the following can be adopted:
The identification area of the erasing tool can be determined based on the relationship between the touch pressure and the preset pressure area; the pressure area relation is a change relation between the touch pressure and the identification area, and the touch pressure and the identification area are positively correlated. It can be understood that the change relationship between the touch pressure and the identification area can be a linear change relationship or a nonlinear change relationship; for example, the touch sensing device may be a multi-segment functional relationship, and the change rate of the recognition area corresponding to each segment of functional relationship along with the touch pressure may be different. After the touch pressure is obtained, the area of the corresponding identification area can be calculated through the corresponding pressure area relation, and the identification area can be determined on the display panel by combining the shape of the erasing tool and the coordinate position of the erasing tool. The identification area can be provided with a corresponding upper limit of variation, the upper limit can be set based on the resolution of the real panel, and the user can also perform self-defined setting, so that the unlimited increase of the identification area of the erasing tool along with the touch pressure is avoided, and the erasing effect is prevented from being influenced.
When the identification area of the erasing tool is adjusted stepwise based on the touch pressure, the following is possible:
Firstly, a plurality of pressure intervals can be prestored in the electronic device; for example, two, three, four, five, etc. may be pre-stored without limitation. Different pressure intervals correspond to different areas of the identification area. And then matching the obtained touch pressure with the pressure intervals, and matching the target pressure interval to which the touch pressure belongs from the pressure intervals. Finding out the target pressure interval, namely finding out the identification area of the corresponding area, and then adjusting the identification area of the erasing tool. The identification area of the erasing tool is adjusted in a stepwise manner, so that a more stable erasing area can be obtained in the conventional erasing process, and the erasing efficiency is improved and the erasing range is easier to control.
In some implementations, 3 or 4 pressure intervals may be preset, which may cover a large portion of the application scenario and avoid overly complex multiple changes in the size of the identification area. Taking 3 pressure intervals as an example, the pressure values in the plurality of pressure intervals sequentially comprise from small to large: a first pressure interval, a second pressure interval, and a third pressure interval. The first pressure interval may be expressed as (0, F1), the second pressure interval may be expressed as (F1, F2), the third pressure interval may be expressed as (F2, F3, F3 may be any value greater than F2 or may be +++, without limitation, for example, the touch pressure is expressed as F, and if F is less than or equal to F1, the target pressure interval is a first pressure interval; if F1 is smaller than F2 and smaller than F2, the target pressure interval is the second pressure interval, and if F is larger than F2, the target pressure interval is the third pressure interval.
It should be noted that, whether the endpoint value in each pressure interval is taken or not is not limited, and the user or developer can change and adjust based on the actual situation, but does not affect the protection of the inventive concept.
Specifically, if the target pressure interval is the first pressure interval, determining an identification area of the first area; if the target pressure interval is the second pressure interval, determining an identification area of a second area; if the target pressure interval is a third pressure interval, determining an identification area of a third area; wherein the first area is smaller than the second area, which is smaller than the third area, as shown in fig. 11. Therefore, the identification area can be adjusted through the touch pressure, so that the user is prevented from repeatedly adjusting the erasing range of the erasing tool when erasing the detail content and the large-area content; meanwhile, the step-type adjustment mode can ensure that a user can control and realize a more stable erasing range in a certain pressure interval in the process of operating the erasing tool.
Based on the identification area and the movement track, the erasing tool is controlled to erase the edited content of the editing area.
It should be noted that, in the embodiment using the erasure control parameter as the touch pressure, the erasure accuracy during the fast erasure can be further improved by combining the parameters of the moving track, the coverage area, the track surrounding area, and the like of the erasure tool. In other words, in various implementations of implementing the step S20 based on the erasing speed, the erasing speed may be replaced by the touch pressure, and the corresponding technical scheme may be obtained and the corresponding technical effect may be achieved. Therefore, only a brief description is provided here, and no further description is given.
In summary, according to the erasing method for touch editing provided in the embodiment, when the erasing tool is used, the erasing control parameters detected by the editing area of the display panel are obtained; then, an identification area of the erasure tool is determined based on the erasure control parameters. The area of the identification area is positively correlated with the erasure control parameters; finally, based on the identification area and the erasure control parameters, the erasure tool is controlled to erase the edited content of the editing area. That is, the area of the identification area can be adjusted by controlling the erasure control parameters during the use of the erasure tool by the user. When the area of the identification area is adjusted to be smaller, the edited content can be finely erased; when the area of the recognition area is adjusted to be large, the edited content can be quickly erased. In the process of erasing the edited content, when the quick erasing and the fine erasing are switched, no additional switching operation is needed by a user, and the erasing processing efficiency of the edited content is improved.
Referring to fig. 12, based on the same inventive concept, in still another embodiment of the present invention, there is further provided a touch-edited erasing apparatus 300, the touch-edited erasing apparatus 300 including:
An erasure control parameter and track acquisition module 301, configured to acquire erasure control parameters detected in an editing area of a display panel and acquire a movement track of an erasure tool when the erasure tool is used;
And the erasing control module 302 is configured to control the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter.
As an alternative embodiment, the erasure control module 302 is specifically configured to:
Determining an identification area of the erasure tool based on the erasure control parameters; the identification area is the erasure range of any target position when the erasure tool moves to the target position, and the erasure control parameter is positively correlated with the area of the identification area; and controlling the erasing tool to erase the edited content of the editing area based on the identification area and the moving track.
As an alternative embodiment, the erasure control parameter is erasure speed; the erasure control module 302 is specifically configured to:
Based on the erase speed, an identification area of the erase tool is determined.
As an alternative embodiment, the erasure control module 302 is specifically configured to:
Determining an identification area of the erasing tool based on the erasing speed and a preset speed area relation; wherein the speed area relationship is a changing relationship between the erasing speed and the identification area, and the erasing speed and the area of the identification area are positively correlated.
As an alternative embodiment, the erasure control module 302 is specifically configured to:
Determining a target speed interval to which the erasing speed belongs from a plurality of preset speed intervals; wherein, different speed intervals correspond to identification areas with different areas; and determining an identification area of the erasing tool based on the target speed interval.
As an optional implementation manner, the speed values in the plurality of speed intervals sequentially include, from small to large: a first speed interval, a second speed interval, and a third speed interval; the erasure control module 302 is specifically configured to:
If the target speed interval is a first speed interval, determining the identification area of a first area; if the target speed interval is a second speed interval, determining the identification area of a second area; if the target speed interval is a third speed interval, determining the identification area of a third area; wherein the first area is smaller than the second area, and the second area is smaller than the third area.
As an alternative embodiment, the erasure control parameter is erasure speed; the erasure control module 302 is specifically configured to:
and if the erasing speed is determined to be greater than a preset first speed threshold value and the track length of the moving track is determined to be greater than a preset length threshold value, clearing the edited content of the editing area.
As an alternative embodiment, the erasure control parameter is erasure speed; the erasure control module 302 is specifically configured to:
If the erasure speed is determined to be greater than a preset second speed threshold, determining a coverage area of the erasure tool based on the movement track; and clearing the content units which overlap with the coverage area.
As an alternative embodiment, the erasure control parameter is erasure speed; the erasure control module 302 is specifically configured to:
If the erasing speed is determined to be greater than a preset third speed threshold, determining a track surrounding area of the erasing tool based on the moving track; and clearing the content units overlapped with the surrounding area or clearing the edited content in the surrounding area.
As an alternative embodiment, the content unit includes:
Complete lines and/or single text units; wherein a single text unit includes any of a word, a sentence, a paragraph, and a word.
As an alternative embodiment, the erasure control module 302 is specifically configured to:
and determining the minimum circumscribed rectangle corresponding to the moving track as the surrounding area.
As an optional implementation manner, the erasure control parameter is a touch pressure; the erasure control module 302 is specifically configured to:
determining an identification area of the erasing tool based on the touch pressure and a preset pressure area relation; the pressure area relation is a change relation between the touch pressure and the identification area, and the touch pressure and the area of the identification area are positively correlated.
As an optional implementation manner, the erasure control parameter is a touch pressure; the erasure control module 302 is specifically configured to:
Determining a target pressure interval to which the touch pressure belongs from a plurality of preset pressure intervals; wherein, the different areas of the identification areas corresponding to different pressure intervals; based on the target pressure interval, an identification area of the erase tool is determined.
As an alternative embodiment, the pressure values in the plurality of pressure intervals sequentially include, from small to large: a first pressure interval, a second pressure interval, and a third pressure interval; the erasure control module 302 is specifically configured to:
If the target pressure interval is a first pressure interval, determining the identification area of a first area; if the target pressure interval is a second pressure interval, determining the identification area of a second area; if the target pressure interval is a third pressure interval, determining the identification area of a third area; wherein the first area is smaller than the second area, and the second area is smaller than the third area.
As an optional implementation manner, the erasure control parameter and track acquisition module 301 is specifically configured to:
Receiving touch pressure sent by a pressure sensing pen; the touch pressure is detected by the pressure sensing pen in an editing area of the display panel.
As an optional implementation manner, the display device further includes a detection module, configured to, before the acquiring the erasure control parameter detected in the editing area of the display panel:
Detecting touch operation of a user; and when the touch area corresponding to the touch operation is determined to be larger than the preset trigger area, starting the erasing tool.
It should be noted that, in the touch editing erasing device 300 provided in the embodiment of the present invention, the specific implementation and the technical effects thereof are the same as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding contents in the foregoing method embodiment for the part of the device embodiment that is not mentioned.
Referring to fig. 13, based on the same inventive concept, a further embodiment of the present invention provides an electronic device 500, including a processor 520 and a memory 510, the memory 510 being coupled to the processor 520, the memory 510 storing instructions 511, which when executed by the processor 520, cause the electronic device 500 to perform the steps of the method according to any of the previous embodiments. The electronic device 500 may be, without limitation, a tablet computer, a display screen for teaching, a display panel for exhibition, a mobile phone, and the like.
It should be noted that, when the instructions are executed by the processor 520, the specific implementation and the technical effects of each step of the electronic device 500 provided in the embodiment of the present invention are the same as those of the embodiment of the foregoing method, and for a brief description, reference may be made to the corresponding content in the embodiment of the foregoing method for a part of this embodiment.
Referring to fig. 14, based on the same inventive concept, a further embodiment of the present invention provides a readable storage medium 600, on which a computer program 610 is stored, which when executed by a processor, implements the steps of the method according to any of the preceding method embodiments.
It should be noted that, when the program is executed by the processor, the specific implementation and the technical effects of each step of the readable storage medium 600 provided in the embodiment of the present invention are the same as those of the embodiment of the foregoing method, and for a brief description, reference may be made to the corresponding content in the embodiment of the foregoing method for a part of this embodiment.
The term "and/or" as used herein is merely one association relationship describing the associated object, meaning that there may be three relationships, e.g., a and/or B, which may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship; the word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (19)

1. An erasing method for touch editing is characterized by comprising the following steps:
acquiring an erasure control parameter detected in an editing area of a display panel and acquiring a movement track of an erasure tool when the erasure tool is used;
And controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
2. The method of claim 1, wherein the controlling the erasure tool to erase the edited content of the edited region based on the movement trajectory and the erasure control parameter comprises:
Determining an identification area of the erasure tool based on the erasure control parameters; the identification area is the erasure range of any target position when the erasure tool moves to the target position, and the erasure control parameter is positively correlated with the area of the identification area;
And controlling the erasing tool to erase the edited content of the editing area based on the identification area and the moving track.
3. The method of claim 2, wherein the erasure control parameter is erasure speed; the determining the identification area of the erasure tool based on the erasure control parameters includes:
Based on the erase speed, an identification area of the erase tool is determined.
4. The method of claim 3, wherein the determining an identification area of the erase tool based on the erase speed comprises:
determining an identification area of the erasing tool based on the erasing speed and a preset speed area relation;
Wherein the speed area relationship is a changing relationship between the erasing speed and the identification area, and the erasing speed and the area of the identification area are positively correlated.
5. The method of claim 3, wherein the determining an identification area of the erase tool based on the erase speed comprises:
determining a target speed interval to which the erasing speed belongs from a plurality of preset speed intervals; wherein, different speed intervals correspond to identification areas with different areas;
And determining an identification area of the erasing tool based on the target speed interval.
6. The method of claim 5, wherein the speed values in the plurality of speed intervals sequentially from small to large comprise: a first speed interval, a second speed interval, and a third speed interval; the determining, based on the target speed interval, an identification area of the erasure tool includes:
if the target speed interval is a first speed interval, determining the identification area of a first area;
if the target speed interval is a second speed interval, determining the identification area of a second area;
If the target speed interval is a third speed interval, determining the identification area of a third area;
Wherein the first area is smaller than the second area, and the second area is smaller than the third area.
7. The method of claim 1, wherein the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
and if the erasing speed is determined to be greater than a preset first speed threshold value and the track length of the moving track is determined to be greater than a preset length threshold value, clearing the edited content of the editing area.
8. The method of claim 1, wherein the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
If the erasure speed is determined to be greater than a preset second speed threshold, determining a coverage area of the erasure tool based on the movement track;
And clearing the content units which overlap with the coverage area.
9. The method of claim 1, wherein the erasure control parameter is erasure speed; the controlling the erasing tool to erase the edited content of the editing area based on the movement track and the erasing control parameter includes:
If the erasing speed is determined to be greater than a preset third speed threshold, determining a track surrounding area of the erasing tool based on the moving track;
and clearing the content units overlapped with the surrounding area or clearing the edited content in the surrounding area.
10. The method according to claim 8 or 9, wherein the content unit comprises:
complete lines and/or single text units;
Wherein a single text unit includes any of a word, a sentence, a paragraph, and a word.
11. The method of claim 8, wherein the determining a track-surrounding area of the erase tool based on the movement track comprises:
and determining the minimum circumscribed rectangle corresponding to the moving track as the surrounding area.
12. The method of claim 2, wherein the erasure control parameter is a touch pressure; the determining the identification area of the erasure tool based on the erasure control parameters includes:
Determining an identification area of the erasing tool based on the touch pressure and a preset pressure area relation;
The pressure area relation is a change relation between the touch pressure and the identification area, and the touch pressure and the area of the identification area are positively correlated.
13. The method of claim 2, wherein the erasure control parameter is a touch pressure; the determining the identification area of the erasure tool based on the erasure control parameters includes:
determining a target pressure interval to which the touch pressure belongs from a plurality of preset pressure intervals; wherein, the different areas of the identification areas corresponding to different pressure intervals;
Based on the target pressure interval, an identification area of the erase tool is determined.
14. The method of claim 13, wherein the pressure values in the plurality of pressure intervals, in order from small to large, comprise: a first pressure interval, a second pressure interval, and a third pressure interval; the determining an identification area of the erasure tool based on the target pressure interval includes:
if the target pressure interval is a first pressure interval, determining the identification area of a first area;
if the target pressure interval is a second pressure interval, determining the identification area of a second area;
If the target pressure interval is a third pressure interval, determining the identification area of a third area;
Wherein the first area is smaller than the second area, and the second area is smaller than the third area.
15. The method of claim 12, 13 or 14, wherein the acquiring the erasure control parameters detected in the edit area of the display panel comprises:
Receiving touch pressure sent by a pressure sensing pen; the touch pressure is detected by the pressure sensing pen in an editing area of the display panel.
16. The method of claim 1, wherein the acquiring the erase control parameter detected in the edit area of the display panel is preceded by:
detecting touch operation of a user;
and when the touch area corresponding to the touch operation is determined to be larger than the preset trigger area, starting the erasing tool.
17. An erasing device for touch editing, comprising:
the erasing control parameter and track acquisition module is used for acquiring the erasing control parameter detected in the editing area of the display panel and acquiring the moving track of the erasing tool when the erasing tool is used;
And the erasing control module is used for controlling the erasing tool to erase the edited content of the editing area based on the moving track and the erasing control parameter.
18. An electronic device comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of claims 1-16.
19. A readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 1-16.
CN202211666249.7A 2022-12-23 2022-12-23 Touch editing erasing method and device Pending CN118244964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211666249.7A CN118244964A (en) 2022-12-23 2022-12-23 Touch editing erasing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211666249.7A CN118244964A (en) 2022-12-23 2022-12-23 Touch editing erasing method and device

Publications (1)

Publication Number Publication Date
CN118244964A true CN118244964A (en) 2024-06-25

Family

ID=91555290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211666249.7A Pending CN118244964A (en) 2022-12-23 2022-12-23 Touch editing erasing method and device

Country Status (1)

Country Link
CN (1) CN118244964A (en)

Similar Documents

Publication Publication Date Title
US20210406578A1 (en) Handwriting-based predictive population of partial virtual keyboards
US10942642B2 (en) Systems and methods for performing erasures within a graphical user interface
US6249606B1 (en) Method and system for gesture category recognition and training using a feature vector
US8131080B2 (en) Handwriting determination apparatus and method and program
EP2543971B1 (en) A method for an electronic device
EP1145101A3 (en) Pen based edit correction interface method and apparatus
WO2014147716A1 (en) Electronic device and handwritten document processing method
US10719229B2 (en) Detecting erasure gestures in an electronic presentation system
EP3413179B1 (en) Rejecting extraneous touch inputs in an electronic presentation system
US5249296A (en) Information processing apparatus for controlling window positions
KR20100028465A (en) The letter or menu input method which follows in drag direction of the pointer
US9811238B2 (en) Methods and systems for interacting with a digital marking surface
JPH0683522A (en) Coordinate input system
TW201423563A (en) Apparatus and method for processing handwriting input
US10409481B2 (en) Adaptive inking in an electronic presentation system
CN118244964A (en) Touch editing erasing method and device
CN113031817B (en) Multi-touch gesture recognition method and false touch prevention method
US11513678B2 (en) Context based annotating in an electronic presentation system
EP4073624B1 (en) Systems and methods for grid-aligned inking
CN109558007B (en) Gesture control device and method thereof
US20150067592A1 (en) Methods and Systems for Interacting with a Digital Marking Surface
KR20030095583A (en) Editing apparatus in the terminal using touch screen and method thereof
CN115136112A (en) Human-computer interaction method, device and system, and computer-readable storage medium
CN107957829A (en) A kind of input light target editor location regulation method, device and terminal device
JPH10171602A (en) Pen input system and device therefor

Legal Events

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