CN115859907B - Reading annotation zoom display method, system and readable storage medium - Google Patents

Reading annotation zoom display method, system and readable storage medium Download PDF

Info

Publication number
CN115859907B
CN115859907B CN202310134864.1A CN202310134864A CN115859907B CN 115859907 B CN115859907 B CN 115859907B CN 202310134864 A CN202310134864 A CN 202310134864A CN 115859907 B CN115859907 B CN 115859907B
Authority
CN
China
Prior art keywords
handwriting
annotation
display
scaling
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310134864.1A
Other languages
Chinese (zh)
Other versions
CN115859907A (en
Inventor
戴威村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yitoa Digital Technology Co ltd
Original Assignee
Shenzhen Yitoa Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yitoa Digital Technology Co ltd filed Critical Shenzhen Yitoa Digital Technology Co ltd
Priority to CN202310134864.1A priority Critical patent/CN115859907B/en
Publication of CN115859907A publication Critical patent/CN115859907A/en
Application granted granted Critical
Publication of CN115859907B publication Critical patent/CN115859907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a reading annotation scaling display method, a reading annotation scaling display system and a readable storage medium, wherein the reading annotation scaling display method comprises the following steps: acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book; acquiring stored handwriting data to load the annotation note, loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and completing drawing of the handwriting path; calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point; and drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed. The invention can rapidly load the handwriting notes in the electronic books, ensure that the notes and the texts are displayed simultaneously, and the handwriting notes can be zoomed together with the texts simultaneously, and can accurately draw the handwriting strokes while zooming.

Description

Reading annotation zoom display method, system and readable storage medium
Technical Field
The present invention relates to the field of data processing technology, and more particularly, to a reading annotation scaling display method, system and readable storage medium.
Background
At present, along with the electronization of books, the books can be provided for users to read in real time, and reading notes of the users can be added during reading, however, the notes and display texts belong to different file formats, the problem that the notes cover the texts during display exists, and the problem that the notes and display contents are not synchronous in scaling can be caused when the users scale a display interface.
At present, when the handwritten annotation is read for synchronous scaling, the following defects exist in the implementation scheme and the function: one is multi-layer view, one layer of handwriting view and one layer of reading view, namely the annotation layer and the reading layer are not in the same layer, most of the views can be displayed only by clicking the annotation button by a user, and the current book content can be blocked; moreover, many books do not support handwriting, only PDF files are supported, and the application range is small; for text books, the zoom pair is not located, and the loading is slow.
Disclosure of Invention
The invention aims to provide a reading annotation scaling display method, a reading annotation scaling display system and a readable storage medium, which can rapidly load handwritten notes in electronic books, ensure that the notes and texts are displayed simultaneously, and the handwritten notes can be scaled together with the texts simultaneously, and can draw the correct writing pen shapes while scaling.
The first aspect of the invention provides a reading annotation scaling display method, which comprises the following steps:
acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
retrieving stored handwritten data to load the annotation note, wherein,
loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
and drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed.
In this scheme, obtain target books, based on target books discernment note, specifically include:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
In this solution, the calculating a scaling ratio of a current handwriting path and a display text, and calculating a scaling value of each point in the handwriting path based on the scaling ratio, to obtain a target line segment point specifically includes:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
In this solution, the method further includes:
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm;
determining the display position of a target line segment point corresponding to the handwriting path based on the position data;
and displaying the target line segment point at a corresponding position on the display interface based on the display position.
In this solution, the drawing and rendering are performed on the display interface based on the target line segment point, so as to complete the display operation of the annotation note, which specifically includes:
acquiring attribute data corresponding to each handwriting path, wherein the attribute data at least comprises a pressure value and line width data;
loading the target line segment points on the display interface based on the attribute data for drawing;
and rendering and removing noise points from the drawn target line segment points to finish the display operation of the annotation note.
In this solution, the method further includes: the font display size of the annotated notes is adjusted.
The second aspect of the present invention also provides a reading annotation scaling display system, comprising a memory and a processor, wherein the memory comprises a reading annotation scaling display method program, and the reading annotation scaling display method program when executed by the processor realizes the following steps:
acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
retrieving stored handwritten data to load the annotation note, wherein,
loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
and drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed.
In this scheme, obtain target books, based on target books discernment note, specifically include:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
In this solution, the calculating a scaling ratio of a current handwriting path and a display text, and calculating a scaling value of each point in the handwriting path based on the scaling ratio, to obtain a target line segment point specifically includes:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
In this solution, the method further includes:
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm;
determining the display position of a target line segment point corresponding to the handwriting path based on the position data;
and displaying the target line segment point at a corresponding position on the display interface based on the display position.
In this solution, the drawing and rendering are performed on the display interface based on the target line segment point, so as to complete the display operation of the annotation note, which specifically includes:
acquiring attribute data corresponding to each handwriting path, wherein the attribute data at least comprises a pressure value and line width data;
loading the target line segment points on the display interface based on the attribute data for drawing;
and rendering and removing noise points from the drawn target line segment points to finish the display operation of the annotation note.
In this solution, the method further includes: the font display size of the annotated notes is adjusted.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein a reading annotation scaling display method program of a machine, which when executed by a processor, implements the steps of a reading annotation scaling display method as described in any of the above.
The reading annotation scaling display method, the reading annotation scaling display system and the readable storage medium can be used for rapidly loading the handwritten notes in the electronic books, ensuring that the notes and the texts are displayed simultaneously, enabling the handwritten notes to be scaled together with the texts simultaneously, and enabling the handwriting strokes to be drawn correctly while scaling.
Drawings
FIG. 1 is a flow chart of a reading annotation zoom display method of the present invention;
FIG. 2 illustrates a block diagram of a reading annotation zoom display system of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
FIG. 1 shows a flow chart of a reading annotation zoom display method of the present application.
As shown in fig. 1, the present application discloses a reading annotation zoom display method, which includes the following steps:
s102, acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
s104, acquiring stored handwriting data to load the annotation note;
s106, loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
s108, calculating the scaling rate of the current handwriting path and the display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
and S110, drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed.
It should be noted that, in this embodiment, after a target book is obtained, whether a handwriting format file exists in the target book is determined to identify the annotation note, and then the annotation note is loaded based on the handwriting data stored in the target book, where the target book is an electronic book, after the handwriting data is obtained, a handwriting path of a current display interface is loaded based on the handwriting data, an initial anchor point of the first handwriting path is determined, so that drawing of the handwriting path is completed based on the handwriting data, correspondingly, the handwriting path corresponds to a handwriting path, a scaling ratio of the current handwriting path and a display text is calculated based on a preset bitmap algorithm, so that a scaling value of each point on the handwriting path is calculated based on the scaling ratio, so as to obtain a target line segment point, and after the target line segment point is obtained, the target line segment point is drawn on the display interface and rendered, so as to complete display operation of the annotation note.
According to an embodiment of the present invention, the obtaining a target book, identifying annotation notes based on the target book, specifically includes:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
It should be noted that, in this embodiment, when the annotation is identified, specifically, whether a handwriting format file exists in the target book is determined, if the handwriting format file exists, the annotation is successfully identified based on the handwriting format file, and the corresponding stored handwriting data can be obtained for loading and use based on the target book, but if the handwriting format file does not exist, it indicates that there is no annotation in the current target book, so that the annotation is not identified when the book content is displayed, but a handwriting interface button can be displayed for the user to add notes to the current displayed book.
According to an embodiment of the present invention, the calculating a scaling ratio of a current handwriting path and a display text, calculating a scaling value of each point in the handwriting path based on the scaling ratio, to obtain a target line segment point, specifically includes:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
It should be noted that, in this embodiment, when displaying the book content, the content of the note needs to be scaled so as not to block the normal display of the book content, and a scaling rate between the handwriting path and the display text is calculated by using a bitmap algorithm, so that a scaling value of each point on the handwriting path is calculated based on the scaling rate, so that the handwriting path can be scaled into a corresponding line segment point based on the scaling value, and further a corresponding target line segment point is obtained based on all the handwriting paths.
According to an embodiment of the present invention, the method further comprises:
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm;
determining the display position of a target line segment point corresponding to the handwriting path based on the position data;
and displaying the target line segment point at a corresponding position on the display interface based on the display position.
It should be noted that, in this embodiment, after the drawing of the handwriting path is completed, the handwriting path needs to be displayed, and the position data of the scaled first handwriting path is determined by using a preset anchor point calculation algorithm, so that a corresponding display position is determined based on the position data, and the target line segment point is displayed at a corresponding position on the display interface based on the display position, where the anchor point calculation algorithm is a known algorithm, and in this embodiment, the anchor point calculation algorithm is applied, so that a specific position determination calculation process is not repeated.
According to an embodiment of the present invention, the drawing and rendering are performed on the display interface based on the target line segment point, so as to complete the display operation of the annotation note, which specifically includes:
acquiring attribute data corresponding to each handwriting path, wherein the attribute data at least comprises a pressure value and line width data;
loading the target line segment points on the display interface based on the attribute data for drawing;
and rendering and removing noise points from the drawn target line segment points to finish the display operation of the annotation note.
It should be noted that, in this embodiment, the stored handwriting data includes attribute data corresponding to each handwriting path, so when drawing a target line segment point, the target line segment point may be restored according to the attribute data, including a pressure value and line width data, according to the pressure value and the selected line width when handwriting by the user, and then the drawn target line segment point is rendered to remove noise, so as to complete the display operation of the annotation note.
According to an embodiment of the present invention, the method further comprises: the font display size of the annotated notes is adjusted.
In this embodiment, when the annotation note is zoomed and displayed, not only the pressure value and the line width data in the attribute data captured during handwriting of the user can be restored, but also the font display size of the annotation note can be adjusted according to the requirement, so as to be suitable for different display interfaces or user requirements.
It should be noted that the adjusting the font display size of the note according to the requirement, so as to adapt to different display interfaces or user requirements, specifically includes:
acquiring standard font settings based on the target book, thereby adjusting the font size of the annotation note based on the standard font settings; or alternatively
And acquiring setting data of a user reading the current target book, and adjusting the font size of the annotation note based on the setting data.
It should be noted that, in this embodiment, for different display effects, the font size of the note may be adjusted according to standard font settings or setting data of the user, where standard font settings corresponding to different display interfaces are different, so that display requirements of different display interfaces may be met, and the setting data of the user may be obtained according to display data set when the user logs in the current display device, so that the note may be suitable for different user requirements.
It should be noted that, the display handwriting interface button is used for a user to add notes to a currently displayed book, and specifically includes:
when the handwriting format file is not recognized, highlighting the handwriting interface button on the display interface, wherein the highlighting mode comprises color mark display and/or shape mark display;
and when the user is identified to click the handwriting interface button, displaying a handwriting interface based on the display interface for the user to add notes.
It should be noted that, in this embodiment, since the user may need to add the annotation note at any time when reading the electronic book, when displaying the target book with the handwriting format file, the handwriting interface button is not highlighted, but when the handwriting format file is not recognized, the handwriting interface button is highlighted on the display interface to remind the user that the current book may add the annotation note, specifically, the annotation note may be marked by color mark, for example, by red, and/or shape mark, for example, by a deformation manner such as a zoom-in display button, so as to tell the user that the annotation note may be added to the current book, and when recognizing that the user clicks the handwriting interface button, the handwriting interface is displayed for the user to add the note based on the display interface, and the handwriting interface may be pop-up in a pop-up window form.
It is worth mentioning that the method further comprises modifying the annotation note, specifically comprising:
acquiring modification data of the handwriting interface to modify the annotation note, or
And acquiring pressure sensing data of a user on the displayed annotation note, and generating a corresponding modification interface based on the pressure sensing data so as to enable the user to modify the annotation note.
It should be noted that, in this embodiment, when a user reads a target book, not only an existing note may be read, but also the note may be modified, where a modification way includes obtaining modification data of a handwriting interface to modify the note, for example, when the user inputs new note data on the handwriting interface, the note data is correspondingly added to the note for modification, and scaled display is performed; pressure sensing data of a user on the displayed annotation notes can also be obtained, so that after the corresponding pressure sensing data is identified, a corresponding modification interface is popped up for the user to modify the annotation notes.
It should be noted that the generating the corresponding modification interface based on the pressure sensing data specifically includes:
acquiring a pressure index and a sensing time based on the pressure sensing data, wherein,
and when the pressure index exceeds a preset pressure value and the sensing time exceeds a preset time value, generating the modification interface.
It should be noted that, in this embodiment, the trigger mechanism for generating the modification interface includes that the pressure index exceeds the preset pressure value and the sensing time exceeds the preset time value, and only when both conditions are satisfied, the corresponding modification interface is generated for the user to modify the annotation note, where the modified annotation note is the displayed annotation note.
FIG. 2 illustrates a block diagram of a reading annotation zoom display system of the present invention.
As shown in fig. 2, the invention discloses a reading annotation scaling display system, which comprises a memory and a processor, wherein the memory comprises a reading annotation scaling display method program, and the reading annotation scaling display method program realizes the following steps when being executed by the processor:
acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
retrieving stored handwritten data to load the annotation note, wherein,
loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
and drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed.
It should be noted that, in this embodiment, after a target book is obtained, whether a handwriting format file exists in the target book is determined to identify the annotation note, and then the annotation note is loaded based on the handwriting data stored in the target book, where the target book is an electronic book, after the handwriting data is obtained, a handwriting path of a current display interface is loaded based on the handwriting data, an initial anchor point of the first handwriting path is determined, so that drawing of the handwriting path is completed based on the handwriting data, correspondingly, the handwriting path corresponds to a handwriting path, a scaling ratio of the current handwriting path and a display text is calculated based on a preset bitmap algorithm, so that a scaling value of each point on the handwriting path is calculated based on the scaling ratio, so as to obtain a target line segment point, and after the target line segment point is obtained, the target line segment point is drawn on the display interface and rendered, so as to complete display operation of the annotation note.
According to an embodiment of the present invention, the obtaining a target book, identifying annotation notes based on the target book, specifically includes:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
It should be noted that, in this embodiment, when the annotation is identified, specifically, whether a handwriting format file exists in the target book is determined, if the handwriting format file exists, the annotation is successfully identified based on the handwriting format file, and the corresponding stored handwriting data can be obtained for loading and use based on the target book, but if the handwriting format file does not exist, it indicates that there is no annotation in the current target book, so that the annotation is not identified when the book content is displayed, but a handwriting interface button can be displayed for the user to add notes to the current displayed book.
According to an embodiment of the present invention, the calculating a scaling ratio of a current handwriting path and a display text, calculating a scaling value of each point in the handwriting path based on the scaling ratio, to obtain a target line segment point, specifically includes:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
It should be noted that, in this embodiment, when displaying the book content, the content of the note needs to be scaled so as not to block the normal display of the book content, and a scaling rate between the handwriting path and the display text is calculated by using a bitmap algorithm, so that a scaling value of each point on the handwriting path is calculated based on the scaling rate, so that the handwriting path can be scaled into a corresponding line segment point based on the scaling value, and further a corresponding target line segment point is obtained based on all the handwriting paths.
According to an embodiment of the present invention, the method further comprises:
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm;
determining the display position of a target line segment point corresponding to the handwriting path based on the position data;
and displaying the target line segment point at a corresponding position on the display interface based on the display position.
It should be noted that, in this embodiment, after the drawing of the handwriting path is completed, the handwriting path needs to be displayed, and the position data of the scaled first handwriting path is determined by using a preset anchor point calculation algorithm, so that a corresponding display position is determined based on the position data, and the target line segment point is displayed at a corresponding position on the display interface based on the display position, where the anchor point calculation algorithm is a known algorithm, and in this embodiment, the anchor point calculation algorithm is applied, so that a specific position determination calculation process is not repeated.
According to an embodiment of the present invention, the drawing and rendering are performed on the display interface based on the target line segment point, so as to complete the display operation of the annotation note, which specifically includes:
acquiring attribute data corresponding to each handwriting path, wherein the attribute data at least comprises a pressure value and line width data;
loading the target line segment points on the display interface based on the attribute data for drawing;
and rendering and removing noise points from the drawn target line segment points to finish the display operation of the annotation note.
It should be noted that, in this embodiment, the stored handwriting data includes attribute data corresponding to each handwriting path, so when drawing a target line segment point, the target line segment point may be restored according to the attribute data, including a pressure value and line width data, according to the pressure value and the selected line width when handwriting by the user, and then the drawn target line segment point is rendered to remove noise, so as to complete the display operation of the annotation note.
According to an embodiment of the present invention, the method further comprises: the font display size of the annotated notes is adjusted.
In this embodiment, when the annotation note is zoomed and displayed, not only the pressure value and the line width data in the attribute data captured during handwriting of the user can be restored, but also the font display size of the annotation note can be adjusted according to the requirement, so as to be suitable for different display interfaces or user requirements.
It should be noted that the adjusting the font display size of the note according to the requirement, so as to adapt to different display interfaces or user requirements, specifically includes:
acquiring standard font settings based on the target book, thereby adjusting the font size of the annotation note based on the standard font settings; or alternatively
And acquiring setting data of a user reading the current target book, and adjusting the font size of the annotation note based on the setting data.
It should be noted that, in this embodiment, for different display effects, the font size of the note may be adjusted according to standard font settings or setting data of the user, where standard font settings corresponding to different display interfaces are different, so that display requirements of different display interfaces may be met, and the setting data of the user may be obtained according to display data set when the user logs in the current display device, so that the note may be suitable for different user requirements.
It should be noted that, the display handwriting interface button is used for a user to add notes to a currently displayed book, and specifically includes:
when the handwriting format file is not recognized, highlighting the handwriting interface button on the display interface, wherein the highlighting mode comprises color mark display and/or shape mark display;
and when the user is identified to click the handwriting interface button, displaying a handwriting interface based on the display interface for the user to add notes.
It should be noted that, in this embodiment, since the user may need to add the annotation note at any time when reading the electronic book, when displaying the target book with the handwriting format file, the handwriting interface button is not highlighted, but when the handwriting format file is not recognized, the handwriting interface button is highlighted on the display interface to remind the user that the current book may add the annotation note, specifically, the annotation note may be marked by color mark, for example, by red, and/or shape mark, for example, by a deformation manner such as a zoom-in display button, so as to tell the user that the annotation note may be added to the current book, and when recognizing that the user clicks the handwriting interface button, the handwriting interface is displayed for the user to add the note based on the display interface, and the handwriting interface may be pop-up in a pop-up window form.
It is worth mentioning that the method further comprises modifying the annotation note, specifically comprising:
acquiring modification data of the handwriting interface to modify the annotation note, or
And acquiring pressure sensing data of a user on the displayed annotation note, and generating a corresponding modification interface based on the pressure sensing data so as to enable the user to modify the annotation note.
It should be noted that, in this embodiment, when a user reads a target book, not only an existing note may be read, but also the note may be modified, where a modification way includes obtaining modification data of a handwriting interface to modify the note, for example, when the user inputs new note data on the handwriting interface, the note data is correspondingly added to the note for modification, and scaled display is performed; pressure sensing data of a user on the displayed annotation notes can also be obtained, so that after the corresponding pressure sensing data is identified, a corresponding modification interface is popped up for the user to modify the annotation notes.
It should be noted that the generating the corresponding modification interface based on the pressure sensing data specifically includes:
acquiring a pressure index and a sensing time based on the pressure sensing data, wherein,
and when the pressure index exceeds a preset pressure value and the sensing time exceeds a preset time value, generating the modification interface.
It should be noted that, in this embodiment, the trigger mechanism for generating the modification interface includes that the pressure index exceeds the preset pressure value and the sensing time exceeds the preset time value, and only when both conditions are satisfied, the corresponding modification interface is generated for the user to modify the annotation note, where the modified annotation note is the displayed annotation note.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein a reading annotation scaling display method program which, when executed by a processor, implements the steps of a reading annotation scaling display method as described in any of the preceding claims.
The reading annotation scaling display method, the reading annotation scaling display system and the readable storage medium can be used for rapidly loading the handwritten notes in the electronic books, ensuring that the notes and the texts are displayed simultaneously, enabling the handwritten notes to be scaled together with the texts simultaneously, and enabling the handwriting strokes to be drawn correctly while scaling.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.

Claims (9)

1. A reading annotation zoom display method, comprising the steps of:
acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
retrieving stored handwritten data to load the annotation note, wherein,
loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed; and
modifying the annotation note specifically comprises: acquiring modification data of a handwriting interface to modify the annotation note, or acquiring pressure sensing data of a user on the displayed annotation note, and generating a corresponding modification interface based on the pressure sensing data for the user to modify the annotation note, wherein the generation of the corresponding modification interface based on the pressure sensing data specifically comprises: acquiring a pressure index and sensing time based on the pressure sensing data, wherein when the pressure index exceeds a preset pressure value and the sensing time exceeds a preset time value, the modification interface is generated;
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm; determining the display position of a target line segment point corresponding to the handwriting path based on the position data; and displaying the target line segment point at a corresponding position on the display interface based on the display position.
2. The method for scaled display of reading notes according to claim 1, wherein the obtaining a target book, and identifying notes based on the target book, specifically comprises:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
3. The method for displaying zoom of reading annotation according to claim 1, wherein the calculating the zoom ratio of the current handwriting path and the displayed text, calculating the zoom value of each point in the handwriting path based on the zoom ratio, and obtaining the target line segment point, specifically comprises:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
4. The method for displaying zoom of reading notes according to claim 1, wherein the drawing and rendering are performed on the display interface based on the target line segment points, so as to complete the display operation of the notes, specifically comprising:
acquiring attribute data corresponding to each handwriting path, wherein the attribute data at least comprises a pressure value and line width data;
loading the target line segment points on the display interface based on the attribute data for drawing;
and rendering and removing noise points from the drawn target line segment points to finish the display operation of the annotation note.
5. A method of reading annotation zoom display as claimed in claim 1, further comprising: the font display size of the annotated notes is adjusted.
6. A reading annotation zoom display system comprising a memory and a processor, the memory comprising a reading annotation zoom display method program which when executed by the processor performs the steps of:
acquiring a target book, and identifying annotation notes based on the target book, wherein the target book is an electronic book;
retrieving stored handwritten data to load the annotation note, wherein,
loading a handwriting path of a current display interface based on the handwriting data, determining an initial anchor point of a first handwriting path, and finishing drawing of the handwriting path;
calculating the scaling rate of a current handwriting path and a display text, and calculating the scaling value of each point in the handwriting path based on the scaling rate to obtain a target line segment point;
drawing and rendering on the display interface based on the target line segment points, so that the display operation of the annotation note is completed; and
modifying the annotation note specifically comprises: acquiring modification data of a handwriting interface to modify the annotation note, or acquiring pressure sensing data of a user on the displayed annotation note, and generating a corresponding modification interface based on the pressure sensing data for the user to modify the annotation note, wherein the generation of the corresponding modification interface based on the pressure sensing data specifically comprises: acquiring a pressure index and sensing time based on the pressure sensing data, wherein when the pressure index exceeds a preset pressure value and the sensing time exceeds a preset time value, the modification interface is generated;
after the handwriting path is drawn, determining the position data of the scaled first handwriting path by using a preset anchor point calculation algorithm; determining the display position of a target line segment point corresponding to the handwriting path based on the position data; and displaying the target line segment point at a corresponding position on the display interface based on the display position.
7. The reading annotation zoom display system of claim 6, wherein the obtaining the target book, identifying annotation notes based on the target book, comprises:
the target book is acquired to judge whether a handwritten format file exists in the book, wherein,
if the handwritten format file exists, successfully identifying the annotation note based on the handwritten format file;
if the handwritten format file does not exist, the annotation note is not identified when the book content is displayed.
8. The system of claim 6, wherein the calculating a scaling ratio of the current handwriting path to the displayed text, calculating a scaling value of each point in the handwriting path based on the scaling ratio, and obtaining the target line segment point, specifically comprises:
calculating the scaling rate between the handwriting path and the display text based on a preset bitmap algorithm, wherein the scaling rate is a text scaling rate;
obtaining a scaling value of each point on the corresponding handwriting path based on the scaling rate corresponding to each handwriting path;
and acquiring line segment points corresponding to different handwriting paths based on the scaling value, and further acquiring the target line segment points corresponding to all the handwriting paths.
9. A computer readable storage medium, characterized in that it comprises a reading annotation scaling display method program, which, when executed by a processor, implements the steps of a reading annotation scaling display method according to any of claims 1 to 5.
CN202310134864.1A 2023-02-20 2023-02-20 Reading annotation zoom display method, system and readable storage medium Active CN115859907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310134864.1A CN115859907B (en) 2023-02-20 2023-02-20 Reading annotation zoom display method, system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310134864.1A CN115859907B (en) 2023-02-20 2023-02-20 Reading annotation zoom display method, system and readable storage medium

Publications (2)

Publication Number Publication Date
CN115859907A CN115859907A (en) 2023-03-28
CN115859907B true CN115859907B (en) 2023-06-16

Family

ID=85658425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310134864.1A Active CN115859907B (en) 2023-02-20 2023-02-20 Reading annotation zoom display method, system and readable storage medium

Country Status (1)

Country Link
CN (1) CN115859907B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252247A (en) * 2013-06-28 2014-12-31 联想(新加坡)私人有限公司 Stylus shorthand
CN107203498A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 A kind of method, system and its user terminal and server for creating e-book
CN114201961A (en) * 2021-12-15 2022-03-18 中山大学 Comment prediction method, device, equipment and readable storage medium
CN114202762A (en) * 2022-02-18 2022-03-18 城云科技(中国)有限公司 Handwritten sample generation method and device and application

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI464667B (en) * 2012-05-23 2014-12-11 Wistron Corp Method for sharing notes of an electronic book, electronic reader thereof, and computer readable medium
CN104731390A (en) * 2013-12-18 2015-06-24 深圳富泰宏精密工业有限公司 System and method for saving original handwriting
US9965175B2 (en) * 2015-08-25 2018-05-08 Myscript System and method of digital note taking
CN108255386B (en) * 2018-02-12 2019-07-05 掌阅科技股份有限公司 The display methods of the hand-written notes of e-book calculates equipment and computer storage medium
CN109085965B (en) * 2018-07-19 2019-09-06 掌阅科技股份有限公司 Take down notes generation method, electronic equipment and computer storage medium
WO2022087847A1 (en) * 2020-10-27 2022-05-05 京东方科技集团股份有限公司 Handwritten text recognition method, apparatus and system, handwritten text search method and system, and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252247A (en) * 2013-06-28 2014-12-31 联想(新加坡)私人有限公司 Stylus shorthand
CN107203498A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 A kind of method, system and its user terminal and server for creating e-book
CN114201961A (en) * 2021-12-15 2022-03-18 中山大学 Comment prediction method, device, equipment and readable storage medium
CN114202762A (en) * 2022-02-18 2022-03-18 城云科技(中国)有限公司 Handwritten sample generation method and device and application

Also Published As

Publication number Publication date
CN115859907A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
US8442324B2 (en) Method and system for displaying image based on text in image
EP3246796A1 (en) Device and method for inputting note information into image of photographed object
WO2019154197A1 (en) Electronic book handwritten note display method, computing device and computer storage medium
CN113741763A (en) Electronic book display method and device and electronic equipment
CN103186880A (en) Method and device for generating thumbnail
US20040017940A1 (en) Document information input apparatus, document information input method, document information input program and recording medium
CN115859907B (en) Reading annotation zoom display method, system and readable storage medium
US20120256964A1 (en) Information processing device, information processing method, and program storage medium
CN111724455A (en) Image processing method and electronic device
CN111178365A (en) Picture character recognition method and device, electronic equipment and storage medium
CN114548040A (en) Note processing method, electronic device and storage medium
JP4823606B2 (en) Character output device and method, and program
CN115761049A (en) Automatic picture marking method, device, equipment and storage medium
CN113095058B (en) Method and device for processing page turning of streaming document, electronic equipment and storage medium
CN112183149B (en) Graphic code processing method and device
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
CN112749769A (en) Graphic code detection method and device, computer equipment and storage medium
CN112269467A (en) Translation method based on AR and AR equipment
CN112749294B (en) Page hidden text recognition method, device, computer equipment and storage medium
CN117391045B (en) Method for outputting file with portable file format capable of copying Mongolian
CN117111817B (en) Annotation information erasing method and device, electronic equipment and storage medium
CN110163203B (en) Character recognition method, device, storage medium and computer equipment
CN113157194B (en) Text display method, electronic equipment and storage device
CN114217709B (en) Page display method, reader and computer storage medium
CN113326368B (en) Answering data processing method, device, equipment and storage medium

Legal Events

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