WO2020238673A1 - Watermark detection model generation and watermark detection method, apparatus and device - Google Patents

Watermark detection model generation and watermark detection method, apparatus and device Download PDF

Info

Publication number
WO2020238673A1
WO2020238673A1 PCT/CN2020/090797 CN2020090797W WO2020238673A1 WO 2020238673 A1 WO2020238673 A1 WO 2020238673A1 CN 2020090797 W CN2020090797 W CN 2020090797W WO 2020238673 A1 WO2020238673 A1 WO 2020238673A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
carrier object
watermark detection
detected
information
Prior art date
Application number
PCT/CN2020/090797
Other languages
French (fr)
Chinese (zh)
Inventor
邓磊
刘波
刘绍辉
刘永亮
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020238673A1 publication Critical patent/WO2020238673A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/005Robust watermarking, e.g. average attack or collusion attack resistant
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Definitions

  • This application relates to the field of computer technology, and specifically relates to a method, device, electronic device, and storage device of a watermark detection model. This application also relates to a method, device, electronic device, and storage device of a watermark detection model.
  • the images contain rich and intuitive information.
  • image users will obtain a large number of images through various channels every day. In this case, manual review cannot meet the demand.
  • the prior art has the problems of greater difficulty and complexity in detecting watermarks.
  • This application provides a method, device, electronic device, and storage device for generating a watermark detection model to solve the existing problems of greater difficulty and complexity in detecting watermarks.
  • This application provides a method for generating a watermark detection model, including:
  • the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object
  • the watermark template is a template used when adding watermark information to the carrier object
  • each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  • the obtaining a watermark data set includes:
  • each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
  • Optional also includes:
  • the label information includes at least one of the following:
  • Type information of the watermark in the carrier object
  • the name information of the watermark in the carrier object is the name information of the watermark in the carrier object.
  • the generating multiple watermark detection branch modules according to the multiple watermark data sets includes:
  • the number of watermark detection branches is equal to the number of watermark data sets; one watermark data set is used to generate a watermark detection branch module.
  • This application also provides a watermark detection method, including:
  • the carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  • the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
  • a final watermark detection result for the carrier object to be detected is obtained.
  • it also includes: obtaining the confidence of the preliminary detection result for each watermark;
  • the obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
  • a final detection result of the watermark for the carrier object to be detected is determined.
  • the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
  • the preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
  • inputting the carrier object to be detected into a watermark detection model to obtain multiple preliminary watermark detection results for the carrier object to be detected includes:
  • the recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
  • the preliminary detection result of the watermark includes at least one of the following information:
  • This application also provides a watermark detection method, including:
  • the size relationship information is used to indicate the relationship between the size information of the watermark template and the size information of the carrier object.
  • the template used when the carrier object adds watermark information;
  • a watermark detection result for the carrier object to be detected is obtained.
  • This application also provides a device for generating a watermark detection model, including:
  • the watermark data set obtaining unit is used to obtain multiple watermark data sets; wherein the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the size of the watermark template
  • the relationship between information and size information of the carrier object, the watermark template is a template used when adding watermark information to the carrier object;
  • the watermark detection branch generating unit is used to generate multiple watermark detection branch modules according to the multiple watermark data sets; each watermark detection branch module is used to obtain the target carrier object based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark;
  • the watermark detection model generation unit is configured to generate a watermark detection model according to the multiple watermark detection branch modules; the watermark detection model is used to obtain the final watermark for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules Test results.
  • This application also provides an electronic device, including:
  • the memory is used to store the program of the method for generating the watermark detection model. After the device is powered on and runs the program of the method for generating the watermark detection model through the processor, the following steps are executed:
  • the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object
  • the watermark template is a template used when adding watermark information to the carrier object
  • each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  • This application also provides a storage device that stores a program of a method for generating a watermark detection model.
  • the program is run by a processor to perform the following steps:
  • the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object
  • the watermark template is a template used when adding watermark information to the carrier object
  • each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  • This application additionally provides a watermark detection device, including:
  • the watermark detection result obtaining unit is configured to input the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to embed the watermark according to the carrier object to be detected The intensity information and the size relationship information obtain a watermark detection result for the carrier object to be detected.
  • This application additionally provides an electronic device, including:
  • the memory is used to store the program of the watermark detection method. After the device is powered on and runs the program of the watermark detection method through the processor, the following steps are executed:
  • the carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  • This application additionally provides a storage device that stores a program of the watermark detection method, and the program is run by a processor to perform the following steps:
  • the carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  • This application provides a method for generating a watermark detection model.
  • the first embodiment of this application trains multiple branches under different watermark embedding strength information and different size relationship information, and constructs watermark detection based on the multiple branches trained Model, using the above-mentioned watermark detection model can effectively complete the detection task of visible watermarks under different watermark embedding strengths and different size relationships, and solve the existing problems of greater difficulty and complexity in detecting watermarks.
  • Figure 1 is a schematic diagram of a first application scenario embodiment provided by this application.
  • Figure 2 is a schematic diagram of a second application scenario embodiment provided by this application.
  • Fig. 3 is a flowchart of a method for generating a watermark detection model provided by the first embodiment of the present application
  • Fig. 4 is a flowchart of obtaining a watermark data set provided by the first embodiment of the present application
  • FIG. 5 is a schematic diagram of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of the present application
  • Fig. 6 is a flow chart of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of the present application
  • Fig. 7 is a schematic diagram of a watermark detection model provided by the first embodiment of the present application.
  • Fig. 8 is a flowchart of a watermark detection method provided by the second embodiment of the present application.
  • FIG. 9 is a flowchart of obtaining preliminary detection results of multiple watermarks for the carrier object to be detected according to the second embodiment of the present application.
  • FIG. 10 is a flowchart of a watermark detection method provided by the third embodiment of this application.
  • FIG. 11 is a schematic diagram of a device for generating a watermark detection model provided by the fourth embodiment of the present application.
  • FIG. 12 is a schematic diagram of an electronic device provided by a fifth embodiment of the present application.
  • FIG. 13 is a schematic diagram of a watermark detection device provided by a seventh embodiment of the present application.
  • FIG. 14 is a schematic diagram of an electronic device provided by an eighth embodiment of the present application.
  • FIG. 1 is a schematic diagram of an embodiment of the first application scenario provided in this application.
  • the client first establishes a connection with the server. After the connection, the client sends the image to be detected to the server.
  • the server receives the image to be detected and performs watermark detection on the image to be detected, and obtains the watermark detection result of the image to be detected, and the watermark detection result of the image to be detected Send to the client, and the client receives the watermark detection result of the image to be detected.
  • FIG. 2 is a schematic diagram of the second application scenario embodiment provided in this application.
  • the client After the client obtains the image to be detected, it detects the image to be detected, obtains the watermark detection result of the image to be detected, and then outputs the watermark detection result of the image to be detected.
  • FIG. 2 is a schematic diagram of the second application scenario embodiment provided in this application.
  • the first embodiment of the present application provides a method for generating a watermark detection model, which is described below with reference to FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
  • step S101 multiple watermark data sets are obtained; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the watermark The relationship between the size information of the template and the size information of the carrier object.
  • the watermark template is a template used when the watermark information is embedded in the carrier object.
  • the watermark embedding strength may refer to the watermark embedding strength factor. The stronger the watermark embedding strength, the better the robustness of the watermark.
  • the size relationship may refer to the scale ratio of the watermark template to the carrier object, that is, the ratio of the width and height of the watermark template rectangle to the width and height of the carrier object.
  • Fig. 4 is a flow chart for obtaining a watermark data set according to the first embodiment of this application, which specifically includes steps S101-1 to S101-3.
  • step S101-1 a carrier object set is obtained; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has Different watermark embeds strength information and different size relationship information.
  • Each carrier object set can refer to a collection of multiple carrier objects embedded with watermarks.
  • Obtaining a carrier object set may refer to obtaining multiple carrier object sets, each carrier object in each carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in different carrier object sets has different watermarks Embedded strength information and different size relationship information.
  • n groups of visible watermark picture sets are obtained, which are respectively numbered 1, 2, 3...n.
  • the watermark embedding positions in the above n groups of visible watermark picture sets are random, and the position information of the watermark added is recorded during the process of embedding the watermark template.
  • step S101-2 the label information of the carrier object set is obtained.
  • the label information includes at least one of the following: category information of the watermark in the carrier object; position information of the watermark embedded in the carrier object; and name information of the watermark in the carrier object.
  • step S101-3 a plurality of watermark data sets are generated according to the carrier object set and the label information.
  • the label information may be saved in a text file; and then the text file is converted into a non-text file in a predetermined format.
  • the non-text file in the predetermined format may be an XML file.
  • step S102 based on the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain information based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark for the carrier object.
  • the specified watermark embedding strength refers to the watermark embedding strength of the watermark data set corresponding to the watermark detection branch module.
  • the specified size relationship refers to the size relationship of the watermark data set corresponding to the watermark detection branch module.
  • the preliminary watermark detection result refers to a preliminary watermark detection result obtained by a watermark detection branch module.
  • Each watermark detection branch module obtains a preliminary watermark detection result, and then obtains a final watermark detection result according to the preliminary watermark detection result.
  • the number of the watermark detection branches may be equal to the number of the watermark data sets; one watermark data set is used to generate a watermark detection branch module. For example, as shown in Fig. 5, according to n watermark data sets, n watermark detection branch modules are generated.
  • Faster R-CNN is a target detection network based on deep learning.
  • FIG. 6 provides a flow chart of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of this application, which specifically includes steps S102-1 to S102-4.
  • step S102-1 the carrier object in the watermark data set is input to the convolutional layer in the neural network model, and the feature map of the carrier object is extracted.
  • the neural network model is Faster R-CNN
  • the watermark data set includes watermark data sets from 1 to n.
  • the pictures (carrier objects) with visible watermarks in the watermark data set are input to the convolutional layer Conv layers( For example, select VGG16 convolutional network) to extract feature maps (feature maps) of pictures with visible watermarks.
  • step S102-2 the feature map of the carrier object is input into the candidate area network in the neural network model to generate a recommended area containing a watermark.
  • the above feature map with visible watermark pictures is input into the candidate regional network RPN (Region Proposals Networks) layer to generate anchors (the target detection algorithm Faster R-CNN based on deep learning is used in each pixel of the image
  • RPN Registered Proposals Networks
  • the RPN layer uses softmax to determine whether the anchors belong to the foreground (anchor containing the watermark) or the background (anchor not containing the watermark), and then use the bounding box regression to correct the anchors to obtain an accurate recommended area containing the watermark.
  • step S102-3 the feature map of the carrier object and the recommended region are input into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region.
  • the feature map of the picture with visible watermark generated by the convolutional layer and the recommended area containing the watermark generated by the candidate area network layer are input to the RoI Pooling (region of interest pooling layer) layer, the region of interest The pooling layer extracts recommended feature maps (proposal feature maps).
  • step S102-4 the recommended area feature map is input to the classifier to obtain the test value of the watermark category in the carrier object.
  • step S102-5 the neural network model is trained according to the test value and the label information to generate a watermark detection branch module.
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules The final result of watermark detection.
  • FIG. 7 it is a schematic diagram of a watermark detection model.
  • the first embodiment of this application trains multiple branches under different watermark embedding strength information and different size relationship information, and constructs a watermark detection model based on the multiple branches trained.
  • the above watermark detection model can effectively detect different The detection task of visible watermarks under the relationship between the watermark embedding strength and different sizes solves the existing problems of difficulty and complexity in detecting watermarks.
  • the second embodiment of the present application provides a watermark detection method, which is described below with reference to FIG. 8 and FIG. 9.
  • step S601 a carrier object to be detected is obtained.
  • the carrier object to be detected may refer to any image.
  • the carrier object to be detected is an image embedded with a visible watermark.
  • step S602 the carrier object to be detected is input into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to The watermark embedding strength information and the size relationship information of to obtain the watermark detection result for the carrier object to be detected.
  • the watermark embedding strength may refer to the watermark embedding strength factor. The stronger the watermark embedding strength, the better the robustness of the watermark.
  • the size relationship may refer to the scale ratio between the watermark template and the carrier object, that is, the ratio of the width and height of the watermark template rectangle to the width and height of the carrier object to be detected.
  • the watermark template is the template used when adding watermark information to the carrier object to be detected.
  • the watermark detection result includes: the category information of the watermark in the carrier object to be detected; the position information of the watermark in the carrier object to be detected, the picture name of the watermark in the carrier object to be detected, etc.
  • the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
  • a final watermark detection result for the carrier object to be detected is obtained.
  • the watermark detection model consists of multiple watermark detection branch modules.
  • Each watermark detection branch module can obtain a preliminary watermark detection result for the carrier object to be detected. According to the preliminary detection results of multiple watermarks, the The final detection result of the watermark of the carrier object.
  • FIG. 9 is a flow chart for inputting a carrier object to be detected into a watermark detection model to obtain a plurality of preliminary watermark detection results for the carrier object to be detected, which specifically includes steps S502-1 to S502-4.
  • step S502-1 the carrier object to be detected is input to the convolutional layer of the watermark detection model, and the feature map of the carrier object to be detected is extracted.
  • step S502-2 the feature map of the carrier object to be detected is input into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark.
  • step S502-3 the feature map of the carrier object to be detected and the recommended region are input into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region.
  • step S502-4 the recommended area feature map is input to the classifier to obtain preliminary detection results of watermarks in a plurality of carrier objects to be detected.
  • the second embodiment of the present application may further include: obtaining the confidence of the preliminary detection result for each watermark.
  • the obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
  • a final detection result of the watermark for the carrier object to be detected is determined.
  • the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
  • the preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
  • the input picture (that is, the carrier object to be detected) is input into the multi-branch watermark detection model, and each branch will get their respective preliminary detection results: the position coordinates of the detection frame of the visible watermark and the detection
  • the confidence score of the result (n branches get their respective confidence score1, score2, score3,...scoren-1 and scoren).
  • the multi-branch self-watermark detection model will be based on the confidence (score) of the detection results of these n branches as The decision criterion is to select the branch with the maximum score as the final detection result, and output the position coordinates, category, picture name, and confidence of the visible watermark detection frame. If no visible watermark is detected in all branches, the multi-branch watermark detection model will set the position of the visible watermark detection frame of the detected picture to [0,0,0,0], the confidence level to 0 and the picture name.
  • the third embodiment of the present application provides a watermark detection method, which is described below with reference to FIG. 10.
  • step 801 a carrier object to be detected is obtained.
  • step 802 the watermark embedding strength information and size relationship information of the carrier object to be detected are obtained.
  • the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object. Relationship, the watermark template is a template used when adding watermark information to the carrier object.
  • step 803 a watermark detection result for the carrier object to be detected is obtained according to the watermark embedding strength information and size relationship information.
  • the fourth embodiment of this application also provides a device for generating a watermark detection model.
  • the device for generating the watermark detection model includes:
  • the watermark data set obtaining unit 901 is used to obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the size of the watermark template The relationship between the size information and the size information of the carrier object, where the watermark template is a template used when adding watermark information to the carrier object;
  • the watermark detection branch generating unit 902 is configured to generate multiple watermark detection branch modules according to the multiple watermark data sets; each watermark detection branch module is used to obtain the target carrier based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark of the object;
  • the watermark detection model generating unit 903 is configured to generate a watermark detection model according to the multiple watermark detection branch modules; the watermark detection model is configured to obtain a watermark for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules The final test result.
  • the watermark data set obtaining unit is specifically configured to:
  • each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
  • the device further includes:
  • the label information saving unit is used to save the label information in a text file
  • a text file conversion unit for converting the text file into a non-text file in a predetermined format
  • the label information includes at least one of the following:
  • Type information of the watermark in the carrier object
  • the name information of the watermark in the carrier object is the name information of the watermark in the carrier object.
  • the watermark detection branch generating unit is specifically configured to:
  • the number of the watermark detection branch is equal to the number of the watermark data set; one watermark data set is used to generate a watermark detection branch module.
  • the fifth embodiment of this application also provides an electronic device.
  • the electronic device includes:
  • the memory 1002 is used to store the program of the method for generating the watermark detection model. After the device is powered on and runs the program of the method for generating the watermark detection model through the processor, the following steps are executed:
  • the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object
  • the watermark template is a template used when adding watermark information to the carrier object
  • each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  • the obtaining a watermark data set includes:
  • each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
  • the electronic device further performs the following steps:
  • the label information includes at least one of the following:
  • Type information of the watermark in the carrier object
  • the name information of the watermark in the carrier object is the name information of the watermark in the carrier object.
  • the generating multiple watermark detection branch modules according to the multiple watermark data sets includes:
  • the number of watermark detection branches is equal to the number of watermark data sets; one watermark data set is used to generate a watermark detection branch module.
  • the sixth embodiment of this application also provides a storage device that stores a program of the method for generating a watermark detection model, and the program is run by the processor , Perform the following steps:
  • the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object
  • the watermark template is a template used when adding watermark information to the carrier object
  • each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
  • a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  • the seventh embodiment of this application also provides a watermark detection device.
  • the watermark detection device includes:
  • the carrier object to be detected obtaining unit 1101 is configured to obtain the carrier object to be detected
  • the watermark detection result obtaining unit 1102 is configured to input the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to determine the watermark of the carrier object to be detected Embedding intensity information and size relationship information to obtain a watermark detection result for the carrier object to be detected.
  • the watermark detection result obtaining unit includes:
  • the preliminary detection result obtaining subunit is used to input the carrier object to be detected into a watermark detection model to obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
  • the final detection result obtaining subunit is configured to obtain a final detection result of the watermark for the carrier object to be detected according to the plurality of preliminary watermark detection results for the carrier object to be detected.
  • the device further includes: a confidence degree obtaining unit, configured to obtain the confidence degree of the preliminary detection result for each watermark;
  • the final detection result obtains the subunit, which is specifically used for:
  • a final detection result of the watermark for the carrier object to be detected is determined.
  • the final detection result obtains the subunit, which is specifically used for:
  • the preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
  • the preliminary detection result obtains the subunit, which is specifically used for:
  • the recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
  • the preliminary detection result of the watermark includes at least one of the following information:
  • the eighth embodiment of this application also provides an electronic device.
  • the electronic device includes:
  • the memory 1202 is used to store the program of the watermark detection method. After the device is powered on and runs the program of the watermark detection method through the processor, the following steps are executed:
  • the carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  • the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
  • a final watermark detection result for the carrier object to be detected is obtained.
  • the electronic device further performs the following steps:
  • the obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
  • a final detection result of the watermark for the carrier object to be detected is determined.
  • the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
  • the preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
  • inputting the carrier object to be detected into a watermark detection model to obtain multiple preliminary watermark detection results for the carrier object to be detected includes:
  • the recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
  • the preliminary detection result of the watermark includes at least one of the following information:
  • the ninth embodiment of this application also provides a storage device that stores a program of the watermark detection method, and the program is run by a processor to perform the following steps:
  • the carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.
  • this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

A watermark detection model generation and watermark detection method, apparatus and device. The model generation method comprises: obtaining a plurality of watermark data sets (S101), wherein carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the watermark template is a template used when watermark information is added to the carrier objects; generating a plurality of watermark detection branch modules according to the plurality of watermark data sets (S102), wherein each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object on the basis of the specified watermark embedding strength information and the specified size relationship information; and generating a watermark detection model according to the plurality of watermark detection branch modules (S103), wherein the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the plurality of watermark detection branch modules. By means of the above-mentioned method, the existing problem of great difficulty and high complexity of watermark detection is solved.

Description

水印检测模型的生成和水印检测方法、装置及设备Watermark detection model generation and watermark detection method, device and equipment
本申请要求2019年05月30日递交的申请号为201910461993.5、发明名称为“水印检测模型的生成和水印检测方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on May 30, 2019 with the application number 201910461993.5 and the invention title "Watermark detection model generation and watermark detection methods, devices and equipment", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及计算机技术领域,具体涉及水印检测模型的生成方法、装置、电子设备和存储设备,本申请同时涉及一种水印检测方法、装置、电子设备和存储设备。This application relates to the field of computer technology, and specifically relates to a method, device, electronic device, and storage device of a watermark detection model. This application also relates to a method, device, electronic device, and storage device of a watermark detection model.
背景技术Background technique
图像中包含了丰富且直观的信息,当前在互联网的社交、购物和旅游等领域,都需要大量的图像来给广大用户传递信息。由于互联网信息的传播极为快速和便捷,越来越多的个人和企业选择给自己的图像嵌入水印,如在图像某些区域打上商标或网址的水印,以此保护图像的知识产权。因此,图像使用方在使用图像前,需要对图像进行审核以检测图像中是否具有水印,避免产生误用或者侵权情况的发生。但是,随着互联网的飞速发展和应用,图片使用方每天会通过各种途径获取到大量的图像,在这种情况下,人工审核已满足不了需求。The images contain rich and intuitive information. Currently, in the fields of social networking, shopping and tourism on the Internet, a large number of images are needed to convey information to users. Due to the extremely fast and convenient dissemination of Internet information, more and more individuals and companies choose to embed watermarks on their images, such as watermarking trademarks or web addresses in certain areas of the images, in order to protect the intellectual property rights of the images. Therefore, before using the image, the image user needs to review the image to detect whether there is a watermark in the image, so as to avoid misuse or infringement. However, with the rapid development and application of the Internet, image users will obtain a large number of images through various channels every day. In this case, manual review cannot meet the demand.
现有技术下,采用传统的图像处理和优化方法,通过对大量图像水印的一致性进行分析,从而自动检测嵌入图像的水印。这种检测方法通过将图片集合输入到算法中,通过算法分离出水印和背景图像,进而检测出水印。采用此种方法,需要搜集使用同一个水印的大量图像集合,并要求这些具有相同可见水印的图像中的水印嵌入的大小、嵌入的相对位置和嵌入的强度相同。这些要求在实际应用中是很难达到的。In the prior art, traditional image processing and optimization methods are used to automatically detect the watermark embedded in the image by analyzing the consistency of a large number of image watermarks. This detection method inputs the collection of pictures into the algorithm, separates the watermark and the background image through the algorithm, and then detects the watermark. With this method, it is necessary to collect a large number of image sets that use the same watermark, and it is required that the watermark embedding size, relative embedding position, and embedding strength in these images with the same visible watermark are the same. These requirements are difficult to meet in practical applications.
因此,现有技术存在检测水印难度较大、复杂度较高的问题。Therefore, the prior art has the problems of greater difficulty and complexity in detecting watermarks.
发明内容Summary of the invention
本申请提供一种水印检测模型的生成方法、装置、电子设备和存储设备,以解决现有存在的检测水印难度较大、复杂度较高的问题。This application provides a method, device, electronic device, and storage device for generating a watermark detection model to solve the existing problems of greater difficulty and complexity in detecting watermarks.
本申请提供一种水印检测模型的生成方法,包括:This application provides a method for generating a watermark detection model, including:
获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体 对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
可选的,所述获得水印数据集,包括:Optionally, the obtaining a watermark data set includes:
获得载体对象集;其中,同一载体对象集中的各载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息;Obtain a carrier object set; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
获得载体对象集的标签信息;Obtain the label information of the carrier object set;
根据所述载体对象集与所述标签信息,生成多个水印数据集。According to the carrier object set and the label information, multiple watermark data sets are generated.
可选的,还包括:Optional, also includes:
将所述标签信息保存至文本文件中;Save the label information in a text file;
将所述文本文件转换为预定格式的非文本文件;Converting the text file into a non-text file in a predetermined format;
所述根据所述载体对象集与所述标签信息,生成多个水印数据集,包括:The generating multiple watermark data sets according to the carrier object set and the label information includes:
根据所述载体对象集与所述非文本文件,生成多个水印数据集。According to the carrier object set and the non-text file, multiple watermark data sets are generated.
可选的,所述标签信息,包括以下至少一种:Optionally, the label information includes at least one of the following:
载体对象中水印的类别信息;Type information of the watermark in the carrier object;
水印在载体对象中嵌入的位置信息;The position information of the watermark embedded in the carrier object;
载体对象中水印的名称信息。The name information of the watermark in the carrier object.
可选的,所述根据所述多个水印数据集,生成多个水印检测分支模块,包括:Optionally, the generating multiple watermark detection branch modules according to the multiple watermark data sets includes:
将水印数据集中的载体对象输入神经网络模型中的卷积层,提取所述载体对象的特征图;Input the carrier object in the watermark data set into the convolutional layer in the neural network model, and extract the feature map of the carrier object;
将所述载体对象的特征图输入神经网络模型中的候选区域网络,生成包含水印的推荐区域;Input the feature map of the carrier object into the candidate area network in the neural network model to generate a recommended area containing a watermark;
将所述载体对象的特征图及所述推荐区域输入神经网络模型中的感兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object and the recommended region into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到载体对象中水印的类别的测试值;Input the recommended area feature map to the classifier to obtain the test value of the watermark category in the carrier object;
根据所述测试值与所述标签信息训练神经网络模型,生成水印检测分支模块。Training a neural network model according to the test value and the label information to generate a watermark detection branch module.
可选的,所述水印检测分支的数量与所述水印数据集的数量相等;一个水印数据集用于生成一个水印检测分支模块。Optionally, the number of watermark detection branches is equal to the number of watermark data sets; one watermark data set is used to generate a watermark detection branch module.
本申请还提供一种水印检测方法,包括:This application also provides a watermark detection method, including:
获得待检测载体对象;Obtain the carrier object to be detected;
将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
可选的,所述将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果,包括:Optionally, the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果;Input the carrier object to be detected into a watermark detection model, and obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
根据所述多个针对所述待检测载体对象的水印检测初步结果,获得针对所述待检测载体对象的水印最终检测结果。According to the plurality of preliminary watermark detection results for the carrier object to be detected, a final watermark detection result for the carrier object to be detected is obtained.
可选的,还包括:获得针对每个水印初步检测结果的置信度;Optionally, it also includes: obtaining the confidence of the preliminary detection result for each watermark;
所述根据所述多个针对所述待检测载体对象的水印初步检测结果,获得针对所述待检测载体对象的水印最终检测结果,包括:The obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果。According to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, a final detection result of the watermark for the carrier object to be detected is determined.
可选的,所述根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果,包括:Optionally, the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
将置信度最大的水印初步检测结果作为所述水印最终检测结果。The preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
可选的,将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果,包括:Optionally, inputting the carrier object to be detected into a watermark detection model to obtain multiple preliminary watermark detection results for the carrier object to be detected includes:
将所述待检测载体对象输入到所述水印检测模型的卷积层,提取所述待检测载体对象的特征图;Inputting the carrier object to be detected into the convolutional layer of the watermark detection model, and extracting a feature map of the carrier object to be detected;
将所述待检测载体对象的特征图输入所述水印检测模型的候选区域网络,生成包含可见水印的推荐区域;Input the feature map of the carrier object to be detected into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark;
将所述待检测载体对象的特征图及所述推荐区域输入所述水印检测模型的兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object to be detected and the recommended region into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到多个所述待检测载体对象中的水印检测初步结果。The recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
可选的,所水印初步检测结果,包括以下至少一种信息:Optionally, the preliminary detection result of the watermark includes at least one of the following information:
所述待检测载体对象中水印的类别信息;The category information of the watermark in the carrier object to be detected;
水印在所述待检测载体对象中的位置信息。Position information of the watermark in the carrier object to be detected.
本申请还提供一种水印检测方法,包括:This application also provides a watermark detection method, including:
获得待检测载体对象;Obtain the carrier object to be detected;
获得所述待检测载体对象的水印嵌入强度信息和尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain the watermark embedding strength information and size relationship information of the carrier object to be detected. The size relationship information is used to indicate the relationship between the size information of the watermark template and the size information of the carrier object. The template used when the carrier object adds watermark information;
根据所述水印嵌入强度信息和尺寸关系信息,获得针对所述待检测载体对象的水印检测结果。According to the watermark embedding strength information and the size relationship information, a watermark detection result for the carrier object to be detected is obtained.
本申请还提供一种水印检测模型的生成装置,包括:This application also provides a device for generating a watermark detection model, including:
水印数据集获得单元,用于获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;The watermark data set obtaining unit is used to obtain multiple watermark data sets; wherein the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the size of the watermark template The relationship between information and size information of the carrier object, the watermark template is a template used when adding watermark information to the carrier object;
水印检测分支生成单元,用于根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;The watermark detection branch generating unit is used to generate multiple watermark detection branch modules according to the multiple watermark data sets; each watermark detection branch module is used to obtain the target carrier object based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark;
水印检测模型生成单元,用于根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。The watermark detection model generation unit is configured to generate a watermark detection model according to the multiple watermark detection branch modules; the watermark detection model is used to obtain the final watermark for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules Test results.
本申请还提供一种电子设备,包括:This application also provides an electronic device, including:
处理器;processor;
存储器,用于存储水印检测模型的生成的方法的程序,该设备通电并通过所述处理器运行该水印检测模型的生成的方法的程序后,执行下述步骤:The memory is used to store the program of the method for generating the watermark detection model. After the device is powered on and runs the program of the method for generating the watermark detection model through the processor, the following steps are executed:
获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的 模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
本申请还提供一种存储设备,存储有水印检测模型的生成的方法的程序,该程序被处理器运行,执行下述步骤:This application also provides a storage device that stores a program of a method for generating a watermark detection model. The program is run by a processor to perform the following steps:
获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
本申请另外提供一种水印检测装置,包括:This application additionally provides a watermark detection device, including:
待检测载体对象获得单元,用于获得待检测载体对象;A carrier object to be detected obtaining unit for obtaining a carrier object to be detected;
水印检测结果得到单元,用于将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The watermark detection result obtaining unit is configured to input the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to embed the watermark according to the carrier object to be detected The intensity information and the size relationship information obtain a watermark detection result for the carrier object to be detected.
本申请另外提供一种电子设备,包括:This application additionally provides an electronic device, including:
处理器;processor;
存储器,用于存储水印检测方法的程序,该设备通电并通过所述处理器运行该水印检测方法的程序后,执行下述步骤:The memory is used to store the program of the watermark detection method. After the device is powered on and runs the program of the watermark detection method through the processor, the following steps are executed:
获得待检测载体对象;Obtain the carrier object to be detected;
将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
本申请另外提供一种存储设备,存储有水印检测方法的程序,该程序被处理器运行,执行下述步骤:This application additionally provides a storage device that stores a program of the watermark detection method, and the program is run by a processor to perform the following steps:
获得待检测载体对象;Obtain the carrier object to be detected;
将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
与现有技术相比,本申请具有以下优点:Compared with the prior art, this application has the following advantages:
本申请提供一种水印检测模型的生成方法,本申请第一实施例通过训练多个不同的水印嵌入强度信息和不同的尺寸关系信息下的分支,并根据训练出的多个分支来构造水印检测模型,采用上述水印检测模型可以有效地完成不同的水印嵌入强度和不同尺寸关系下的可见水印的检测任务,解决现有存在的检测水印难度较大、复杂度较高的问题。This application provides a method for generating a watermark detection model. The first embodiment of this application trains multiple branches under different watermark embedding strength information and different size relationship information, and constructs watermark detection based on the multiple branches trained Model, using the above-mentioned watermark detection model can effectively complete the detection task of visible watermarks under different watermark embedding strengths and different size relationships, and solve the existing problems of greater difficulty and complexity in detecting watermarks.
附图说明Description of the drawings
图1为本申请提供的第一应用场景实施例的示意图;Figure 1 is a schematic diagram of a first application scenario embodiment provided by this application;
图2为本申请提供的第二应用场景实施例的示意图;Figure 2 is a schematic diagram of a second application scenario embodiment provided by this application;
图3是本申请第一实施例提供的一种水印检测模型的生成方法的流程图;Fig. 3 is a flowchart of a method for generating a watermark detection model provided by the first embodiment of the present application;
图4是本申请第一实施例提供的一种获得水印数据集的流程图;Fig. 4 is a flowchart of obtaining a watermark data set provided by the first embodiment of the present application;
图5是本申请第一实施例提供的一种根据多个水印数据集,生成多个水印检测分支模块的示意图;FIG. 5 is a schematic diagram of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of the present application;
图6是本申请的第一实施例提供的一种根据多个水印数据集,生成多个水印检测分支模块的流程图;Fig. 6 is a flow chart of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of the present application;
图7是本申请的第一实施例提供的一种水印检测模型的示意图;Fig. 7 is a schematic diagram of a watermark detection model provided by the first embodiment of the present application;
图8是本申请第二实施例提供的一种水印检测方法的流程图;Fig. 8 is a flowchart of a watermark detection method provided by the second embodiment of the present application;
图9是本申请第二实施例提供的一种获得多个针对待检测载体对象的水印初步检测结果的流程图;FIG. 9 is a flowchart of obtaining preliminary detection results of multiple watermarks for the carrier object to be detected according to the second embodiment of the present application;
图10是本申请第三实施例提供的一种水印检测方法的流程图;FIG. 10 is a flowchart of a watermark detection method provided by the third embodiment of this application;
图11是本申请第四实施例提供的一种水印检测模型的生成装置的示意图;FIG. 11 is a schematic diagram of a device for generating a watermark detection model provided by the fourth embodiment of the present application;
图12是本申请第五实施例提供的一种电子设备的示意图;FIG. 12 is a schematic diagram of an electronic device provided by a fifth embodiment of the present application;
图13是本申请第七实施例提供的一种水印检测装置的示意图;FIG. 13 is a schematic diagram of a watermark detection device provided by a seventh embodiment of the present application;
图14是本申请第八实施例提供的一种电子设备的示意图。FIG. 14 is a schematic diagram of an electronic device provided by an eighth embodiment of the present application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本发明。但是本发明能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广,因此本发明不受下面公开的具体实施的限制。In the following description, many specific details are explained in order to fully understand the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without violating the connotation of the present invention. Therefore, the present invention is not limited by the specific implementation disclosed below.
为了更清楚地展示本申请,先介绍一下本申请实施例提供的水印检测方法的应用场景。In order to show this application more clearly, first introduce the application scenarios of the watermark detection method provided in the embodiments of this application.
本申请提供的一些实施例可以应用于客户端与服务器交互的场景,如图1所示,其为本申请提供的第一应用场景实施例的示意图。客户端首先与服务器建立连接,连接之后客户端发送待检测图像至服务器,服务器接收待检测图像并对待检测图像进行水印检测,得到待检测图像的水印检测结果,并将待检测图像的水印检测结果发送至客户端,客户端接收待检测图像的水印检测结果。Some embodiments provided in this application can be applied to a scenario where a client interacts with a server, as shown in FIG. 1, which is a schematic diagram of an embodiment of the first application scenario provided in this application. The client first establishes a connection with the server. After the connection, the client sends the image to be detected to the server. The server receives the image to be detected and performs watermark detection on the image to be detected, and obtains the watermark detection result of the image to be detected, and the watermark detection result of the image to be detected Send to the client, and the client receives the watermark detection result of the image to be detected.
此外,本申请提供的一些实施例可以应用于客户端的内部处理,如图2所示,其为本申请提供的第二应用场景实施例的示意图。客户端获得待检测图像后,对待检测图像进行检测,得到待检测图像的水印检测结果,之后输出待检测图像的水印检测结果。需要说明的是,上述两个应用场景仅仅是应用场景的两个实施例,提供这两个应用场景实施例的目的是便于理解本申请的水印检测方法,而并非用于限定本申请的水印检测方法。In addition, some embodiments provided in this application can be applied to the internal processing of the client, as shown in FIG. 2, which is a schematic diagram of the second application scenario embodiment provided in this application. After the client obtains the image to be detected, it detects the image to be detected, obtains the watermark detection result of the image to be detected, and then outputs the watermark detection result of the image to be detected. It should be noted that the above two application scenarios are only two examples of application scenarios. The purpose of providing these two application scenario embodiments is to facilitate the understanding of the watermark detection method of this application, and is not used to limit the watermark detection of this application. method.
本申请第一实施例提供一种水印检测模型的生成方法,以下结合图3、图4、图5、图6进行说明。The first embodiment of the present application provides a method for generating a watermark detection model, which is described below with reference to FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
如图3所示,在步骤S101中,获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象嵌入水印信息时采用的模板。As shown in Figure 3, in step S101, multiple watermark data sets are obtained; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the watermark The relationship between the size information of the template and the size information of the carrier object. The watermark template is a template used when the watermark information is embedded in the carrier object.
所述水印嵌入强度,可以指水印嵌入强度因子。水印嵌入强度越强,水印的鲁棒性越好。The watermark embedding strength may refer to the watermark embedding strength factor. The stronger the watermark embedding strength, the better the robustness of the watermark.
所述尺寸关系,可以指水印模板与载体对象的尺度比,即水印模板矩形的宽、高的尺寸分别与载体对象的宽、高的尺寸之比。The size relationship may refer to the scale ratio of the watermark template to the carrier object, that is, the ratio of the width and height of the watermark template rectangle to the width and height of the carrier object.
请参见图4,其为本申请的第一实施例提供的一种获得水印数据集的流程图,具体包括步骤S101-1至S101-3。Please refer to Fig. 4, which is a flow chart for obtaining a watermark data set according to the first embodiment of this application, which specifically includes steps S101-1 to S101-3.
如图4所示,在步骤S101-1中,获得载体对象集;其中,同一载体对象集中的各载 体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息。As shown in Figure 4, in step S101-1, a carrier object set is obtained; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has Different watermark embeds strength information and different size relationship information.
每个载体对象集,可以指包括多个嵌入水印的载体对象的集合。Each carrier object set can refer to a collection of multiple carrier objects embedded with watermarks.
所述获得载体对象集,可以指获得多个载体对象集,每个载体对象集中的各载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息。Obtaining a carrier object set may refer to obtaining multiple carrier object sets, each carrier object in each carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in different carrier object sets has different watermarks Embedded strength information and different size relationship information.
例如,获得n组可见水印图片集(即载体对象集),分别编号为1、2、3……n。1号可见水印图片集中的水印嵌入强度为α=x1,水印模版与被添加图片(载体对象)的尺度比为s=y1;2号可见水印图片集的水印嵌入强度为α=x2,水印模版与被添加图片的尺度比为s=y2;3号可见水印图片集的水印嵌入强度为α=x3,水印模版与被添加图片的尺度比为s=y3;以此类推,n-1号可见水印图片集的水印嵌入强度为α=xn-1,水印模版与被添加图片的尺度比为s=yn-1;n号可见水印图片集的水印嵌入强度为α=xn,水印模版与被添加图片的尺度比为s=yn(上述叙述中的xi,yi均是为0至1之间的小数,i∈[1,n])。上述n组可见水印图片集中的水印嵌入位置是随机的,且在嵌入水印模版的过程中记录添加水印的位置信息。For example, n groups of visible watermark picture sets (ie, carrier object sets) are obtained, which are respectively numbered 1, 2, 3...n. The watermark embedding strength in the visible watermark picture set No. 1 is α=x1, the scale ratio of the watermark template to the added picture (carrier object) is s=y1; the watermark embedding strength in the visible watermark picture set No. 2 is α=x2, the watermark template The scale ratio to the added picture is s=y2; the watermark embedding strength of the visible watermark picture set of No. 3 is α=x3, and the scale ratio of the watermark template to the added picture is s=y3; and so on, n-1 is visible The watermark embedding strength of the watermark picture set is α=xn-1, the scale ratio of the watermark template and the added picture is s=yn-1; the watermark embedding strength of the visible watermark picture set n is α=xn, the watermark template and the added picture The scale ratio of the picture is s=yn (xi, yi in the above description are all decimals between 0 and 1, i∈[1,n]). The watermark embedding positions in the above n groups of visible watermark picture sets are random, and the position information of the watermark added is recorded during the process of embedding the watermark template.
如图4所示,在步骤S101-2中,获得载体对象集的标签信息。As shown in Fig. 4, in step S101-2, the label information of the carrier object set is obtained.
所述标签信息,包括以下至少一种:载体对象中水印的类别信息;水印在载体对象中嵌入的位置信息;载体对象中水印的名称信息。所述载体对象中水印的类别根据载体对象的水印嵌入强度信息和尺寸关系信息确定。例如,上述例子中1号可见水印图片集中的载体对象中水印的类别信息可以为(α=x1,s=y1)。The label information includes at least one of the following: category information of the watermark in the carrier object; position information of the watermark embedded in the carrier object; and name information of the watermark in the carrier object. The category of the watermark in the carrier object is determined according to the watermark embedding strength information and size relationship information of the carrier object. For example, the category information of the watermark in the carrier object in the visible watermark picture set No. 1 in the above example may be (α=x1, s=y1).
如图4所示,在步骤S101-3中,根据所述载体对象集与所述标签信息,生成多个水印数据集。As shown in FIG. 4, in step S101-3, a plurality of watermark data sets are generated according to the carrier object set and the label information.
作为一种实施方式,为了方便自动化处理,可以将标签信息先保存至文本文件中;再将文本文件转换为预定格式的非文本文件。所述预定格式的非文本文件,可以为XML文件。As an implementation manner, in order to facilitate automated processing, the label information may be saved in a text file; and then the text file is converted into a non-text file in a predetermined format. The non-text file in the predetermined format may be an XML file.
所述根据所述载体对象集与所述标签信息,生成多个水印数据集,包括:The generating multiple watermark data sets according to the carrier object set and the label information includes:
根据所述载体对象集与所述非文本文件,生成多个水印数据集。According to the carrier object set and the non-text file, multiple watermark data sets are generated.
仍沿用上面的例子,可以先将每个可见水印图片集的标签信息分别保存至一个TXT文件中;再将TXT文件转换为VOC2007格式的XML文件,将1号可见水印图片集与1号XML文件合并建立1号水印数据集,将2号可见水印图片集与2号XML文件合并建 立2号水印数据集,将3号可见水印图片集与3号XML文件合并建立3号水印数据集,以此类推,构建1至n号水印数据集。Still using the above example, you can first save the label information of each visible watermark picture set to a TXT file; then convert the TXT file to a VOC2007 format XML file, and convert the No. 1 visible watermark picture set to the No. 1 XML file Merge the No. 1 watermark data set, merge the No. 2 visible watermark picture set and the No. 2 XML file to create the No. 2 watermark data set, merge the No. 3 visible watermark picture set and the No. 3 XML file to create the No. 3 watermark data set, so By analogy, construct a watermark data set from 1 to n.
如图3所示,在步骤S102中,根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果。As shown in Figure 3, in step S102, based on the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain information based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark for the carrier object.
所述指定的水印嵌入强度,指水印检测分支模块对应的水印数据集的水印嵌入强度。例如,水印检测分支1对应的水印嵌入强度为α=x1;水印检测分支n对应的水印嵌入强度为α=xn。The specified watermark embedding strength refers to the watermark embedding strength of the watermark data set corresponding to the watermark detection branch module. For example, the watermark embedding strength corresponding to the watermark detection branch 1 is α=x1; the watermark embedding strength corresponding to the watermark detection branch n is α=xn.
所述指定的尺寸关系,指水印检测分支模块对应的水印数据集的尺寸关系。例如,水印检测分支1对应的尺寸关系为尺度比s=y1。The specified size relationship refers to the size relationship of the watermark data set corresponding to the watermark detection branch module. For example, the size relationship corresponding to the watermark detection branch 1 is the scale ratio s=y1.
所述水印检测初步结果,指一个水印检测分支模块获得的水印检测初步结果,每个水印检测分支模块获得一个水印初步检测结果,再根据水印检测初步结果获得水印最终检测结果。The preliminary watermark detection result refers to a preliminary watermark detection result obtained by a watermark detection branch module. Each watermark detection branch module obtains a preliminary watermark detection result, and then obtains a final watermark detection result according to the preliminary watermark detection result.
所述水印检测分支的数量可以与所述水印数据集的数量相等;一个水印数据集用于生成一个水印检测分支模块。例如,如图5所示,根据n个水印数据集,生成n水印检测分支模块。The number of the watermark detection branches may be equal to the number of the watermark data sets; one watermark data set is used to generate a watermark detection branch module. For example, as shown in Fig. 5, according to n watermark data sets, n watermark detection branch modules are generated.
例如,将步骤101中所构建的n个水印数据集,分别输入基础目标检测网络Faster R-CNN中获得1至n号分支。其中,Faster R-CNN为基于深度学习的目标检测网络。For example, input the n watermark data sets constructed in step 101 into the basic target detection network Faster R-CNN to obtain branches 1 to n. Among them, Faster R-CNN is a target detection network based on deep learning.
请参见图6,其为本申请的第一实施例提供的一种根据多个水印数据集,生成多个水印检测分支模块的流程图,具体包括步骤S102-1至S102-4。Please refer to FIG. 6, which provides a flow chart of generating multiple watermark detection branch modules according to multiple watermark data sets according to the first embodiment of this application, which specifically includes steps S102-1 to S102-4.
如图6所示,在步骤S102-1中,将水印数据集中的载体对象输入神经网络模型中的卷积层,提取所述载体对象的特征图。As shown in FIG. 6, in step S102-1, the carrier object in the watermark data set is input to the convolutional layer in the neural network model, and the feature map of the carrier object is extracted.
例如,如图5所示,神经网络模型为Faster R-CNN,水印数据集包括1至n号水印数据集,将水印数据集中带有可见水印的图片(载体对象)输入卷积层Conv layers(例如,选择VGG16卷积网络)提取带有可见水印图片的特征图(feature maps)。For example, as shown in Figure 5, the neural network model is Faster R-CNN, and the watermark data set includes watermark data sets from 1 to n. The pictures (carrier objects) with visible watermarks in the watermark data set are input to the convolutional layer Conv layers( For example, select VGG16 convolutional network) to extract feature maps (feature maps) of pictures with visible watermarks.
如图6所示,在步骤S102-2中,将所述载体对象的特征图输入神经网络模型中的候选区域网络,生成包含水印的推荐区域。As shown in FIG. 6, in step S102-2, the feature map of the carrier object is input into the candidate area network in the neural network model to generate a recommended area containing a watermark.
例如,如图5所示,将上述带有可见水印图片的特征图输入候选区域网络RPN(Region Proposals Networks)层生成anchors(基于深度学习的目标检测算法Faster R-CNN中在图像的每个像素点生成的矩形框),RPN层通过softmax判断anchors是属 于前景(包含水印的anchor)或者背景(不包含水印的anchor),再利用边界框回归修正anchors来获得精确的包含水印的推荐区域。For example, as shown in Figure 5, the above feature map with visible watermark pictures is input into the candidate regional network RPN (Region Proposals Networks) layer to generate anchors (the target detection algorithm Faster R-CNN based on deep learning is used in each pixel of the image The RPN layer uses softmax to determine whether the anchors belong to the foreground (anchor containing the watermark) or the background (anchor not containing the watermark), and then use the bounding box regression to correct the anchors to obtain an accurate recommended area containing the watermark.
如图6所示,在步骤S102-3中,将所述载体对象的特征图及所述推荐区域输入神经网络模型中的感兴趣区域池化层,得到推荐区域特征图。As shown in FIG. 6, in step S102-3, the feature map of the carrier object and the recommended region are input into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region.
例如,如图5所示,将卷积层生成的带有可见水印图片的特征图及候选区域网络层生成的包含水印的推荐区域输入RoI Pooling(感兴趣区域池化层)层,感兴趣区域池化层提取推荐区域特征图(proposal feature maps)。For example, as shown in Figure 5, the feature map of the picture with visible watermark generated by the convolutional layer and the recommended area containing the watermark generated by the candidate area network layer are input to the RoI Pooling (region of interest pooling layer) layer, the region of interest The pooling layer extracts recommended feature maps (proposal feature maps).
如图6所示,在步骤S102-4中,将所述推荐区域特征图输入分类器,得到载体对象中水印的类别的测试值。As shown in Fig. 6, in step S102-4, the recommended area feature map is input to the classifier to obtain the test value of the watermark category in the carrier object.
如图6所示,在步骤S102-5中,根据所述测试值与所述标签信息训练所述神经网络模型,生成水印检测分支模块。As shown in FIG. 6, in step S102-5, the neural network model is trained according to the test value and the label information to generate a watermark detection branch module.
如图3所示,在步骤S103中,根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印检测初步结果获得针对载体对象的水印检测最终结果。As shown in FIG. 3, in step S103, a watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules The final result of watermark detection.
如图7所示,其为一种水印检测模型的示意图。As shown in Figure 7, it is a schematic diagram of a watermark detection model.
至此,完成了对本申请第一实施例的介绍。本申请第一实施例通过训练多个不同的水印嵌入强度信息和不同的尺寸关系信息下的分支,并根据训练出的多个分支来构造水印检测模型,采用上述水印检测模型可以有效地检测不同的水印嵌入强度和不同尺寸关系下的可见水印的检测任务,解决现有存在的检测水印难度较大、复杂度较高的问题。So far, the introduction of the first embodiment of the present application is completed. The first embodiment of this application trains multiple branches under different watermark embedding strength information and different size relationship information, and constructs a watermark detection model based on the multiple branches trained. The above watermark detection model can effectively detect different The detection task of visible watermarks under the relationship between the watermark embedding strength and different sizes solves the existing problems of difficulty and complexity in detecting watermarks.
本申请第二实施例提供一种水印检测方法,以下结合图8和图9进行说明。The second embodiment of the present application provides a watermark detection method, which is described below with reference to FIG. 8 and FIG. 9.
如图8所示,在步骤S601中,获得待检测载体对象。As shown in Fig. 8, in step S601, a carrier object to be detected is obtained.
所述待检测载体对象,可以指任何一个图像。例如,待检测载体对象为一个嵌入可见水印的图像。The carrier object to be detected may refer to any image. For example, the carrier object to be detected is an image embedded with a visible watermark.
如图8所示,在步骤S602中,将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。As shown in Figure 8, in step S602, the carrier object to be detected is input into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to The watermark embedding strength information and the size relationship information of to obtain the watermark detection result for the carrier object to be detected.
所述水印嵌入强度,可以指水印嵌入强度因子。水印嵌入强度越强,水印的鲁棒性越好。The watermark embedding strength may refer to the watermark embedding strength factor. The stronger the watermark embedding strength, the better the robustness of the watermark.
所述尺寸关系,可以指水印模板与载体对象的尺度比,即水印模板矩形的宽、高的尺寸分别与待检测载体对象的宽、高的尺寸之比。其中,水印模板为在向待检测载体对 象添加水印信息时采用的模板。The size relationship may refer to the scale ratio between the watermark template and the carrier object, that is, the ratio of the width and height of the watermark template rectangle to the width and height of the carrier object to be detected. Among them, the watermark template is the template used when adding watermark information to the carrier object to be detected.
所述水印检测结果,包括:待检测载体对象中水印的类别信息;水印在待检测载体对象中的位置信息、待检测载体对象中水印的图片名称等。The watermark detection result includes: the category information of the watermark in the carrier object to be detected; the position information of the watermark in the carrier object to be detected, the picture name of the watermark in the carrier object to be detected, etc.
所述将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果,包括:The inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果;Input the carrier object to be detected into a watermark detection model, and obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
根据所述多个针对所述待检测载体对象的水印初步检测结果,获得针对所述待检测载体对象的水印最终检测结果。According to the plurality of preliminary watermark detection results for the carrier object to be detected, a final watermark detection result for the carrier object to be detected is obtained.
如图7所示,水印检测模型由多个水印检测分支模块组成,每个水印检测分支模块可以获得一个针对待检测载体对象的水印初步检测结果,根据多个水印初步检测结果,获得针对待检测载体对象的水印最终检测结果。As shown in Figure 7, the watermark detection model consists of multiple watermark detection branch modules. Each watermark detection branch module can obtain a preliminary watermark detection result for the carrier object to be detected. According to the preliminary detection results of multiple watermarks, the The final detection result of the watermark of the carrier object.
请参见图9,其为本申请的第二实施例提供的一种将待检测载体对象输入到水印检测模型中,获得多个针对待检测载体对象的水印初步检测结果的流程图,具体包括步骤S502-1至S502-4。Please refer to FIG. 9, which is a flow chart for inputting a carrier object to be detected into a watermark detection model to obtain a plurality of preliminary watermark detection results for the carrier object to be detected, which specifically includes steps S502-1 to S502-4.
如图9所示,在步骤S502-1,将所述待检测载体对象输入到所述水印检测模型的卷积层,提取所述待检测载体对象的特征图。As shown in FIG. 9, in step S502-1, the carrier object to be detected is input to the convolutional layer of the watermark detection model, and the feature map of the carrier object to be detected is extracted.
如图9所示,在步骤S502-2,将所述待检测载体对象的特征图输入所述水印检测模型的候选区域网络,生成包含可见水印的推荐区域。As shown in FIG. 9, in step S502-2, the feature map of the carrier object to be detected is input into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark.
如图9所示,在步骤S502-3,将所述待检测载体对象的特征图及所述推荐区域输入所述水印检测模型的兴趣区域池化层,得到推荐区域特征图。As shown in FIG. 9, in step S502-3, the feature map of the carrier object to be detected and the recommended region are input into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region.
如图9所示,在步骤S502-4,将所述推荐区域特征图输入分类器,得到多个所述待检测载体对象中的水印初步检测结果。As shown in FIG. 9, in step S502-4, the recommended area feature map is input to the classifier to obtain preliminary detection results of watermarks in a plurality of carrier objects to be detected.
作为一个优选方式,本申请第二实施例还可以包括:获得针对每个水印初步检测结果的置信度。As a preferred manner, the second embodiment of the present application may further include: obtaining the confidence of the preliminary detection result for each watermark.
所述根据所述多个针对所述待检测载体对象的水印初步检测结果,获得针对所述待检测载体对象的水印最终检测结果,包括:The obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果。According to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, a final detection result of the watermark for the carrier object to be detected is determined.
所述根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确 定针对所述待检测载体对象的水印最终检测结果,包括:The determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
将置信度最大的水印初步检测结果作为所述水印最终检测结果。The preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
例如,如图7所示,将输入图片(即待检测载体对象)输入到该多分支水印检测模型中,各个分支会分别得到各自对应的初步检测结果:可见水印的检测框的位置坐标以及检测结果的置信度score(n个分支分别得到各自所对应的置信度score1、score2、score3、……scoren-1和scoren),如果某一分支未检测到水印,该分支输出的水印检测框信息将被设置为[0,0,0,0],而且该分支的检测置信度也将会被置为0,多分支自水印检测模型将根据这n个分支的检测结果的置信度(score)作为决策标准,选择置信度(score)取得最大值的分支作为最终检测结果,输出可见水印检测框的位置坐标、类别、图片名称以及置信度。如果所有分支均未检测到可见水印,该多分支水印检测模型将会设置被检测图片可见水印检测框的位置为[0,0,0,0],置信度为0和图片名称。For example, as shown in Figure 7, the input picture (that is, the carrier object to be detected) is input into the multi-branch watermark detection model, and each branch will get their respective preliminary detection results: the position coordinates of the detection frame of the visible watermark and the detection The confidence score of the result (n branches get their respective confidence score1, score2, score3,...scoren-1 and scoren). If a branch does not detect a watermark, the watermark detection frame information output by this branch will be Is set to [0,0,0,0], and the detection confidence of this branch will also be set to 0, the multi-branch self-watermark detection model will be based on the confidence (score) of the detection results of these n branches as The decision criterion is to select the branch with the maximum score as the final detection result, and output the position coordinates, category, picture name, and confidence of the visible watermark detection frame. If no visible watermark is detected in all branches, the multi-branch watermark detection model will set the position of the visible watermark detection frame of the detected picture to [0,0,0,0], the confidence level to 0 and the picture name.
本申请第三实施例提供一种水印检测方法,以下结合图10进行说明。The third embodiment of the present application provides a watermark detection method, which is described below with reference to FIG. 10.
如图10所示,在步骤801中,获得待检测载体对象。As shown in FIG. 10, in step 801, a carrier object to be detected is obtained.
如图10所示,在步骤802中,获得所述待检测载体对象的水印嵌入强度信息和尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板。As shown in Figure 10, in step 802, the watermark embedding strength information and size relationship information of the carrier object to be detected are obtained. The size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object. Relationship, the watermark template is a template used when adding watermark information to the carrier object.
如图10所示,在步骤803中,根据所述水印嵌入强度信息和尺寸关系信息,获得针对所述待检测载体对象的水印检测结果。As shown in FIG. 10, in step 803, a watermark detection result for the carrier object to be detected is obtained according to the watermark embedding strength information and size relationship information.
与本申请第一实施例提供的水印检测模型的生成方法相对应的,本申请第四实施例还提供一种水印检测模型的生成装置。Corresponding to the method for generating a watermark detection model provided in the first embodiment of this application, the fourth embodiment of this application also provides a device for generating a watermark detection model.
如图11所示,所述水印检测模型的生成装置包括:As shown in Figure 11, the device for generating the watermark detection model includes:
水印数据集获得单元901,用于获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;The watermark data set obtaining unit 901 is used to obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the size of the watermark template The relationship between the size information and the size information of the carrier object, where the watermark template is a template used when adding watermark information to the carrier object;
水印检测分支生成单元902,用于根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;The watermark detection branch generating unit 902 is configured to generate multiple watermark detection branch modules according to the multiple watermark data sets; each watermark detection branch module is used to obtain the target carrier based on the specified watermark embedding strength information and the specified size relationship information The preliminary detection result of the watermark of the object;
水印检测模型生成单元903,用于根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。The watermark detection model generating unit 903 is configured to generate a watermark detection model according to the multiple watermark detection branch modules; the watermark detection model is configured to obtain a watermark for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules The final test result.
可选的,所述水印数据集获得单元具体用于:Optionally, the watermark data set obtaining unit is specifically configured to:
获得载体对象集;其中,同一载体对象集中的各载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息;Obtain a carrier object set; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
获得载体对象集的标签信息;Obtain the label information of the carrier object set;
根据所述载体对象集与所述标签信息,生成多个水印数据集。According to the carrier object set and the label information, multiple watermark data sets are generated.
可选的,所述装置还包括:Optionally, the device further includes:
标签信息保存单元,用于将所述标签信息保存至文本文件中;The label information saving unit is used to save the label information in a text file;
文本文件转换单元,用于将所述文本文件转换为预定格式的非文本文件;A text file conversion unit for converting the text file into a non-text file in a predetermined format;
所述根据所述载体对象集与所述标签信息,生成多个水印数据集,包括:The generating multiple watermark data sets according to the carrier object set and the label information includes:
根据所述载体对象集与所述非文本文件,生成多个水印数据集。According to the carrier object set and the non-text file, multiple watermark data sets are generated.
可选的,所述标签信息,包括以下至少一种:Optionally, the label information includes at least one of the following:
载体对象中水印的类别信息;Type information of the watermark in the carrier object;
水印在载体对象中嵌入的位置信息;The position information of the watermark embedded in the carrier object;
载体对象中水印的名称信息。The name information of the watermark in the carrier object.
可选的,所述水印检测分支生成单元,具体用于:Optionally, the watermark detection branch generating unit is specifically configured to:
将水印数据集中的载体对象输入神经网络模型中的卷积层,提取所述载体对象的特征图;Input the carrier object in the watermark data set into the convolutional layer in the neural network model, and extract the feature map of the carrier object;
将所述载体对象的特征图输入神经网络模型中的候选区域网络,生成包含水印的推荐区域;Input the feature map of the carrier object into the candidate area network in the neural network model to generate a recommended area containing a watermark;
将所述载体对象的特征图及所述推荐区域输入神经网络模型中的感兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object and the recommended region into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到载体对象中水印的类别的测试值;Input the recommended area feature map to the classifier to obtain the test value of the watermark category in the carrier object;
根据所述测试值与所述标签信息训练神经网络模型,生成水印检测分支模块。Training a neural network model according to the test value and the label information to generate a watermark detection branch module.
可选的,所述水印检测分支的数量与所述水印数据集的数量相等;一个水印数据集用于生成一个水印检测分支模块。Optionally, the number of the watermark detection branch is equal to the number of the watermark data set; one watermark data set is used to generate a watermark detection branch module.
需要说明的是,对于本申请第四实施例提供的水印检测模型的生成装置的详细描述 可以参考对本申请第一实施例的相关描述,这里不再赘述。It should be noted that for the detailed description of the device for generating the watermark detection model provided by the fourth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
与本申请第一实施例提供的水印检测模型的生成方法相对应的,本申请第五实施例还提供一种电子设备。Corresponding to the method for generating a watermark detection model provided in the first embodiment of this application, the fifth embodiment of this application also provides an electronic device.
如图12所示,所述电子设备包括:As shown in FIG. 12, the electronic device includes:
处理器1001; Processor 1001;
存储器1002,用于存储水印检测模型的生成的方法的程序,该设备通电并通过所述处理器运行该水印检测模型的生成的方法的程序后,执行下述步骤:The memory 1002 is used to store the program of the method for generating the watermark detection model. After the device is powered on and runs the program of the method for generating the watermark detection model through the processor, the following steps are executed:
获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
可选的,所述获得水印数据集,包括:Optionally, the obtaining a watermark data set includes:
获得载体对象集;其中,同一载体对象集中的各载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息;Obtain a carrier object set; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
获得载体对象集的标签信息;Obtain the label information of the carrier object set;
根据所述载体对象集与所述标签信息,生成多个水印数据集。According to the carrier object set and the label information, multiple watermark data sets are generated.
可选的,所述电子设备还执行下述步骤:Optionally, the electronic device further performs the following steps:
将所述标签信息保存至文本文件中;Save the label information in a text file;
将所述文本文件转换为预定格式的非文本文件;Converting the text file into a non-text file in a predetermined format;
所述根据所述载体对象集与所述标签信息,生成多个水印数据集,包括:The generating multiple watermark data sets according to the carrier object set and the label information includes:
根据所述载体对象集与所述非文本文件,生成多个水印数据集。According to the carrier object set and the non-text file, multiple watermark data sets are generated.
可选的,所述标签信息,包括以下至少一种:Optionally, the label information includes at least one of the following:
载体对象中水印的类别信息;Type information of the watermark in the carrier object;
水印在载体对象中嵌入的位置信息;The position information of the watermark embedded in the carrier object;
载体对象中水印的名称信息。The name information of the watermark in the carrier object.
可选的,所述根据所述多个水印数据集,生成多个水印检测分支模块,包括:Optionally, the generating multiple watermark detection branch modules according to the multiple watermark data sets includes:
将水印数据集中的载体对象输入神经网络模型中的卷积层,提取所述载体对象的特征图;Input the carrier object in the watermark data set into the convolutional layer in the neural network model, and extract the feature map of the carrier object;
将所述载体对象的特征图输入神经网络模型中的候选区域网络,生成包含水印的推荐区域;Input the feature map of the carrier object into the candidate area network in the neural network model to generate a recommended area containing a watermark;
将所述载体对象的特征图及所述推荐区域输入神经网络模型中的感兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object and the recommended region into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到载体对象中水印的类别的测试值;Input the recommended area feature map to the classifier to obtain the test value of the watermark category in the carrier object;
根据所述测试值与所述标签信息训练神经网络模型,生成水印检测分支模块。Training a neural network model according to the test value and the label information to generate a watermark detection branch module.
可选的,所述水印检测分支的数量与所述水印数据集的数量相等;一个水印数据集用于生成一个水印检测分支模块。Optionally, the number of watermark detection branches is equal to the number of watermark data sets; one watermark data set is used to generate a watermark detection branch module.
需要说明的是,对于本申请第五实施例提供的电子设备的详细描述可以参考对本申请第一实施例的相关描述,这里不再赘述。It should be noted that, for the detailed description of the electronic device provided in the fifth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, which is not repeated here.
与本申请第一实施例提供的水印检测模型的生成方法相对应的,本申请第六实施例还提供一种存储设备,存储有水印检测模型的生成的方法的程序,该程序被处理器运行,执行下述步骤:Corresponding to the method for generating a watermark detection model provided in the first embodiment of this application, the sixth embodiment of this application also provides a storage device that stores a program of the method for generating a watermark detection model, and the program is run by the processor , Perform the following steps:
获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
需要说明的是,对于本申请第六实施例提供的存储设备的详细描述可以参考对本申请第一实施例的相关描述,这里不再赘述。It should be noted that, for a detailed description of the storage device provided in the sixth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, which will not be repeated here.
与本申请第二实施例提供的水印检测方法相对应的,本申请第七实施例还提供一种水印检测装置。Corresponding to the watermark detection method provided in the second embodiment of this application, the seventh embodiment of this application also provides a watermark detection device.
如图13所示,所述水印检测装置,包括:As shown in Figure 13, the watermark detection device includes:
待检测载体对象获得单元1101,用于获得待检测载体对象;The carrier object to be detected obtaining unit 1101 is configured to obtain the carrier object to be detected;
水印检测结果得到单元1102,用于将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The watermark detection result obtaining unit 1102 is configured to input the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to determine the watermark of the carrier object to be detected Embedding intensity information and size relationship information to obtain a watermark detection result for the carrier object to be detected.
可选的,所述水印检测结果得到单元,包括:Optionally, the watermark detection result obtaining unit includes:
初步检测结果得到子单元,用于将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果;The preliminary detection result obtaining subunit is used to input the carrier object to be detected into a watermark detection model to obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
最终检测结果得到子单元,用于根据所述多个针对所述待检测载体对象的水印检测初步结果,获得针对所述待检测载体对象的水印最终检测结果。The final detection result obtaining subunit is configured to obtain a final detection result of the watermark for the carrier object to be detected according to the plurality of preliminary watermark detection results for the carrier object to be detected.
可选的,所述装置还包括:置信度获得单元,用于获得针对每个水印初步检测结果的置信度;Optionally, the device further includes: a confidence degree obtaining unit, configured to obtain the confidence degree of the preliminary detection result for each watermark;
所述最终检测结果得到子单元,具体用于:The final detection result obtains the subunit, which is specifically used for:
根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果。According to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, a final detection result of the watermark for the carrier object to be detected is determined.
可选的,所述最终检测结果得到子单元,具体用于:Optionally, the final detection result obtains the subunit, which is specifically used for:
将置信度最大的水印初步检测结果作为所述水印最终检测结果。The preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
可选的,所述初步检测结果得到子单元,具体用于:Optionally, the preliminary detection result obtains the subunit, which is specifically used for:
将所述待检测载体对象输入到所述水印检测模型的卷积层,提取所述待检测载体对象的特征图;Inputting the carrier object to be detected into the convolutional layer of the watermark detection model, and extracting a feature map of the carrier object to be detected;
将所述待检测载体对象的特征图输入所述水印检测模型的候选区域网络,生成包含可见水印的推荐区域;Input the feature map of the carrier object to be detected into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark;
将所述待检测载体对象的特征图及所述推荐区域输入所述水印检测模型的兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object to be detected and the recommended region into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到多个所述待检测载体对象中的水印检测初步结果。The recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
可选的,所水印初步检测结果,包括以下至少一种信息:Optionally, the preliminary detection result of the watermark includes at least one of the following information:
所述待检测载体对象中水印的类别信息;The category information of the watermark in the carrier object to be detected;
水印在所述待检测载体对象中的位置信息。Position information of the watermark in the carrier object to be detected.
需要说明的是,对于本申请第七实施例提供的水印检测装置的详细描述可以参考对本申请第二实施例的相关描述,这里不再赘述。It should be noted that for the detailed description of the watermark detection device provided in the seventh embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, which is not repeated here.
与本申请第二实施例提供的水印检测方法相对应的,本申请第八实施例还提供一种电子设备。Corresponding to the watermark detection method provided in the second embodiment of this application, the eighth embodiment of this application also provides an electronic device.
如图14所示,所述电子设备包括:As shown in FIG. 14, the electronic device includes:
处理器1201; Processor 1201;
存储器1202,用于存储水印检测方法的程序,该设备通电并通过所述处理器运行该水印检测方法的程序后,执行下述步骤:The memory 1202 is used to store the program of the watermark detection method. After the device is powered on and runs the program of the watermark detection method through the processor, the following steps are executed:
获得待检测载体对象;Obtain the carrier object to be detected;
将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
可选的,所述将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果,包括:Optionally, the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected includes:
将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果;Input the carrier object to be detected into a watermark detection model, and obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
根据所述多个针对所述待检测载体对象的水印检测初步结果,获得针对所述待检测载体对象的水印最终检测结果。According to the plurality of preliminary watermark detection results for the carrier object to be detected, a final watermark detection result for the carrier object to be detected is obtained.
可选的,所述电子设备还执行下述步骤:Optionally, the electronic device further performs the following steps:
获得针对每个水印初步检测结果的置信度;Obtain the confidence of the preliminary detection results for each watermark;
所述根据所述多个针对所述待检测载体对象的水印初步检测结果,获得针对所述待检测载体对象的水印最终检测结果,包括:The obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果。According to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, a final detection result of the watermark for the carrier object to be detected is determined.
可选的,所述根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果,包括:Optionally, the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark includes:
将置信度最大的水印初步检测结果作为所述水印最终检测结果。The preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
可选的,将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果,包括:Optionally, inputting the carrier object to be detected into a watermark detection model to obtain multiple preliminary watermark detection results for the carrier object to be detected includes:
将所述待检测载体对象输入到所述水印检测模型的卷积层,提取所述待检测载体对象的特征图;Inputting the carrier object to be detected into the convolutional layer of the watermark detection model, and extracting a feature map of the carrier object to be detected;
将所述待检测载体对象的特征图输入所述水印检测模型的候选区域网络,生成包含可见水印的推荐区域;Input the feature map of the carrier object to be detected into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark;
将所述待检测载体对象的特征图及所述推荐区域输入所述水印检测模型的兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object to be detected and the recommended region into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region;
将所述推荐区域特征图输入分类器,得到多个所述待检测载体对象中的水印检测初步结果。The recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
可选的,所水印初步检测结果,包括以下至少一种信息:Optionally, the preliminary detection result of the watermark includes at least one of the following information:
所述待检测载体对象中水印的类别信息;The category information of the watermark in the carrier object to be detected;
水印在所述待检测载体对象中的位置信息。Position information of the watermark in the carrier object to be detected.
需要说明的是,对于本申请第八实施例提供的电子设备的详细描述可以参考对本申请第二实施例的相关描述,这里不再赘述。It should be noted that, for a detailed description of the electronic device provided in the eighth embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, which will not be repeated here.
与本申请第二实施例提供的水印检测方法相对应的,本申请第九实施例还提供一种存储设备,存储有水印检测方法的程序,该程序被处理器运行,执行下述步骤:Corresponding to the watermark detection method provided in the second embodiment of this application, the ninth embodiment of this application also provides a storage device that stores a program of the watermark detection method, and the program is run by a processor to perform the following steps:
获得待检测载体对象;Obtain the carrier object to be detected;
将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
需要说明的是,对于本申请第九实施例提供的存储设备的详细描述可以参考对本申请第二实施例的相关描述,这里不再赘述。It should be noted that, for the detailed description of the storage device provided in the ninth embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, which will not be repeated here.
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。Although this application is disclosed as above in preferred embodiments, it is not intended to limit the application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the application. Therefore, this application The scope of protection shall be subject to the scope defined by the claims of this application.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、 网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

Claims (19)

  1. 一种水印检测模型的生成方法,其特征在于,包括:A method for generating a watermark detection model, which is characterized in that it includes:
    获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
    根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
    根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  2. 根据权利要求1所述的方法,其特征在于,所述获得水印数据集,包括:The method according to claim 1, wherein said obtaining a watermark data set comprises:
    获得载体对象集;其中,同一载体对象集中的各载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息;不同载体对象集中各载体对象具有不同的水印嵌入强度信息和不同的尺寸关系信息;Obtain a carrier object set; wherein, each carrier object in the same carrier object set has the same watermark embedding strength information and the same size relationship information; each carrier object in a different carrier object set has different watermark embedding strength information and different size relationship information;
    获得载体对象集的标签信息;Obtain the label information of the carrier object set;
    根据所述载体对象集与所述标签信息,生成多个水印数据集。According to the carrier object set and the label information, multiple watermark data sets are generated.
  3. 根据权利要求2所述的方法,其特征在于,还包括:The method according to claim 2, further comprising:
    将所述标签信息保存至文本文件中;Save the label information in a text file;
    将所述文本文件转换为预定格式的非文本文件;Converting the text file into a non-text file in a predetermined format;
    所述根据所述载体对象集与所述标签信息,生成多个水印数据集,包括:The generating multiple watermark data sets according to the carrier object set and the label information includes:
    根据所述载体对象集与所述非文本文件,生成多个水印数据集。According to the carrier object set and the non-text file, multiple watermark data sets are generated.
  4. 根据权利要求3所述的方法,其特征在于,所述标签信息,包括以下至少一种:The method according to claim 3, wherein the label information includes at least one of the following:
    载体对象中水印的类别信息;Type information of the watermark in the carrier object;
    水印在载体对象中嵌入的位置信息;The position information of the watermark embedded in the carrier object;
    载体对象中水印的名称信息。The name information of the watermark in the carrier object.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述多个水印数据集,生成多个水印检测分支模块,包括:The method according to claim 4, wherein the generating multiple watermark detection branch modules according to the multiple watermark data sets comprises:
    将水印数据集中的载体对象输入神经网络模型中的卷积层,提取所述载体对象的特征图;Input the carrier object in the watermark data set into the convolutional layer in the neural network model, and extract the feature map of the carrier object;
    将所述载体对象的特征图输入神经网络模型中的候选区域网络,生成包含水印的推荐区域;Input the feature map of the carrier object into the candidate area network in the neural network model to generate a recommended area containing a watermark;
    将所述载体对象的特征图及所述推荐区域输入神经网络模型中的感兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object and the recommended region into the region of interest pooling layer in the neural network model to obtain a feature map of the recommended region;
    将所述推荐区域特征图输入分类器,得到载体对象中水印的类别的测试值;Input the recommended area feature map to the classifier to obtain the test value of the watermark category in the carrier object;
    根据所述测试值与所述标签信息训练神经网络模型,生成水印检测分支模块。Training a neural network model according to the test value and the label information to generate a watermark detection branch module.
  6. 根据权利要求1所述的方法,其特征在于,所述水印检测分支的数量与所述水印数据集的数量相等;一个水印数据集用于生成一个水印检测分支模块。The method according to claim 1, wherein the number of the watermark detection branch is equal to the number of the watermark data set; one watermark data set is used to generate a watermark detection branch module.
  7. 一种水印检测方法,其特征在于,包括:A watermark detection method, characterized in that it comprises:
    获得待检测载体对象;Obtain the carrier object to be detected;
    将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  8. 根据权利要求7所述的方法,其特征在于,所述将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果,包括:The method according to claim 7, wherein the inputting the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected comprises:
    将所述待检测载体对象输入到水印检测模型中,获得多个针对所述待检测载体对象的水印初步检测结果;Inputting the carrier object to be detected into a watermark detection model to obtain a plurality of preliminary watermark detection results for the carrier object to be detected;
    根据所述多个针对所述待检测载体对象的水印检测初步结果,获得针对所述待检测载体对象的水印最终检测结果。According to the plurality of preliminary watermark detection results for the carrier object to be detected, a final watermark detection result for the carrier object to be detected is obtained.
  9. 根据权利要求8所述的方法,其特征在于,还包括:获得针对每个水印初步检测结果的置信度;The method according to claim 8, further comprising: obtaining the confidence of the preliminary detection result for each watermark;
    所述根据所述多个针对所述待检测载体对象的水印初步检测结果,获得针对所述待检测载体对象的水印最终检测结果,包括:The obtaining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the plurality of watermarks for the carrier object to be detected includes:
    根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果。According to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, a final detection result of the watermark for the carrier object to be detected is determined.
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述多个水印初步检测结果以及针对每个水印初步检测结果的置信度,确定针对所述待检测载体对象的水印最终检测结果,包括:The method according to claim 9, wherein the determining the final detection result of the watermark for the carrier object to be detected according to the preliminary detection results of the multiple watermarks and the confidence of the preliminary detection results for each watermark, include:
    将置信度最大的水印初步检测结果作为所述水印最终检测结果。The preliminary detection result of the watermark with the greatest confidence is used as the final detection result of the watermark.
  11. 根据权利要求8所述的方法,其特征在于,将所述待检测载体对象输入到水印检 测模型中,获得多个针对所述待检测载体对象的水印初步检测结果,包括:The method according to claim 8, wherein inputting the carrier object to be detected into a watermark detection model to obtain multiple preliminary watermark detection results for the carrier object to be detected comprises:
    将所述待检测载体对象输入到所述水印检测模型的卷积层,提取所述待检测载体对象的特征图;Inputting the carrier object to be detected into the convolutional layer of the watermark detection model, and extracting a feature map of the carrier object to be detected;
    将所述待检测载体对象的特征图输入所述水印检测模型的候选区域网络,生成包含可见水印的推荐区域;Input the feature map of the carrier object to be detected into the candidate area network of the watermark detection model to generate a recommended area containing a visible watermark;
    将所述待检测载体对象的特征图及所述推荐区域输入所述水印检测模型的兴趣区域池化层,得到推荐区域特征图;Input the feature map of the carrier object to be detected and the recommended region into the interest region pooling layer of the watermark detection model to obtain a feature map of the recommended region;
    将所述推荐区域特征图输入分类器,得到多个所述待检测载体对象中的水印检测初步结果。The recommended area feature map is input into a classifier to obtain preliminary results of watermark detection in a plurality of carrier objects to be detected.
  12. 根据权利要求7所述的方法,其特征在于,所水印初步检测结果,包括以下至少一种信息:The method according to claim 7, wherein the preliminary detection result of the watermark includes at least one of the following information:
    所述待检测载体对象中水印的类别信息;The category information of the watermark in the carrier object to be detected;
    水印在所述待检测载体对象中的位置信息。Position information of the watermark in the carrier object to be detected.
  13. 一种水印检测方法,其特征在于,包括:A watermark detection method, characterized in that it comprises:
    获得待检测载体对象;Obtain the carrier object to be detected;
    获得所述待检测载体对象的水印嵌入强度信息和尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain the watermark embedding strength information and size relationship information of the carrier object to be detected. The size relationship information is used to indicate the relationship between the size information of the watermark template and the size information of the carrier object. The template used when the carrier object adds watermark information;
    根据所述水印嵌入强度信息和尺寸关系信息,获得针对所述待检测载体对象的水印检测结果。According to the watermark embedding strength information and the size relationship information, a watermark detection result for the carrier object to be detected is obtained.
  14. 一种水印检测模型的生成装置,其特征在于,包括:A device for generating a watermark detection model is characterized in that it comprises:
    水印数据集获得单元,用于获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;The watermark data set obtaining unit is used to obtain multiple watermark data sets; wherein the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the size of the watermark template The relationship between information and size information of the carrier object, where the watermark template is a template used when adding watermark information to the carrier object;
    水印检测分支生成单元,用于根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;The watermark detection branch generating unit is configured to generate multiple watermark detection branch modules according to the multiple watermark data sets; each watermark detection branch module is used to obtain the target carrier object based on the specified watermark embedding strength information and the specified size relationship information Preliminary detection results of the watermark;
    水印检测模型生成单元,用于根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对 载体对象的水印最终检测结果。The watermark detection model generation unit is configured to generate a watermark detection model according to the multiple watermark detection branch modules; the watermark detection model is used to obtain the final watermark for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules Test results.
  15. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    存储器,用于存储水印检测模型的生成的方法的程序,该设备通电并通过所述处理器运行该水印检测模型的生成的方法的程序后,执行下述步骤:The memory is used to store the program of the method for generating the watermark detection model. After the device is powered on and runs the program of the method for generating the watermark detection model through the processor, the following steps are executed:
    获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
    根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
    根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  16. 一种存储设备,其特征在于,A storage device, characterized in that:
    存储有水印检测模型的生成的方法的程序,该程序被处理器运行,执行下述步骤:A program that stores a method for generating a watermark detection model, and the program is run by the processor to perform the following steps:
    获得多个水印数据集;其中,同一水印数据集中的载体对象具有相同的水印嵌入强度信息和相同的尺寸关系信息,所述尺寸关系信息用于表示水印模板的尺寸信息与载体对象的尺寸信息之间的关系,所述水印模板为在向所述载体对象添加水印信息时采用的模板;Obtain multiple watermark data sets; wherein, the carrier objects in the same watermark data set have the same watermark embedding strength information and the same size relationship information, and the size relationship information is used to indicate the difference between the size information of the watermark template and the size information of the carrier object The watermark template is a template used when adding watermark information to the carrier object;
    根据所述多个水印数据集,生成多个水印检测分支模块;每个水印检测分支模块用于基于指定的水印嵌入强度信息和指定的尺寸关系信息获得针对载体对象的水印初步检测结果;According to the multiple watermark data sets, multiple watermark detection branch modules are generated; each watermark detection branch module is used to obtain a preliminary watermark detection result for the carrier object based on the specified watermark embedding strength information and the specified size relationship information;
    根据所述多个水印检测分支模块生成水印检测模型;所述水印检测模型用于根据所述多个水印检测分支模块的水印初步检测结果获得针对载体对象的水印最终检测结果。A watermark detection model is generated according to the multiple watermark detection branch modules; the watermark detection model is used to obtain a final watermark detection result for the carrier object according to the preliminary watermark detection results of the multiple watermark detection branch modules.
  17. 一种水印检测装置,其特征在于,包括:A watermark detection device, characterized in that it comprises:
    待检测载体对象获得单元,用于获得待检测载体对象;A carrier object to be detected obtaining unit for obtaining a carrier object to be detected;
    水印检测结果得到单元,用于将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The watermark detection result obtaining unit is configured to input the carrier object to be detected into a watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to embed the watermark according to the carrier object to be detected The intensity information and the size relationship information obtain a watermark detection result for the carrier object to be detected.
  18. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    存储器,用于存储水印检测方法的程序,该设备通电并通过所述处理器运行该水印检测方法的程序后,执行下述步骤:The memory is used to store the program of the watermark detection method. After the device is powered on and runs the program of the watermark detection method through the processor, the following steps are executed:
    获得待检测载体对象;Obtain the carrier object to be detected;
    将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
  19. 一种存储设备,其特征在于,A storage device, characterized in that:
    存储有水印检测方法的程序,该程序被处理器运行,执行下述步骤:The program of the watermark detection method is stored, and the program is run by the processor to perform the following steps:
    获得待检测载体对象;Obtain the carrier object to be detected;
    将所述待检测载体对象输入到水印检测模型中,得到针对所述待检测载体对象的水印检测结果;所述水印检测模型用于根据待检测载体对象的水印嵌入强度信息和尺寸关系信息获得针对所述待检测载体对象的水印检测结果。The carrier object to be detected is input into the watermark detection model to obtain a watermark detection result for the carrier object to be detected; the watermark detection model is used to obtain the target according to the watermark embedding strength information and size relationship information of the carrier object to be detected The watermark detection result of the carrier object to be detected.
PCT/CN2020/090797 2019-05-30 2020-05-18 Watermark detection model generation and watermark detection method, apparatus and device WO2020238673A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910461993.5 2019-05-30
CN201910461993.5A CN112017092A (en) 2019-05-30 2019-05-30 Watermark detection model generation method, watermark detection device, watermark detection equipment

Publications (1)

Publication Number Publication Date
WO2020238673A1 true WO2020238673A1 (en) 2020-12-03

Family

ID=73500981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/090797 WO2020238673A1 (en) 2019-05-30 2020-05-18 Watermark detection model generation and watermark detection method, apparatus and device

Country Status (2)

Country Link
CN (1) CN112017092A (en)
WO (1) WO2020238673A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105590292A (en) * 2015-12-28 2016-05-18 辽宁师范大学 Color image watermark embedding and detection method based on quaternion PHT synchronous correction
US20170061562A1 (en) * 2015-08-25 2017-03-02 Samsung Electronics Co., Ltd. Method, apparatus and system for inserting watermark data
CN107194863A (en) * 2017-04-07 2017-09-22 广东精点数据科技股份有限公司 Image digital watermark embedded system and method
CN107808358A (en) * 2017-11-13 2018-03-16 携程计算机技术(上海)有限公司 Image watermark automatic testing method
CN109285105A (en) * 2018-09-05 2019-01-29 北京字节跳动网络技术有限公司 Method of detecting watermarks, device, computer equipment and storage medium
CN109598231A (en) * 2018-12-03 2019-04-09 广州市百果园信息技术有限公司 A kind of recognition methods of video watermark, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170061562A1 (en) * 2015-08-25 2017-03-02 Samsung Electronics Co., Ltd. Method, apparatus and system for inserting watermark data
CN105590292A (en) * 2015-12-28 2016-05-18 辽宁师范大学 Color image watermark embedding and detection method based on quaternion PHT synchronous correction
CN107194863A (en) * 2017-04-07 2017-09-22 广东精点数据科技股份有限公司 Image digital watermark embedded system and method
CN107808358A (en) * 2017-11-13 2018-03-16 携程计算机技术(上海)有限公司 Image watermark automatic testing method
CN109285105A (en) * 2018-09-05 2019-01-29 北京字节跳动网络技术有限公司 Method of detecting watermarks, device, computer equipment and storage medium
CN109598231A (en) * 2018-12-03 2019-04-09 广州市百果园信息技术有限公司 A kind of recognition methods of video watermark, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112017092A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
WO2018157746A1 (en) Recommendation method and apparatus for video data
CN110796031A (en) Table identification method and device based on artificial intelligence and electronic equipment
CN113609896A (en) Object-level remote sensing change detection method and system based on dual-correlation attention
JP2023527615A (en) Target object detection model training method, target object detection method, device, electronic device, storage medium and computer program
CN108268510B (en) Image annotation method and device
Zhang et al. Dominant vanishing point detection in the wild with application in composition analysis
Lu et al. Multi-scale feature progressive fusion network for remote sensing image change detection
Xu et al. Identifying semantic blocks in Web pages using Gestalt laws of grouping
Lin et al. Face detection and segmentation with generalized intersection over union based on mask R-CNN
CN116822623B (en) Method, device, equipment and storage medium for generating countermeasures network joint training
Huang et al. Smart tourism: exploring historical, cultural, and delicacy scenic spots using visual-based image search technology
Zheng et al. Study on image retrieval based on image texture and color statistical projection
WO2020238673A1 (en) Watermark detection model generation and watermark detection method, apparatus and device
Shen et al. HQA‐Trans: An end‐to‐end high‐quality‐awareness image translation framework for unsupervised cross‐domain pedestrian detection
CN111881900B (en) Corpus generation method, corpus translation model training method, corpus translation model translation method, corpus translation device, corpus translation equipment and corpus translation medium
WO2023246912A1 (en) Image character structured output method and apparatus, and electronic device and storage medium
CN113392689A (en) Video character tracking method, video processing method, device, equipment and medium
KR102215100B1 (en) Apparatus and method for measuring region similarity of spatial entity using spatial knowledge graphs
CN111898544A (en) Character and image matching method, device and equipment and computer storage medium
KR20190009063A (en) Apparatus and method for providing heterogeneous contents recommendation model
CN113496115A (en) File content comparison method and device
US20200311901A1 (en) Classifying panoramic images
Gao et al. Segmentation-free vehicle license plate recognition using CNN
Deng et al. Spatial transform depthwise over-parameterized convolution recurrent neural network for license plate recognition in complex environment
Ren et al. MFFNet: multimodal feature fusion network for point cloud semantic segmentation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20814998

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20814998

Country of ref document: EP

Kind code of ref document: A1