CN113628203B - Image quality detection method and detection system - Google Patents

Image quality detection method and detection system Download PDF

Info

Publication number
CN113628203B
CN113628203B CN202110967697.XA CN202110967697A CN113628203B CN 113628203 B CN113628203 B CN 113628203B CN 202110967697 A CN202110967697 A CN 202110967697A CN 113628203 B CN113628203 B CN 113628203B
Authority
CN
China
Prior art keywords
value
image
power spectrum
average brightness
overexposure
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
CN202110967697.XA
Other languages
Chinese (zh)
Other versions
CN113628203A (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.)
Suzhou Zhongke Advanced Technology Research Institute Co Ltd
Original Assignee
Suzhou Zhongke Advanced Technology Research Institute 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 Suzhou Zhongke Advanced Technology Research Institute Co Ltd filed Critical Suzhou Zhongke Advanced Technology Research Institute Co Ltd
Priority to CN202110967697.XA priority Critical patent/CN113628203B/en
Publication of CN113628203A publication Critical patent/CN113628203A/en
Application granted granted Critical
Publication of CN113628203B publication Critical patent/CN113628203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/11Region-based segmentation
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20048Transform domain processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

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

Abstract

According to the image quality detection method and system provided by the application, the image to be detected is cut into N non-overlapping images, the power spectrum estimated value and the average brightness value of each small image are calculated, the power spectrum estimated value and the average brightness value are compared with the preset threshold value to obtain overexposure and overdarkness areas, and whether the image to be detected has quality problems or not is determined according to the ratio of the number of the overexposure and overdarkness areas to the number of the total areas.

Description

Image quality detection method and detection system
Technical Field
The invention belongs to the technical field of image recognition, and particularly relates to an image quality detection method and an image detection system.
Background
With the continuous development of computer vision technology, the requirements of the related fields on image quality are also higher and higher. Such as the exposure of the relevant practitioner to a large amount of image data per day; for example, people need to judge the image quality before performing related operations such as face recognition, and the like, and the images meeting the standards are subjected to recognition operations and the like. The accuracy and the speed of the existing image quality detection are not enough.
Disclosure of Invention
In view of this, it is necessary to provide an image quality detection method with higher accuracy and higher speed for detecting image quality against the defects existing in the prior art.
In order to solve the problems, the invention adopts the following technical scheme:
the application provides an image quality detection method, which comprises the following steps:
cutting the image to be detected into N non-overlapping images;
calculating a power spectrum estimated value of each small image;
Calculating the average brightness value of each small image;
Comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposure area and an overexposure area;
and determining whether the image to be detected has quality problems or not according to the ratio of the number of the overexposure and the overdrising areas to the total number of the areas.
In some embodiments, the step of calculating the power spectrum estimation value of each small image specifically includes the following steps:
Performing Fourier transform on the small image to obtain a frequency spectrum;
Calculating a power spectrum according to the frequency spectrum;
centering the power spectrum;
the power spectrum after the centering treatment is unidimensionally obtained into a low-frequency region and a high-frequency region;
And respectively calculating the total value of the low frequency region and the total value of the high frequency region, and taking the ratio of the total value to the total value as a power spectrum estimated value.
In some embodiments, the step of calculating the average brightness value of each small image specifically includes the steps of:
And converting the small image into HSV, and extracting the average value of the V channels as the average brightness value of the image.
In some embodiments, in the step of comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposed area and an overexposed area, the method specifically includes:
The threshold values comprise a power spectrum overexposure threshold value, an average brightness overexposure threshold value and an average brightness overexposure threshold value:
Comparing the power spectrum estimated value with the average brightness value and a preset threshold value, and recognizing the area as an overexposure area when the power spectrum estimated value is smaller than the power spectrum overexposure threshold value and the average brightness value is larger than the average brightness overexposure threshold value;
And when the power spectrum estimated value is larger than the power spectrum over-dark threshold value and the average brightness value is smaller than the average brightness over-dark threshold value, the area is considered to be an over-dark area.
In some embodiments, in the step of determining whether the image to be detected has a quality problem by the ratio of the number of the overexposed areas and the overdosed areas to the total number of the areas, the method specifically includes:
And when the ratio of the number of the overexposure and the overdosed areas to the total area number is larger than the threshold value, the image to be detected has quality problems.
In addition, the application also provides an image quality detection system, which comprises:
The image clipping module is used for clipping the image to be detected into N non-overlapping images;
The first calculation module is used for calculating a power spectrum estimated value of each small image;
The second calculation module is used for calculating the average brightness value of each small image;
The comparison module is used for comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposure area and an overdark area;
and the confirmation module is used for determining whether the image to be detected has quality problems or not according to the ratio of the number of the overexposed areas to the number of the total areas.
The technical scheme adopted by the application has the following effects:
According to the image quality detection method and system provided by the application, the image to be detected is cut into N non-overlapping images, the power spectrum estimated value and the average brightness value of each small image are calculated, the power spectrum estimated value and the average brightness value are compared with the preset threshold value to obtain overexposure and overdarkness areas, and whether the image to be detected has quality problems or not is determined according to the ratio of the number of the overexposure and overdarkness areas to the number of the total areas.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the embodiments of the present invention or the drawings used in the description of the prior art, and it is obvious that the drawings described below are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart illustrating steps of an image quality detection method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a step of calculating a power spectrum estimation value of each small image according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a low-frequency region and a high-frequency region obtained by unidimensionally processing a power spectrum according to the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an image quality detection system according to an embodiment of the present application.
Fig. 5 is a schematic diagram of overexposure and overdrising detection in the image quality detection method according to embodiment 1 of the present application.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
In the description of the present invention, it should be understood that the directions or positional relationships indicated by the terms "upper", "lower", "horizontal", "inner", "outer", etc., are based on the directions or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent.
Referring to fig. 1, a flowchart of steps of an image quality detection method provided by the present application includes the following steps:
Step S110: the image to be detected is cut into non-overlapping N images.
Step S120: a power spectrum estimate is calculated for each patch image.
Specifically, referring to fig. 2, in the step of calculating the power spectrum estimated value of each small image provided in the embodiment of the present application, the method specifically includes the following steps:
Step S121: and carrying out Fourier transform on the small-block image to obtain a frequency spectrum.
Specifically, the fourier transform formula is:
M, N represents the length and width of the image; f (x, y) is the pixel value of a specific position of the image; u, v are the frequency domain components corresponding to x and y.
Represented as real and imaginary parts.
Step S122: and calculating a power spectrum according to the frequency spectrum.
Specifically, the calculation formula of the power spectrum is:
P(u,v)=|F(u,v)|2
Step S123: and (5) centering the power spectrum.
Step S124: and the power spectrum after the centering treatment is unidimensionally obtained into a low-frequency region and a high-frequency region.
Referring to fig. 3, a schematic diagram of a low-frequency region and a high-frequency region obtained by unidimensionally processing a power spectrum according to the present embodiment is provided, wherein an X-axis represents frequency, a Y-axis represents energy, a is a high-frequency region, b is a low-frequency region, and c is a noise region.
Step S125: and respectively calculating the total value of the low frequency region and the total value of the high frequency region, and taking the ratio of the total value to the total value as a power spectrum estimated value.
The power spectrum estimation value for each small image can be completed by the steps S121 to S125 described above.
Step S130: an average luminance value of each small image is calculated.
Specifically, the small image is converted into HSV, and the average value of the V channel is extracted as the average brightness value of the image.
It will be appreciated that the tile image may also be converted into LAB or YUV space, and the average value of the L-channel or Y-channel extracted as the average luminance value of the image, respectively.
Step S140: and comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposure area and an overexposure area.
Specifically, in the step of comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposed and an excessively darkened region, the method specifically includes:
The threshold values comprise a power spectrum overexposure threshold value, an average brightness overexposure threshold value and an average brightness overexposure threshold value:
Comparing the power spectrum estimated value with the average brightness value and a preset threshold value, and recognizing the area as an overexposure area when the power spectrum estimated value is smaller than the power spectrum overexposure threshold value and the average brightness value is larger than the average brightness overexposure threshold value;
And when the power spectrum estimated value is larger than the power spectrum over-dark threshold value and the average brightness value is smaller than the average brightness over-dark threshold value, the area is considered to be an over-dark area.
Step S150: and determining whether the image to be detected has quality problems or not according to the ratio of the number of the overexposure and the overdrising areas to the total number of the areas.
Specifically, in the step of determining whether the image to be detected has quality problems by the overexposure and the ratio of the number of the excessively dark areas and the total number of the areas, the method specifically includes:
And when the ratio of the number of the overexposure and the overdosed areas to the total area number is larger than the threshold value, the image to be detected has quality problems.
The image quality detection method provided by the application can detect the quality problems of exposure, darkness and the like in the image, filter the problems, improve the overall quality of the collected image, and can be applied to preprocessing in certain recognition fields so as to improve the recognition precision.
Referring to fig. 4, the present application further provides an image quality detection system, which includes: the image clipping module 110 is configured to clip an image to be detected into N non-overlapping images; the first calculation module 120 is configured to calculate a power spectrum estimation value of each small image; the second calculating module 130 is configured to calculate an average brightness value of each small image; the comparison module 140 is configured to compare the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposed area and an excessively darkened area; the confirmation module 150 is configured to determine whether the image to be detected has a quality problem by a ratio of the number of the overexposed and the overdosed regions to the total number of the regions.
The detailed operation manner of each module of the image quality detection system provided in this embodiment is described in detail in embodiment 1, and will not be described here again.
The image quality detection system provided by the application can detect the quality problems of exposure, darkness and the like in the image, filter the problems, improve the overall quality of the collected image, and can be applied to preprocessing in certain recognition fields so as to improve the recognition precision.
Example 1
First, we cut the image to be detected into 15 x 15 non-overlapping patches.
Then we calculate the power spectrum estimate and the average luminance value of the patch image, respectively.
Next, we compare the power spectrum estimate and the average luminance value to a preset threshold (including a power spectrum overexposure threshold, an average luminance overexposure threshold, and an average luminance overexposure threshold). Meanwhile, the power spectrum overexposure threshold (smaller than) and the average brightness overexposure threshold (larger than) are met, and the area is considered to be an overexposure area; while satisfying the power spectrum over-darkness threshold (greater than) and the average brightness over-darkness threshold (less than) to identify the region as an over-darkness region.
Referring to fig. 5, an overexposure and darkness diagram is provided in embodiment 1 of the present application, wherein a frame a represents overexposure and a frame B represents darkness.
And finally, determining whether the image to be detected has quality problems or not according to the ratio of the number of the overexposed dark areas to the total number of the areas.
The image quality detection method and the system can detect the quality problems of exposure, darkness and the like in the image, filter the problems, improve the overall quality of the collected image, and can be applied to preprocessing in certain recognition fields so as to improve the recognition precision.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (4)

1. An image quality detection method, characterized by comprising the steps of:
cutting the image to be detected into N non-overlapping images;
calculating a power spectrum estimated value of each small image;
Calculating the average brightness value of each small image;
Comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposure area and an overexposure area;
determining whether the image to be detected has quality problems or not according to the overexposure and the ratio of the number of the overexposed areas to the total number of the areas;
The step of calculating the power spectrum estimated value of each small image specifically comprises the following steps:
Performing Fourier transform on the small image to obtain a frequency spectrum;
Calculating a power spectrum according to the frequency spectrum;
centering the power spectrum;
the power spectrum after the centering treatment is unidimensionally obtained into a low-frequency region and a high-frequency region;
Respectively calculating the total value of the low frequency region and the total value of the high frequency region, and taking the ratio of the total value to the total value as a power spectrum estimated value;
the step of calculating the average brightness value of each small image specifically comprises the following steps:
And converting the small image into HSV, and extracting the average value of the V channels as the average brightness value of the image.
2. The method according to claim 1, wherein the step of comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain the overexposed and the excessively darkened region specifically comprises:
The threshold values comprise a power spectrum overexposure threshold value, an average brightness overexposure threshold value and an average brightness overexposure threshold value:
Comparing the power spectrum estimated value with the average brightness value and a preset threshold value, and recognizing the area as an overexposure area when the power spectrum estimated value is smaller than the power spectrum overexposure threshold value and the average brightness value is larger than the average brightness overexposure threshold value;
And when the power spectrum estimated value is larger than the power spectrum over-dark threshold value and the average brightness value is smaller than the average brightness over-dark threshold value, the area is considered to be an over-dark area.
3. The image quality detecting method according to claim 1, wherein in the step of determining whether or not there is a quality problem in the image to be detected by the ratio of the number of the overexposed and the excessively darkened areas and the total area number, specifically comprising:
And when the ratio of the number of the overexposure and the overdosed areas to the total area number is larger than the threshold value, the image to be detected has quality problems.
4. An image quality detecting system, characterized in that the image quality detecting method according to any one of claims 1 to 3 is employed; the system comprises:
The image clipping module is used for clipping the image to be detected into N non-overlapping images;
The first calculation module is used for calculating a power spectrum estimated value of each small image;
The second calculation module is used for calculating the average brightness value of each small image;
The comparison module is used for comparing the power spectrum estimated value with the average brightness value and a preset threshold value to obtain an overexposure area and an overdark area;
and the confirmation module is used for determining whether the image to be detected has quality problems or not according to the ratio of the number of the overexposed areas to the number of the total areas.
CN202110967697.XA 2021-08-23 2021-08-23 Image quality detection method and detection system Active CN113628203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110967697.XA CN113628203B (en) 2021-08-23 2021-08-23 Image quality detection method and detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110967697.XA CN113628203B (en) 2021-08-23 2021-08-23 Image quality detection method and detection system

Publications (2)

Publication Number Publication Date
CN113628203A CN113628203A (en) 2021-11-09
CN113628203B true CN113628203B (en) 2024-05-17

Family

ID=78387474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110967697.XA Active CN113628203B (en) 2021-08-23 2021-08-23 Image quality detection method and detection system

Country Status (1)

Country Link
CN (1) CN113628203B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000004398A (en) * 1998-06-16 2000-01-07 Fuji Photo Film Co Ltd Image processing method and image processor thereof
JP2006064638A (en) * 2004-08-30 2006-03-09 Fuji Photo Film Co Ltd Mtf measurement method and its device
CN103617617A (en) * 2013-12-05 2014-03-05 淮海工学院 Underwater image quality evaluating and measuring method based on power spectrum description
CN106448524A (en) * 2016-12-14 2017-02-22 深圳Tcl数字技术有限公司 Display brightness uniformity test method and device
JP2017102039A (en) * 2015-12-02 2017-06-08 凸版印刷株式会社 Pattern measurement program, pattern measurement method, and device
CN107566752A (en) * 2017-10-31 2018-01-09 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable storage medium
CN109472758A (en) * 2018-11-20 2019-03-15 山东科技大学 A kind of seismic section image grain details Enhancement Method
CN109727215A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN111739110A (en) * 2020-08-07 2020-10-02 北京美摄网络科技有限公司 Method and device for detecting image over-darkness or over-exposure
CN112529854A (en) * 2020-11-30 2021-03-19 华为技术有限公司 Noise estimation method, device, storage medium and equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000004398A (en) * 1998-06-16 2000-01-07 Fuji Photo Film Co Ltd Image processing method and image processor thereof
JP2006064638A (en) * 2004-08-30 2006-03-09 Fuji Photo Film Co Ltd Mtf measurement method and its device
CN103617617A (en) * 2013-12-05 2014-03-05 淮海工学院 Underwater image quality evaluating and measuring method based on power spectrum description
JP2017102039A (en) * 2015-12-02 2017-06-08 凸版印刷株式会社 Pattern measurement program, pattern measurement method, and device
CN106448524A (en) * 2016-12-14 2017-02-22 深圳Tcl数字技术有限公司 Display brightness uniformity test method and device
CN107566752A (en) * 2017-10-31 2018-01-09 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable storage medium
CN109472758A (en) * 2018-11-20 2019-03-15 山东科技大学 A kind of seismic section image grain details Enhancement Method
CN109727215A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN111739110A (en) * 2020-08-07 2020-10-02 北京美摄网络科技有限公司 Method and device for detecting image over-darkness or over-exposure
CN112529854A (en) * 2020-11-30 2021-03-19 华为技术有限公司 Noise estimation method, device, storage medium and equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Texture Spectrum of High-Definition Images with Frequency-Dependent Quantization;Oleg Gofaizen;《2018 International Scientific-Practical Conference Problems of Infocommunications. Science and Technology (PIC S&T)》;20190203;全文 *
航天测控光学系统图像质量评价方法研究;孙百龙;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20210115;全文 *
高动态范围图像合成与显示技术研究;孙婧;《中国优秀硕士学位论文全文数据库 信息科技辑》;20171215;全文 *

Also Published As

Publication number Publication date
CN113628203A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
US9361672B2 (en) Image blur detection
CN105405142A (en) Edge defect detection method and system for glass panel
CN115841434B (en) Infrared image enhancement method for gas concentration analysis
CN113313677B (en) Quality detection method for X-ray image of wound lithium battery
CN102855617B (en) Method and system for processing adaptive images
CN101923637B (en) A kind of mobile terminal and method for detecting human face thereof and device
CN111598897B (en) Infrared image segmentation method based on Otsu and improved Bernsen
US11126824B2 (en) Face image quality evaluating method and apparatus and computer readable storage medium using the same
CN114596329A (en) Gas image enhancement and gas leakage detection method and system
CN117541582B (en) IGBT insulation quality detection method for high-frequency converter
CN110222647B (en) Face in-vivo detection method based on convolutional neural network
Srujana et al. Edge Detection with different Parameters in Digital Image Processing using GUI
CN113628203B (en) Image quality detection method and detection system
WO2006131866A3 (en) Method and system for image processing
CN111507347A (en) Electrical equipment infrared image enhancement and segmentation method based on partial differential equation
CN104657972A (en) Ambiguity judging method and system of image block
CN114581433B (en) Method and system for acquiring surface morphology detection image in metal ball cavity
CN110599510A (en) Picture feature extraction method
CN109448012A (en) A kind of method for detecting image edge and device
CN212846888U (en) Metal element recognition device
CN109033969B (en) Infrared target detection method based on Bayesian saliency map calculation model
CN112184733A (en) Cervical abnormal cell detection device and method
CN101789127A (en) Method for extracting target from video image
CN115937016B (en) Contrast enhancement method for guaranteeing image details
CN116188510B (en) Enterprise emission data acquisition system based on multiple sensors

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