Content erasing method and device and storage medium

By creating a text positioning box on the writing application interface and performing erasing processing, the problem of insufficient flexibility in text erasing operation in the prior art is solved, and precise erasing of specific text content is achieved, improving user experience.

CN120371183APending Publication Date: 2025-07-25GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410074771.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, text erasing operations performed with complete text content as objects are relatively fixed and have poor flexibility. Users are unable to accurately erase specific text content, resulting in poor user experience.

Method used

By creating a text positioning box on the writing application interface, determining the hit text positioning box according to the erase operation, and performing erasing processing, the remaining text content is displayed coherently, and dynamic erasing of specific text content is achieved.

Benefits of technology

It improves the flexibility and accuracy of text erasing operations, enhances the user experience, allows users to accurately erase specific text content, and optimizes the editing ability of text content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371183A_ABST
    Figure CN120371183A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a content erasing method and device and a storage medium. According to the technical scheme provided by the embodiment of the invention, the text objects are determined according to the text content displayed in the writing application interface, one or more text positioning frames are created on the writing application interface according to each text object, and the text positioning frames hit by the second erasing operation on the writing application interface are erased. According to the method and the device, the text positioning frame is erased, residual text content is determined from the text content according to the erased text positioning frame, the residual text content is continuously displayed, dynamic erasure processing of the text content corresponding to the erasure operation is realized, and self-adaptive adjustment of the erased text content is realized by splicing and continuously displaying the residual text content, so that the dynamic erasure processing of the text content corresponding to the erasure operation is realized. The flexibility of the text erasing operation is effectively improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field of touch display, and in particular, to a content erasing method, device, and storage medium. Background Art

[0002] With the development of touch display technology, electronic devices such as interactive flat panels are more and more widely used, and users can use interactive flat panels to display, edit, delete, etc. various element contents (such as text, pictures, graphics, etc.).

[0003] Currently, various operations on element contents are generally performed with the complete element content as the object, and users cannot operate on specific element contents. For example, for the erasing operation of a text content, the whole text content needs to be used as the text object to erase the whole text content, and users cannot erase specific text contents therein. This text erasing operation with the complete text content as the text object is relatively fixed and has poor flexibility. Summary of the Invention

[0004] Embodiments of the present application provide a content erasing method, device, and storage medium to solve the technical problem that the text erasing operation with the complete text content as the text object in the related art is relatively fixed and has poor flexibility, and effectively improve the flexibility of the text erasing operation.

[0005] In a first aspect, embodiments of the present application provide a content erasing method, including:

[0006] Receiving a content erasing function triggering operation, determining a text object according to the text content displayed in a writing application interface, and creating one or more text positioning frames on the writing application interface according to each of the text objects; wherein, the writing application interface displays writing strokes and text content, and the text content is in a standard font format;

[0007] Receiving a first erasing operation on the writing application interface, and erasing the writing strokes on the writing application interface according to the first erasing operation;

[0008] Receiving a second erasing operation on the writing application interface, and determining the text positioning frame hit by the second erasing operation;

[0009] Performing an erasing process on the hit text positioning frame according to the second erasing operation;

[0010] Determining remaining text content from the text content according to the text positioning frame after the erasing process, and coherently displaying the remaining text content.

[0011] In the embodiment of the present application, a text object is determined according to the text content displayed in the writing application interface, one or more text positioning frames are created on the writing application interface according to each text object, the writing strokes on the writing application interface are erased according to the first erasing operation on the writing application interface, the text positioning frames hit by the second erasing operation on the writing application interface are erased, and the remaining text content is determined from the text content according to the erased text positioning frames, and the remaining text content is continuously displayed, so as to realize the dynamic erasing process of the text content corresponding to the second erasing operation, and through the continuous display of the remaining text content, the adaptive adjustment of the text content after the erasing process is realized, effectively improving the flexibility of the text erasing operation and enhancing the user experience.

[0012] In one embodiment, the step of creating one or more text positioning frames on the writing application interface according to each text object includes:

[0013] Text positioning frames are created on the writing application interface according to the size information and position information of each line of text content in each text object.

[0014] As described above, by accurately creating text positioning frames according to the size information and position information of each line of text content in the text object, the accuracy of erasing the text content is improved.

[0015] In one embodiment, the step of creating one or more text positioning frames on the writing application interface according to each text object includes:

[0016] Text positioning frames with a first transparency are created on the writing application interface according to each text object.

[0017] As described above, by creating text positioning frames with a first transparency on the writing application interface, the display effect of the text positioning frames is optimized and the user experience is enhanced.

[0018] In one embodiment, the step of determining the text positioning frames hit by the second erasing operation includes:

[0019] Determine the erasing range corresponding to the erasing point of the second erasing operation on the writing application interface, and determine the text positioning frames having an intersection with the erasing range as the text positioning frames hit by the second erasing operation.

[0020] As described above, by determining the intersection situation between the erasing range and the text positioning frames according to the erasing point of the second erasing operation, the hit efficiency and accuracy of the text positioning frames are effectively improved.

[0021] In one embodiment, determining the text positioning boxes that intersect with the erasure range as the text positioning boxes hit by the second erasure operation includes:

[0022] In the case where there are multiple text positioning boxes that intersect with the erasure range, determining the topmost text positioning box among the multiple text positioning boxes that intersect with the erasure range as the text positioning box hit by the second erasure operation.

[0023] As described above, by determining the topmost text positioning box among the multiple text positioning boxes that simultaneously intersect with the erasure range as the text positioning box hit by the second erasure operation, the hit efficiency and accuracy of the text positioning box are effectively improved, and the content erasure accuracy is improved.

[0024] In one embodiment, performing erasure processing on the hit text positioning box according to the second erasure operation includes:

[0025] Determining the intersection information between the erasure range corresponding to the erasure point of the second erasure operation on the writing application interface and the hit text positioning box;

[0026] Determining the remaining text positioning boxes among the text positioning boxes hit by the second erasure operation according to the intersection information.

[0027] As described above, by accurately determining the remaining text positioning boxes among the hit text positioning boxes after erasure processing according to the intersection information between the erasure range and the hit text positioning box, the determination accuracy of the remaining text content is improved, and the content erasure effect is ensured.

[0028] In one embodiment, the text positioning boxes are saved in a positioning box list. Determining the remaining text positioning boxes among the text positioning boxes hit by the second erasure operation according to the intersection information includes:

[0029] Determining the remaining text positioning boxes among the text positioning boxes hit by the second erasure operation according to the intersection information;

[0030] Adding the remaining text positioning boxes to the positioning box list and deleting the hit text positioning boxes from the positioning box list.

[0031] As described above, by recording the text positioning boxes through the positioning box list, when subsequently determining the remaining text content from the text content according to the text positioning boxes after erasure processing, the remaining text positioning boxes can be quickly determined from the positioning box list, and the remaining text content can be quickly determined according to the remaining text positioning boxes, improving the content erasure accuracy and efficiency.

[0032] In one embodiment, the starting position and the ending position of the text positioning box are recorded in a positioning list. After determining the remaining text positioning boxes in the text positioning box hit by the second erasing operation according to the intersection information, the method further includes:

[0033] Adding the starting position and the ending position of the remaining text positioning box to the positioning list, and deleting the starting position and the ending position of the hit text positioning box from the positioning list.

[0034] As described above, by recording the starting position and the ending position of the text positioning box through the positioning list, when subsequently determining the text content to be erased and the remaining text content from the text content according to the text positioning box after the erasing process, the erased text positioning box and the remaining text positioning box can be quickly determined from the positioning list, and the text content to be erased and the remaining text content can be quickly determined according to the erased text positioning box and the remaining text positioning box, improving the accuracy and efficiency of content erasing.

[0035] In one embodiment, determining the remaining text content from the text content according to the text positioning box after the erasing process includes:

[0036] Determining the remaining text content covered by the text positioning box after the erasing process from the text content according to the starting position and the ending position of each text positioning box in the positioning list.

[0037] As described above, by accurately determining the remaining text content covered by the remaining text positioning box after the erasing process according to the starting position and the ending position of each text positioning box in the positioning list, the text content to be retained can be quickly determined, improving the accuracy and efficiency of content erasing.

[0038] In one embodiment, coherently displaying the remaining text content includes:

[0039] Sequentially splicing the remaining text content according to the coordinate order of the starting position and the ending position of each text positioning box in the positioning list.

[0040] As described above, by splicing the remaining text content according to the coordinate order of the starting position and the ending position of the positioning box in the positioning list, the splicing of the remaining text content is ensured to be accurate and orderly, ensuring the content erasing effect.

[0041] In one embodiment, receiving the content erasing function trigger operation includes at least one of the following:

[0042] Receive a content erasure function trigger operation triggered by a content erasure function button;

[0043] Receive a content erasure function trigger operation triggered by a set gesture;

[0044] Receive a content erasure function trigger operation triggered by a set touch action;

[0045] Receive a content erasure function trigger operation triggered by touching a display screen with a touch item of a set media type.

[0046] As described above, by detecting the content erasure function trigger operation, the timing for creating a text positioning frame is accurately determined, and the content is accurately erased.

[0047] In one embodiment, the content erasure method further includes: when the coherent display of the remaining text content in the writing application interface is completed, determining text objects according to the remaining text content displayed in the writing application interface, and creating one or more text positioning frames on the writing application interface according to each text object.

[0048] As described above, by recreating a text positioning frame on the writing application interface according to the remaining text content displayed in the writing application interface when the coherent display of the remaining text content in the writing application interface is completed, the erasure operation of the text content can be subsequently performed based on the newly created text positioning frame, reducing the situation where the subsequent erasure operation of the text content is abnormal due to the non-correspondence between the text positioning frame and the remaining text content after one erasure of the text content, and ensuring that the subsequent text content can be correctly erased.

[0049] In one embodiment, the content erasure method further includes: receiving a third erasure operation on the writing application interface, and erasing graphic elements on the writing application interface according to the third erasure operation.

[0050] As described above, by erasing graphic elements on the writing application interface in response to a third erasure operation on the writing application interface, the flexibility of the text erasure operation is effectively improved, and the user experience is improved.

[0051] In one embodiment, after the erased text positioning frame is erased according to the second erasure operation, it further includes:

[0052] Determining the text content to be erased from the text content according to the erased text positioning frame, and redrawing the text content to be erased according to a set display effect.

[0053] As described above, by redrawing the text content to be erased according to the set display effect, it is convenient for the user to observe in real time the text content to be erased, achieving a dynamic erasing effect of the text content, enriching the editing ability of the text content, making it possible to have more operations on the text content in the interactive flat panel, and improving the user experience.

[0054] In one embodiment, the redrawing of the text content to be erased according to the set display effect includes:

[0055] Redrawing the text content to be erased according to a second transparency.

[0056] As described above, by redrawing the text content to be erased according to the second transparency, the user can more intuitively understand the situation of the text content being erased, improving the user experience.

[0057] In a second aspect, an embodiment of the present application provides a content erasing device, including: a memory and one or more processors;

[0058] The memory is used to store one or more programs;

[0059] When the one or more programs are executed by the one or more processors, the one or more processors implement the content erasing method as described in the first aspect.

[0060] In a third aspect, an embodiment of the present application provides a storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the content erasing method as described in the first aspect when executed by a computer processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 is a flowchart of a content erasing method provided by an embodiment of the present application;

[0062] Figure 2 is a flowchart of another content erasing method provided by an embodiment of the present application;

[0063] Figure 3 is a schematic diagram of a process for determining a remaining text positioning box provided by an embodiment of the present application;

[0064] Figure 4 is a display schematic diagram of an erasing range and a hit text positioning box provided by an embodiment of the present application;

[0065] Figure 5 is a schematic diagram of a process of text content change provided by an embodiment of the present application;

[0066] Figure 6 is another schematic diagram of a process of text content change provided by an embodiment of the present application;

[0067] Figure 7 It is a schematic structural diagram of a content erasure device provided by an embodiment of the present application. Specific implementation manners

[0068] In order to make the objectives, technical solutions and advantages of the present application clearer, the following further describes the specific embodiments of the present application in detail with reference to the accompanying drawings. It can be understood that the specific embodiments described herein are only used to explain the present application, rather than limiting the present application. Additionally, it should be noted that for the convenience of description, only parts related to the present application rather than all content are shown in the drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. When the operations are completed, the above-mentioned process can be terminated, but there can also be additional steps not included in the drawings. The above-mentioned process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0069] The interactive flat panel applied in this solution can be an integrated device that manipulates the content displayed on the display screen through touch technology and realizes human-computer interaction operations. It integrates one or more functions such as a projector, an electronic whiteboard, a curtain, a speaker, a television, and a video conferencing terminal. Of course, the interactive flat panel does not include the limitation of the surface characteristics of the display surface. For example, the surface characteristics of the interactive flat panel can be a plane, a curved surface, or a splicing of multiple planes, etc.

[0070] Typically, the interactive tablet is installed with at least one operating system, wherein the operating system includes but is not limited to Android system, Linux system, Windows system and Huawei Hongmeng system, which is used to control and coordinate the interactive tablet and peripheral devices, so that various independent hardware in the interactive tablet can work as a stable whole. The interactive tablet includes at least one display screen, for example, the interactive tablet is configured with a display screen with a touch function, that is, a touch-sensitive display screen. The touch-sensitive display screen can be an infrared display screen, a capacitive display screen, a resistive display screen, an electromagnetic display screen or a pressure-sensitive display screen, etc. On the display screen with a touch function, the user can touch the display screen by touching the finger or a writing pen to realize the touch operation. Accordingly, the interactive tablet detects the touch position and responds according to the touch position to realize the touch function. The interactive tablet can process the touch operation received through the display screen through the operating system. Further, the interactive tablet can install at least one application based on the operating system, for example, a whiteboard application is installed in the interactive tablet. Among them, the whiteboard application can be an application that comes with the operating system, or it can be an application downloaded from a third-party device or server. When running the whiteboard application, a writing application interface will be displayed on the display screen. You can use your fingers or a writing pen to write within the range of the writing application interface on the display screen. The interactive tablet will respond to the writing operation by displaying the corresponding handwriting in the writing application interface. You can also perform text recognition on the handwriting and display the recognized text in the writing application interface. You can also insert text content and graphic elements into the writing application interface. Optionally, the text content can be input through text recognition of the handwriting, or through a virtual keyboard or an external physical keyboard.

[0071] The content erasing method provided in the present application can be applied to the erasing operation of text content on an interactive tablet, such as erasing part of the text content on the interactive tablet. In the existing text content erasing scheme, the entire text content is generally used as the text object. When erasing the entire text content, the user cannot erase specific text content therein. The erasing operation of the text content erasing scheme is relatively fixed and has poor flexibility. In addition, in the use scenario of an interactive tablet, editing text using a mouse and keyboard is a relatively difficult operation, and does not conform to the user's usage habits, resulting in a poor user experience.

[0072] Based on this, a content erasing method according to an embodiment of the present application is provided to solve the technical problems of the existing text content erasing scheme, that the erasing operation is relatively fixed, the flexibility is poor, and the user experience is poor. The method aims to determine the remaining text content from the text content according to the text positioning frame after the erasure process, and display the remaining text content coherently, so as to realize the dynamic erasing process of the text content corresponding to the erasing operation, effectively improve the flexibility of the text erasing operation, and improve the user experience.

[0073] Figure 1 The flowchart of a content erasure method provided by an embodiment of the present application is given. The content erasure method provided by the embodiment of the present application can be implemented in a hardware and / or software manner and integrated in a content erasure device (such as an interactive flat panel).

[0074] The following describes the content erasure method executed by the content erasure device as an example. Refer to Figure 1 This content erasure method includes:

[0075] S110: Receive a content erasure function trigger operation, determine text objects according to the text content displayed in the writing application interface, and create one or more text positioning frames for each text object on the writing application interface.

[0076] Exemplarily, when a whiteboard application runs on the content erasure device, a writing application interface will be displayed on the display screen of the content erasure device. A writing operation can be performed within the range corresponding to the writing application interface on the display screen by finger or writing pen. The content erasure device will display corresponding writing strokes in the writing application interface in response to the writing operation, and text content can also be inserted into the writing application interface. At this time, writing strokes and text content are displayed on the writing application interface, and the font format corresponding to the text content is the standard font format. For example, the standard font format can be a font format encoded based on encoding standards such as GB2312, Times NewRoman, etc. When it is necessary to erase the content on the writing application interface, the content erasure function trigger operation can be triggered to enable the content erasure device to enter the erasure mode, and the user can perform an erasure operation on the content displayed on the writing application interface in the erasure mode.

[0077] When the content erasure device enters the erasure mode, it determines the text content displayed in the current writing application interface and creates text objects according to the text content. Optionally, the text content located in the same paragraph can be created as one text object. When there are multiple paragraphs of text content displayed in the writing application interface, multiple text objects are determined according to the multiple paragraphs of text content respectively. Among them, the text content can be a single character or symbol, or a combination of multiple characters and / or symbols. A paragraph of text content can be a line of text content or multiple lines of text content.

[0078] After determining the text object corresponding to the text content displayed in the writing application interface, a hittable text positioning box is created on the writing application interface according to each text object. Herein, the text positioning box can be understood as a rectangular box used to position the text content on the writing application interface, and the text content on the writing application interface can be positioned according to the text positioning box. One or more text positioning boxes can be created corresponding to each text object. The size and position of the text positioning box correspond to the size and position of the text content in the text object, and each text positioning box corresponds to one line of text content. For example, when the text object is determined according to the text content of one line, one text positioning box is created according to the text object; when the text object is determined according to the text content of multiple lines, multiple text positioning boxes are created according to the text object.

[0079] In one embodiment, the erasing mode of the content erasing device can be triggered by an erasing function button provided on the content erasing device, or can be triggered by detecting the medium type of the touch content erasing device. For example, when it is detected that the medium type is an eraser or a blackboard eraser, the erasing mode is triggered.

[0080] In a possible embodiment, when the content erasing method provided in this solution creates one or more text positioning boxes on the writing application interface according to each text object, it can be: creating text positioning boxes on the writing application interface according to the size information and position information of each line of text content in each text object.

[0081] Exemplarily, after determining the text object corresponding to the text content displayed in the writing application interface, for each text object, it is determined to create a text positioning box corresponding to each line of text content on the writing application interface according to the size information (including length and width) and position information of each line of text content in the text object. At this time, the size (including length and width) and position of the text positioning box are consistent with the size information and position information of the corresponding line of text content, and the text positioning box can cover the corresponding line of text content. This solution accurately creates text positioning boxes according to the size information and position information of each line of text content in the text object, improving the accuracy of erasing the text content.

[0082] In a possible embodiment, when the solution provided in this solution creates one or more text positioning boxes on the writing application interface according to each text object, it can be: creating text positioning boxes with a first transparency on the writing application interface according to each text object.

[0083] Exemplarily, after determining the text object, a text positioning frame with a first transparency is created on the writing application interface. Among them, the transparency range of the first transparency can be 50%-100%. For example, when the first transparency is 100%, the text positioning frame is set to be fully transparent, and the creation of the text positioning frame will not affect the display effect of the text content on the writing application interface. The text positioning frame is generated without the user's awareness, improving the user experience. When the first transparency is less than 100%, the text positioning frame can be observed on the writing application interface, and the user can quickly and accurately determine the text content that can be subjected to the second erasing operation through the text positioning frame, improving the content erasing efficiency and the user experience. Optionally, the user can set a combination of one or more of the first transparency, border color, and filling color according to the display effect requirements of the text positioning frame. This solution optimizes the display effect of the text positioning frame and the user experience by creating a text positioning frame with a first transparency on the writing application interface.

[0084] In one embodiment, when receiving a content erasing function triggering operation, the content erasing method provided by this solution includes at least one of the following methods: Method 1: Receive a content erasing function triggering operation triggered by a content erasing function button; Method 2: Receive a content erasing function triggering operation triggered by a set gesture; Method 3: Receive a content erasing function triggering operation triggered by a set touch action; Method 4: Receive a content erasing function triggering operation triggered by touching the display screen with a touch item of a set medium type.

[0085] Exemplarily, for the first method, a content erasure function button can be set in the whiteboard application, and the user can trigger the content erasure function trigger operation by clicking the content erasure function button. Optionally, the content erasure function button can be set in the operation panel, and the content erasure function trigger operation can be triggered for the content erasure function button in the operation panel by calling out the operation panel. For the second method, a shooting device (such as a camera or an infrared camera) configured or externally connected to the content erasure device can be used to detect the user's gesture actions. When the detected user's gesture action is a set gesture, it is determined that the user has triggered the content erasure function trigger operation. For example, the set gesture can be a gesture of raising the hand to erase. For the third method, the touch actions performed on the display screen can be detected. When a set touch action is detected, it is determined that the user has triggered the content erasure function trigger operation. For example, the touch trajectory corresponding to the set touch action can be a trajectory of erasing back and forth on the display screen, or a trajectory where the touch area is larger than the set area (such as moving with the palm attached to the display screen). For the fourth method, the medium type of the touch object touching the touch display screen can be detected, and when the medium type of the touch object performing the touch operation on the display screen is the set medium type (such as the set medium type being an eraser, a palm, a pen barrel of a writing pen, etc.), it is determined that the user has triggered the content erasure function trigger operation. Optionally, the detection of the medium type of the touch object can be performed by an elastic wave detection unit configured on the content erasure device. For example, the elastic waves generated when the touch object touches the display screen are detected, and when the detected elastic waves match the elastic waves generated when the set medium type touches the display screen, it is determined that the medium type of the touch object is the set medium type. This solution accurately determines the timing of creating the text positioning frame by detecting the content erasure function trigger operation and accurately erases the content.

[0086] S120: Receive the first erasure operation on the writing application interface, and erase the writing strokes on the writing application interface according to the first erasure operation.

[0087] Exemplarily, after entering the erasure mode, the user can initiate the first erasure operation on the writing strokes to be erased on the writing application interface using media such as a writing pen, an eraser, or a hand. After the content erasure device detects the first erasure operation performed on the writing application interface, it determines the writing strokes hit by the first erasure operation and erases the writing strokes hit by the first erasure operation on the writing application interface.

[0088] S130: Receive the second erasure operation on the writing application interface, and determine the text positioning frame hit by the second erasure operation.

[0089] Exemplarily, after entering the erasure mode, the user can initiate a second erasure operation on the text content to be erased on the writing application interface by means of a stylus, an eraser, a hand, or other media. After detecting the second erasure operation performed on the writing application interface, the content erasure device determines the text positioning box hit by the second erasure operation.

[0090] Among them, when the user triggers the second erasure operation according to the position of the text content to be erased on the writing application interface, the text positioning box hit by the second erasure operation includes the text positioning box corresponding to the text content to be erased. Optionally, the text positioning box hit by the second erasure operation can be determined according to the size and position of each text positioning box, and the position of one or more erasure points of the erasure path passed by the second erasure operation.

[0091] S140: Perform erasure processing on the hit text positioning box according to the second erasure operation.

[0092] Exemplarily, after determining the text positioning box hit by the second erasure operation, perform erasure processing on the hit text positioning box according to the second erasure operation to determine the text positioning box after the erasure processing. Among them, the erasure processing of the text positioning box can be to erase the part corresponding to the second erasure operation in the hit text positioning box. For example, according to the erasure range corresponding to the second erasure operation, erase the corresponding length from the hit text positioning box. The unhit text positioning box will maintain its original shape. After the hit text positioning box is erased, the hit text positioning box is divided into the erased text positioning box and the remaining text positioning box. The combined shape of the erased text positioning box and the remaining text positioning box corresponds to the shape of the hit text positioning box.

[0093] Among them, during the process of the user triggering the second erasure operation (a complete second erasure operation is from the pen-down to the pen-up of the user's one-time eraser), multiple erasure points on the erasure path of the second erasure operation will be continuously detected. The text positioning box hit can be determined in sequence according to each erasure point, and erasure processing is performed on the hit text positioning box. The remaining text positioning box after the erasure processing of the text positioning box based on one erasure point will be used as the new text positioning box at the next erasure point, and the original text positioning box can be deleted to ensure the accuracy of content erasure. Based on this, during the process of triggering a second erasure operation, a text positioning box will be repeatedly hit and erased, and the shape (length) of the corresponding remaining text positioning box will gradually decrease.

[0094] It should be explained that when the user triggers the second erasure operation according to the position of the text content to be erased on the writing application interface, the range of the erased text positioning box in the writing application interface covers the text to be erased, or there is an intersection with the range corresponding to the text to be erased.

[0095] S150: Determine the remaining text content from the text content according to the text positioning box after the erasure process, and continuously display the remaining text content.

[0096] Exemplarily, after the user completes a second erasure operation, determine the text positioning boxes remaining after the last second erasure operation on the hit text positioning boxes, and determine the remaining text content from the text content according to the remaining text positioning boxes (including the unhit text positioning boxes and the text positioning boxes remaining after erasure), and continuously display the remaining text content. Among them, continuously displaying the remaining text content may be that after erasing one or more text content characters, the positions originally occupied by the erased text content are removed from the redisplayed text, and the positions originally occupied by the erased text content are filled with the subsequent remaining text content, so that after erasing some text content, the display of the remaining text content is continuous, rather than leaving the positions originally occupied by the erased text content empty.

[0097] At this time, the text content displayed on the writing application interface consists of the remaining text content, and the text content outside the remaining text content in the original text content is deleted, presenting a display effect in which some text content is erased. In one embodiment, when continuously displaying the remaining text content, the positions of each character and / or symbol of the remaining text will be adaptively adjusted to improve the display effect after content erasure.

[0098] As described above, in the embodiment of the present application, text objects are determined according to the text content displayed in the writing application interface, one or more text positioning boxes are created on the writing application interface according to each text object, the writing strokes on the writing application interface are erased according to the first erasure operation on the writing application interface, the text positioning boxes hit by the second erasure operation on the writing application interface are erased, and the remaining text content is determined from the text content according to the text positioning boxes after the erasure process, and the remaining text content is continuously displayed, so as to realize the dynamic erasure process of the text content corresponding to the second erasure operation, and through the continuous display of the remaining text content, the adaptive adjustment of the text content after the erasure process is realized, effectively improving the flexibility of the text erasure operation and improving the user experience.

[0099] Based on the above embodiment, Figure 2 A flowchart of another content erasure method provided by the embodiment of the present application is given. This content erasure method is a specific implementation of the above content erasure method. Refer to Figure 2 , this content erasure method includes:

[0100] S210: Receive a content erasure function trigger operation, determine text objects according to the text content displayed in the writing application interface, and create one or more text positioning boxes on the writing application interface according to each text object.

[0101] S220: Receive a first erasing operation on the writing application interface, and erase the writing trace on the writing application interface according to the first erasing operation.

[0102] S230: Receive a second erasing operation on the writing application interface, determine the erasing range corresponding to the erasing point of the second erasing operation on the writing application interface, and determine the text positioning frame having an intersection with the erasing range as the text positioning frame hit by the second erasing operation.

[0103] Exemplarily, after receiving the second erasing operation performed on the writing application interface, determine the erasing range corresponding to each erasing point in the erasing path of the second erasing operation on the writing application interface. In one embodiment, the erasing range may be a circular range with the erasing point as the center and a set length as the radius, where the set length can be determined according to the set eraser width.

[0104] After determining the erasing range, determine the text positioning frame having an intersection with the erasing range, and determine the text positioning frame having an intersection with the erasing range as the text positioning frame hit by the second erasing operation. This solution accurately determines the hit text positioning frame by determining the intersection situation between the erasing range and the text positioning frame according to the erasing point of the second erasing operation, effectively improving the hit efficiency and accuracy of the text positioning frame.

[0105] In a possible embodiment, when the content erasing method provided in this solution determines the text positioning frame having an intersection with the erasing range as the text positioning frame hit by the second erasing operation, it may be: in the case of multiple text positioning frames having an intersection with the erasing range, determine the topmost text positioning frame among the multiple text positioning frames having an intersection with the erasing range as the text positioning frame hit by the second erasing operation.

[0106] Exemplarily, when determining multiple text positioning frames having an intersection with the erasing range according to the erasing range corresponding to the erasing point, determine the hierarchical relationship between these text positioning frames having an intersection with the erasing range, and determine the topmost text positioning frame among these text positioning frames as the text positioning frame hit by the second erasing operation. For example, when multiple paragraphs of text content are stacked on the writing application interface, at this time, the second erasing operation may hit the text positioning frames corresponding to multiple stacked text contents at the same time. At this time, the topmost text positioning frame among these text positioning frames can be determined as the text positioning frame hit by the second erasing operation.

[0107] Optionally, the level of the text positioning box can be determined according to the corresponding text content. For example, the later (i.e., the closer to the current time) the text content corresponding to the text positioning box is added to the writing application interface and / or operated (such as text editing, text movement, etc.), the higher the corresponding level. In this solution, the topmost text positioning box among multiple text positioning boxes that simultaneously intersect with the erasure range is determined as the text positioning box hit by the second erasure operation, effectively improving the hit efficiency and accuracy of the text positioning box and the content erasure accuracy.

[0108] S240: Determine the intersection information between the erasure range corresponding to the erasure point of the second erasure operation on the writing application interface and the hit text positioning box.

[0109] S250: Determine the remaining text positioning boxes among the text positioning boxes hit by the second erasure operation according to the intersection information.

[0110] After determining the text positioning box hit by the erasure point corresponding to the second erasure operation, further perform erasure processing on the hit text positioning box according to the second erasure operation. Exemplarily, determine the intersection information between the erasure range corresponding to the erasure point of the second erasure operation on the writing application interface and the hit text positioning box. Among them, the intersection information can reflect the intersection situation between the erasure range and the hit text positioning box. Optionally, the intersection information can be the starting point and the ending point of the minimum circumscribed rectangle corresponding to the intersection of the erasure range and the text positioning box.

[0111] Furthermore, according to the intersection information, determine the part to be erased and the remaining part in the text positioning box hit by the second erasure operation, and this remaining part is the remaining text positioning box among the hit text positioning boxes. For example, determine the part to be erased in the hit text positioning box according to the starting point and the ending point of the minimum circumscribed rectangle corresponding to the intersection of the erasure range and the text positioning box, and the remaining part of this text positioning box is the remaining part. In this solution, by accurately determining the remaining text positioning box after erasure processing of the hit text positioning box according to the intersection information between the erasure range and the hit text positioning box, the determination accuracy of the remaining text content is improved, and the content erasure effect is ensured.

[0112] In one embodiment, the text positioning box provided by this solution can be saved in a positioning box list, such as Figure 3 As shown in the schematic diagram of the remaining text positioning box determination process provided, when the content erasure method provided by this solution determines the remaining text positioning boxes among the text positioning boxes hit by the second erasure operation according to the intersection information, it includes:

[0113] S251: Determine the remaining text positioning boxes in the text positioning boxes hit by the second erasure operation according to the intersection information.

[0114] S252: Add the remaining text positioning box to the positioning box list and delete the hit text positioning box from the positioning box list.

[0115] Exemplarily, when creating a text positioning box according to a text object on a writing application interface, record the created text positioning box in the positioning box list. After determining the intersection information between the erasing range corresponding to the erasing point of the second erasing operation on the writing application interface and the hit text positioning box, determine the remaining text positioning boxes hit by the second erasing operation according to the intersection information. For example, determine the part to be erased in the hit text positioning box according to the starting point and the ending point of the minimum bounding rectangle corresponding to the intersection of the erasing range and the text positioning box, and the remaining part of the text positioning box is the remaining text positioning box.

[0116] Furthermore, add the determined remaining text positioning box to the positioning box list and delete the hit text positioning box from the positioning box list. At this time, the hit text positioning box is updated to the remaining text positioning box. If the next erasing point still hits the remaining text positioning box, the remaining text positioning box will be used as the hit text positioning box for erasing processing. This solution records the text positioning box through the positioning box list. Subsequently, when determining the remaining text content from the text content according to the text positioning box after erasing processing, the remaining text positioning box can be quickly determined from the positioning box list, and the remaining text content can be quickly determined according to the remaining text positioning box, improving the accuracy and efficiency of content erasing.

[0117] In a possible embodiment, the starting position and the ending position of the positioning box of the text positioning box provided in this solution can be recorded in the positioning list. Based on this, after determining the remaining text positioning boxes in the text positioning box hit by the second erasing operation according to the intersection information, the content erasing method provided in this solution further includes: adding the starting position and the ending position of the positioning box of the remaining text positioning box to the positioning list, and deleting the starting position and the ending position of the positioning box of the hit text positioning box from the positioning list.

[0118] Exemplarily, when creating a text positioning box according to a text object on a writing application interface, while recording the created text positioning box in the positioning list, add the starting position and the ending position of the positioning box of each text positioning box to the positioning list. Optionally, the starting position and the ending position of the positioning box of the text positioning box can be determined according to the diagonal positions of the text positioning box (such as the upper left corner and the lower right corner), or can be determined according to the positions of the lower left corner and the lower right corner of the text positioning box. The width of the text positioning box can be determined according to the character height of the corresponding text content.

[0119] After determining the remaining text positioning boxes hit by the second erasing operation, add the starting position and ending position of the remaining text positioning boxes to the positioning list, and delete the starting position and ending position of the hit text positioning box from the positioning list. At this time, the starting position and ending position of the hit text positioning box are updated to the starting position and ending position of the corresponding remaining text positioning box. This solution records the starting position and ending position of the text positioning box through the positioning list. Subsequently, when determining the text content to be erased and the remaining text content from the text content according to the text positioning box after erasing processing, the erased text positioning box and the remaining text positioning box can be quickly determined from the positioning list, and the text content to be erased and the remaining text content can be quickly determined according to the erased text positioning box and the remaining text positioning box, improving the accuracy and efficiency of content erasing.

[0120] As Figure 4 As shown in the display schematic diagram of the erasing range and the hit text positioning box provided, assuming that the lower left corner and the lower right corner of the text positioning box are used to represent the starting point and the ending point of the text positioning box, the width of the text positioning box can be determined according to the character height of the corresponding text content. Assuming that the lower left corner of the hit text positioning box A is point a and the lower right corner is point b, the text positioning box A is recorded in the positioning box list, and the starting position a and the ending position b of the text positioning box are recorded in the positioning list.

[0121] Assume that the center of the erasing range D11 (i.e., the erasing point) is below the text positioning box A1. The line segment ab forms a cutting line for the erasing range D11, and its intersection points with the erasing range D11 are c and d respectively. c and d are the starting point and the ending point of the minimum circumscribed rectangle corresponding to the intersection of the erasing range D11 and the text positioning box A1. At this time, the range from c to d in the text positioning box A1 is the part to be erased, and the ranges from a to c and from d to b are the remaining parts. The remaining text positioning boxes in the hit text positioning box A1 are the text positioning box A11 corresponding to the part from a to c and the text positioning box A12 corresponding to the part from d to b, which is equivalent to erasing the part from c to d in the text positioning box A1. At the same time, delete the text positioning box A1 from the positioning box list, and add the text positioning boxes A11 and A12 to the positioning box list; delete the starting position a and the ending position b of the text positioning box A1 from the positioning list, and add the starting position a and the ending position c of the text positioning box A11, and the starting position d and the ending position b of the text positioning box A12 to the positioning list.

[0122] Assume that the center of the erasure range D12 (i.e., the erasure point) is inside the text positioning frame A1. The two extreme points e and f in the horizontal direction of the erasure range D12 are the starting point and the ending point of the minimum circumscribed rectangle corresponding to the intersection of the erasure range D12 and the text positioning frame A1. At this time, the range corresponding to e to f in the text positioning frame A1 is the part that needs to be erased, and the ranges corresponding to a to e and f to b are the remaining parts. The remaining text positioning frames in the hit text positioning frame A1 are the text positioning frame A13 corresponding to the part from a to e and the text positioning frame A14 corresponding to the part from f to b, which is equivalent to erasing the part from e to f in the text positioning frame A1. At the same time, delete the text positioning frame A1 from the positioning frame list, and add the text positioning frames A13 and A14 to the positioning frame list; delete the starting position a and the ending position b of the text positioning frame A1 from the positioning list, and add the starting position a and the ending position e of the text positioning frame A13, and the starting position f and the ending position b of the text positioning frame A14 to the positioning list. Record the text positioning frames through the positioning frame list, and record the starting position and the ending position of the text positioning frames through the positioning list. Subsequently, when determining the text content to be erased and the remaining text content from the text content according to the text positioning frames after the erasure process, the erased text positioning frames, the remaining text positioning frames, and the corresponding starting positions and ending positions of the positioning frames can be quickly determined from the positioning list, and according to the erased text positioning frames, the remaining text positioning frames, and the starting positions and ending positions of the positioning frames, the text content to be erased and the remaining text content can be quickly determined, improving the accuracy and efficiency of content erasure.

[0123] In a possible embodiment, after the content erasure method provided by this solution erases the hit text positioning frame according to the second erasure operation, it further includes: determining the text content to be erased from the text content according to the text positioning frame after the erasure process, and redrawing the text content to be erased according to the set display effect.

[0124] Exemplarily, after determining to perform an erasure process on the hit text positioning box, the text content to be erased is determined from the text content according to the text positioning box after the erasure process. For example, according to the starting position and ending position of each text positioning box recorded in the positioning list, the text positioning box to be erased is determined, and the text content to be erased is determined according to the text positioning box to be erased. The text content to be erased can be redrawn according to the set display effect. Optionally, the set display effect is used to indicate the transparency, size, text color, background color, whether to add highlighting, whether to add an underline, whether to add a strikethrough, etc. of the text content. By redrawing the text content to be erased according to the set display effect, this solution facilitates the user to observe the text content to be erased in real time, realizes the dynamic erasure effect of the text content, enriches the editing ability of the text content, makes it possible to perform more operations on the text content in the interactive flat panel, and improves the user experience.

[0125] In one embodiment, when redrawing the text content to be erased according to the set display effect, this solution can redraw the text content to be erased according to the second transparency. Optionally, the transparency range of the second transparency can be 50%-100%. For example, when the second transparency is 100%, the text content to be erased is redrawn as completely transparent text content, presenting the display effect that the text to be erased is erased. When the second transparency is lower than 100%, the user can observe that the text to be erased fades, and the user can more intuitively understand the situation of the text content being erased, improving the user experience.

[0126] S260: Determine the remaining text content from the text content according to the text positioning box after the erasure process, and continuously display the remaining text content.

[0127] In a possible embodiment, the starting position and ending position of the text positioning box provided by this solution can be recorded in the positioning list. Based on this, when determining the remaining text content from the text content according to the text positioning box after the erasure process in the content erasure method provided by this solution, it can be: According to the starting position and ending position of each text positioning box in the positioning list, determine the remaining text content covered by the text positioning box after the erasure process from the text content.

[0128] Exemplarily, after erasing the hit text positioning box according to the second erasing operation, determine the starting position and ending position of each text positioning box in the positioning list, and according to the starting position and ending position of each text positioning box, determine the remaining text content covered by the text positioning boxes after the erasing process (including the text positioning boxes that have not been hit and the remaining text positioning boxes after the erasing process) from each text content. The remaining text content covered by the text positioning boxes in these positioning box lists is the text content not erased by the second erasing operation. This solution accurately determines the remaining text content covered by the remaining text positioning boxes after the erasing process by according to the starting position and ending position of each text positioning box in the positioning list, quickly determines the text content that needs to be retained, and improves the accuracy and efficiency of content erasing.

[0129] Optionally, after the user completes a second erasing operation, determine the remaining text positioning boxes after the last second erasing operation on the hit text positioning boxes, and after determining the remaining text content from the text content according to the remaining text positioning boxes (including the unhit text positioning boxes and the remaining text positioning boxes after erasing), the remaining text content can be spliced to coherently display the remaining text content. In a possible embodiment, when coherently displaying the remaining text content, the content erasing method provided in this solution can be: splicing the remaining text content in sequence according to the coordinate order of the starting position and ending position of each text positioning box in the positioning list.

[0130] Exemplarily, after determining the remaining text content covered by the text positioning boxes recorded in the current positioning box list, splice the determined remaining text content in sequence according to the coordinate order from left to right and from top to bottom of the starting position and ending position of each text positioning box in each positioning list to obtain the content erasing result in response to the second erasing operation. This solution splices the remaining text content according to the coordinate order of the starting position and ending position of the positioning box in the positioning list, ensures the accurate and orderly splicing of the remaining text content, and ensures the content erasing effect.

[0131] As Figure 5 As shown in the schematic diagram of the change process of a text content provided, in the figure, T1 is the text content corresponding to "The weather is really nice today", and the text content T1 is a line of text. Determine the text object S1 according to the text content T1 (the text object is represented by a dotted box), and further create a text positioning box A2 on the writing application interface according to the text object S1.

[0132] After receiving the second erasure operation, assuming that the second erasure operation corresponds to the position of the character "day" in "weather" (assuming that multiple erasure points of the second erasure operation all hit the character "day"), at this time, for the text positioning frame A2 in the second erasure operation, the corresponding text of "day" is the text content to be erased. After performing the second erasure operation on the text positioning frame A2, the shaded part in the figure is the erased part of the text positioning frame A2. The text positioning frame A2 is divided into text positioning frames A21 and A22. The text positioning frame A2 can be deleted from the positioning frame list, and the starting position and ending position of the positioning frame corresponding to the text positioning frame A2 can be deleted from the positioning list. Then, the text positioning frames A21 and A22 are added to the positioning frame list, and the starting position and ending position of the positioning frame corresponding to the text positioning frames A21 and A22 are added to the positioning list. At the same time, the overlapping text content "day" in the erased part of the text positioning frame A2 is redrawn as transparent text. After completing the second erasure operation, according to the starting position and ending position of the positioning frame in the positioning list, the remaining text content "today" and "the weather is really nice" covered by each current text positioning frame is determined, and the remaining text content is spliced in the order of coordinate points. Among them, "the weather is really nice" is moved forward by the distance corresponding to "day", and the corresponding content erasure result is "today the weather is really nice".

[0133] As Figure 6 As shown in another schematic diagram of the text content change process provided, in the figure, T2 is the text content corresponding to "today the weather is really nice". The text content T2 consists of two lines of text. The first line of text in the text content T2 is "today you weather", and the second line of text is "really nice". According to the text content T2, the text object S2 is determined (the text object is represented by a dotted box). Further, according to the text object S2, the text positioning frames A3 and A4 are created on the writing application interface.

[0134] After receiving the second erasing operation, assuming that the erasing point corresponds to the position of the word "weather" (assuming that multiple erasing points in the second erasing operation all hit the word "sky" and / or "air"), at this time, in the second erasing operation, the text positioning box A3, the corresponding "weather" text is the text content to be erased, after the second erasing operation is performed on the text positioning box A3, the shaded part in the figure is the erased part of the text positioning box A3, and the text positioning box A3 is divided into text positioning boxes A31 and A32, and the text positioning box A3 can be deleted from the positioning box list, and the positioning box starting position and positioning box end position corresponding to the text positioning box A3 are deleted from the positioning list, and the text positioning boxes A31 and A32 are added to the positioning box list, and the positioning box starting position and positioning box end position corresponding to the text positioning boxes A31 and A32 are added to the positioning list. At the same time, the text content "weather" that overlaps the erased part of the text positioning box A3 is redrawn as transparent text. After completing the second erasing operation, the remaining text content "Today" and "It's great" covered by the current text positioning boxes are determined according to the starting position and the ending position of the positioning box in the positioning list, and the remaining text content is spliced according to the order of coordinate points, where "It's great" moves forward the distance corresponding to "Weather", and the corresponding content erasing result is "The weather is great today."

[0135] In a possible embodiment, the content erasing method provided by the present solution may further include: receiving a third erasing operation on the writing application interface, and erasing the graphic elements on the writing application interface according to the third erasing operation.

[0136] Exemplarily, when a whiteboard application is run on a content erasing device, a graphic element can be inserted into a writing application interface. After the content erasing device enters the erasing mode, the user can use a stylus, a blackboard eraser, a hand, or other media to initiate a third erasing operation on the graphic element to be erased on the writing application interface. After detecting the third erasing operation performed on the writing application interface, the content erasing device determines the graphic element targeted by the third erasing operation and erases the graphic element targeted by the third erasing operation on the writing application interface. This solution effectively improves the flexibility of text erasing operations and improves user experience by erasing graphic elements on the writing application interface in response to the third erasing operation on the writing application interface.

[0137] In a possible embodiment, the content erasing method provided by the present solution may also include: upon completing the coherent display of the remaining text content in the writing application interface, determining the text object according to the remaining text content displayed in the writing application interface, and creating one or more text positioning boxes on the writing application interface according to each text object.

[0138] Exemplarily, after completing the coherent display of the remaining text content in the writing application interface, the text positioning box currently on the writing application interface can be cleared, and the text objects corresponding to the remaining text content displayed in the writing application interface can be determined. A hittable text positioning box can be created on the writing application interface according to each text object. Subsequently, an erasing operation on the text content can be performed based on the newly created text positioning box. Among them, when creating a text positioning box according to the remaining text content displayed in the writing application interface, the steps of creating a text positioning box according to the text content displayed in the writing application interface in the content erasing method provided by this solution can be referred to, and the corresponding technical effects can be achieved. This solution will not be elaborated here. By recreating a text positioning box on the writing application interface according to the remaining text content displayed in the writing application interface when completing the coherent display of the remaining text content in the writing application interface, an erasing operation on the text content can be performed based on the newly created text positioning box subsequently, reducing the situation where the subsequent erasing operation of the text content is abnormal due to the mismatch between the text positioning box and the remaining text content after completing an erasing operation on the text content once, and ensuring that the subsequent text content can be correctly erased.

[0139] As described above, in the embodiment of the present application, text objects are determined according to the text content displayed in the writing application interface, one or more text positioning boxes are created on the writing application interface according to each text object, the writing strokes on the writing application interface are erased according to the first erasing operation on the writing application interface, the text positioning boxes hit by the second erasing operation on the writing application interface are erased, and the remaining text content is determined from the text content according to the text positioning boxes after the erasing process, and the remaining text content is coherently displayed, so as to realize the dynamic erasing process of the text content corresponding to the second erasing operation. And through the coherent display of the remaining text content, the adaptive adjustment of the text content after the erasing process is realized, effectively improving the flexibility of the text erasing operation and enhancing the user experience. And by accurately determining the remaining text positioning boxes of the hit text positioning boxes after the erasing process according to the intersection information between the erasing range and the hit text positioning boxes, the determination accuracy of the remaining text content is improved, and the content erasing effect is ensured. And by redrawing the text content to be erased according to the set display effect, it is convenient for the user to observe in real time the text content to be erased, realizing the dynamic erasing effect of the text content, enriching the editing ability of the text content, making it possible to perform more operations on the text content in the interactive flat panel, and enhancing the user experience.

[0140] The embodiment of the present application also provides a content erasing device, which can implement the content erasing method provided by any embodiment of the present application. Figure 7 It is a schematic structural diagram of a content erasing device provided by the embodiment of the present application. Refer to Figure 7, the content erasure device includes: an input device 73, an output device 74, a memory 72, and one or more processors 71; the memory 72 is used to store one or more programs; when the one or more programs are executed by the one or more processors 71, the one or more processors 71 implement the content erasure method provided in the above embodiments. The input device 73, the output device 74, the memory 72, and the processor 71 can be connected through a bus or other means, Figure 7 Taking the connection through the bus as an example.

[0141] The memory 72, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the content erasure method provided in any embodiment of the present application. The memory 72 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the device, etc. In addition, the memory 72 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 72 can further include a memory remotely set relative to the processor 71, and these remote memories can be connected to the device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and their combinations.

[0142] The input device 73 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the device. The output device 74 can include a display device such as a display screen.

[0143] The processor 71 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 72, that is, implements the above content erasure method.

[0144] The above-provided content erasure device and computer can be used to execute the content erasure method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0145] An embodiment of the present application further provides a storage medium storing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, they are used to execute the content erasure method provided in the above embodiment. The content erasure method includes: receiving a content erasure function trigger operation, determining a text object according to the text content displayed in the writing application interface, and creating one or more text positioning frames on the writing application interface according to each text object; wherein, the writing application interface displays writing strokes and text content, and the text content is in a standard font format; receiving a first erasure operation on the writing application interface, and erasing the writing strokes on the writing application interface according to the first erasure operation; receiving a second erasure operation on the writing application interface, and determining the text positioning frame hit by the second erasure operation; performing an erasure process on the hit text positioning frame according to the second erasure operation; determining the remaining text content from the text content according to the text positioning frame after the erasure process, and continuously displaying the remaining text content.

[0146] Storage medium - Any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (such as hard disks or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Additionally, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system that is connected to the first computer system via a network (such as the Internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (such as in different computer systems connected via a network). The storage medium may store program instructions (such as specifically implemented as a computer program) executable by one or more processors.

[0147] Certainly, for the storage medium storing computer-executable instructions provided in the embodiment of the present application, the computer-executable instructions are not limited to the content erasure method provided above, and may also execute related operations in the content erasure methods provided in any embodiment of the present application.

[0148] The content erasure device and storage medium provided in the above embodiment can execute the content erasure method provided in any embodiment of the present application. For technical details not described in detail in the above embodiment, reference may be made to the content erasure method provided in any embodiment of the present application.

[0149] The above are only the preferred embodiments of the present application and the technical principles applied. The present application is not limited to the specific embodiments provided here. Various obvious changes, re-adjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments. Without departing from the concept of the present application, it may also include more other equivalent embodiments, and the scope of the present application is determined by the scope of the claims.

Claims

1. A content erasure method, characterized in that, Including: Receiving a content erasure function trigger operation, determining text objects according to the text content displayed in a writing application interface, and creating one or more text positioning frames on the writing application interface according to each of the text objects; wherein, the writing application interface displays writing strokes and text content, and the text content is in a standard font format; Receiving a first erasure operation on the writing application interface, and erasing the writing strokes on the writing application interface according to the first erasure operation; Receiving a second erasure operation on the writing application interface, and determining the text positioning frame hit by the second erasure operation; Performing an erasure process on the hit text positioning frame according to the second erasure operation; Determining remaining text content from the text content according to the text positioning frame after the erasure process, and continuously displaying the remaining text content.

2. The content erasure method according to claim 1, wherein The creating one or more text positioning frames on the writing application interface according to each of the text objects includes: Creating text positioning frames on the writing application interface according to the size information and position information of each line of text content in each of the text objects.

3. The content erasure method according to claim 1, characterized in that, The creating one or more text positioning frames on the writing application interface according to each of the text objects includes: Creating text positioning frames with a first transparency on the writing application interface according to each of the text objects.

4. The content erasure method according to claim 1, wherein The determining the text positioning frame hit by the second erasure operation includes: Determining an erasure range corresponding to an erasure point of the second erasure operation on the writing application interface, and determining the text positioning frame having an intersection with the erasure range as the text positioning frame hit by the second erasure operation.

5. The content erasure method according to claim 4, wherein, The determining the text positioning frame having an intersection with the erasure range as the text positioning frame hit by the second erasure operation includes: In the case where there are multiple text positioning frames having an intersection with the erasure range, determining the uppermost text positioning frame among the multiple text positioning frames having an intersection with the erasure range as the text positioning frame hit by the second erasure operation.

6. The content erasure method according to claim 1, characterized in that, The performing an erasure process on the hit text positioning frame according to the second erasure operation includes: Determining intersection information between the erasure range corresponding to the erasure point of the second erasure operation on the writing application interface and the hit text positioning frame; Determining the remaining text positioning frames in the text positioning frame hit by the second erasure operation according to the intersection information.

7. The content erasure method according to claim 6, characterized in that, The text positioning frames are saved in a positioning frame list, and the determining the remaining text positioning frames in the text positioning frame hit by the second erasure operation according to the intersection information includes: Determining the remaining text positioning frames in the text positioning frame hit by the second erasure operation according to the intersection information; Adding the remaining text positioning frames to the positioning frame list, and deleting the hit text positioning frame from the positioning frame list.

8. The content erasing method according to claim 7, characterized in that, The starting position and ending position of the text positioning frame are recorded in a positioning list. After determining the remaining text positioning frames in the text positioning frame hit by the second erasure operation according to the intersection information, it further includes: Add the starting position and the ending position of the remaining text positioning box to the positioning list, and delete the starting position and the ending position of the hit text positioning box from the positioning list.

9. The content erasure method according to claim 8, wherein The determining of the remaining text content from the text content according to the text positioning box after the erasing process includes: Determine the remaining text content covered by the text positioning box after the erasing process from the text content according to the starting position and the ending position of each text positioning box in the positioning list.

10. The content erasure method according to claim 9, characterized in that, The coherently displaying of the remaining text content includes: Perform splicing processing on the remaining text content in sequence according to the coordinate order of the starting position and the ending position of each text positioning box in the positioning list.

11. The content erasure method according to claim 1, characterized in that, The receiving of the content erasing function trigger operation includes at least one of the following: Receive the content erasing function trigger operation triggered by the content erasing function button; Receive the content erasing function trigger operation triggered by a set gesture; Receive the content erasing function trigger operation triggered by a set touch action; Receive the content erasing function trigger operation triggered by touching the display screen with a touch item of a set medium type.

12. The content erasure method according to claim 1, characterized in that, The content erasing method further includes: When the coherent display of the remaining text content in the writing application interface is completed, determine text objects according to the remaining text content displayed in the writing application interface, and create one or more text positioning boxes for each text object on the writing application interface.

13. The content erasure method according to any one of claims 1-12, characterized in that, The content erasing method further includes: Receive a third erasing operation on the writing application interface, and erase the graphic elements on the writing application interface according to the third erasing operation.

14. The content erasure method according to any one of claims 1-12, characterized in that, After the erasing process of the hit text positioning box according to the second erasing operation, it further includes: Determine the text content to be erased from the text content according to the text positioning box after the erasing process, and redraw the text content to be erased according to a set display effect.

15. The content erasure method according to claim 14, characterized in that, The redrawing of the text content to be erased according to the set display effect includes: Redraw the text content to be erased with a second transparency.

16. A content erasure device, characterized in that, It includes: A memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the content erasing method according to any one of claims 1-15.

17. A storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the content erasing method according to any one of claims 1-15 when executed by a computer processor.