A method for constructing a picture library and related devices

By combining visual information and metadata filters, it solves the problem of low accuracy in filtering advertising images in the existing technology, builds a safer image library, reduces the risk of sensitive images being used as advertising images, and improves user experience. .

CN114168771BActive Publication Date: 2024-10-29BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010953012.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-11
Publication Date
2024-10-29
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

When the existing technology filters advertisement images, the accuracy of image classification and detection methods is low. It only considers visual information without considering the metadata of the image, resulting in the possibility of retaining images involving pornographic, scary, violent and other sensitive factors, which affects User experience.

Method used

Use a target filter that combines image visual information filters and metadata filters to comprehensively filter pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture collection to build a safer picture library.

Benefits of technology

By considering the metadata of images, the accuracy of filtering sensitive images is improved, the risk of sensitive images being used as advertising images is reduced, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114168771B_ABST
    Figure CN114168771B_ABST
Patent Text Reader

Abstract

The present application discloses a method for constructing a picture library and a related device, the method comprising: first, mining each user query statement and each corresponding picture in the advertisement log to obtain a candidate picture set; then, filtering the pictures in the candidate picture set through a target filter including both a picture visual information filter and a picture metadata filter to obtain a first target picture set; finally, constructing a picture library based on each picture in the first target picture set. It can be seen that when using the target filter to filter the pictures in the candidate picture set, not only the visual information of the picture is considered, but also the metadata of the picture is considered, and sensitive pictures involving sensitive factors such as pornography, terror, and violence in the picture set are comprehensively filtered from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures.
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 for constructing an image library and related devices. Background Art

[0002] At present, the pictures that match the advertisement in the picture advertisement are called the advertisement pictures. The advertisement pictures can present good visual effects, thereby increasing the click-through rate of the picture advertisement. Taking into account government supervision and legal provisions, sensitive pictures involving pornography, terror, violence and other sensitive factors should not appear in the picture advertisement. Therefore, in the prior art, sensitive pictures involving pornography, terror, violence and other sensitive factors are generally filtered out based on picture classification and picture detection, and the pictures retained after filtering are used as advertisement pictures.

[0003] However, after research, the inventors found that the accuracy of the above-mentioned image classification and image detection methods is low, and the filtering of images based on image classification and image detection methods only considers the visual information of the images, and does not consider other information of the images. As a result, the images retained after filtering by this method are still likely to include sensitive images involving sensitive factors such as pornography, terror, and violence, and using them as advertising images will seriously affect the user experience. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a method and related devices for constructing a picture library, which not only considers the visual information of the picture, but also the metadata of the picture, and comprehensively filters sensitive pictures involving sensitive factors such as pornography, terror, and violence from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a picture library, the method comprising:

[0006] Based on the advertising log, each user query statement and the corresponding pictures are mined to obtain a set of candidate matching pictures;

[0007] Filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter;

[0008] A picture library is constructed based on each picture in the first target picture set.

[0009] Optionally, filtering the pictures in the candidate picture set based on the target filter to obtain the first target picture set includes:

[0010] Obtaining the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter;

[0011] Obtaining metadata sensitivity of each picture in the candidate picture set based on the picture metadata filter;

[0012] Obtaining a comprehensive picture sensitivity of each picture in the candidate picture set based on the visual information sensitivity and metadata sensitivity of each picture in the candidate picture set;

[0013] The pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity in the candidate picture set are filtered to obtain the first target picture set.

[0014] Optionally, the image metadata filter includes a text filter and / or a site filter.

[0015] Optionally, the image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive person detector and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; and the site filter includes a sensitive site detector.

[0016] Optionally, after filtering the pictures in the candidate picture set based on the target filter to obtain the first target picture set, the method further includes:

[0017] If the similarity between the image semantic features of the first image in the first target image set and the image semantic features of the second image in the filtered image set is greater than a preset similarity, and the first image meets a preset sensitive image condition, the first image is determined to be a sensitive image; the filtered image set is a difference set between the candidate image set and the first target image set;

[0018] Filter the sensitive pictures in the first target picture set to obtain a second target picture set;

[0019] Correspondingly, the step of constructing a picture library based on each picture in the first target picture set is specifically as follows:

[0020] The picture library is constructed based on each picture in the second target picture set.

[0021] Optionally, after filtering the pictures in the candidate picture set based on the target filter to obtain the first target picture set, the method further includes:

[0022] Obtaining a comprehensive query sensitivity of each of the user query statements based on the text filter, the comprehensive image sensitivity of each image corresponding to each of the user query statements, and the first preset comprehensive image sensitivity;

[0023] If the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to the second preset comprehensive picture sensitivity, the third picture is determined to be a sensitive picture; and the second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity;

[0024] If the comprehensive query sensitivity of the user query statement corresponding to the fourth image in the filtered image set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive image sensitivity of the fourth image is less than or equal to the third preset comprehensive image sensitivity, the third image is determined to be a normal image; the filtered image set is the difference between the candidate image set and the first target image set, and the third preset comprehensive image sensitivity is greater than the first preset comprehensive image sensitivity;

[0025] Filtering the sensitive pictures in the first target picture set, adding the normal pictures to the first target picture set, and obtaining a third target picture set;

[0026] Correspondingly, the step of constructing a picture library based on each picture in the first target picture set is specifically as follows:

[0027] The picture library is constructed based on each picture in the third target picture set.

[0028] Optionally, obtaining the comprehensive query sensitivity of each of the user query statements based on the text filter, the comprehensive image sensitivity of each image corresponding to each of the user query statements, and the first preset comprehensive image sensitivity includes:

[0029] Obtaining the query sensitivity of each of the user query statements based on the text filter;

[0030] Based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity, obtaining the proportion of sensitive images corresponding to each of the user query statements;

[0031] Based on the query sensitivity of each of the user query statements and the corresponding sensitive image ratio, the comprehensive query sensitivity of each of the user query statements is obtained.

[0032] Optionally, also include:

[0033] The sensitive icon detector, the sensitive person detector, the sensitive text detector, the sensitive word detector and / or the sensitive site detector are dynamically updated based on update filtering requirements.

[0034] Optionally, also include:

[0035] The sensitive image classifier and / or the sensitive text classifier are optimized and updated based on each image in the image library.

[0036] In a second aspect, an embodiment of the present application provides a device for constructing a picture library, the device comprising:

[0037] A first obtaining unit is used to mine each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set;

[0038] A second obtaining unit is used to filter the pictures in the candidate picture set based on a target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter;

[0039] A construction unit is used to construct a picture library based on the first target picture set.

[0040] Optionally, the second obtaining unit includes:

[0041] A first obtaining subunit, configured to obtain the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter;

[0042] A second obtaining subunit, configured to obtain the metadata sensitivity of each picture in the candidate matching picture set based on the picture metadata filter;

[0043] A third obtaining subunit is used to obtain the comprehensive picture sensitivity of each picture in the candidate picture set based on the visual information sensitivity and metadata sensitivity of each picture in the candidate picture set;

[0044] The fourth obtaining subunit is used to filter the pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity in the candidate picture set to obtain the first target picture set.

[0045] Optionally, the image metadata filter includes a text filter and / or a site filter.

[0046] Optionally, the image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive person detector and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; and the site filter includes a sensitive site detector.

[0047] Optionally, the device further comprises:

[0048] A first determination unit is configured to determine that the first picture is a sensitive picture if the similarity between the picture semantic features of the first picture in the first target picture set and the picture semantic features of the second picture in the filtered picture set is greater than a preset similarity, and the first picture meets a preset sensitive picture condition; the filtered picture set is a difference set between the candidate picture set and the first target picture set;

[0049] A third obtaining unit, configured to filter the sensitive pictures in the first target picture set to obtain a second target picture set;

[0050] Correspondingly, the construction unit is specifically used for:

[0051] The picture library is constructed based on each picture in the second target picture set.

[0052] Optionally, the device further comprises:

[0053] a fourth obtaining unit, configured to obtain a comprehensive query sensitivity of each of the user query statements based on the text filter, the comprehensive image sensitivity of each image corresponding to each of the user query statements, and the first preset comprehensive image sensitivity;

[0054] a second determination unit, configured to determine that the third picture is a sensitive picture if the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to a preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to a second preset comprehensive picture sensitivity; and the second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity;

[0055] A third determination unit is used to determine that the third picture is a normal picture if the comprehensive query sensitivity of the user query statement corresponding to the fourth picture in the filtered picture set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the fourth picture is less than or equal to the third preset comprehensive picture sensitivity; the filtered picture set is the difference set of the candidate picture set and the first target picture set, and the third preset comprehensive picture sensitivity is greater than the first preset comprehensive picture sensitivity;

[0056] a fifth obtaining unit, configured to filter the sensitive pictures in the first target picture set, add the normal pictures to the first target picture set, and obtain a third target picture set;

[0057] Correspondingly, the construction unit is specifically used for:

[0058] The picture library is constructed based on each picture in the third target picture set.

[0059] Optionally, the fourth obtaining unit includes:

[0060] a fifth obtaining subunit, configured to obtain the query sensitivity of each of the user query statements based on the text filter;

[0061] a sixth obtaining subunit, configured to obtain a proportion of sensitive images corresponding to each of the user query statements based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity;

[0062] The seventh obtaining subunit is used to obtain the comprehensive query sensitivity of each user query statement based on the query sensitivity of each user query statement and the corresponding sensitive image ratio.

[0063] Optionally, the device further comprises:

[0064] The first updating unit is used to dynamically update the sensitive icon detector, the sensitive person detector and the sensitive text detector, the sensitive word detector and / or the sensitive site detector based on update filtering requirements.

[0065] Optionally, the device further comprises:

[0066] The second updating unit is used to optimize and update the sensitive image classifier and / or the sensitive text classifier based on each image in the picture library.

[0067] In a third aspect, an embodiment of the present application provides a device for obtaining a target image set, the device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:

[0068] Based on the advertising log, each user query statement and the corresponding pictures are mined to obtain a set of candidate matching pictures;

[0069] Filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter;

[0070] Construct a picture library based on the first target picture set.

[0071] In a fourth aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute the method for constructing a picture library as described in any one of the first aspects above.

[0072] Compared with the prior art, this application has at least the following advantages:

[0073] Adopting the technical solution of the embodiment of the present application, first, each user query statement and each corresponding picture are mined in the advertising log to obtain a candidate picture set; then, through the target filter including both the picture visual information filter and the picture metadata filter, the pictures in the candidate picture set are filtered to obtain the first target picture set; finally, a picture library is constructed based on each picture in the first target picture set. It can be seen that when using the target filter to filter the pictures in the candidate picture set, not only the visual information of the picture is considered, but also the metadata of the picture is considered, and sensitive pictures involving sensitive factors such as pornography, terror, and violence in the picture set are comprehensively filtered from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0075] Figure 1 A schematic diagram of a system framework involved in an application scenario in an embodiment of the present application;

[0076] Figure 2 A schematic diagram of a process for constructing a picture library provided in an embodiment of the present application;

[0077] Figure 3 A schematic diagram of another method for constructing a picture library provided in an embodiment of the present application;

[0078] Figure 4 A schematic diagram of a process for constructing a picture library provided in an embodiment of the present application;

[0079] Figure 5 A schematic diagram of the structure of a device for constructing a picture library provided in an embodiment of the present application;

[0080] Figure 6 A schematic diagram of the structure of a device for building a picture library provided in an embodiment of the present application;

[0081] Figure 7 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0083] At present, image classification methods and image detection methods are generally used to filter out sensitive images involving pornography, terror, violence and other sensitive factors, and the images retained after filtering are used as advertising pictures. However, after research, the inventors found that the accuracy of the above-mentioned image classification method and image detection method is low, and the method only considers the visual information of the image, and does not consider other information of the image, resulting in that the images retained after filtering by the method are still likely to include sensitive images involving pornography, terror, violence and other sensitive factors, and using them as advertising pictures seriously affects the user experience.

[0084] In order to solve this problem, in an embodiment of the present application, each user query statement and each corresponding picture are mined in the advertising log to obtain a candidate picture set; through a target filter including both a picture visual information filter and a picture metadata filter, the pictures in the candidate picture set are filtered to obtain a first target picture set; and a picture library is constructed based on each picture in the first target picture set. It can be seen that when using the target filter to filter the pictures in the candidate picture set, not only the visual information of the picture is considered, but also the metadata of the picture is considered, and sensitive pictures involving sensitive factors such as pornography, terror, and violence in the picture set are comprehensively filtered from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures.

[0085] For example, one of the scenarios of the embodiments of the present application may be applied to Figure 1 In the scenario shown, the scenario includes a terminal 101 and a processor 102. The terminal 101 records advertising logs related to the user. The processor 102 obtains the advertising logs from the terminal 101. The construction of the picture library is completed using the implementation method provided in the embodiment of the present application. The user selects pictures from the picture library of the processor 102 through the terminal 101 as advertising pictures.

[0086] It can be understood that in the above application scenario, although the action description of the implementation mode of the present application is executed by the processor 102, the present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation mode of the present application are executed.

[0087] It can be understood that the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.

[0088] The following describes in detail the method for constructing a picture library and the specific implementation of the related devices in the embodiments of the present application in conjunction with the accompanying drawings.

[0089] Exemplary Methods

[0090] See also Figure 2 , shows a schematic flow chart of a method for constructing a picture library in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0091] Step 201: mining each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set.

[0092] In the embodiment of the present application, since sensitive pictures involving pornography, terror, violence and other sensitive factors should not appear in the accompanying picture advertisements, it is necessary to filter a large number of pictures matching the advertisements to remove sensitive pictures involving pornography, terror, violence and other sensitive factors; before filtering, it is first necessary to obtain a large number of pictures matching the advertisements to form a candidate accompanying picture set.

[0093] Specifically, the advertisement log records the user query statement, the query number of the user query statement, the picture corresponding to the user query statement, the number of clicks and the number of displays of the picture, and the number of clicks corresponding to the user query statement with a higher query number or the picture with a higher display number can be selected from the advertisement log to form a candidate matching picture set. That is, first, each picture corresponding to each user query statement with a query number greater than or equal to a preset query number is selected from the advertisement log, and then the pictures with a click number greater than or equal to a preset click number or a display number greater than or equal to a preset display number are selected to form a candidate matching picture set.

[0094] Step 202: Filter the pictures in the candidate picture set based on a target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter.

[0095] Since the accuracy of filtering sensitive images involving pornography, terror, violence and other sensitive factors based on image classification and image detection in the prior art is low, and only the visual information of the image is considered without considering other information of the image, the images retained after filtering in this way are still likely to include sensitive images involving pornography, terror, violence and other sensitive factors. Therefore, in the embodiment of the present application, when filtering the images in the candidate matching image set obtained in step 201, it is necessary not only to consider the visual information of the image, but also to consider the metadata of the image, and comprehensively filter the sensitive images involving pornography, terror, violence and other sensitive factors in the matching image set from different angles; that is, the image visual information filter and the image metadata filter can be combined as the target filter, which is used to filter the images in the candidate matching image set obtained in step 201.

[0096] In the embodiment of the present application, since the metadata of the picture generally refers to the text data such as the title and / or description of the picture, as well as the site data to which the picture belongs; therefore, the picture metadata filter can be either a text filter or a site filter, or a combination of a text filter and a site filter. That is, in an optional implementation of the embodiment of the present application, the picture metadata filter includes a text filter and / or a site filter.

[0097] In the embodiment of the present application, the image visual information filter is used to filter sensitive images involving sensitive factors such as pornography, terror, and violence at the visual information level. The sensitive images involving sensitive factors such as pornography, terror, and violence at the visual information level refer to images with a category of sensitive images, images including sensitive icon elements, images including sensitive character elements, and images including sensitive text elements, etc. The text filter is used to filter sensitive images involving sensitive factors such as pornography, terror, and violence at the text data level. The sensitive images involving sensitive factors such as pornography, terror, and violence at the text data level refer to images with a category of sensitive text and text data including sensitive word elements, etc. The site filter filters sensitive images involving sensitive factors such as pornography, terror, and violence at the site data level. The sensitive images involving sensitive factors such as pornography, terror, and violence at the site data level refer to images whose site data belongs to sensitive sites, etc. Therefore, in an optional implementation of the embodiment of the present application, the image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive character detector, and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; and the site filter includes a sensitive site detector.

[0098] As an example, the target filter includes a picture visual information filter and a picture metadata filter, the picture metadata filter includes a text filter and a site filter; the picture visual information filter includes a sensitive picture classifier, a sensitive icon detector, a sensitive person detector and a sensitive text detector; the text filter includes a sensitive text classifier and a sensitive word detector; the site filter includes a sensitive site detector. The target filter is used to perform step 202, and the sensitive picture classification, sensitive icon detection, sensitive person detection, sensitive text detection, sensitive text classification, sensitive word detection and sensitive site detection technologies are integrated to comprehensively filter the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture set, so that the accuracy of filtering the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture set is higher than that of other filters, that is, the effect of filtering the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture set is better.

[0099] In the embodiment of the present application, the specific implementation process of step 202 refers to using the image visual information filter in the target filter to calculate the visual information sensitivity of each image in the candidate matching picture set. Similarly, using the image metadata filter in the target filter to calculate the metadata sensitivity of each image in the candidate matching picture set; for each image in the selected matching picture set, its visual information sensitivity and metadata sensitivity can be combined to calculate its comprehensive image sensitivity. The higher the comprehensive image sensitivity, the higher the probability that the image is a sensitive image involving sensitive factors such as pornography, terror, violence, etc., and the lower the comprehensive image sensitivity, the lower the probability that the image is a sensitive image involving sensitive factors such as pornography, terror, violence, etc. A more appropriate comprehensive image sensitivity is pre-set as the first preset comprehensive image sensitivity. If the preset comprehensive image sensitivity of the image in the selected matching picture set is greater than or equal to the first preset comprehensive image sensitivity, it means that the image is a sensitive image involving sensitive factors such as pornography, terror, violence, etc. that needs to be filtered. After filtering the images whose comprehensive image sensitivity in the candidate matching picture set is greater than or equal to the first preset comprehensive image sensitivity, the retained images form the first target matching picture set. Therefore, in an optional implementation of the embodiment of the present application, the step 202 may include the following steps:

[0100] Step A: obtaining the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter.

[0101] Step B: obtaining the metadata sensitivity of each picture in the candidate picture set based on the picture metadata filter.

[0102] Step C: based on the visual information sensitivity and metadata sensitivity of each picture in the candidate matching picture set, obtain the comprehensive picture sensitivity of each picture in the candidate matching picture set.

[0103] Step D: Filter the pictures in the candidate picture set whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity to obtain the first target picture set.

[0104] As an example, the first preset comprehensive image sensitivity is 80. If the comprehensive image sensitivity of picture A in the candidate image set is 90, the comprehensive image sensitivity of 90 is greater than the first preset comprehensive image sensitivity of 80, indicating that picture A is a sensitive picture that needs to be filtered and involves sensitive factors such as pornography, terror, and violence; if the comprehensive image sensitivity of picture B in the candidate image set is 70, the comprehensive image sensitivity of 70 is less than the first preset comprehensive image sensitivity of 80, indicating that picture B is a normal picture that needs to be retained and does not involve sensitive factors such as pornography, terror, and violence.

[0105] Step 203: constructing a picture library based on each picture in the first target picture set.

[0106] Since each picture in the first target picture set obtained in step 202 is a picture whose comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity, it is considered to be a normal picture that does not involve sensitive factors such as pornography, terror, violence, etc., and can be used as an advertisement picture; therefore, in the embodiment of the present application, a picture library is constructed by using each picture in the first target picture set, so that the pictures in the constructed picture library can be safer as advertisement pictures, thereby greatly reducing the risk of using sensitive pictures as advertisement pictures.

[0107] In an embodiment of the present application, when the filtering requirements are updated, sensitive icons, sensitive persons, sensitive texts, sensitive words, and sensitive sites may change. It is necessary to timely update the sensitive icon detector, sensitive person detector, sensitive text detector, sensitive word detector, and / or sensitive site detector according to the updated filtering requirements, which is recorded as the updated filtering requirements, to improve the filtering accuracy and filtering effect of the target filter. Therefore, in an optional implementation of the embodiment of the present application, for example, the step of dynamically updating the sensitive icon detector, the sensitive person detector, the sensitive text detector, the sensitive word detector, and / or the sensitive site detector based on the updated filtering requirements may also be included.

[0108] In the embodiment of the present application, since each picture in the picture library is considered to be a normal picture that does not involve sensitive factors such as pornography, terror, violence, etc., each picture in the picture library can also be used as a normal picture sample marked with a normal label and a sensitive picture sample marked with a sensitive label involving sensitive factors such as pornography, terror, violence, etc., to jointly train a sensitive picture classifier and / or a sensitive text classifier to optimize and update the sensitive picture classifier and / or the sensitive text classifier. That is, in an optional implementation of the embodiment of the present application, for example, it also includes the step of optimizing and updating the sensitive picture classifier and / or the sensitive text classifier based on each picture in the picture library. Of course, after the sensitive picture classifier and / or the sensitive text classifier is optimized and updated, its filtering accuracy is higher, that is, it is more accurate when obtaining the visual information sensitivity and / or the metadata sensitivity; therefore, the first preset comprehensive picture sensitivity can also be dynamically adjusted.

[0109] In the embodiment of the present application, advertisements are time-sensitive. After a period of time, new advertisement logs are more valuable than original advertisement logs. It is necessary to select from the new advertisement logs the pictures corresponding to the pictures with a number of clicks greater than or equal to the preset number of clicks or a number of displays greater than or equal to the preset number of displays, and form a candidate picture set. Therefore, in an optional implementation of the embodiment of the present application, for example, the step of mining each user query statement and each corresponding picture based on the new advertisement log to obtain a candidate picture set is also included.

[0110] Through the various implementation methods provided in this embodiment, first, each user query statement and each corresponding picture are mined in the advertising log to obtain a candidate picture set; then, through a target filter including both a picture visual information filter and a picture metadata filter, the pictures in the candidate picture set are filtered to obtain a first target picture set; wherein the picture metadata filter includes a text filter and / or a site filter; finally, a picture library is constructed based on each picture in the first target picture set. It can be seen that when using the target filter to filter the pictures in the candidate picture set, not only the visual information of the picture is considered, but also the metadata of the picture is considered, and sensitive pictures involving sensitive factors such as pornography, terror, and violence in the picture set are comprehensively filtered from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures.

[0111] It should be noted that, based on the first target picture set obtained in the above steps 201-202, the comprehensive picture sensitivity of each picture in the first target picture set is less than the first preset comprehensive picture sensitivity, but the first preset comprehensive picture sensitivity is pre-set, and pictures whose comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity are not necessarily normal pictures that do not involve sensitive factors such as pornography, terror, violence, etc. In order to further filter sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the first target picture set, the pictures previously filtered from the candidate picture set are formed into a filtered picture set, and the similarity between the picture semantic features of the pictures in the first target picture set and the picture semantic features of the pictures in the filtered picture set can be determined; when the similarity between the picture semantic features of a certain picture in the first target picture set and a certain or certain pictures in the filtered picture set is high, and the picture meets the preset sensitive picture condition set based on the characteristics of the sensitive picture, the picture is also considered to be a sensitive picture involving sensitive factors such as pornography, terror, violence, etc. that needs to be filtered; based on the above sensitive pictures in the filtered first target picture set, the second target picture set is obtained. A picture library is constructed based on each picture in the second target picture set. Compared with the first target picture set, the pictures in the constructed picture library are safer as advertising pictures, thereby further greatly reducing the risk of using sensitive pictures as advertising pictures.

[0112] See also Figure 3 , shows a schematic flow chart of another method for constructing a picture library in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0113] Step 301: mining each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set.

[0114] Step 302: Filter the pictures in the candidate picture set based on a target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter.

[0115] In this embodiment, since steps 301 to 302 are the same as steps 201 to 202 in the above embodiment, the detailed description of steps 301 to 302 refers to the detailed description of steps 201 to 202 in the above embodiment, which will not be repeated here.

[0116] Step 303: If the similarity between the image semantic features of the first image in the first target image set and the image semantic features of the second image in the filtered image set is greater than a preset similarity, and the first image meets a preset sensitive image condition, determine that the first image is a sensitive image; the filtered image set is the difference between the candidate image set and the first target image set.

[0117] Step 304: Filter the sensitive images in the first target image set to obtain a second target image set.

[0118] Step 305: construct the picture library based on each picture in the second target picture set.

[0119] In an optional implementation of the embodiment of the present application, the method also includes: dynamically updating the sensitive icon detector, the sensitive person detector and the sensitive text detector, the sensitive word detector and / or the sensitive site detector based on update filtering requirements.

[0120] In an optional implementation of the embodiment of the present application, the method further includes: optimizing and updating the sensitive image classifier and / or the sensitive text classifier based on each image in the picture library.

[0121] In an optional implementation of the embodiment of the present application, the method further includes: mining each user query statement and each corresponding picture based on the new advertisement log to obtain a candidate picture set.

[0122] Through the various implementation methods provided in this embodiment, when filtering pictures in the candidate picture set using the target filter, not only the visual information of the picture but also the metadata of the picture are considered, and the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture set are comprehensively filtered from different angles to obtain the first target picture set; the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the first target picture set are further filtered through the picture semantic features and preset sensitive picture conditions to obtain the second target picture set; the pictures in the constructed picture library are made safer as advertising pictures, thereby further greatly reducing the risk of using sensitive pictures as advertising pictures.

[0123] It should be noted that, based on the first target picture set obtained in the above steps 201-202, the comprehensive picture sensitivity of each picture in the first target picture set is less than the first preset comprehensive picture sensitivity, but the first preset comprehensive picture sensitivity is pre-set, and pictures whose comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity are not necessarily normal pictures that do not involve sensitive factors such as pornography, terror, violence, etc., and pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity are not necessarily sensitive pictures that involve sensitive factors such as pornography, terror, violence, etc.

[0124] In order to further filter out sensitive images involving sensitive factors such as pornography, terror, violence, etc. in the first target picture set, normal images that do not involve sensitive factors such as pornography, terror, violence, etc. from the images previously filtered from the candidate picture set are added back to the first target picture set; the comprehensive query sensitivity of the user query statement can be calculated by determining whether the comprehensive image sensitivity of each image corresponding to the text filter and the user query statement is greater than or equal to the first preset comprehensive image sensitivity; for user query statements with higher comprehensive query sensitivity, even if the comprehensive image sensitivity of the corresponding image is lower than the first preset comprehensive image sensitivity, the image should be identified as a sensitive image involving sensitive factors such as pornography, terror, violence, etc. that needs to be filtered; and for user query statements with lower comprehensive query sensitivity, even if the comprehensive image sensitivity of the corresponding image is higher than the first preset comprehensive image sensitivity, the image should be identified as a normal image that does not involve sensitive factors such as pornography, terror, violence, etc. that needs to be added back to the first target picture set, thereby obtaining a third target picture set. A picture library is constructed based on each picture in the third target picture set. Compared with the first target picture set, the pictures in the constructed picture library are safer as advertising pictures, thereby further greatly reducing the risk of using sensitive pictures as advertising pictures.

[0125] See also Figure 4 , shows a flow chart of another method for constructing a picture library in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0126] Step 401: mining each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set.

[0127] Step 402: Filter the pictures in the candidate picture set based on a target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter.

[0128] In this embodiment, since steps 401 to 402 are the same as steps 201 to 202 in the above embodiment, the detailed description of steps 401 to 402 refers to the detailed description of steps 201 to 202 in the above embodiment, which will not be repeated here.

[0129] Step 403: Based on the text filter, the comprehensive image sensitivity of each image corresponding to each user query statement and the first preset comprehensive image sensitivity, the comprehensive query sensitivity of each user query statement is obtained.

[0130] In the embodiment of the present application, the specific implementation process of step 202 refers to using a text filter to calculate the query sensitivity of each user query statement; determining whether the picture is a sensitive picture by whether the comprehensive picture sensitivity of each picture corresponding to each user query statement is greater than or equal to the first preset comprehensive picture sensitivity, so as to calculate the proportion of sensitive pictures in each picture corresponding to each user query statement; for each user query statement, its comprehensive query sensitivity can be calculated by combining its query sensitivity and the corresponding sensitive picture proportion. Therefore, in an optional implementation of the embodiment of the present application, the step 403 may include the following steps, for example:

[0131] Step E: Obtaining the query sensitivity of each of the user query statements based on the text filter.

[0132] Step F: Based on the comprehensive image sensitivity of each image corresponding to each user query statement and the first preset comprehensive image sensitivity, obtain the proportion of sensitive images corresponding to each user query statement.

[0133] Step G: Based on the query sensitivity of each user query statement and the corresponding sensitive image ratio, obtain the comprehensive query sensitivity of each user query statement.

[0134] Step 404: If the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to the second preset comprehensive picture sensitivity, the third picture is determined to be a sensitive picture; and the second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity.

[0135] Step 405: If the comprehensive query sensitivity of the user query statement corresponding to the fourth picture in the filtered picture set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the fourth picture is less than or equal to the third preset comprehensive picture sensitivity, it is determined that the third picture is a normal picture; the filtered picture set is the difference between the candidate picture set and the first target picture set, and the third preset comprehensive picture sensitivity is greater than the first preset comprehensive picture sensitivity.

[0136] Step 406: Filter the sensitive pictures in the first target picture set, add the normal pictures to the first target picture set, and obtain a third target picture set.

[0137] Step 407: construct the picture library based on each picture in the third target picture set.

[0138] In an optional implementation of the embodiment of the present application, the method also includes: dynamically updating the sensitive icon detector, the sensitive person detector and the sensitive text detector, the sensitive word detector and / or the sensitive site detector based on update filtering requirements.

[0139] In an optional implementation of the embodiment of the present application, the method further includes: optimizing and updating the sensitive image classifier and / or the sensitive text classifier based on each image in the picture library.

[0140] In an optional implementation of the embodiment of the present application, the method further includes: mining each user query statement and each corresponding picture based on the new advertisement log to obtain a candidate picture set.

[0141] Through the various implementation methods provided in this embodiment, when filtering pictures in the candidate picture set using the target filter, not only the visual information of the picture but also the metadata of the picture are considered, and the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the candidate picture set are comprehensively filtered from different angles to obtain the first target picture set; according to the comprehensive query sensitivity of the user's query statement, the threshold of the comprehensive picture sensitivity of the picture is adjusted in a targeted manner, and the sensitive pictures involving sensitive factors such as pornography, terror, violence, etc. in the first target picture set are further filtered, and the normal pictures that do not involve sensitive factors such as pornography, terror, violence, etc. that were previously filtered to obtain the first target picture set are re-added to obtain the third target picture set; the pictures in the constructed picture library are made safer as advertising pictures, thereby further greatly reducing the risk of using sensitive pictures as advertising pictures.

[0142] Exemplary Devices

[0143] See also Figure 5 , shows a schematic diagram of the structure of a device for constructing a picture library in an embodiment of the present application. In this embodiment, the device may specifically include:

[0144] The first obtaining unit 501 is used to mine each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set;

[0145] The second obtaining unit 502 is used to filter the pictures in the candidate picture set based on the target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter;

[0146] The construction unit 503 is used to construct a picture library based on the first target picture set.

[0147] In an optional implementation of the embodiment of the present application, the second obtaining unit 502 includes:

[0148] A first obtaining subunit, configured to obtain the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter;

[0149] A second obtaining subunit, configured to obtain the metadata sensitivity of each picture in the candidate matching picture set based on the picture metadata filter;

[0150] A third obtaining subunit is used to obtain the comprehensive picture sensitivity of each picture in the candidate picture set based on the visual information sensitivity and metadata sensitivity of each picture in the candidate picture set;

[0151] The fourth obtaining subunit is used to filter the pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity in the candidate picture set to obtain the first target picture set.

[0152] In an optional implementation of the embodiment of the present application, the image metadata filter includes a text filter and / or a site filter.

[0153] In an optional implementation of the embodiment of the present application, the image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive person detector and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; the site filter includes a sensitive site detector.

[0154] In an optional implementation manner of the embodiment of the present application, the device further includes:

[0155] A first determination unit is configured to determine that the first picture is a sensitive picture if the similarity between the picture semantic features of the first picture in the first target picture set and the picture semantic features of the second picture in the filtered picture set is greater than a preset similarity, and the first picture meets a preset sensitive picture condition; the filtered picture set is a difference set between the candidate picture set and the first target picture set;

[0156] A third obtaining unit, configured to filter the sensitive pictures in the first target picture set to obtain a second target picture set;

[0157] Correspondingly, the construction unit 503 is specifically used for:

[0158] The picture library is constructed based on each picture in the second target picture set.

[0159] In an optional implementation manner of the embodiment of the present application, the device further includes:

[0160] a fourth obtaining unit, configured to obtain a comprehensive query sensitivity of each of the user query statements based on the text filter, the comprehensive image sensitivity of each image corresponding to each of the user query statements, and the first preset comprehensive image sensitivity;

[0161] a second determination unit, configured to determine that the third picture is a sensitive picture if the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to a preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to a second preset comprehensive picture sensitivity; and the second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity;

[0162] A third determination unit is used to determine that the third picture is a normal picture if the comprehensive query sensitivity of the user query statement corresponding to the fourth picture in the filtered picture set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the fourth picture is less than or equal to the third preset comprehensive picture sensitivity; the filtered picture set is the difference set of the candidate picture set and the first target picture set, and the third preset comprehensive picture sensitivity is greater than the first preset comprehensive picture sensitivity;

[0163] a fifth obtaining unit, configured to filter the sensitive pictures in the first target picture set, add the normal pictures to the first target picture set, and obtain a third target picture set;

[0164] Correspondingly, the construction unit 503 is specifically used for:

[0165] The picture library is constructed based on each picture in the third target picture set.

[0166] In an optional implementation manner of the embodiment of the present application, the fourth obtaining unit includes:

[0167] a fifth obtaining subunit, configured to obtain the query sensitivity of each of the user query statements based on the text filter;

[0168] a sixth obtaining subunit, configured to obtain a proportion of sensitive images corresponding to each of the user query statements based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity;

[0169] The seventh obtaining subunit is used to obtain the comprehensive query sensitivity of each user query statement based on the query sensitivity of each user query statement and the corresponding sensitive image ratio.

[0170] In an optional implementation manner of the embodiment of the present application, the device further includes:

[0171] The first updating unit is used to dynamically update the sensitive icon detector, the sensitive person detector and the sensitive text detector, the sensitive word detector and / or the sensitive site detector based on update filtering requirements.

[0172] In an optional implementation manner of the embodiment of the present application, the device further includes:

[0173] The second updating unit is used to optimize and update the sensitive image classifier and / or the sensitive text classifier based on each image in the picture library.

[0174] Through the various implementation methods provided in this embodiment, first, each user query statement and each corresponding picture are mined in the advertising log to obtain a candidate picture set; then, through a target filter including both a picture visual information filter and a picture metadata filter, the pictures in the candidate picture set are filtered to obtain a first target picture set; finally, a picture library is constructed based on each picture in the first target picture set. It can be seen that when using the target filter to filter the pictures in the candidate picture set, not only the visual information of the picture is considered, but also the metadata of the picture is considered, and sensitive pictures involving sensitive factors such as pornography, terror, and violence in the picture set are comprehensively filtered from different angles, so that the pictures in the constructed picture library are safer as advertising pictures, thereby greatly reducing the risk of using sensitive pictures as advertising pictures.

[0175] Figure 6 6 is a block diagram of an apparatus 600 for building a picture library according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0176] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0177] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0178] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0179] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.

[0180] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0181] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0182] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0183] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0184] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0185] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0186] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0187] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for building a picture library, the method comprising:

[0188] Based on the advertising log, each user query statement and the corresponding pictures are mined to obtain a set of candidate matching pictures;

[0189] Filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set; the target filter includes a picture visual information filter and a picture metadata filter;

[0190] A picture library is constructed based on each picture in the first target picture set.

[0191] Figure 7 7 is a schematic diagram of the structure of the server in the embodiment of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 722 (for example, one or more processors) and a memory 732, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 742 or data 744. Among them, the memory 732 and the storage medium 730 can be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 722 can be configured to communicate with the storage medium 730 and execute a series of instruction operations in the storage medium 730 on the server 700.

[0192] The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, one or more keyboards 756, and / or one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0193] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0194] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0195] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0196] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.

Claims

1. A method for constructing a picture library, characterized in that: include: Based on the advertising log, each user query statement and the corresponding pictures are mined to obtain a set of candidate matching pictures; Filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set; The target filter includes a picture visual information filter and a picture metadata filter; The first target image set is obtained by filtering images in the candidate image set whose comprehensive image sensitivity is greater than or equal to a first preset comprehensive image sensitivity, wherein the comprehensive image sensitivity includes visual information sensitivity and metadata sensitivity; the image metadata filter includes a text filter; Obtaining the query sensitivity of each of the user query statements based on the text filter; Based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity, obtaining the proportion of sensitive images corresponding to each of the user query statements; Based on the query sensitivity of each of the user query statements and the corresponding sensitive image ratio, obtaining a comprehensive query sensitivity of each of the user query statements; If the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to the second preset comprehensive picture sensitivity, the third picture is determined to be a sensitive picture; The second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity; If the comprehensive query sensitivity of the user query statement corresponding to the fourth image in the filtered image set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive image sensitivity of the fourth image is less than or equal to the third preset comprehensive image sensitivity, the third image is determined to be a normal image; the filtered image set is the difference between the candidate image set and the first target image set, and the third preset comprehensive image sensitivity is greater than the first preset comprehensive image sensitivity; Filtering the sensitive pictures in the first target picture set, adding the normal pictures to the first target picture set, and obtaining a third target picture set; Building a picture library based on each picture in the first target picture set specifically includes: The picture library is constructed based on each picture in the third target picture set.

2. The method according to claim 1, characterized in that: The filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set includes: Obtaining the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter; Obtaining metadata sensitivity of each picture in the candidate picture set based on the picture metadata filter; Obtaining a comprehensive picture sensitivity of each picture in the candidate picture set based on the visual information sensitivity and metadata sensitivity of each picture in the candidate picture set; The pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity in the candidate picture set are filtered to obtain the first target picture set.

3. The method according to claim 1, characterized in that The picture metadata filter also includes a site filter.

4. The method according to claim 3, characterized in that The image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive person detector and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; the site filter includes a sensitive site detector.

5. The method according to claim 1, characterized in that After filtering the pictures in the candidate picture set based on the target filter to obtain the first target picture set, the method further includes: If the similarity between the image semantic features of the first image in the first target image set and the image semantic features of the second image in the filtered image set is greater than a preset similarity, and the first image meets a preset sensitive image condition, the first image is determined to be a sensitive image; the filtered image set is a difference set between the candidate image set and the first target image set; Filter the sensitive pictures in the first target picture set to obtain a second target picture set; Correspondingly, the step of constructing a picture library based on each picture in the first target picture set specifically includes: The picture library is constructed based on each picture in the second target picture set.

6. A device for constructing a picture library, characterized in that: include: A first obtaining unit is used to mine each user query statement and each corresponding picture based on the advertisement log to obtain a candidate picture set; A second obtaining unit, configured to filter the pictures in the candidate picture set based on a target filter to obtain a first target picture set; The target filter includes a picture visual information filter and a picture metadata filter; The first target image set is obtained by filtering images in the candidate image set whose comprehensive image sensitivity is greater than or equal to a first preset comprehensive image sensitivity, wherein the comprehensive image sensitivity includes visual information sensitivity and metadata sensitivity; the image metadata filter includes a text filter; a fifth obtaining subunit, configured to obtain the query sensitivity of each of the user query statements based on the text filter; a sixth obtaining subunit, configured to obtain a proportion of sensitive images corresponding to each of the user query statements based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity; a seventh obtaining subunit, configured to obtain a comprehensive query sensitivity of each of the user query statements based on the query sensitivity of each of the user query statements and the corresponding sensitive image ratio; a second determining unit, configured to determine that the third image in the first target image set is a sensitive image if the comprehensive query sensitivity of the user query statement corresponding to the third image is greater than or equal to a preset comprehensive query sensitivity, and the comprehensive image sensitivity of the third image is greater than or equal to a second preset comprehensive image sensitivity; The second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity; A third determination unit is used to determine that the third picture is a normal picture if the comprehensive query sensitivity of the user query statement corresponding to the fourth picture in the filtered picture set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the fourth picture is less than or equal to the third preset comprehensive picture sensitivity; the filtered picture set is the difference set of the candidate picture set and the first target picture set, and the third preset comprehensive picture sensitivity is greater than the first preset comprehensive picture sensitivity; a fifth obtaining unit, configured to filter the sensitive pictures in the first target picture set, add the normal pictures to the first target picture set, and obtain a third target picture set; A construction unit is used to construct the picture library based on each picture in the third target picture set.

7. The device according to claim 6, characterized in that The second obtaining unit comprises: A first obtaining subunit, configured to obtain the visual information sensitivity of each picture in the candidate picture set based on the picture visual information filter; A second obtaining subunit, configured to obtain the metadata sensitivity of each picture in the candidate matching picture set based on the picture metadata filter; A third obtaining subunit is used to obtain the comprehensive picture sensitivity of each picture in the candidate picture set based on the visual information sensitivity and metadata sensitivity of each picture in the candidate picture set; The fourth obtaining subunit is used to filter the pictures whose comprehensive picture sensitivity is greater than or equal to the first preset comprehensive picture sensitivity in the candidate picture set to obtain the first target picture set.

8. The device according to claim 6, characterized in that The picture metadata filter also includes a site filter.

9. The device according to claim 8, characterized in that The image visual information filter includes a sensitive image classifier, a sensitive icon detector, a sensitive person detector and / or a sensitive text detector; the text filter includes a sensitive text classifier and / or a sensitive word detector; the site filter includes a sensitive site detector.

10. The device according to claim 6, characterized in that The device also includes: A first determination unit is configured to determine that the first picture is a sensitive picture if the similarity between the picture semantic features of the first picture in the first target picture set and the picture semantic features of the second picture in the filtered picture set is greater than a preset similarity, and the first picture meets a preset sensitive picture condition; the filtered picture set is a difference set between the candidate picture set and the first target picture set; A third obtaining unit, configured to filter the sensitive images in the first target picture set to obtain a second target picture set; Correspondingly, the construction unit is also used for: The picture library is constructed based on each picture in the second target picture set.

11. A device for obtaining a target image set, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Based on the advertising log, each user query statement and the corresponding pictures are mined to obtain a set of candidate matching pictures; Filtering the pictures in the candidate picture set based on the target filter to obtain a first target picture set; The target filter includes a picture visual information filter and a picture metadata filter; The first target image set is obtained by filtering images in the candidate image set whose comprehensive image sensitivity is greater than or equal to a first preset comprehensive image sensitivity, wherein the comprehensive image sensitivity includes visual information sensitivity and metadata sensitivity; the image metadata filter includes a text filter; Obtaining the query sensitivity of each of the user query statements based on the text filter; Based on the comprehensive image sensitivity of each image corresponding to each of the user query statements and the first preset comprehensive image sensitivity, obtaining the proportion of sensitive images corresponding to each of the user query statements; Based on the query sensitivity of each of the user query statements and the corresponding sensitive image ratio, obtaining a comprehensive query sensitivity of each of the user query statements; If the comprehensive query sensitivity of the user query statement corresponding to the third picture in the first target picture set is greater than or equal to the preset comprehensive query sensitivity, and the comprehensive picture sensitivity of the third picture is greater than or equal to the second preset comprehensive picture sensitivity, the third picture is determined to be a sensitive picture; The second preset comprehensive picture sensitivity is less than the first preset comprehensive picture sensitivity; If the comprehensive query sensitivity of the user query statement corresponding to the fourth image in the filtered image set is less than or equal to the preset comprehensive query sensitivity, and the comprehensive image sensitivity of the fourth image is less than or equal to the third preset comprehensive image sensitivity, the third image is determined to be a normal image; the filtered image set is the difference between the candidate image set and the first target image set, and the third preset comprehensive image sensitivity is greater than the first preset comprehensive image sensitivity; Filtering the sensitive pictures in the first target picture set, adding the normal pictures to the first target picture set, and obtaining a third target picture set; Building a picture library based on each picture in the first target picture set specifically includes: The picture library is constructed based on each picture in the third target picture set.

12. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to execute the method for constructing a picture library as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for sensitive image filtering

    CN105740752A