Watermark generation system, method and device
By introducing a configurator, scheduler and execution engine into the watermark generation system, the end-to-end watermark embedding and generation process is realized, and the problem of inefficient watermark generation in the prior art is solved, which significantly improves efficiency and protects the integrity of the original data.
Patent Information
- Application Number
- CN202510161322.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-06-10
AI Technical Summary
In the prior art, the steps are independent of each other during the generation process of watermarks, and manual coordination is required, resulting in an overall inefficiency.
A watermark generation system is proposed, including a configurator, a scheduler and an execution engine. Through the configurator, the data flow direction and watermark mosaic model are flexibly set. The scheduler intelligently preloads the model and assigns tasks. The execution engine generates and embeds watermark data, realizing the end-to-end watermark embedding and generation process.
Through efficient and collaborative configurators, schedulers and execution engines, manual intervention is reduced, the efficiency of watermark generation is significantly improved, adapted to different application scenarios, and effectively protected the integrity of the original data.
Smart Images

Figure CN120124082A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of information security technology, and particularly relates to a watermark generation system, method, and device. Background Art
[0002] In the context of the rapid development of current information technology, data security and privacy protection have become increasingly important. As an effective data protection means, watermark technology has gradually received attention. By embedding hidden information in data content, watermark technology can effectively identify and track the usage of data.
[0003] In related technologies, the process of embedding a watermark into the original data usually includes processes such as watermark generation, embedding, and extraction and verification when needed. However, these steps are independent of each other and require manual coordination, so the overall efficiency is affected. Summary of the Invention
[0004] This application aims to solve at least one of the technical problems existing in the prior art. For this purpose, this application proposes a watermark generation system, method, and device to improve the efficiency of watermark generation.
[0005] In a first aspect, this application provides a watermark generation system, including:
[0006] A configurator, configured to configure the data flow direction according to the source end and target end selected by the user, and configure the watermark embedding model according to the user's selection;
[0007] A scheduler, configured to preload the configured watermark embedding model and allocate the watermark generation task to an executor;
[0008] An execution engine, configured to generate watermark data, collect the original data from the source end, embed the watermark data into the original data using the watermark embedding model to obtain target data, and write the target data to the target end.
[0009] According to the watermark generation system of this application, the configurator flexibly sets the data flow direction and the watermark embedding model according to the user's needs, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating the watermark generation task to the execution engine, reducing task switching and waiting time. The execution engine collects the original data from the source end, embeds the watermark data into the original data, generates the target data, and stores it in the target end. Through the efficient cooperation of the configurator, scheduler, and execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0010] According to an embodiment of the present application, the configurator is further configured to generate a simulation data generator according to the simulation data generation algorithm selected by the user;
[0011] The scheduler is further configured to preload the simulation data generator;
[0012] The execution engine is further configured to generate simulation data by using the simulation data generator, embed the watermark data into the simulation data by using the watermark embedding model, merge the simulation data embedded with the watermark data with the original data to obtain target data, and write the target data to the target end.
[0013] In this embodiment, by generating simulation data using the simulation data generation algorithm selected by the user, embedding the watermark in the simulation data, and then merging the simulation data embedded with the watermark data with the original data, since the watermark embedding process is performed in the simulation data rather than directly on the original data, even if the simulation data changes during the watermark embedding process, it will not affect the original data, effectively protecting the original data from being directly tampered with and improving the integrity of the original data.
[0014] According to an embodiment of the present application, the merging of the simulation data embedded with the watermark data and the original data to obtain target data includes:
[0015] In the case where the simulation data embedded with the watermark data and / or the original data is unstructured data, the simulation data embedded with the watermark data is integrated with the original data to obtain structured target data.
[0016] In this embodiment, by integrating the simulation data embedded with the watermark data and the original data to generate structured target data, the originally difficult-to-analyze and process unstructured or semi-structured data is converted into a format that is convenient for analysis and processing, improving the efficiency of data management.
[0017] According to an embodiment of the present application, the assignment of the watermark generation task to the execution engine includes:
[0018] Determine the target execution engine according to a preset scheduling strategy;
[0019] Assign the watermark generation task to the target execution engine.
[0020] In this embodiment, by determining the target execution engine according to a preset scheduling strategy, the watermark generation task can be assigned to a suitable execution unit, especially when facing large-scale or complex watermark requirements, which can effectively improve the processing efficiency and resource utilization rate.
[0021] According to an embodiment of the present application, allocating the watermark generation task to the execution engine includes:
[0022] Obtaining the current states of multiple execution engines;
[0023] Determining a target execution engine according to the current states;
[0024] Allocating the watermark generation task to the target execution engine.
[0025] In this embodiment, by obtaining the current states of multiple execution engines and determining the target execution engine according to these state information, it helps to achieve load balancing, reduces the situation where some execution engines are overloaded while other execution engines are idle, realizes a more intelligent and dynamic task allocation mechanism, and further improves the efficiency of watermark generation.
[0026] According to an embodiment of the present application, generating the watermark data includes:
[0027] Determining the data types in the source end;
[0028] Generating watermark data according to the data types.
[0029] In this embodiment, by determining the data types in the source end and generating corresponding watermark data according to these data types, the watermark data can be closely related to the characteristics of the original data, reducing the possibility of the watermark being easily detected or destroyed.
[0030] According to an embodiment of the present application, the execution engine is further configured to:
[0031] Obtaining a file to be extracted;
[0032] Converting the file to be extracted into structured data to be extracted;
[0033] Extracting watermark information from the data to be extracted by using a preset watermark extraction algorithm;
[0034] Returning the watermark information to the user interface.
[0035] In this embodiment, by obtaining the file to be extracted and converting it into structured data to be extracted, different formats and types of files can be uniformly processed and converted into structured data that is easy to analyze. Using a preset watermark extraction algorithm to extract the structured data improves the extraction efficiency of the watermark information. Returning the extraction result of the watermark information to the user interface enables the user to obtain key information, thereby enhancing the user experience.
[0036] In a second aspect, the present application provides a watermark generation method, including:
[0037] In response to receiving a watermark generation task sent by a scheduler, obtain a data flow configuration and a user-selected watermark embedding model from a configurator; the data flow configuration is obtained by the configurator according to the source and target ends selected by the user;
[0038] Generate watermark data, collect raw data from the source end, and use the watermark embedding model to embed the watermark data into the raw data to obtain target data;
[0039] Write the target data to the target end.
[0040] According to the watermark generation method of the present application, the configurator can flexibly set the data flow and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating watermark generation tasks to the execution engine, reducing task switching and waiting time. The execution engine collects raw data from the source end, embeds the watermark data into the raw data, generates target data and stores it in the target end. Through the efficient cooperation of the configurator, scheduler and execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0041] According to an embodiment of the present application, the step of using the watermark embedding model to embed the watermark data into the raw data to obtain target data includes:
[0042] Obtain a simulation data generator from the configurator; the simulation data generator is obtained by the configurator according to the simulation data generation algorithm selected by the user;
[0043] Generate simulation data using the simulation data generator;
[0044] Use the watermark embedding model to embed the watermark data into the simulation data;
[0045] Merge the simulation data embedded with the watermark data with the raw data to obtain target data.
[0046] In a third aspect, the present application provides a watermark generation device, including:
[0047] An acquisition module, configured to obtain a data flow configuration and a user-selected watermark embedding model from a configurator in response to receiving a watermark generation task sent by a scheduler; the data flow configuration is obtained by the configurator according to the source and target ends selected by the user;
[0048] An embedding module, configured to generate watermark data, collect raw data from the source end, and use the watermark embedding model to embed the watermark data into the raw data to obtain target data;
[0049] A writing module for writing the target data to the target end.
[0050] According to the watermark generation device of the present application, the configurator flexibly sets the data flow direction and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating watermark generation tasks to the execution engine, reducing task switching and waiting time. The execution engine collects the original data from the source end, embeds the watermark data into the original data, generates the target data and stores it in the target end. Through the efficient cooperation of the configurator, the scheduler and the execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0051] In a fourth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the watermark generation method described in the second aspect above is implemented.
[0052] In a fifth aspect, the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the watermark generation method described in the second aspect above is implemented.
[0053] In a sixth aspect, the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the watermark generation method described in the first aspect above.
[0054] In a seventh aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the watermark generation method described in the second aspect above is implemented.
[0055] One or more of the above technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0056] According to the watermark generation system of the present application, the configurator flexibly sets the data flow direction and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating watermark generation tasks to the execution engine, reducing task switching and waiting time. The execution engine collects the original data from the source end, embeds the watermark data into the original data, generates the target data and stores it in the target end. Through the efficient cooperation of the configurator, the scheduler and the execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0057] Furthermore, in some embodiments, simulation data is generated by using a simulation data generation algorithm selected by the user, and a watermark is embedded in the simulation data. Then, the simulation data with the embedded watermark data is merged with the original data. Since the watermark embedding process is carried out in the simulation data rather than directly on the original data, even if the simulation data changes during the watermark embedding process, it will not affect the original data, effectively protecting the original data from being directly tampered with and improving the integrity of the original data.
[0058] Furthermore, in some embodiments, by integrating the simulation data with the embedded watermark data and the original data, structured target data is generated, converting unstructured or semi-structured data that may be difficult to analyze and process into a format that is convenient for analysis and processing, and improving the efficiency of data management.
[0059] Even further, in some embodiments, by determining the target execution engine according to a preset scheduling strategy, the watermark generation task can be assigned to a suitable execution unit. Especially when facing large-scale or complex watermark requirements, it can effectively improve the processing efficiency and resource utilization rate.
[0060] Even further, in some embodiments, by obtaining the current states of multiple execution engines and determining the target execution engine based on this state information, it helps to achieve load balancing, reduces the situation where some execution engines are overloaded while others are idle, realizes a more intelligent and dynamic task allocation mechanism, and further improves the efficiency of watermark generation.
[0061] Even further, in some embodiments, by determining the data types in the source end and generating corresponding watermark data according to these data types, the watermark data can be closely related to the characteristics of the original data, reducing the possibility of the watermark being easily detected or destroyed.
[0062] Even further, in some embodiments, by obtaining the file to be extracted and converting it into structured data to be extracted, different formats and types of files can be uniformly processed and converted into structured data that is easy to analyze. The preset watermark extraction algorithm is used to extract the structured data, improving the extraction efficiency of watermark information. The extraction result of the watermark information is returned to the user interface, enabling the user to obtain key information, thereby enhancing the user experience.
[0063] Further, in some embodiments, the configurator flexibly sets the data flow direction and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating watermark generation tasks to the execution engine, reducing task switching and waiting time. The execution engine collects raw data from the source end, embeds the watermark data into the raw data, generates the target data, and stores it at the target end. Through the efficient cooperation of the configurator, the scheduler, and the execution engine, the end-to-end watermark embedding and generation process is achieved, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0064] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood in the description of the embodiments in conjunction with the following drawings, in which:
[0066] Figure 1 is a schematic structural diagram of a watermark generation system provided by an embodiment of the present application;
[0067] Figure 2 is an example of the processing process of an execution engine provided by an embodiment of the present application;
[0068] Figure 3 is an example of a process for watermark embedding using simulation data provided by an embodiment of the present application;
[0069] Figure 4 is an example of a process for watermark information extraction provided by an embodiment of the present application;
[0070] Figure 5 is a schematic flowchart of a watermark generation method provided by an embodiment of the present application;
[0071] Figure 6 is a schematic structural diagram of a watermark generation device provided by an embodiment of the present application;
[0072] Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0073] The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope of protection of the present application.
[0074] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0075] The following will, with reference to the accompanying drawings, through specific embodiments and their application scenarios, provide a detailed description of the watermark generation system, method and device provided by the embodiments of this application.
[0076] As Figure 1 shown, the watermark generation system provided by the embodiments of this application includes a configurator, a scheduler, and an execution engine. Among them, the configurator is used to configure the data flow according to the source end and the target end selected by the user, and configure the watermark embedding model according to the user's selection; the scheduler is used to preload the configured watermark embedding model and allocate the watermark generation task to the executor; the execution engine is used to generate watermark data, collect the original data from the source end, embed the watermark data into the original data using the watermark embedding model to obtain the target data, and write the target data to the target end.
[0077] In the embodiments of this application, the source end can be the source of the original data, and the source end can include any data source, such as a file system, a database, a network stream, etc. The target end can be the storage location after watermark embedding of the original data, and the source end can be another file system, database or network storage service, etc. The user can select the source end in the user interface according to information such as the data type and location to be processed, so as to inform the configurator of the source of the original data. The user can also select the target end in the user interface according to requirements such as the security, privacy, and data transmission rate of the data during transmission and storage, so as to inform the configurator of the storage requirements after watermark embedding of the original data. After receiving the source end and the target end selected by the user, the configurator can configure the data flow according to the source end and the target end selected by the user.
[0078] The watermark embedding model is a mathematical model for digital watermarking technology. The watermark embedding model can embed watermark information into digital media (such as images, audio or video). The purpose of the watermark is to secretly implant information without significantly affecting the quality of the original data, and the information can be extracted and verified in subsequent use.
[0079] In the embodiments of the present application, the user can input the requirement information of the watermark in the user interface. For example, the requirement information may include the purpose of configuring the watermark, such as copyright protection, data integrity verification, identity privacy protection, etc.; the requirement information may include the media type for configuring the watermark, such as images, audio, video; the requirement information may also include the type of the configured watermark, such as visible watermark, invisible watermark, such as spatial domain watermark, frequency domain watermark, chaotic watermark, content-based watermark, adaptive watermark, etc.; the requirement information may further include other information, such as the strength of the watermark, the position of the watermark, the watermark embedding algorithm used, and other information.
[0080] In some embodiments, components such as input text boxes and drop-down boxes for requirement information can be set on the user interface for the user to input or select the requirement information of the watermark. According to the selected requirement information of the user, the watermark embedding model can be configured.
[0081] In the embodiments of the present application, the scheduler is responsible for managing the execution process of the watermark generation task. The scheduler can pre-load the watermark embedding model according to the configuration information provided by the configurator. For example, the watermark embedding model and its parameters can be loaded into the memory to reduce the processing delay.
[0082] The scheduler can also assign the watermark generation task to the execution engine. For example, when receiving the watermark generation task, the scheduler can put the watermark generation task into a task queue, and sequentially extract the watermark generation tasks according to the order of the watermark generation tasks in the task queue, and assign them to the available execution engines.
[0083] In the embodiments of the present application, the execution engine can be a processing unit responsible for performing the specific operations of watermark generation and embedding according to the tasks assigned by the scheduler. The execution engine can be a software module including a series of specific executors abstracted by the engine, such as a watermark generator, a watermark embedder, etc. The execution engine can generate watermark data through a watermark generation algorithm. The watermark data can be text, image, audio segment or other forms, etc. Of course, the execution engine can also generate watermark data according to the watermark requirements input by the user in the user interface, such as the watermark content, watermark format, etc.
[0084] In an embodiment of the present application, according to the data flow configuration of the configurator, the execution engine can obtain the positions of the source end and the target end. For example, these positions can be paths of the local file system or URLs (Uniform Resource Locators) of cloud storage, etc. According to the position of the source end, the execution engine can obtain the original data from the source end through methods such as database extraction and API (Application Programming Interface) interfaces, and then embed the watermark data into the original data using a watermark embedding model to obtain the target data. Determine the save path of the target end according to the data flow configuration, and use the corresponding file operation functions or APIs to write the target data to the target end.
[0085] In one example, the processing process of the execution engine is as Figure 2 shown. The execution engine can collect the original data from the source end, such as a database, a message queue, or a file system, etc. For example, the execution engine can import the real-time data or batch data of the source end into the processing framework through a data extraction tool.
[0086] In this example, after the original data enters the processing framework, watermark data can be generated, and the original data is combined with the watermark to form structured data. For example, unstructured or semi-structured data can be converted into a format convenient for analysis and processing, such as JSON, a table, or other structured formats.
[0087] After generating the structured data, in order to improve the quality and consistency of the data, operations such as data verification and cleaning can be performed on the data to reduce duplicate items, null values, error data, etc. in the data, so that the output data meets the expected standards. Finally, the processed structured data is written to the target end, which can be a relational database, a NoSQL database, a data warehouse, or a distributed file system, etc. The structured data can be written to the target end in a suitable manner according to the type of the target end. For example, if the target end is a database, SQL statements or object-relational mapping tools can be used; for a file system, file I / O operations can be used. In order to make the data stored in the target end achieve persistent storage, operations such as backing up the stored data and setting a recovery strategy can be performed.
[0088] According to the watermark generation system of the present application, the configurator flexibly sets the data flow direction and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating watermark generation tasks to the execution engine, reducing task switching and waiting times. The execution engine collects the original data from the source end, embeds the watermark data into the original data, generates the target data and stores it at the target end. Through the efficient cooperation of the configurator, the scheduler and the execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0089] In some embodiments, the configurator is further configured to configure the simulation data generator according to the simulation data generation algorithm selected by the user;
[0090] The scheduler is further configured to preload the simulation data generator;
[0091] The execution engine is further configured to generate simulation data using the simulation data generator, embed the watermark data into the simulation data using the watermark embedding model, merge the simulation data with the embedded watermark data and the original data to obtain the target data, and write the target data to the target end.
[0092] In this embodiment, the simulation data refers to data that simulates real-world data generated by a computer program or algorithm. The simulation data generation algorithm is a specific method or step for generating simulation data, and the simulation data generation algorithm can generate data based on different mathematical models or statistical distributions. In this embodiment, the simulation data generation algorithms used may include random number generation algorithms, time series simulation algorithms, Monte Carlo simulation algorithms, model-based generation algorithms, etc.
[0093] In this embodiment, the user can select the required simulation data generation algorithm through the user interface. For example, multiple options of simulation data generation algorithms can be provided in the user interface, and the user can select any simulation data generation algorithm from the options. Of course, the user can further configure the parameters of the simulation data generation algorithm, such as the number of generated data, data length, data type, data format, etc. The configurator can configure the simulation data generator according to the simulation data generation algorithm selected by the user.
[0094] In this embodiment, the scheduler can also preload the simulation data generator, such as loading the simulation data generation algorithm, loading the watermark embedding model and its parameters into the memory to reduce processing latency.
[0095] In this embodiment, the execution engine can use a simulation data generator to generate simulation data, use a watermark embedding model to embed watermark data into the simulation data, and merge the simulation data with embedded watermark data and the original data to obtain target data. Specifically, after embedding the watermark data into the simulation data, the common attributes or key values of the simulation data and the original data can be analyzed, including field names, data types, etc., to ensure the consistency of the data after merging. For example, if the simulation data has a certain specific field, the original data should also have the corresponding field. If the field names or formats of the simulation data and the original data are inconsistent, conversion and standardization can be performed to enable the smooth merging of the simulation data and the original data.
[0096] Furthermore, a suitable merging strategy can be adopted to merge the simulation data and the original data. For example, a horizontal merging method can be used to merge the simulation data and the original data row by row. At this time, the original data and the simulation data form a larger data set under the same fields. For example, the common data rows of the simulation data and the original data can be spliced. After the merging is completed to obtain the target data, the target data can be written to the target end.
[0097] In one example, the process of embedding watermarks using simulation data is as Figure 3 shown. In this example, the configurator can configure the data flow, the watermark embedding model, and the simulation data generator. The simulation data generator can use any mock data generator. After the configurator completes the configuration, the scheduler will add a new schedule. For example, according to the preset scheduling strategy, relevant node resources, etc., the watermark embedding model and the mock data generator can be pre-loaded and an execution engine can be allocated. The execution engine can call the mock data generator to generate simulation data, call the watermark embedding model to embed the watermark data into the simulation data, merge the simulation data with the original data to obtain the target data, and write the target data to the target end.
[0098] In this embodiment, by using the simulation data generation algorithm selected by the user to generate simulation data, embedding the watermark in the simulation data, and then merging the simulation data with embedded watermark data and the original data, since the watermark embedding process is performed in the simulation data rather than directly on the original data, even if the simulation data changes during the watermark embedding process, it will not affect the original data, effectively protecting the original data from being directly tampered with and improving the integrity of the original data.
[0099] In some embodiments, merging the simulation data with embedded watermark data and the original data to obtain target data includes:
[0100] In the case where the simulated data embedded with watermark data and / or the original data is unstructured data, the simulated data embedded with watermark data is integrated with the original data to obtain structured target data.
[0101] In this embodiment, unstructured data often contains a large amount of redundant, inaccurate, or irrelevant information. To facilitate subsequent data analysis and processing, in the case where the simulated data embedded with watermark data and the original data include unstructured data, the unstructured data can be converted into unified structured data and then merged to obtain structured target data.
[0102] In this embodiment, by integrating the simulated data embedded with watermark data and the original data to generate structured target data, the originally unstructured or semi-structured data that may be difficult to analyze and process is converted into a format that is convenient for analysis and processing, improving the efficiency of data management.
[0103] In some embodiments, allocating the watermark generation task to the execution engine includes:
[0104] Determining a target execution engine according to a preset scheduling policy;
[0105] Allocating the watermark generation task to the target execution engine.
[0106] In this embodiment, the scheduling policy can be to evaluate the availability and load of the execution engine, and select the most suitable target execution engine for processing the current watermark generation task according to the availability and load of the execution engine. If the execution engines are distributed, the scheduling policy can include selecting the execution engine closest to the source or target end to reduce the latency and cost of data transmission. Since different execution engines may have different optimizations for different types of watermark generation tasks, the most suitable execution engine can be selected according to the characteristics of the watermark generation task (such as data type, complexity, etc.). Of course, the scheduling policy can also include other policies, which are not limited in the embodiments of the present application.
[0107] In this embodiment, by determining the target execution engine according to the preset scheduling policy, the watermark generation task can be assigned to a suitable execution unit, especially when facing large-scale or complex watermark requirements, the processing efficiency and resource utilization rate can be effectively improved.
[0108] In some embodiments, allocating the watermark generation task to the execution engine includes:
[0109] Obtaining the current states of multiple execution engines;
[0110] Determining a target execution engine according to the current states;
[0111] Allocating the watermark generation task to the target execution engine.
[0112] In this embodiment, the current state of the execution engine may include the health status of the execution engine, resource usage, task load, network connection quality, etc. After collecting the status information of the execution engine, an execution engine with a lower load can be selected, an execution engine with high availability can be selected, etc.
[0113] In this embodiment, by obtaining the current states of multiple execution engines and determining the target execution engine based on this status information, it helps to achieve load balancing, reduces the situation where some execution engines are overloaded while others are idle, realizes a more intelligent and dynamic task allocation mechanism, and further improves the efficiency of watermark generation.
[0114] In some embodiments, generating watermark data includes:
[0115] Determine the data type in the source end;
[0116] Generate watermark data according to the data type.
[0117] In this embodiment, before generating watermark data, it is first necessary to determine the data type in the source end. The data type may include images, text, audio, video, etc.
[0118] In this embodiment, watermark data can be generated according to the data type in the source end. Specifically, different watermark data can be generated according to different data types. For example, for text data, a specific piece of text or serial number can be generated, and for image data, an image containing a specific pattern or logo can be created.
[0119] In this embodiment, by determining the data type in the source end and generating corresponding watermark data according to these data types, the watermark data can be closely related to the characteristics of the original data, reducing the possibility of the watermark being easily detected or destroyed.
[0120] In some embodiments, the execution engine is also used for:
[0121] Obtain the file to be extracted;
[0122] Convert the file to be extracted into structured data to be extracted;
[0123] Extract watermark information from the data to be extracted using a preset watermark extraction algorithm;
[0124] Return the watermark information to the user interface.
[0125] In this embodiment, the file to be extracted can be a file uploaded by the user in the user interface or a file sent from other clients. After obtaining the file to be extracted, the content of the file to be extracted can be converted into formatted data to facilitate the extraction of watermark information.
[0126] In this embodiment, an appropriate watermark extraction algorithm can be selected according to the file type of the file to be extracted, the technology of watermark embedding, etc. For example, for a watermark based on DCT (Discrete Cosine Transform), the DCT transform is used to extract the watermark.
[0127] In this embodiment, the preset watermark extraction algorithm is configured with parameters required by the algorithm, such as keys, thresholds, or specific algorithm parameters, etc. Through the watermark extraction algorithm, watermark information can be extracted from the data to be extracted. After extracting the watermark information, the watermark information can be formatted into a user-readable form. For example, the binary watermark information is converted into text or an image, and the watermark information is displayed on the user interface.
[0128] In one example, the process of watermark information extraction is as Figure 4 shown. In this example, the user can upload the file to be extracted in the user interface. After obtaining the file to be extracted uploaded by the user, a watermark extraction algorithm can be used to extract the watermark from the file to be extracted. In the case where no watermark is recognized, a reminder message is shown to the user; in the case where a watermark is recognized, the watermark is shown to the user.
[0129] In this embodiment, by obtaining the file to be extracted and converting it into structured data to be extracted, files of different formats and types can be uniformly processed and converted into structured data that is easy to analyze. A preset watermark extraction algorithm is used to extract the structured data, which improves the extraction efficiency of watermark information. The extraction result of the watermark information is returned to the user interface, enabling the user to obtain key information, thereby enhancing the user experience.
[0130] Next, the watermark generation method of the embodiments of the present application is introduced. Among them, the watermark generation method can be applied to a terminal, and specifically can be executed by hardware or software in the terminal.
[0131] The terminal includes, but is not limited to, portable communication devices such as mobile phones or tablets with a touch-sensitive surface (for example, a touch screen display and / or a touchpad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (for example, a touch screen display and / or a touchpad).
[0132] In each of the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.
[0133] The watermark generation method provided by the embodiments of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the watermark generation method. The electronic devices mentioned in the embodiments of the present application include, but are not limited to, mobile phones, tablet computers, computers, cameras, and wearable devices, etc. Hereinafter, the watermark generation method provided by the embodiments of the present application will be described by taking an electronic device as the execution subject.
[0134] As Figure 5 shown, the watermark generation method includes: step 510, step 520, and step 530.
[0135] Step 510: In response to receiving a watermark generation task sent by a scheduler, obtain a data flow configuration and a user-selected watermark embedding model from a configurator; the data flow configuration is obtained by the configurator according to the source and target ends selected by the user.
[0136] Step 520: Generate watermark data, collect original data from the source end, and use the watermark embedding model to embed the watermark data into the original data to obtain target data.
[0137] Step 530: Write the target data to the target end.
[0138] According to the watermark generation method of the present application, the configurator flexibly sets the data flow and the watermark embedding model according to user requirements, enabling the watermark generation system to adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating the watermark generation task to the execution engine, reducing task switching and waiting time. The execution engine collects original data from the source end, embeds the watermark data into the original data, generates target data, and stores it in the target end. Through the efficient cooperation of the configurator, the scheduler, and the execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0139] In some embodiments, using the watermark embedding model to embed the watermark data into the original data to obtain target data includes:
[0140] Obtain a simulation data generator from the configurator; the simulation data generator is obtained by the configurator according to the simulation data generation algorithm selected by the user.
[0141] Generate simulation data using the simulation data generator.
[0142] Embed the watermark data into the simulation data using the watermark embedding model;
[0143] Merge the simulation data embedded with the watermark data with the original data to obtain the target data.
[0144] In the embodiment of the present application, the execution subject of the watermark generation method can be a watermark generation device. In the embodiment of the present application, taking the watermark generation device executing the watermark generation method as an example, the watermark generation device provided by the embodiment of the present application is described.
[0145] The embodiment of the present application also provides a watermark generation device.
[0146] As Figure 6 shown, the watermark generation device includes:
[0147] An acquisition module 610, configured to obtain the data flow configuration and the user-selected watermark embedding model from the configurator in response to receiving a watermark generation task sent by the scheduler; the data flow configuration is obtained by the configurator according to the source and target ends selected by the user;
[0148] An embedding module 620, configured to generate watermark data, collect the original data from the source end, and embed the watermark data into the original data using the watermark embedding model to obtain the target data;
[0149] A writing module 630, configured to write the target data to the target end.
[0150] According to the watermark generation device of the present application, the configurator flexibly sets the data flow and the watermark embedding model according to the user's needs, so that the watermark generation system can adapt to different application scenarios. The scheduler is responsible for intelligently preloading the required watermark embedding model and efficiently allocating the watermark generation task to the execution engine, reducing the task switching and waiting time. The execution engine collects the original data from the source end, embeds the watermark data into the original data, generates the target data and stores it in the target end. Through the efficient cooperation of the configurator, the scheduler and the execution engine, the end-to-end watermark embedding and generation process is realized, reducing manual intervention and significantly improving the efficiency of watermark generation.
[0151] In some embodiments, the embedding module 620 is further configured to:
[0152] Obtain a simulation data generator from the configurator; the simulation data generator is obtained by the configurator according to the simulation data generation algorithm selected by the user;
[0153] Generate simulation data using the simulation data generator;
[0154] Embed the watermark data into the simulation data using the watermark embedding model;
[0155] Merge the simulated data embedded with watermark data and the original data to obtain target data.
[0156] The watermark generation device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0157] The watermark generation device in the embodiments of the present application may be a device with an operating system. The operating system may be a Microsoft (Windows) operating system, an Android operating system, an IOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0158] In some embodiments, as Figure 7 shown, the embodiments of the present application further provide an electronic device 700, including a processor 701, a memory 702, and a computer program stored on the memory 702 and executable on the processor 701. When the program is executed by the processor 701, it implements each process of the above-mentioned watermark generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0159] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0160] The embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-mentioned watermark generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0161] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disc, etc.
[0162] An embodiment of the present application further provides a computer program product, including a computer program, which implements the above-mentioned watermark generation method when executed by a processor.
[0163] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disc, etc.
[0164] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned watermark generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0165] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0166] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0167] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0168] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
[0169] In the description of this specification, the description of reference terms such as "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0170] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and purposes of the present application. The scope of the present application is defined by the claims and their equivalents.
Claims
1. A watermark generation system, characterized in that: include: A configurator, used to configure the data flow according to the source and target ends selected by the user, and to configure the watermark mosaic model according to the user's selection; A scheduler, used to preload the configured watermark mosaic model and assign watermark generation tasks to executors; The execution engine is used to generate watermark data, collect original data from the source end, use the watermark mosaic model to mosaic the watermark data into the original data, obtain target data, and write the target data to the target end.
2. The system according to claim 1, characterized in that The configurator is also used to configure the simulation data generator according to the simulation data generation algorithm selected by the user; The scheduler is also used to preload the simulation data generator; The execution engine is also used to generate simulation data using the simulation data generator, embed the watermark data into the simulation data using the watermark embedding model, merge the simulation data embedded with the watermark data with the original data to obtain target data, and write the target data to the target end.
3. The system according to claim 2, characterized in that The step of merging the simulated data inlaid with the watermark data with the original data to obtain the target data comprises: In the case that the simulated data inlaid with the watermark data and / or the original data are unstructured data, the simulated data inlaid with the watermark data are integrated with the original data to obtain structured target data.
4. The system according to claim 1, characterized in that The allocating the watermark generation task to the execution engine includes: Determine the target execution engine according to the preset scheduling strategy; The watermark generation task is assigned to the target execution engine.
5. The system according to claim 1, characterized in that The allocating the watermark generation task to the execution engine includes: Get the current status of multiple execution engines; Determine a target execution engine according to the current state; The watermark generation task is assigned to the target execution engine.
6. The system according to claim 1, characterized in that The generating of watermark data comprises: Determine the data type in the source end; Watermark data is generated according to the data type.
7. The system according to claim 1, characterized in that The execution engine is also used to: Get the file to be extracted; Convert the to-be-extracted file into structured to-be-extracted data; Extracting watermark information from the data to be extracted using a preset watermark extraction algorithm; The watermark information is returned to the user interface.
8. A watermark generation method, characterized in that: include: In response to receiving the watermark generation task sent by the scheduler, obtaining the data flow configuration and the watermark mosaic model selected by the user from the configurator; The data flow direction configuration is obtained by the configurator according to the source end and the target end configuration selected by the user; Generate watermark data, collect original data from the source end, and use the watermark mosaic model to mosaic the watermark data into the original data to obtain target data; The target data is written to the target end.
9. The method according to claim 8, characterized in that The step of using the watermark mosaic model to mosaic the watermark data into the original data to obtain target data includes: Acquire a simulation data generator from the configurator; the simulation data generator is configured by the configurator according to a simulation data generation algorithm selected by a user; Using the simulation data generator to generate simulation data; Using the watermark mosaic model to mosaic the watermark data into the simulation data; The simulated data inlaid with the watermark data is merged with the original data to obtain the target data.
10. A watermark generating device, characterized in that: include: An acquisition module, configured to acquire the data flow configuration and the watermark mosaic model selected by the user from the configurator in response to receiving the watermark generation task sent by the scheduler; The data flow direction configuration is obtained by the configurator according to the source end and the target end configuration selected by the user; A mosaic module, used for generating watermark data, collecting original data from the source end, and mosaicking the watermark data into the original data using the watermark mosaic model to obtain target data; A writing module is used to write the target data to the target end.