Summary of the invention
The embodiment of the invention provides a kind of recognition methods and equipment thereof of porny, improves the accuracy of porny identification.
The embodiment of the invention provides a kind of recognition methods of porny, comprising:
Determine picture related urls information pornographic degree evaluation information according to the relevant uniform resource position mark URL information of picture, and/or determine picture related text information pornographic degree evaluation information according to picture related text information;
According to described picture related urls information pornographic degree evaluation information and/or the picture related text information pornographic degree evaluation information relation with corresponding pornographic degree Evaluation threshold, judge whether picture is porny.
The embodiment of the invention provides a kind of recognition methods of porny, comprising:
According to the relevant uniform resource position mark URL information of picture, determine picture related urls information pornographic degree evaluation information, and/or determine picture related text information pornographic degree evaluation information according to picture related text information;
Search the porny probability corresponding with described picture related urls information pornographic degree evaluation information and/or picture related text information pornographic degree evaluation information;
According to each porny probability and probability threshold value of finding, judge whether picture is porny.
The embodiment of the invention provides a kind of identification equipment of porny, comprising:
The evaluation information determining unit is used for determining picture related urls information pornographic degree evaluation information according to the relevant uniform resource position mark URL information of picture, and/or determines picture related text information pornographic degree evaluation information according to picture related text information;
Judging unit is used for judging according to described picture related urls information pornographic degree evaluation information and/or the picture related text information pornographic degree evaluation information relation with corresponding pornographic degree Evaluation threshold whether picture is porny.
The embodiment of the invention provides a kind of identification equipment of porny, comprising:
The evaluation information determining unit is used for determining picture related urls information pornographic degree evaluation information, and/or determining picture related text information pornographic degree evaluation information according to picture related text information according to the relevant uniform resource position mark URL information of picture;
Search the unit, be used for searching the porny probability corresponding with described picture related urls information pornographic degree evaluation information and/or picture related text information pornographic degree evaluation information;
Judging unit is used for searching each porny probability and probability threshold value that the unit finds according to described, judges whether picture is porny.
Compared with prior art, the embodiment of the invention has the following advantages at least:
In the embodiment of the invention, whether be porny according to picture related urls information and/or picture related text information identification picture, improve the accuracy of porny identification.
Embodiment
Embodiment one
The embodiment of the invention one provides a kind of recognition methods of porny, porny scan function module is according to the marking of picture related urls (Universal Resource Locator, URL(uniform resource locator)) information pornographic degree and/or picture related text information pornographic degree marking identification porny.
Wherein, picture related urls information includes but not limited to: the URL of the URL of picture itself and/or picture place webpage.Picture related text information includes but not limited to one of following information or combination in any: the title of the literal of picture place webpage, caption literal, picture place webpage.
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
Referring to Fig. 1, the schematic flow sheet of the recognition methods of the porny that provides for the embodiment of the invention one.This flow process is described as an example of following scene example: according to the marking of picture related urls information pornographic degree and picture related text information pornographic degree marking identification porny, wherein, picture related urls information comprises the URL of picture itself and/or the URL of picture place webpage, and picture related text information comprises the title of literal, caption literal and/or the picture place webpage of picture place webpage.As shown in Figure 1, the method may further comprise the steps:
Step 101, porny scan function module scanned picture, respectively the title pornographic degree score of literal pornographic degree score, caption literal pornographic degree score and/or the picture place webpage of the URL pornographic degree score of the URL pornographic degree score of definite picture itself, picture place webpage, picture place webpage.
Wherein, the pornographic degree score of the URL information of picture place webpage can be calculated according to the responsive vocabulary among this webpage URL this sensitivity vocabulary such as sexy, girls, tenns etc.; In like manner, the pornographic degree score of the URL information of picture itself can be calculated according to the responsive vocabulary among the URL of this picture.The pornographic degree score of the Word message of picture place webpage can be calculated according to the responsive vocabulary in the literal this sensitivity vocabulary such as " disturbing the woman ", " sexuality ", " auto heterodyne ", " science and technology " etc.; In like manner, the pornographic degree score of the title of caption literal and picture place webpage.Preferably, can be according to the score sum of all responsive vocabulary among the URL of picture itself or the score sum after the weighting, or the URL pornographic degree score of further averaging and obtaining picture itself, in like manner can be according to the score sum of all responsive vocabulary of picture place webpage literal or the score sum after the weighting, or further average and obtain the pornographic degree score of picture place webpage literal.Similarly, can be according to the score sum of responsive vocabulary or the score after the weighting, or the title pornographic degree score of further average the URL pornographic degree score, caption literal pornographic degree score and the picture place webpage that obtain picture place webpage.
Must being divided into of each responsive vocabulary presets.When porny scan function module is carried out the picture scan function, from pre-loaded configuration file, obtain the score of each responsive vocabulary, and then calculate pornographic degree score according to the responsive vocabulary that scanning obtains.The mode that presets of the score of each responsive vocabulary includes but not limited to the machine training patterns: by computer program the data acquisition of certain scale is carried out analysis and calculation and draw accordingly result.This data acquisition can be the sample data that sets in advance.
Step 102, porny scan function module judges according to the relevant pornographic degree score of picture and the relation of threshold value whether picture is porny.
For example, porny scan function module obtains pornographic degree PTS with the title pornographic degree score summation of literal pornographic degree score, caption literal pornographic degree score and the picture place webpage of the URL pornographic degree score of the URL pornographic degree score of picture itself, picture place webpage, picture place webpage, if pornographic degree PTS satisfies default threshold condition, then be judged as porny, otherwise judge that picture is non-porny.Perhaps, porny scan function module is averaging the title pornographic degree score of literal pornographic degree score, caption literal pornographic degree score and the picture place webpage of the URL pornographic degree score of the URL pornographic degree score of picture itself, picture place webpage, picture place webpage and obtains pornographic degree average, judges according to the relation of pornographic degree average and threshold value whether picture is porny.
Need explanation, above-described embodiment is with the URL pornographic degree score of porny scan function module according to URL and the picture place webpage of picture itself, and the title pornographic degree of the literal of picture place webpage, caption literal and picture place webpage must be divided into, and example is described, in fact, porny scan function module also can be only with the pornographic degree score identification porny of one of above-mentioned information or combination in any in addition, can also be on the pornographic degree score basis of above-mentioned information in conjunction with the pornographic unique point of the picture porny of must assigning to identify itself.For example, the pornographic unique point score of calculating chart sheet itself in step 101, in step 102, according to picture related urls information pornographic degree score, picture related text information pornographic degree score and the pornographic unique point score of picture itself and the relation of predetermined threshold value, judge whether picture is porny.Concrete identifying can refer step 101 and 102, does not repeat them here.
Embodiment two
The embodiment of the invention two provides a kind of recognition methods of porny, and is similar with embodiment one, and porny scan function module is according to the marking of picture related urls information pornographic degree and/or picture related text information pornographic degree marking identification porny.Picture related urls information includes but not limited to one of following information or combination: the URL of the URL of picture itself, picture place webpage.Picture related text information includes but not limited to one of following information or combination: the title of the literal of picture place webpage, caption literal, picture place webpage.
Identify porny according to the marking of picture related urls information pornographic degree and the marking of picture related text information pornographic degree in the present embodiment, wherein, picture related urls information comprises the URL of picture itself, the URL of picture place webpage, picture related text information comprises the title of literal, caption literal and the picture place webpage of picture place webpage, as shown in Figure 2, the method may further comprise the steps:
Step 201, porny scan function module scanned picture, respectively the title pornographic degree score of literal pornographic degree score, caption literal pornographic degree score and/or the picture place webpage of the URL pornographic degree score of the URL pornographic degree score of definite picture itself, picture place webpage, picture place webpage.
The specific implementation of this process can refer step 101, does not repeat them here.
Step 202, porny scan function module is determined the mark section of each pornographic degree score, obtains the porny probability of each mark section correspondence.
Concrete, preset the porny probability of the different mark sections of each pornographic degree score.For example, literal pornographic degree score by machine training picture place webpage, find that the porny of webpage pornographic degree score between 20 to 30 minutes is that S opens, non-porny is that N opens, and then S/N is the porny probability of literal pornographic degree score between 20 to 30 minutes of picture place webpage.After the mark section of determining each pornographic degree score, the porny probability of this mark section correspondence of porny scan function module searches.
Step 203, porny scan function module if amass greater than 1, judge then that picture is porny with the porny probability multiplication of each mark section correspondence, otherwise, judge that picture is non-porny.
Concrete, numerical value 1 is the value as criterion that the present embodiment provides, and other can also be set can effectively distinguish the value of porny and non-porny as criterion.
Need explanation, in the present embodiment, porny scan function module can also be on the basis according to the marking of picture related urls information pornographic degree and/or the marking of picture related text information pornographic degree, in conjunction with the pornographic unique point score identification porny of picture itself.Accordingly, porny scan function module also needs to calculate the pornographic unique point score of picture itself in step 201, in step 202 and 203, increase the porny probability corresponding to pornographic unique point score of picture itself, wherein, preset the porny probability of the different mark section correspondences of pornographic unique point score.
Embodiment three
On embodiment one or two basis, the embodiment of the invention three provides a kind of recognition methods of porny, and as shown in Figure 3, porny scan function module can also comprise before carrying out porny identification:
Step 301, porny scan function module judges whether image credit belongs to white list or blacklist.If image credit belongs to white list, then execution in step 302; If image credit belongs to blacklist, then execution in step 303; If image credit does not belong to white list and do not belong to blacklist yet, reference example one or two mode are identified.
White list and blacklist need to set in advance, and preferred, white list is some large-scale main stream website, and blacklist is known pornographic website.
For example, the IP address of store website in white list and the blacklist, porny scan function module is obtained the source IP addresses of picture, if store this IP address in white list or the blacklist, judges that then image credit belongs to white list or blacklist.
Step 302, porny scan function module judge that picture is non-porny.
Step 303, porny scan function module judges that picture is porny.
Take aforesaid way, in the operational process of reality, accuracy rate and recall rate that porny is judged can reach 90%.
Embodiment four
Based on said method embodiment one or three identical technical conceives, the embodiment of the invention provides a kind of identification equipment of porny, as shown in Figure 4, comprising:
Evaluation information determining unit 11 is used for determining picture related urls information pornographic degree score according to picture related urls information, and/or determines picture related text information pornographic degree score according to picture related text information;
Judging unit 12 is used for judging according to described picture related urls information pornographic degree score and/or the picture related text information pornographic degree score relation with corresponding pornographic degree score threshold value whether picture is porny.
Described evaluation information determining unit 11 specifically is used for:
Obtain the responsive vocabulary in the described picture related urls information, according to the score of the responsive vocabulary that gets access to each the responsive vocabulary that sets in advance, obtain picture related urls information pornographic degree score; And/or
Obtain the responsive vocabulary in the described picture related text information, according to the score of the responsive vocabulary that gets access to each the responsive vocabulary that sets in advance, obtain picture related text information pornographic degree score.
Described picture related urls information includes but not limited to one of following information or combination: the URL of the URL of picture itself, picture place webpage, described picture related text information comprises literal, the caption literal of picture place webpage, the title of picture place webpage.
Described evaluation information determining unit 11 also is used for: the pornographic unique point score of obtaining picture itself;
Described judging unit 12 also is used for: according to pornographic unique point evaluation information, described picture related urls information pornographic degree evaluation information and the picture related text information pornographic degree evaluation information relation with corresponding pornographic degree Evaluation threshold, judge whether picture is porny; Perhaps, according to pornographic unique point evaluation information and the described picture related urls information pornographic degree evaluation information relation with corresponding pornographic degree Evaluation threshold, judge whether picture is porny; Perhaps, according to pornographic unique point evaluation information and the described picture related text information pornographic degree evaluation information relation with corresponding pornographic degree Evaluation threshold, judge whether picture is porny.
Embodiment five
Based on said method embodiment two or three identical technical conceives, the embodiment of the invention provides a kind of identification equipment of porny, as shown in Figure 5, comprising:
Evaluation information determining unit 21 is used for according to picture related urls information, determines picture related urls information pornographic degree score, and/or determines picture related text information pornographic degree score according to picture related text information;
Search unit 22, be used for searching the porny probability corresponding with described picture related urls information pornographic degree score and/or picture related text information pornographic degree score;
Judging unit 23 is used for searching each porny probability and probability threshold value that the unit finds according to described, judges whether picture is porny.
As shown in Figure 6, also comprise storage unit 24, for the porny probability of the different mark section correspondences of storing predefined each pornographic degree score;
The described unit 22 of searching specifically is used for: search the porny probability corresponding with the mark section of each pornographic degree score ownership.
Described judging unit 23 specifically is used for:
Search each porny probability multiplication that the unit finds with described, if long-pending greater than 1, judge that then picture is porny.
Described evaluation information determining unit 21 also is used for: the pornographic unique point score of obtaining picture itself; Accordingly, the described unit 22 of searching also is used for: search the porny probability corresponding with the pornographic unique point score of described picture itself.
In the embodiment of the invention, whether be porny according to picture related urls information and/or picture related text information identification picture, improve the accuracy of porny identification.
The degree of information pornographic described in above embodiment score can be a kind of in the information pornographic degree evaluation information, and still, the present invention is not limited thereto, and the form of the evaluation information that any those skilled in the art can expect all should be included.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
Above disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.