CN110197053B - Page generation method and device and electronic device - Google Patents

Page generation method and device and electronic device Download PDF

Info

Publication number
CN110197053B
CN110197053B CN201810414230.0A CN201810414230A CN110197053B CN 110197053 B CN110197053 B CN 110197053B CN 201810414230 A CN201810414230 A CN 201810414230A CN 110197053 B CN110197053 B CN 110197053B
Authority
CN
China
Prior art keywords
page
layer
content
target
watermark
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
CN201810414230.0A
Other languages
Chinese (zh)
Other versions
CN110197053A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810414230.0A priority Critical patent/CN110197053B/en
Publication of CN110197053A publication Critical patent/CN110197053A/en
Application granted granted Critical
Publication of CN110197053B publication Critical patent/CN110197053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Abstract

The invention discloses a page generation method and device and an electronic device. Wherein the method comprises the following steps: receiving a page request, wherein the page request is used for requesting to acquire a target page; acquiring a first watermark and target content included in a target page, wherein the first watermark is invisible in the target page; generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page. The invention solves the technical problem that hidden watermarks are easy to be colored reversely in the related technology, so that hidden watermarks are leaked.

Description

Page generation method and device and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for generating a page, and an electronic device.
Background
Currently, in order to mark the page content or prevent the page content from being maliciously spread, a hidden watermark is usually added to the page content. However, the hidden watermark in the related art is easy to be reversely colored and changed into a bright watermark, so that the hidden watermark is leaked, and thus, a user who intentionally propagates can be possibly caused to intentionally modify, smear and the like the bright watermark, thereby obstructing the propagation tracing of page contents.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a page generation method and device and an electronic device, which at least solve the technical problem that hidden watermarks are easy to be colored reversely in the related technology, so that hidden watermarks are leaked.
According to an aspect of an embodiment of the present invention, there is provided a page generation method, including: receiving a page request, wherein the page request is used for requesting to acquire a target page; acquiring a first watermark and target content included in the target page, wherein the first watermark is invisible in the target page; generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the target page comprises a first layer in which the target content is located, a second layer in which the first watermark is located and a third layer in which the first content is located, wherein the first content is content which is in the target content and enables the first watermark to be changed from invisible to visible in the target page, and the target content is displayed in the generated target page.
According to another aspect of the embodiment of the present invention, there is also provided a page generating apparatus, including: the receiving unit is used for receiving a page request, wherein the page request is used for requesting to acquire a target page; the first acquisition unit is used for acquiring a first watermark and target content included in the target page, wherein the first watermark is invisible in the target page; the generating unit is used for generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise: the target page comprises a first layer in which the target content is located, a second layer in which the first watermark is located and a third layer in which the first content is located, wherein the first content is content which is in the target content and enables the first watermark to be changed from invisible to visible in the target page, and the target content is displayed in the generated target page.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute any one of the page generation methods of the embodiments of the present invention by using the computer program.
In the embodiment of the invention, after receiving a page request, a target page is generated by acquiring a first watermark and target content included in the target page, wherein the first watermark is invisible in the target page, and the target page comprises a plurality of layers, and the layers comprise from bottom to top: the first layer where the target content is located, the second layer where the first watermark is located and the third layer where the first content is located, wherein the first content is the content which enables the first watermark to be changed from invisible to visible in the target page in the target content, the target content is displayed in the generated target page, the purpose of preventing leakage caused by easy color reversal of the first watermark in the target page is achieved, and further the technical problem that hidden watermarks are easy to be reversed in the related technology and cause leakage of the hidden watermarks is solved, so that stability of the hidden watermarks is improved, and further the technical effect of propagation safety of the target page is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a page generation method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative page generation method according to an embodiment of the invention;
fig. 3a is a schematic diagram of a second position of a first watermark in a second layer according to an embodiment of the invention;
FIG. 3b is a schematic diagram of a first location of a first content in a first layer according to an embodiment of the invention;
fig. 3c is a schematic view of a third position of the first watermark in a third layer according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a page structure according to an embodiment of the invention;
FIG. 5 is a flow chart of another alternative page generation method according to an embodiment of the invention;
FIG. 6 is a schematic diagram of an undecoded destination page according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a decoded target page according to an embodiment of the invention;
FIG. 8 is a schematic diagram of an alternative page generating apparatus according to an embodiment of the invention; and
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the invention, a page generation method is provided.
Alternatively, in the present embodiment, the above-described page generation method may be applied to a hardware environment constituted by the server 102 and the terminal 104 as shown in fig. 1. As shown in fig. 1, server 102 is connected to terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc., but is a wide area network, a metropolitan area network, or a local area network. The page generation method of the embodiment of the present invention may be executed by the server 102, may be executed by the terminal 104, or may be executed by both the server 102 and the terminal 104. The method for generating the page by the terminal 104 according to the embodiment of the present invention may be performed by a client installed thereon.
Alternatively, the process of the server 102 executing the page generation method of the embodiment of the present invention may be described as: the server 102 receives a page request, wherein the page request is used for requesting to acquire a target page; the server 102 obtains a first watermark and target content included in a target page, wherein the first watermark is not visible in the target page; the server 102 generates a target page, wherein the target page comprises a plurality of layers, and the plurality of layers comprise from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page.
The page generation method according to the embodiment of the present invention will be described in detail below by taking the server 102 as an execution body as an example.
FIG. 2 is a flow chart of an alternative page generation method according to an embodiment of the invention, as shown in FIG. 2, which may include the steps of:
step S202, receiving a page request, wherein the page request is used for requesting to acquire a target page;
step S204, acquiring a first watermark and target content included in a target page, wherein the first watermark is invisible in the target page;
step S206, generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page.
After receiving the page request, the steps S202 to S206 are performed to obtain the first watermark and the target content included in the target page, where the first watermark is not visible in the target page, and generate the target page, where the target page includes a plurality of layers, and the plurality of layers includes from bottom to top: the first layer where the target content is located, the second layer where the first watermark is located and the third layer where the first content is located, wherein the first content is the content which enables the first watermark to be changed from invisible to visible in the target page in the target content, the target content is displayed in the generated target page, the purpose of preventing leakage caused by easy color reversal of the first watermark in the target page is achieved, and further the technical problem that hidden watermarks are easy to be reversed in the related technology and cause leakage of the hidden watermarks is solved, so that stability of the hidden watermarks is improved, and further the technical effect of propagation safety of the target page is improved.
In the technical solution provided in step S202, the page request may be used to request to acquire a target page, and the type of the target page is not specifically limited in the embodiment of the present invention, for example, the target page may be any web page in the browser. Optionally, the page request may include identification information of the requested target page, such as a uniform resource locator (Uniform Resource Locator, abbreviated as URL). The identification information of each page may be used to uniquely identify the page.
Alternatively, the page request may be generated by a touch operation trigger performed by the user, e.g. the user clicking on a link in the browser would trigger the generation of a page request requesting the page to which the link is linked. Alternatively, the page request may also be automatically triggered to be generated, for example, when a browser is started and automatically jumps to the homepage, then the page request for generating the homepage is automatically triggered when the browser is started. It should be noted that the page request may also be generated by triggering in other manners, which are not illustrated here.
In the technical solution provided in step S204, after receiving the page request, the embodiment of the present invention may parse the page request, obtain the identification information of the requested target page from the page request, and obtain the target content included in the target page corresponding to the identification information of the target page. Alternatively, the target content included in the target page may include, but is not limited to, text, pictures, audio, video, and the like.
Optionally, the embodiment of the present invention may further acquire a first watermark corresponding to the identification information of the target page, where the first watermark is not visible in the target page, that is, the first watermark is a hidden watermark. Assume that the background of a common page is white: a (R: 255, g:255, b: 255) associated with a specified color: b (R: 255, G:255, B: 254) is visually indistinguishable, but may be used as an identifier, i.e., a hidden watermark. It should be noted that, in the embodiment of the present invention, the content and format of the first watermark are not limited in particular, and for example, the first watermark may be a number, a character, or the like.
It should be noted that, after receiving the page request, the embodiment of the present invention may first perform obtaining the target content included in the target page, or may first perform obtaining the first watermark, or may simultaneously perform obtaining the target content included in the target page and obtaining the first watermark.
In the technical solution provided in step S206, the embodiment of the present invention may place the target content on the first layer, place the first watermark on the second layer, and the second layer is above the first layer, so as to achieve the purpose of adding the hidden watermark to the target content included in the target page. It should be noted that, the first layer and the second layer may be layers of the plurality of layers included in the target page, that is, the target page may be composed of a plurality of layers, and the content on each layer may be different, that is, the target page may include a plurality of layers, where the plurality of layers may include a first layer where the target content is located and a second layer where the first watermark is located.
Optionally, the multiple layers included in the target page may further include a third layer in addition to the first layer and the second layer, where the third layer is above the second layer, and the first content in the third layer may be a content in the target content that makes the first watermark become visible from invisible in the target page, that is, the first content in the third layer is a part of the content in the target content, and the first content easily makes the first watermark be a bright watermark by counter-coloring of the hidden watermark.
In order to generate a target page, in the embodiment of the present invention, in addition to the first layer where the target content is located and the second layer where the first watermark is located, a third layer where the first content is located needs to be obtained, so that the target page is combined by using the first layer, the second layer and the third layer.
Optionally, after obtaining the target content included in the target page and obtaining the first watermark, the embodiment of the present invention may further include: acquiring first content from target content in a first layer, and recording a first position of the first content in the first layer; the first content is added to a second location in the third layer, wherein the first location corresponds to the second location.
Optionally, obtaining the first content from the target content in the first layer may include: determining a third location of the first watermark in the second layer; content at a first location is obtained as first content from target content in a first layer, wherein the first location corresponds to a third location.
As shown in fig. 3a to 3c, the first layer where the target content is located, the second layer where the first watermark is located, and the third layer where the first content is located, where the size of the first layer where the target content is located, is the same, the lower left corner of the target page is taken as the origin of coordinates, the horizontal edge of the target page is taken as the axis of abscissa, the vertical edge of the target page is taken as the axis of ordinate, and assuming that the coordinates of the second position of the first watermark (such as abc in fig. 3 a) in the second layer are (x 0, y 0), the coordinates of the first position of the first content (such as "weather" in fig. 3b and 3 c) in the first layer and the coordinates of the third position of the first content in the third layer should be (x 0, y 0).
That is, the embodiment of the invention determines the first content according to the position of the hidden watermark, and then adds the first content to the third layer at the corresponding position, so that the first watermark on the second layer can be covered by the first content on the third layer, and the purpose of preventing leakage caused by the reverse color of the first watermark is achieved. Moreover, the first content on the third layer is part of the target content at the corresponding position on the first layer, so that the aim of displaying the target content on the target page is fulfilled without influencing the target page.
After the first layer where the target content is located, the second layer where the first watermark is located and the third layer where the first content is located are obtained, the method and the device can generate the target page.
As an alternative embodiment, generating the target page may include: and superposing a first layer where the target content is located, a second layer where the first watermark is located and a third layer where the first content is located to obtain the target page, wherein the second layer is fully transparent, the third layer is transparent except for the first content, and the position of the first content in the third layer corresponds to the position of the first content in the first layer.
In this alternative embodiment, since the second layer is completely transparent, and the third layer is transparent except for the location of the first content, by superposing the first layer, the second layer and the third layer, the generated target page can display the target content, but not the first watermark, and the first watermark can be covered by the first content on the third layer, so that the purpose of preventing the first watermark from being reversely colored into a clear watermark and causing watermark leakage can be achieved.
As another alternative embodiment, generating the target page may include: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; and covering a third layer where the first content is located on the first page to obtain a target page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page.
This alternative embodiment achieves the target page by overlaying the second layer onto the first layer in a bottom-to-top order, resulting in a first page, and then overlaying the third layer onto the first page. The target page is generated in a layer-by-layer coverage mode, so that the contents in a plurality of layers in the target page are covered, and as the first watermark is invisible in the target page and the first content in the third layer is the same as the contents in the target content at the corresponding position in the first layer, the finally generated target page is displayed with the target content, the first watermark is not displayed, and the first watermark can be covered by the first content on the third layer, so that the purposes of preventing the first watermark from being reversely colored to be a clear watermark and causing watermark leakage can be realized.
Optionally, the target page may further comprise a fourth layer located above the third layer, wherein a second watermark may be included in the fourth layer, the second watermark being visible in the target page, i.e. the second watermark may be a bright watermark.
Based on the fourth layer of the target page, on which the second watermark is located, being further included on the third layer, in the embodiment of the present invention, as an optional embodiment, generating the target page may include: and superposing a first layer where the target content is located, a second layer where the first watermark is located, a third layer where the first content is located and a fourth layer where the second watermark is located to obtain a target page, wherein the second layer and the fourth layer are completely transparent, the third layer is transparent except for the first content, the position of the first content in the third layer corresponds to the position of the first content in the first layer, and the generated target page is also displayed with the second watermark.
In this alternative embodiment, since the second layer and the fourth layer are completely transparent, and the third layer is transparent except for the location of the first content, by superposing the first layer, the second layer, the third layer and the fourth layer, the generated target page can display the target content and the second watermark, but not the first watermark, and the first watermark can be covered by the first content on the third layer, so that the purpose of preventing the first watermark from being reversely colored to a clear watermark and causing watermark leakage can be achieved.
Based on the fourth layer of the target page, on which the second watermark is located, being further included on the third layer, in the embodiment of the present invention, as another optional embodiment, generating the target page may include: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; covering a third layer where the first content is located on the first page to obtain a second page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page, and the target content is displayed in the second page; and covering a fourth layer where the second watermark is located on the second page to obtain a target page, wherein the generated target page is also displayed with the second watermark.
This alternative embodiment achieves the target page by overlaying the second layer onto the first layer in a bottom-to-top order to obtain a first page, then overlaying the third layer onto the first page to obtain a second page, and then overlaying the fourth layer onto the second page. The target page is generated in a layer-by-layer coverage mode, so that the contents in a plurality of layers in the target page are covered, and as the first watermark is invisible in the target page, the second watermark is visible in the target page, and the first content in the third layer is the same as the content in the target content at the corresponding position in the first layer, the target content and the second watermark are displayed in the finally generated target page, the first watermark is not displayed, the first watermark can be covered by the first content on the third layer, and the purposes of preventing the first watermark from being reversely colored into a clear watermark and causing watermark leakage can be realized.
According to the embodiment of the invention, the first watermark and the second watermark are arranged in the target page, wherein the first watermark is invisible in the target page, and the second watermark is visible in the target page, so that the propagation safety of the target page can be further improved in a bright-dark mode.
It should be noted that, in the embodiment of the present invention, a "tray layer" (i.e., the third layer) is used to store page contents (i.e., the first content) that may cause accidental leakage of the hidden watermark (i.e., the first watermark), where the contents are hierarchically higher than the layer where the hidden watermark is located (i.e., the second layer). Further, the embodiment of the invention can also cover the surface watermark (second watermark) on the tray layer as supplement. The specific structure of the target page may, as shown in fig. 4, sequentially include, from bottom to top: a presentation layer (i.e. first layer), a hidden watermark layer (second layer), a tray layer (i.e. third layer), a watermark layer (fourth layer).
FIG. 5 is a flow chart of another alternative page generation method according to an embodiment of the invention, as shown in FIG. 5, which may include the steps of:
in step S401, the user initiates a page request requesting page content.
In step S402, the server generates a hidden watermark with the user identifier as well.
Step S403, generating page content.
Step S404, the hidden watermark is overlaid on the page content.
In step S405, risk content that may cause leakage of the hidden watermark is filtered out from the page content, and this part of the content is placed on the tray layer.
In step S406, the tray layer is placed on the hidden watermark layer.
Step S407, a watermark layer is provided on the tray layer.
In step S408, the browser renders the final page for display to the user, so as to facilitate screenshot and propagation of the user.
As shown in fig. 6, the page generated by the page generating method according to the embodiment of the present invention may display the page content and the visible watermark, and does not display the hidden watermark. If the page in fig. 6 is file decoded, a page as shown in fig. 7 can be obtained, and in the page shown in fig. 7, page contents, a bright watermark, and a hidden watermark can be displayed. Here, it should be noted that the file decoding process may be: the target page is assumed to be a color with color A as a primary color, 255, and 253, and the target page is assumed to be a hidden watermark with a small color difference shifted to the direction B. And (3) binarizing the image by taking A as a reference, setting the decoded image to be black below 255, and displaying the hidden watermark if the decoded image is white otherwise.
By utilizing the page generation method provided by the embodiment of the invention, the leakage of the hidden watermark can be effectively avoided, so that the effects of improving the stability of the hidden watermark and improving the page propagation safety can be achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to another aspect of the embodiment of the invention, a page generating device for implementing the page generating method is also provided. FIG. 8 is a schematic diagram of an alternative page generation apparatus, as shown in FIG. 8, according to an embodiment of the invention, which may include:
a receiving unit 22, configured to receive a page request, where the page request is used to request acquisition of a target page; a first obtaining unit 24, configured to obtain a first watermark and target content included in a target page, where the first watermark is not visible in the target page; the generating unit 26 is configured to generate a target page, where the target page includes a plurality of layers, and the plurality of layers includes, from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page.
It should be noted that, the receiving unit 22 in this embodiment may be used to perform step S202 in the embodiment of the present application, the first obtaining unit 24 in this embodiment may be used to perform step S204 in the embodiment of the present application, and the generating unit 26 in this embodiment may be used to perform step S206 in the embodiment of the present application.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
Alternatively, the generating unit 26 may include: the first superposition module is used for superposing a first layer where the target content is located, a second layer where the first watermark is located and a third layer where the first content is located to obtain the target page, wherein the second layer is fully transparent, the third layer is transparent except for the first content, and the position of the first content in the third layer corresponds to the position of the first content in the first layer.
Alternatively, the generating unit 26 may include: the first covering module is used for covering the second layer where the first watermark is located on the first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; and the second coverage module is used for covering a third layer where the first content is located on the first page to obtain a target page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page.
Optionally, the page generating apparatus may further include: the second acquisition unit is used for acquiring first content from target content in the first layer after acquiring the first watermark and the target content included in the target page and before generating the target page, and recording a first position of the first content in the first layer; and an adding unit for adding the first content to a second position in the third layer, wherein the first position corresponds to the second position.
Alternatively, the second acquisition unit may include: a determining module for determining a third position of the first watermark in the second layer; and an acquisition module for acquiring, as the first content, content at a first position corresponding to the third position from the target content in the first layer.
Optionally, the target page further comprises a fourth layer above the third layer, the fourth layer comprising a second watermark, the second watermark being visible in the target page, wherein the generating unit 26 may comprise: and the second superposition module is used for superposing the first layer where the target content is located, the second layer where the first watermark is located, the third layer where the first content is located and the fourth layer where the second watermark is located to obtain the target page.
Optionally, the target page further comprises a fourth layer above the third layer, the fourth layer comprising a second watermark, the second watermark being visible in the target page, wherein the generating unit 26 may comprise: the third coverage module is used for covering the second layer where the first watermark is located on the first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; the fourth coverage module is used for covering a third layer where the first content is located on the first page to obtain a second page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page, and the target content is displayed in the second page; and the fifth coverage module is used for covering the fourth layer where the second watermark is positioned on the second page to obtain a target page, wherein the generated target page is also displayed with the second watermark.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
Through the module, the purpose of preventing leakage caused by easy color reversal of the first watermark in the target page is achieved, and the technical problem that hidden watermarks are easy to color reversal and cause leakage of the hidden watermarks in the related technology is solved, so that the stability of the hidden watermarks is improved, and the technical effect of spreading safety of the target page is improved.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above page generation method.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device may include: one or more (only one is shown in the figure) processors 201, a memory 203, wherein the memory 203 may have stored therein a computer program, which the processors 201 may be arranged to run to perform the page generation method of the embodiments of the invention.
The memory 203 may be used to store computer programs and modules, such as program instructions/modules corresponding to the page generating method and apparatus in the embodiments of the present invention, and the processor 201 executes the computer programs and modules stored in the memory 203, thereby performing various functional applications and data processing, that is, implementing the page generating method described above. Memory 203 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 203 may further comprise memory remotely located relative to the processor 201, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Optionally, as shown in fig. 9, the electronic device may further include: transmission device 205 and input/output apparatus 207. Wherein the transmission means 205 are arranged to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 205 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely illustrative, and the electronic device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 9 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 9, or have a different configuration than shown in fig. 9.
Alternatively, in the present embodiment, the above-described memory 203 may be used to store a computer program.
Alternatively, in this embodiment, the above processor may be arranged to run a computer program to perform the steps of: receiving a page request, wherein the page request is used for requesting to acquire a target page; acquiring a first watermark and target content included in a target page, wherein the first watermark is invisible in the target page; generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page.
The processor 201 is further configured to perform the steps of: and superposing a first layer where the target content is located, a second layer where the first watermark is located and a third layer where the first content is located to obtain the target page, wherein the second layer is fully transparent, the third layer is transparent except for the first content, and the position of the first content in the third layer corresponds to the position of the first content in the first layer.
The processor 201 is further configured to perform the steps of: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; and covering a third layer where the first content is located on the first page to obtain a target page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page.
The processor 201 is further configured to perform the steps of: after the first watermark and target content included in the target page are acquired and before the target page is generated, acquiring first content from the target content in the first layer, and recording a first position of the first content in the first layer; the first content is added to a second location in the third layer, wherein the first location corresponds to the second location.
The processor 201 is further configured to perform the steps of: determining a third location of the first watermark in the second layer; the content at the first position corresponding to the third position is acquired as the first content from the target content in the first layer.
The processor 201 is further configured to perform the steps of: and superposing a first layer where the target content is located, a second layer where the first watermark is located, a third layer where the first content is located and a fourth layer where the second watermark is located to obtain the target page.
The processor 201 is further configured to perform the steps of: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; covering a third layer where the first content is located on the first page to obtain a second page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page, and the target content is displayed in the second page; and covering a fourth layer on which the second watermark is positioned on the second page to obtain a target page, wherein the generated target page is also displayed with the second watermark, the target page also comprises the fourth layer positioned above the third layer, the fourth layer comprises the second watermark, and the second watermark is visible in the target page.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
By adopting the embodiment of the invention, a scheme for generating the page is provided. After receiving the page request, generating a target page by acquiring a first watermark and target content included in the target page, wherein the first watermark is invisible in the target page, and the target page comprises a plurality of layers, and the layers comprise from bottom to top: the first layer where the target content is located, the second layer where the first watermark is located and the third layer where the first content is located, wherein the first content is the content which enables the first watermark to be changed from invisible to visible in the target page in the target content, the target content is displayed in the generated target page, the purpose of preventing leakage caused by easy color reversal of the first watermark in the target page is achieved, and further the technical problem that hidden watermarks are easy to be reversed in the related technology and cause leakage of the hidden watermarks is solved, so that stability of the hidden watermarks is improved, and further the technical effect of propagation safety of the target page is improved.
According to yet another aspect of an embodiment of the present invention, there is also provided a storage medium. The storage medium has stored therein a computer program, wherein the computer program is arranged to perform the steps of the page generating method of the above embodiments when run.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Optionally, in the present embodiment, the storage medium is configured to store a computer program for performing the steps of:
s1, receiving a page request, wherein the page request is used for requesting to acquire a target page;
s2, acquiring a first watermark and target content included in a target page, wherein the first watermark is invisible in the target page;
s3, generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the method comprises the steps of a first layer where target content is located, a second layer where a first watermark is located and a third layer where the first content is located, wherein the first content is content which enables the first watermark to be changed from invisible to visible in a target page in the target content, and the target content is displayed in the generated target page.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: and superposing a first layer where the target content is located, a second layer where the first watermark is located and a third layer where the first content is located to obtain the target page, wherein the second layer is fully transparent, the third layer is transparent except for the first content, and the position of the first content in the third layer corresponds to the position of the first content in the first layer.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; and covering a third layer where the first content is located on the first page to obtain a target page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: after the first watermark and target content included in the target page are acquired and before the target page is generated, acquiring first content from the target content in the first layer, and recording a first position of the first content in the first layer; the first content is added to a second location in the third layer, wherein the first location corresponds to the second location.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: determining a third location of the first watermark in the second layer; the content at the first position corresponding to the third position is acquired as the first content from the target content in the first layer.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: and superposing a first layer where the target content is located, a second layer where the first watermark is located, a third layer where the first content is located and a fourth layer where the second watermark is located to obtain the target page.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: covering a second layer where the first watermark is located on a first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page; covering a third layer where the first content is located on the first page to obtain a second page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page, and the target content is displayed in the second page; and covering a fourth layer on which the second watermark is positioned on the second page to obtain a target page, wherein the generated target page is also displayed with the second watermark, the target page also comprises the fourth layer positioned above the third layer, the fourth layer comprises the second watermark, and the second watermark is visible in the target page.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the method of the above embodiment may be performed by a program for instructing the terminal device related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on 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 the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (7)

1. A page generation method, comprising:
receiving a page request, wherein the page request is used for requesting to acquire a target page;
acquiring a first watermark and target content included in the target page, wherein the first watermark is a hidden watermark invisible to naked eyes in the target page;
generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise from bottom to top: the target page comprises a first layer in which the target content is located, a second layer in which the first watermark is located and a third layer in which the first content is located, wherein the first content is a content which is covered in the target content after the first watermark is processed into a bright watermark, the second layer is completely transparent, the third layer is transparent except for the first content, and the target content is displayed in the target page.
2. The method of claim 1, wherein the target page further comprises a fourth layer positioned above the third layer, the fourth layer comprising a second watermark therein, the second watermark being visible in the target page, wherein the generating the target page comprises:
and superposing the first layer where the target content is located, the second layer where the first watermark is located, the third layer where the first content is located and the fourth layer where the second watermark is located to obtain the target page.
3. The method of claim 1, wherein the target page further comprises a fourth layer positioned above the third layer, the fourth layer comprising a second watermark therein, the second watermark being visible in the target page, wherein the generating the target page comprises:
covering the second layer where the first watermark is located on the first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page;
covering the third layer where the first content is located on the first page to obtain a second page, wherein the first content in the third layer is overlapped with the first content in the target content displayed in the first page, and the target content is displayed in the second page;
And covering the fourth layer where the second watermark is located on the second page to obtain the target page, wherein the second watermark is also displayed in the generated target page.
4. A page generating apparatus, comprising:
the receiving unit is used for receiving a page request, wherein the page request is used for requesting to acquire a target page;
the first acquisition unit is used for acquiring a first watermark and target content included in the target page, wherein the first watermark is a hidden watermark invisible to naked eyes in the target page;
the generating unit is used for generating a target page, wherein the target page comprises a plurality of layers, and the layers comprise: the target page comprises a first layer in which the target content is located, a second layer in which the first watermark is located and a third layer in which the first content is located, wherein the first content is a content covered in the target content after the first watermark is processed into a bright watermark, the second layer is completely transparent, the third layer is transparent except for the first content, and the target content is displayed in the generated target page.
5. The apparatus of claim 4, wherein the target page further comprises a fourth layer above the third layer, the fourth layer comprising a second watermark therein, the second watermark being visible in the target page, wherein the generating unit comprises:
And the second superposition module is used for superposing the first layer where the target content is located, the second layer where the first watermark is located, the third layer where the first content is located and the fourth layer where the second watermark is located to obtain the target page.
6. The apparatus of claim 4, wherein the target page further comprises a fourth layer above the third layer, the fourth layer comprising a second watermark therein, the second watermark being visible in the target page, wherein the generating unit further comprises:
the third coverage module is used for covering the second layer where the first watermark is located on the first layer where the target content is located to obtain a first page, wherein the target content is displayed in the first page, and the first watermark is invisible in the first page;
a fourth coverage module, configured to cover the third layer where the first content is located on the first page to obtain a second page, where the first content in the third layer overlaps with the first content in the target content displayed in the first page, and the target content is displayed in the second page;
And a fifth coverage module, configured to cover the fourth layer where the second watermark is located on the second page, to obtain the target page, where the generated target page further displays the second watermark.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 3.
CN201810414230.0A 2018-05-02 2018-05-02 Page generation method and device and electronic device Active CN110197053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810414230.0A CN110197053B (en) 2018-05-02 2018-05-02 Page generation method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810414230.0A CN110197053B (en) 2018-05-02 2018-05-02 Page generation method and device and electronic device

Publications (2)

Publication Number Publication Date
CN110197053A CN110197053A (en) 2019-09-03
CN110197053B true CN110197053B (en) 2023-07-14

Family

ID=67750998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810414230.0A Active CN110197053B (en) 2018-05-02 2018-05-02 Page generation method and device and electronic device

Country Status (1)

Country Link
CN (1) CN110197053B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11012757B1 (en) 2020-03-03 2021-05-18 The Nielsen Company (Us), Llc Timely addition of human-perceptible audio to mask an audio watermark
CN111783003A (en) * 2020-06-30 2020-10-16 北京海泰方圆科技股份有限公司 Method and device for displaying watermark of browser and electronic equipment
CN113095995B (en) * 2021-04-28 2023-08-01 深圳赛安特技术服务有限公司 Webpage watermark adding method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2071822A1 (en) * 2007-12-13 2009-06-17 Thomson Licensing Method and apparatus for inserting a removable visible watermark in an image and method and apparatus for removing such watermarks
US8489770B2 (en) * 2008-02-08 2013-07-16 Perftech, Inc. Method and system for providing watermark to subscribers
CN107895341A (en) * 2017-11-22 2018-04-10 明鉴方寸(北京)科技有限公司 A kind of method, storage medium and system for being embedded in stealthy watermark in the picture

Also Published As

Publication number Publication date
CN110197053A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN104239042B (en) Heating power drawing generating method and device
US9984662B2 (en) Virtual reality system, and method and apparatus for displaying an android application image therein
WO2015101313A1 (en) Information push method, server, user terminal and system
CN110197053B (en) Page generation method and device and electronic device
CN108880921B (en) Webpage monitoring method and device, storage medium and server
CN104798094B (en) Determine the configuration of content item display environment
US11023501B2 (en) Method and apparatus for displaying map information and storage medium
US20140180846A1 (en) Automatic website accessibility and compatibility
CN108959509A (en) Webpage watermark processing method, device and electronic equipment
JP6140904B2 (en) Terminal marking method, terminal marking device, program, and recording medium
CN107004009A (en) Privacy user interface for website
CN111324275B (en) Broadcasting method and device for elements in display picture
US11405403B2 (en) Method and device, and server and terminal for processing network resource access
CN107509080B (en) Method and device for displaying coded image and electronic equipment
CN116127420A (en) Watermark adding method and device, storage medium and electronic device
CN107332805B (en) Method, device and system for detecting vulnerability
CN108919951B (en) Information interaction method and device
CN106919690B (en) Information shielding method and device and electronic equipment
JP7340806B2 (en) Image inspection equipment, image inspection systems, and image inspection programs
CN111310135B (en) Watermark adding method and device based on virtual desktop
US11825375B2 (en) Locating content in an environment
CN108134906B (en) Image processing method and system
CN112819559A (en) Article comparison method and device
CN113989442B (en) Building information model construction method and related device
US11533580B2 (en) Locating content in an environment

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