Note processing method, electronic device and computer storage medium
By determining and processing the note track erasure method and track information in real time in the e-book reader, the problem of a single note erasure method and poor effect in the existing technology is solved, and diversified note erasure and data storage are realized. Improved user experience.
Patent Information
- Application Number
- CN202210016665.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-01-04
AI Technical Summary
The note erasing method of existing e-book readers is single, unable to meet diverse needs, and the erasing effect is poor.
Provide a note processing method that determines the note track erasure method of the currently displayed page of the ink screen reader, obtains and displays the track information generated by the note erasure operation in real time, and updates and saves the existing note track data to realize a variety of notes Track erasure method and follow-up effect.
Users can choose multiple note track erasing methods, display the erasing process in real time, and effectively update and save note track data, improving the flexibility and effect of note erasing.
Smart Images

Figure CN114356205B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application technology, and in particular to a note processing method, electronic equipment and computer storage medium. Background Art
[0002] At present, with the popularization of mobile terminals such as mobile phones and the development of e-book readers, e-books are becoming more and more popular among readers. At the same time, in order to further improve the user experience of e-book users, more and more e-book readers are equipped with electromagnetic boards and electromagnetic pens, which support users to write notes on the reader screen to mark the content that users are interested in.
[0003] E-book readers usually have an ink screen, and users can use an electromagnetic pen to take notes on the reading page and erase the notes.
[0004] However, in the process of implementing the present invention, the inventors found that the above-mentioned solutions in the prior art have at least the following defects: the existing method of erasing notes is single and cannot meet diverse needs, and the erasing effect is also difficult to be satisfactory. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a note processing method, electronic device and computer storage medium that overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of the present invention, there is provided a note processing method, comprising:
[0007] Determine the method for erasing the note track of the current displayed page of the ink screen reader;
[0008] In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation;
[0009] Displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information;
[0010] The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
[0011] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0012] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0013] Determine the method for erasing the note track of the current displayed page of the ink screen reader;
[0014] In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation;
[0015] Displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information;
[0016] The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
[0017] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned note processing method.
[0018] According to the note processing method, electronic device and computer storage medium disclosed in the present invention, the note track erasing method of the current display page of the ink screen reader is first determined, and then in response to the note erasing operation generated by the current display page, the erasing track information generated by the note erasing operation is obtained, and the note erasing process is displayed in real time on the current display page according to the note track erasing method and the erasing track information. The existing note track data is updated and saved according to the erasing track information to facilitate the subsequent redrawing of the existing note track. Not only can the note track erasing method be selected, but the erasing process can also be displayed in real time to achieve a hand-following effect.
[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0021] Figure 1 A schematic diagram of a flow chart of a note processing method provided according to Embodiment 1 of the present invention is shown;
[0022] Figure 2 A schematic diagram of a flow chart of a note processing method provided according to Embodiment 2 of the present invention is shown;
[0023] Figure 3 A schematic diagram of a flow chart of a note processing method provided according to Embodiment 3 of the present invention is shown;
[0024] Figure 4 A schematic diagram of a flow chart of a note processing method provided according to a fourth embodiment of the present invention is shown;
[0025] Figure 5 A schematic structural diagram of an electronic device provided according to a sixth embodiment of the present invention is shown. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0027] Embodiment 1
[0028] Figure 1 A schematic flow chart of a note processing method provided according to Embodiment 1 of the present invention is shown.
[0029] Among them, the note processing method provided in this embodiment is executed by the note processing device provided in the embodiment of the present invention. The note processing device can be implemented in software or hardware, and the note processing device can be integrated in an ink screen reader.
[0030] like Figure 1 As shown, the method includes:
[0031] Step S110, determining a method for erasing the note track of the current displayed page of the ink screen reader.
[0032] Notes are marks or annotations added when reading with an ink screen reader. For example, the ink screen reader may be a reader with an electromagnetic board and an electromagnetic pen. Users use the electromagnetic board and the electromagnetic pen to write notes on the corresponding text on the reading page of the ink screen reader. Notes include underlining, circling, and writing text annotations to texts of interest, writing the user's reading experience of the text, and drawings that express the user's mood.
[0033] The current display interface may be a reading page, which may be a display interface of an e-book (e.g., a novel, an essay, etc.), and the content of the e-book may be displayed through the display interface. The current display interface may also be a non-reading page, such as a menu page, a regular notebook page, etc.
[0034] Specifically, at least two different note track erasing methods can be stored in the e-ink screen reader in advance. For example, a note erasing option is set on the menu page of the e-ink screen reader, and multiple different note track erasing methods are displayed by triggering the note erasing option, and the user can choose according to the needs; or a note erasing option is set on the reading page of the e-ink screen reader, and multiple different note track erasing methods are displayed by triggering the note erasing option. In addition, the note track erasing method suitable for the currently displayed page can also be automatically matched according to the image features of the background layer of the reading page.
[0035] Step S120, in response to the note erasing operation generated on the currently displayed page, obtaining the erasing track information generated by the note erasing operation.
[0036] Among them, the note erasing operation can be triggered by the user's electromagnetic pen or finger on the current display page of the ink screen reader. For example, an erase button is set at a certain position on the ink screen reader or the current display page, and the user clicks the erase button to enter the note erasing mode. The operation generated on the display screen of the ink screen reader using the electromagnetic pen or finger will be recognized as a note erasing operation. Following the note erasing operation, a note erasing track will be generated on the current display page, and the track information will be erased. The erasing track information includes coordinate information and / or line information. Among them, the coordinate information is the coordinates of multiple preset points on the note erasing track, and the line information includes the line color and / or width information of the comparison erasing track.
[0037] Step S130, displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information.
[0038] Specifically, based on the selected note track erasing mode, the user moves along the note line to be erased following the note erasing operation, so as to follow the note erasing track to erase the note line covered by the note erasing track in real time, so as to achieve the hand-following effect while operating. At the same time, during the note erasing process, the user can also change his subsequent note erasing track in real time according to the content of the erased note to adjust the content of the note to be erased.
[0039] Step S140, updating and saving the existing note track data according to the erasure track information, so as to facilitate the subsequent redrawing of the existing note track.
[0040] Specifically, in order to facilitate subsequent redrawing, it is necessary to update and save the existing note track data, which is the existing note track data after erasure. In this embodiment, it can be divided into a reading page and a non-reading page.
[0041] When the currently displayed page is a reading page, since the notes on the reading page are saved in the form of data, for example, at least one of the coordinate information, line information (line color and / or width), and the corresponding relationship between the starting point coordinates, the end point coordinates and the offset of the preset text. The preset text can be text within the preset range of the starting point coordinates and the end point coordinates of the existing note track, for example, text directly above, directly below, or above left, or below left, or above right, or above right of the starting point coordinates and the end point coordinates. When the page mode of the currently displayed page changes (for example, the font, font size, line spacing, etc. change), in order to facilitate the redrawing of the existing note track in the changed reading page, it is necessary to establish a corresponding relationship between the starting point coordinates, the end point coordinates and the offset of the preset text, wherein the offset of the preset text is the display position or text order of the text recorded in the source file on the reading page, for example, the 100th word of the paragraph where the text is located. No matter how the page mode changes, its corresponding offset is always the 100th word of the paragraph where it is located and will not change accordingly. When erasing is completed, for example, when the pen is lifted, the reporting point data of the existing note track that intersects with the erasing track information is cleared, and the reporting point data of the existing note track after clearing is saved.
[0042] When the currently displayed page is a non-reading page, the notes in the notebook corresponding to the non-reading page are saved in the form of pictures. When erasing is completed, for example, the pen is lifted, the note layer is changed and stored according to the erasing track information. For example, the erased note picture is directly updated and saved according to the erasing track information.
[0043] It can be seen that this embodiment first determines the corresponding note track erasing method, and then displays the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information. Not only can the note track erasing method be selected, but the erasing process can also be displayed in real time to achieve a hand-following effect.
[0044] Embodiment 2
[0045] Figure 2 A flow chart of a note processing method provided according to Embodiment 2 of the present invention is shown.
[0046] Among them, this embodiment is further optimized on the basis of the above embodiment. Figure 2 As shown, the method includes:
[0047] Step S210, in response to the triggering operation of the currently displayed page of the ink screen reader, determines the note track erasing method according to the image features of the background layer of the currently displayed page; wherein different image features correspond to different note track erasing methods.
[0048] The image feature may be at least one of color feature, image complexity, texture feature, shape feature and spatial relationship feature, and different image features correspond to different note track erasing methods.
[0049] Among them, an optional implementation is: determine the color characteristics of the background layer of the currently displayed page; when the background layer is determined to be light according to the color characteristics, determine the note track erasing method to be the first erasing method; when the background layer is determined to be dark according to the color characteristics, determine the note track erasing method to be the second erasing method. For example, the gray value of the background layer can be calculated, and the depth of the color can be determined according to the gray value. When the color is lighter, the first erasing method is selected, and when the color is darker, the second erasing method is selected.
[0050] Among them, another optional implementation is: determine the image complexity of the background layer of the currently displayed page; when the background layer is determined to be a simple form according to the image complexity, determine the note track erasing method to be the first erasing method; when the background layer is determined to be a complex form according to the image complexity, determine the note track erasing method to be the second erasing method. For example, the image complexity can be determined according to the texture features, shape features, and spatial relationship features of the background layer. When the background layer is determined to be a simple form according to the image complexity, the first erasing method is selected; when the background layer is determined to be a complex form according to the image complexity, the second erasing method is selected.
[0051] In addition, the color features and image complexity can be considered for selection.
[0052] Specifically, the note erasing method can be divided into a general erasing method and a fast erasing method according to the speed of erasing, wherein the first erasing method can be a general erasing method, and the second erasing method can be a fast erasing method. Specifically, the appropriate erasing method can be automatically selected according to the characteristics of the background layer. For light-colored background layers, such as manuscript background templates, when the fast erasing method is used, it will not feel that there is a strong damage to the background layer. For dark-colored background layers or more complex background layers, such as the background layer of a reading page, if the fast erasing method is used, the background layer will be damaged and the user will feel uncomfortable. In this case, it is considered to select an appropriate erasing method according to the characteristics of the background layer, such as the general erasing method.
[0053] Specifically, the erasing method can be selected through machine learning. For example, a recognition model can be trained in advance through machine learning to determine whether the background layer is a complex form or a simple form. If it is a complex form, the general erasing mode is selected, and if it is a simple form, the fast erasing mode is selected. Or based on the grayscale of the background layer, for example, the comprehensive grayscale value of the background layer is calculated. If the color is lighter, the fast erasing mode is selected, and if the color is darker, the general erasing mode is selected.
[0054] Step S220, in response to the note erasing operation generated on the currently displayed page, obtaining the erasing track information generated by the note erasing operation.
[0055] Step S230, displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information.
[0056] Step S240, updating and saving the existing note track data according to the erasure track information, so as to facilitate the subsequent redrawing of the existing note track.
[0057] It can be seen that this embodiment can automatically select the note track erasing method according to the image features of the background layer of the currently displayed page, and further display the note erasing process in real time on the currently displayed page according to the note track erasing method and the erasing track information. The erasing process can be displayed in real time to achieve a hand-following effect.
[0058] Embodiment 3
[0059] Figure 3 A flow chart of a note processing method provided according to Embodiment 3 of the present invention is shown.
[0060] Among them, this embodiment is further optimized on the basis of the above embodiment. Figure 3 As shown, the method includes:
[0061] Step S310, determining that the note track erasing method of the currently displayed page of the ink screen reader is the second erasing method.
[0062] The second erasing mode may be defined as a general erasing mode, and this erasing mode is selected when the background image of the currently displayed page is lighter in color or has a more complex image form.
[0063] Step S320, in response to the note erasing operation generated on the currently displayed page, obtaining the erasing track information generated by the note erasing operation.
[0064] Step S330, determine the corresponding note erasure area according to the erasure trajectory information, and continuously capture the background area image corresponding to the note erasure area from the background layer.
[0065] Among them, the current display page includes a note layer and a background layer. The note layer is a transparent layer built on the background layer. In response to the note erasing operation generated by the current display page, the erasing track information generated by the note erasing operation is obtained in real time. The erasing track information includes the passed coordinate point information and the width information of the erasing track. According to the note erasing area corresponding to the obtained erasing track information, the corresponding background area picture is continuously captured from the background layer.
[0066] Step S340, in the display cache, the continuously captured background area images are overlaid on the note erasure area of the currently displayed page, and synchronized to the ink screen for real-time display.
[0067] This step is performed in the display cache to ensure a visual comparison with the erasing effect of the hand. The continuously captured background area images are overlaid on the image corresponding to the current display page, and synchronized to the ink screen for real-time display to achieve the effect of quickly displaying the erasing trajectory. The refresh strategy of this step can use GC16 or GL16 grayscale refresh to continuously display the final erasing effect.
[0068] Step S350, updating and saving the existing note track data according to the erasure track information, so as to facilitate the subsequent redrawing of the existing note track.
[0069] It can be seen that this embodiment implements the note erasing process through the second erasing method and realizes the real-time display effect in the display cache, which can ensure the visual comparison and hand-following erasing effect.
[0070] Embodiment 4
[0071] Figure 4 A flow chart of a note processing method provided according to a fourth embodiment of the present invention is shown.
[0072] Among them, this embodiment is further optimized on the basis of the above embodiment. Figure 4 As shown, the method includes:
[0073] Step S410, determining that the note track erasing mode of the currently displayed page of the ink screen reader is the first erasing mode.
[0074] The first erasing mode can be defined as a quick erasing mode, which is selected when the background image of the currently displayed page is darker in color or the image is simpler in form. The quick erasing mode can be turned on in the settings, and the note erasing operation is judged in the quick erasing mode.
[0075] Step S420, in response to the note erasing operation generated on the currently displayed page, obtaining the erasing track information generated by the note erasing operation.
[0076] Step S430, determining a second color of the erase track according to the first color of the existing note track.
[0077] The first color is different from the second color. Specifically, the color of the erase track is determined according to the color of the current note track. For example, if the line color of the current note track is gray or black or other colors (although the ink screen cannot display colors, colored lines can be used on the projection screen), the note erase track can be selected as white; if the line color of the current note track is white, the note erase track can be selected as black.
[0078] Step S440, refreshing the background layer in the display cache in real time according to the erasing track, updating the color of the background layer to the second color, and synchronizing it to be displayed on the ink screen.
[0079] Specifically, the background layer is changed in real time in the display cache according to the erasing track and displayed synchronously on the ink screen. The refresh mode is a second-order refresh such as the DU mode to ensure the hand tracking. Visually, the erasing track and the background layer all turn white or black.
[0080] Step S450, when the note erasing operation is completed, the corresponding note erasing area is determined based on the entire erasing trajectory information from the starting point to the end point, and the background area image corresponding to the note erasing area is captured from the background layer.
[0081] Step S460: In the display cache, the captured background area image is overlaid on the note erasure area of the currently displayed page and synchronized to the ink screen for real-time display.
[0082] Specifically, when the user is detected, it indicates that the erasing operation is completed. According to the erasing trajectory information from the start of the pen to the end of the pen, the corresponding image area is intercepted from the background layer, and the white or black erasing trajectory is covered or replaced at one time. This process is also carried out in the display buffer and synchronized to the ink screen display. Here, it is necessary to switch the refresh mode to grayscale refresh such as GC16 or GL16 to display the background layer completely and clearly. After the display is completed, switch back to the second-order DU refresh handwriting mode. Visually, it will feel that the trajectory previously erased by white or black has become the background layer again, presenting the final erasing effect.
[0083] Step S470, updating and saving the existing note track data according to the erasure track information, so as to facilitate the subsequent redrawing of the existing note track.
[0084] It can be seen that this embodiment implements the note erasing process through the first erasing method and realizes the real-time display effect in the display cache, which can ensure the visual comparison and hand-following erasing effect.
[0085] Embodiment 5
[0086] Embodiment 5 of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the note processing method in any of the above method embodiments.
[0087] Determine the method for erasing the note track of the current displayed page of the ink screen reader;
[0088] In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation;
[0089] Displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information;
[0090] The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
[0091] In an optional embodiment, the executable instructions cause the processor to perform the following operations:
[0092] When the note track erasing mode is the second erasing mode, the corresponding note erasing area is determined according to the erasing track information, and the background area image corresponding to the note erasing area is continuously captured from the background layer;
[0093] In the display cache, the continuously captured background area images are overlaid on the note erasure area of the currently displayed page and synchronized to the ink screen for real-time display.
[0094] In an optional embodiment, the executable instructions cause the processor to perform the following operations:
[0095] When the note track erasing mode is the first erasing mode, determining the second color of the erasing track according to the first color of the existing note track;
[0096] Refreshing the background layer in the display cache in real time according to the erasing track, updating the color of the background layer to the second color, and synchronizing the color to be displayed on the ink screen;
[0097] When the note erasing operation is completed, the corresponding note erasing area is determined according to the entire erasing track information from the starting point to the end point, and a background area image corresponding to the note erasing area is captured from the background layer;
[0098] In the display cache, the captured background area image is overlaid on the note erasure area of the currently displayed page and synchronized to the ink screen for real-time display.
[0099] In an optional embodiment, the executable instructions cause the processor to perform the following operations:
[0100] When the currently displayed page is a non-reading page, updating and storing the note layer according to the erasure track information;
[0101] When the currently displayed page is a reading page, the reporting point data of the existing note track intersecting with the erased track information is cleared and the cleared reporting point data of the existing note track is saved.
[0102] In an optional embodiment, the reporting data of the existing note track includes at least one of coordinate information, line information, and a correspondence between the starting point coordinates, the end point coordinates, and the offset of the preset text.
[0103] In an optional embodiment, the executable instructions cause the processor to perform the following operations:
[0104] The note track erasing method is determined according to the image features of the background layer of the currently displayed page; wherein different image features correspond to different note track erasing methods.
[0105] In an optional embodiment, the executable instructions cause the processor to perform the following operations:
[0106] Determine the color characteristics of the background layer of the currently displayed page;
[0107] When it is determined according to the color feature that the background layer is light-colored, determining the note track erasing mode to be the first erasing mode;
[0108] When it is determined according to the color feature that the background layer is dark, the note track erasing mode is determined to be the second erasing mode.
[0109] In an optional embodiment, the reporting data of the existing note track includes at least one of coordinate information, line information, and a correspondence between the starting point coordinates, the end point coordinates, and the offset of the preset text.
[0110] In an optional embodiment, the note erasure trajectory information includes coordinate information and / or line information.
[0111] Embodiment 6
[0112] Figure 5 The structure diagram of an electronic device provided according to Embodiment 6 of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0113] like Figure 5As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0114] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above method embodiment.
[0115] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0116] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0117] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0118] The program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0119] Determine the method for erasing the note track of the current displayed page of the ink screen reader;
[0120] In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation;
[0121] Displaying the note erasing process in real time on the current display page according to the note track erasing method and the erasing track information;
[0122] The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
[0123] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0124] When the note track erasing mode is the second erasing mode, the corresponding note erasing area is determined according to the erasing track information, and the background area image corresponding to the note erasing area is continuously captured from the background layer;
[0125] In the display cache, the continuously captured background area images are overlaid on the note erasure area of the currently displayed page and synchronized to the ink screen for real-time display.
[0126] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0127] When the note track erasing mode is the first erasing mode, determining the second color of the erasing track according to the first color of the existing note track;
[0128] Refreshing the background layer in the display cache in real time according to the erasing track, updating the color of the background layer to the second color, and synchronizing the color to be displayed on the ink screen;
[0129] When the note erasing operation is completed, the corresponding note erasing area is determined according to the entire erasing track information from the starting point to the end point, and a background area image corresponding to the note erasing area is captured from the background layer;
[0130] In the display cache, the captured background area image is overlaid on the note erasure area of the currently displayed page and synchronized to the ink screen for real-time display.
[0131] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0132] When the currently displayed page is a non-reading page, updating and storing the note layer according to the erasure track information;
[0133] When the currently displayed page is a reading page, the reporting point data of the existing note track intersecting with the erased track information is cleared and the cleared reporting point data of the existing note track is saved.
[0134] In an optional embodiment, the reporting data of the existing note track includes at least one of coordinate information, line information, and a correspondence between the starting point coordinates, the end point coordinates, and the offset of the preset text.
[0135] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0136] The note track erasing method is determined according to the image features of the background layer of the currently displayed page; wherein different image features correspond to different note track erasing methods.
[0137] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0138] Determine the color characteristics of the background layer of the currently displayed page;
[0139] When it is determined according to the color feature that the background layer is light-colored, determining the note track erasing mode to be the first erasing mode;
[0140] When it is determined according to the color feature that the background layer is dark, the note track erasing mode is determined to be the second erasing mode.
[0141] In an optional embodiment, the program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0142] Determine the image complexity of the background layer of the currently displayed page;
[0143] When the background layer is determined to be in a simple form according to the image complexity, determining the note track erasing mode to be the first erasing mode;
[0144] When the background layer is determined to be in a complex form according to the complexity of the image, the note track erasing mode is determined to be the second erasing mode.
[0145] In an optional embodiment, the note erasure trajectory information includes coordinate information and / or line information.
[0146] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0147] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0148] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0149] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0150] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0151] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0152] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A note processing method, comprising: Determine a note track erasing method according to the image features of the background layer of the currently displayed page; wherein different image features correspond to different note track erasing methods; In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation; When the note track erasing mode is the first erasing mode, the second color of the erasing track is determined according to the first color of the existing note track; the background layer in the display cache is refreshed in real time according to the erasing track, the color of the background layer is updated to the second color, and the background layer is synchronized to the ink screen for display; when the note erasing operation is completed, the corresponding note erasing area is determined according to the entire erasing track information from the starting point to the end point, and the background area image corresponding to the note erasing area is intercepted from the background layer; in the display cache, the intercepted background area image is overlaid on the note erasing area of the currently displayed page, and is synchronized to the ink screen for real-time display; wherein, the first erasing mode is a quick erasing mode; When the note track erasing mode is the second erasing mode, the corresponding note erasing area is determined according to the erasing track information, and the background area image corresponding to the note erasing area is continuously captured from the background layer; in the display cache, the continuously captured background area image is overlaid on the note erasing area of the current display page, and synchronized to the ink screen for real-time display; wherein, the second erasing mode is a general erasing mode; The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
2. The method according to claim 1, wherein: The updating and saving of the existing note track data according to the erasure track information includes: When the currently displayed page is a non-reading page, updating and storing the note layer according to the erasure track information; When the currently displayed page is a reading page, the reporting point data of the existing note track intersecting with the erased track information is cleared and the cleared reporting point data of the existing note track is saved.
3. The method according to claim 2, wherein: The point reporting data of the existing note track includes at least one of coordinate information, line information, and the corresponding relationship between the starting point coordinates, the end point coordinates and the offset of the preset text.
4. The method according to claim 1, wherein: The step of determining the note track erasing method according to the image features of the background layer of the currently displayed page includes: Determine the color characteristics of the background layer of the currently displayed page; When it is determined according to the color feature that the background layer is light-colored, determining the note track erasing mode to be the first erasing mode; When it is determined according to the color feature that the background layer is dark, the note track erasing mode is determined to be the second erasing mode.
5. The method according to claim 1, wherein: The step of determining the note track erasing method according to the image features of the background layer of the currently displayed page includes: Determine the image complexity of the background layer of the currently displayed page; When the background layer is determined to be in a simple form according to the image complexity, determining the note track erasing mode to be the first erasing mode; When the background layer is determined to be in a complex form according to the complexity of the image, the note track erasing mode is determined to be the second erasing mode.
6. The method according to any one of claims 1 to 5, wherein: The note erasure trajectory information includes coordinate information and / or line information.
7. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: Determine a note track erasing method according to the image features of the background layer of the currently displayed page; wherein different image features correspond to different note track erasing methods; In response to a note erasing operation generated on the currently displayed page, acquiring erasing track information generated by the note erasing operation; When the note track erasing mode is the first erasing mode, the second color of the erasing track is determined according to the first color of the existing note track; the background layer in the display cache is refreshed in real time according to the erasing track, the color of the background layer is updated to the second color, and the background layer is synchronized to the ink screen for display; when the note erasing operation is completed, the corresponding note erasing area is determined according to the entire erasing track information from the starting point to the end point, and the background area image corresponding to the note erasing area is intercepted from the background layer; in the display cache, the intercepted background area image is overlaid on the note erasing area of the currently displayed page, and is synchronized to the ink screen for real-time display; wherein, the first erasing mode is a quick erasing mode; When the note track erasing mode is the second erasing mode, the corresponding note erasing area is determined according to the erasing track information, and the background area image corresponding to the note erasing area is continuously captured from the background layer; in the display cache, the continuously captured background area image is overlaid on the note erasing area of the current display page, and synchronized to the ink screen for real-time display; wherein, the second erasing mode is a general erasing mode; The existing note track data is updated and saved according to the erasure track information to facilitate the subsequent redrawing of the existing note track.
8. The electronic device according to claim 7, wherein: The executable instructions cause the processor to perform the following operations: When the currently displayed page is a non-reading page, updating and storing the note layer according to the erasure track information; When the currently displayed page is a reading page, the reporting point data of the existing note track intersecting with the erased track information is cleared and the cleared reporting point data of the existing note track is saved.
9. The electronic device according to claim 8, wherein: The point reporting data of the existing note track includes at least one of coordinate information, line information, and the corresponding relationship between the starting point coordinates, the end point coordinates and the offset of the preset text.
10. The electronic device according to claim 7, wherein: The executable instructions cause the processor to perform the following operations: Determine the color characteristics of the background layer of the currently displayed page; When it is determined according to the color feature that the background layer is light-colored, determining the note track erasing mode to be the first erasing mode; When it is determined according to the color feature that the background layer is dark, the note track erasing mode is determined to be the second erasing mode.
11. The electronic device according to claim 7, wherein: The executable instructions cause the processor to perform the following operations: Determine the image complexity of the background layer of the currently displayed page; When the background layer is determined to be in a simple form according to the image complexity, determining the note track erasing mode to be the first erasing mode; When the background layer is determined to be in a complex form according to the complexity of the image, the note track erasing mode is determined to be the second erasing mode.
12. The electronic device according to any one of claims 7 to 8, wherein: The note erasure trajectory information includes coordinate information and / or line information.
13. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute an operation corresponding to the note processing method according to any one of claims 1 to 6.
