CN111783812A - Prohibited image recognition method, apparatus and computer-readable storage medium - Google Patents
Prohibited image recognition method, apparatus and computer-readable storage medium Download PDFInfo
- Publication number
- CN111783812A CN111783812A CN201911125531.2A CN201911125531A CN111783812A CN 111783812 A CN111783812 A CN 111783812A CN 201911125531 A CN201911125531 A CN 201911125531A CN 111783812 A CN111783812 A CN 111783812A
- Authority
- CN
- China
- Prior art keywords
- image
- target
- recognized
- prohibited
- category
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
本公开涉及一种违禁图像识别方法、装置和计算机可读存储介质,涉及计算机技术领域。本公开的方法包括:将待识别图像输入分类模型,得到输出的待识别图像的图像类别信息;根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像;在待识别图像属于候选违禁图像的情况下,将待识别图像输入目标检测模型,得到待识别图像中各个目标的目标类别信息;根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像。
The present disclosure relates to a prohibited image recognition method, device and computer-readable storage medium, and relates to the field of computer technology. The method of the present disclosure includes: inputting an image to be recognized into a classification model to obtain image category information of the output image to be recognized; determining whether the image to be recognized belongs to a candidate prohibited image according to the image category information of the image to be recognized; In the case of an image, the image to be recognized is input into the target detection model to obtain target category information of each target in the image to be recognized; according to the target category information of each target in the image to be recognized, it is determined whether the image to be recognized is a prohibited image.
Description
技术领域technical field
本公开涉及计算机技术领域,特别涉及一种违禁图像识别方法、装置和计算机可读存储介质。The present disclosure relates to the field of computer technologies, and in particular, to a prohibited image recognition method, device, and computer-readable storage medium.
背景技术Background technique
随着互联网技术的发展,信息的传播越来越广泛越来越迅速。网络上充斥着各种各样的信息。为了维护网络秩序,净化网络环境,需要将一些非法的,不良的信息去除,例如,色情、暴力等违禁图像。由于违禁图像内容复杂,细节较多,目前,对于违禁图像一般由人工进行审核。With the development of Internet technology, the dissemination of information has become more and more widespread and faster. The Internet is flooded with all kinds of information. In order to maintain network order and purify the network environment, it is necessary to remove some illegal and bad information, such as prohibited images such as pornography and violence. Due to the complex content of prohibited images and many details, at present, prohibited images are generally reviewed manually.
发明内容SUMMARY OF THE INVENTION
发明人发现,人工对违禁图像进行审核效率较低。The inventors found that manual review of prohibited images is inefficient.
本公开所要解决的一个技术问题是:如何提高违禁图像识别的效率。A technical problem to be solved by the present disclosure is: how to improve the efficiency of prohibited image recognition.
根据本公开的一些实施例,提供的一种违禁图像识别方法,包括:将待识别图像输入分类模型,得到输出的待识别图像的图像类别信息;根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像;在待识别图像属于候选违禁图像的情况下,将待识别图像输入目标检测模型,得到待识别图像中各个目标的目标类别信息;根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像。According to some embodiments of the present disclosure, a method for recognizing prohibited images is provided, comprising: inputting an image to be recognized into a classification model to obtain image category information of the output image to be recognized; determining the image to be recognized according to the image category information of the image to be recognized Whether it belongs to a candidate prohibited image; if the image to be recognized belongs to a candidate prohibited image, input the image to be recognized into the target detection model to obtain the target category information of each target in the image to be recognized; according to the target category information of each target in the image to be recognized , to determine whether the image to be recognized is a prohibited image.
在一些实施例中,根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像包括:确定待识别图像的应用场景;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别信息进行匹配;根据匹配结果确定待识别图像是否属于候选违禁图像;其中,不同应用场景下候选违禁图像所属的预设图像类别不同。In some embodiments, determining whether the to-be-recognized image belongs to the candidate prohibited images according to the image category information of the to-be-recognized image includes: determining an application scenario of the to-be-recognized image; According to the matching result, it is determined whether the image to be identified belongs to the candidate prohibited images; wherein, the preset image categories to which the candidate prohibited images belong in different application scenarios are different.
在一些实施例中,待识别图像的图像类别信息包括:待识别图像属于各个图像类别的概率;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别信息进行匹配包括:将待识别图像属于各个图像类别的概率与应用场景对应的预设图像类别概率进行比对,确定待识别图像的图像类别;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别进行匹配;其中,不同应用场景对应的预设图像类别概率不同。In some embodiments, the image category information of the image to be identified includes: the probability that the image to be identified belongs to each image category; the matching of the preset image category to which the candidate prohibited image belongs in the application scenario and the image category information of the to-be-identified image includes: Compare the probability that the image to be recognized belongs to each image category and the probability of the preset image category corresponding to the application scene to determine the image category of the image to be identified; Image categories are matched; wherein, the preset image category probabilities corresponding to different application scenarios are different.
在一些实施例中,根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像包括:确定待识别图像的应用场景;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别信息进行匹配;根据匹配结果确定待识别图像是否属于违禁图像;其中,不同应用场景下的预设违禁目标类别不同。In some embodiments, determining whether the to-be-recognized image is a prohibited image according to target category information of each target in the to-be-recognized image includes: determining an application scenario of the to-be-recognized image; The target category information of each target is matched; according to the matching result, it is determined whether the image to be recognized belongs to a prohibited image; wherein, the preset prohibited target categories in different application scenarios are different.
在一些实施例中,待识别图像中各个目标的目标类别信息包括:各个目标属于各个目标类别的概率;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别信息进行匹配包括:将待识别图像中各个目标属于各个目标类别的概率,与应用场景对应的预设目标类别概率进行比对,确定待识别图像中各个目标的目标类别;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别进行匹配;其中,不同应用场景对应的预设目标类别概率不同。In some embodiments, the target category information of each target in the image to be recognized includes: the probability that each target belongs to each target category; the preset prohibited target category in the application scenario is matched with the target category information of each target in the to-be-recognized image. Including: comparing the probability of each target in the image to be identified belonging to each target category with the preset target category probability corresponding to the application scenario, and determining the target category of each target in the image to be identified; The category is matched with the target category of each target in the image to be recognized; wherein, the preset target category probabilities corresponding to different application scenarios are different.
在一些实施例中,还包括:获取标注有图像类别的第一样本图像,作为第一训练样本集;利用第一训练样本集的图像对分类模型进行训练,得到分类模型的参数。In some embodiments, the method further includes: acquiring a first sample image marked with an image category as a first training sample set; using the images in the first training sample set to train a classification model to obtain parameters of the classification model.
在一些实施例中,利用第一训练样本集的图像对分类模型进行训练包括:利用第一训练样本集的图像对分类模型进行初始训练;将第一训练样本集的图像输入初始训练后的分类模型,得到第一训练样本集的图像的分类结果;根据输出的第一训练样本集的图像的分类结果和准确分类结果之间的差异,确定难样本图像;利用难样本图像,对初始训练后的分类模型再次进行训练。In some embodiments, using the images of the first training sample set to train the classification model includes: using the images of the first training sample set to initially train the classification model; inputting the images of the first training sample set into the classification model after the initial training model to obtain the classification results of the images of the first training sample set; determine the difficult sample images according to the difference between the output classification results of the images of the first training sample set and the accurate classification results; The classification model is trained again.
在一些实施例中,还包括:获取标注有目标的目标类别的第二样本图像,作为第二训练样本集;利用第二训练样本集的图像对目标检测模型进行训练,得到目标检测的参数。In some embodiments, the method further includes: acquiring a second sample image marked with a target category of the target as a second training sample set; and using the images of the second training sample set to train the target detection model to obtain target detection parameters.
在一些实施例中,获取标注有目标的目标类别的第二样本图像包括:将候选样本图像输入分类模型,得到输出的候选样本图像的图像类别信息;根据候选样本图像的图像类别信息确定候选样本是否属于候选违禁图像;将属于候选违禁图像的候选样本图像作为第二样本图像。In some embodiments, acquiring the second sample image marked with the target category of the target includes: inputting the candidate sample image into the classification model to obtain image category information of the output candidate sample image; determining the candidate sample according to the image category information of the candidate sample image Whether it belongs to the candidate prohibited images; the candidate sample images belonging to the candidate prohibited images are regarded as the second sample images.
根据本公开的另一些实施例,提供的一种违禁图像识别装置,包括:图像类别确定模块,用于将待识别图像输入分类模型,得到输出的待识别图像的图像类别信息;图像筛选模块,用于根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像;目标类别确定模块,用于在待识别图像属于候选违禁图像的情况下,将待识别图像输入目标检测模型,得到待识别图像中各个目标的目标类别信息;违禁图像确定模块,用于根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像。According to other embodiments of the present disclosure, a prohibited image recognition device is provided, comprising: an image category determination module, configured to input an image to be identified into a classification model to obtain image category information of the output image to be identified; an image screening module, It is used to determine whether the image to be recognized belongs to the candidate prohibited images according to the image category information of the image to be recognized; the target category determination module is used to input the image to be recognized into the target detection model when the image to be recognized belongs to the candidate prohibited image, and obtain the target detection model. Recognize target category information of each target in the image; a prohibited image determination module is used to determine whether the to-be-recognized image is a prohibited image according to the target category information of each target in the to-be-recognized image.
在一些实施例中,图像筛选模块用于确定待识别图像的应用场景;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别信息进行匹配;根据匹配结果确定待识别图像是否属于候选违禁图像;其中,不同应用场景下候选违禁图像所属的预设图像类别不同。In some embodiments, the image screening module is used to determine the application scene of the image to be recognized; match the preset image category to which the candidate prohibited images in the application scene belong with the image category information of the image to be recognized; determine the image to be recognized according to the matching result Whether it belongs to the candidate prohibited images; among them, the preset image categories to which the candidate prohibited images belong in different application scenarios are different.
在一些实施例中,待识别图像的图像类别信息包括:待识别图像属于各个图像类别的概率;图像筛选模块用于将待识别图像属于各个图像类别的概率与应用场景对应的预设图像类别概率进行比对,确定待识别图像的图像类别;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别进行匹配;其中,不同应用场景对应的预设图像类别概率不同。In some embodiments, the image category information of the image to be identified includes: the probability that the image to be identified belongs to each image category; the image screening module is configured to compare the probability of the image to be identified belonging to each image category with the preset image category probability corresponding to the application scene Perform comparison to determine the image category of the image to be identified; match the preset image category to which the candidate prohibited images in the application scenario belong with the image category of the image to be identified; wherein the preset image category probabilities corresponding to different application scenarios are different.
在一些实施例中,违禁图像确定模块用于确定待识别图像的应用场景;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别信息进行匹配;根据匹配结果确定待识别图像是否属于违禁图像;其中,不同应用场景下的预设违禁目标类别不同。In some embodiments, the prohibited image determination module is used to determine the application scene of the image to be recognized; match the preset prohibited target category under the application scene with the target category information of each target in the to-be-recognized image; determine the to-be-recognized image according to the matching result Whether the image is a prohibited image; among them, the preset prohibited target categories in different application scenarios are different.
在一些实施例中,待识别图像中各个目标的目标类别信息包括:各个目标属于各个目标类别的概率;违禁图像确定模块用于将待识别图像中各个目标属于各个目标类别的概率,与应用场景对应的预设目标类别概率进行比对,确定待识别图像中各个目标的目标类别;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别进行匹配;其中,不同应用场景对应的预设目标类别概率不同。In some embodiments, the target category information of each target in the to-be-recognized image includes: the probability that each target belongs to each target category; the prohibited image determination module is used to compare the probability of each target in the to-be-recognized image belonging to each target category with the application scenario The corresponding preset target category probabilities are compared to determine the target category of each target in the image to be recognized; the preset prohibited target category in the application scenario is matched with the target category of each target in the to-be-recognized image; among them, different application scenarios The corresponding preset target category probabilities are different.
在一些实施例中,该装置还包括:第一训练模块,用于获取标注有图像类别的第一样本图像,作为第一训练样本集;利用第一训练样本集的图像对分类模型进行训练,得到分类模型的参数。In some embodiments, the apparatus further includes: a first training module, configured to obtain a first sample image marked with an image category as a first training sample set; and use the images of the first training sample set to train the classification model , get the parameters of the classification model.
在一些实施例中,第一训练模块用于利用第一训练样本集的图像对分类模型进行初始训练;将第一训练样本集的图像输入初始训练后的分类模型,得到第一训练样本集的图像的分类结果;根据输出的第一训练样本集的图像的分类结果和准确分类结果之间的差异,确定难样本图像;利用难样本图像,对初始训练后的分类模型再次进行训练。In some embodiments, the first training module is used to perform initial training on the classification model using the images of the first training sample set; input the images of the first training sample set into the classification model after the initial training, to obtain the first training sample set of images The classification result of the image; according to the difference between the classification result of the output first training sample set and the accurate classification result, the difficult sample image is determined; using the difficult sample image, the classification model after the initial training is retrained.
在一些实施例中,该装置还包括:第二训练模块,用于获取标注有目标的目标类别的第二样本图像,作为第二训练样本集;利用第二训练样本集的图像对目标检测模型进行训练,得到目标检测的参数。In some embodiments, the apparatus further includes: a second training module, configured to obtain a second sample image of a target category marked with a target, as a second training sample set; a target detection model using the images of the second training sample set Perform training to obtain parameters for target detection.
在一些实施例中,第二训练模块用于将候选样本图像输入分类模型,得到输出的候选样本图像的图像类别信息;根据候选样本图像的图像类别信息确定候选样本是否属于候选违禁图像;将属于候选违禁图像的候选样本图像作为第二样本图像。In some embodiments, the second training module is used to input the candidate sample image into the classification model, and obtain the image category information of the output candidate sample image; determine whether the candidate sample belongs to the candidate prohibited image according to the image category information of the candidate sample image; The candidate sample images of the candidate prohibited images are used as the second sample images.
根据本公开的又一些实施例,提供的一种违禁图像识别装置,包括:处理器;以及耦接至处理器的存储器,用于存储指令,指令被处理器执行时,使处理器执行如前述任意实施例的违禁图像识别方法。According to further embodiments of the present disclosure, there is provided a prohibited image recognition device, comprising: a processor; and a memory coupled to the processor for storing instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned The prohibited image identification method of any embodiment.
根据本公开的再一些实施例,提供的一种非瞬时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述任意实施例的违禁图像识别方法。According to still other embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and a computer program is stored thereon, and when the program is executed by a processor, the prohibited image recognition method of any of the foregoing embodiments is implemented.
本公开提出一种机器自动识别违禁图像的方法,首先将待识别图像输入分类模型,得到待识别图像的粗分类的图像类别,根据粗分类类别筛选出候选违禁图像,进一步利用目标检测模型,对待识别图像中的目标进行识别,得到各个目标的目标类别信息,根据各个目标的目标类别信息确定待识别图像是否为违禁图像。本公开的方法通过将分类模型和目标检测模型结合应用,对待识别图像先进行粗分类对整体图像的特征进行识别,再进行细分类对图像中的目标细节特征进行精细识别,从整体和局部全方位识别违禁图像,提高了识别的准确率和效率。The present disclosure proposes a method for automatically recognizing prohibited images by a machine. First, an image to be recognized is input into a classification model to obtain a coarsely classified image category of the image to be recognized, and candidate prohibited images are screened out according to the coarse classification category, and a target detection model is further used to treat the image. The target in the image is recognized for identification, the target category information of each target is obtained, and whether the to-be-recognized image is a prohibited image is determined according to the target category information of each target. The method of the present disclosure combines the classification model and the target detection model to apply the to-be-recognized image firstly to perform rough classification to recognize the features of the whole image, and then to perform sub-classification to finely recognize the details of the target in the image. Orientation recognition of prohibited images improves the accuracy and efficiency of recognition.
通过以下参照附图对本公开的示例性实施例的详细描述,本公开的其它特征及其优点将会变得清楚。Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出本公开的一些实施例的违禁图像识别方法的流程示意图。FIG. 1 shows a schematic flowchart of a prohibited image recognition method according to some embodiments of the present disclosure.
图2示出本公开的另一些实施例的违禁图像识别方法的流程示意图。FIG. 2 shows a schematic flowchart of a prohibited image recognition method according to other embodiments of the present disclosure.
图3示出本公开的一些实施例的违禁图像识别装置的结构示意图。FIG. 3 shows a schematic structural diagram of a prohibited image recognition apparatus according to some embodiments of the present disclosure.
图4示出本公开的另一些实施例的违禁图像识别装置的结构示意图。FIG. 4 shows a schematic structural diagram of a prohibited image recognition apparatus according to other embodiments of the present disclosure.
图5示出本公开的又一些实施例的违禁图像识别装置的结构示意图。FIG. 5 shows a schematic structural diagram of a prohibited image recognition apparatus according to further embodiments of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application or uses in any way. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
针对现有技术中主要采用人工审核违禁图片效率低的问题,提出一种机器自动识别围巾图像的方法,下面结合图1描述本方案的一些实施例。Aiming at the problem of low efficiency in the prior art mainly using manual review of prohibited images, a method for automatically recognizing a scarf image by a machine is proposed. Some embodiments of the solution are described below with reference to FIG. 1 .
图1为本公开违禁图像识别方法一些实施例的流程图。如图1所示,该实施例的方法包括:步骤S102~S108。FIG. 1 is a flowchart of some embodiments of a prohibited image recognition method of the present disclosure. As shown in FIG. 1 , the method of this embodiment includes steps S102 to S108.
在步骤S102中,将待识别图像输入分类模型,得到输出的待识别图像的图像类别信息。In step S102, the to-be-recognized image is input into the classification model to obtain image category information of the output to-be-recognized image.
从网络上获取待识别图像,待识别图像可以是从待识别视频中提取的图像帧。可以对待识别图像进行预处理,例如,对待识别图像进行旋转,缩放,颜色调整等,使后续对待识别图像的识别更加准确。将预处理后的待识别图像输入分类模型,提取待识别图像的特征(例如,CNN(卷积神经网络)特征),根据特征确定待识别图像的图像类别信息。分类模型例如为神经网络模型,卷积神经网络模型,更具体的可以为现有的ResNeXt,ResNeXt50或SE-ResNeXt50等模型,可以根据实际需求选取分类效果更好更精确的模型。The to-be-recognized image is obtained from the network, and the to-be-recognized image may be an image frame extracted from the to-be-recognized video. The to-be-recognized image can be preprocessed, for example, the to-be-recognized image is rotated, scaled, color adjusted, etc., to make subsequent recognition of the to-be-recognized image more accurate. Input the preprocessed image to be recognized into a classification model, extract features of the image to be recognized (eg, CNN (Convolutional Neural Network) features), and determine image category information of the image to be recognized according to the features. The classification model is, for example, a neural network model, a convolutional neural network model, or more specifically, an existing model such as ResNeXt, ResNeXt50 or SE-ResNeXt50, and a model with better and more accurate classification effect can be selected according to actual needs.
分类模型可以根据实际需求配置划分的图像类别,经过预先训练之后,分类模型则可以确定待识别图像属于配置的图像类别中的一个或多个。例如,分类模型确定的图像类别包括两种图像类别,正常图像和违禁图像。又例如,分类模型确定的图像类别包括三种图像类别,正常图像,中间图像,违禁图像,中间图像属于正常和违禁之间的图像类别,例如,针对色情违禁图像识别,中间图像可以表示性感图像。又例如,分类模型确定的图像类别包括四种图像类别,正常图像,偏正常图像,偏违禁图像,违禁图像,例如,针对色情违禁图像识别,偏正常图像可以表示性感图像,偏违禁图像可以表示低俗图像。分类模型确定的图像类别是根据训练样本的标注和训练过程确定的,可以根据实际需求确定。后续将对训练过程进行描述。The classification model can configure the divided image categories according to actual requirements. After pre-training, the classification model can determine that the image to be recognized belongs to one or more of the configured image categories. For example, the image classes determined by the classification model include two image classes, normal images and prohibited images. For another example, the image categories determined by the classification model include three image categories, normal images, intermediate images, and prohibited images. The intermediate image belongs to the image category between normal and prohibited. For example, for pornographic prohibited image recognition, the intermediate image can represent a sexy image. . For another example, the image categories determined by the classification model include four image categories: normal images, partial normal images, partial prohibited images, and prohibited images. For example, for pornographic prohibited image recognition, partial normal images may represent sexy images, partial prohibited images may represent vulgar image. The image category determined by the classification model is determined according to the labeling of the training samples and the training process, and can be determined according to actual needs. The training process will be described later.
分类模型可以确定待识别图像属于各个图像类别的概率,进一步根据待识别图像属于各个图像类别的概率确定待识别图像的一个或多个图像类别。The classification model can determine the probability that the image to be recognized belongs to each image category, and further determine one or more image categories of the image to be recognized according to the probability that the image to be recognized belongs to each image category.
在步骤S104中,根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像。In step S104, it is determined whether the to-be-recognized image belongs to candidate prohibited images according to the image category information of the to-be-recognized image.
候选违禁图像表示很有可能是违禁图像的图像,需要利用后续的目标检测模型进行细分类的图像。在一些实施例中,确定待识别图像的应用场景;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别信息进行匹配;根据匹配结果确定待识别图像是否属于候选违禁图像;其中,不同应用场景下候选违禁图像所属的预设图像类别不同。Candidate prohibited images represent images that are likely to be prohibited images, and images that need to be sub-classified by the subsequent object detection model. In some embodiments, the application scene of the image to be recognized is determined; the preset image category to which the candidate prohibited image belongs in the application scenario is matched with the image category information of the image to be recognized; according to the matching result, it is determined whether the image to be recognized belongs to the candidate prohibited image ; wherein, the preset image categories to which the candidate prohibited images belong in different application scenarios are different.
不同应用场景下对于违禁图像的判别尺度不同,因此,候选违禁图像的判别尺度也不同。例如,在较为严肃的新闻类内容中,性感图像可能属于违禁图像,因此,属于性感图像类别的待识别图像可以被确定为候选违禁图像,而对于娱乐性内容,性感图像则不属于违禁图像,因此,属于性感图像类别的待识别图像可以不被确定为候选违禁图像。可以预设不同应用场景对应的候选违禁图像所属的预设图像类别,查找待识别图像的应用场景对应的预设图像类别,进而将待识别图像的图像类别信息与对应的预设图像类别进行比对。Different application scenarios have different discriminative scales for prohibited images, so the discriminative scales of candidate prohibited images are also different. For example, in more serious news content, sexy images may belong to prohibited images, therefore, images to be identified that belong to the category of sexy images can be determined as candidate prohibited images, while for entertainment content, sexy images are not prohibited images, Therefore, images to be identified that belong to the category of sexy images may not be determined as candidate prohibited images. The preset image category to which the candidate prohibited images corresponding to different application scenarios belong can be preset, the preset image category corresponding to the application scene of the image to be identified can be searched, and then the image category information of the image to be identified is compared with the corresponding preset image category. right.
进一步,在一些实施例中,待识别图像的图像类别信息包括:待识别图像属于各个图像类别的概率。将待识别图像属于各个图像类别的概率与应用场景对应的预设图像类别概率进行比对,确定待识别图像的图像类别。将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别进行匹配。如果待识别图像的图像类别包括所属应用场景对应的预设图像类别中的一种或多种,则待识别图像属于候选违禁图像。通过将待识别图像属于各个图像类别的概率与应用场景对应的预设图像类别概率进行比对,可能会将待识别图像同时确定为多个类别。即针对待识别图像属于每个图像类别的概率,在属于该图像类别的概率超过预设图像类别概率的情况下,则待识别图像属于该图像类别。Further, in some embodiments, the image category information of the image to be identified includes: the probability that the image to be identified belongs to each image category. The probability of the image to be recognized belonging to each image category is compared with the preset probability of the image category corresponding to the application scene, and the image category of the image to be recognized is determined. Match the preset image category to which the candidate prohibited images in the application scenario belong with the image category of the image to be recognized. If the image category of the image to be identified includes one or more of preset image categories corresponding to the application scene to which it belongs, the image to be identified belongs to a candidate prohibited image. By comparing the probability that the image to be recognized belongs to each image category and the preset probability of the image category corresponding to the application scenario, the image to be recognized may be determined into multiple categories at the same time. That is, for the probability that the image to be recognized belongs to each image category, if the probability of belonging to the image category exceeds the preset probability of the image category, the image to be identified belongs to the image category.
不同应用场景对应的预设图像类别概率不同。由于不同应用场景下对于违禁图像的判别尺度不同,通过调整不同应用场景下预设图像类别概率,可以调整待识别图像的图像类别,从而调整候选违禁图像的选择,能够使模型适应不同应用场景。The preset image category probabilities corresponding to different application scenarios are different. Since the discriminant scales for prohibited images are different in different application scenarios, by adjusting the preset image category probability in different application scenarios, the image category of the image to be recognized can be adjusted, thereby adjusting the selection of candidate prohibited images, and the model can be adapted to different application scenarios.
进一步,同一种应用场景下不同的图像类别可以对应不同的预设图像类别概率。针对待识别图像属于每个图像类别的概率,将属于该图像类别的概率,与所属应用场景下该图像类别对的预设图像类别概率进行比对,从而确定待识别图像是否属于该图像类别。Further, different image categories in the same application scenario may correspond to different preset image category probabilities. For the probability that the image to be recognized belongs to each image category, the probability of belonging to the image category is compared with the preset image category probability of the image category pair in the application scenario to which it belongs, so as to determine whether the image to be identified belongs to the image category.
在步骤S106中,在待识别图像属于候选违禁图像的情况下,将待识别图像输入目标检测模型,得到待识别图像中各个目标的目标类别信息。In step S106, if the image to be recognized belongs to a candidate prohibited image, the image to be recognized is input into the target detection model to obtain target category information of each target in the image to be recognized.
选取属于候选违禁图像的待识别图像输入目标检测进行细分类,进一步精确识别是否属于违禁图像。目标检测模型例如为现有模型,例如Faster-RCNN(更快的循环卷积神经网络)等,可以根据实际需求选取效果更好的模型。Select the to-be-recognized images that belong to the candidate prohibited images and input the target detection for sub-classification, and further accurately identify whether they belong to the prohibited images. The target detection model is, for example, an existing model, such as Faster-RCNN (Faster Recurrent Convolutional Neural Network), etc., and a model with better effect can be selected according to actual needs.
在步骤S108中,根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像。In step S108, it is determined whether the to-be-recognized image is a prohibited image according to the target category information of each target in the to-be-recognized image.
在一些实施例中,确定待识别图像的应用场景;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别信息进行匹配;根据匹配结果确定待识别图像是否属于违禁图像。不同应用场景下的预设违禁目标类别不同。可以预先设置不同应用场景对应的预设违禁目标类别。例如,泳装在某些应用场景(新闻场景)下属于违禁目标类别,在某些应用场景(购物平台场景)下则不属于违禁目标类别。通过调整不同应用场景下预设违禁目标类别,可以确定符合不同应用场景的违禁图像,根据应用场景灵活确定违禁图像。In some embodiments, the application scene of the image to be recognized is determined; the preset prohibited target category in the application scene is matched with the target category information of each target in the image to be recognized; whether the image to be recognized belongs to a prohibited image is determined according to the matching result. The preset prohibited target categories are different in different application scenarios. Preset prohibited target categories corresponding to different application scenarios can be preset. For example, swimwear belongs to the prohibited target category in some application scenarios (news scenarios), but does not belong to the prohibited target category in some application scenarios (shopping platform scenarios). By adjusting the preset prohibited target categories in different application scenarios, prohibited images that conform to different application scenarios can be determined, and prohibited images can be flexibly determined according to the application scenarios.
进一步,在一些实施例中,待识别图像中各个目标的目标类别信息包括:各个目标属于各个目标类别的概率。目标检测模型可以确定待识别图像中各个目标属于各个目标类别的概率,将待识别图像中各个目标属于各个目标类别的概率,与应用场景对应的预设目标类别概率进行比对,确定待识别图像中各个目标的目标类别;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别进行匹配。如果待识别图像中的目标包括所属应用场景对应的预设违禁目标类别中的一种或多种,则待识别图像属于违禁图像。例如,待识别图像中包括某些裸露的人体部位或包括某些特定动作,可以确定为违禁图像。Further, in some embodiments, the target category information of each target in the image to be identified includes: the probability that each target belongs to each target category. The target detection model can determine the probability that each target in the image to be recognized belongs to each target category, and compare the probability of each target in the image to be recognized belonging to each target category with the preset target category probability corresponding to the application scene, and determine the image to be recognized. The target category of each target in the image; match the preset prohibited target category in the application scenario with the target category of each target in the image to be recognized. If the target in the to-be-recognized image includes one or more of the preset prohibited target categories corresponding to the application scene to which it belongs, the to-be-recognized image belongs to a prohibited image. For example, if the image to be recognized includes some exposed human body parts or includes some specific actions, it can be determined as a prohibited image.
通过将待识别图像中各个目标属于各个目标类别的概率,与应用场景对应的预设目标类别概率进行比对,可能会将目标同时确定为多个类别。即针对每个目标属于每个目标类别的概率,在该目标属于该目标类别的概率超过预设目标类别概率的情况下,则该目标属于该目标类别。By comparing the probability of each target in the image to be recognized belonging to each target category with the preset target category probability corresponding to the application scenario, the target may be determined into multiple categories at the same time. That is, for the probability of each target belonging to each target category, if the probability of the target belonging to the target category exceeds the preset target category probability, the target belongs to the target category.
不同应用场景对应的预设目标类别概率不同。由于不同应用场景下对于违禁图像的判别尺度不同,通过调整不同应用场景下预设目标类别概率,可以调整待识别图像中各个目标的目标类别,从而调整违禁图像的选择,能够使模型适应不同应用场景。The preset target category probabilities corresponding to different application scenarios are different. Since the discriminant scale for prohibited images is different in different application scenarios, by adjusting the preset target category probability in different application scenarios, the target category of each target in the image to be recognized can be adjusted, thereby adjusting the selection of prohibited images, which can adapt the model to different applications. Scenes.
进一步,同一种应用场景下不同的目标类别可以对应不同的预设目标类别概率。针对待识别图像中每个目标属于每个图像类别的概率,将该目标属于该目标类别的概率,与所属应用场景下该目标类别对的预设目标类别概率进行比对,从而确定该目标是否属于该目标类别。Further, different target categories in the same application scenario may correspond to different preset target category probabilities. For the probability that each target in the image to be identified belongs to each image category, the probability of the target belonging to the target category is compared with the preset target category probability of the target category pair in the application scenario to which it belongs, so as to determine whether the target belongs to the target category. falls into this target category.
上述实施例提出一种机器自动识别违禁图像的方法,首先将待识别图像输入分类模型,得到待识别图像的粗分类的图像类别,根据粗分类类别筛选出候选违禁图像,进一步利用目标检测模型,对待识别图像中的目标进行识别,得到各个目标的目标类别信息,根据各个目标的目标类别信息确定待识别图像是否为违禁图像。本公开的方法通过将分类模型和目标检测模型结合应用,对待识别图像先进行粗分类对整体图像的特征进行识别,再进行细分类对图像中的目标细节特征进行精细识别,从整体和局部全方位识别违禁图像,提高了识别的准确率和效率。此外,通过灵活配置不同应用场景下的预设图像类别,预设违禁目标类别,预设图像类别概率,预设目标类别概率等,可以调整对于候选违禁图像和违禁图像的确定,可以使上述方法适用于不同应用场景下图像的识别,使得违禁图像的识别更加准确,更加灵活。The above embodiment proposes a method for automatically recognizing prohibited images by a machine. First, the images to be recognized are input into a classification model to obtain a coarsely classified image category of the to-be-recognized image, and candidate prohibited images are screened out according to the coarse classification category, and the target detection model is further utilized. The target in the to-be-recognized image is identified, the target category information of each target is obtained, and whether the to-be-recognized image is a prohibited image is determined according to the target category information of each target. The method of the present disclosure combines the classification model and the target detection model to apply the to-be-recognized image firstly to perform rough classification to recognize the features of the whole image, and then to perform sub-classification to finely recognize the details of the target in the image. Orientation recognition of prohibited images improves the accuracy and efficiency of recognition. In addition, by flexibly configuring preset image categories, preset prohibited target categories, preset image category probabilities, preset target category probabilities, etc. in different application scenarios, the determination of candidate prohibited images and prohibited images can be adjusted, and the above method can be used. It is suitable for image recognition in different application scenarios, making the recognition of prohibited images more accurate and flexible.
下面结合图2描述本公开中分类模型和目标检测模型的训练过程。The following describes the training process of the classification model and the target detection model in the present disclosure with reference to FIG. 2 .
图2为本公开违禁图像识别方法另一些实施例的流程图。如图2所示,该实施例的方法包括:步骤S202~S208。FIG. 2 is a flowchart of other embodiments of the prohibited image recognition method of the present disclosure. As shown in FIG. 2, the method of this embodiment includes steps S202-S208.
在步骤S202中,获取标注有图像类别的第一样本图像,作为第一训练样本集。In step S202, a first sample image marked with an image category is acquired as a first training sample set.
如前述实施例,可以根据实际需求设置分类模型可以划分的图像类别,将各个第一样本图像标注对应的图像类别。为提高分类模型的准确性,可以获取多种场景,多种媒体介质,多种来源的第一样本图像。可以对第一样本图像进行预处理,例如,旋转,缩放,颜色调整等,使第一样本图像形成统一规格。As in the foregoing embodiment, image categories that can be classified by the classification model can be set according to actual requirements, and each first sample image is marked with a corresponding image category. In order to improve the accuracy of the classification model, first sample images from various scenes, various media media, and various sources can be obtained. The first sample image may be preprocessed, such as rotation, scaling, color adjustment, etc., to make the first sample image form a uniform specification.
在步骤S204中,利用第一训练样本集的图像对分类模型进行训练,得到分类模型的参数。In step S204, the classification model is trained by using the images of the first training sample set to obtain the parameters of the classification model.
在一些实施例中,将第一训练样本集中的图像输入分类模型,得到输出的各个图像的图像类别,根据输出各个图像的图像类别与标注的图像类别的差别计算第一损失函数值,根据第一损失函数调整分类模型的参数,重复上述过程直至达到预设条件,例如,第一损失函数值达到最小或达到阈值等。In some embodiments, the images in the first training sample set are input into the classification model, the image categories of the output images are obtained, the first loss function value is calculated according to the difference between the image categories of the output images and the marked image categories, and the first loss function value is calculated according to the A loss function adjusts the parameters of the classification model, and the above process is repeated until a preset condition is reached, for example, the value of the first loss function reaches a minimum value or a threshold value.
每轮训练过程中抽取第一训练样本集中预设数量的图像输入分类模型,可以按照第一预设比例抽取属于各个图像类别的图像输入分类模型。例如,按照1:1:1:1分别抽取四种图像类别的图像。During each round of training, a preset number of image input classification models in the first training sample set are extracted, and image input classification models belonging to each image category may be extracted according to a first preset ratio. For example, images of four image categories are extracted according to 1:1:1:1.
在一些实施例中,利用第一训练样本集的图像对分类模型进行初始训练;将第一训练样本集的图像输入初始训练后的分类模型,得到第一训练样本集的图像的分类结果;根据输出的第一训练样本集的图像的分类结果和准确分类结果之间的差异,确定难样本图像;利用难样本图像,对初始训练后的分类模型再次进行训练。利用难样本图像对分类模型再次训练,可以增强分类模型的准确性和训练效率。In some embodiments, the classification model is initially trained by using the images of the first training sample set; the images of the first training sample set are input into the classification model after the initial training to obtain the classification results of the images of the first training sample set; according to The difference between the classification result and the accurate classification result of the images of the output first training sample set is used to determine the difficult sample image; the classification model after the initial training is retrained by using the difficult sample image. Retraining the classification model with difficult sample images can enhance the accuracy and training efficiency of the classification model.
在步骤S206中,获取标注有目标的目标类别的第二样本图像,作为第二训练样本集。In step S206, a second sample image marked with the target category of the target is acquired as a second training sample set.
在一些实施例中,将候选样本图像输入分类模型,得到输出的候选样本图像的图像类别信息;根据候选样本图像的图像类别信息确定候选样本是否属于候选违禁图像;将属于候选违禁图像的候选样本图像作为第二样本图像。在训练好分类模型后利用分类模型筛选出部分候选样本图像,作为第二样本图像。候选样本图像可以是第一训练样本集中的图像。这样可以去除很多的正常图片,所以会很大程度上减少可能的混淆,提高训练效率和准确率。In some embodiments, the candidate sample image is input into the classification model to obtain image category information of the output candidate sample image; whether the candidate sample belongs to the candidate prohibited image is determined according to the image category information of the candidate sample image; the candidate sample belonging to the candidate prohibited image is image as a second sample image. After the classification model is trained, some candidate sample images are screened out by using the classification model as second sample images. The candidate sample images may be images in the first training sample set. This can remove a lot of normal pictures, so it will greatly reduce possible confusion and improve training efficiency and accuracy.
由于违禁图片的内容比较繁杂、特征比较分散,因此,标注的目标类别和前述实施例中应用时确定的目标类别会比较多。可以设置目标类别包括多级类别,例如,人体、动作等为高层类别,性别为中层类别,具体的部位或动作的描述为底层类别,这样一个目标通过多层级的标签确定目标类别,便于标签的管理以及根据目标类别进一步确定是否属于违禁图片。Because the content of the prohibited pictures is relatively complex and the features are relatively scattered, there will be more target categories marked and those determined during application in the foregoing embodiment. The target category can be set to include multi-level categories, for example, human body, action, etc. are high-level categories, gender is a middle-level category, and specific parts or action descriptions are low-level categories. Such a target determines the target category through multi-level labels, which is convenient for labeling. Manage and further determine prohibited images based on target categories.
在步骤S208中,利用第二训练样本集的图像对目标检测模型进行训练,得到目标检测的参数。In step S208, the target detection model is trained by using the images of the second training sample set to obtain parameters for target detection.
在一些实施例中,将第二训练样本集中的图像输入目标检测模型,得到输出的各个目标的目标类别,根据输出各个目标的目标类别与标注的目标类别的差别计算第二损失函数值,根据第二损失函数调整目标检测模型的参数,重复上述过程直至达到预设条件,例如,第二损失函数值达到最小或达到阈值等。每轮训练过程中抽取第二训练样本集中预设数量的图像输入目标检测模型,可以按照第二预设比例抽取属于各个目标类别的图像输入目标检测模型。In some embodiments, the images in the second training sample set are input into the target detection model to obtain the target category of each output target, and the second loss function value is calculated according to the difference between the target category of each output target and the marked target category, and according to The second loss function adjusts the parameters of the target detection model, and the above process is repeated until a preset condition is reached, for example, the value of the second loss function reaches a minimum value or a threshold value. During each round of training, a preset number of image input target detection models in the second training sample set are extracted, and image input target detection models belonging to each target category may be extracted according to a second preset ratio.
本公开还提供一种违禁图像识别装置,下面结合图3进行描述。The present disclosure also provides a prohibited image recognition device, which will be described below with reference to FIG. 3 .
图3为本公开违禁图像识别装置的一些实施例的结构图。如图3所示,该实施例的装置30包括:图像类别确定模块310,图像筛选模块320,目标类别确定模块330,违禁图像确定模块340。FIG. 3 is a structural diagram of some embodiments of a prohibited image recognition apparatus of the present disclosure. As shown in FIG. 3 , the
图像类别确定模块310,用于将待识别图像输入分类模型,得到输出的待识别图像的图像类别信息。The image
图像筛选模块320,用于根据待识别图像的图像类别信息确定待识别图像是否属于候选违禁图像。The
在一些实施例中,图像筛选模块320用于确定待识别图像的应用场景;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别信息进行匹配;根据匹配结果确定待识别图像是否属于候选违禁图像;其中,不同应用场景下候选违禁图像所属的预设图像类别不同。In some embodiments, the
在一些实施例中,待识别图像的图像类别信息包括:待识别图像属于各个图像类别的概率;图像筛选模块320用于将待识别图像属于各个图像类别的概率与应用场景对应的预设图像类别概率进行比对,确定待识别图像的图像类别;将应用场景下候选违禁图像所属的预设图像类别与待识别图像的图像类别进行匹配;其中,不同应用场景对应的预设图像类别概率不同。In some embodiments, the image category information of the image to be identified includes: the probability that the image to be identified belongs to each image category; the
目标类别确定模块330,用于在待识别图像属于候选违禁图像的情况下,将待识别图像输入目标检测模型,得到待识别图像中各个目标的目标类别信息。The target
违禁图像确定模块340,用于根据待识别图像中各个目标的目标类别信息,确定待识别图像是否为违禁图像。The prohibited
在一些实施例中,违禁图像确定模块340用于确定待识别图像的应用场景;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别信息进行匹配;根据匹配结果确定待识别图像是否属于违禁图像;其中,不同应用场景下的预设违禁目标类别不同。In some embodiments, the prohibited
在一些实施例中,待识别图像中各个目标的目标类别信息包括:各个目标属于各个目标类别的概率;违禁图像确定模块340用于将待识别图像中各个目标属于各个目标类别的概率,与应用场景对应的预设目标类别概率进行比对,确定待识别图像中各个目标的目标类别;将应用场景下的预设违禁目标类别与待识别图像中各个目标的目标类别进行匹配;其中,不同应用场景对应的预设目标类别概率不同。In some embodiments, the target category information of each target in the to-be-recognized image includes: the probability that each target belongs to each target category; the prohibited
在一些实施例中,该装置30还包括:第一训练模块350,用于获取标注有图像类别的第一样本图像,作为第一训练样本集;利用第一训练样本集的图像对分类模型进行训练,得到分类模型的参数。In some embodiments, the
在一些实施例中,第一训练模块350用于利用第一训练样本集的图像对分类模型进行初始训练;将第一训练样本集的图像输入初始训练后的分类模型,得到第一训练样本集的图像的分类结果;根据输出的第一训练样本集的图像的分类结果和准确分类结果之间的差异,确定难样本图像;利用难样本图像,对初始训练后的分类模型再次进行训练。In some embodiments, the
在一些实施例中,该装置30还包括:第二训练模块360,用于获取标注有目标的目标类别的第二样本图像,作为第二训练样本集;利用第二训练样本集的图像对目标检测模型进行训练,得到目标检测的参数。In some embodiments, the
在一些实施例中,第二训练模块360用于将候选样本图像输入分类模型,得到输出的候选样本图像的图像类别信息;根据候选样本图像的图像类别信息确定候选样本是否属于候选违禁图像;将属于候选违禁图像的候选样本图像作为第二样本图像。In some embodiments, the
本公开的实施例中的违禁图像识别装置可各由各种计算设备或计算机系统来实现,下面结合图4以及图5进行描述。The prohibited image recognition apparatuses in the embodiments of the present disclosure may be implemented by various computing devices or computer systems, which will be described below with reference to FIG. 4 and FIG. 5 .
图4为本公开违禁图像识别装置的一些实施例的结构图。如图4所示,该实施例的装置40包括:存储器410以及耦接至该存储器410的处理器420,处理器420被配置为基于存储在存储器410中的指令,执行本公开中任意一些实施例中的违禁图像识别方法。FIG. 4 is a structural diagram of some embodiments of a prohibited image recognition apparatus of the present disclosure. As shown in FIG. 4 , the
其中,存储器410例如可以包括系统存储器、固定非易失性存储介质等。系统存储器例如存储有操作系统、应用程序、引导装载程序(BootLoader)、数据库以及其他程序等。The
图5为本公开违禁图像识别装置的另一些实施例的结构图。如图5所示,该实施例的装置50包括:存储器510以及处理器520,分别与存储器410以及处理器420类似。还可以包括输入输出接口530、网络接口540、存储接口550等。这些接口530,540,550以及存储器510和处理器520之间例如可以通过总线560连接。其中,输入输出接口530为显示器、鼠标、键盘、触摸屏等输入输出设备提供连接接口。网络接口540为各种联网设备提供连接接口,例如可以连接到数据库服务器或者云端存储服务器等。存储接口550为SD卡、U盘等外置存储设备提供连接接口。FIG. 5 is a structural diagram of another embodiment of the prohibited image recognition device of the present disclosure. As shown in FIG. 5 , the
本领域内的技术人员应当明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用非瞬时性存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein .
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解为可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection of the present disclosure. within the range.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911125531.2A CN111783812B (en) | 2019-11-18 | 2019-11-18 | Prohibited image recognition method, device and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911125531.2A CN111783812B (en) | 2019-11-18 | 2019-11-18 | Prohibited image recognition method, device and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111783812A true CN111783812A (en) | 2020-10-16 |
| CN111783812B CN111783812B (en) | 2024-06-18 |
Family
ID=72755743
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911125531.2A Active CN111783812B (en) | 2019-11-18 | 2019-11-18 | Prohibited image recognition method, device and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111783812B (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112257661A (en) * | 2020-11-11 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Identification method, device and equipment of vulgar image and computer readable storage medium |
| CN113516088A (en) * | 2021-07-22 | 2021-10-19 | 中移(杭州)信息技术有限公司 | Object recognition method, device and computer readable storage medium |
| CN113762280A (en) * | 2021-04-23 | 2021-12-07 | 腾讯科技(深圳)有限公司 | A kind of image category identification method, device and medium |
| CN114067431A (en) * | 2021-11-05 | 2022-02-18 | 创优数字科技(广东)有限公司 | Image processing method, image processing device, computer equipment and storage medium |
| CN114332459A (en) * | 2021-12-01 | 2022-04-12 | 上海闪马智能科技有限公司 | Target object determination method and device, storage medium and electronic device |
| CN114549919A (en) * | 2020-11-10 | 2022-05-27 | 中移动信息技术有限公司 | Training method, recognition method, device and equipment of target recognition model |
| CN114639056A (en) * | 2022-03-29 | 2022-06-17 | 卓米私人有限公司 | Method, device, computer equipment and storage medium for identifying live content |
| CN115546824A (en) * | 2022-04-18 | 2022-12-30 | 荣耀终端有限公司 | Taboo image recognition method, device and storage medium |
| CN115565201A (en) * | 2022-04-18 | 2023-01-03 | 荣耀终端有限公司 | Taboo picture identification method, equipment and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107291737A (en) * | 2016-04-01 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Nude picture detection method and device |
| WO2018112783A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳前海达闼云端智能科技有限公司 | Image recognition method and device |
| CN110020647A (en) * | 2018-01-09 | 2019-07-16 | 杭州海康威视数字技术股份有限公司 | A kind of contraband object detection method, device and computer equipment |
| CN110321873A (en) * | 2019-07-12 | 2019-10-11 | 苏州惠邦医疗科技有限公司 | Sensitization picture recognition methods and system based on deep learning convolutional neural networks |
-
2019
- 2019-11-18 CN CN201911125531.2A patent/CN111783812B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107291737A (en) * | 2016-04-01 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Nude picture detection method and device |
| WO2018112783A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳前海达闼云端智能科技有限公司 | Image recognition method and device |
| CN110020647A (en) * | 2018-01-09 | 2019-07-16 | 杭州海康威视数字技术股份有限公司 | A kind of contraband object detection method, device and computer equipment |
| CN110321873A (en) * | 2019-07-12 | 2019-10-11 | 苏州惠邦医疗科技有限公司 | Sensitization picture recognition methods and system based on deep learning convolutional neural networks |
Non-Patent Citations (1)
| Title |
|---|
| 崔鹏飞;裘;孙瑞;: "面向网络内容安全的图像识别技术研究", 信息网络安全, no. 09 * |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114549919A (en) * | 2020-11-10 | 2022-05-27 | 中移动信息技术有限公司 | Training method, recognition method, device and equipment of target recognition model |
| CN112257661A (en) * | 2020-11-11 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Identification method, device and equipment of vulgar image and computer readable storage medium |
| CN113762280A (en) * | 2021-04-23 | 2021-12-07 | 腾讯科技(深圳)有限公司 | A kind of image category identification method, device and medium |
| CN113516088B (en) * | 2021-07-22 | 2024-02-27 | 中移(杭州)信息技术有限公司 | Object recognition method, device and computer readable storage medium |
| CN113516088A (en) * | 2021-07-22 | 2021-10-19 | 中移(杭州)信息技术有限公司 | Object recognition method, device and computer readable storage medium |
| CN114067431A (en) * | 2021-11-05 | 2022-02-18 | 创优数字科技(广东)有限公司 | Image processing method, image processing device, computer equipment and storage medium |
| CN114332459A (en) * | 2021-12-01 | 2022-04-12 | 上海闪马智能科技有限公司 | Target object determination method and device, storage medium and electronic device |
| CN114332459B (en) * | 2021-12-01 | 2025-04-22 | 上海闪马智能科技有限公司 | Method and device for determining target object, storage medium and electronic device |
| CN114639056A (en) * | 2022-03-29 | 2022-06-17 | 卓米私人有限公司 | Method, device, computer equipment and storage medium for identifying live content |
| CN115546824B (en) * | 2022-04-18 | 2023-11-28 | 荣耀终端有限公司 | Taboo picture identification method, apparatus and storage medium |
| CN115565201A (en) * | 2022-04-18 | 2023-01-03 | 荣耀终端有限公司 | Taboo picture identification method, equipment and storage medium |
| CN115565201B (en) * | 2022-04-18 | 2024-03-26 | 荣耀终端有限公司 | Taboo picture identification method, apparatus and storage medium |
| CN115546824A (en) * | 2022-04-18 | 2022-12-30 | 荣耀终端有限公司 | Taboo image recognition method, device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111783812B (en) | 2024-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111783812A (en) | Prohibited image recognition method, apparatus and computer-readable storage medium | |
| CN110020592B (en) | Object detection model training method, device, computer equipment and storage medium | |
| CN108985214B (en) | Image data annotation method and device | |
| CN109145766B (en) | Model training method and device, recognition method, electronic device and storage medium | |
| CN110363220B (en) | Behavior class detection method and device, electronic equipment and computer readable medium | |
| CN109034069B (en) | Method and apparatus for generating information | |
| JP2021532434A (en) | Face feature extraction model Training method, face feature extraction method, device, equipment and storage medium | |
| CN113221918B (en) | Target detection method, training method and device of target detection model | |
| CN108460098B (en) | Information recommendation method and device and computer equipment | |
| CN111753618B (en) | Image recognition method, device, computer equipment and computer readable storage medium | |
| JP6997369B2 (en) | Programs, ranging methods, and ranging devices | |
| CN118537666B (en) | Image detection method, device, electronic equipment and storage medium | |
| CN112560971A (en) | Image classification method and system for active learning self-iteration | |
| TWI803243B (en) | Method for expanding images, computer device and storage medium | |
| CN114638304B (en) | Training method of image recognition model, image recognition method and device | |
| CN114065858B (en) | Model training method, device, electronic device and storage medium | |
| CN111338692A (en) | Vulnerability classification method, device and electronic device based on vulnerability code | |
| US20210192293A1 (en) | Automatic Classifier Profiles from Training Set Metadata | |
| CN109299276B (en) | Method and device for converting text into word embedding and text classification | |
| CN117422943A (en) | Data enhancement method, data enhancement device, and computer storage medium | |
| CN119169688B (en) | Key point positioning method, device and storage medium based on open set target detection | |
| CN114333022B (en) | Training method of character feature extraction model, character recognition method and related equipment | |
| CN117953200A (en) | A target detection method, device, equipment and medium | |
| CN108021918B (en) | Character recognition method and device | |
| CN114155420B (en) | Scene recognition model training method, device, equipment and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |