WO2022152107A1 - Infrared image quality evaluation method, device, and storage medium - Google Patents

Infrared image quality evaluation method, device, and storage medium Download PDF

Info

Publication number
WO2022152107A1
WO2022152107A1 PCT/CN2022/071242 CN2022071242W WO2022152107A1 WO 2022152107 A1 WO2022152107 A1 WO 2022152107A1 CN 2022071242 W CN2022071242 W CN 2022071242W WO 2022152107 A1 WO2022152107 A1 WO 2022152107A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target area
evaluated
value
brightness value
Prior art date
Application number
PCT/CN2022/071242
Other languages
French (fr)
Chinese (zh)
Inventor
刘勇
张涛
陈美文
何科君
武金龙
Original Assignee
深圳市普渡科技有限公司
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 深圳市普渡科技有限公司 filed Critical 深圳市普渡科技有限公司
Publication of WO2022152107A1 publication Critical patent/WO2022152107A1/en

Links

Images

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
    • 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/10Image acquisition modality
    • G06T2207/10048Infrared image
    • 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/20004Adaptive image processing
    • G06T2207/20012Locally adaptive
    • 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

Definitions

  • the present application relates to the technical field of infrared image processing, and in particular, to an infrared image quality evaluation method, device and storage medium.
  • the conventional infrared image quality evaluation scheme is generally based on the overall image. In the application scenario, only a specific area of the infrared image needs to be evaluated.
  • the conventional infrared image quality evaluation scheme is used to evaluate the local high-contrast infrared image scene, it is not conducive to the subsequent image algorithm processing, nor is it conducive to provide accurate early warning and reference for judging whether the field data is abnormal.
  • an infrared image quality evaluation method including:
  • the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
  • a quality score of the image to be evaluated related to the feature data is calculated.
  • An infrared image quality evaluation device comprising:
  • an image acquisition module to be evaluated configured to acquire an infrared image as an image to be evaluated
  • a highlight area detection module configured to acquire a target area based on the to-be-evaluated image
  • the highlight area brightness and sharpness evaluation module based on the target area, respectively calculates the characteristic data of each target area, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
  • the step module of outputting the quality evaluation result of the image to be evaluated is used for calculating the quality score of the image to be evaluated related to the characteristic data based on the acquired characteristic data.
  • a computer device includes a memory, a processor, and a readable storage medium stored in the memory and executable on the processor, and the processor implements the following steps when executing the readable storage medium:
  • the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
  • One or more computer-readable storage media storing computer-readable instructions that store computer-readable instructions that, when executed by one or more processors, cause the One or more processors perform the following steps:
  • the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
  • a quality score of the image to be evaluated related to the feature data is calculated.
  • FIG. 1 is a flowchart of a method for evaluating infrared image quality in an embodiment of the present application
  • Fig. 2 is another flowchart of an infrared image quality evaluation method in an embodiment of the present application
  • FIG. 3 is another flowchart of an infrared image quality evaluation method in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an infrared image quality evaluation device in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a computer device in an embodiment of the present application.
  • An embodiment of the present application provides an infrared image quality evaluation method, as shown in FIG. 1 , including the following steps:
  • Step S1 of acquiring an image to be evaluated acquiring an infrared image as an image to be evaluated.
  • an infrared image is obtained as an image to be evaluated by adopting a high-reverse cooperation sign and a supplementary light enhancement method; the cooperation sign is an artificially set reflective sign.
  • Highlight region detection step S2 based on the to-be-evaluated image, acquire a target region.
  • dividing several target areas includes preprocessing the to-be-evaluated image, that is, performing adaptive threshold segmentation on the to-be-evaluated image to obtain a corresponding binary map, wherein the to-be-evaluated image It is obtained by using a number of high-reverse cooperation signs and fill lights to enhance the acquisition.
  • the circumscribed rectangle of each cooperative logo is obtained, and the circumscribed rectangle of each cooperative logo is expanded by several pixels to obtain a plurality of expanded logo circumscribed rectangles area, and a rectangular area circumscribing each mark is used as the target area.
  • the circumscribed rectangle of each cooperation sign may also be expanded in a preset area ratio, for example, the target area is obtained by expanding the circumscribed rectangle of each cooperation sign by 25%.
  • the rectangular area of the N*M pixel points is generally taken as a square.
  • the rectangular area may be a square area of 200 ⁇ 200 pixels, and in other embodiments, it may also be an area of other numbers of pixels, which is not limited here.
  • Brightness and sharpness evaluation step S3 of the highlighted area Based on the target area, calculate the characteristic data of each target area respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area.
  • a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated needs to be generated.
  • the The two-dimensional Gaussian distribution obtains the maximum value;
  • the two-dimensional Gaussian distribution is multiplied by a preset scale coefficient lamda to obtain a template showing the brightness distribution of the image to be evaluated;
  • the sharpness value for each of the target regions is calculated based on the average gradient of the luminance values by the following formula:
  • the C is the sharpness value
  • the D is the average gradient of the luminance value
  • the regional brightness value and sharpness value of the target area are characteristic data used for image quality evaluation.
  • Step S4 Based on the acquired feature data, calculate a quality score of the image to be evaluated related to the feature data.
  • the quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
  • the quality score of the image to be evaluated is calculated by the following formula:
  • Score exp(average value/alpha of area luminance values of all target areas)+exp(average value/beta of sharpness of all target areas), where exp represents the index, alpha and beta are variance coefficients, and Score is the quality Score.
  • the sharpness value and the brightness value of the target area are adjusted to obtain the quality evaluation result of the image to be evaluated.
  • the highlight area detection step S2 is to obtain the target area based on the image to be evaluated, which specifically includes the following steps:
  • S21 Adopt adaptive threshold segmentation to obtain a binary image corresponding to the image to be evaluated.
  • adaptive threshold segmentation refers to a method of using image local thresholds to replace global thresholds for image calculation, specifically for pictures with excessive changes in light and shadow, or pictures with less obvious color differences within the range.
  • Adaptive means to ensure that the computer can obtain the average threshold value of the image area through judgment and calculation to iterate.
  • image processing when performing binarization and other operations before the shop, we hope to be able to provide and retain all the information in the corresponding area of the image.
  • the corresponding material is templated, but when the laboratory method is applied to the real environment, we will find that the light and shadow environment has a great influence on the effect.
  • the adaptive threshold algorithm is particularly important. Different from the global threshold, it pays more attention to the context relationship, divides the original image into smaller areas for judgment, and greatly reduces the influence of shadows on the image itself.
  • the cooperation flag is step S1
  • an infrared image is acquired as the image to be evaluated, and the cooperation flag is used when acquiring the infrared image.
  • the image to be evaluated that is, the original image
  • the location of the cooperation sign can be directly observed.
  • adaptive threshold segmentation a binary image corresponding to the image to be evaluated is obtained, and it is judged whether the cooperation sign can be recognized in the binary image.
  • the cooperation flag is identified in the binary map, first obtain the circumscribed rectangle of each of the cooperation flags, and then expand the circumscribed rectangle of each of the cooperation flags, generally by 25%.
  • other arbitrary pixel point range values can also be selected for expansion to obtain a number of expanded logo circumscribed rectangular areas, and then these several logo circumscribed rectangular areas are corresponding to the original image to be evaluated, with the Each mark circumscribes a rectangular area as the target area.
  • a rectangular area of N*M pixels in the central area of the image to be evaluated is selected as the target area, that is, the area to be evaluated.
  • the target area that is, the area to be evaluated.
  • an N*N square area is generally selected for the rectangular area.
  • the step S3 of evaluating the brightness and sharpness of the highlighted area is to calculate the characteristic data of each target area based on the target area, and the characteristic data includes the area of the target area.
  • the brightness value and the sharpness value of the target area specifically include the following steps:
  • S31 Perform Gaussian blurring on the image to be evaluated to obtain a template showing the brightness distribution of the image to be evaluated.
  • Gaussian blurring is performed on the image to be evaluated, that is, a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated is generated.
  • the two-dimensional Gaussian distribution function value is the brightness value of the image to be evaluated, based on the two-dimensional Gaussian distribution.
  • the characteristic of when the coordinates of the center of the image to be evaluated are located, the two-dimensional Gaussian distribution obtains the maximum value.
  • Obtaining a template for displaying the brightness distribution of the image to be evaluated that is, multiplying the two-dimensional Gaussian distribution by a proportional coefficient lamda to obtain a template for displaying the brightness distribution of the image to be evaluated.
  • S32 Calculate, based on the template, an area brightness value and a sharpness value of each of the target areas.
  • the regional brightness value of each of the target areas is calculated, that is, the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas is calculated, and the average brightness value is used as the corresponding The first brightness value of the target area, wherein when calculating the average brightness value of the target area, the selected pixels are based on the brightness value of the pixel points, generally taking the first 80%, and other range of pixels.
  • the luminance value is used as the second luminance value corresponding to the target area, and the absolute value of the difference between the first luminance value and the second luminance value of each target area is used as the area of the target area brightness value;
  • the template is obtained through step S31, that is, performing Gaussian blurring on the image to be evaluated to obtain a template that displays the brightness distribution of the image to be evaluated.
  • the position (x, y) of the center point of the target area refers to the coordinates of the intersection of the diagonal lines of the marked circumscribed rectangular area.
  • the average gradient D of the luminance value of each described target area needs to be calculated first, and the luminance value gradient d(i, j) of the image to be evaluated is calculated as follows:
  • d(i,j) abs(dx(i,j))+abs(dy(i,j));
  • Average gradient D sum(d(i,j))/counts(pixels);
  • I refers to the pixel brightness value of the image to be evaluated, (i, j) is the coordinate of the pixel in the specified area, and counts(pixels) is the number of pixels in the target area;
  • the step S4 of outputting the quality evaluation result of the image to be evaluated is to calculate the quality score of the image to be evaluated related to the characteristic data based on the acquired characteristic data, which specifically includes the following steps:
  • S41 Calculate the image quality score to be evaluated comprehensively related to the sharpness value and the regional brightness value
  • the quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
  • the quality score of the image to be evaluated can be calculated by the following formula:
  • Score exp(average value/alpha of the area brightness values of all target areas)+exp(average value/beta of the sharpness of all target areas), where exp represents the exponent, alpha and beta are variance coefficients, and Score is the quality Score.
  • S42 Adjust the sharpness value and the regional brightness value of the target area, and obtain the quality evaluation result of the image to be evaluated.
  • the sharpness value and the area brightness value of the target area are adjusted, wherein the sharpness value of the target area can be adjusted by adjusting the brightness value of the pixel points of the image to be evaluated, and the sharpness value of the target area can be adjusted by adjusting the first brightness value or the second brightness value.
  • the sharpness value of the target area is adjusted based on the brightness value, and based on empirical adjustment, the impact of different sharpness values and regional brightness values of the target area on the image quality score to be evaluated is analyzed, and the image quality evaluation result to be evaluated is obtained.
  • An infrared image quality evaluation device further comprising:
  • the to-be-evaluated image acquisition module 51 is configured to acquire an infrared image as the to-be-evaluated image.
  • the highlight area detection module 52 is configured to acquire a target area based on the image to be evaluated.
  • the highlight area brightness and sharpness evaluation module 53 is used to calculate the characteristic data of each target area based on the target area, and the characteristic data includes the area brightness value of the target area and the sharpness of the target area value.
  • the step module 54 of outputting the quality evaluation result of the image to be evaluated is configured to calculate, based on the acquired feature data, a quality score of the image to be evaluated related to the feature data.
  • the highlight area detection module 52 that is, to acquire the target area based on the image to be evaluated, includes: an image preprocessing unit, an identification unit, a first judgment unit, and a second judgment unit.
  • the image preprocessing unit is used for adopting adaptive threshold segmentation to obtain the binary image corresponding to the image to be evaluated.
  • An identification unit configured to judge whether the cooperation sign can be identified in the binary image.
  • the first judging unit is used to obtain the circumscribed rectangle of each of the cooperative signs if the cooperative sign is recognized, and to expand the circumscribed rectangle of each of the cooperative signs by a number of pixels, and obtain a number of expanded signs circumscribed.
  • a rectangular area, a rectangular area circumscribing each mark in the image to be evaluated is used as the target area.
  • the second judging unit is configured to use a rectangular area of N*M pixels in the central area of the image to be evaluated as a target area if the cooperation sign is not recognized.
  • the highlight area brightness and sharpness evaluation module 53 calculates the characteristic data of each target area based on the target area, and the characteristic data includes the area brightness value of the target area and the target area Definition value, including: template establishment unit, feature data acquisition unit.
  • the template establishment unit is configured to perform Gaussian blurring on the image to be evaluated to obtain a template showing the brightness distribution of the image to be evaluated.
  • a feature data acquisition unit configured to calculate, based on the template, an area brightness value and a sharpness value of each of the target areas.
  • the step module 54 of outputting the image quality evaluation result to be evaluated that is, based on the acquired feature data, calculates the image quality score to be evaluated related to the feature data, including: an image quality score calculation unit, and an image quality evaluation result acquisition unit.
  • An image quality score calculation unit configured to calculate a to-be-evaluated image quality score comprehensively related to the sharpness value and the regional brightness value.
  • Image quality evaluation result obtaining unit used to adjust the sharpness value and the regional brightness value of the target area, and obtain the image quality evaluation result to be evaluated.
  • a computer device in one embodiment, the computer device can be a terminal, and its internal structure diagram is shown in FIG. 6 , the computer device includes a processor, a memory, a network interface, a display screen and a input device.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a readable storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system and computer-readable instructions.
  • the internal memory provides an environment for the execution of the operating system and computer-readable instructions in the readable storage medium.
  • the network interface of the computer device is used to communicate with an external server over a network connection.
  • the computer-readable instructions when executed by a processor, implement a method for evaluating infrared image quality.
  • the readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer device including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor implements the above embodiments when executing the computer-readable instructions
  • the steps of the infrared image quality evaluation method such as steps S1-S4 shown in FIG. 1 , or steps shown in FIG. 2 to FIG. 4 , are not repeated here in order to avoid repetition.
  • the processor executes the computer program, the functions of each module/unit in this embodiment of the user interface automatic testing device are realized, for example, the image acquisition module 51 to be evaluated, the highlight region detection module 52, the highlight region shown in FIG. 5
  • the functions of the brightness and sharpness evaluation module 53 and the step module 54 for outputting the evaluation result of the image quality to be evaluated are not repeated here in order to avoid repetition.
  • a computer-readable storage medium is provided, and the readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium, the computer-readable storage medium
  • the medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the infrared image quality evaluation method in the above-mentioned embodiment are implemented, for example, steps S1-S4 shown in FIG. 1 , or steps S1-S4 shown in FIG. The steps shown, in order to avoid repetition, are not repeated here.
  • the functions of each module/unit in this embodiment of the user interface automatic testing device are realized, for example, the image acquisition module 51 to be evaluated, the highlight region detection module 52, the highlight region shown in FIG. 5
  • the functions of the brightness and sharpness evaluation module 53 and the step module 54 for outputting the evaluation result of the image quality to be evaluated are not repeated here in order to avoid repetition.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

Disclosed are an infrared image quality evaluation method, a device, and a storage medium. The method comprises: obtaining an infrared image as an image to be evaluated; obtaining a target region on the basis of said image; calculating feature data of each target region on the basis of the target region, respectively, the feature data comprising a region brightness value of the target region and a definition value of the target region; and calculating, on the basis of the obtained feature data, a quality score of said image related to the feature data.

Description

红外图像质量评价方法、设备以及存储介质Infrared image quality evaluation method, device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2021年01月12日提交中国专利局,申请号为202110038494.2,申请名称为“红外图像质量评价方法、设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on January 12, 2021 with the application number 202110038494.2 and the application title is "Infrared Image Quality Evaluation Method, Device and Storage Medium", the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及红外图像处理技术领域,尤其涉及一种红外图像质量评价方法、设备以及存储介质。The present application relates to the technical field of infrared image processing, and in particular, to an infrared image quality evaluation method, device and storage medium.
背景技术Background technique
常规的红外图像质量评价方案,一般是基于整体图像进行评价。而应用场景中,只需对红外图像的特定区域进行评价。The conventional infrared image quality evaluation scheme is generally based on the overall image. In the application scenario, only a specific area of the infrared image needs to be evaluated.
故若用常规的红外图像质量评价方案,对局部高对比度的红外图像场景进行评价,不利于后续的图像算法处理,也不利于为判断现场数据是否异常提供准确的预警和参考。Therefore, if the conventional infrared image quality evaluation scheme is used to evaluate the local high-contrast infrared image scene, it is not conducive to the subsequent image algorithm processing, nor is it conducive to provide accurate early warning and reference for judging whether the field data is abnormal.
发明内容SUMMARY OF THE INVENTION
根据本申请的各种实施例,提供一种红外图像质量评价方法,包括:According to various embodiments of the present application, an infrared image quality evaluation method is provided, including:
获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated.
一种红外图像质量评价装置,包括:An infrared image quality evaluation device, comprising:
待评价图像获取模块,用于获取一红外图像作为待评价图像;an image acquisition module to be evaluated, configured to acquire an infrared image as an image to be evaluated;
高亮区域检测模块,用于基于所述待评价图像,获取目标区域;a highlight area detection module, configured to acquire a target area based on the to-be-evaluated image;
高亮区域亮度和清晰度评价模块,基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;The highlight area brightness and sharpness evaluation module, based on the target area, respectively calculates the characteristic data of each target area, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
输出待评价图像质量评价结果步骤模块,用于基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。The step module of outputting the quality evaluation result of the image to be evaluated is used for calculating the quality score of the image to be evaluated related to the characteristic data based on the acquired characteristic data.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的可读存储介质,所述处理器执行所述可读存储介质时实现如下步骤:A computer device includes a memory, a processor, and a readable storage medium stored in the memory and executable on the processor, and the processor implements the following steps when executing the readable storage medium:
获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。一个或多个存储有计算机可读指令的计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated. One or more computer-readable storage media storing computer-readable instructions that store computer-readable instructions that, when executed by one or more processors, cause the One or more processors perform the following steps:
获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书编的明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对本申请实施例或现有技术的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application 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 of the present application or the prior art. The drawings are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施例中一种红外图像质量评价方法的一流程图;1 is a flowchart of a method for evaluating infrared image quality in an embodiment of the present application;
图2是本申请实施例中一种红外图像质量评价方法的另一流程图;Fig. 2 is another flowchart of an infrared image quality evaluation method in an embodiment of the present application;
图3是本申请实施例中一种红外图像质量评价方法的另一流程图;3 is another flowchart of an infrared image quality evaluation method in an embodiment of the present application;
图4是本申请实施例中一种红外图像质量评价方法的另一流程图;4 is another flowchart of an infrared image quality evaluation method in an embodiment of the present application;
图5是本申请实施例中一种红外图像质量评价装置的一示意图;5 is a schematic diagram of an infrared image quality evaluation device in an embodiment of the present application;
图6是本申请实施例中计算机设备的一示意图。FIG. 6 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。 附图中给出了本申请的较佳实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the related drawings. The preferred embodiments of the present application are shown in the accompanying drawings. However, the application may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that a thorough and complete understanding of the disclosure of this application is provided.
除非另有定义,本文所使用的所有的技术和科学术语与属于发明的技术领域的技术人员通常理解的含义相同。本文中在发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本申请。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the invention are for the purpose of describing particular embodiments only and are not intended to limit the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本申请实施例提供一种红外图像质量评价方法,如图1所示,包括以下步骤:An embodiment of the present application provides an infrared image quality evaluation method, as shown in FIG. 1 , including the following steps:
待评价图像获取步骤S1:获取一红外图像作为待评价图像。Step S1 of acquiring an image to be evaluated: acquiring an infrared image as an image to be evaluated.
具体地,采用高逆反的合作标志和补光灯增强的方法,通过红外摄像机获取一红外图像作为待评价图像;其中合作标志即人为设置的一种反光标志。Specifically, an infrared image is obtained as an image to be evaluated by adopting a high-reverse cooperation sign and a supplementary light enhancement method; the cooperation sign is an artificially set reflective sign.
高亮区域检测步骤S2:基于所述待评价图像,获取目标区域。Highlight region detection step S2: based on the to-be-evaluated image, acquire a target region.
具体地,基于所述待评价图像,划分若干目标区域包括对所述待评价图像进行预处理,即对所述待评价图像进行自适应阈值分割,获取相应二值图,其中所述待评价图像是采用若干高逆反的合作标志和补光灯增强获取。Specifically, based on the to-be-evaluated image, dividing several target areas includes preprocessing the to-be-evaluated image, that is, performing adaptive threshold segmentation on the to-be-evaluated image to obtain a corresponding binary map, wherein the to-be-evaluated image It is obtained by using a number of high-reverse cooperation signs and fill lights to enhance the acquisition.
判断所述二值图中能否识别到合作标志;judging whether the cooperation sign can be identified in the binary image;
若在二值图中识别到该合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以每一标志外接矩形区域作为所述目标区域。在其他实施例中,也可以是以预设面积比例的方式对每个合作标志的外接矩形进行扩展,如对每个合作标志的外接矩形扩展25%得到目标区域。If the cooperation logo is identified in the binary image, the circumscribed rectangle of each cooperative logo is obtained, and the circumscribed rectangle of each cooperative logo is expanded by several pixels to obtain a plurality of expanded logo circumscribed rectangles area, and a rectangular area circumscribing each mark is used as the target area. In other embodiments, the circumscribed rectangle of each cooperation sign may also be expanded in a preset area ratio, for example, the target area is obtained by expanding the circumscribed rectangle of each cooperation sign by 25%.
若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为所述目标区域。其中为了便于计算,一般取所述N*M像素点的矩形区域为正方形。具体地,该矩形区域可以为200x200像素点的正方形区域,在其他实施例中,也可以是其他数量的像素点区域,这里不做限定。If the cooperation sign is not recognized, a rectangular area of N*M pixels in the central area of the image to be evaluated is used as the target area. Wherein, in order to facilitate the calculation, the rectangular area of the N*M pixel points is generally taken as a square. Specifically, the rectangular area may be a square area of 200×200 pixels, and in other embodiments, it may also be an area of other numbers of pixels, which is not limited here.
高亮区域亮度和清晰度评价步骤S3:基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值。Brightness and sharpness evaluation step S3 of the highlighted area: Based on the target area, calculate the characteristic data of each target area respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area.
具体地,分别计算每个目标区域的特征数据需生成一个与所述待评价图像的高宽成比例的二维高斯分布,当位于所述待评价图像中心位置(x,y)时,所述二维高斯分布取得最大值;将所述二维高斯分布乘以一个预设的比例系数lamda,获得一显示所述待评价图像亮度分布的模板;Specifically, to calculate the feature data of each target area separately, a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated needs to be generated. When it is located at the center position (x, y) of the image to be evaluated, the The two-dimensional Gaussian distribution obtains the maximum value; the two-dimensional Gaussian distribution is multiplied by a preset scale coefficient lamda to obtain a template showing the brightness distribution of the image to be evaluated;
计算每一所述目标区域上亮度值为预设排前比例的若干像素点的平均亮度值,且将所述平均亮度值作为对应的所述目标区域的第一亮度值;calculating the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas, and using the average brightness value as the first brightness value of the corresponding target area;
获取每一目标区域中心点的位置坐标,从所述模板上查询每一所述位置坐标对应位置的亮度值,并将所述亮度值作为对应所述目标区域的第二亮度值;Obtain the position coordinates of the center point of each target area, query the brightness value of the corresponding position of each of the position coordinates from the template, and use the brightness value as the second brightness value corresponding to the target area;
将每一目标区域的所述第一亮度值和所述第二亮度值的差值的绝对值作为所述目标区域的所述区域亮度值;Taking the absolute value of the difference between the first brightness value and the second brightness value of each target area as the regional brightness value of the target area;
计算每个目标区域的亮度值平均梯度;Calculate the average gradient of luminance values for each target area;
通过下述公式基于所述亮度值平均梯度计算每一所述目标区域的所述清晰度值:The sharpness value for each of the target regions is calculated based on the average gradient of the luminance values by the following formula:
C=(x*x+y*y)*D;C=(x*x+y*y)*D;
其中,所述C为所述清晰度值,所述D为所述亮度值平均梯度。Wherein, the C is the sharpness value, and the D is the average gradient of the luminance value.
所述目标区域的区域亮度值及清晰度值,即用于图像质量评价的特征数据。The regional brightness value and sharpness value of the target area are characteristic data used for image quality evaluation.
输出待评价图像质量评价结果步骤S4:基于所述获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Outputting the quality evaluation result of the image to be evaluated Step S4: Based on the acquired feature data, calculate a quality score of the image to be evaluated related to the feature data.
具体地,计算所有所述目标区域的区域亮度值的亮度平均值;Specifically, calculating the brightness average value of the regional brightness values of all the target regions;
计算所有所述目标区域的清晰度值的清晰度平均值;calculating a sharpness average of sharpness values of all said target regions;
采用预设权重比对所述亮度平均值和所述清晰度平均值进行加权计算得到所述质量得分。The quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
通过如下公式计算所述待评价图像的质量得分:The quality score of the image to be evaluated is calculated by the following formula:
Score=exp(所有目标区域的区域亮度值的平均值/alpha)+exp(所有目标区域的清晰度的平均值/beta),其中exp表示指数,alpha和beta为方差系数,Score为所述质量得分。Score=exp(average value/alpha of area luminance values of all target areas)+exp(average value/beta of sharpness of all target areas), where exp represents the index, alpha and beta are variance coefficients, and Score is the quality Score.
调节所述目标区域的清晰度值和区域亮度值,获取待评价图像质量评价结果。The sharpness value and the brightness value of the target area are adjusted to obtain the quality evaluation result of the image to be evaluated.
本申请实施例中,如图1所示,高亮区域检测步骤S2即基于所述待评价图像,获取目标区域,具体包括以下步骤:In the embodiment of the present application, as shown in FIG. 1 , the highlight area detection step S2 is to obtain the target area based on the image to be evaluated, which specifically includes the following steps:
S21:采用自适应阈值分割,获取待评价图像对应的二值图。S21: Adopt adaptive threshold segmentation to obtain a binary image corresponding to the image to be evaluated.
具体地,自适应阈值分割是指利用图像局部阈值替换全局阈值进行图像计算的一种方法,具体针对光影变化过大的图片,或者范围内颜色差异不太明显的图片。自适应是指保证计算机能够通过判断和计算取得该图像区域的平均阈值进行迭代。在图片处理过程中,针对铺前进行二值化等操作的时候,我们希望能够将图片相应区域内所有的信息提供保留。实验室环境下,相应的素材是模板化的,但是将实验室方法应用于现实环境中时,我们会发现光影环境对于 效果的影响其实是很大的。在这种情况下进行处理,会使得结果不如人意:一块黑,一块白,且黑的区域的特征无法提取。这时候自适应阈值算法尤为重要。与全局阈值不同,它更加注重上下文关系,将原始图像分割成更小的区域进行判断,极大地降低了阴影对于图片本身的影响。Specifically, adaptive threshold segmentation refers to a method of using image local thresholds to replace global thresholds for image calculation, specifically for pictures with excessive changes in light and shadow, or pictures with less obvious color differences within the range. Adaptive means to ensure that the computer can obtain the average threshold value of the image area through judgment and calculation to iterate. In the process of image processing, when performing binarization and other operations before the shop, we hope to be able to provide and retain all the information in the corresponding area of the image. In the laboratory environment, the corresponding material is templated, but when the laboratory method is applied to the real environment, we will find that the light and shadow environment has a great influence on the effect. Processing in this case will result in unsatisfactory results: a block of black, a block of white, and the features of the black area cannot be extracted. At this time, the adaptive threshold algorithm is particularly important. Different from the global threshold, it pays more attention to the context relationship, divides the original image into smaller areas for judgment, and greatly reduces the influence of shadows on the image itself.
S22:判断所述二值图中是否能识别所述合作标志。S22: Determine whether the cooperation flag can be identified in the binary image.
具体地,所述合作标志即S1步骤,获取一红外图像作为待评价图像,其中获取红外图像时,所采用的合作标志。在待评价图像即原始图像中,可以直接观察到合作标志所处的位置。采用自适应阈值分割,获取待评价图像对应的二值图,判断二值图中能否识别到所述合作标志。Specifically, the cooperation flag is step S1, and an infrared image is acquired as the image to be evaluated, and the cooperation flag is used when acquiring the infrared image. In the image to be evaluated, that is, the original image, the location of the cooperation sign can be directly observed. Using adaptive threshold segmentation, a binary image corresponding to the image to be evaluated is obtained, and it is judged whether the cooperation sign can be recognized in the binary image.
S23:若识别到合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域。S23: If the cooperation logo is identified, then obtain the circumscribed rectangle of each of the cooperative logos, and expand the circumscribed rectangle of each of the cooperative logos by several pixels to obtain a plurality of expanded logo circumscribed rectangle areas, so that the Each marked circumscribed rectangular area in the image to be evaluated is used as the target area.
具体地,若所述二值图中识别到所述合作标志,则先获取每个所述合作标志的外接矩形,再对每个所述合作标志的外接矩形进行拓展,一般进行25%的拓展,也可选取其他任意像素点范围值进行拓展,得到若干个拓展后的标志外接矩形区域,然后就将这些若干标志外接矩形区域对应到所述原始待评价图像,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域。Specifically, if the cooperation flag is identified in the binary map, first obtain the circumscribed rectangle of each of the cooperation flags, and then expand the circumscribed rectangle of each of the cooperation flags, generally by 25%. , other arbitrary pixel point range values can also be selected for expansion to obtain a number of expanded logo circumscribed rectangular areas, and then these several logo circumscribed rectangular areas are corresponding to the original image to be evaluated, with the Each mark circumscribes a rectangular area as the target area.
S24:若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为所述目标区域。S24: If the cooperation sign is not recognized, use a rectangular area of N*M pixels in the central area of the image to be evaluated as the target area.
具体地,若所述二值图中没有识别到所述合作标志,那么,选取所述待评价图像中心区域N*M像素点的矩形区域作为目标区域,即待评价区域。其中,所述矩形区域,为了便于计算,一般选取N*N正方形区域。Specifically, if the cooperation sign is not identified in the binary image, a rectangular area of N*M pixels in the central area of the image to be evaluated is selected as the target area, that is, the area to be evaluated. Wherein, for the rectangular area, in order to facilitate the calculation, an N*N square area is generally selected.
本申请实施例中,如图1所示,高亮区域亮度和清晰度评价步骤S3即基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值,具体包括以下步骤:In the embodiment of the present application, as shown in FIG. 1 , the step S3 of evaluating the brightness and sharpness of the highlighted area is to calculate the characteristic data of each target area based on the target area, and the characteristic data includes the area of the target area. The brightness value and the sharpness value of the target area specifically include the following steps:
S31:对待评价图像进行高斯模糊处理,获得一显示所述待评价图像亮度分布的模板。S31: Perform Gaussian blurring on the image to be evaluated to obtain a template showing the brightness distribution of the image to be evaluated.
具体地,对待评价图像进行高斯模糊处理,即生成一个与待评价图像高宽成比例的二维高斯分布,所述二维高斯分布函数值即所述待评价图像亮度值,基于二维高斯分布的特点,当位于所述待评价图像中心位置坐标时,所述二维高斯分布取得最大值。获得一显示所述待评价图像亮度分布的模板,即将所述二维高斯分布乘以比例系数lamda,获得一显示所述待评价图像亮度分布的模板。Specifically, Gaussian blurring is performed on the image to be evaluated, that is, a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated is generated. The two-dimensional Gaussian distribution function value is the brightness value of the image to be evaluated, based on the two-dimensional Gaussian distribution. The characteristic of , when the coordinates of the center of the image to be evaluated are located, the two-dimensional Gaussian distribution obtains the maximum value. Obtaining a template for displaying the brightness distribution of the image to be evaluated, that is, multiplying the two-dimensional Gaussian distribution by a proportional coefficient lamda to obtain a template for displaying the brightness distribution of the image to be evaluated.
S32:基于所述模板,计算每个所述目标区域的区域亮度值和清晰度值。S32: Calculate, based on the template, an area brightness value and a sharpness value of each of the target areas.
具体地,计算每个所述目标区域的区域亮度值,即计算每一所述目标区域上亮度值为预设排前比例的若干像素点的平均亮度值,且将所述平均亮度值作为对应的所述目标区域的第一亮度值,其中计算所述目标区域平均亮度值时,所选取的像素点是按照像素点亮度值大小,一般取前80%,去其他范围像素点亦可。获取每一目标区域中心点的位置坐标,从所述模板上查询每一所述位置坐标对应位置的亮度值,即从模板上查询与目标中心点的位置坐标相同的位置的亮度值,并将所述亮度值作为对应所述目标区域的第二亮度值,将每一目标区域的所述第一亮度值和所述第二亮度值的差值的绝对值作为所述目标区域的所述区域亮度值;Specifically, the regional brightness value of each of the target areas is calculated, that is, the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas is calculated, and the average brightness value is used as the corresponding The first brightness value of the target area, wherein when calculating the average brightness value of the target area, the selected pixels are based on the brightness value of the pixel points, generally taking the first 80%, and other range of pixels. Obtain the position coordinates of the center point of each target area, and query the brightness value of the corresponding position of each of the position coordinates from the template, that is, query the brightness value of the position that is the same as the position coordinates of the target center point from the template, and use the template. The luminance value is used as the second luminance value corresponding to the target area, and the absolute value of the difference between the first luminance value and the second luminance value of each target area is used as the area of the target area brightness value;
其中所述模板是通过S31步骤,即对待评价图像进行高斯模糊处理,获得一显示所述待评价图像亮度分布的模板,获取的模板。所述目标区域中心点位 置(x,y)是指所述标志外接矩形区域对角线交点位置坐标。The template is obtained through step S31, that is, performing Gaussian blurring on the image to be evaluated to obtain a template that displays the brightness distribution of the image to be evaluated. The position (x, y) of the center point of the target area refers to the coordinates of the intersection of the diagonal lines of the marked circumscribed rectangular area.
具体地,计算每个所述目标区域的清晰度值需先计算每个所述目标区域的亮度值平均梯度D,所述待评价图像亮度值梯度d(i,j)计算如下:Specifically, to calculate the sharpness value of each described target area, the average gradient D of the luminance value of each described target area needs to be calculated first, and the luminance value gradient d(i, j) of the image to be evaluated is calculated as follows:
dx(i,j)=I(i+1,j)-I(i,j);dx(i,j)=I(i+1,j)-I(i,j);
dy(i,j)=I(i,j+1)-I(i,j);dy(i,j)=I(i,j+1)-I(i,j);
d(i,j)=abs(dx(i,j))+abs(dy(i,j));d(i,j)=abs(dx(i,j))+abs(dy(i,j));
平均梯度D=sum(d(i,j))/counts(pixels);Average gradient D=sum(d(i,j))/counts(pixels);
其中,I是指所述待评价图像像素点亮度值,(i,j)为指定区域的像素的坐标,counts(pixels)为所述目标区域的像素点数量;Wherein, I refers to the pixel brightness value of the image to be evaluated, (i, j) is the coordinate of the pixel in the specified area, and counts(pixels) is the number of pixels in the target area;
根据所述亮度值平均梯度D计算每个所述目标区域的清晰度值C,C=(x*x+y*y)*D。The sharpness value C of each target area is calculated according to the average gradient D of luminance values, C=(x*x+y*y)*D.
本申请实施例中,如图1所示,输出待评价图像质量评价结果步骤S4即基于所述获取的特征数据,计算与所述特征数据相关的待评价图像质量得分,具体包括以下步骤:In the embodiment of the present application, as shown in FIG. 1 , the step S4 of outputting the quality evaluation result of the image to be evaluated is to calculate the quality score of the image to be evaluated related to the characteristic data based on the acquired characteristic data, which specifically includes the following steps:
S41:计算与所述清晰度值和区域亮度值综合相关的待评价图像质量得分;S41: Calculate the image quality score to be evaluated comprehensively related to the sharpness value and the regional brightness value;
具体地,计算与所述清晰度和亮度综合相关的待评价图像质量得分需先计算所有所述目标区域的区域亮度值的亮度平均值和所有所述目标区域的清晰度值的清晰度平均值;Specifically, to calculate the image quality score to be evaluated comprehensively related to the sharpness and brightness, it is necessary to first calculate the brightness average value of the regional brightness values of all the target areas and the sharpness average value of the sharpness values of all the target areas. ;
采用预设权重比对所述亮度平均值和所述清晰度平均值进行加权计算得到所述质量得分。The quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
可选地,具体可以通过如下公式计算所述待评价图像的质量得分:Optionally, the quality score of the image to be evaluated can be calculated by the following formula:
Score=exp(所有目标区域的区域亮度值的平均值/alpha)+exp(所有目标区 域的清晰度的平均值/beta),其中exp表示指数,alpha和beta为方差系数,Score为所述质量得分。Score=exp(average value/alpha of the area brightness values of all target areas)+exp(average value/beta of the sharpness of all target areas), where exp represents the exponent, alpha and beta are variance coefficients, and Score is the quality Score.
S42:调节所述目标区域的清晰度值和区域亮度值,获取待评价图像质量评价结果。S42: Adjust the sharpness value and the regional brightness value of the target area, and obtain the quality evaluation result of the image to be evaluated.
具体地,调节所述目标区域的清晰度值和区域亮度值,其中可以通过调节所述待评价图像像素点亮度值来调节所述目标区域的清晰度值,通过调节第一亮度值或第二亮度值来调节所述目标区域的清晰度值,基于经验调节,分析所述目标区域不同的清晰度值和区域亮度值对待评价图像质量得分的影响,获取待评价图像质量评价结果。Specifically, the sharpness value and the area brightness value of the target area are adjusted, wherein the sharpness value of the target area can be adjusted by adjusting the brightness value of the pixel points of the image to be evaluated, and the sharpness value of the target area can be adjusted by adjusting the first brightness value or the second brightness value. The sharpness value of the target area is adjusted based on the brightness value, and based on empirical adjustment, the impact of different sharpness values and regional brightness values of the target area on the image quality score to be evaluated is analyzed, and the image quality evaluation result to be evaluated is obtained.
一种红外图像质量评价装置,还包括:An infrared image quality evaluation device, further comprising:
待评价图像获取模块51,用于获取红外图像作为待评价图像。The to-be-evaluated image acquisition module 51 is configured to acquire an infrared image as the to-be-evaluated image.
高亮区域检测模块52,用于基于所述待评价图像,获取目标区域。The highlight area detection module 52 is configured to acquire a target area based on the image to be evaluated.
高亮区域亮度及清晰度评价模块53,用于基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值。The highlight area brightness and sharpness evaluation module 53 is used to calculate the characteristic data of each target area based on the target area, and the characteristic data includes the area brightness value of the target area and the sharpness of the target area value.
输出待评价图像质量评价结果步骤模块54,用于基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。The step module 54 of outputting the quality evaluation result of the image to be evaluated is configured to calculate, based on the acquired feature data, a quality score of the image to be evaluated related to the feature data.
优选地,高亮区域检测模块52,即基于所述待评价图像,获取目标区域,包括:图像预处理单元,识别单元,第一判断单元,第二判断单元。Preferably, the highlight area detection module 52, that is, to acquire the target area based on the image to be evaluated, includes: an image preprocessing unit, an identification unit, a first judgment unit, and a second judgment unit.
图像预处理单元,用于采用自适应阈值分割,获取待评价图像对应的二值图。The image preprocessing unit is used for adopting adaptive threshold segmentation to obtain the binary image corresponding to the image to be evaluated.
识别单元,用于判断所述二值图中是否能识别所述合作标志。An identification unit, configured to judge whether the cooperation sign can be identified in the binary image.
第一判断单元,用于若识别到合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域。The first judging unit is used to obtain the circumscribed rectangle of each of the cooperative signs if the cooperative sign is recognized, and to expand the circumscribed rectangle of each of the cooperative signs by a number of pixels, and obtain a number of expanded signs circumscribed. A rectangular area, a rectangular area circumscribing each mark in the image to be evaluated is used as the target area.
第二判断单元,用于若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为目标区域。The second judging unit is configured to use a rectangular area of N*M pixels in the central area of the image to be evaluated as a target area if the cooperation sign is not recognized.
优选地,高亮区域亮度及清晰度评价模块53,即基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值,包括:模板建立单元,特征数据获取单元。Preferably, the highlight area brightness and sharpness evaluation module 53 calculates the characteristic data of each target area based on the target area, and the characteristic data includes the area brightness value of the target area and the target area Definition value, including: template establishment unit, feature data acquisition unit.
模板建立单元,用于对待评价图像进行高斯模糊处理,获得一显示所述待评价图像亮度分布的模板。The template establishment unit is configured to perform Gaussian blurring on the image to be evaluated to obtain a template showing the brightness distribution of the image to be evaluated.
特征数据获取单元,用于基于所述模板,计算每个所述目标区域的区域亮度值和清晰度值。A feature data acquisition unit, configured to calculate, based on the template, an area brightness value and a sharpness value of each of the target areas.
优选地,输出待评价图像质量评价结果步骤模块54,即基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分,包括:图像质量得分计算单元,图像质量评价结果获取单元。Preferably, the step module 54 of outputting the image quality evaluation result to be evaluated, that is, based on the acquired feature data, calculates the image quality score to be evaluated related to the feature data, including: an image quality score calculation unit, and an image quality evaluation result acquisition unit.
图像质量得分计算单元,用于计算与所述清晰度值和区域亮度值综合相关的待评价图像质量得分。An image quality score calculation unit, configured to calculate a to-be-evaluated image quality score comprehensively related to the sharpness value and the regional brightness value.
图像质量评价结果获取单元:用于调节所述目标区域的清晰度值和区域亮度值,获取待评价图像质量评价结果。Image quality evaluation result obtaining unit: used to adjust the sharpness value and the regional brightness value of the target area, and obtain the image quality evaluation result to be evaluated.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图如图6所示,该计算机设备包括通过系统总线连接的处理器、存储 器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为可读存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部服务器通过网络连接通信。该计算机可读指令被处理器执行时以实现一种红外图像质量评价方法。本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided, the computer device can be a terminal, and its internal structure diagram is shown in FIG. 6 , the computer device includes a processor, a memory, a network interface, a display screen and a input device. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium, an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the execution of the operating system and computer-readable instructions in the readable storage medium. The network interface of the computer device is used to communicate with an external server over a network connection. The computer-readable instructions, when executed by a processor, implement a method for evaluating infrared image quality. The readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器在执行计算机可读指令时实现上述实施例中红外图像质量评价方法的步骤,例如图1所示的步骤S1-S4,或者图2至图4中所示的步骤,为避免重复,这里不再赘述。或者,处理器执行计算机程序时实现用户界面自动化测试装置这一实施例中的各模块/单元的功能,例如图5所示的待评价图像获取模块51、高亮区域检测模块52、高亮区域亮度及清晰度评价模块53、输出待评价图像质量评价结果步骤模块54的功能,为避免重复,这里不再赘述。In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor implements the above embodiments when executing the computer-readable instructions The steps of the infrared image quality evaluation method, such as steps S1-S4 shown in FIG. 1 , or steps shown in FIG. 2 to FIG. 4 , are not repeated here in order to avoid repetition. Or, when the processor executes the computer program, the functions of each module/unit in this embodiment of the user interface automatic testing device are realized, for example, the image acquisition module 51 to be evaluated, the highlight region detection module 52, the highlight region shown in FIG. 5 The functions of the brightness and sharpness evaluation module 53 and the step module 54 for outputting the evaluation result of the image quality to be evaluated are not repeated here in order to avoid repetition.
在一个实施例中,提供了一种计算机可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述实施例中红外图像质量评价方法的步骤,例如图1所示的步骤S1-S4,或者图2至图4中所示的步骤,为避免重复,这里不再赘述。或者,处理器执行计算机程序时实现用户界面自动化测试装置这一实施例中的各模块/单元的功能,例如图5所示的待评价图像获取模块51、高亮区域检测模块52、高亮区域 亮度及清晰度评价模块53、输出待评价图像质量评价结果步骤模块54的功能,为避免重复,这里不再赘述。In one embodiment, a computer-readable storage medium is provided, and the readable storage medium provided by this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium, the computer-readable storage medium The medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the infrared image quality evaluation method in the above-mentioned embodiment are implemented, for example, steps S1-S4 shown in FIG. 1 , or steps S1-S4 shown in FIG. The steps shown, in order to avoid repetition, are not repeated here. Or, when the processor executes the computer program, the functions of each module/unit in this embodiment of the user interface automatic testing device are realized, for example, the image acquisition module 51 to be evaluated, the highlight region detection module 52, the highlight region shown in FIG. 5 The functions of the brightness and sharpness evaluation module 53 and the step module 54 for outputting the evaluation result of the image quality to be evaluated are not repeated here in order to avoid repetition.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性可读取存储介质或易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile computer. In the read storage medium or the volatile readable storage medium, the computer-readable instructions, when executed, may include the processes of the foregoing method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated to different functional units, Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (16)

  1. 一种红外图像质量评价方法,包括:An infrared image quality evaluation method, comprising:
    获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
    基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
    基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
    基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated.
  2. 如权利要求1所述的一种红外图像质量评价方法,所述基于所述待评价图像,获取目标区域,包括:The infrared image quality evaluation method according to claim 1, wherein acquiring the target area based on the to-be-evaluated image comprises:
    采用自适应阈值分割,获取待评价图像对应的二值图,其中,所述待评价图像是采用若干高逆反的合作标志和补光灯增强获取;Adopt adaptive threshold segmentation to obtain the binary image corresponding to the image to be evaluated, wherein the image to be evaluated is obtained by using several highly inverse cooperation signs and supplementary lights to enhance the acquisition;
    判断所述二值图中能否识别到合作标志;judging whether the cooperation sign can be identified in the binary image;
    若识别到所述合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域;If the cooperation logo is identified, the circumscribed rectangle of each cooperation logo is obtained, and the circumscribed rectangle of each cooperation logo is expanded by several pixels to obtain a plurality of expanded logo circumscribed rectangle areas, so that Each marked circumscribed rectangular area in the image to be evaluated is used as the target area;
    若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为所述目标区域。If the cooperation sign is not recognized, a rectangular area of N*M pixels in the central area of the image to be evaluated is used as the target area.
  3. 如权利要求2所述的一种红外图像质量评价方法,包括:所述N*M像素点的矩形区域为正方形。The infrared image quality evaluation method according to claim 2, comprising: the rectangular area of the N*M pixel points is a square.
  4. 如权利要求1所述的一种红外图像质量评价方法,所述基于所述目标区域,分别计算每个目标区域的特征数据,包括:The infrared image quality evaluation method according to claim 1, wherein the characteristic data of each target area is calculated separately based on the target area, comprising:
    生成一个与所述待评价图像的高宽成比例的二维高斯分布,当位于所述待 评价图像中心位置时,所述二维高斯分布取得最大值;Generate a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated, and when positioned at the center of the image to be evaluated, the two-dimensional Gaussian distribution obtains a maximum value;
    将所述二维高斯分布乘以比例系数lamda,获得一显示所述待评价图像亮度分布的模板;Multiply the two-dimensional Gaussian distribution by the scale coefficient lamda to obtain a template showing the brightness distribution of the image to be evaluated;
    计算每一所述目标区域上亮度值为预设排前比例的若干像素点的平均亮度值,且将所述平均亮度值作为对应的所述目标区域的第一亮度值;calculating the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas, and using the average brightness value as the first brightness value of the corresponding target area;
    获取每一目标区域中心点的位置坐标,从所述模板上查询每一所述位置坐标对应位置的亮度值,并将所述亮度值作为对应所述目标区域的第二亮度值;Obtain the position coordinates of the center point of each target area, query the brightness value of the corresponding position of each of the position coordinates from the template, and use the brightness value as the second brightness value corresponding to the target area;
    将每一目标区域的所述第一亮度值和所述第二亮度值的差值的绝对值作为所述目标区域的所述区域亮度值;Taking the absolute value of the difference between the first brightness value and the second brightness value of each target area as the regional brightness value of the target area;
    计算每个目标区域的亮度值平均梯度;Calculate the average gradient of luminance values for each target area;
    通过下述公式基于所述亮度值平均梯度计算每一所述目标区域的所述清晰度值:The sharpness value for each of the target regions is calculated based on the average gradient of the luminance values by the following formula:
    C=(x*x+y*y)*D;C=(x*x+y*y)*D;
    其中,所述C为所述清晰度值,所述D为所述亮度值平均梯度。Wherein, the C is the sharpness value, and the D is the average gradient of the luminance value.
  5. 如权利要求1所述的一种红外图像质量评价方法,所述基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分,包括:The method for evaluating the quality of an infrared image according to claim 1, wherein calculating the image quality score to be evaluated related to the feature data based on the acquired feature data, comprising:
    计算所有所述目标区域的区域亮度值的亮度平均值;Calculate the brightness average value of the regional brightness values of all the target areas;
    计算所有所述目标区域的清晰度值的清晰度平均值;calculating a sharpness average of sharpness values of all said target regions;
    采用预设权重比对所述亮度平均值和所述清晰度平均值进行加权计算得到所述质量得分。The quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
  6. 一种红外图像质量评价装置,包括:An infrared image quality evaluation device, comprising:
    待评价图像获取模块,用于获取一红外图像作为待评价图像;an image acquisition module to be evaluated, configured to acquire an infrared image as an image to be evaluated;
    高亮区域检测模块,用于基于所述待评价图像,获取目标区域;a highlight area detection module, configured to acquire a target area based on the to-be-evaluated image;
    高亮区域亮度和清晰度评价模块,基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;The highlight area brightness and sharpness evaluation module, based on the target area, respectively calculates the characteristic data of each target area, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
    输出待评价图像质量评价结果步骤模块,用于基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。The step module of outputting the quality evaluation result of the image to be evaluated is used for calculating the quality score of the image to be evaluated related to the characteristic data based on the acquired characteristic data.
  7. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的可读存储介质,所述处理器执行所述可读存储介质时实现如下步骤:A computer device includes a memory, a processor, and a readable storage medium stored in the memory and executable on the processor, and the processor implements the following steps when executing the readable storage medium:
    获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
    基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
    基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
    基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated.
  8. 如权利要求7所述的计算机设备,所述基于所述待评价图像,获取目标区域,包括:The computer device according to claim 7, wherein the acquisition of the target area based on the image to be evaluated comprises:
    采用自适应阈值分割,获取待评价图像对应的二值图,其中,所述待评价图像是采用若干高逆反的合作标志和补光灯增强获取;Adopt adaptive threshold segmentation to obtain the binary image corresponding to the image to be evaluated, wherein the image to be evaluated is obtained by using several highly inverse cooperation signs and supplementary lights to enhance the acquisition;
    判断所述二值图中能否识别到合作标志;judging whether the cooperation sign can be identified in the binary image;
    若识别到所述合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域;If the cooperation logo is identified, the circumscribed rectangle of each of the cooperative logos is obtained, and the circumscribed rectangle of each of the cooperative logos is expanded by several pixels to obtain a number of expanded logo circumscribed rectangle areas, so that Each marked circumscribed rectangular area in the image to be evaluated is used as the target area;
    若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为所述目标区域。If the cooperation sign is not recognized, a rectangular area of N*M pixels in the central area of the image to be evaluated is used as the target area.
  9. 如权利要求8所述的计算机设备,所述N*M像素点的矩形区域为正方形。The computer device according to claim 8, wherein the rectangular area of the N*M pixel points is a square.
  10. 如权利要求7所述的计算机设备,所述基于所述目标区域,分别计算每个目标区域的特征数据,包括:The computer device according to claim 7, wherein based on the target area, the characteristic data of each target area is calculated separately, comprising:
    生成一个与所述待评价图像的高宽成比例的二维高斯分布,当位于所述待评价图像中心位置时,所述二维高斯分布取得最大值;Generate a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated, and when located at the center of the image to be evaluated, the two-dimensional Gaussian distribution obtains a maximum value;
    将所述二维高斯分布乘以比例系数lamda,获得一显示所述待评价图像亮度分布的模板;Multiply the two-dimensional Gaussian distribution by the scale coefficient lamda to obtain a template showing the brightness distribution of the image to be evaluated;
    计算每一所述目标区域上亮度值为预设排前比例的若干像素点的平均亮度值,且将所述平均亮度值作为对应的所述目标区域的第一亮度值;calculating the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas, and using the average brightness value as the first brightness value of the corresponding target area;
    获取每一目标区域中心点的位置坐标,从所述模板上查询每一所述位置坐标对应位置的亮度值,并将所述亮度值作为对应所述目标区域的第二亮度值;Obtain the position coordinates of the center point of each target area, query the brightness value of the corresponding position of each of the position coordinates from the template, and use the brightness value as the second brightness value corresponding to the target area;
    将每一目标区域的所述第一亮度值和所述第二亮度值的差值的绝对值作为所述目标区域的所述区域亮度值;Taking the absolute value of the difference between the first brightness value and the second brightness value of each target area as the regional brightness value of the target area;
    计算每个目标区域的亮度值平均梯度;Calculate the average gradient of luminance values for each target area;
    通过下述公式基于所述亮度值平均梯度计算每一所述目标区域的所述清晰度值:The sharpness value for each of the target regions is calculated based on the average gradient of the luminance values by the following formula:
    C=(x*x+y*y)*D;C=(x*x+y*y)*D;
    其中,所述C为所述清晰度值,所述D为所述亮度值平均梯度。Wherein, the C is the sharpness value, and the D is the average gradient of the luminance value.
  11. 如权利要求7所述的计算机设备,所述基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分,包括:The computer device according to claim 7, wherein, based on the acquired feature data, calculating a quality score of an image to be evaluated related to the feature data, comprising:
    计算所有所述目标区域的区域亮度值的亮度平均值;Calculate the brightness average value of the regional brightness values of all the target areas;
    计算所有所述目标区域的清晰度值的清晰度平均值;calculating a sharpness average of sharpness values of all said target regions;
    采用预设权重比对所述亮度平均值和所述清晰度平均值进行加权计算得到所述质量得分。The quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
  12. 一个或多个存储有计算机可读指令的计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more computer-readable storage media storing computer-readable instructions that store computer-readable instructions that, when executed by one or more processors, cause the One or more processors perform the following steps:
    获取一红外图像作为待评价图像;acquiring an infrared image as the image to be evaluated;
    基于所述待评价图像,获取目标区域;Based on the to-be-evaluated image, obtain a target area;
    基于所述目标区域,分别计算每个目标区域的特征数据,所述特征数据包括所述目标区域的区域亮度值和所述目标区域的清晰度值;Based on the target area, the characteristic data of each target area is calculated respectively, and the characteristic data includes the area brightness value of the target area and the sharpness value of the target area;
    基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分。Based on the acquired feature data, a quality score of the image to be evaluated related to the feature data is calculated.
  13. 如权利要求12所述的计算机可读存储介质,所述基于所述待评价图像,获取目标区域,包括:The computer-readable storage medium of claim 12, wherein the acquiring a target area based on the to-be-evaluated image comprises:
    采用自适应阈值分割,获取待评价图像对应的二值图,其中,所述待评价图像是采用若干高逆反的合作标志和补光灯增强获取;Adopt adaptive threshold segmentation to obtain the binary image corresponding to the image to be evaluated, wherein the image to be evaluated is obtained by using several highly inverse cooperation signs and supplementary lights to enhance the acquisition;
    判断所述二值图中能否识别到合作标志;judging whether the cooperation sign can be identified in the binary image;
    若识别到所述合作标志,则获取每个所述合作标志的外接矩形,对每个所述合作标志的外接矩形进行若干像素点的拓展,得到若干个拓展后的标志外接矩形区域,以所述待评价图像中的每一标志外接矩形区域作为所述目标区域;If the cooperation logo is identified, the circumscribed rectangle of each of the cooperative logos is obtained, and the circumscribed rectangle of each of the cooperative logos is expanded by several pixels to obtain a number of expanded logo circumscribed rectangle areas, so that Each marked circumscribed rectangular area in the image to be evaluated is used as the target area;
    若没有识别到所述合作标志,则以所述待评价图像中心区域N*M像素点的矩形区域作为所述目标区域。If the cooperation sign is not recognized, a rectangular area of N*M pixels in the central area of the image to be evaluated is used as the target area.
  14. 如权利要求13所述的计算机可读存储介质,包括:所述N*M像素点的矩形区域为正方形。The computer-readable storage medium of claim 13, comprising: the rectangular area of the N*M pixel points is a square.
  15. 如权利要求12所述的计算机可读存储介质,所述基于所述目标区域,分别计算每个目标区域的特征数据,包括:The computer-readable storage medium according to claim 12, wherein the characteristic data of each target area is calculated separately based on the target area, comprising:
    生成一个与所述待评价图像的高宽成比例的二维高斯分布,当位于所述待评价图像中心位置时,所述二维高斯分布取得最大值;Generate a two-dimensional Gaussian distribution proportional to the height and width of the image to be evaluated, and when located at the center of the image to be evaluated, the two-dimensional Gaussian distribution obtains a maximum value;
    将所述二维高斯分布乘以比例系数lamda,获得一显示所述待评价图像亮度分布的模板;Multiply the two-dimensional Gaussian distribution by the scale coefficient lamda to obtain a template showing the brightness distribution of the image to be evaluated;
    计算每一所述目标区域上亮度值为预设排前比例的若干像素点的平均亮度值,且将所述平均亮度值作为对应的所述目标区域的第一亮度值;calculating the average brightness value of several pixels whose brightness value is a preset top ratio on each of the target areas, and using the average brightness value as the first brightness value of the corresponding target area;
    获取每一目标区域中心点的位置坐标,从所述模板上查询每一所述位置坐标对应位置的亮度值,并将所述亮度值作为对应所述目标区域的第二亮度值;Obtain the position coordinates of the center point of each target area, query the brightness value of the corresponding position of each of the position coordinates from the template, and use the brightness value as the second brightness value corresponding to the target area;
    将每一目标区域的所述第一亮度值和所述第二亮度值的差值的绝对值作为所述目标区域的所述区域亮度值;Taking the absolute value of the difference between the first brightness value and the second brightness value of each target area as the regional brightness value of the target area;
    计算每个目标区域的亮度值平均梯度;Calculate the average gradient of luminance values for each target area;
    通过下述公式基于所述亮度值平均梯度计算每一所述目标区域的所述清晰度值:The sharpness value for each of the target regions is calculated based on the average gradient of the luminance values by the following formula:
    C=(x*x+y*y)*D;C=(x*x+y*y)*D;
    其中,所述C为所述清晰度值,所述D为所述亮度值平均梯度。Wherein, the C is the sharpness value, and the D is the average gradient of the luminance value.
  16. 如权利要求12所述的计算机可读存储介质,所述基于获取的特征数据,计算与所述特征数据相关的待评价图像质量得分,包括:The computer-readable storage medium according to claim 12, wherein, based on the acquired feature data, calculating a quality score of an image to be evaluated related to the feature data, comprising:
    计算所有所述目标区域的区域亮度值的亮度平均值;Calculate the brightness average value of the regional brightness values of all the target areas;
    计算所有所述目标区域的清晰度值的清晰度平均值;calculating a sharpness average of sharpness values of all said target regions;
    采用预设权重比对所述亮度平均值和所述清晰度平均值进行加权计算得到所述质量得分。The quality score is obtained by weighting the brightness average value and the sharpness average value by using a preset weight ratio.
PCT/CN2022/071242 2021-01-12 2022-01-11 Infrared image quality evaluation method, device, and storage medium WO2022152107A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110038494.2A CN114764775A (en) 2021-01-12 2021-01-12 Infrared image quality evaluation method, device and storage medium
CN202110038494.2 2021-01-12

Publications (1)

Publication Number Publication Date
WO2022152107A1 true WO2022152107A1 (en) 2022-07-21

Family

ID=82364167

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071242 WO2022152107A1 (en) 2021-01-12 2022-01-11 Infrared image quality evaluation method, device, and storage medium

Country Status (2)

Country Link
CN (1) CN114764775A (en)
WO (1) WO2022152107A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633259A (en) * 2022-11-15 2023-01-20 深圳市泰迅数码有限公司 Automatic regulation and control method and system for intelligent camera based on artificial intelligence
CN116433670A (en) * 2023-06-14 2023-07-14 浙江舶云科技有限公司 Image quality detection method and detection system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115273548A (en) * 2022-07-27 2022-11-01 北京拙河科技有限公司 Vehicle monitoring method and system based on micro-lens array
CN116563299B (en) * 2023-07-12 2023-09-26 之江实验室 Medical image screening method, device, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110091113A1 (en) * 2009-10-19 2011-04-21 Canon Kabushiki Kaisha Image processing apparatus and method, and computer-readable storage medium
CN104732227A (en) * 2015-03-23 2015-06-24 中山大学 Rapid license-plate positioning method based on definition and luminance evaluation
CN107424146A (en) * 2017-06-28 2017-12-01 北京理工大学 A kind of infrared polarization method for objectively evaluating image quality and system
CN110852999A (en) * 2019-10-29 2020-02-28 北京临近空间飞行器系统工程研究所 Image scanning system and image scanning method
CN111161205A (en) * 2018-10-19 2020-05-15 阿里巴巴集团控股有限公司 Image processing and face image recognition method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110091113A1 (en) * 2009-10-19 2011-04-21 Canon Kabushiki Kaisha Image processing apparatus and method, and computer-readable storage medium
CN104732227A (en) * 2015-03-23 2015-06-24 中山大学 Rapid license-plate positioning method based on definition and luminance evaluation
CN107424146A (en) * 2017-06-28 2017-12-01 北京理工大学 A kind of infrared polarization method for objectively evaluating image quality and system
CN111161205A (en) * 2018-10-19 2020-05-15 阿里巴巴集团控股有限公司 Image processing and face image recognition method, device and equipment
CN110852999A (en) * 2019-10-29 2020-02-28 北京临近空间飞行器系统工程研究所 Image scanning system and image scanning method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633259A (en) * 2022-11-15 2023-01-20 深圳市泰迅数码有限公司 Automatic regulation and control method and system for intelligent camera based on artificial intelligence
CN116433670A (en) * 2023-06-14 2023-07-14 浙江舶云科技有限公司 Image quality detection method and detection system
CN116433670B (en) * 2023-06-14 2023-08-29 浙江舶云科技有限公司 Image quality detection method and detection system

Also Published As

Publication number Publication date
CN114764775A (en) 2022-07-19

Similar Documents

Publication Publication Date Title
WO2022152107A1 (en) Infrared image quality evaluation method, device, and storage medium
Hautiere et al. Blind contrast enhancement assessment by gradient ratioing at visible edges
US10803554B2 (en) Image processing method and device
US7991232B2 (en) Image similarity calculation system, image search system, image similarity calculation method, and image similarity calculation program
US11188739B2 (en) Processing uncertain content in a computer graphics system
US10291931B2 (en) Determining variance of a block of an image based on a motion vector for the block
CN111784588A (en) Image data enhancement method and device, computer equipment and storage medium
Harb et al. Improved image magnification algorithm based on Otsu thresholding
Chen et al. Improved seam carving combining with 3D saliency for image retargeting
JP2013203374A (en) Display device for vehicle, control method therefor, and program
CN113822817A (en) Document image enhancement method and device and electronic equipment
KR101874738B1 (en) Apparatus and method for generating hdr image from ldr image through image processing
CN112651953B (en) Picture similarity calculation method and device, computer equipment and storage medium
CN110718069A (en) Image brightness adjusting method and device and storage medium
CN116486759B (en) Intelligent adjustment method, device, equipment and storage medium for identification display
Toet Structural similarity determines search time and detection probability
CN111311720A (en) Texture image processing method and device
JP2013210793A (en) System, method, and program for optimizing ar display
CN111539975A (en) Method, device and equipment for detecting moving target and storage medium
CN111882498A (en) Image processing method, image processing device, electronic equipment and storage medium
CN111199188A (en) Pixel processing method and device for remote sensing image difference map, storage medium and equipment
KR20200057477A (en) Image processing apparatus and operating method for the same
US9798932B2 (en) Video extraction method and device
Jeong et al. Fog detection and fog synthesis for effective quantitative evaluation of fog–detection-and-removal algorithms
CN110264491A (en) Passenger flow statistical method, device, computer equipment and readable storage medium storing program for executing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22738987

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.11.2023)