CN110717865B - Picture detection method and device - Google Patents

Picture detection method and device Download PDF

Info

Publication number
CN110717865B
CN110717865B CN201910826006.7A CN201910826006A CN110717865B CN 110717865 B CN110717865 B CN 110717865B CN 201910826006 A CN201910826006 A CN 201910826006A CN 110717865 B CN110717865 B CN 110717865B
Authority
CN
China
Prior art keywords
picture
main body
background
detected
image
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.)
Active
Application number
CN201910826006.7A
Other languages
Chinese (zh)
Other versions
CN110717865A (en
Inventor
穆翀
周旭阳
刘二龙
韩明秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Suning Cloud Computing Co ltd
SuningCom Co ltd
Original Assignee
Suning Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN201910826006.7A priority Critical patent/CN110717865B/en
Publication of CN110717865A publication Critical patent/CN110717865A/en
Priority to CA3153067A priority patent/CA3153067C/en
Priority to PCT/CN2020/097857 priority patent/WO2021042823A1/en
Application granted granted Critical
Publication of CN110717865B publication Critical patent/CN110717865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a picture detection method and a picture detection device, relates to the technical field of picture identification, and improves the quality of uploaded pictures by adding detection items of picture background purity and main body position compliance. The method comprises the following steps: acquiring a denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing; performing color space conversion on the picture to be detected, and outputting tone space data and brightness space data of the image; fusing the expanded main area image with the tone space data, extracting a background purity value corresponding to each pixel in the background area image, and judging whether the background purity of the picture to be detected is in compliance; processing lightness space data through multiple binarization modes, and outputting multiple binarization results; and respectively fusing the main body area image with various binarization results, extracting the coordinate value and the corresponding background purity value of each pixel in the fused main body area image, and judging whether the main body position of the picture to be detected is in compliance or not.

Description

Picture detection method and device
Technical Field
The invention relates to the technical field of picture identification, in particular to a picture detection method and device.
Background
Under the promotion of internet wave, more and more internet platforms open the function of uploading user pictures, especially in each big electronic commerce platform, commercial tenant and user can upload hundreds of millions of pictures every day, wherein the pictures which are not in compliance or even illegal are inevitable mixed, in order to avoid the occurrence of the situation, the uploaded pictures are usually audited by adopting a mode of combining machine audit and human audit.
In the prior art, a single auditing technology aiming at illegal pictures such as riot terrorism, pornography and the like cannot meet the requirements of an e-commerce platform, and in order to improve the quality of uploaded pictures, the compliance of the pictures needs to be further detected on the basis of the existing illegal picture auditing technologies such as riot terrorism, pornography and the like, so that the unattractive situations of non-attractive pictures such as non-centered main bodies, disordered backgrounds, excessive white leaves and the like are avoided.
Disclosure of Invention
The invention aims to provide a picture detection method and a picture detection device, which can improve the quality of uploaded pictures by increasing the picture background purity and the main body position compliance detection items.
In order to achieve the above object, an aspect of the present invention provides a picture detection method, including:
acquiring a denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing;
Performing color space conversion on the picture to be detected, and outputting tone space data and brightness space data of the image;
fusing the expanded main area image with the hue space data, extracting a background purity value corresponding to each pixel in a background area image formed after expansion, and judging whether the background purity of the picture to be detected is in compliance or not;
processing the brightness space data in multiple binarization modes, and correspondingly outputting multiple binarization results;
and respectively fusing the main body region image with various binarization results, extracting the coordinate value and the corresponding background purity value of each pixel in the fused main body region image, and judging whether the main body position of the picture to be detected is in compliance.
Preferably, the method for acquiring the denoised picture to be detected and identifying the image of the main body region and the image of the background region after the pixel-level semantic segmentation processing comprises the following steps:
denoising the picture to be detected by adopting a nonlinear filtering method;
and performing pixel-level semantic segmentation on the denoised picture to be detected through a multi-channel depth residual full convolution network model, and identifying a main body region image and a background region image.
Preferably, the method of performing color space conversion on a picture to be tested and outputting hue space data and lightness space data of an image includes:
Converting hue space data of an output image of a picture to be detected by adopting an HSV color space conversion method, wherein the hue space data comprises a hue space component H;
and converting brightness space data of an output image of the picture to be detected by adopting an LUV color space conversion method, wherein the brightness space data comprises a brightness space channel L.
Preferably, the method for fusing the expanded main region image with the hue space data, extracting the background purity value corresponding to each pixel in the background region image formed after the expansion processing, and determining whether the background purity of the picture to be detected is compliant includes:
filtering processing is carried out on edge pixels of the main body area image through a filtering core so as to expand the main body area image;
updating the part of the picture to be detected except the expanded main body area image into a background area image;
fusing the updated background area image with the data of the tone space component H, and judging whether the background purity values corresponding to all pixels in the updated background area image all accord with a first threshold value, if so, judging that the background purity of the picture to be detected is in compliance, otherwise, judging that the background purity of the picture to be detected is not in compliance;
the first threshold comprises a first background purity threshold.
Preferably, the lightness space data is processed by a plurality of binarization modes, and the corresponding method for outputting a plurality of binarization results comprises:
processing data of the lightness space channel L in a fixed threshold value binarization mode to obtain a first binarization result;
and processing the data of the lightness space channel L in a Gaussian window binarization mode to obtain a second binarization result.
Further, after correspondingly outputting a plurality of binarization results, the method further comprises:
and respectively carrying out incoherent region suppression processing on the first binarization result and the second binarization result by adopting a non-maximum value suppression method.
Further, the method for fusing the main body region image with various binarization results respectively, extracting the coordinate value of each pixel in the fused main body region image and the corresponding background purity value, and judging whether the main body position of the picture to be detected is in compliance or not comprises the following steps:
respectively fusing the main body area image identified by pixel-level semantic segmentation processing with the first binarization result and the second binarization result;
extracting the coordinate values and the corresponding background purity values of the pixels belonging to the main body area image and the first binarization result from the fusion result, and extracting the coordinate values and the corresponding background purity values of the pixels belonging to the main body area image and the second binarization result from the fusion result;
Summarizing and extracting the coordinate values of the pixels and the corresponding background purity values, judging whether the coordinate values of the pixels and the corresponding background purity values all accord with a second threshold value, if so, judging that the main body position of the picture to be detected is in compliance, otherwise, judging that the main body position of the picture to be detected is not in compliance;
the second threshold includes a second background purity threshold and a location coordinate interval threshold.
Compared with the prior art, the picture detection method provided by the invention has the following beneficial effects:
in the picture detection method provided by the invention, firstly, a main body area image and a background area image are identified by a to-be-detected picture subjected to pixel level semantic segmentation and denoising, then, color space conversion is carried out on the to-be-detected picture, and tone space data and lightness space data of the picture are output: when the background purity detection item is carried out, the coarseness of the edge pixel processing of the main body area image and the background area image is considered in the pixel-level semantic segmentation, so that in order to ensure that the main body area image can be completely covered, the invention expands the range of the edge pixel of the main body area image by carrying out expansion processing on the main body area image, then fuses the expanded main body area image and the tone space data, and finally judges whether the background purity of the picture to be detected is in compliance or not according to the background purity value corresponding to each pixel of the background area image in the fusion result; when a main body position detection item is carried out, firstly, brightness space data is processed in multiple binarization modes to obtain multiple binarization results corresponding to the brightness space data, then, a main body area image subjected to pixel level semantic segmentation is respectively fused with the multiple binarization results, and finally, whether the main body position of the picture to be detected is in compliance or not is judged based on the coordinate value of each pixel in the fused main body area image and the corresponding background purity value.
Therefore, the method and the device realize the detection of the background purity and the main body position of the uploaded picture, and greatly improve the auditing efficiency compared with the manual auditing mode in the prior art.
Another aspect of the present invention provides a picture detection apparatus, which is applied in the picture detection method mentioned in the above technical solution, and the apparatus includes:
the pixel processing unit is used for acquiring the denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing;
the color space conversion unit is used for performing color space conversion on the picture to be detected and outputting tone space data and lightness space data of the image;
the first judgment unit is used for fusing the expanded main area image and the tone space data, extracting a background purity value corresponding to each pixel in a background area image formed after the expansion processing, and judging whether the background purity of the picture to be detected is in compliance or not;
a binarization processing unit, which is used for processing the lightness space data through a plurality of binarization modes and correspondingly outputting a plurality of binarization results;
and the second judgment unit is used for fusing the main body area image with various binarization results respectively, extracting the coordinate value of each pixel in the fused main body area image and the corresponding background purity value, and judging whether the main body position of the picture to be detected is in compliance or not.
Preferably, between the binarization processing unit and the second judging unit, further comprising:
and respectively carrying out incoherent region suppression processing on the first binarization result and the second binarization result by adopting a non-maximum value suppression method.
Compared with the prior art, the beneficial effects of the picture detection device provided by the invention are the same as those of the picture detection method provided by the technical scheme, and are not repeated herein.
A third aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-mentioned picture detection method.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the invention are the same as those of the image detection method provided by the technical scheme, and are not repeated herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a picture detection method according to an embodiment of the present invention;
Fig. 2 is another schematic flow chart of the picture detection method according to the first embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1 and fig. 2, the present embodiment provides a method for detecting a picture, including:
acquiring a denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing; performing color space conversion on the picture to be detected, and outputting tone space data and brightness space data of the image; fusing the expanded main area image with the tone space data, extracting a background purity value corresponding to each pixel in a background area image formed after expansion, and judging whether the background purity of the picture to be detected is in compliance or not; processing lightness space data in multiple binarization modes, and correspondingly outputting multiple binarization results; and respectively fusing the main body area image with various binarization results, extracting the coordinate value and the corresponding background purity value of each pixel in the fused main body area image, and judging whether the main body position of the picture to be detected is in compliance or not.
In the image detection method provided in this embodiment, a main body region image and a background region image are first identified by segmenting and denoising a to-be-detected image at a pixel level semantic, and then color space conversion is performed on the to-be-detected image to output tone space data and brightness space data of the image: when the background purity detection item is performed, the fact that the edge pixels of the main body area image and the background area image are processed in a rough manner by pixel-level semantic segmentation is considered, so that the main body area image can be completely covered, the embodiment expands the range of the edge pixels of the main body area image by expanding the main body area image, then fuses the expanded main body area image and the tone space data, and finally judges whether the background purity of the picture to be detected is in compliance or not according to the background purity value corresponding to each pixel of the background area image in the fusion result; when a main body position detection item is carried out, firstly, brightness space data is processed in multiple binarization modes to obtain multiple binarization results corresponding to the brightness space data, then, a main body area image subjected to pixel level semantic segmentation is respectively fused with the multiple binarization results, and finally, whether the main body position of the picture to be detected is in compliance or not is judged based on the coordinate value of each pixel in the fused main body area image and the corresponding background purity value.
Therefore, the embodiment realizes the detection of the background purity and the main body position of the uploaded picture, and greatly improves the auditing efficiency compared with a manual auditing mode in the prior art.
In the above embodiment, the method for acquiring a denoised to-be-detected picture and identifying a main body region image and a background region image after pixel-level semantic segmentation processing includes:
denoising the picture to be detected by adopting a nonlinear filtering method; and performing pixel-level semantic segmentation on the denoised picture to be detected through a multi-channel depth residual full convolution network model, and identifying a main body region image and a background region image. Illustratively, the nonlinear filtering method is a median filtering denoising algorithm.
Specifically, the method for performing color space conversion on a picture to be tested and outputting hue space data and brightness space data of an image in the above embodiment includes:
converting hue space data of an output image of the picture to be detected by adopting an HSV color space conversion method, wherein the hue space data comprises a hue space component H; and converting brightness space data of an output image of the picture to be detected by adopting an LUV color space conversion method, wherein the brightness space data comprises a brightness space channel L.
In specific implementation, for the conversion of the hue space data, considering that the commonly used RGB color space is provided based on computer hardware, and the color space is not suitable for the characterization of color purity, the embodiment uses the HSV color space conversion method to convert the to-be-detected picture in the RGB color space into the HSV color space closer to the human visual perception characteristic, so as to enhance the color purity characterization capability, and further improve the accuracy of background purity detection. The conversion formula is as follows:
Figure BDA0002188309820000071
Because the lightness space data has the characteristics of wider color gamut coverage, better vision uniformity and stronger vision color perception expression capability, the implementation needs to implement the conversion of the lightness space data on the picture to be detected, and specifically comprises the following steps: firstly, RGB space data of a picture to be detected is converted into CIE XYZ space data, and then the CIE XYZ space data are converted into LUV brightness space data. The conversion formula is as follows:
Figure BDA0002188309820000072
Figure BDA0002188309820000073
μ=13×L×(μ′-μ n ′)
v=13×L×(v′-v n ′)
wherein, mu n ' and v n ' is a constant value of the light source, Y n Is a preset fixed value;
Figure BDA0002188309820000074
Figure BDA0002188309820000075
specifically, in the above embodiment, the method for fusing the expanded main area image with the hue space data, extracting the background purity value corresponding to each pixel in the background area image formed after the expansion processing, and determining whether the background purity of the to-be-detected picture is compliant includes:
filtering processing is carried out on edge pixels of the main area image through a filtering core so as to expand the main area image; updating the part of the picture to be detected except the expanded main body area image into a background area image; fusing the updated background area image with the data of the tone space component H, and judging whether the background purity values corresponding to all pixels in the updated background area image all accord with a first threshold value, if so, judging that the background purity of the picture to be detected is in compliance, otherwise, judging that the background purity of the picture to be detected is not in compliance; the first threshold comprises a first background purity threshold.
In specific implementation, a circular filter kernel k is selected to filter pixels of the image of the main region, and a circular filter kernel with a radius of 4 is taken as an example to explain:
Figure BDA0002188309820000081
the filter processing formula is as follows:
Figure BDA0002188309820000082
in the above formula, (i, j) represents pixel coordinates, P represents a subject region image, and Z ij Representing the corresponding background purity value of the pixel,
Figure BDA0002188309820000083
the method comprises the steps of representing a depocenter neighborhood region corresponding to each pixel by taking a circular filter kernel k as a mask, B representing a main body region image after expansion, updating a background region image after the main body region image is expanded, D representing an updated background region image, and then fusing the updated background region image with data of a hue space component H to obtain a result C, wherein the fusion formula is as follows:
Figure BDA0002188309820000084
wherein (i, j) represents pixel coordinates, H (i, j) represents a background purity value corresponding to a pixel in the hue space component H, when a pixel with the coordinate (i, j) belongs to the dilated background region image D, the background purity value of the pixel in the hue space component H is assigned, and when a pixel with the coordinate (i, j) does not belong to the dilated background region image D, assigning the background purity value of the pixel in the hue space component H to zero, summarizing the coordinate of each pixel and the corresponding background purity value to form an array C, namely an array formed by the position coordinate of each pixel in the background area image D and the corresponding converted background purity value, comparing a preset first threshold value with the array C, and when the background purity values corresponding to the pixels in the background region image D are smaller than the first background purity threshold value, judging that the background purity of the picture to be detected is in compliance.
Preferably, in the above embodiment, the lightness space data is processed by multiple binarization manners, and the corresponding method for outputting multiple binarization results includes:
processing data of the lightness space channel L in a fixed threshold binarization mode to obtain a first binarization result T; and processing the data of the lightness space channel L in a Gaussian window binarization mode to obtain a second binarization result G. And then, respectively carrying out incoherent region suppression processing on the first binarization result T and the second binarization result G by adopting a non-maximum value suppression method, eliminating the influence of an incoherent region caused by complex background on a detection result, and further improving the detection accuracy.
In the above embodiment, the method for fusing the main body region image with the multiple binarization results, extracting the coordinate value of each pixel in the fused main body region image and the corresponding background purity value, and determining whether the main body position of the picture to be detected is compliant includes:
respectively fusing the main body area image identified by pixel-level semantic segmentation processing with the first binarization result and the second binarization result; extracting coordinate values of pixels belonging to the main body area image and the first binarization result and corresponding background purity values from the fusion result; and/or extracting the coordinate values of the pixels belonging to the main body region image and the second binarization result and the corresponding background purity values from the fusion result; summarizing and extracting the coordinate values of the pixels and the corresponding background purity values, judging whether the coordinate values of the pixels and the corresponding background purity values all accord with a second threshold value, if so, judging that the main body position of the picture to be detected is in compliance, otherwise, judging that the main body position of the picture to be detected is not in compliance; the second threshold includes a second background purity threshold and a location coordinate interval threshold.
In practice, the fusion process is a known technique in the art, and is only exemplified as follows: the fusion formula is
Figure BDA0002188309820000091
And is
Figure BDA0002188309820000092
When the background purity value of the pixel (i, j) belongs to the intersection of the first binarization result T and the main body region image, the coordinate of the pixel and the corresponding background purity value are taken, or when the background purity value of the pixel (i, j) belongs to the intersection of the second binarization result G and the main body region image, the coordinate of the pixel and the corresponding background purity value are taken, the pixel coordinate and the corresponding background purity value are finally collected to form an array F, namely the array formed by the pixel position coordinate and the corresponding background purity value after the T n P and the G n P are collected, the preset second threshold value array is compared with the array F, and when the pixel coordinate is within the threshold value range of the position coordinate interval and the background purity value is within the second background purity threshold value, the main body position compliance of the picture to be measured is determined.
Example two
The embodiment provides a picture detection device, including:
the pixel processing unit is used for acquiring the denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing;
the color space conversion unit is used for performing color space conversion on the picture to be detected and outputting tone space data and lightness space data of the image;
The first judgment unit is used for fusing the expanded main area image with the tone space data, extracting the background purity value corresponding to each pixel in the background area image formed after the expansion processing, and judging whether the background purity of the picture to be detected is in compliance or not;
the binarization processing unit is used for processing the lightness space data through various binarization modes and correspondingly outputting various binarization results;
and the second judgment unit is used for fusing the main body area image with various binarization results respectively, extracting the coordinate value of each pixel in the fused main body area image and the corresponding background purity value, and judging whether the main body position of the picture to be detected is in compliance or not.
Preferably, between the binarization processing unit and the second judging unit, further comprising:
and respectively carrying out incoherent region suppression processing on the first binarization result and the second binarization result by adopting a non-maximum value suppression method.
Compared with the prior art, the beneficial effects of the image detection device provided by the embodiment are the same as those of the image detection method based on the convolutional neural network provided by the embodiment, and are not repeated herein.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned picture detection method are executed.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment are the same as those of the image detection method provided by the above technical scheme, and are not repeated herein.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the invention may be implemented by hardware that is instructed to be associated with a program, the program may be stored in a computer-readable storage medium, and when the program is executed, the program includes the steps of the method of the embodiment, and the storage medium may be: ROM/RAM, magnetic disks, optical disks, memory cards, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A picture detection method is characterized by comprising the following steps:
acquiring a denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing;
Performing color space conversion on the picture to be detected, and outputting tone space data and brightness space data of the image;
fusing the expanded main area image with the tone space data, extracting a background purity value corresponding to each pixel in a background area image formed after expansion, and judging whether the background purity of the picture to be detected is in compliance, wherein the expanded background area image is the part of the expanded main area image of the picture to be detected except the main area image;
processing the brightness space data in multiple binarization modes, and correspondingly outputting multiple binarization results;
and fusing the main body area image with various binarization results respectively, extracting the coordinate value and the corresponding background purity value of each pixel in the fused main body area image, and judging whether the main body position of the picture to be detected is in compliance, wherein the method for judging whether the main body position of the picture to be detected is in compliance comprises the step of comparing whether the coordinate value of each pixel and the corresponding background purity value meet a second threshold value according to the coordinate value and the corresponding background purity value of each pixel.
2. The method as claimed in claim 1, wherein the method for obtaining the denoised image to be detected and identifying the image of the main region and the image of the background region after the pixel-level semantic segmentation processing comprises: denoising the picture to be detected by adopting a nonlinear filtering method;
and performing pixel-level semantic segmentation on the denoised picture to be detected through a multi-channel depth residual full convolution network model, and identifying a main body region image and a background region image.
3. The method of claim 1, wherein the color space conversion is performed on the picture under test, and the method of outputting the hue space data and the lightness space data of the image comprises: converting hue space data of an output image of a picture to be detected by adopting an HSV (hue, saturation and value) color space conversion method, wherein the hue space data comprises a hue space component H;
and converting brightness space data of an output image of the picture to be detected by adopting an LUV color space conversion method, wherein the brightness space data comprises a brightness space channel L.
4. The method according to claim 3, wherein the method for fusing the expanded main region image with the hue space data, extracting the background purity value corresponding to each pixel in the background region image formed after the expansion processing, and determining whether the background purity of the picture to be measured is compliant comprises: filtering processing is carried out on edge pixels of the main body area image through a filtering core so as to expand the main body area image;
Updating the part of the picture to be detected except the expanded main body area image into a background area image;
fusing the updated background area image with the data of the tone space component H, and judging whether the background purity values corresponding to all pixels in the updated background area image all accord with a first threshold value, if so, judging that the background purity of the picture to be detected is in compliance, otherwise, judging that the background purity of the picture to be detected is not in compliance;
the first threshold comprises a first background purity threshold.
5. The method according to claim 3, wherein the lightness space data is processed by a plurality of binarization manners, and the corresponding method for outputting a plurality of binarization results comprises: processing data of the lightness space channel L in a fixed threshold value binarization mode to obtain a first binarization result;
and processing the data of the lightness space channel L in a Gaussian window binarization mode to obtain a second binarization result.
6. The method according to claim 5, further comprising, after outputting a plurality of binarization results: and respectively carrying out incoherent region suppression processing on the first binarization result and the second binarization result by adopting a non-maximum value suppression method.
7. The method according to claim 5 or 6, wherein the method for fusing the main body region image with a plurality of binarization results respectively, extracting the coordinate value of each pixel in the fused main body region image and the corresponding background purity value, and judging whether the main body position of the picture to be tested is compliant comprises the following steps: respectively fusing the main body area image identified by pixel-level semantic segmentation processing with the first binarization result and the second binarization result;
extracting the coordinate values and the corresponding background purity values of the pixels belonging to the main body area image and the first binarization result from the fusion result, and extracting the coordinate values and the corresponding background purity values of the pixels belonging to the main body area image and the second binarization result from the fusion result;
summarizing and extracting the coordinate values of the pixels and the corresponding background purity values, judging whether the coordinate values of the pixels and the corresponding background purity values all accord with a second threshold value, if so, judging that the main body position of the picture to be detected is in compliance, otherwise, judging that the main body position of the picture to be detected is not in compliance;
the second threshold includes a second background purity threshold and a location coordinate interval threshold.
8. A picture detection device, comprising:
The pixel processing unit is used for acquiring a denoised picture to be detected, and identifying a main body region image and a background region image after pixel-level semantic segmentation processing;
the color space conversion unit is used for performing color space conversion on the picture to be tested and outputting tone space data and brightness space data of the image;
the first judgment unit is used for fusing the expanded main body area image with the tone space data, extracting a background purity value corresponding to each pixel in a background area image formed after expansion, and judging whether the background purity of the picture to be detected is in compliance, wherein the expanded background area image is the part of the expanded main body area image of the picture to be detected except the main body area image;
a binarization processing unit, which is used for processing the brightness space data through a plurality of binarization modes and correspondingly outputting a plurality of binarization results;
and the second judging unit is used for fusing the main body area image with various binarization results respectively, extracting the coordinate value and the corresponding background purity value of each pixel in the fused main body area image, and judging whether the main body position of the picture to be detected is in compliance, wherein the method for judging whether the main body position of the picture to be detected is in compliance comprises the step of comparing whether the coordinate value and the corresponding background purity value of each pixel accord with a second threshold value according to the coordinate value and the corresponding background purity value of each pixel.
9. The apparatus according to claim 8, further comprising, between said binarization processing unit and said second judging unit: and respectively carrying out incoherent region suppression processing on the first binarization result and the second binarization result by adopting a non-maximum value suppression method.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
CN201910826006.7A 2019-09-02 2019-09-02 Picture detection method and device Active CN110717865B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201910826006.7A CN110717865B (en) 2019-09-02 2019-09-02 Picture detection method and device
CA3153067A CA3153067C (en) 2019-09-02 2020-06-24 Picture-detecting method and apparatus
PCT/CN2020/097857 WO2021042823A1 (en) 2019-09-02 2020-06-24 Picture test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910826006.7A CN110717865B (en) 2019-09-02 2019-09-02 Picture detection method and device

Publications (2)

Publication Number Publication Date
CN110717865A CN110717865A (en) 2020-01-21
CN110717865B true CN110717865B (en) 2022-07-29

Family

ID=69210275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910826006.7A Active CN110717865B (en) 2019-09-02 2019-09-02 Picture detection method and device

Country Status (3)

Country Link
CN (1) CN110717865B (en)
CA (1) CA3153067C (en)
WO (1) WO2021042823A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717865B (en) * 2019-09-02 2022-07-29 苏宁云计算有限公司 Picture detection method and device
CN112991470B (en) * 2021-02-08 2023-12-26 上海通办信息服务有限公司 Certificate photo background color checking method and system under complex background
CN114862897B (en) * 2022-04-24 2024-08-09 北京百度网讯科技有限公司 Image background processing method and device and electronic equipment
CN115126267B (en) * 2022-07-25 2024-05-31 中建八局第三建设有限公司 Optical positioning control system and method applied to pre-buried dowel bar alignment of concrete member
CN114996488B (en) * 2022-08-08 2022-10-25 北京道达天际科技股份有限公司 Skynet big data decision-level fusion method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686338A (en) * 2008-09-26 2010-03-31 索尼株式会社 System and method for partitioning foreground and background in video
CN102982335A (en) * 2012-12-21 2013-03-20 北京邮电大学 Intelligent safe multi-license-plate positioning identification method based on cellular neural network
CN103578098A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Method and device for extracting commodity body in commodity picture
WO2014205231A1 (en) * 2013-06-19 2014-12-24 The Regents Of The University Of Michigan Deep learning framework for generic object detection
CN104268537A (en) * 2014-10-14 2015-01-07 杭州淘淘搜科技有限公司 Main body detection method based on complex commodity images
CN105631455A (en) * 2014-10-27 2016-06-01 阿里巴巴集团控股有限公司 Image main body extraction method and system
CN106407983A (en) * 2016-09-12 2017-02-15 南京理工大学 Image body identification, correction and registration method
CN106611431A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An image detection method and apparatus
CN108447064A (en) * 2018-02-28 2018-08-24 苏宁易购集团股份有限公司 A kind of image processing method and device
CN109961453A (en) * 2018-10-15 2019-07-02 华为技术有限公司 A kind of image processing method, device and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139383B (en) * 2015-08-11 2018-08-10 北京理工大学 Medical image cutting method based on definition circle hsv color space
KR101995523B1 (en) * 2017-12-14 2019-10-01 동국대학교 산학협력단 Apparatus and method for object detection with shadow removed
CN109214367A (en) * 2018-10-25 2019-01-15 东北大学 A kind of method for detecting human face of view-based access control model attention mechanism
CN109544583B (en) * 2018-11-23 2023-04-18 广东工业大学 Method, device and equipment for extracting interested area of leather image
CN110717865B (en) * 2019-09-02 2022-07-29 苏宁云计算有限公司 Picture detection method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686338A (en) * 2008-09-26 2010-03-31 索尼株式会社 System and method for partitioning foreground and background in video
CN103578098A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Method and device for extracting commodity body in commodity picture
CN102982335A (en) * 2012-12-21 2013-03-20 北京邮电大学 Intelligent safe multi-license-plate positioning identification method based on cellular neural network
WO2014205231A1 (en) * 2013-06-19 2014-12-24 The Regents Of The University Of Michigan Deep learning framework for generic object detection
CN104268537A (en) * 2014-10-14 2015-01-07 杭州淘淘搜科技有限公司 Main body detection method based on complex commodity images
CN105631455A (en) * 2014-10-27 2016-06-01 阿里巴巴集团控股有限公司 Image main body extraction method and system
CN106611431A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An image detection method and apparatus
CN106407983A (en) * 2016-09-12 2017-02-15 南京理工大学 Image body identification, correction and registration method
CN108447064A (en) * 2018-02-28 2018-08-24 苏宁易购集团股份有限公司 A kind of image processing method and device
CN109961453A (en) * 2018-10-15 2019-07-02 华为技术有限公司 A kind of image processing method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Color Image Segmentation Based on Different Color Space Models Using Automatic GrabCut;Dina Khattab 等;《The Scientific World Journal》;20140831;第2014卷;第1-11页 *
一种新的融合颜色和空间信息的目标提取方法;魏玮 等;《计算机应用与软件》;20150131;第32卷(第01期);第217-220页 *

Also Published As

Publication number Publication date
CN110717865A (en) 2020-01-21
CA3153067A1 (en) 2021-03-11
WO2021042823A1 (en) 2021-03-11
CA3153067C (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN110717865B (en) Picture detection method and device
US10521885B2 (en) Image processing device and image processing method
Shin et al. Radiance–reflectance combined optimization and structure-guided $\ell _0 $-Norm for single image dehazing
EP3156970B1 (en) Haze removal
EP2852152B1 (en) Image processing method, apparatus and shooting terminal
Peng et al. Image haze removal using airlight white correction, local light filter, and aerial perspective prior
US8094964B2 (en) Methods and systems for estimating illumination source characteristics from a single image
Li et al. A multi-scale fusion scheme based on haze-relevant features for single image dehazing
Saini et al. Object detection in underwater image by detecting edges using adaptive thresholding
CN110390643B (en) License plate enhancement method and device and electronic equipment
El Khoury et al. Color and sharpness assessment of single image dehazing
Nair et al. An effective surround filter for image dehazing
US9092862B2 (en) Image processing apparatus, image adjusting apparatus, image processing method and computer readable medium
JP2011076302A (en) Device, contour extraction method program, and contour extraction
Srinivas et al. Channel prior based Retinex model for underwater image enhancement
CN110310341A (en) Method, device, equipment and storage medium for generating default parameters in color algorithm
Negru et al. Exponential image enhancement in daytime fog conditions
Tang et al. Sky-preserved image dehazing and enhancement for outdoor scenes
Dehesa‐González et al. Lighting source classification applied in color images to contrast enhancement
Rosli et al. Some technique for an Image of defect in inspection process based on image processing
CN111476810B (en) Image edge detection method and device, electronic equipment and storage medium
David Low illumination image enhancement algorithm using iterative recursive filter and visual gamma transformation function
CN112801112A (en) Image binarization processing method, device, medium and equipment
Mohd Jain Noordin et al. Saturation avoidance color correction for digital color images
CN115049746B (en) Image color correction method, device, electronic equipment and storage 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee after: Jiangsu Suning cloud computing Co.,Ltd.

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Suning Cloud Computing Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240117

Address after: 210000, 1-5 story, Jinshan building, 8 Shanxi Road, Nanjing, Jiangsu.

Patentee after: SUNING.COM Co.,Ltd.

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Jiangsu Suning cloud computing Co.,Ltd.