Method and device for realizing original traceability, and medium
By generating and embedding digital watermarks with zero-width characters when copying documents, including original URLs and user information, the problem of inability to prevent plagiarism and traceability in the existing technology is solved, and effective protection of original content without affecting the reading experience is achieved.
Patent Information
- Application Number
- CN202410107979.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2025-07-25
AI Technical Summary
When protecting original content, the existing technology cannot effectively prevent plagiarism and cannot achieve original traceability, and the existing watermarking methods affect the reading experience or are insufficiently concealed.
By generating a digital watermark with zero-width characters, it is embedded in the document copy content, including original URL information and user copy information, and displaying the original URL and user copy information during decoding, using QR codes and log flow numbers to achieve concealment and robustness.
Without affecting the text content format, effective traceability of original content is achieved, the concealment and robustness of watermarks are enhanced, and the intellectual property rights of original authors are protected.
Smart Images

Figure CN120372583A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates at least to the field of information technology, and in particular to a method for realizing original source tracing, an apparatus for realizing original source tracing, and a computer-readable storage medium. Background Art
[0002] The prior art can use means such as visible watermarks, hidden watermarks, or restricting text copying to promote the protection of original content.
[0003] However, these means all have certain deficiencies. For example, visible watermarks will affect reading; hidden watermarks are more concealed than visible watermarks and do not affect the reading experience, but they may still be exposed; restricting text copying can be achieved by segmenting and then splicing the copied text, and none of them can achieve an ideal anti-copying effect.
[0004] In addition, after the original content is copied and used, the above methods cannot trace the original source. Summary of the Invention
[0005] The technical problem to be solved by the present disclosure is to provide a method for realizing original source tracing, an apparatus for realizing original source tracing, and a computer-readable storage medium to solve the problem of realizing original source tracing for copied content through hidden digital watermarks in view of the above deficiencies.
[0006] In a first aspect, the present disclosure provides a method for realizing original source tracing, the method
[0007] comprises:
[0008] In response to monitoring that a first user copies a document, obtaining the original website information of the document and the first user's copying information, generating a digital watermark of zero-width characters according to the original website information and the first user's copying information, and hiding and embedding the digital watermark into the copied content;
[0009] In response to receiving a request for watermark decoding of the copied content with the hidden digital watermark, decoding to obtain the digital watermark and displaying the original website information and the first user's copying information.
[0010] Further, obtaining the original website information of the document and the first user's copying information, and generating a digital watermark of zero-width characters according to the original website information and the first user's copying information specifically includes:
[0011] Obtaining the two-dimensional code information corresponding to the original website of the document, obtaining the binary data corresponding to the two-dimensional code information, converting the binary data into quaternary data, and using the quaternary data as the first watermark information to be generated;
[0012] Generate a user browsing document log including the information of the first user and the copied information, store the user browsing document log uniformly according to the log serial number, and obtain the log serial number as the second watermark information to be generated;
[0013] Convert the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
[0014] Further, generating a user browsing document log including the information of the first user and the copied information specifically includes:
[0015] Obtain the information of the first user, the copied time information, and the position information of the copied content in the document, and generate a user browsing document log according to the information of the first user, the time information, and the position information.
[0016] Further, in response to receiving a request for watermark decoding of the copied content hiding the digital watermark, decode to obtain the digital watermark and display the original website information and the first user's copy information, specifically including:
[0017] In response to the second user pasting the copied content hiding the digital watermark onto the watermark decoding page, extract zero-width characters and decode to obtain the digital watermark to obtain the QR code and the log serial number. The QR code links to the original website of the document. Query the uniformly stored user browsing document log according to the log serial number, display the QR code on the watermark decoding page, and display the information of the first user and the copied information after the second user jumps to the original website of the document through the QR code.
[0018] In a second aspect, the present disclosure provides a device for realizing original source tracing, and the device includes:
[0019] A watermark generation module, configured to, in response to monitoring that a first user copies a document, obtain the original website information of the document and the first user's copy information, and generate a digital watermark of zero-width characters according to the original website information and the first user's copy information;
[0020] A watermark embedding module, connected to the watermark generation module, configured to hide and embed the digital watermark into the copied content;
[0021] A watermark decoding module, connected to the watermark generation module, configured to, in response to receiving a request for watermark decoding of the copied content hiding the digital watermark, decode to obtain the digital watermark and display the original website information and the first user's copy information.
[0022] Further, the watermark generation module specifically includes:
[0023] A first watermark unit, configured to obtain the QR code information corresponding to the original website address of the document, obtain the binary data corresponding to the QR code information, convert the binary data into quaternary data, and use the quaternary data as the first watermark information to be generated;
[0024] A second watermark unit, configured to generate a user browsing document log including the information of the first user and the copied information, uniformly store the user browsing document log according to the log serial number, and obtain the log serial number as the second watermark information to be generated;
[0025] A watermark composition unit, connected to the first watermark unit and the second watermark unit, configured to convert the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
[0026] Further, the second watermark unit specifically is configured to:
[0027] Obtain the information of the first user, the copied time information, and the position information of the copied content in the document, and generate a user browsing document log according to the information of the first user, the time information, and the position information.
[0028] Further, the watermark decoding module specifically is configured to:
[0029] In response to a second user pasting the copied content with the hidden digital watermark into the watermark decoding page, extract the zero-width characters and decode to obtain the digital watermark to obtain the QR code and the log serial number. The QR code links to the original website address of the document. Query the uniformly stored user browsing document log according to the log serial number, display the QR code on the watermark decoding page, and display the information of the first user and the copied information after the second user jumps to the original website address of the document through the QR code.
[0030] In a third aspect, the present disclosure provides a computer device, which includes a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for realizing original source tracing as described above.
[0031] In a fourth aspect, the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run by a processor, it realizes the method for realizing original source tracing as described above, or realizes the device for realizing original source tracing as described above.
[0032] The present disclosure provides a method for realizing original source tracing, an apparatus for realizing original source tracing, and a computer-readable storage medium. By listening to the user's copying of a document, a digital watermark including the original website information of the document and the user's copying information is generated, and the digital watermark is hidden and embedded in the content of the document copied by the user after being converted into zero-width characters. Thus, after decoding the watermark in the copied content, the restored original website information and the user's copying information can be obtained. By adding a digital watermark to the document after the user's copying and forming the digital watermark with zero-width characters, the concealment of the digital watermark is enhanced. By adding the user's copying information, the robustness of the digital watermark is enhanced. The tracing of the document source is realized through the original website information and the user's copying information. Description of the Drawings
[0033] Figure 1 is a flowchart of a method for realizing original source tracing according to an embodiment of the present disclosure;
[0034] Figure 2 is a schematic structural diagram of an apparatus for realizing original source tracing according to an embodiment of the present disclosure;
[0035] Figure 3 is a flowchart of a method for watermark generation and embedding according to an embodiment of the present disclosure;
[0036] Figure 4 is a flowchart of a method for watermark decoding according to an embodiment of the present disclosure;
[0037] Figure 5 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. Detailed Embodiments
[0038] To enable those skilled in the art to better understand the technical solutions of the present disclosure, the following will further describe the embodiments of the present disclosure in detail with reference to the accompanying drawings.
[0039] It can be understood that the specific embodiments and the accompanying drawings described herein are only used to explain the present disclosure, rather than limiting the present disclosure.
[0040] It can be understood that, without conflict, the various embodiments and the various features in the embodiments of the present disclosure can be combined with each other.
[0041] It can be understood that, for the sake of convenience of description, only the parts related to the present disclosure are shown in the accompanying drawings of the present disclosure, and the parts unrelated to the present disclosure are not shown in the accompanying drawings.
[0042] It can be understood that each unit and module involved in the embodiments of the present disclosure may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units and modules may also be integrated into one entity structure.
[0043] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present disclosure may occur in an order different from that marked in the accompanying drawings.
[0044] It is understood that in the flowcharts and block diagrams of the present disclosure, the possible architectures, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of the present disclosure are shown. Among them, each block in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified function. Moreover, each block or combination of blocks in the block diagram and flowchart may be implemented by a hardware-based system for implementing the specified function, or by a combination of hardware and computer instructions.
[0045] It is understood that the units and modules involved in the embodiments of the present disclosure may be implemented in software or in hardware. For example, the units and modules may be located in a processor.
[0046] Embodiment 1:
[0047] With the rapid development of the Internet, the text information on online knowledge sharing websites has become an important channel for people to acquire knowledge. However, there are serious content plagiarism problems prevalent on these websites. The fruits created by original authors with a great deal of time and effort are easily copied and pasted by others. In some cases, these plagiarists do not indicate the works of others, which undoubtedly tramples on the original spirit, affects the creative enthusiasm and initiative of original authors, and thus affects the innovation and development of knowledge. Therefore, how to effectively protect the intellectual property rights of original authors has become particularly important.
[0048] The means to achieve the protection of online documents in the Internet can add invisible digital watermarks to the text content of online documents through steganography, thereby marking the copyright information of the author, enabling the author to trace and exercise their rights. Using zero-width characters as digital watermarks and directly embedding them into the original document can hide the watermark information without affecting the original text content format and without affecting reading, having good concealment and robustness. At the same time, it is possible to only monitor the user's copy and cut behavior, and then embed a QR code digital watermark when the user performs a copy and cut. Utilizing the uniqueness and strong error tolerance of the QR code, it can guide readers to jump to the original literature to learn more original information, realizing the traceability and access of the original information, and thus better protecting the intellectual property rights of original authors and stimulating the creative enthusiasm and initiative of original authors.
[0049] Based on the above inventive concept, the present disclosure provides a method for realizing original traceability as shown in Figure 1 and the method includes:
[0050] S1. In response to detecting that a first user copies a document, obtain the original website information of the document and the first user's copy information, generate a digital watermark in zero-width characters based on the original website information and the first user's copy information, and hide and embed the digital watermark into the copied content;
[0051] S2. In response to receiving a request to decode the watermark of the copied content with the hidden digital watermark, decode to obtain the digital watermark and display the original website information and the first user's copy information.
[0052] In this embodiment, to achieve the effect of original source tracing by the digital watermark, a device for realizing original source tracing is provided to implement the method. The device can be divided into three modules as shown in Figure 2 the following: a watermark generation module 1, a watermark embedding module 2, and a watermark decoding module 3; The method includes: The watermark generation module 1 monitors the user's copying of a document to generate a digital watermark including the original website information of the document and the user's copy information, and the watermark embedding module 2 converts the digital watermark into zero-width characters and then hides and embeds it in the content of the document copied by the user. Thus, after the watermark decoding module 3 decodes the watermark of the copied content, the restored original website information and user copy information can be obtained; By adding a digital watermark to the document after the user's copying and forming the digital watermark with zero-width characters, the concealment of the digital watermark is enhanced. By adding the user's copy information, the robustness of the digital watermark is enhanced. The traceability of the document source is realized through the original website information and the user's copy information.
[0053] In an embodiment, obtaining the original website information of the document and the first user's copy information, and generating a digital watermark in zero-width characters based on the original website information and the first user's copy information specifically includes:
[0054] Obtain the two-dimensional code information corresponding to the original website of the document, obtain the binary data corresponding to the two-dimensional code information, convert the binary data into quaternary data, and use the quaternary data as the first watermark information to be generated;
[0055] Generate a user browsing document log including the information of the first user and the copied information, uniformly store the user browsing document log according to the log serial number, and obtain the log serial number as the second watermark information to be generated;
[0056] Convert the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
[0057] In this embodiment, the process of the watermark generation module 1 generating the digital watermark is as shown in Figure 3As shown, it mainly includes two functions: one is to add information pointing to the original document in the digital watermark. Specifically, the URL - type QR code information of the website where the original document is located can be represented in binary. Since the binary URL - type QR code information is still relatively long, it is necessary to further convert the binary information of the QR code into quaternary to shorten the length of the watermark information. The other is to add information about the user's browsing and copying of the document in the digital watermark. Specifically, it can be the user's browsing document log automatically generated when the user browses the document, and the generated log serial number is used as the information to be generated into the watermark, including monitoring the user's copying behavior in the browser and writing the monitored user copying information into the user browsing log. The information to be generated into the watermark is used to generate a digital watermark using zero - width characters and waits for the watermark embedding module 2 to call to embed the digital watermark information into the copied content. Since the watermark information is not pre - generated and merged into the document when the document is generated, but is generated during the copy operation, it will not be damaged due to incomplete user - copied content. Moreover, the watermark information generated each time the user copies is different, mainly because the copying time and content are different, resulting in different serial codes, but the document (original website) pointed to is the same. The invisible zero - width characters are embedded in the copied content, which is no different from the normal document. The QR code and the log serial number achieve the compression and encryption of the digital watermark information, avoiding excessive information being embedded in the document, so as to improve the concealment and robustness of the watermark information.
[0058] In one embodiment, generating a user browsing document log including the information of the first user and the copied information specifically includes:
[0059] Obtaining the information of the first user, the copying time information, and the position information of the copied content in the document, and generating a user browsing document log according to the information of the first user, the time information, and the position information.
[0060] In this embodiment, the user browsing document log includes information such as user information, the time when the user copies the document, and the copied content. Specifically, it can be implemented by front - end JS (JavaScript, an interpreted scripting language) code to monitor the user's copying behavior in the browser, that is, listening for the copy event of the page.
[0061] In one embodiment, in response to receiving a request for decoding the watermark of the copied content with the digital watermark hidden, decoding to obtain the digital watermark and displaying the original website information and the first user's copying information specifically includes:
[0062] In response to the second user pasting the copied content with the digital watermark hidden into the watermark decoding page, zero-width characters are extracted and decoded to obtain the digital watermark, so as to obtain the QR code and the log serial number. The QR code links to the original website address of the document. The user browsing document log stored uniformly is queried according to the log serial number. The QR code is displayed on the watermark decoding page, and after the second user jumps to the original website address of the document through the QR code, the information of the first user and the copied information are displayed.
[0063] In this embodiment, the watermark decoding module 3 is mainly used to extract the watermark information from the text content embedded with the QR code watermark information, and restore and generate the QR code and the original document link address. Specifically, as Figure 4 shown, as long as the user (the second user, that is, the user requesting decoding) pastes the copied content to the watermark decoding page, the watermark decoding module 3 extracts zero-width characters from the copied content, then obtains the original website QR code through quaternary-to-binary conversion and links to the original website; at the same time, obtains the log serial number, and queries and obtains the corresponding user browsing document log according to the log serial number; enables the user (the second user) to directly jump to the original document through the QR code, and displays the copied information of the user (the first user, that is, the user who makes the copy) in the user browsing document log on the original website. It can be understood that the present disclosure designs a dedicated decoding page. The reader (the second user) can paste the copied content to the decoding page to restore and jump to the original document page. The watermark information will not be displayed when the user pastes the copied content into an ordinary tool. Then, the copied content is no different from the ordinary copied text, except that the information about which user copied the content from which original document at what time is hidden in it, and these information will only be parsed out when pasted on the decoding page.
[0064] Embodiment 2:
[0065] As Figure 2 shown, the present disclosure provides a device for realizing original source tracing, and the device includes:
[0066] A watermark generation module 1, configured to, in response to monitoring that the first user copies a document, obtain the original website information of the document and the first user's copied information, and generate a digital watermark of zero-width characters according to the original website information and the first user's copied information;
[0067] A watermark embedding module 2, connected to the watermark generation module 1, configured to hide and embed the digital watermark into the copied content;
[0068] A watermark decoding module 3, connected to the watermark generation module 1, is configured to respond to a request for decoding the watermark of the copied content hiding the digital watermark, decode to obtain the digital watermark, and display the original website information and the first user's copy information.
[0069] In one embodiment, the watermark generation module 1 specifically includes:
[0070] A first watermark unit, configured to obtain the QR code information corresponding to the original website of the document, obtain the binary data corresponding to the QR code information, convert the binary data into quaternary data, and use the quaternary data as the first watermark information to be generated;
[0071] A second watermark unit, configured to generate a user browsing document log including the information of the first user and the copied information, uniformly store the user browsing document log according to the log serial number, and obtain the log serial number as the second watermark information to be generated;
[0072] A watermark composition unit, connected to the first watermark unit and the second watermark unit, is configured to convert the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
[0073] In one embodiment, the second watermark unit specifically is configured to:
[0074] Obtain the information of the first user, the copy time information, and the position information of the copied content in the document, and generate a user browsing document log according to the information of the first user, the time information, and the position information.
[0075] In one embodiment, the watermark decoding module 3 specifically is configured to:
[0076] In response to the second user pasting the copied content hiding the digital watermark to the watermark decoding page, extract zero-width characters and decode to obtain the digital watermark to obtain the QR code and the log serial number. The QR code links to the original website of the document. Query the uniformly stored user browsing document log according to the log serial number, display the QR code on the watermark decoding page, and display the information of the first user and the copied information after the second user jumps to the original website of the document through the QR code.
[0077] Example 3:
[0078] Such as Figure 5As shown in the figure, Embodiment 3 of the present disclosure provides a computer device, including a memory 10 and a processor 20. A computer program is stored in the memory 10. When the processor 20 runs the computer program stored in the memory 10, the processor 20 executes the method for realizing original source tracing as described in Embodiment 1. This computer device may be the device for realizing original source tracing as described in Embodiment 2.
[0079] Among them, the memory 10 is connected to the processor 20. The memory 10 can adopt flash memory, read-only memory or other memories, and the processor 20 can adopt a central processing unit or a single-chip microcomputer.
[0080] Embodiment 4:
[0081] Embodiment 4 of the present disclosure provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run by a processor, it realizes the method for realizing original source tracing as described in Embodiment 1, or realizes the device for realizing original source tracing as described in Embodiment 2.
[0082] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). The computer-readable storage medium includes but is not limited to RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0083] Embodiments 1-4 of the present disclosure provide a method for realizing original source tracing, a device for realizing original source tracing, and a computer-readable storage medium. By listening to the user's copying of a document, a digital watermark including the original website information of the document and the user's copying information is generated, and the digital watermark is hidden and embedded in the content of the document copied by the user after being converted by zero-width characters. Thus, after decoding the watermark of the copied content, the restored original website information and the user's copying information can be obtained. By adding a digital watermark to the document after the user's copying and forming the digital watermark with zero-width characters, the concealment of the digital watermark is enhanced. By adding the user's copying information, the robustness of the digital watermark is enhanced. The tracing of the document source is realized through the original website information and the user's copying information.
[0084] It can be understood that the above embodiments are merely exemplary embodiments adopted to illustrate the principle of the present disclosure. However, the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present disclosure, and these modifications and improvements are also regarded as the protection scope of the present disclosure.
Claims
1. A method for realizing original source tracing, characterized in that, The method includes: In response to monitoring that a first user copies a document, obtaining the original website information of the document and the first user's copy information, generating a digital watermark of zero-width characters according to the original website information and the first user's copy information, and hiding and embedding the digital watermark into the copied content; In response to receiving a request for watermark decoding of the copied content with the digital watermark hidden, decoding to obtain the digital watermark and displaying the original website information and the first user's copy information.
2. The method according to claim 1, wherein Obtaining the original website information of the document and the first user's copy information, and generating a digital watermark of zero-width characters according to the original website information and the first user's copy information specifically includes: Obtaining the two-dimensional code information corresponding to the original website of the document, obtaining the binary data corresponding to the two-dimensional code information, converting the binary data into quaternary data, and using the quaternary data as the first watermark information to be generated; Generating a user document browsing log including the information of the first user and the copied information, uniformly storing the user document browsing log according to the log sequence number, and obtaining the log sequence number as the second watermark information to be generated; Converting the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
3. The method according to claim 2, wherein Generating a user document browsing log including the information of the first user and the copied information specifically includes: Obtaining the information of the first user, the copying time information, and the position information of the copied content in the document, and generating a user document browsing log according to the information of the first user, the time information, and the position information.
4. The method according to claim 2 or 3, characterized in that, In response to receiving a request for watermark decoding of the copied content with the digital watermark hidden, decoding to obtain the digital watermark and displaying the original website information and the first user's copy information specifically includes: In response to a second user pasting the copied content with the digital watermark hidden onto a watermark decoding page, extracting zero-width characters and decoding to obtain the digital watermark to obtain the two-dimensional code and the log sequence number, the two-dimensional code linking to the original website of the document, querying the uniformly stored user document browsing log according to the log sequence number, displaying the two-dimensional code on the watermark decoding page, and displaying the information of the first user and the copied information after the second user jumps to the original website of the document through the two-dimensional code.
5. An apparatus for realizing original source tracing, characterized in that, The device includes: A watermark generation module, configured to, in response to monitoring that a first user copies a document, obtain the original website information of the document and the first user's copy information, and generate a digital watermark of zero-width characters according to the original website information and the first user's copy information; A watermark embedding module, connected to the watermark generation module, configured to hide and embed the digital watermark into the copied content; A watermark decoding module, connected to the watermark generation module, is configured to respond to a request for watermark decoding of the copied content hiding the digital watermark, decode to obtain the digital watermark and display the original website information and the first user's copy information.
6. The device according to claim 5, characterized in that The watermark generation module specifically includes: A first watermark unit, configured to obtain the QR code information corresponding to the original website of the document, obtain the binary data corresponding to the QR code information, convert the binary data into quaternary data, and use the quaternary data as the first watermark information to be generated; A second watermark unit, configured to generate a user browsing document log including the information of the first user and the copied information, uniformly store the user browsing document log according to the log serial number, and obtain the log serial number as the second watermark information to be generated; A watermark composition unit, connected to the first watermark unit and the second watermark unit, is configured to convert the first watermark information to be generated and the second watermark information to be generated using zero-width characters to obtain the digital watermark.
7. The device according to claim 6, characterized in that, The second watermark unit specifically is configured to: Obtain the information of the first user, the copy time information, and the position information of the copied content in the document, and generate a user browsing document log according to the information of the first user, the time information, and the position information.
8. The device according to claim 6 or 7, characterized in that, The watermark decoding module specifically is configured to: In response to the second user pasting the copied content hiding the digital watermark onto the watermark decoding page, extract zero-width characters and decode to obtain the digital watermark to obtain the QR code and the log serial number. The QR code links to the original website of the document. Query the uniformly stored user browsing document log according to the log serial number, display the QR code on the watermark decoding page, and display the information of the first user and the copied information after the second user jumps to the original website of the document through the QR code.
9. A computer device, characterized in that, The device includes a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for realizing original traceability according to any one of claims 1-4.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium. When the computer program is run by a processor, it realizes the method for realizing original traceability according to any one of claims 1-4, or realizes the device for realizing original traceability according to any one of claims 5-8.