Drawing watermark processing method and device, equipment, storage medium and program product

By adding dark watermarks to the source code of drawings, the problem of drawing protection affecting use in the existing technology is solved, and efficient protection of CAD vector drawings is achieved, with a wide range of applications and fast watermark writing and extraction speeds.

CN118628328AActive Publication Date: 2024-09-10BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410740870.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-10
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

When protecting drawings, the existing technology often affects the use of the drawings, especially by adding a watermark layer or depth-adapted protection software to the rasterized drawings, which affects the normal use of the CAD drawings.

Method used

By adding a dark watermark to the source code of the drawing, the watermark identifier, traceability information and preset characters are used to generate the watermark code and written into the source code, making the watermark invisible and avoiding any impact on the normal use of the drawing. , while achieving the protection of drawings.

Benefits of technology

It realizes the protection of drawings without affecting their normal use. It is suitable for CAD vector drawings in different formats. The watermark writing and extraction speed is fast, the scope of application is wide, and the impact on the performance of CAD software is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628328A
    Figure CN118628328A
Patent Text Reader

Abstract

The invention relates to the technical field of drawing processing, and discloses a watermark processing method and device of a drawing, equipment, a storage medium and a program product, the method comprises the following steps: acquiring watermark information, the watermark information comprising a watermark identifier and traceability information; obtaining a source code of the first drawing; obtaining a watermark code based on the watermark information and a preset character; the watermark code is written into the source code, a target drawing added with the watermark is obtained, and the preset character enables the watermark added into the first drawing to be a dark watermark. When the traceability information is extracted from the target drawing, obtaining a source code of the target drawing; identifying a watermark identifier in the source code of the target drawing, and determining a watermark code in the target drawing; and determining traceability information based on the watermark code, the preset character and the watermark identifier. According to the method and the device, the problem that the use of the drawing is influenced when the enterprise protects the drawing can be solved by applying the method and the device to the client or the server of the security management software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of drawing processing, and in particular to a method, device, equipment, storage medium and program product for watermark processing of drawings. Background Art

[0002] With the development of Internet technology and network transmission technology, the copying, modification and dissemination of drawings have become more and more convenient, which makes the protection of drawings more and more difficult. In related technologies, the drawings are mainly protected by adding a watermark layer on the rasterized drawings or encrypting and decrypting the drawings through deep adaptation drawing protection software. However, these two protection methods will affect the use of the drawings in the process of protecting the drawings. Summary of the invention

[0003] In view of this, the present disclosure provides a method, device, equipment, storage medium and program product for watermark processing of drawings to solve the problem that drawing protection affects the use of drawings.

[0004] In a first aspect, the present disclosure provides a method for processing a watermark of a drawing, the method comprising:

[0005] Acquire watermark information, wherein the watermark information includes a watermark identifier and traceability information;

[0006] Obtaining a source code of a first drawing, wherein the source code is obtained by parsing the first drawing;

[0007] Based on the watermark information and the preset characters, a watermark code is obtained;

[0008] The watermark code is written into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0009] In a second aspect, the present disclosure provides another method for processing watermarks of drawings, the method comprising:

[0010] Get the target blueprint;

[0011] Obtaining a source code of the target drawing, wherein the source code is obtained by parsing the target drawing;

[0012] Identify the watermark identifier in the source code to determine the watermark code in the target drawing, wherein the watermark code is obtained based on preset characters, the watermark identifier and traceability information, and the preset characters make the watermark added to the target drawing a dark watermark;

[0013] The traceability information is determined based on the watermark code, the preset characters and the watermark identifier.

[0014] In a third aspect, the present disclosure provides a drawing watermark processing device, the device comprising:

[0015] A watermark information acquisition module, used to acquire watermark information, wherein the watermark information includes a watermark identifier and traceability information;

[0016] An original code acquisition module, used to acquire the source code of the first drawing, wherein the source code is obtained by parsing the first drawing;

[0017] A watermark code generating module, used to obtain a watermark code based on the watermark information and preset characters;

[0018] The watermark code writing module is used to write the watermark code into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0019] In a fourth aspect, the present disclosure provides another drawing watermark processing device, the device comprising:

[0020] A watermark drawing acquisition module is used to acquire the target drawing;

[0021] A target code acquisition module, used to acquire the source code of the target drawing, wherein the source code is obtained by parsing the target drawing;

[0022] A watermark code recognition module, used to recognize the watermark identifier in the source code and determine the watermark code in the target drawing, wherein the watermark code is obtained based on preset characters, the watermark identifier and traceability information, and the preset characters make the watermark added to the target drawing a dark watermark;

[0023] The watermark information extraction module is used to determine the traceability information based on the watermark code, the preset characters and the watermark identifier.

[0024] In a fifth aspect, the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the watermark processing method for drawings of the above-mentioned first aspect or any corresponding embodiment thereof, and / or executes the watermark processing method for drawings of the above-mentioned second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0025] In a sixth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the watermark processing method for a drawing of the above-mentioned first aspect or any corresponding embodiment thereof, and / or to execute the watermark processing method for a drawing of the above-mentioned second aspect or any corresponding embodiment thereof.

[0026] In a seventh aspect, the present disclosure provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the watermark processing method for a drawing of the above-mentioned first aspect or any corresponding embodiment thereof, and / or execute the watermark processing method for a drawing of the above-mentioned second aspect or any corresponding embodiment thereof.

[0027] The watermark processing method for drawings provided in the embodiment of the present disclosure obtains a watermark code based on a watermark identifier, traceability information, and preset characters. The watermark code is written into the source code of the first drawing to obtain a target drawing with a watermark added; wherein the preset characters make the watermark added to the first drawing a dark watermark. Therefore, the watermark code can be determined by identifying the watermark identifier in the source code of the target drawing, so as to obtain the traceability information through the watermark code, thereby realizing the protection of the drawing. At the same time, since the watermark is added to the source code of the drawing, the added watermark cannot be perceived in the displayed drawing, and there is no need to deeply adapt the drawing editing software based on the file filter driver, and the software performance is not affected, so it will not affect the normal use of the drawing. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 is a flow chart of a first method for processing watermarks of drawings according to an embodiment of the present disclosure;

[0030] Figure 2 is a flow chart of a second method for processing watermarks of drawings according to an embodiment of the present disclosure;

[0031] Figure 3 is a flow chart of a watermark processing method for a third drawing according to an embodiment of the present disclosure;

[0032] Figure 4 is a schematic diagram of a code for adding a watermark in the form of an annotation according to an embodiment of the present disclosure;

[0033] Figure 5 is a flowchart of a fourth drawing watermark processing method according to an embodiment of the present disclosure;

[0034] Figure 6 is a schematic diagram of a code with a watermark added in the form of an invisible symbol according to an embodiment of the present disclosure;

[0035] Figure 7 is a flowchart of a fifth method for processing watermarks of drawings according to an embodiment of the present disclosure;

[0036] Figure 8 is a structural block diagram of a drawing watermark processing device according to an embodiment of the present disclosure;

[0037] Fig. 9 is a structural block diagram of another drawing watermark processing device according to an embodiment of the present disclosure;

[0038] Fig.10 It is a structural block diagram of a computer device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0040] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0041] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0042] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0043] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0044] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0045] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0046] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0047] Office security usually involves the security management of networks, identities, and terminals. By implementing private network networking, access control, terminal management in private networks, and information security protection, digital office can be made safer, more efficient, and easier to use. Security management at the network level can ensure that private networks such as office networks can operate safely and efficiently, thereby ensuring that business data can be safely transmitted and stored. Security management at the identity level can improve the efficiency and security of identity authentication for users accessing private networks. Security management at the terminal level can achieve unified management of terminal devices within the private network, data leakage prevention, and terminal threat protection, thereby ensuring the security of corporate data.

[0048] In actual applications, the security management of networks, identities, and terminals can achieve technical linkage in multiple technical branches such as networking strategies, network access and control, remote access, unified terminal management, terminal detection and response, enterprise data leakage prevention, and identity authentication management, making digital office simpler, more efficient, and easier to implement.

[0049] Computer Aided Design (CAD) is widely used in modern industrial design, manufacturing and other fields. With the development of Internet technology and network transmission technology, it is becoming increasingly difficult to protect CAD drawings. Compared with rasterized CAD drawings, CAD vector images can be enlarged and modified without loss, making them easier to develop and utilize, and therefore more likely to become targets of theft. Once a CAD vector image is leaked, it will cause huge losses to the owner of the CAD drawing.

[0050] In the related art, the protection of CAD drawings mainly adopts two methods: adding a watermark layer on the rasterized drawings or using deeply adapted drawing protection software to encrypt and decrypt the drawings. Among them, the first protection method is to render the CAD drawings into rasterized CAD bitmaps and add a watermark layer on the CAD bitmap. Then the watermark information such as the device, user, and enterprise to be written is encoded into a special image identifier, and then the special image identifier is written into the watermark layer to obtain a CAD drawing with added watermark information, thereby realizing the protection of the CAD drawings. However, this method will produce relatively obvious modifications to the CAD bitmap, thereby affecting the normal use of the CAD drawings.

[0051] The second protection method is to deeply integrate CAD software based on file filter drivers to encrypt the drawings of CAD software, thereby realizing the protection and traceability of drawings. In this way, when the CAD software opens or edits CAD drawings, it is necessary to encrypt and decrypt the drawing files to protect the CAD drawings. However, this method requires each CAD software to be adapted separately, so it has poor universality and is easy to affect the performance of the CAD software, thereby affecting the normal use of CAD drawings.

[0052] In view of this, according to an embodiment of the present disclosure, an embodiment of a method for watermark processing of a drawing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawing can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0053] In this embodiment, a method for processing watermarks of drawings is provided, which can be used in the client of security management software to add watermarks to protected drawings. The security management software is used for processing watermarks of drawings, the security management software is installed in the private network / proprietary network of an enterprise or other organization, the client of the security management software is deployed on the terminal device of the enterprise or other organization, and the server of the security management software is deployed on the management platform of the enterprise or other organization. Figure 1is a flow chart of a watermark processing method for a first drawing according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0054] Step S101, obtaining watermark information, where the watermark information includes a watermark identifier and traceability information.

[0055] Specifically, the administrator can formulate a traceability strategy on the server side of the security management software, including the watermark information that needs to be written in the watermark, such as the user information of the modifier, the device information of the terminal device where the client is located, the copyright information of the drawing, etc., and determine the user range and terminal device range covered by the traceability strategy. Then, based on the user range and terminal device range, the traceability strategy is sent to the corresponding client, so that when the user or terminal device in the corresponding range performs watermark processing on the drawing, the client of the security management software automatically obtains the user information of the modifier and the device information of the terminal device where the client is located, and obtains the corresponding watermark identifier from the server, so as to add a watermark to the first drawing according to the watermark information and the watermark identifier, thereby protecting the first drawing.

[0056] In actual operation, the corresponding watermark identifier may be generated according to a pre-configured watermark rule, or the watermark identifier may be randomly generated by the server, and the generation method of the watermark identifier is not limited here.

[0057] Step S102, obtaining the source code of the first drawing, where the source code is obtained by parsing the first drawing.

[0058] It should be noted that the first drawing mentioned here mainly refers to CAD vector drawings. In addition, it can also be drawings in other formats. The format of the drawing is not limited here.

[0059] Specifically, the client of the security management software is configured with a data leakage prevention (DLP) module. The DLP module reads the first drawing (mainly CDA vector drawing) as a text file, and then matches the source code of the first drawing on the terminal device through regular expressions and / or keywords to obtain the source code of the first drawing.

[0060] Step S103, obtaining a watermark code based on the watermark information and the preset characters.

[0061] It should be noted that, in actual operation, the characters used to represent annotations or invisible symbols in the first drawing may be used as preset characters. The addition of watermark code should be based on not affecting the operation of the source code of the first drawing.

[0062] Step S104, writing a watermark code into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0063] Specifically, if the watermark code does not participate in the compilation and operation of the source code, such as a drawing annotation, the watermark code can be written between any two lines of code or in any blank line of the source code. If the watermark code participates in the compilation and operation of the source code, such as an invisible symbol, the watermark code can be written in a position away from the main body of the code.

[0064] The watermark processing method for drawings provided in this embodiment obtains a watermark code based on a watermark identifier, traceability information, and preset characters. The watermark code is written into the source code of the first drawing to obtain a target drawing with a watermark added; wherein the preset characters make the watermark added to the first drawing a dark watermark. Therefore, the watermark code can be determined by identifying the watermark identifier in the source code of the target drawing, so as to obtain the traceability information through the watermark code, thereby realizing the protection of the drawing. At the same time, since the dark watermark is added to the source code of the drawing, the added dark watermark cannot be perceived in the drawing, and there is no need to deeply adapt the drawing editing software based on the file filter driver, the software performance is not affected, and therefore it will not affect the normal use of the drawing.

[0065] In this embodiment, a second drawing watermark processing method is provided, which can be used in the client of the above-mentioned security management software. Figure 2 is a flow chart of a second method for processing watermarks of drawings according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:

[0066] Step S201, obtaining watermark information, where the watermark information includes a watermark identifier and traceability information.

[0067] In some optional implementations, the watermark processing method for drawings disclosed in the present invention further includes, before the above step S201: acquiring the closing time of the first drawing, and the watermark information also includes the closing time of the first drawing.

[0068] Furthermore, the above step S201 includes: obtaining watermark information, the watermark information including a watermark identifier and traceability information; and adding the closing time of the first drawing to the watermark information.

[0069] The drawing watermark processing method provided in this embodiment adds the closing time of the first drawing to the watermark information. Therefore, the creation time or modification time of the drawing can be confirmed to trace the modification history of the drawing.

[0070] Specifically, the above step S201 includes:

[0071] Step S2011, receiving watermark configuration information sent by the server of the security management software, where the watermark configuration information includes a watermark identifier and a traceability strategy.

[0072] It should be noted that the traceability strategy is used to confirm the traceability information that needs to be written into the source code, such as the user information of the modifier, the device information of the terminal device where the client is located, the copyright information of the drawing, etc. Among them, the server of the security management software can issue the traceability strategy in the form of a traceability information template.

[0073] Step S2012, obtaining traceability information based on the traceability strategy, and obtaining watermark information based on the watermark identifier and the traceability information.

[0074] Specifically, the obtaining of traceability information based on the traceability strategy and the obtaining of watermark information based on the watermark identifier and the traceability information in the above step S2012 include: in response to a closing event of the first drawing, obtaining traceability information based on the traceability strategy and obtaining watermark information based on the watermark identifier and the traceability information.

[0075] It should be noted that the modification information of the first drawing is obtained after the first drawing is closed, so the integrity and accuracy of the traceability information can be ensured. It can also avoid frequent acquisition of traceability information during the modification process, thereby improving data processing efficiency and avoiding data conflicts.

[0076] For example, assuming that the server of the security management software issues a traceability policy in the form of a traceability information template, and the traceability information template is "{watermark identifier}-{user information of the modifier}-{device information of the terminal device}", after obtaining the user information of the modifier and the device information of the terminal device where the client is located, the watermark identifier, the user information of the modifier, and the device information of the terminal device where the client is located can be written into the corresponding positions according to the traceability information template to obtain the watermark information.

[0077] Step S202, obtaining the source code of the first drawing, the source code is obtained by parsing the first drawing. See the above step S102 for details, which will not be described in detail here.

[0078] Step S203, based on the watermark information and the preset characters, a watermark code is obtained. See the above step S103 for details, which will not be described in detail here.

[0079] Step S204, write the watermark code in the source code to obtain the target drawing with the watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark. See the above step S104 for details, which will not be repeated here.

[0080] In this embodiment, a third drawing processing method is provided, which can be used in the client of the above-mentioned security management software. Figure 3is a flow chart of a third drawing processing method according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:

[0081] Step S301, obtaining watermark information, the watermark information including the watermark identifier and traceability information. See the above step S101 for details, which will not be repeated here.

[0082] Step S302, obtaining the source code of the first drawing, the source code is obtained by parsing the first drawing. See the above step S102 for details, which will not be described in detail here.

[0083] Step S303, obtaining a watermark code based on the watermark information and the preset characters.

[0084] In some optional implementations, the preset character includes a first preset character used to represent a comment in the source code of the first drawing.

[0085] Specifically, the watermark code is obtained based on the watermark information and the preset characters in the above step S303, including:

[0086] Step S3031: determining a first preset character for representing a comment in a source code of a first drawing.

[0087] Exemplarily, assuming that in the source code of the first drawing, the comment information in the source code is represented by the character “(**)”, then “(**)” is used as the first preset character.

[0088] Step S3032: concatenate the watermark information with the first preset character to obtain a watermark code.

[0089] It should be noted that the concatenation method of the watermark information and the first preset character needs to be determined according to the annotation requirements in the source code of the first drawing.

[0090] Step S304, writing a watermark code into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0091] Specifically, the above step S304 includes:

[0092] Step S3041, determining the first blank code line in the source code.

[0093] Step S3042, write the watermark code in the first blank code line to obtain the target drawing.

[0094] For example, taking CAD drawings as an example, assuming that in the source code of the CAD drawings, the code line starting with "#" is used to represent a symbol. If the watermark code is added directly after any code, it may cause compilation errors. Therefore, it is necessary to determine the first blank code line in the source code and then write the watermark code to avoid compilation errors.

[0095] Specifically, a new blank code line may be inserted between code lines corresponding to any two symbols in the source code to obtain the first blank code line. Alternatively, any blank code line in the source code is determined as the first blank code line.

[0096] The watermark processing method for drawings provided in this embodiment obtains a watermark code based on the first preset character used to represent the annotation and the watermark information in the source code of the first drawing. A first blank code line is determined in the source code, and the watermark code is written in the first blank code line. Therefore, a watermark can be added to the first drawing in the form of an annotation, thereby protecting the first drawing. At the same time, the added information can be prevented from affecting the operation of the source code, so as to ensure the normal use of the target drawing to which the watermark is added.

[0097] For example, the traceability information includes the user information of the modifier and the device information of the terminal device where the client is located, the watermark identifier is "AAAAAA", the user information corresponding to the modifier is "123344", the device information corresponding to the client that modifies the drawing is "AS3E5F", and the first preset character is "(**)". Figure 4 As shown, after the watermark information is concatenated with the first preset character, the watermark code obtained is "(*AAAAAA-123344-AS3E5F*)". Assuming that the code corresponding to line 4235 in the source code is "#3773=<code 1>", the code corresponding to line 4236 is "#3774=<code 2>", and the code corresponding to line 4237 is "#3775=<code 3>", if the watermark code is to be inserted between the codes in lines 4236 and 4237, then in order to avoid affecting the code in line 4236, it is necessary to start another line below line 4236 as the first blank code line, and write "(*AAAAAA-123344-AS3E5F*)" in the first blank code line. At this time, the original code in line 4237 becomes the code in line 4238, and the watermark is added.

[0098] In this embodiment, a fourth drawing watermark processing method is provided, which can be used in the client of the above-mentioned security management software. Figure 5 is a flow chart of a fourth method for processing watermarks of drawings according to an embodiment of the present disclosure. Figure 5 As shown, the process includes the following steps:

[0099] Step S501, obtaining watermark information, the watermark information including the watermark identifier and traceability information. See the above step S101 for details, which will not be described in detail here.

[0100] Step S502, obtaining the source code of the first drawing, the source code is obtained by parsing the first drawing. See the above step S102 for details, which will not be described in detail here.

[0101] Step S503, obtaining a watermark code based on the watermark information and the preset characters.

[0102] In some optional implementations, the preset character includes a second preset character for representing an invisible symbol in the source code of the first drawing and a target symbol number, where the target symbol number is greater than the symbol number corresponding to the last code line in the source code.

[0103] Specifically, the above step S503 includes:

[0104] Step S5031, determining a second preset character for representing an invisible symbol in the source code of the first drawing and a symbol sequence number corresponding to the last code line in the source code.

[0105] Specifically, invisible symbols may be non-displayed pin symbols, non-displayed circuit block symbols, layer identifiers of drawings, object identifiers of primitive objects, attribute labels of graphics, symbols with the same color as the drawing background, etc.

[0106] Step S5032, determining a target symbol number based on the symbol number corresponding to the last code line in the source code, wherein the target symbol number is greater than the symbol number corresponding to the last code line in the source code.

[0107] In the source code of the CAD drawing, a symbol number is configured for each symbol of the drawing, for example Figure 6 3780 as shown in . 3780 means that the symbol corresponding to code 4 is the 3780th symbol in the drawing. When editing drawings, the drawing software will increase the symbol number in sequence according to the order in which the symbols are added in the drawing. Therefore, when adding watermark code in the form of invisible symbols in the source code, the target symbol number can be determined by the symbol number corresponding to the last code line.

[0108] For example, when the symbol number corresponding to the last code line of the source code is 3781, 3782 can be used as the target symbol number.

[0109] Step S5033, concatenate the target symbol serial number, the second preset character and the watermark information to obtain a watermark code.

[0110] Specifically, the target symbol serial number may be placed at the head end and then sequentially spliced ​​with the second preset character or watermark information. The specific splicing method may be determined based on the programming language / compilation requirements of the source code of the first drawing.

[0111] Step S504, writing a watermark code into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0112] Specifically, the above step S504 includes:

[0113] Step S5041, determining a target write position in the source code.

[0114] It should be noted that the target writing position may be between any two code lines of the source code, or may be any blank code line of the source code.

[0115] Step S5042, if the target writing position is located between two adjacent target code lines, a second blank code line is inserted between the two target code lines, and a watermark code is written in the second blank code line to obtain a target drawing.

[0116] It should be noted that two adjacent target code lines belong to different drawing symbols. In order to avoid original code compilation errors, when writing the watermark code between the code lines of two adjacent drawing symbols, it is necessary to insert a blank code line between the two adjacent target code lines, and then write the watermark code in the newly inserted blank code line.

[0117] Step S5043, if the target writing position is located at the third blank code line after the last code line of the source code, then write the watermark code in the third blank code line to obtain the target drawing.

[0118] It should be noted that in CAD drawings, in order to prevent the added watermark code from affecting the writing of new codes when the first drawing is edited next time, when adding dark watermarks with invisible symbols, the added content can be kept away from the original code in the data structure to avoid affecting the code obtained by the next edit when the drawing is edited next time.

[0119] The watermark processing method for drawings provided in this embodiment obtains a watermark code based on the second preset character used to represent the invisible symbol in the source code of the first drawing, the target symbol sequence number and the preset character. Among them, the target symbol sequence number is greater than the symbol sequence number corresponding to the last code line in the source code. Then, when the target writing position of the watermark code is between two adjacent target code lines in the source code, a second blank code line is inserted between the two target code lines to write the watermark code. Alternatively, when the target writing position of the watermark code is located in the third blank code line after the last code line in the source code, the watermark code is written in the third blank code line to obtain the target drawing. Therefore, a dark watermark can be added to the first drawing in the form of an invisible symbol, thereby protecting the first drawing. At the same time, it is possible to avoid the added information from affecting the operation of the source code to ensure the normal use of the target drawing.

[0120] Furthermore, in order to leave enough space for writing new code in the next drawing editing, a sufficient interval can be left between the target writing position and the last line of the source code. The target writing position can be determined in the following manner: determining a first position corresponding to the last line in the source code; determining a second position based on the first position, the code line where the second position is located is greater than the code line where the first position is located; and using the second position as the target writing position.

[0121] For example, Figure 6 As shown in the figure, 4243, 4244, and 6000 are the line numbers of the code lines, and 3780, 3781, and 3782 are the symbol numbers of the drawing symbols corresponding to the code lines. Assuming that the symbol number corresponding to the last code line in the source code is 3781, the target symbol number is determined to be 3782, and the second preset character is concatenated with the watermark information to obtain "#<symbol number> <bbbb>", then the target symbol number and "#<symbol number> <bbbb>" and concatenate them to get the watermark code "#3782= <bbbb>". Assuming that the first position corresponding to the last line of the source code is line 4244 and the second position is line 6000, the watermark code is written at line 6000 and the watermark is added.

[0122] In this embodiment, a fifth method for processing watermarks of drawings is provided, which can be used in the server or client of the above-mentioned security management software to extract traceability information from the watermarks of protected drawings. Figure 7 is a flow chart of a method for processing watermarks of a fifth drawing according to an embodiment of the present disclosure. Figure 7 As shown, the process includes the following steps:

[0123] Step S701, obtaining a target drawing.

[0124] Specifically, the target drawing here is a watermarked drawing obtained by the watermark processing method of the drawing disclosed in the present invention.

[0125] Step S702, obtaining the source code of the target drawing, where the source code is obtained by parsing the target drawing.

[0126] Specifically, the target drawing can be read as a text file through the DLP module of the client, and then the source code of the target drawing can be matched through regular expressions and / or keywords to obtain the source code of the target drawing.

[0127] Step S703, identifying the watermark identifier in the source code, and determining the watermark code in the target drawing. The watermark code is obtained based on preset characters, the watermark identifier and the traceability information. The preset characters make the watermark added in the target drawing a dark watermark.

[0128] For example, Figure 4 As shown, assuming that the watermark identifier is "AAAAAA", "AAAAAA" can be found in the source code of the target drawing to obtain the watermark code.

[0129] Step S704, determining the traceability information based on the watermark code, the preset characters and the watermark identifier.

[0130] Exemplarily, assuming that the watermark code is written in the form of a comment, the watermark code is obtained by concatenating the traceability information, the watermark identifier, and the first preset character used to represent the comment in the source code of the target drawing. The traceability information can then be extracted from the part of the watermark code other than the watermark identifier and the first preset character.

[0131] Alternatively, assuming that the watermark code is written in the form of an invisible symbol, the watermark code is obtained by concatenating the traceability information, the watermark identifier, the second preset character used to represent the invisible symbol in the source code of the target drawing, and the target symbol serial number. The traceability information can then be extracted from the part of the watermark code other than the watermark identifier, the target symbol serial number, and the second preset character.

[0132] The watermark processing method for drawings provided in this embodiment writes the corresponding traceability information in the source code of the target drawing in the form of a dark watermark. Then, when it is necessary to trace the target drawing, the watermark identifier in the source code of the target drawing is identified to determine the watermark code in the target drawing, and then the traceability information is extracted from the watermark code. Therefore, the traceability information can be used to trace the drawing to protect the drawing. At the same time, since the watermark is added to the source code of the drawing, the added watermark cannot be perceived in the displayed drawing, and there is no need to deeply adapt the drawing editing software based on the file filter driver, and the software performance is not affected. Therefore, this drawing protection method will not affect the normal use of the drawing.

[0133] In some optional embodiments, the traceability information is determined based on the watermark code, preset characters and watermark identifier in the above step S704, including: if the preset character includes the first preset character used to represent the annotation in the source code of the target drawing, then the traceability information is determined based on the watermark code, the first preset character and the watermark identifier.

[0134] Furthermore, if the watermark code is obtained by concatenating the watermark information with the first preset character, then determining the traceability information based on the watermark code, the first preset character and the watermark identifier includes: splitting the watermark code based on the watermark identifier and the first preset character to obtain the traceability information.

[0135] The watermark processing method for drawings provided in this embodiment writes a watermark code into the source code of the target drawing in the form of an annotation. Then, when the target drawing needs to be traced, the traceability information is extracted through the watermark code, the watermark identifier, and the first preset character used to characterize the annotation. Therefore, it is possible to avoid the added information from affecting the operation of the source code to ensure the normal use of the drawing. In addition, the traceability method is relatively simple, and can effectively improve the traceability efficiency while protecting the drawing.

[0136] In some optional embodiments, the traceability information is determined based on the watermark code, preset characters and watermark identifier in the above step S704, including: if the preset characters include a second preset character for representing an invisible symbol in the source code of the target drawing and the target symbol serial number, then the traceability information is determined based on the watermark code, the second preset character, the target symbol serial number and the watermark identifier.

[0137] It should be noted that in the source code of the CAD drawing, a symbol number is configured for each symbol of the drawing, and the symbol number is added to the code corresponding to the symbol. The target symbol number is the symbol number of the invisible symbol corresponding to the watermark code.

[0138] Furthermore, if the watermark code is obtained by concatenating the target symbol serial number, the second preset character and the watermark information, then, based on the watermark code, the second preset character, the target symbol serial number and the watermark identifier, determining the traceability information includes: based on the watermark identifier, the target symbol serial number and the second preset character, splitting the watermark code to obtain the traceability information.

[0139] The watermark processing method for drawings provided in this embodiment writes a watermark code into the source code of the target drawing in the form of an invisible symbol. Then, when the target drawing needs to be traced, the traceability information is extracted through the watermark code, the watermark identifier, the second preset character used to characterize the invisible symbol, and the target symbol sequence number. Therefore, it is possible to avoid the added information from affecting the operation of the source code, thereby ensuring the normal use of the drawing. In addition, the traceability method is relatively simple, which can effectively improve the traceability efficiency while protecting the drawing.

[0140] As a specific application example, take the installation of security management software in the private network / dedicated network of an enterprise as an example. Among them, the client of the security management software is deployed on the terminal device within the enterprise, and the server of the security management software is deployed on the management platform of the enterprise. The administrator can configure the watermark configuration information on the server of the security management software. The watermark configuration information includes a watermark identifier and a traceability strategy. The traceability strategy includes information such as the user information of the modifier that needs to be written into the drawing and the device information of the terminal device where the client is located. The administrator can also configure the terminal device range and user range covered by the watermark configuration information on the server. The server sends the watermark configuration information to the client of the security management software based on the terminal device range and the user range. The data leakage prevention (DLP) module of the client reads the traceability information of the protected drawing from the terminal device where the client is located based on the traceability strategy issued by the server to obtain the watermark information. Then, the DLP module of the client further writes the watermark information into the source code of the protected drawing based on the watermark processing method of the drawing disclosed in the present invention, thereby protecting the protected drawing.

[0141] When it is necessary to trace the source of a protected drawing, the traceability information of the protected drawing, such as the user information of the modifier and the device information of the terminal device, can be obtained from the source code of the protected drawing on the server or client side of the security management software through the watermark processing method of the drawings disclosed in the present invention, so as to determine the creator of the protected drawing or the modifier who has modified the protected drawing.

[0142] In addition, in order to prevent the watermark code in the drawing source code from being deleted, the watermark protection function can be configured in the security management software to back up and cache the watermark code in the drawing source code. If it is detected that any watermark code is deleted, the deleted watermark code will be restored after the drawing is closed.

[0143] It is worth noting that in the related art, the CAD drawings are mainly protected by adding a watermark layer to the rasterized CAD drawings or encrypting and decrypting the drawings through deeply adapted drawing protection software. As shown in Table 1, the first drawing protection method of adding a watermark layer to the rasterized CAD drawings, although the watermark is covered on the rasterized CAD drawings, is not affected by the use platform and CAD software. However, the first protection method has the following shortcomings: First, due to the different formats and types of rasterized CAD drawings of various CAD software, the scope of application of the drawings is small. Second, the watermark layer will affect the use of the drawings. Third, it takes a long time to add a watermark layer to the rasterized CAD drawings, so the watermark writing efficiency is low. Fourth, it takes a long time to parse the rasterized CAD drawings, so the watermark extraction efficiency is low.

[0144] The second method of drawing protection, which uses deeply adapted drawing protection software to encrypt and decrypt drawings, has higher drawing security. However, the second protection method still has the following shortcomings: First, since the CAD software needs to be adapted, the drawing formats of different software are different, so the scope of application of the drawings is small. Second, since the drawing protection software needs to be integrated with the CAD software, it may affect the performance of the CAD software, thereby affecting the normal use of the drawings. Third, each CAD software needs to be adapted separately. Since the CAD format of each CAD software is not universal, the compatibility of the use platform and CAD software is poor. Fourth, since a large amount of calculations are required in the encryption and decryption process, the watermark writing efficiency is low. Fifth, since the encryption and decryption process of the drawings requires a large amount of calculations, the watermark extraction efficiency is low.

[0145] Compared with the above two drawing protection methods, the watermark processing method for drawings disclosed in the present invention has the following advantages: First, watermarks are added through source code, so they are applicable to different CAD vector drawings, and the drawings have a wide range of applications. Second, dark watermarks are added through source code, which cannot be perceived from the displayed drawings, so they will not affect the use of the drawings. Third, since the watermark is added in the source code of the drawing, it is not affected by the use platform and CAD software. Fourth, the watermark writing method is simple and the speed is fast. Fifth, the watermark extraction method is simple and the watermark extraction speed is fast.

[0146] Table 1 Comparison results of different drawing protection methods

[0147]

[0148] It is worth noting that the watermark processing method of the drawings disclosed in the present invention can directly write watermarks in the source code of CAD vector drawings in the form of comments or invisible symbols, so that after the drawings are leaked, the watermark code in the source code can be accurately traced to effectively protect the drawings. At the same time, since the watermark added to the source code cannot be perceived by the user on the displayed drawings, the user's experience of using the drawing files can be guaranteed. Moreover, adding watermarks to the source code of the drawings in the form of comments or invisible symbols is relatively simple to implement, and the watermark writing speed and watermark extraction speed are relatively fast, so more timely protection can be provided against the leakage of drawings.

[0149] In this embodiment, a watermark processing device for drawings is also provided, and the device is used to implement the above embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0150] This embodiment provides a drawing watermark processing device, such as Figure 8 As shown, the device comprises:

[0151] The watermark information acquisition module 801 is used to acquire watermark information, where the watermark information includes a watermark identifier and traceability information;

[0152] The original code acquisition module 802 is used to acquire the source code of the first drawing, where the source code is obtained by parsing the first drawing;

[0153] A watermark code generating module 803, used to obtain a watermark code based on the watermark information and preset characters;

[0154] The watermark code writing module 804 is used to write the watermark code into the source code to obtain the target drawing with the watermark added, wherein the preset characters make the watermark added in the first drawing a dark watermark.

[0155] In some optional implementations, the watermark processing device for drawings disclosed herein further includes:

[0156] The closing time acquisition module is used to acquire the closing time of the first drawing. The watermark information also includes the closing time of the first drawing.

[0157] In some optional implementations, the watermark information acquisition module 801 includes:

[0158] A configuration information acquisition unit, used to receive watermark configuration information sent by the server of the security management software, the watermark configuration information including a watermark identifier and a traceability strategy;

[0159] The traceability information acquisition unit is used to acquire the traceability information based on the traceability strategy, and obtain the watermark information based on the watermark identifier and the traceability information.

[0160] In some optional implementations, the traceability information acquisition unit includes:

[0161] The traceability information acquisition subunit is used to respond to the closing event of the first drawing, acquire the traceability information based on the traceability strategy, and obtain the watermark information based on the watermark identifier and the traceability information.

[0162] In some optional implementations, the preset characters in the watermark code generation module 803 include first preset characters used to represent annotations in the source code of the first drawing.

[0163] In some optional implementations, the watermark code writing module 804 includes:

[0164] A blank line determination unit, used to determine the first blank code line in the source code;

[0165] The first watermark writing unit is used to write the watermark code in the first blank code line to obtain a target drawing.

[0166] In some optional implementations, the preset characters in the watermark code generation module 803 include a second preset character used to represent an invisible symbol in the source code of the first drawing and a target symbol number, and the target symbol number is greater than the symbol number corresponding to the last code line in the source code.

[0167] In some optional implementations, the watermark code writing module 804 further includes:

[0168] A write position determination unit, used for determining a target write position in a source code;

[0169] A second watermark writing unit is used for inserting a second blank code line between the two target code lines if the target writing position is between two adjacent target code lines, and writing the watermark code in the second blank code line to obtain a target drawing;

[0170] The third watermark writing unit is used to write the watermark code in the third blank code line if the target writing position is located at the third blank code line after the last code line of the source code, so as to obtain the target drawing.

[0171] It should be noted that the effects or functions that can be achieved by the watermark processing device for drawings disclosed in the present invention can be found in the description of the above corresponding embodiments, which will not be repeated here.

[0172] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0173] The watermark processing device for drawings in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0174] In this embodiment, another watermark processing device for drawings is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0175] This embodiment provides another drawing watermark processing device, such as Fig. 9 As shown, the device comprises:

[0176] The watermark drawing acquisition module 901 is used to acquire the target drawing;

[0177] The target code acquisition module 902 is used to acquire the source code of the target drawing, and the source code is obtained by parsing the target drawing;

[0178] The watermark code recognition module 903 is used to recognize the watermark identifier in the source code and determine the watermark code in the target drawing. The watermark code is obtained based on preset characters, the watermark identifier and the traceability information. The preset characters make the watermark added to the target drawing a dark watermark.

[0179] The watermark information extraction module 904 is used to determine the traceability information based on the watermark code, the preset characters and the watermark identifier.

[0180] In some optional implementations, the watermark information extraction module 904 includes:

[0181] The first information extraction unit is configured to determine the traceability information based on the watermark code, the first preset character and the watermark identifier if the preset character includes a first preset character used to represent the annotation in the source code of the target drawing.

[0182] In some optional implementations, the watermark information extraction module 904 includes:

[0183] The second information extraction unit is used to determine the traceability information based on the watermark code, the second preset character, the target symbol number and the watermark identifier if the preset character includes a second preset character used to represent the invisible symbol in the source code of the target drawing and the target symbol serial number.

[0184] It should be noted that the effects or functions that can be achieved by the watermark processing device for drawings disclosed in the present invention can be found in the description of the above corresponding embodiments, which will not be repeated here.

[0185] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0186] The watermark processing device for drawings in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0187] The present disclosure also provides a computer device having the above Figure 8 and / or Fig. 9 The watermark processing device of the drawing shown.

[0188] See also Fig.10 , Fig.10 is a structural block diagram of a computer device provided by an optional embodiment of the present disclosure, such as Fig.10 As shown, the computer device includes: one or more processors 1001, memory 1002, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as required. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 1001 is taken as an example.

[0189] The processor 1001 may be a central processing unit, a network processor or a combination thereof. The processor 1001 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0190] The memory 1002 stores instructions executable by at least one processor 1001 so as to enable at least one processor 1001 to implement the method shown in the above embodiment.

[0191] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the processor 1001, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0192] The memory 1002 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 1002 may also include a combination of the above types of memory.

[0193] The computer device also includes an input device 1003 and an output device 1004. The processor 1001, the memory 1002, the input device 1003 and the output device 1004 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0194] The input device 1003 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 1004 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0195] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0196] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0197] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.< / bbbb> < / bbbb> < / bbbb>

Claims

1. A method for processing watermarks of drawings, characterized in that: The method comprises: Acquire watermark information, wherein the watermark information includes a watermark identifier and traceability information; Obtaining a source code of a first drawing, wherein the source code is obtained by parsing the first drawing; Based on the watermark information and the preset characters, a watermark code is obtained; The watermark code is written into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

2. The method according to claim 1, characterized in that: The preset characters include first preset characters used to represent comments in the source code of the first drawing.

3. The method according to claim 2, characterized in that Writing the watermark code into the source code to obtain a target drawing with a watermark includes: Determining a first blank code line in the source code; The watermark code is written into the first blank code line to obtain the target drawing.

4. The method according to claim 1, characterized in that: The preset characters include a second preset character for representing an invisible symbol in the source code of the first drawing and a target symbol number, and the target symbol number is greater than the symbol number corresponding to the last code line in the source code.

5. The method according to claim 4, characterized in that Writing the watermark code into the source code to obtain a target drawing with a watermark includes: determining a target write location in the source code; If the target writing position is located between two adjacent target code lines, insert a second blank code line between the two target code lines, and write the watermark code in the second blank code line to obtain the target drawing; If the target writing position is located at the third blank code line after the last code line of the source code, the watermark code is written in the third blank code line to obtain the target drawing.

6. The method according to claim 1, characterized in that The method further includes: acquiring the closing time of the first drawing, and the watermark information further includes the closing time of the first drawing.

7. The method according to claim 1, characterized in that The obtaining of watermark information comprises: Receive watermark configuration information sent by the server of the security management software, wherein the watermark configuration information includes a watermark identifier and a traceability strategy; The traceability information is acquired based on the traceability strategy, and the watermark information is obtained based on the watermark identifier and the traceability information.

8. The method according to claim 7, characterized in that The acquiring the traceability information based on the traceability strategy, and obtaining the watermark information based on the watermark identifier and the traceability information, includes: In response to a closing event of the first drawing, the traceability information is acquired based on the traceability strategy, and the watermark information is obtained based on the watermark identifier and the traceability information.

9. A method for processing watermarks of drawings, characterized in that: The method comprises: Get the target blueprint; Obtaining a source code of the target drawing, wherein the source code is obtained by parsing the target drawing; Identify the watermark identifier in the source code to determine the watermark code in the target drawing, wherein the watermark code is obtained based on preset characters, the watermark identifier and traceability information, and the preset characters make the watermark added to the target drawing a dark watermark; The traceability information is determined based on the watermark code, the preset characters and the watermark identifier.

10. The method according to claim 9, characterized in that The determining the traceability information based on the watermark code, the preset character and the watermark identifier includes: If the preset characters include a first preset character used to represent a comment in the source code of the target drawing, the traceability information is determined based on the watermark code, the first preset character and the watermark identifier.

11. The method according to claim 9, characterized in that The determining the traceability information based on the watermark code, the preset character and the watermark identifier includes: If the preset characters include a second preset character used to represent an invisible symbol in the source code of the target drawing and a target symbol serial number, the traceability information is determined based on the watermark code, the second preset character, the target symbol serial number and the watermark identifier.

12. A drawing watermark processing device, characterized in that: The device comprises: A watermark information acquisition module, used to acquire watermark information, wherein the watermark information includes a watermark identifier and traceability information; An original code acquisition module, used to acquire the source code of the first drawing, wherein the source code is obtained by parsing the first drawing; A watermark code generating module, used to obtain a watermark code based on the watermark information and preset characters; The watermark code writing module is used to write the watermark code into the source code to obtain a target drawing with a watermark, wherein the preset characters make the watermark added in the first drawing a dark watermark.

13. A drawing watermark processing device, characterized in that: The device comprises: A watermark drawing acquisition module is used to acquire the target drawing; A target code acquisition module, used to acquire the source code of the target drawing, wherein the source code is obtained by parsing the target drawing; A watermark code recognition module, used to recognize the watermark identifier in the source code and determine the watermark code in the target drawing, wherein the watermark code is obtained based on preset characters, the watermark identifier and traceability information, and the preset characters make the watermark added to the target drawing a dark watermark; The watermark information extraction module is used to determine the traceability information based on the watermark code, the preset characters and the watermark identifier.

14. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the watermark processing method for a drawing according to any one of claims 1 to 8 and / or the watermark processing method for a drawing according to any one of claims 9 to 11 by executing the computer instructions.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the watermark processing method for a drawing according to any one of claims 1 to 8, and / or to execute the watermark processing method for a drawing according to any one of claims 9 to 11.

16. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the watermark processing method for a drawing according to any one of claims 1 to 8, and / or the watermark processing method for a drawing according to any one of claims 9 to 11.

Citation Information

Patent Citations

  • Document watermark addition method and apparatus

    CN107545157A

  • Dark watermark tracing method and system for paper printed piece, terminal and storage medium

    CN110428356A

  • Document processing method, device, equipment, storage medium and computer program product

    CN112529759A

  • Universal text watermarking method and device

    CN114708133A

  • Information hiding method and device based on Excel file, equipment and storage medium

    CN115048665A