CN115861021A - Electronic book watermark modification method and system and readable storage medium - Google Patents

Electronic book watermark modification method and system and readable storage medium Download PDF

Info

Publication number
CN115861021A
CN115861021A CN202310154739.7A CN202310154739A CN115861021A CN 115861021 A CN115861021 A CN 115861021A CN 202310154739 A CN202310154739 A CN 202310154739A CN 115861021 A CN115861021 A CN 115861021A
Authority
CN
China
Prior art keywords
watermark
book
algorithm
data
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310154739.7A
Other languages
Chinese (zh)
Inventor
戴威村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202310154739.7A priority Critical patent/CN115861021A/en
Publication of CN115861021A publication Critical patent/CN115861021A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method, a system and a readable storage medium for modifying electronic book watermarks, wherein the method comprises the following steps: acquiring a target book, and visually displaying the target book including a photo book based on a preset ink screen; the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render a target book; acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale; after the display parameters are adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark; and acquiring the original watermark in the target book for data extraction, and modifying the watermark after the rendering operation is finished. The invention can realize the purpose of removing the watermark based on the Eink screen on the basis of not damaging the structure and the content of the book, and can visually modify the watermark according to the requirements of users.

Description

Electronic book watermark modification method and system and readable storage medium
Technical Field
The invention relates to the technical field of image display and data processing, in particular to an electronic book watermark modification method, a system and a readable storage medium.
Background
With the continuous development of scientific technology, books have been developed from the stage of traditionally teaching through circulation of paper books to various forms including, for example, on-screen books, electronic books, book voice packages, etc., wherein, when the books are displayed by using an electronic display screen, the user's viewing experience is sometimes affected by the display of watermarks, and thus, the watermark removal operation needs to be performed on the corresponding files.
At present, watermark removal has obvious defects, for example, the original book structure of a book can be changed, for example, a text version PDF file becomes a picture version PDF after watermark removal; moreover, the watermark removing process is long, and the user needs to spend time waiting; in addition, there is a problem that the watermark removal is not obvious and remains.
Disclosure of Invention
The invention aims to provide an electronic book watermark modification method, a system and a readable storage medium, which can realize the purpose of removing watermarks on the basis of an Eink ink screen on the basis of not damaging the structure and the content of a book and can perform visual modification on the watermarks according to the requirements of users.
The invention provides an electronic book watermark modification method in a first aspect, which comprises the following steps:
acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render the target book; wherein the content of the first and second substances,
acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
after the display parameters are adjusted, finishing rendering operation of the target book based on a preset rendering mechanism to modify the watermark, wherein the modification mode comprises removing the watermark;
and acquiring the original watermark in the target book for data extraction, and performing watermark re-modification after the rendering operation is finished, wherein the re-modification mode comprises replacing the watermark.
In this scheme, acquire target books and carry out visual display based on predetermined ink screen, specifically include:
identifying book types of books to be displayed, wherein the book types comprise character types and picture types;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
In this scheme, the obtaining of the configuration data of the user based on the preset PDF reader specifically includes:
responding to user requirements to obtain the requirement data corresponding to the user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
In this scheme, the obtaining a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm specifically include:
matching corresponding algorithm data based on PDFREder software to obtain the picture brightness algorithm, wherein the picture brightness algorithm comprises a contrast gamma algorithm, a bitmap background algorithm and a bitmap gray scale algorithm; wherein the content of the first and second substances,
adjusting the contrast in the display parameters based on a contrast gamma algorithm;
adjusting the background brightness in the display parameters based on a bitmap background algorithm;
and adjusting the gray scale in the display parameters based on a bitmap gray scale algorithm.
In this scheme, after the display parameter is adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark specifically includes:
acquiring setting data of a user side, wherein the setting data comprises the adjustment of the display parameters by utilizing at least one algorithm of the contrast gamma algorithm, the bitmap background algorithm and the bitmap gray scale algorithm;
and after the adjustment of the display parameters is finished, rendering the target book by using a preset View rendering mechanism so as to modify the original watermark on the target book, wherein the modification mode comprises watermark removal.
In this scheme, the acquiring of the original watermark in the target book for data extraction to modify the watermark after the rendering operation is finished specifically includes:
acquiring a watermark re-modifying instruction based on the setting data of the user side;
finishing data extraction of the original watermark based on the watermark re-modification instruction;
and visually displaying the extracted original watermark to complete the watermark modification operation, wherein the modification mode comprises replacing the watermark.
The second aspect of the present invention further provides an electronic book watermark modification system, including a memory and a processor, where the memory includes an electronic book watermark modification method program, and when executed by the processor, the electronic book watermark modification method program implements the following steps:
acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render the target book; wherein the content of the first and second substances,
acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
after the display parameters are adjusted, finishing rendering operation of the target book based on a preset rendering mechanism to modify the watermark, wherein the modification mode comprises removing the watermark;
and acquiring the original watermark in the target book for data extraction, and performing watermark re-modification after the rendering operation is finished, wherein the re-modification mode comprises replacing the watermark.
In this scheme, acquire target books and carry out visual display based on predetermined ink screen, specifically include:
identifying book types of books to be displayed, wherein the book types comprise character types and picture types;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
In this scheme, the obtaining of the configuration data of the user based on the preset PDF reader specifically includes:
responding to user requirements to obtain the requirement data corresponding to the user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
In this scheme, the obtaining a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm specifically include:
matching corresponding algorithm data based on PDFREder software to obtain the picture brightness algorithm, wherein the picture brightness algorithm comprises a contrast gamma algorithm, a bitmap background algorithm and a bitmap gray scale algorithm; wherein the content of the first and second substances,
adjusting the contrast in the display parameters based on a contrast gamma algorithm;
adjusting the background brightness in the display parameters based on a bitmap background algorithm;
and adjusting the gray scale in the display parameters based on a bitmap gray scale algorithm.
In this scheme, after the display parameter is adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark specifically includes:
acquiring setting data of a user side, wherein the setting data comprises the adjustment of the display parameters by utilizing at least one algorithm of the contrast gamma algorithm, the bitmap background algorithm and the bitmap gray scale algorithm;
and after the adjustment of the display parameters is finished, rendering the target book by using a preset View rendering mechanism to modify the original watermark on the target book, wherein the modification mode comprises watermark removal.
In this scheme, the acquiring of the original watermark in the target book for data extraction to modify the watermark after the rendering operation is finished specifically includes:
acquiring a watermark re-modifying instruction based on the setting data of the user side;
finishing data extraction of the original watermark based on the watermark re-modification instruction;
and visually displaying the extracted original watermark to finish the watermark modification operation, wherein the modification mode comprises replacing the watermark.
A third aspect of the present invention provides a computer-readable storage medium, which includes a program of an electronic book watermark modification method of a machine, and when the program of the electronic book watermark modification method is executed by a processor, the steps of the electronic book watermark modification method as described in any one of the above are implemented.
The electronic book watermark modification method, the electronic book watermark modification system and the readable storage medium can achieve the purpose of removing the watermark based on the Eink screen on the basis of not damaging the structure and the content of a book, are high in watermark removal speed, improve user experience, can perform visual modification on the watermark according to the requirements of a user, can enable the user to set the watermark by one key, do not need to wait for a long time, and improve the diversity of watermark manipulation.
Drawings
FIG. 1 is a flow chart illustrating an electronic book watermark modification method of the present invention;
fig. 2 shows a block diagram of an electronic book watermark modification system of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
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 otherwise than as specifically described herein and, therefore, the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a flowchart of an electronic book watermark modification method according to the present application.
As shown in fig. 1, the present application discloses an electronic book watermark modification method, which includes the following steps:
s102, acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
s104, based on a preset PDF reader, obtaining configuration data of a user to render the target book;
s106, acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
s108, after the display parameters are adjusted, finishing rendering operation of the target book based on a preset rendering mechanism to modify the watermark, wherein the modification mode comprises watermark removal;
and S110, acquiring original watermarks in the target books to perform data extraction, and performing watermark re-modification after the rendering operation is finished, wherein the re-modification mode comprises replacing the watermarks.
It should be noted that, in this embodiment, the Ink panel Eink is an Electronic Ink (Electronic Ink), which is a novel material, and is a product of multidisciplinary development of chemistry, physics and electronics, and this material can be printed on the surface of any material to display text or image information, and is developed over 30 years by joseph jacobsen (joseph. Jacobsen) and its development group in the university of massachusetts in usa, and this paper structure is composed of two substrates, on which an Electronic Ink composed of countless tiny transparent particles is coated, the particles are formed by sealing many black and white particles with positive and negative charges in internal liquid microcapsules, and the charged particles with different colors will move in different directions due to different applied electric fields, and present black or white effects on the surface of the display panel. Thus, black and white patterns and characters like printed matters can be displayed on the surface of the electronic paper, the electronic paper looks very similar to paper, and the light reflection phenomenon of the traditional liquid crystal display is avoided in sunlight. Meanwhile, only when the color of the pixel changes (for example, the pixel changes from black to white), the picture on the display screen can be still kept after the power is turned off, thereby saving electricity.
Specifically, a target book is obtained to be visually displayed based on an ink screen, wherein the target book includes a text book and a picture book, and the target book is a book with a watermark, configuration parameters of a user are obtained based on a corresponding PDF reader, so that the target book can be rendered, an adopted PDF reader may include, for example, a PDFReader reader, and the like, and the configuration data corresponding to different PDF readers may be different, so that a corresponding picture brightness algorithm is obtained based on the attached data, so as to adjust the display parameters of data to be displayed of the target book, the picture brightness algorithm specifically includes a contrast gamma algorithm, a bitmap background algorithm, and a bitmap grayscale algorithm, and the correspondingly adjusted display parameters include contrast, background brightness, and grayscale.
According to the embodiment of the invention, the acquiring of the target book for visual display based on the preset ink screen specifically comprises:
identifying book types of books to be displayed, wherein the book types comprise character types and picture types;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
It should be noted that, in this embodiment, when the books are displayed by using the ink screen, each book to be displayed corresponds to a book type, which includes a text type and a picture type, the target book is obtained by recognizing the picture book based on the book type, and then the target book is visually displayed by using the Eink ink screen.
According to the embodiment of the invention, the acquiring of the configuration data of the user based on the preset PDF reader specifically comprises the following steps:
responding to user requirements to obtain the requirement data corresponding to the user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
It should be noted that, in this embodiment, when a user refers to a target book by using a PDF reader, the user needs to be responded at this time to obtain corresponding demand data, where the demand data includes, for example, a watermark removal demand, and corresponding configuration data is obtained based on different PDF readers, where, taking a PDFReader reader as an example, the corresponding configuration data includes the contrast gamma algorithm, the bitmap background algorithm, and the bitmap grayscale algorithm described in the above embodiments.
According to the embodiment of the present invention, the obtaining of the picture brightness algorithm based on the configuration data and the adjusting of the display parameters of the data to be displayed in the target book based on the picture brightness algorithm specifically include:
matching corresponding algorithm data based on PDFREder software to obtain the picture brightness algorithm, wherein the picture brightness algorithm comprises a contrast gamma algorithm, a bitmap background algorithm and a bitmap gray scale algorithm; wherein the content of the first and second substances,
adjusting the contrast in the display parameters based on a contrast gamma algorithm;
adjusting the background brightness in the display parameters based on a bitmap background algorithm;
and adjusting the gray scale in the display parameters based on a bitmap gray scale algorithm.
It should be noted that, in this embodiment, the picture brightness algorithm corresponding to the pdfreder reader described in the above embodiment includes a contrast gamma algorithm, a bitmap background algorithm, and a bitmap grayscale algorithm, and specifically includes, for example, adjusting the contrast in the display parameter based on the contrast gamma algorithm; adjusting the background brightness in the display parameters based on a bitmap background algorithm; and adjusting the gray levels in the display parameters based on a bitmap gray level algorithm, wherein the algorithms are known algorithms, and the specific application process is not described herein any more.
According to the embodiment of the present invention, after the display parameter is adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark specifically includes:
acquiring setting data of a user side, wherein the setting data comprises the adjustment of the display parameters by utilizing at least one algorithm of the contrast gamma algorithm, the bitmap background algorithm and the bitmap gray scale algorithm;
and after the adjustment of the display parameters is finished, rendering the target book by using a preset View rendering mechanism to modify the original watermark on the target book, wherein the modification mode comprises watermark removal.
It should be noted that, in this embodiment, when the display parameters are adjusted, the adjustment operation of the corresponding display parameters is completed through the setting data of the user side, where the setting data includes a combination of different image brightness algorithms, for example, only one bitmap grayscale algorithm is used, or a combination of a contrast gamma algorithm and a bitmap grayscale algorithm is used to adjust the display parameters, or a combination of the contrast gamma algorithm, the bitmap background algorithm, and the bitmap grayscale algorithm is used to adjust the display parameters, and after the adjustment of the display parameters is completed, the View rendering is used to render the target book so as to modify the original watermark on the target book, where the modification manner includes removing the watermark.
According to an embodiment of the present invention, the acquiring of the original watermark in the target book for data extraction to perform watermark re-modification after the rendering operation is finished specifically includes:
acquiring a watermark re-modifying instruction based on the setting data of the user side;
finishing data extraction of the original watermark based on the watermark re-modification instruction;
and visually displaying the extracted original watermark to finish the watermark modification operation, wherein the modification mode comprises replacing the watermark.
It should be noted that, in the embodiment, since the effect of removing the original watermark after adjusting the display parameters is described in the above embodiment, in the embodiment, the re-modification instruction is identified based on the setting data, so that the original watermark is subjected to data extraction, and the extracted original watermark is replaced, so that the original watermark is visually displayed in, for example, an upper left corner area of an ink screen, so as to indicate contents such as an author and a citation origin of a book.
It is worth mentioning that the way of replacing the watermark includes:
and visually displaying the extracted original watermark, wherein,
adjusting the display position and the display size of the original watermark to carry out visual display;
and extracting the text content of the original watermark and displaying the text content to a preset position.
It should be noted that, in this embodiment, when the watermark is modified again, the watermark replacement is performed, where the replacement includes replacing a display position and a display size of the original watermark to adjust to a proper position for display, for example, an upper left corner of an ink screen, and the replacement also includes extracting text content of the original watermark to display the text content in a text form to a preset position, for example, a lower right corner of the ink screen, and the like.
It is worth mentioning that the adjusting of the display position and the display size of the original watermark for the visual display specifically includes:
acquiring setting data of a user;
acquiring position size data based on the setting data, wherein the position size data includes the display position and the display size;
visually displaying the original watermark based on the position size data to adjust the original watermark to the display position based on the display size.
It should be noted that, in this embodiment, the setting data of the user includes not only the combination of the image brightness algorithm and the re-modification instruction, but also position size data, where the position size data includes the display position and the display size, so that when replacing the watermark, the original watermark can be visually displayed based on the position size data, so as to adjust the original watermark to the display position based on the display size, and a specific display position is, for example, the upper left corner of the ink screen.
It is worth mentioning that the replacing the watermark further includes modifying the text content, which specifically includes:
acquiring character modification data based on the setting data;
and modifying the text content based on the text modification data so as to fuse the text modification data into the text content and display the text content to a preset position.
It should be noted that, in this embodiment, it is described that, in the above embodiment, the text content of the original watermark may be extracted to display the text content in a text form, before the text content is displayed, the text content may be modified based on the text modification data, so that the text modification data is fused into the text content and displayed at a preset position, for example, the content such as the name of the current referrer is added to the back end of the referral place, where, when the text content is modified, the text content in the original watermark may not be deleted.
It should be mentioned that the method further includes adjusting the display style of the original watermark, specifically including:
acquiring a display style based on the setting data;
and performing display adjustment on the original watermark based on the display style.
It should be noted that, in this embodiment, when the original watermark is replaced to be displayed to the corresponding display position based on the display size, the display style may be synchronously adjusted according to the setting data input by the user, wherein the corresponding display style is obtained based on the setting data, so that the original watermark may be displayed and adjusted based on the display style, so that different display styles may be adjusted according to the needs of the user when the watermark is replaced and displayed, and the user experience may be enhanced, wherein, when the display style is adjusted, the watermark content of the original watermark may not be adjusted.
Fig. 2 shows a block diagram of an electronic book watermark modification system of the present invention.
As shown in fig. 2, the present invention discloses an electronic book watermark modification system, which includes a memory and a processor, where the memory includes an electronic book watermark modification method program, and when executed by the processor, the electronic book watermark modification method program implements the following steps:
acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render the target book; wherein the content of the first and second substances,
acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of a picture to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
and after the display parameters are acquired, finishing the rendering operation of the target book based on a preset rendering mechanism so as to modify the watermark.
It should be noted that, in this embodiment, the Ink panel Eink is an Electronic Ink (Electronic Ink), which is a novel material that is a product of multidisciplinary development of chemistry, physics and electronics, and can be printed on the surface of any material to display text or image information, and is developed successfully over 30 years by joseph, jacobsen and their research and development teams, which are professor of the american college of science and technology, and the structure of the paper is composed of two substrates, on which an Electronic Ink composed of countless tiny transparent particles is coated, the particles are formed by sealing a plurality of black and white particles with positive and negative charges in an internal liquid microcapsule, and the charged particles with different colors will move in different directions due to different applied electric fields, and thus, the surface of the display panel will show black or white effects. Thus, black and white patterns and characters like printed matters can be displayed on the surface of the electronic paper, the electronic paper looks very similar to paper, and the reflection phenomenon of the traditional liquid crystal display is avoided in sunlight. Meanwhile, only when the color of the pixel changes (for example, the pixel changes from black to white), the picture on the display screen can be still kept after the power is turned off, thereby saving electricity.
Specifically, a target book is obtained to be visually displayed based on an ink screen, wherein the target book includes a text book and a picture book, and the target book is a book with a watermark, configuration parameters of a user are obtained based on a corresponding PDF reader, so that the target book can be rendered, an adopted PDF reader may include, for example, a PDFReader reader, and the like, and the configuration data corresponding to different PDF readers may be different, so that a corresponding picture brightness algorithm is obtained based on the attached data, so as to adjust the display parameters of data to be displayed of the target book, the picture brightness algorithm specifically includes a contrast gamma algorithm, a bitmap background algorithm, and a bitmap grayscale algorithm, and the correspondingly adjusted display parameters include contrast, background brightness, and grayscale.
According to the embodiment of the invention, the acquiring of the target book for visual display based on the preset ink screen specifically comprises:
identifying book types of books to be displayed, wherein the book types comprise character types and picture types;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
It should be noted that, in this embodiment, when the books are displayed by using the ink screen, each book to be displayed corresponds to a book type, which includes a text type and a picture type, the target book is obtained by recognizing the picture book based on the book type, and then the target book is visually displayed by using the Eink ink screen.
According to the embodiment of the present invention, the acquiring configuration data of a user based on a preset PDF reader specifically includes:
responding to user requirements to obtain the requirement data corresponding to the user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
It should be noted that, in this embodiment, when a user refers to a target book by using a PDF reader, the user needs to be responded at this time to obtain corresponding demand data, where the demand data includes, for example, a watermark removal demand, and corresponding configuration data is obtained based on different PDF readers, where, taking a PDFReader reader as an example, the corresponding configuration data includes the contrast gamma algorithm, the bitmap background algorithm, and the bitmap grayscale algorithm described in the above embodiments.
According to the embodiment of the present invention, the obtaining of the picture brightness algorithm based on the configuration data and the adjusting of the display parameters of the data to be displayed in the target book based on the picture brightness algorithm specifically include:
matching corresponding algorithm data based on PDFREder software to obtain the picture brightness algorithm, wherein the picture brightness algorithm comprises a contrast gamma algorithm, a bitmap background algorithm and a bitmap gray scale algorithm; wherein the content of the first and second substances,
adjusting the contrast in the display parameters based on a contrast gamma algorithm;
adjusting the background brightness in the display parameters based on a bitmap background algorithm;
and adjusting the gray scale in the display parameters based on a bitmap gray scale algorithm.
It should be noted that, in this embodiment, the picture brightness algorithm corresponding to the pdfreder reader described in the above embodiment includes a contrast gamma algorithm, a bitmap background algorithm, and a bitmap grayscale algorithm, specifically, the contrast in the display parameters is adjusted based on the contrast gamma algorithm, for example; adjusting the background brightness in the display parameters based on a bitmap background algorithm; and adjusting the gray levels in the display parameters based on a bitmap gray level algorithm, wherein the algorithms are known algorithms, and the specific application process is not described herein any more.
According to the embodiment of the present invention, after the display parameter is adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark specifically includes:
acquiring setting data of a user side, wherein the setting data comprises the adjustment of the display parameters by utilizing at least one algorithm of the contrast gamma algorithm, the bitmap background algorithm and the bitmap gray scale algorithm;
and after the adjustment of the display parameters is finished, rendering the target book by using a preset View rendering mechanism to modify the original watermark on the target book, wherein the modification mode comprises watermark removal.
It should be noted that, in this embodiment, when the display parameters are adjusted, the adjustment operation of the corresponding display parameters is completed through the setting data of the user side, where the setting data includes a combination of different image brightness algorithms, for example, only one bitmap grayscale algorithm is used, or a combination of a contrast gamma algorithm and a bitmap grayscale algorithm is used to adjust the display parameters, or a combination of the contrast gamma algorithm, the bitmap background algorithm, and the bitmap grayscale algorithm is used to adjust the display parameters, and after the adjustment of the display parameters is completed, the View rendering is used to render the target book so as to modify the original watermark on the target book, where the modification manner includes removing the watermark.
According to an embodiment of the present invention, the acquiring of the original watermark in the target book for data extraction to perform watermark re-modification after the rendering operation is finished specifically includes:
acquiring a watermark re-modifying instruction based on the setting data of the user side;
finishing data extraction of the original watermark based on the watermark re-modification instruction;
and visually displaying the extracted original watermark to complete the watermark modification operation, wherein the modification mode comprises replacing the watermark.
It should be noted that, in the embodiment, since the effect of removing the original watermark after adjusting the display parameters is described in the above embodiment, in the embodiment, the re-modification instruction is identified based on the setting data, so that the original watermark is subjected to data extraction, and the extracted original watermark is replaced, so that the original watermark is visually displayed in, for example, an upper left corner area of an ink screen, so as to indicate contents such as an author of a book, a citation source, and the like.
It is worth mentioning that the way of replacing the watermark includes:
and visually displaying the extracted original watermark, wherein,
adjusting the display position and the display size of the original watermark to carry out visual display;
and extracting the text content of the original watermark and displaying the text content to a preset position.
It should be noted that, in this embodiment, when the watermark is modified again, the watermark replacement is performed, where the replacement includes replacing a display position and a display size of the original watermark to adjust to a proper position for display, for example, an upper left corner of an ink screen, and the replacement also includes extracting text content of the original watermark to display the text content in a text form to a preset position, for example, a lower right corner of the ink screen, and the like.
It should be noted that the adjusting the display position and the display size of the original watermark for performing the visual display specifically includes:
acquiring setting data of a user;
acquiring position size data based on the setting data, wherein the position size data includes the display position and the display size;
visually displaying the original watermark based on the position size data to adjust the original watermark to the display position based on the display size.
It should be noted that, in this embodiment, the setting data of the user includes not only the combination of the image brightness algorithm and the re-modification instruction, but also position size data, where the position size data includes the display position and the display size, so that when replacing the watermark, the original watermark can be visually displayed based on the position size data, so as to adjust the original watermark to the display position based on the display size, and a specific display position is, for example, the upper left corner of the ink screen.
It is worth mentioning that the replacing the watermark further includes modifying the text content, which specifically includes:
acquiring character modification data based on the setting data;
and modifying the text content based on the text modification data so as to fuse the text modification data into the text content and display the text content to a preset position.
It should be noted that, in this embodiment, it is described that, in the above embodiment, the text content of the original watermark may be extracted to display the text content in a text form, before the text content is displayed, the text content may be modified based on the text modification data, so that the text modification data is fused into the text content and displayed at a preset position, for example, the content such as the name of the current referrer is added to the back end of the referral place, where, when the text content is modified, the text content in the original watermark may not be deleted.
It should be mentioned that the method further includes adjusting the display style of the original watermark, specifically including:
acquiring a display style based on the setting data;
and performing display adjustment on the original watermark based on the display style.
It should be noted that, in this embodiment, when the original watermark is replaced to be displayed to the corresponding display position based on the display size, the display style may be synchronously adjusted according to the setting data input by the user, wherein the corresponding display style is obtained based on the setting data, so that the original watermark may be displayed and adjusted based on the display style, so that different display styles may be adjusted according to the needs of the user when the watermark is replaced and displayed, and the user experience may be enhanced, wherein, when the display style is adjusted, the watermark content of the original watermark may not be adjusted.
A third aspect of the present invention provides a computer-readable storage medium, which includes a program of an electronic book watermark modification method, and when the program of the electronic book watermark modification method is executed by a processor, the steps of the electronic book watermark modification method as described in any one of the above are implemented.
The electronic book watermark modification method, the electronic book watermark modification system and the readable storage medium can achieve the purpose of removing the watermark based on the Eink screen on the basis of not damaging the self structure and the content of the book, are high in watermark removal speed, improve user experience, can perform visual modification on the watermark according to the requirements of a user, can enable the user to set the watermark by one key, do not need to wait for a long time, and improve the diversity of watermark manipulation.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) 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, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.

Claims (10)

1. An electronic book watermark modification method is characterized by comprising the following steps:
acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render the target book; wherein the content of the first and second substances,
acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of data to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
after the display parameters are adjusted, finishing the rendering operation of the target book based on a preset rendering mechanism to modify the watermark, wherein the modification mode comprises removing the watermark;
and acquiring the original watermark in the target book for data extraction, and performing watermark re-modification after the rendering operation is finished, wherein the re-modification mode comprises replacing the watermark.
2. The electronic book watermark modification method according to claim 1, wherein the acquiring of the target book for visual display based on a preset ink screen specifically comprises:
identifying book types of books to be displayed, wherein the book types comprise character types and picture types;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
3. The electronic book watermark modification method according to claim 2, wherein the obtaining of the configuration data of the user based on the preset PDF reader specifically includes:
responding to user requirements to obtain requirement data corresponding to a user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
4. The electronic book watermark modification method according to claim 3, wherein the obtaining of the picture brightness algorithm based on the configuration data and the adjusting of the display parameters of the data to be displayed in the target book based on the picture brightness algorithm specifically include:
matching corresponding algorithm data based on PDFREader software to obtain the picture brightness algorithm, wherein the picture brightness algorithm comprises a contrast gamma algorithm, a bitmap background algorithm and a bitmap gray scale algorithm; wherein the content of the first and second substances,
adjusting the contrast in the display parameters based on a contrast gamma algorithm;
adjusting the background brightness in the display parameters based on a bitmap background algorithm;
and adjusting the gray scale in the display parameters based on a bitmap gray scale algorithm.
5. The electronic book watermark modification method according to claim 4, wherein after the display parameters are adjusted, rendering operation of a target book is completed based on a preset rendering mechanism to modify the watermark, specifically comprising:
acquiring setting data of a user side, wherein the setting data comprises the adjustment of the display parameters by utilizing at least one algorithm of the contrast gamma algorithm, the bitmap background algorithm and the bitmap gray scale algorithm;
and after the adjustment of the display parameters is finished, rendering the target book by using a preset View rendering mechanism to modify the original watermark on the target book, wherein the modification mode comprises watermark removal.
6. The electronic book watermark modification method according to claim 5, wherein the acquiring of the original watermark in the target book for data extraction to perform watermark re-modification after the rendering operation is finished specifically comprises:
acquiring a watermark re-modifying instruction based on the setting data of the user side;
finishing data extraction of the original watermark based on the watermark re-modification instruction;
and visually displaying the extracted original watermark to finish the watermark modification operation, wherein the modification mode comprises replacing the watermark.
7. An electronic book watermark modification system is characterized by comprising a memory and a processor, wherein the memory comprises an electronic book watermark modification method program, and the electronic book watermark modification method program realizes the following steps when being executed by the processor:
acquiring a target book for visual display based on a preset ink screen, wherein the target book comprises a photo book;
the method comprises the steps that configuration data of a user are obtained based on a preset PDF reader to render the target book; wherein the content of the first and second substances,
acquiring a picture brightness algorithm based on the configuration data, and adjusting display parameters of a picture to be displayed in the target book based on the picture brightness algorithm, wherein the display parameters comprise contrast, background brightness and gray scale;
and after the display parameters are acquired, finishing the rendering operation of the target book based on a preset rendering mechanism so as to modify the watermark.
8. The electronic book watermark modification system according to claim 7, wherein the acquiring of the target book for visual display based on a preset ink screen specifically comprises:
identifying the book type of a book to be displayed, wherein the book type comprises a character type and a picture type;
identifying a photo book based on the book type to obtain the target book;
and visually displaying the target book by using a preset Eink screen.
9. The system of claim 8, wherein the obtaining configuration data of a user based on a preset PDF reader specifically includes:
responding to user requirements to obtain requirement data corresponding to a user, wherein the user requirements comprise a watermark removing requirement;
and acquiring the configuration data based on the combination of the PDF reader and the requirement data, wherein the PDF reader comprises PDFREader software, and the configuration data comprises algorithm data matched with each PDF reader.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium includes an electronic book watermark modification method program, which when executed by a processor implements the steps of an electronic book watermark modification method according to any one of claims 1 to 6.
CN202310154739.7A 2023-02-23 2023-02-23 Electronic book watermark modification method and system and readable storage medium Pending CN115861021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310154739.7A CN115861021A (en) 2023-02-23 2023-02-23 Electronic book watermark modification method and system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310154739.7A CN115861021A (en) 2023-02-23 2023-02-23 Electronic book watermark modification method and system and readable storage medium

Publications (1)

Publication Number Publication Date
CN115861021A true CN115861021A (en) 2023-03-28

Family

ID=85658733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310154739.7A Pending CN115861021A (en) 2023-02-23 2023-02-23 Electronic book watermark modification method and system and readable storage medium

Country Status (1)

Country Link
CN (1) CN115861021A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930676A (en) * 2009-06-22 2010-12-29 上海易狄欧电子科技有限公司 Electronic book reader and electronic book displaying method
WO2011163378A1 (en) * 2010-06-23 2011-12-29 Digimarc Corporation Identifying and redressing shadows in connection with digital watermarking and fingerprinting; and dynamic signal detection adapted based on lighting information
CN105427233A (en) * 2015-12-29 2016-03-23 小米科技有限责任公司 Method and device for removing watermark
CN109255355A (en) * 2018-05-28 2019-01-22 北京京东尚科信息技术有限公司 Image processing method, device, terminal, electronic equipment and computer-readable medium
CN112927122A (en) * 2021-04-14 2021-06-08 北京小米移动软件有限公司 Watermark removing method, device and storage medium
CN114862644A (en) * 2022-04-26 2022-08-05 深圳市掌阅科技有限公司 Watermark deleting method, electronic device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930676A (en) * 2009-06-22 2010-12-29 上海易狄欧电子科技有限公司 Electronic book reader and electronic book displaying method
WO2011163378A1 (en) * 2010-06-23 2011-12-29 Digimarc Corporation Identifying and redressing shadows in connection with digital watermarking and fingerprinting; and dynamic signal detection adapted based on lighting information
CN105427233A (en) * 2015-12-29 2016-03-23 小米科技有限责任公司 Method and device for removing watermark
CN109255355A (en) * 2018-05-28 2019-01-22 北京京东尚科信息技术有限公司 Image processing method, device, terminal, electronic equipment and computer-readable medium
CN112927122A (en) * 2021-04-14 2021-06-08 北京小米移动软件有限公司 Watermark removing method, device and storage medium
CN114862644A (en) * 2022-04-26 2022-08-05 深圳市掌阅科技有限公司 Watermark deleting method, electronic device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张凯等: "Photoshop5.0入门与实例解析", 人民邮电出版社 *

Similar Documents

Publication Publication Date Title
JP5208472B2 (en) Printing method and program
US11507727B2 (en) Font rendering method and apparatus, and computer-readable storage medium
CN106462989B (en) Unique low footprint photo aging effects that maintain significance
CN111221596B (en) Font rendering method, apparatus and computer readable storage medium
TW565803B (en) System and method for accurately recognizing text font in a document processing system
US11823358B2 (en) Handwritten content removing method and device and storage medium
US20150070373A1 (en) Clarification of Zoomed Text Embedded in Images
CN106971165A (en) The implementation method and device of a kind of filter
CN108230255A (en) It is used to implement the method, apparatus and electronic equipment of image enhancement
CN102956036B (en) Image processing method and device
US9984633B2 (en) Display apparatus and controlling method thereof
CN111652796A (en) Image processing method, electronic device, and computer-readable storage medium
CN107358184A (en) The extracting method and extraction element of document word
CN113222874B (en) Data enhancement method, device, equipment and storage medium applied to target detection
WO2013175214A1 (en) Electronic display
CN105426143A (en) Intelligent terminal display device compatible system and method
CN109934003A (en) A kind of E-seal covers method, apparatus and electronic equipment
CN111754608A (en) Image processing method, program, and image processing system
WO2021129289A9 (en) Image processing method and apparatus, electronic device, and storage medium
US8629883B2 (en) Method and system for generating online cartoon outputs
CN112686939A (en) Depth image rendering method, device and equipment and computer readable storage medium
CN115861021A (en) Electronic book watermark modification method and system and readable storage medium
US20180286090A1 (en) Systems and methods for clipping images
Blenkhorn et al. Full-screen magnification for windows using DirectX overlays
CN113205033B (en) Visual information processing method and application thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20230328

RJ01 Rejection of invention patent application after publication