A writing and erasing method, device and storage medium for electronic whiteboard touch screen

By dividing and splicing the erased text into sub-areas on the electronic whiteboard, the problem of the blank area after erasing on the electronic whiteboard is solved, and the text is neatly arranged and the page aesthetics is improved.

CN115033169BActive Publication Date: 2024-09-13GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210556091.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2024-09-13
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

Erasing partial handwritten text on an electronic whiteboard will result in the appearance of blank areas. As the erasing range increases, the area of ​​the blank areas also increases, affecting the user's reading experience and page beauty.

Method used

Erase the text in the specified area of ​​the writing page by obtaining the erasure command, and divide the erased text into multiple sub-areas. Determine the range of the sub-areas based on the coordinates of the erasure path, and splice them to cover the blank area to ensure that the text Neat arrangement on the page.

Benefits of technology

It realizes the neat and orderly arrangement of written text, covers the blank area caused by erasure, and improves the beauty of the written page and the user's reading comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033169B
    Figure CN115033169B
Patent Text Reader

Abstract

The present invention discloses a writing and erasing method, device and storage medium of an electronic whiteboard touch screen, the method comprising: obtaining an erasing instruction to erase the writing in a specified area of ​​a writing page, and dividing the writing remaining after erasing into a plurality of sub-areas; responding to an update instruction to splice the plurality of sub-areas to cover the blank area generated by erasing. The present invention can divide the writing remaining after erasing into a plurality of areas according to a preset rule, re-splice the writing in a plurality of areas when executing an update operation, arrange the spliced ​​writing neatly and orderly, and cover the blank area generated by erasing with the re-arranged writing, thereby improving the neatness of the writing and improving the reading comfort of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of touch display, and in particular to a writing and erasing method, device and storage medium for an electronic whiteboard touch screen. Background Art

[0002] At present, users can write on touch screens such as electronic whiteboards through devices such as stylus pens, thereby generating handwriting on the touch screen. Traditional touch screens have an erase function that can erase part or all of the handwriting, and the user can rewrite new words, letters or symbols in the erased position.

[0003] However, if the user wants to erase part of the handwritten text after completing the handwriting input of the entire page, a blank space will appear at the erased position. The larger the erasure range, the larger the blank area in the entire page of handwritten text, making the distance between the text before and after the blank area too large, affecting the user's normal reading and also affecting the appearance of the page. Summary of the invention

[0004] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide a writing and erasing method for an electronic whiteboard touch screen, which can automatically cover the blank area generated after erasing and improve the beauty of the written page.

[0005] A second object of the present invention is to provide an electronic device.

[0006] A third object of the present invention is to provide a storage medium.

[0007] One of the purposes of the present invention is achieved by the following technical solution:

[0008] A method for erasing writing on an electronic whiteboard touch screen, comprising:

[0009] Obtain an erase instruction to erase the written text in a specified area of ​​the writing page, and divide the remaining written text after erasure into a plurality of sub-areas;

[0010] In response to an update instruction, the plurality of sub-areas are spliced ​​to cover the blank area generated by erasing.

[0011] Furthermore, the erasing instruction is generated according to the erasing path, and the erasing method is: erasing the written text at the position passed by the erasing path and the area surrounded by it, and forming the blank area after erasing.

[0012] Furthermore, the method of dividing the multiple sub-areas is:

[0013] The scope of the blank area is determined according to the coordinates of the erasing path. If it is determined that the blank area is in the same row, the written text before the blank area is marked as the first sub-area, and the written text after the blank area is marked as the second sub-area.

[0014] Furthermore, the method for splicing the plurality of sub-regions is as follows:

[0015] intercepting a text image of each written character in the second sub-area, and numbering and storing the text images according to the arrangement order of the written characters;

[0016] The text images are retrieved in the order of numbers, and the text images are arranged in sequence at the end of the first sub-area, and it is determined in real time whether the width of the entire line of text exceeds the maximum width of the writing page. If so, it automatically jumps to the next line to continue arranging the text images to obtain the final spliced ​​page.

[0017] Furthermore, if it is determined that the blank area spans across rows, the method for determining the sub-area is:

[0018] Determine the target number of rows covered by the blank area according to the horizontal coordinate of the erasing path, and mark the area outside the target number of rows as a static sub-area;

[0019] Marking the areas before and after the blank area in the target number of lines as active sub-areas;

[0020] During the updating process, the static sub-region does not perform any text sorting operation, and only arranges and splices the written text in the active sub-region.

[0021] Furthermore, the method for arranging and splicing the written characters in the active sub-area is:

[0022] intercepting a text image of each written character in the active sub-area, and numbering and storing the text images according to the arrangement order of the written characters;

[0023] The text images are retrieved in the order of numbers, and the text images are arranged in the blank lines in sequence. It is determined in real time whether the width of the entire line of text exceeds the maximum width of the writing page. If so, it automatically jumps to the next line to continue arranging the text images, and the spacing between the area where the rearranged text image is located and the static sub-area is adjusted in real time to obtain the final spliced ​​page.

[0024] Furthermore, the update instruction is generated according to the touch action of the specified gesture; when the update instruction is generated, it also includes:

[0025] It is determined whether the starting position and the end position of the touch action are in the same page. If not, a new page copy is created according to the end position of the touch action, and the final spliced ​​page is copied to the new page copy for storage.

[0026] Furthermore, when the final spliced ​​page is copied to the newly created page copy, it also includes:

[0027] Get the conversion request to perform text recognition on each written word in the final spliced ​​page, and convert it into text in a specified format font to be displayed in a newly created page copy.

[0028] The second object of the present invention is achieved by adopting the following technical solution:

[0029] An electronic device comprises a processor, a memory and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic whiteboard touch screen writing and erasing method as described above is implemented.

[0030] The third object of the present invention is achieved by adopting the following technical solution:

[0031] A computer-readable storage medium stores a computer program, which implements the above-mentioned electronic whiteboard touch screen writing and erasing method when executed.

[0032] Compared with the prior art, the present invention has the following beneficial effects:

[0033] The present invention can divide the written text remaining after erasure into multiple areas according to a preset rule, and re-join the written text in multiple areas when performing an update operation. The joined written text is arranged neatly and orderly, and the re-arranged written text covers the blank area caused by erasure, thereby improving the neatness of the written text and improving the reading comfort of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the process of the writing and erasing method of the electronic whiteboard touch screen of the present invention;

[0035] Figure 2 A schematic diagram of a blank area in a writing page of the present invention;

[0036] Figure 3 It is a schematic diagram of the blank area across lines in the writing page of the present invention. DETAILED DESCRIPTION

[0037] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0038] like Figure 1 As shown, this embodiment provides a method for erasing writing on an electronic whiteboard touch screen, which specifically includes the following steps:

[0039] Step S1: Obtain an erase instruction to erase the written text in a specified area of ​​the writing page, and divide the remaining written text after erasure into multiple sub-areas;

[0040] Step S2: In response to the update instruction, the plurality of sub-areas are spliced ​​to cover the blank area generated by erasing.

[0041] The user can create a new writing page in advance, and can input text, numbers, letters, symbols, etc. on the touch screen of the electronic whiteboard with a finger or a stylus, so that the corresponding handwriting is displayed on the writing page.

[0042] When the user triggers the erase function on the writing page, the moving path of the finger or stylus on the writing page is the erase path. After the system receives the erase instruction containing the erase path, the written text passed by the erase path and the written text in the page area surrounded by the erase path can be erased, and a corresponding blank area is formed at the position of the original written text after erasure.

[0043] In order to facilitate the determination of the erasing path, the coordinate position of each written word in the writing page can be marked in advance. Since each user has different writing habits, the number of lines of each written word can be used as the horizontal coordinate of the coordinate, and the number of the written word in a line can be used as the vertical coordinate of its coordinate. When the user erases or passes through any word, the coordinate of the word can be used as one of the points in the erasing path to determine the coordinate position of the blank area.

[0044] In addition, the writing page for users to write can also be provided with a corresponding grid background, so that users can write the written text into the grid one by one, thereby facilitating the determination of the coordinates of the written text, and the grid background can be hidden after the writing is completed.

[0045] After the range of the blank area is determined according to the coordinates of the erasing path, the written characters in front of the blank area can be marked as the first sub-area, and the written characters behind the blank area can be marked as the second sub-area. Specifically: the outermost points in the front, back, left and right directions of the blank area are determined according to the erasing path, and the outermost points in the front, back, left and right directions of the blank area are connected to determine the coordinate range of the blank area.

[0046] If the horizontal coordinates of the coordinate points in the blank area are the same, it means that the blank areas are in the same row. Figure 2 As shown, Figure 2 Area A is a blank area in a row; in this case, the subsequent sub-area splicing is mainly to perform text processing on the second sub-area located after the blank area and then splice it after the first sub-area to cover the blank area. Since the first sub-area is located before the blank area, the first sub-area can maintain its original state without performing too many adjustment operations.

[0047] The method of splicing the text content of the second sub-region after the first sub-region is:

[0048] intercepting a text image of each written character in the second sub-area, and numbering and storing the text images according to the arrangement order of the written characters;

[0049] The stored text images are retrieved in numerical order, and the text images are arranged in sequence at the end of the first sub-area in numerical order, thereby forming an effect of reconnecting the written text in the second sub-area to the first sub-area.

[0050] At the same time, it is also necessary to judge in real time during the stitching process whether the width of the entire line of text in the current stitching line exceeds the maximum width of the writing page. If not, continue stitching; if so, automatically jump to the next line and continue to arrange the text images in order of numbering until all the text images of the written text in the second sub-area complete the above-mentioned stitching operation, and finally obtain the final stitching page, in which there is no blank area caused by erasure.

[0051] If it is determined that the horizontal coordinates of the coordinates in the blank area are different, it means that the blank area spans multiple lines. At this time, the number of lines covered by the blank area is determined according to the horizontal coordinate of the erasing path and marked as the target number of lines, and the areas outside the target number of lines are marked as static sub-areas, and the areas before and after the blank area in the target number of lines are marked as active sub-areas; for example: Figure 3 As shown, there are 6 lines of text written on the writing page. Figure 3 The area A framed by the solid line is a blank area, which covers the 3rd and 4th lines of the writing page. The 3rd and 4th lines of the writing page are the target lines, and the 1st, 2nd, 5th and 6th lines of the writing page are static sub-areas; and the writing text before the blank area in the 3rd and 4th lines is the writing text of the first active sub-area (i.e. Figure 3 The area B is framed by the dashed line in the middle), and the written text after the blank area is the written text of the second active sub-area (i.e. Figure 3 The area framed by the dotted line C).

[0052] The static sub-region does not perform any text sorting operation during the splicing process, and the text in the active sub-region is mainly arranged and spliced ​​during the update. Specifically: the text image of each written text in the first active sub-region and the second active sub-region is intercepted, and the text images are numbered and stored according to the arrangement order of the written text; the numbering rule can be to sort and number the written text in the same row in sequence according to the coordinates of the written text, and then number the next row of written text after the previous row of written text.

[0053] In addition, the written characters in the first active sub-area can be numbered first in the order of the characters, and after the written characters in the first active sub-area are numbered, the written characters in the second active sub-area can be numbered, and the first character number of the second active sub-area is immediately after the last character number of the first active sub-area. The numbering rule can be pre-set according to the user's understanding of the written text content to prevent the text content from being incoherent after splicing.

[0054] Afterwards, all written text in the target number of lines is deleted, so that the target number of lines is currently in a blank line state; the text images are retrieved in order of numbering, and the text images are arranged in the blank lines in sequence, and it is determined in real time whether the width of the entire line of text exceeds the maximum width of the writing page. If so, it automatically jumps to the next line to continue arranging the text images until all numbered text images are arranged in sequence.

[0055] Since the number of characters in the target line is reduced after erasing, the rearranged character image in the target line may have a certain interval between the static sub-areas before and after it. Therefore, the distance between the area where the rearranged character image is located and the static sub-area is adjusted in real time to make the line spacing of the entire writing page relatively uniform to obtain the final spliced ​​page.

[0056] The update instruction may be initiated by pressing the "Update" button in the writing page, or may be generated according to the touch action of the specified gesture; the touch action may be executed in the same writing page, in different writing pages on the same terminal, or on different terminals. Therefore, when generating the update instruction, it is also necessary to identify the starting point and the end point of the touch action, determine the page and the terminal where the starting point and the end point are located, and if it is determined that the user has completed the touch action in the same writing page, then simply perform the above-mentioned sub-area stitching operation; if the user completes the entire specified touch action on different writing pages on the same terminal, and the touch action may be a drag action across pages, then the original version before the sub-area stitching is performed is retained in the original writing page, and a new writing page copy is created on the same terminal, and all the contents of the original writing page are copied and pasted into the new writing page copy. The sub-region splicing operation is completed, so that the final splicing page after the sub-regions are spliced ​​can be presented in the new writing page copy, so that the user can proofread the final splicing page with reference to the original version; if the user completes the entire specified touch action on different terminals, that is, after the two terminals pre-connected through the wireless network respectively recognize the first sub-action and the second sub-action of the touch action, a new writing page copy is created on the new terminal, and all the contents of the writing page in the original terminal are copied and pasted into the writing page copy of the new terminal, and the sub-region splicing operation is completed during the process, so that the final splicing page after the sub-regions are spliced ​​can be presented in the writing page copy of the new terminal.

[0057] At the same time, when the final spliced ​​page is copied to a newly created page copy of the same terminal or a different terminal, the user can also initiate a conversion request to perform text recognition on each written text in the final spliced ​​page, and convert it into text in a specified format font and display it in the newly created page copy, thereby achieving a text conversion effect.

[0058] In some embodiments, an electronic device is provided, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the electronic whiteboard touch screen writing and erasing method in Example 1 when executing the computer program; in some embodiments, a computer-readable storage medium is also provided, on which a computer program is stored, and the computer program implements the above-mentioned electronic whiteboard touch screen writing and erasing method when executed.

[0059] The device and storage medium in this embodiment and the method in the aforementioned embodiment are two aspects based on the same inventive concept. The method implementation process has been described in detail above, so those skilled in the art can clearly understand the structure and implementation process of the device and storage medium in this embodiment based on the aforementioned description. For the sake of brevity of the specification, they will not be repeated here.

[0060] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A method for erasing writing on an electronic whiteboard touch screen, characterized in that: include: Obtain an erase instruction to erase the written text in a specified area of ​​the writing page, and divide the remaining written text after erasure into a plurality of sub-areas; In response to an update instruction, the plurality of sub-areas are spliced ​​to cover the blank area generated by erasing; The erasing instruction is generated according to the erasing path, and the erasing method is: erasing the written text at the position passed by the erasing path and the area surrounded by it, and forming the blank area after erasing; The method of dividing the multiple sub-areas is: Determine the range of the blank area according to the coordinates of the erasing path, and if it is determined that the blank area is in the same row, mark the written text before the blank area as a first sub-area, and mark the written text after the blank area as a second sub-area; The method for splicing a plurality of said sub-regions is as follows: intercepting a text image of each written character in the second sub-area, and numbering and storing the text images according to the arrangement order of the written characters; Retrieving text images in the order of numbers, and arranging the text images in sequence at the end of the first sub-area, and determining in real time whether the width of the entire line of text exceeds the maximum width of the writing page, and if so, automatically jumping to the next line to continue arranging the text images to obtain the final splicing page; If it is determined that the blank area spans across rows, the method for determining the sub-area is: Determine the target number of rows covered by the blank area according to the horizontal coordinate of the erasing path, and mark the area outside the target number of rows as a static sub-area; Marking the areas before and after the blank area in the target number of lines as active sub-areas; During the updating process, the static sub-region does not perform any text sorting operation, and only arranges and splices the written text in the active sub-region.

2. The electronic whiteboard touch screen writing and erasing method according to claim 1, characterized in that: The method for arranging and splicing the written characters in the active sub-area is: intercepting a text image of each written character in the active sub-area, and numbering and storing the text images according to the arrangement order of the written characters; The text images are retrieved in the order of numbers, and the text images are arranged in the blank lines in sequence. It is determined in real time whether the width of the entire line of text exceeds the maximum width of the writing page. If so, it automatically jumps to the next line to continue arranging the text images, and the spacing between the area where the rearranged text image is located and the static sub-area is adjusted in real time to obtain the final spliced ​​page.

3. The electronic whiteboard touch screen writing and erasing method according to claim 1, characterized in that: The update instruction is generated according to the touch action of the specified gesture; when the update instruction is generated, it also includes: It is determined whether the starting position and the end position of the touch action are in the same page. If not, a new page copy is created according to the end position of the touch action, and the final spliced ​​page is copied to the new page copy for storage.

4. The electronic whiteboard touch screen writing and erasing method according to claim 3, characterized in that: When the final stitched page is copied to a newly created copy of the page, it also includes: Get the conversion request to perform text recognition on each written word in the final spliced ​​page, and convert it into text in a specified format font to be displayed in a newly created page copy.

5. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the electronic whiteboard touch screen writing and erasing method according to any one of claims 1 to 4 is implemented.

6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the electronic whiteboard touch screen writing and erasing method according to any one of claims 1 to 4 is implemented.