Marking removal method, device, equipment and storage medium

By training the processing model to remove logos from e-commerce product images, it solves the image distortion problem caused by watermark area repair in the existing technology, achieves smooth removal of unlabeled images and improves the accuracy of data analysis.

CN111768333BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010474563.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-29
Publication Date
2024-10-18
Estimated Expiration
2040-05-29

AI Technical Summary

Technical Problem

Existing logo removal methods require repairing the watermark area, resulting in distortion of the generated logo-free image.

Method used

By training the processing model, using the labeled image and the unlabeled image of the same source image pair, and the second unlabeled image and image type, the processing model is trained, so that the processing model can smoothly remove the logo on the product image, thereby generating Logo-free images without distortion.

Benefits of technology

It achieves the generation of unmarked images without distortion, improves the accuracy of data analysis, and ensures that the generated images truly reflect the appearance of the product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111768333B_ABST
    Figure CN111768333B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device and storage medium for removing a logo, which trains a processing model by using a logo image and a first logo-free image, as well as a second logo-free image and a second logo-free image type as a homologous image pair, and generates a trained processing model, so that the processing model can smoothly remove the logo, thereby preventing the generated logo-free product image from being distorted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for removing a mark. Background Art

[0002] With the booming development of the e-commerce industry, the number of product images used to display goods has also increased dramatically, and data analysis of product images has gradually received attention.

[0003] When e-commerce companies upload product images to their databases, they will add promotional logos to the product images by means of watermarks or by adding them to blank areas. These promotional logos will seriously interfere with the data analysis process and reduce the accuracy of the analysis results. Therefore, before conducting data analysis, it is necessary to remove the promotional logos on the product images. Existing logo removal methods include: copying the image to be processed to obtain multiple images to be processed, converting the image to be processed from an RGB image to a grayscale image, superimposing multiple grayscale images to obtain a grayscale image, segmenting the grayscale image to obtain a watermark area, then using a repair algorithm to repair the watermark area, and then converting the repaired grayscale image into an RGB image to obtain a logo-free image.

[0004] However, existing logo removal methods require repairing the watermark area, which causes distortion in the generated logo-free image. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for removing a logo, so as to solve the problem that the prior art requires repair processing of the watermark area, resulting in distortion of the generated logo-free image.

[0006] In a first aspect, the present application provides a method for removing a logo, comprising: obtaining a product image from a database, wherein a logo area is set on the product image; performing logo removal processing on the product image according to a trained processing model to generate an unmarked product image; wherein the trained processing model is obtained by training using training samples, the training samples include a marked image used as a first input data of the processing model, a first unmarked image used as a first output data of the processing model, a second unmarked image used as a second input data of the processing model, and a second unmarked image type used as a second output data of the processing model, the marked image and the first unmarked image are a homologous image pair, and the second unmarked image type is used to represent the image type of the second unmarked image.

[0007] Optionally, before removing the identification of the product image according to the trained processing model to generate the unidentified product image, the method includes: training a first model according to the identified image, the second unidentified image and the second unidentified image type to generate the trained first model, wherein the processing model includes the first model and the second model; training the second model according to the identified image, the first unidentified image and the trained first model to generate the trained second model.

[0008] Optionally, training the first model based on the marked image, the second unmarked image and the second unmarked image type to generate the trained first model specifically includes: processing the marked image according to the second model to generate a first result image; training the first model based on the first result image, the second unmarked image and the second unmarked image type to generate the trained first model.

[0009] Optionally, training the first model according to the first result image, the second unidentified image and the second unidentified image type to generate the trained first model specifically includes: training the first model using an intermediate training sample to generate the trained first model, wherein the intermediate training sample includes an intermediate image and an intermediate image type, and the intermediate image is the first result image or the second unidentified image.

[0010] Optionally, the intermediate training samples are used to train the first model to generate a trained first model, specifically including: performing recognition processing on the intermediate image according to the first model to generate a first recognition result; determining a first loss value according to the first recognition result and the intermediate image type; adjusting the model parameters of the first model according to the first loss value to generate a trained first model.

[0011] Optionally, if the intermediate image is the first result image, the intermediate image type is marked; if the intermediate image is the second unmarked image, the intermediate image type is unmarked.

[0012] Optionally, a second model is trained according to the marked image, the first unmarked image and the trained first model to generate a trained second model, specifically including: determining a second main loss value of the second model according to the marked image, the first unmarked image and the second model; determining a second auxiliary loss value of the second model according to the marked image, the second model and the trained first model; adjusting model parameters of the second model according to the second main loss value and the second auxiliary loss value to generate a trained second model.

[0013] Optionally, determining the second main loss value of the second model based on the marked image, the first unmarked image and the second model specifically includes: performing recognition processing on the marked image according to the second model to generate a second result image; and generating a second main loss value based on the second result image and the first unmarked image.

[0014] Optionally, the second auxiliary loss value of the second model is determined based on the identified image, the second model and the trained first model, specifically including: performing recognition processing on the second result image according to the first model to generate a second recognition result; and determining the second auxiliary loss value based on the second recognition result and a preset image type of the second result image.

[0015] Optionally, after removing the logo from the product image according to the trained processing model to generate a product image without a logo, the method includes: comparing the product image without a logo with a product image with a logo area set to determine the logo position.

[0016] In a second aspect, the present application provides a label removal device, comprising: an acquisition module, used to acquire a product image from a database, wherein a label area is set on the product image; a processing module, used to remove the label from the product image according to a trained processing model to generate an unlabeled product image; wherein the trained processing model is obtained by training using training samples, the training samples include a labeled image used as the first input data of the processing model, a first unlabeled image used as the first output data of the processing model, a second unlabeled image used as the second input data of the processing model, and a second unlabeled image type used as the second output data of the processing model, the labeled image and the first unlabeled image are a homologous image pair, and the second unlabeled image type is used to represent the image type of the second unlabeled image.

[0017] In a third aspect, the present application provides a device, comprising: a memory for storing programs; a processor for executing the programs stored in the memory, and when the program is executed, the processor is used to execute the identification removal method involved in the first aspect and the optional scheme.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the identification removal method involved in the first aspect and the optional scheme.

[0019] The present application provides a method, apparatus, device and storage medium for removing a logo, which trains a processing model by using a logo image and a first logo-free image of a homologous image pair, as well as a second logo-free image and a second logo-free image type, and generates a trained processing model, so that the processing model can smoothly remove the logo, thereby preventing the generated logo-free product image from being distorted. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 An application scenario diagram of the identification removal method provided in this application;

[0021] Figure 2 A schematic diagram of the process of removing a mark provided in Example 1 of the present application;

[0022] Figure 3 A product picture with a logo area provided in Example 1 of the present application;

[0023] Figure 4 This is a product image without logo provided in Example 1 of the present application;

[0024] Figure 5 A schematic diagram of the training process of the processing model provided in the second embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of the processing model provided in Example 3 of the present application;

[0026] Figure 7 A schematic diagram of the structure of a marking removal method and device provided in Embodiment 4 of the present application;

[0027] Figure 8 This is a schematic diagram of the structure of the device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] like Figure 1 As shown, the e-commerce database stores a large number of product images uploaded by e-commerce companies, which are used to describe the product appearance, functions, usage methods, etc. Users can use the images of the required products to find the corresponding products in the e-commerce database and purchase the products. When the e-commerce company uploads the product images to the e-commerce database, it will add promotional logos to the product images by watermarking or adding them in blank areas. These promotional logos will seriously interfere with the data analysis process, reduce the accuracy of the analysis results, and thus prevent users from searching for the required products. Therefore, before performing data analysis, it is necessary to remove the promotional logos on the product images.

[0030] Existing logo removal methods include: copying the image to be processed to obtain multiple images to be processed, converting the image to be processed from an RGB image to a grayscale image, superimposing multiple grayscale images to obtain a grayscale image, segmenting the grayscale image to obtain a watermark area, repairing the watermark area, and converting the repaired grayscale image to an RGB image to obtain a logo-free image. However, the existing logo removal method requires conversion between RGB images and grayscale images, resulting in distortion of the generated logo-free image.

[0031] The present application provides a method, device, equipment and storage medium for removing a logo, aiming to solve the above technical problems. The inventive concept of the present application is: by training a processing model, the processing model can smoothly remove the logo on the product, so that the generated logo-free image does not appear distorted. When training the processing model, first train the first model in the processing model, and then train the second model in conjunction with the first model, so that the trained processing model can smoothly remove the logo on the product image.

[0032] Figure 2 This is a flow chart of the method for removing a mark provided in Example 1 of the present application. Figure 2 As shown, the mark removal method provided in Example 1 of the present application includes the following steps:

[0033] S101, obtaining product images from a database.

[0034] Among them, a logo area is set on the product image, which is the area where the promotional logo is located. The promotional logo includes a belt with a slogan, a trademark logo, etc. The promotional logo can be added to the product image in the form of a watermark or directly added to the blank area of ​​the product image, such as Figure 3 As shown, a belt is provided below the product image, and a slogan is printed on the belt. The database may be the above-mentioned e-commerce database, or a database for other purposes.

[0035] S102: Remove logos from product images according to the trained processing model to generate unlabeled product images.

[0036] The trained processing model is obtained by training with training samples. The trained processing model can remove the logo of the product image and generate a product image without logo. Figure 3 Take the product image shown in the figure as an example, after being processed by the trained processing model, the following is obtained: Figure 4 The unmarked product image shown. Compared with the product image with the marked area, the unmarked product image is not distorted and can truly reflect the product.

[0037] The training samples include a labeled image, a first unlabeled image, a second unlabeled image, and a second unlabeled image type. The labeled image and the first unlabeled image are homologous image pairs, for example Figure 3 and Figure 4 . The second unmarked image type is used to represent the image type of the second unmarked image. Image types are divided into marked and unmarked, which can be represented by C1 and C0 respectively, and the image type of the second unmarked image is C0. The marked image is used as the first input data of the processing model, the first unmarked image is used as the first output data of the processing model, the second unmarked image is used as the second input data of the processing model, and the second unmarked image type is used as the second output data of the processing model. Among them, the first unmarked image and the second unmarked image type are used as reference values ​​of the processing model to calculate the loss value of the processing model, and then reversely propagate to optimize the model parameters of the processing model.

[0038] In the logo removal method provided in the first embodiment of the present application, by training the processing model, the trained processing model can smoothly remove the logo in the product image, thereby generating a logo-free product image without distortion.

[0039] The following focuses on the identification removal method provided in the second embodiment of the present application, which includes the following steps:

[0040] S201: Use training samples to train a processing model to generate a trained processing model.

[0041] The training samples include a labeled image, a first unlabeled image, a second unlabeled image, and a second unlabeled image type. The processing model includes a cascaded first model and a second model. That is, the output of the second model is used as the input of the first model. The second model is used to remove image labels, that is, the labeled image is input into the second model, and after being processed by the second model, an unlabeled image can be obtained. The first model is used to distinguish the image type, that is, the image generated by the second model is input into the first model, and after being recognized by the second model, the image type can be determined. Only the first model needs to be used during use, and the first model and the second model need to be trained together during the training process. The first model and the second model are both convolutional networks.

[0042] Among them, since there are relatively few samples of homologous image pairs, samples can be obtained through synthesis methods. First, a large number of promotional logos are collected, and the logos are fused with the original images without logos to generate images with logos. After obtaining the training samples, the processing model is trained using the training samples. Figure 5As shown, the specific training process of the processing model is: train the first model according to the marked image, the second unmarked image and the second unmarked image type to generate the trained first model. Train the second model according to the marked image, the first unmarked image and the trained first model to generate the trained second model.

[0043] Combine the following Figure 5 The process of training the first model is described in detail: the second model is used to process the labeled image to generate the first result image. Since the second model has not been trained to remove the label, the generated first result image is not accurate and still contains the promotional label. However, at this time, the first model is mainly trained, and the image type of the first result image is set to labeled, and the second unlabeled image is used as a comparison sample to train the first model. Therefore, the accuracy of the first result image has little impact on the training result image. After the first result image is generated, the first model is trained according to the first result image, the second unlabeled image, and the second unlabeled image type to generate the trained first model.

[0044] The first model is trained according to the first result image, the second unmarked image and the second unmarked image type to generate the trained first model, specifically including: determining the first result image type of the first result image according to the second unmarked image type. For example: the type of the second unmarked image is unmarked C0, that is, the second unmarked image type is C0, and the image type of the first result image is marked C1, and the first result image type is C1.

[0045] An intermediate training sample is constructed according to the first result image and the second unmarked image, wherein the intermediate training sample includes an intermediate image and an intermediate image type, and the intermediate image is the first result image or the second unmarked image. If the intermediate image is the first result image, the intermediate image type is marked; if the intermediate image is the second unmarked image, the intermediate image type is unmarked.

[0046] The first model is trained using the intermediate training sample to generate a trained first model. The specific training process of the intermediate training sample includes: performing recognition processing on the intermediate image according to the first model to generate a first recognition result, wherein the first recognition result is an unidentified type or an identified type. A first loss value is determined according to the first recognition result and the intermediate image type. A model parameter of the first model is adjusted according to the first loss value to generate a trained first model.

[0047] Combine the following Figure 5The following focuses on the process of training the second model: determining the second main loss value of the second model based on the labeled image, the first unlabeled image, and the second model. Determining the second auxiliary loss value of the second model based on the labeled image, the second model, and the trained first model. Adjusting the model parameters of the second model based on the second main loss value and the second auxiliary loss value to generate the trained second model.

[0048] The method of determining the second main loss value of the second model according to the marked image, the first unmarked image and the second model specifically includes: performing recognition processing on the marked image according to the second model to generate a second result image, wherein the second result image is an image generated after de-marking. The second main loss value is generated according to the second result image and the first unmarked image.

[0049] The second auxiliary loss value of the second model is determined according to the identified image, the second model and the trained first model, specifically including: performing recognition processing on the second result image according to the first model to generate a second recognition result. The second auxiliary loss value is determined according to the second recognition result and the preset image type of the second result image. Since the second model is being trained at this time, in order to enable the second model to generate an unidentified image, the preset image type of the second result image is set to an unidentified type.

[0050] S202: Obtain product images from e-commerce data.

[0051] This step has been described in detail in S101 and will not be repeated here.

[0052] S203: Remove logos from the product image according to the trained processing model to generate a product image without logos.

[0053] This step has been described in detail in S102 and will not be repeated here.

[0054] The logo removal method provided in Example 2 of the present application adopts a rotation training method, first training the first model, and then training the second model in combination with the trained first model, so that the second model can smoothly remove the logo on the product image, thereby preventing the generated unmarked product from being distorted.

[0055] The following describes the identification removal method provided in the third embodiment of the present application in conjunction with the convolutional network. The identification removal method includes the following steps:

[0056] S301: Use training samples to train a processing model to generate a trained processing model.

[0057] This step has been described in detail in S201 and will not be repeated here. The following focuses on describing the structure of the processing model as a specific implementation method. Figure 6As shown, the second model includes multiple convolution modules, multiple pooling layers and multiple fully connected layers. The identified image is processed by multiple convolution modules to obtain a feature map, and the feature map is downsampled by the pooling layer to achieve feature pooling. The first model includes multiple convolution layers, multiple fully connected layers and 1 activation layer, wherein the activation layer is implemented by the Sigmoid function. Based on the above model structure, the first model is trained using the identified image, the second unidentified image and the second unidentified image type. After training the first model, the second model is trained according to the identified image, the first unidentified image and the trained first model, thereby completing the processing model training.

[0058] As another specific implementation method, the skeleton model of the processing model can be based on the MobileNet_V2 model. After the processing model is built, the processing model can be pre-trained.

[0059] S302: Obtain product images from e-commerce data.

[0060] This step has been described in detail in S101 and will not be repeated here.

[0061] S303: Remove the logo from the product image according to the trained processing model to generate a product image without logo.

[0062] This step has been described in detail in S102 and will not be repeated here.

[0063] S304: Compare the product image without the logo with the product image with the logo area to determine the logo position.

[0064] Among them, the logo positioning can be achieved by comparing the product image without the logo with the product image with the logo area on a pixel-by-pixel basis.

[0065] In the logo removal method provided in the third embodiment of the present application, after the product image without logo is generated by processing the model, the product image without logo is compared with the product image with the logo area set, so as to realize logo positioning.

[0066] Figure 7 This is a schematic diagram of the structure of the marking removal method and device provided in Example 4 of the present application. Figure 7 As shown, the present application provides a marking removal device 400, comprising:

[0067] An acquisition module 401 is used to acquire a product image, wherein a logo area is set on the product image;

[0068] A processing module 402 is used to remove the logo of the product image according to the trained processing model to generate a product image without logo;

[0069] Among them, the trained processing model is obtained by training using training samples, and the training samples include a marked image used as the first input data of the processing model, a first unmarked image used as the first output data of the processing model, a second unmarked image used as the second input data of the processing model, and a second unmarked image type used as the second output data of the processing model, the marked image and the first unmarked image are a homologous image pair, and the second unmarked image type is used to represent the image type of the second unmarked image.

[0070] Optionally, the device also includes a training module 403, which is used to: train a first model based on a marked image, a second unmarked image and a second unmarked image type to generate a trained first model, wherein the processing model includes a first model and a second model; train a second model based on a marked image, a first unmarked image and the trained first model to generate a trained second model.

[0071] Optionally, the training module 403 is specifically used to: process the marked image according to the second model to generate a first result image; train the first model according to the first result image, the second unmarked image and the second unmarked image type to generate a trained first model.

[0072] Optionally, the training module 403 is specifically used to: train the first model using intermediate training samples to generate a trained first model, wherein the intermediate training samples include intermediate images and intermediate image types, and the intermediate image is the first result image or the second unlabeled image.

[0073] Optionally, the training module 403 is specifically used to: perform recognition processing on the intermediate image according to the first model to generate a first recognition result; determine a first loss value according to the first recognition result and the intermediate image type; adjust the model parameters of the first model according to the first loss value to generate a trained first model.

[0074] Optionally, if the intermediate image is the first result image, the intermediate image type is marked; if the intermediate image is the second unmarked image, the intermediate image type is unmarked.

[0075] Optionally, the training module 403 is specifically used to: determine a second main loss value of the second model based on the marked image, the first unmarked image and the second model; determine a second auxiliary loss value of the second model based on the marked image, the second model and the trained first model; adjust the model parameters of the second model according to the second main loss value and the second auxiliary loss value to generate a trained second model.

[0076] Optionally, the training module 403 is specifically used to: perform recognition processing on the marked image according to the second model to generate a second result image; and generate a second main loss value according to the second result image and the first unmarked image.

[0077] Optionally, the training module 403 is specifically used to: perform recognition processing on the second result image according to the first model to generate a second recognition result; and determine a second auxiliary loss value according to the second recognition result and a preset image type of the second result image.

[0078] Optionally, the device further comprises a positioning module 404, and the positioning module 404 is used to compare the product image without the logo with the product image with the logo area set to determine the logo position.

[0079] Figure 8 This is a schematic diagram of the structure of an electronic device shown in Example 6 of the present application. Figure 8 As shown, the device 500 provided in this embodiment includes: a transmitter 501, a receiver 502, a memory 503, and a processor 502.

[0080] A transmitter 501, used for sending instructions and data;

[0081] Receiver 502, for receiving instructions and data;

[0082] Memory 503, used for storing computer-executable instructions;

[0083] The processor 504 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the identification removal method in the above embodiment. For details, please refer to the relevant description in the above identification removal method embodiment.

[0084] Optionally, the memory 503 may be independent or integrated with the processor 504 .

[0085] When the memory 503 is independently provided, the device further includes a bus for connecting the memory 503 and the processor 504 .

[0086] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the identification removal method performed by the above device is implemented.

[0087] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for removing a mark, characterized in that: include: Acquire a product image from a database, wherein a logo area is set on the product image; Performing label removal processing on the product image according to the trained processing model to generate a product image without label; The trained processing model is obtained by training using training samples, wherein the processing model includes a first model and a second model, the first model and the second model are both convolutional networks, the first model is used to distinguish image types, and the second model is used to remove image identifiers; Before performing label removal processing on the product image according to the trained processing model to generate a product image without a label, the method includes: processing the labeled image according to the second model to generate a first result image; training the first model according to the first result image, the second label-free image and the type of the second label-free image to generate a trained first model; A second main loss value of the second model is determined according to the marked image, the first unmarked image and the second model; a second auxiliary loss value of the second model is determined according to the marked image, the second model and the trained first model; model parameters of the second model are adjusted according to the second main loss value and the second auxiliary loss value to generate a trained second model, wherein the marked image and the first unmarked image are a homologous image pair, and the second unmarked image type is used to represent the image type of the second unmarked image.

2. The method for removing a mark according to claim 1, characterized in that: The first model is trained according to the first result image, the second unmarked image, and the type of the second unmarked image to generate a trained first model, specifically comprising: The first model is trained using intermediate training samples to generate the trained first model, wherein the intermediate training samples include intermediate images and intermediate image types, and the intermediate image is the first result image or the second unmarked image.

3. The method for removing a mark according to claim 2, characterized in that: The step of training the first model using the intermediate training sample to generate the trained first model specifically includes: Performing recognition processing on the intermediate image according to the first model to generate a first recognition result; Determine a first loss value according to the first recognition result and the intermediate image type; The model parameters of the first model are adjusted according to the first loss value to generate a trained first model.

4. The method for removing a mark according to claim 2 or 3, characterized in that: If the intermediate image is the first result image, the intermediate image type is marked; if the intermediate image is the second unmarked image, the intermediate image type is unmarked.

5. The method for removing a mark according to claim 1, characterized in that: Determining a second principal loss value of the second model according to the labeled image, the first unlabeled image, and the second model specifically includes: Performing recognition processing on the marked image according to the second model to generate a second result image; The second main loss value is generated according to the second result image and the first unlabeled image.

6. The method for removing a mark according to claim 5, characterized in that: Determining a second auxiliary loss value of the second model according to the identified image, the second model, and the trained first model specifically includes: Performing recognition processing on the second result image according to the trained first model to generate a second recognition result; The second auxiliary loss value is determined according to the second recognition result and a preset image type of the second result image.

7. The method for removing a mark according to claim 1, characterized in that: After removing the logo from the product image according to the trained processing model to generate a product image without logo, the method includes: The product image without the mark is compared with the product image with the mark area to determine the mark position.

8. A marking removal device, characterized in that: include: An acquisition module, used for acquiring a product image from a database, wherein a marking area is provided on the product image; A processing module, used to remove the logo from the product image according to the trained processing model to generate a product image without logo; The trained processing model is obtained by training using training samples, wherein the processing model includes a first model and a second model, the first model and the second model are both convolutional networks, the first model is used to distinguish image types, and the second model is used to remove image identifiers; The device further includes a training module, the training module being used to: process the marked image according to the second model to generate a first result image; train the first model according to the first result image, the second unmarked image and the type of the second unmarked image to generate a trained first model; A second main loss value of the second model is determined according to the marked image, the first unmarked image and the second model; a second auxiliary loss value of the second model is determined according to the marked image, the second model and the trained first model; model parameters of the second model are adjusted according to the second main loss value and the second auxiliary loss value to generate a trained second model, wherein the marked image and the first unmarked image are a homologous image pair, and the second unmarked image type is used to represent the image type of the second unmarked image.

9. An electronic device, characterized in that: include: Memory, used to store programs; A processor is used to execute the program stored in the memory. When the program is executed, the processor is used to execute the identification removal method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the identification removal method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Robot cleaner, control method applied to same and terminal

    CN105511478A

  • Adversarial neural network-based watermark removal method, device and apparatus and readable medium

    CN108805789A