WO2022121189A1 - Method and apparatus for measuring temperature, and computer device - Google Patents

Method and apparatus for measuring temperature, and computer device Download PDF

Info

Publication number
WO2022121189A1
WO2022121189A1 PCT/CN2021/084571 CN2021084571W WO2022121189A1 WO 2022121189 A1 WO2022121189 A1 WO 2022121189A1 CN 2021084571 W CN2021084571 W CN 2021084571W WO 2022121189 A1 WO2022121189 A1 WO 2022121189A1
Authority
WO
WIPO (PCT)
Prior art keywords
temperature
boundary
area
grayscale
region
Prior art date
Application number
PCT/CN2021/084571
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 WO2022121189A1 publication Critical patent/WO2022121189A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/0096Radiation pyrometry, e.g. infrared or optical thermometry for measuring wires, electrical contacts or electronic systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • 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
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J2005/0077Imaging
    • 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/10024Color image
    • 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

Abstract

The present application relates to the field of computer vision analysis of artificial intelligence. Disclosed is a method for measuring a temperature, the method comprising: acquiring a pseudo-color infrared image obtained during an infrared detection process; intercepting a temperature data area in the pseudo-color infrared image; segmenting the temperature data area according to a preset segmentation manner to obtain sub-pictures respectively corresponding to a highest-temperature area and a lowest-temperature area; comparing the sub-pictures with templates in a preset template library to respectively determine a specified template with the highest similarity to each sub-picture; and obtaining, according to a digit of the specified template, a temperature range corresponding to the temperature data area. On the basis that the position of a temperature strip in the pseudo-color infrared image is relatively fixed, and that identification fonts of the highest-temperature area and the lowest-temperature area are also consistent, the sub-pictures of the highest-temperature area and the lowest-temperature area are intercepted from the temperature data area of the temperature strip, and a simple and efficient digital template matching method is used, such that a temperature range in the temperature strip in the pseudo-color infrared image can be obtained; the workload is small; and the recognition efficiency is high.

Description

检测温度的方法、装置和计算机设备Method, device and computer equipment for detecting temperature
本申请要求于2020年12月11日提交中国专利局、申请号为202011461798.1,发明名称为“检测温度的方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011461798.1 and the invention titled "Method, Apparatus and Computer Equipment for Detecting Temperature" filed with the China Patent Office on December 11, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请涉及人工智能的计算机视觉分析领域。This application relates to the field of computer vision analysis of artificial intelligence.
背景技术Background technique
红外热像仪得到的原始红外图,所展示的温度数据区是用于记录背景与目标物的红外辐射温度的相关数据,不是直接的温度值,而且原始红外图的存储格式是比较特殊的,需要通过专业软件处理为机器能够处理的位图后,才能进行数据分析。经专业软件处理后得到的图像为伪彩色红外图像,仅能以灰度图、热力图来表征图片的温差,无法获取具体的温度数据信息。In the original infrared image obtained by the infrared thermal imager, the temperature data area displayed is used to record the relevant data of the infrared radiation temperature of the background and the target, not the direct temperature value, and the storage format of the original infrared image is quite special. Data analysis can only be performed after it is processed into a bitmap that can be processed by a machine through professional software. The image obtained after being processed by professional software is a pseudo-color infrared image, which can only characterize the temperature difference of the picture by grayscale and heat map, and cannot obtain specific temperature data information.
发明人意识到,现有通过识别伪彩色红外图上的温度条得到温度数据,多是基于深度学习的红外图像温宽识别方法进行识别,对温度条区域进行处理之后,输入深度学习网络中进行分类识别,但前期准备训练数据集的工作量较大,且效率较低。The inventor realized that the existing temperature data obtained by recognizing the temperature bar on the pseudo-color infrared image are mostly recognized by the infrared image temperature width recognition method based on deep learning. Classification and recognition, but the workload of preparing training data sets in the early stage is large and the efficiency is low.
技术问题technical problem
现有识别伪彩色红外图上温度数据的工作量大且效率低的技术问题。The existing technical problems of identifying temperature data on a pseudo-color infrared image are heavy workload and low efficiency.
技术解决方案technical solutions
本申请的第一方面,提出一种检测温度的方法,包括:A first aspect of the present application proposes a method for detecting temperature, comprising:
获取红外检测过程中得到的伪彩色红外图像;Obtain the pseudo-color infrared image obtained during the infrared detection process;
截取所述伪彩色红外图像内的温度数据区域;intercepting the temperature data area in the pseudo-color infrared image;
从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;The sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;Comparing the sub-pictures with the templates in the preset template library, respectively determining the specified template with the highest similarity with each of the sub-pictures;
根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。According to the number of the specified template, the temperature range corresponding to the temperature data area is obtained.
本申请的第二方面,提供了一种检测温度的装置,包括:A second aspect of the present application provides a device for detecting temperature, comprising:
第一获取模块,用于获取红外检测过程中得到的伪彩色红外图像;a first acquisition module, used for acquiring a pseudo-color infrared image obtained during the infrared detection process;
截取模块,用于截取所述伪彩色红外图像内的温度数据区域;an interception module, used for intercepting the temperature data area in the pseudo-color infrared image;
分割模块,用于从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;a segmentation module, configured to segment the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
比对模块,用于将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;a comparison module, configured to compare the sub-pictures with the templates in the preset template library, and respectively determine the specified template with the highest similarity with each of the sub-pictures;
得到模块,用于根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。The obtaining module is used to obtain the temperature range corresponding to the temperature data area according to the number of the specified template.
本申请的第三方面,提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述检测温度的方法,包括:获取红外检测过程中得到的伪彩色红外图像;截取所述伪彩色红外图像内的温度数据区域;从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指 定模板;根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。本申请的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述检测温度的方法,包括:获取红外检测过程中得到的伪彩色红外图像;截取所述伪彩色红外图像内的温度数据区域;从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。A third aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method for detecting temperature when the computer program is executed, including: acquiring infrared detection The pseudo-color infrared image obtained in the process; intercepting the temperature data area in the pseudo-color infrared image; dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein, Only one number is included in the sub-picture; the sub-picture is compared with the templates in the preset template library, and the specified template with the highest similarity with each of the sub-pictures is respectively determined; according to the number of the specified template, Obtain the temperature range corresponding to the temperature data area. A fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method for detecting temperature includes: acquiring a false temperature obtained during infrared detection. color infrared image; intercepting the temperature data area in the pseudo-color infrared image; dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein, in the sub-pictures Only one number is included; the sub-picture is compared with the templates in the preset template library, and the specified template with the highest similarity with each of the sub-pictures is respectively determined; according to the number of the specified template, the temperature data is obtained The temperature range corresponding to the region.
有益效果beneficial effect
本申请基于伪彩色红外图中的温度条的位置是相对固定的,且温度条上下的最高温区与最低温区的标识字体也是一致的,通过从温度条的温度数据区域,截取出最高温区与最低温区的子图片,并使用简单而高效的数字模板匹配的方法,即可获得伪彩色红外图中的温度条中的温度范围,工作量小且识别效率高。This application is based on the fact that the position of the temperature bar in the pseudo-color infrared image is relatively fixed, and the identification fonts of the highest temperature area and the lowest temperature area above and below the temperature bar are also consistent. By cutting out the highest temperature from the temperature data area of the temperature bar The sub-picture of the region and the lowest temperature region, and using a simple and efficient digital template matching method, the temperature range in the temperature bar in the pseudo-color infrared image can be obtained, with a small workload and high recognition efficiency.
附图说明Description of drawings
图1本申请一实施例的检测温度的方法流程示意图;1 is a schematic flowchart of a method for detecting temperature according to an embodiment of the present application;
图2本申请一实施例的检测温度的装置示意图;2 is a schematic diagram of a device for detecting temperature according to an embodiment of the present application;
图3本申请一实施例的计算机设备内部结构示意图。FIG. 3 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
参照图1,本申请一实施例的检测温度的方法,包括:1 , a method for detecting temperature according to an embodiment of the present application includes:
S1:获取红外检测过程中得到的伪彩色红外图像;S1: Acquire the pseudo-color infrared image obtained in the infrared detection process;
S2:截取所述伪彩色红外图像内的温度数据区域;S2: Intercept the temperature data area in the pseudo-color infrared image;
S3:从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;S3: Divide the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein the sub-picture includes only one number;
S4:将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;S4: Comparing the sub-picture with the templates in the preset template library, and respectively determining the specified template with the highest similarity with each of the sub-pictures;
S5:根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。S5: Obtain the temperature range corresponding to the temperature data area according to the number of the specified template.
本申请实施例中,温度条中仅显示最高温和最低温分别对应的数字标识,温度条其他区域为刻度表示。通过识别最高温区与最低温区的数字标识字体,确定温度数据区域,并通过垂直投影的方式截取出来。上述预设分割方式包括通过灰度变化规律确定边界的分割方式。举例地,上述伪彩色红外图中背景灰度与物体成像灰度不同,且红外检测的伪彩色红外图中跟随温度的不同,灰度也不同,比如温度高的区域灰度小,温度低的区域灰度大。通过截取仅包含一个数字影像的子图片,然后根据模板确定子图片的数字,并根据子图片的位置关系,获取最高温度和最低温度,从而得到温度范围。In the embodiment of the present application, only the numerical labels corresponding to the highest temperature and the lowest temperature are displayed in the temperature bar, and the other areas of the temperature bar are indicated by scales. By identifying the digital identification fonts of the highest temperature area and the lowest temperature area, the temperature data area is determined and cut out by vertical projection. The above-mentioned preset segmentation method includes a segmentation method in which the boundary is determined by the gray scale change rule. For example, the background grayscale in the above pseudo-color infrared image is different from the object imaging grayscale, and the pseudo-color infrared image detected by infrared detection follows the difference in temperature, and the grayscale is also different. Area grayscale is large. The temperature range is obtained by intercepting a sub-picture containing only one digital image, then determining the number of the sub-picture according to the template, and obtaining the highest temperature and the lowest temperature according to the positional relationship of the sub-picture.
上述的预设模板库包括“0-9”十个数字的二值化图像模板,以及“负号”的二值化图像模板。将截取到的只包含一个数字的子图片,与预设模板库中的所有模板进行一一对比计算,找到预设模板库中与该子图片最相似的模板,作为该子图片的识别结果。举例地,识别到最高温区从左到右存在两个子图片,通过比 对左侧子图片数字内容为8,右侧数字内容为5,则最高温度为85度。本申请实施例中比对子图片和模板时,通过计算两者相似度进行比对。The above-mentioned preset template library includes a binarized image template of ten numbers "0-9", and a binary image template of "minus sign". Comparing the captured sub-picture containing only one number with all templates in the preset template library one by one, find the template that is most similar to the sub-picture in the preset template library, and use it as the identification result of the sub-picture. For example, it is recognized that there are two sub-pictures from left to right in the highest temperature area. By comparing the digital content of the left sub-picture is 8 and the right digital content is 5, the highest temperature is 85 degrees. When comparing the sub-picture and the template in the embodiment of the present application, the comparison is performed by calculating the similarity between the two.
本申请实施例采用的是SSIM(Structural SIMilarity,结构相似性),其对比结果的范围为[-1,1],对比结果越接近-1,说明两者区别越大,对比结果越接近1,说明两者越相似。另SSIM(x,y)=[l(x,y)] α[c(x,y)] β[s(x,y)] γ,其中,x与y是输入的待对比的两幅图像,α>0,β>0,γ>0,通过
Figure PCTCN2021084571-appb-000001
进行亮度比较;通过
Figure PCTCN2021084571-appb-000002
进行对比度比较;通过
Figure PCTCN2021084571-appb-000003
进行结构比较,μ x和μ y分别代表x,y的灰度平均值,σ x和σ y分别代表x,y的灰度标准差,σ xy代表x和y的灰度协方差,c 1,c 2,c 3分别为常数,以避免分母为0带来系统错误。本申请实施例中,根据伪彩色红外图的对比实验数据,令α=β=γ=1,及c 3=c 2/2,以简化计算。本申请实施例将SSIM简化如下:
Figure PCTCN2021084571-appb-000004
Figure PCTCN2021084571-appb-000005
SSIM值越大,表示两者差距越小,即当两幅对比图像一模一样时,SSIM=1。
The examples of this application use SSIM (Structural SIMilarity, structural similarity), and the range of the comparison result is [-1, 1]. The closer the comparison result is to -1, the greater the difference between the two, and the closer the comparison result is to 1. The more similar the two are. In addition, SSIM(x,y)=[l(x,y)] α [c(x,y)] β [s(x,y)] γ , where x and y are the input two images to be compared , α>0, β>0, γ>0, through
Figure PCTCN2021084571-appb-000001
Make brightness comparisons; pass
Figure PCTCN2021084571-appb-000002
Make a contrast comparison; pass
Figure PCTCN2021084571-appb-000003
For structural comparison, μ x and μ y represent the grayscale mean of x and y , respectively, σx and σy represent the grayscale standard deviation of x and y, respectively, σxy represent the grayscale covariance of x and y, and c 1 , c 2 , and c 3 are constants, respectively, to avoid system errors when the denominator is 0. In the embodiments of the present application, according to the comparative experimental data of the pseudo-color infrared images, α=β=γ=1, and c 3 =c 2 /2 are set to simplify the calculation. The embodiment of the present application simplifies the SSIM as follows:
Figure PCTCN2021084571-appb-000004
Figure PCTCN2021084571-appb-000005
The larger the SSIM value, the smaller the difference between the two, that is, when the two contrast images are exactly the same, SSIM=1.
本申请基于伪彩色红外图中的温度条的位置是相对固定的,且温度条上下的最高温区与最低温区的标识字体也是一致的,通过从温度条的温度数据区域,截取出最高温区与最低温区的子图片,并使用简单而高效的数字模板匹配的方法,即可获得伪彩色红外图中的温度条中的温度范围,工作量小且识别效率高。This application is based on the fact that the position of the temperature bar in the pseudo-color infrared image is relatively fixed, and the identification fonts of the highest temperature area and the lowest temperature area above and below the temperature bar are also consistent. By cutting out the highest temperature from the temperature data area of the temperature bar The sub-picture of the region and the lowest temperature region, and using a simple and efficient digital template matching method, the temperature range in the temperature bar in the pseudo-color infrared image can be obtained, with a small workload and high recognition efficiency.
进一步地,所述温度数据区域内还包括灰度范围,所述从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤S3,包括:Further, the temperature data area also includes a grayscale range, and the step S3 of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area from the temperature data area according to a preset segmentation method includes:
S31:在所述温度数据区域对应的灰度范围内确定当前灰度阈值;S31: Determine the current grayscale threshold within the grayscale range corresponding to the temperature data area;
S32:通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;S32: Divide the grayscale range of the temperature data region into two regions by the current grayscale threshold, including a first region smaller than the current grayscale threshold and a second region greater than or equal to the current grayscale threshold;
S33:计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;S33: Calculate the grayscale variance of the first area and the second area under the current grayscale threshold;
S34:在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;S34: Dynamically adjust the grayscale threshold within the grayscale range corresponding to the temperature data region, and determine the maximum grayscale variance corresponding to the first region and the second region;
S35:将所述最大灰度方差对应的灰度阈值作为分割阈值;S35: Use the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold;
S36:通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。S36: Segment the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively according to the segmentation threshold.
本申请实施例中通过探寻最大灰度方差对应的灰度阈值作为边界的分割阈值,使得选定的分割阈值能区分物景区域的平均灰度、背景区域的平均灰度以及整个伪彩色红外图像内的平均灰度之间差别最大。本申请实施例通过遍历整个伪彩色红外图像的灰度范围的灰度值,计算被当前选定的灰度值划分的温度数据区域的两个像素区域的最大灰度方差,来确定分割阈值。In the embodiment of the present application, the gray threshold corresponding to the maximum gray variance is used as the segmentation threshold of the boundary, so that the selected segmentation threshold can distinguish the average gray level of the scene area, the average gray level of the background area, and the entire pseudo-color infrared image. The difference between the average gray levels within is the largest. The embodiment of the present application determines the segmentation threshold by traversing the grayscale values of the entire grayscale range of the pseudo-color infrared image, and calculating the maximum grayscale variance of the two pixel regions of the temperature data region divided by the currently selected grayscale value.
进一步地,所述计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤S33,包括:Further, the step S33 of calculating the grayscale variance of the first area and the second area under the current grayscale threshold includes:
S331:计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;S331: Calculate the first probability of each gray value distribution in the first area, and calculate the second probability of each gray value distribution in the second area;
S332:根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;S332: Calculate a first average grayscale value corresponding to the first region according to each of the first probabilities, and calculate a second average grayscale value corresponding to the second region according to each of the second probabilities;
S333:根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;S333: Calculate the total average grayscale of the temperature data region according to the first average grayscale value and the second average grayscale value;
S334:根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。S334: Calculate the first region and the The grayscale variance of the two regions under the current grayscale threshold.
举例地,温度数据区域灰度为i的像素数为n i,灰度范围为[0,L-1],总像素数为
Figure PCTCN2021084571-appb-000006
各灰度值出现的概率为
Figure PCTCN2021084571-appb-000007
对于P i来讲,
Figure PCTCN2021084571-appb-000008
把图像中的像素点用灰度阈值T分为两类或两个区域,比如第一区域C 0和第二区域C 1。C 0由灰度值[0,T-1]的像素点组成,C 1由灰度值在[T,L-1]的像素点组成,则C 0对应的第一概率为
Figure PCTCN2021084571-appb-000009
C 1对应的第二概率为
Figure PCTCN2021084571-appb-000010
C 0对应的第一平均灰度值为
Figure PCTCN2021084571-appb-000011
C 1对应的第二平均灰度值为
Figure PCTCN2021084571-appb-000012
温度数据区域的总平均灰度
Figure PCTCN2021084571-appb-000013
Figure PCTCN2021084571-appb-000014
两个区域的灰度方差为:
Figure PCTCN2021084571-appb-000015
Figure PCTCN2021084571-appb-000016
通过让T在[0,L-1]内依次取值,使得灰度方差最大的T值,便是最佳的分割阈值,即分割出最高温区和最低温区分别对应的子图片。
For example, the number of pixels with grayscale i in the temperature data area is n i , the grayscale range is [0,L-1], and the total number of pixels is
Figure PCTCN2021084571-appb-000006
The probability of occurrence of each gray value is
Figure PCTCN2021084571-appb-000007
For Pi ,
Figure PCTCN2021084571-appb-000008
The pixels in the image are divided into two categories or two regions by the grayscale threshold T, such as the first region C 0 and the second region C 1 . C 0 is composed of pixels with gray value [0, T-1], and C 1 is composed of pixels with gray value in [T, L-1], then the first probability corresponding to C 0 is
Figure PCTCN2021084571-appb-000009
The second probability corresponding to C1 is
Figure PCTCN2021084571-appb-000010
The first average gray value corresponding to C 0 is
Figure PCTCN2021084571-appb-000011
The second average gray value corresponding to C 1 is
Figure PCTCN2021084571-appb-000012
Overall average grayscale of the temperature data area
Figure PCTCN2021084571-appb-000013
Figure PCTCN2021084571-appb-000014
The grayscale variance of the two regions is:
Figure PCTCN2021084571-appb-000015
Figure PCTCN2021084571-appb-000016
By letting T take values in order within [0, L-1], the T value with the largest grayscale variance is the best segmentation threshold, that is, the sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented.
进一步地,所述通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤S36,包括:Further, the step S36 of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively by the segmentation threshold includes:
S361:根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;S361: Determine the first boundary between the temperature data area and the background area according to the segmentation threshold, as well as the second boundary where the highest temperature digit in the temperature data area is located, and the lowest temperature digit in the temperature data area. third boundary;
S362:根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;S362: Determine the boundary of the sub-picture corresponding to the highest temperature region according to the first boundary and the second boundary, and determine the sub-picture corresponding to the lowest temperature region according to the first boundary and the third boundary boundary;
S363:根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。S363: Intercept the sub-picture corresponding to the highest temperature area according to the boundary of the sub-picture corresponding to the highest temperature area, and intercept the sub-picture corresponding to the lowest temperature area according to the boundary of the sub-picture corresponding to the lowest temperature area.
本申请实施例中,以温度数据区域为研究对象时,则伪彩色红外图中温度数据区域之外的像素均为背景区域,上述第一边界为温度数据区域的边界,比如为以矩形框。第二边界和第三边界为温度数据区域内部的区分边界,用于区分温度数据区域内部存在数字的区域。举例地,温度数据区域为伪彩色红外图中纵向的矩形框,第二边界和第三边界为温度数据区域内部横向的分界线。然后通过纵向的矩形框的部分边和第二边界围成包含最高温区对应的子图片,最高温区对应的子图片包括一个或多个并行排列的子图片。通过纵向的矩形框的部分边和第三边界围成包含最低温区对应的子图片,最低温区对应的子图片包括一个或多个并行排列的子图片。上述每个字图片中仅包括一个数字。In the embodiment of the present application, when the temperature data area is taken as the research object, the pixels outside the temperature data area in the pseudo-color infrared image are background areas, and the above-mentioned first boundary is the boundary of the temperature data area, such as a rectangular frame. The second boundary and the third boundary are distinguishing boundaries within the temperature data area, and are used to distinguish areas where numbers exist within the temperature data area. For example, the temperature data area is a vertical rectangular frame in a pseudo-color infrared image, and the second boundary and the third boundary are horizontal boundary lines inside the temperature data area. Then, a sub-picture corresponding to the highest temperature area is enclosed by a part of the vertical rectangular frame and the second boundary, and the sub-picture corresponding to the highest temperature area includes one or more sub-pictures arranged in parallel. A sub-picture corresponding to the lowest temperature region is enclosed by a part of the vertical rectangular frame and the third boundary, and the sub-picture corresponding to the lowest temperature region includes one or more sub-pictures arranged in parallel. Only one number is included in each word picture above.
进一步地,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,所述根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及 所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤S361之后,包括:Further, the second boundary and the third boundary are in the lateral direction of the temperature data area, and the first boundary between the temperature data area and the background area is determined according to the segmentation threshold, and the temperature After the step S361 of the second boundary where the highest temperature number is located in the data area and the third boundary where the lowest temperature number in the temperature data area is located, it includes:
S3611:判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;S3611: Determine whether the specified pixel point on the second boundary is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary;
S3612:若未处于灰度变化的边界阈值范围内,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;S3612: If it is not within the boundary threshold range of the grayscale change, search for the grayscale fusion point in the longitudinal direction passing through the designated pixel point and parallel to the temperature data region;
S3613:将所述灰度聚变点替换所述第二边界上的指定像素点;S3613: Replace the gray-scale fusion point with the specified pixel point on the second boundary;
S3614:按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。S3614: Correct all the pixels on the second boundary according to the correction method of the specified pixel point, and correct the third boundary according to the correction method of the second boundary.
本申请实施例中,由于温度数据区域内部灰度变化的边界微弱,为确保更精准地分割,通过分水岭判断的方式,对横向的第二边界和第三边界进行修正,以避免图像中的噪声、物体表面细微的灰度变化导致的过度分割,以确保子图片内的数字轮廓的完整性。上述灰度聚变点指灰度值猛然增大或猛然缩小的断崖点。举例地,获取经过指定像素点且平行于温度数据区域的纵向方向上几个相邻像素点的灰度值,依次计算相邻两点之间的灰度差,出现灰度差跳变的点即为灰度聚变点。In the embodiment of the present application, since the boundary of the grayscale change in the temperature data area is weak, in order to ensure more accurate segmentation, the horizontal second boundary and the third boundary are corrected by means of watershed judgment to avoid noise in the image. , Over-segmentation caused by subtle grayscale changes on the object surface to ensure the integrity of the digital contours within the sub-picture. The above-mentioned gray-scale fusion point refers to a cliff point where the gray-scale value suddenly increases or decreases suddenly. For example, obtain the grayscale values of several adjacent pixel points in the longitudinal direction parallel to the temperature data area passing through the specified pixel point, calculate the grayscale difference between two adjacent points in turn, and the point where the grayscale difference jumps It is the gray-scale fusion point.
进一步地,所述根据所述指定模板的数字,得到所述温度数据区域对应的温度范围的步骤S5之后,包括:Further, after the step S5 of obtaining the temperature range corresponding to the temperature data area according to the number of the specified template, the step includes:
S6:获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;S6: Obtain the minimum pixel value within the highest temperature region and the maximum pixel value within the lowest temperature region;
S7:根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;S7: Calculate the linear correlation coefficient between the pixel value and the temperature value according to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value;
S8:根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。S8: Estimate the temperature values corresponding to all the pixel points in the pseudo-color infrared image according to the linear correlation coefficient.
本申请实施例中,温度条中的像素值对应的温度值是呈线性分布的,通过最高温度与最小像素值的对应关系,以及最低温度与最大像素值的对应关系,得到线性分布对应的线性关联系数,由此便可以获得整个温度条中的不同像素值所对应的温度值,以及伪彩色红外图像内所有像素点分别对应的温度值。最高温区内最小像素值,可通过获取最高温区内最上面一横行的像素值的平均值得到,最低温区内最大像素值,可通过获取最低温区内最下面一横行的像素值的平均值得到。上述以温度数据区域的矩形框纵向分布,且由上到下温度依次递减的方式分布为例。In the embodiment of the present application, the temperature values corresponding to the pixel values in the temperature bar are linearly distributed, and the corresponding relationship between the maximum temperature and the minimum pixel value and the corresponding relationship between the minimum temperature and the maximum pixel value are obtained. Correlation coefficients, so that the temperature values corresponding to different pixel values in the entire temperature bar and the temperature values corresponding to all pixel points in the pseudo-color infrared image can be obtained. The minimum pixel value in the highest temperature zone can be obtained by obtaining the average value of the pixel values in the uppermost row in the highest temperature zone, and the maximum pixel value in the lowest temperature zone can be obtained by obtaining the average value of the pixel values in the lowermost row in the lowest temperature zone. average is obtained. In the above, the rectangular frame of the temperature data area is distributed vertically, and the temperature is distributed in a descending manner from top to bottom as an example.
举例地,最高温度为t 1,最小像素值为l 1,最低温度为t 2,最大像素值为l 2,线性关联系数为K,则通过t 1=K*l 1+A,以及t 2=K*l 2+A组成方程组,A为常数。通过解方程组得到线性关联系数为K。 For example, the maximum temperature is t 1 , the minimum pixel value is l 1 , the minimum temperature is t 2 , the maximum pixel value is l 2 , and the linear correlation coefficient is K, then by t 1 =K*l 1 +A, and t 2 =K*l 2 +A forms a system of equations, and A is a constant. The linear correlation coefficient K is obtained by solving the system of equations.
进一步地,所述伪彩色红外图像为红外设备检测发电部件的图像,所述根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值的步骤S8之后,包括:Further, the pseudo-color infrared image is an image of an infrared device detecting a power generation component. After the step S8 of estimating the temperature values corresponding to all the pixels in the pseudo-color infrared image according to the linear correlation coefficient, the method includes:
S81:判断是否存在温度值大于预设阈值的特定像素点;S81: Determine whether there is a specific pixel whose temperature value is greater than a preset threshold;
S82:若是,则获取所述特定像素点在所述伪彩色红外图像内位置信息;S82: If yes, obtain position information of the specific pixel in the pseudo-color infrared image;
S83:根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。S83: Determine the heating fault point of the power generation component according to the position information in the pseudo-color infrared image and the position mapping relationship of the power generation component detected by the infrared device.
本申请实施例中,上述发电部件包括但不限于输变电设备等电力设备。以用于电力部门对输变电设备进行带电检测为例,通过及时监控输变电设备中每个结构部件的温度数据,及时发现发热故障点,以保障用电安全。In the embodiments of the present application, the above-mentioned power generation components include but are not limited to power equipment such as power transmission and transformation equipment. Taking the live detection of power transmission and transformation equipment in the power sector as an example, by monitoring the temperature data of each structural component in the power transmission and transformation equipment in time, the heating fault point can be found in time to ensure the safety of electricity consumption.
参照图2,本申请一实施例的检测温度的装置,包括:2 , a device for detecting temperature according to an embodiment of the present application includes:
第一获取模块1,用于获取红外检测过程中得到的伪彩色红外图像;The first acquisition module 1 is used to acquire the pseudo-color infrared image obtained in the infrared detection process;
截取模块2,用于截取所述伪彩色红外图像内的温度数据区域;Intercepting module 2, for intercepting the temperature data area in the pseudo-color infrared image;
分割模块3,用于从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字; Segmentation module 3, for segmenting the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
比对模块4,用于将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;A comparison module 4 is used to compare the sub-picture with the templates in the preset template library, and respectively determine the specified template with the highest similarity with each of the sub-pictures;
得到模块5,用于根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。The obtaining module 5 is used for obtaining the temperature range corresponding to the temperature data area according to the number of the specified template.
本申请装置实施例的解释,适用方法对应部分的解释,不赘述。The explanation of the embodiments of the apparatus in the present application and the explanation of the corresponding parts of the applicable method will not be repeated.
进一步地,所述温度数据区域内还包括灰度范围,分割模块3,包括:Further, the temperature data area also includes a grayscale range, and the segmentation module 3 includes:
确定子模块,用于在所述温度数据区域对应的灰度范围内确定当前灰度阈值;A determination submodule for determining the current grayscale threshold within the grayscale range corresponding to the temperature data area;
分区子模块,用于通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;A partition sub-module for dividing the grayscale range of the temperature data region into two regions by the current grayscale threshold, including a first region smaller than the current grayscale threshold and a region greater than or equal to the current grayscale threshold the second area;
计算子模块,用于计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;a calculation sub-module for calculating the grayscale variance of the first region and the second region under the current grayscale threshold;
调整子模块,用于在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;an adjustment submodule, configured to dynamically adjust the grayscale threshold within the grayscale range corresponding to the temperature data region, and determine the maximum grayscale variance corresponding to the first region and the second region;
作为子模块,用于将所述最大灰度方差对应的灰度阈值作为分割阈值;As a sub-module, the gray threshold corresponding to the maximum gray variance is used as the segmentation threshold;
分割子模块,用于通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。A segmentation sub-module, configured to segment the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively by using the segmentation threshold.
进一步地,计算子模块,包括:Further, the calculation sub-module includes:
第一计算单元,用于计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;a first calculation unit, configured to calculate the first probability of each gray value distribution in the first area, and calculate the second probability of each gray value distribution in the second area;
第二计算单元,用于根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;A second calculation unit, configured to calculate a first average gray value corresponding to the first region according to each of the first probabilities, and calculate a second average gray value corresponding to the second region according to each of the second probabilities ;
第三计算单元,用于根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;a third calculation unit, configured to calculate the total average gray level of the temperature data region according to the first average gray value and the second average gray value;
第四计算单元,用于根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。a fourth calculation unit, configured to calculate the first average gray value according to the total average gray value, the first average gray value, the second average gray value, the first probability and the second probability The grayscale variance of the region and the second region under the current grayscale threshold.
进一步地,分割子模块,包括:Further, the sub-modules are divided, including:
第一确定单元,用于根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;a first determining unit, configured to determine a first boundary between the temperature data area and the background area, and a second boundary where the highest temperature number in the temperature data area is located, and the lowest temperature in the temperature data area according to the segmentation threshold The third frontier where the warm numbers are located;
第二确定单元,用于根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;A second determining unit, configured to determine the boundary of the sub-picture corresponding to the highest temperature area according to the first boundary and the second boundary, and determine the lowest temperature area according to the first boundary and the third boundary The border of the corresponding sub-picture;
截取单元,用于根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。The intercepting unit is configured to intercept the sub-picture corresponding to the highest temperature area according to the boundary of the sub-picture corresponding to the highest temperature area, and intercept the sub-picture corresponding to the lowest temperature area according to the boundary of the sub-picture corresponding to the lowest temperature area subimage.
进一步地,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,分割子模块,包括:Further, the second boundary and the third boundary are in the lateral direction of the temperature data area, and dividing submodules includes:
判断单元,用于判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;a judging unit for judging whether a specified pixel point on the second boundary is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary;
探寻单元,用于若未处于灰度变化的边界阈值范围内,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;A search unit, configured to search for a gray level fusion point in a longitudinal direction passing through the designated pixel point and parallel to the temperature data area if it is not within the boundary threshold range of gray level change;
替换单元,用于将所述灰度聚变点替换所述第二边界上的指定像素点;a replacement unit, configured to replace the gray-scale fusion point with the specified pixel point on the second boundary;
修正单元,用于按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。A correction unit, configured to correct all the pixels on the second boundary according to the correction method of the specified pixel point, and correct the third boundary according to the correction method of the second boundary.
进一步地,检测温度的装置,包括:Further, the device for detecting temperature includes:
第二获取模块,用于获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;a second acquisition module, configured to acquire the minimum pixel value within the highest temperature region and the maximum pixel value within the lowest temperature region;
计算模块,用于根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;a calculation module, configured to calculate the linear correlation coefficient between the pixel value and the temperature value according to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value;
估测模块,用于根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。The estimation module is used for estimating the temperature values corresponding to all the pixel points in the pseudo-color infrared image according to the linear correlation coefficient.
进一步地,所述伪彩色红外图像为红外设备检测发电部件的图像,检测温度的装置,包括:Further, the pseudo-color infrared image is an image of an infrared device detecting a power generation component, and a device for detecting temperature includes:
判断模块,用于判断是否存在温度值大于预设阈值的特定像素点;a judgment module for judging whether there is a specific pixel whose temperature value is greater than a preset threshold;
第三获取模块,用于若存在温度值大于预设阈值的特定像素点,则获取所述特定像素点在所述伪彩色红外图像内位置信息;a third acquisition module, configured to acquire position information of the specific pixel in the pseudo-color infrared image if there is a specific pixel whose temperature value is greater than a preset threshold;
确定模块,用于根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。and a determination module, configured to determine the heating fault point of the power generation component according to the position information in the pseudo-color infrared image and the position mapping relationship of the power generation component detected by the infrared device.
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储检测温度的过程需要的所有数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现检测温度的方法。Referring to FIG. 3 , an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 3 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store all the data required for the process of detecting the temperature. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of detecting temperature.
上述处理器执行上述检测温度的方法,包括:获取红外检测过程中得到的伪彩色红外图像;截取所述伪彩色红外图像内的温度数据区域;从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。The above-mentioned method for detecting temperature by the processor includes: acquiring a pseudo-color infrared image obtained in an infrared detection process; intercepting a temperature data area in the pseudo-color infrared image; dividing the temperature data area according to a preset segmentation method The sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively, wherein the sub-picture includes only one number; the sub-picture is compared with the templates in the preset template library, and the corresponding sub-pictures are determined respectively. The specified template with the highest similarity; according to the number of the specified template, the temperature range corresponding to the temperature data area is obtained.
上述计算机设备,基于伪彩色红外图中的温度条的位置是相对固定的,且温度条上下的最高温区与最低温区的标识字体也是一致的,通过从温度条的温度数据区域,截取出最高温区与最低温区的子图片,并使用简单而高效的数字模板匹配的方法,即可获得伪彩色红外图中的温度条中的温度范围,工作量小且识别效率高。The above-mentioned computer equipment, based on the position of the temperature bar in the pseudo-color infrared image, is relatively fixed, and the identification fonts of the highest temperature area and the lowest temperature area above and below the temperature bar are also consistent, by intercepting the temperature data area from the temperature bar. The sub-images of the highest temperature area and the lowest temperature area, and using a simple and efficient digital template matching method, the temperature range in the temperature bar in the pseudo-color infrared image can be obtained, with a small workload and high recognition efficiency.
在一个实施例中,所述温度数据区域内还包括灰度范围,上述处理器从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤,包括:在所述温度数据区域对应的灰度范围内确定当前灰度阈值;通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述 当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;将所述最大灰度方差对应的灰度阈值作为分割阈值;通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。In one embodiment, the temperature data area further includes a grayscale range, and the step of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area by the processor from the temperature data area according to a preset segmentation method includes the following steps: : determine the current grayscale threshold within the grayscale range corresponding to the temperature data area; divide the grayscale range of the temperature data area into two areas by the current grayscale threshold, including the grayscale range smaller than the current grayscale threshold The first area and the second area greater than or equal to the current grayscale threshold; calculate the grayscale variance of the first area and the second area under the current grayscale threshold; in the temperature data area corresponding to Dynamically adjust the grayscale threshold within the grayscale range to determine the maximum grayscale variance corresponding to the first area and the second area; use the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold; pass the segmentation threshold Sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented.
在一个实施例中,上述处理器计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤,包括:计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。In one embodiment, the step of calculating the grayscale variance of the first region and the second region under the current grayscale threshold by the processor includes: calculating the distribution of each grayscale value in the first region Calculate the first probability of each gray value distribution in the second area; calculate the first average gray value corresponding to the first area according to each of the first probability, and calculate the first average gray value corresponding to the first area according to each of the second Probabilistically calculate the second average gray value corresponding to the second area; calculate the total average gray value of the temperature data area according to the first average gray value and the second average gray value; The total average grayscale, the first average grayscale value, the second average grayscale value, the first probability, and the second probability, calculating the first area and the second area in the The grayscale variance at the current grayscale threshold.
在一个实施例中,上述处理器通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤,包括:根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。In an embodiment, the step of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area by the above-mentioned processor by using the dividing threshold includes: determining a first difference between the temperature data area and the background area according to the dividing threshold boundary, and a second boundary where the highest temperature number in the temperature data area is located, and a third boundary where the lowest temperature number is located in the temperature data area; determining the first boundary and the second boundary The boundary of the sub-picture corresponding to the highest temperature area is determined according to the first boundary and the third boundary of the sub-picture corresponding to the lowest temperature area; according to the boundary of the sub-picture corresponding to the highest temperature area, intercept the The sub-picture corresponding to the highest temperature area is intercepted according to the boundary of the sub-picture corresponding to the lowest temperature area.
在一个实施例中,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,上述处理器根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤之后,包括:判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;若否,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;将所述灰度聚变点替换所述第二边界上的指定像素点;按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。In one embodiment, the second boundary and the third boundary are in the lateral direction of the temperature data area, and the processor determines the first boundary between the temperature data area and the background area according to the segmentation threshold, and after the step of the second boundary where the highest temperature number is located in the temperature data area and the third boundary where the lowest temperature number is located in the temperature data area, including: judging whether the specified pixel point on the second boundary is It is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary; In the longitudinal direction, search for gray-scale fusion points; replace the gray-scale fusion points on the specified pixel points on the second boundary; modify all the pixel points on the second boundary according to the modification method of the specified pixel points , and modify the third border according to the modification method of the second border.
在一个实施例中,上述处理器根据所述指定模板的数字,得到所述温度数据区域对应的温度范围的步骤之后,包括:获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。In one embodiment, after the above-mentioned processor obtains the temperature range corresponding to the temperature data area according to the number of the specified template, the step includes: obtaining the minimum pixel value in the highest temperature area and the lowest temperature The maximum pixel value in the area; according to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value, calculate the linear correlation coefficient between the pixel value and the temperature value; according to the linear correlation coefficient The temperature values corresponding to all the pixel points in the pseudo-color infrared image are estimated respectively.
在一个实施例中,伪彩色红外图像为红外设备检测发电部件的图像,上述处理器根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值的步骤之后,包括:判断是否存在温度值大于预设阈值的特定像素点;若是,则获取所述特定像素点在所述伪彩色红外图像内位置信息;根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。In one embodiment, the pseudo-color infrared image is an image of an infrared device detecting a power-generating component, and after the step of estimating the temperature values corresponding to all pixels in the pseudo-color infrared image by the processor according to the linear correlation coefficient, the method includes: : determine whether there is a specific pixel with a temperature value greater than a preset threshold; if so, obtain the position information of the specific pixel in the pseudo-color infrared image; according to the position information in the pseudo-color infrared image, and the infrared The device detects the positional mapping relationship of the power generation components, and determines the heating failure points of the power generation components.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
本申请一实施例还提供一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,其上存储有计算机程序,计算机程序被处理器执行时实现检测温度的方法,包括:获取红外检测过程中得到的伪彩色红外图像;截取所述伪彩色红外图像内的温度数据区域;从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。An embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium may be non-volatile or volatile, and a computer program is stored thereon, and the computer program is implemented when executed by a processor A method for detecting temperature, comprising: acquiring a pseudo-color infrared image obtained in an infrared detection process; intercepting a temperature data area in the pseudo-color infrared image; dividing the highest temperature area and the lowest temperature area from the temperature data area according to a preset segmentation method The sub-pictures corresponding to the temperature zones respectively, wherein the sub-pictures only include a number; the sub-pictures are compared with the templates in the preset template library, and the designations with the highest similarity with each of the sub-pictures are determined respectively. template; obtain the temperature range corresponding to the temperature data area according to the number of the specified template.
上述计算机可读存储介质,基于伪彩色红外图中的温度条的位置是相对固定的,且温度条上下的最高温区与最低温区的标识字体也是一致的,通过从温度条的温度数据区域,截取出最高温区与最低温区的子图片,并使用简单而高效的数字模板匹配的方法,即可获得伪彩色红外图中的温度条中的温度范围,工作量小且识别效率高。The above-mentioned computer-readable storage medium is based on the fact that the position of the temperature bar in the pseudo-color infrared image is relatively fixed, and the identification fonts of the highest temperature area and the lowest temperature area above and below the temperature bar are also consistent. , cut out the sub-pictures of the highest temperature area and the lowest temperature area, and use a simple and efficient digital template matching method to obtain the temperature range in the temperature bar in the pseudo-color infrared image, with small workload and high recognition efficiency.
在一个实施例中,所述温度数据区域内还包括灰度范围,上述处理器从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤,包括:在所述温度数据区域对应的灰度范围内确定当前灰度阈值;通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;将所述最大灰度方差对应的灰度阈值作为分割阈值;通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。In one embodiment, the temperature data area further includes a grayscale range, and the step of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area by the processor from the temperature data area according to a preset segmentation method includes the following steps: : determine the current grayscale threshold within the grayscale range corresponding to the temperature data area; divide the grayscale range of the temperature data area into two areas by the current grayscale threshold, including the grayscale range smaller than the current grayscale threshold The first area and the second area greater than or equal to the current grayscale threshold; calculate the grayscale variance of the first area and the second area under the current grayscale threshold; in the temperature data area corresponding to Dynamically adjust the grayscale threshold within the grayscale range to determine the maximum grayscale variance corresponding to the first area and the second area; use the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold; pass the segmentation threshold Sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented.
在一个实施例中,上述处理器计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤,包括:计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。In one embodiment, the step of calculating the grayscale variance of the first region and the second region under the current grayscale threshold by the processor includes: calculating the distribution of each grayscale value in the first region Calculate the first probability of each gray value distribution in the second area; calculate the first average gray value corresponding to the first area according to each of the first probability, and calculate the first average gray value corresponding to the first area according to each of the second Probabilistically calculate the second average gray value corresponding to the second area; calculate the total average gray value of the temperature data area according to the first average gray value and the second average gray value; The total average grayscale, the first average grayscale value, the second average grayscale value, the first probability, and the second probability, calculating the first area and the second area in the The grayscale variance at the current grayscale threshold.
在一个实施例中,上述处理器通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤,包括:根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。In an embodiment, the step of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area by the above-mentioned processor by using the dividing threshold includes: determining a first difference between the temperature data area and the background area according to the dividing threshold boundary, and a second boundary where the highest temperature number in the temperature data area is located, and a third boundary where the lowest temperature number is located in the temperature data area; determining the first boundary and the second boundary The boundary of the sub-picture corresponding to the highest temperature area is determined according to the first boundary and the third boundary of the sub-picture corresponding to the lowest temperature area; according to the boundary of the sub-picture corresponding to the highest temperature area, intercept the The sub-picture corresponding to the highest temperature area is intercepted according to the boundary of the sub-picture corresponding to the lowest temperature area.
在一个实施例中,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,上述处理器根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤之后,包括:判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;若否,则在经过所述指定像素点且平行于所述温度数据区 域的纵向方向上,探寻灰度聚变点;将所述灰度聚变点替换所述第二边界上的指定像素点;按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。In one embodiment, the second boundary and the third boundary are in the lateral direction of the temperature data area, and the processor determines the first boundary between the temperature data area and the background area according to the segmentation threshold, and after the step of the second boundary where the highest temperature number is located in the temperature data area and the third boundary where the lowest temperature number is located in the temperature data area, including: judging whether the specified pixel point on the second boundary is It is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary; In the longitudinal direction, search for gray-scale fusion points; replace the gray-scale fusion points on the specified pixel points on the second boundary; modify all the pixel points on the second boundary according to the modification method of the specified pixel points , and modify the third border according to the modification method of the second border.
在一个实施例中,上述处理器根据所述指定模板的数字,得到所述温度数据区域对应的温度范围的步骤之后,包括:获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。In one embodiment, after the above-mentioned processor obtains the temperature range corresponding to the temperature data area according to the number of the specified template, the step includes: obtaining the minimum pixel value in the highest temperature area and the lowest temperature The maximum pixel value in the area; according to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value, calculate the linear correlation coefficient between the pixel value and the temperature value; according to the linear correlation coefficient The temperature values corresponding to all the pixel points in the pseudo-color infrared image are estimated respectively.
在一个实施例中,伪彩色红外图像为红外设备检测发电部件的图像,上述处理器根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值的步骤之后,包括:判断是否存在温度值大于预设阈值的特定像素点;若是,则获取所述特定像素点在所述伪彩色红外图像内位置信息;根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。In one embodiment, the pseudo-color infrared image is an image of an infrared device detecting a power-generating component, and after the step of estimating the temperature values corresponding to all pixels in the pseudo-color infrared image by the processor according to the linear correlation coefficient, the method includes: : determine whether there is a specific pixel with a temperature value greater than a preset threshold; if so, obtain the position information of the specific pixel in the pseudo-color infrared image; according to the position information in the pseudo-color infrared image, and the infrared The device detects the positional mapping relationship of the power generation components, and determines the heating failure points of the power generation components.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型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 process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments 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-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, device, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.

Claims (20)

  1. 一种检测温度的方法,其中,包括:A method of detecting temperature, comprising:
    获取红外检测过程中得到的伪彩色红外图像;Obtain the pseudo-color infrared image obtained during the infrared detection process;
    截取所述伪彩色红外图像内的温度数据区域;intercepting the temperature data area in the pseudo-color infrared image;
    从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;The sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
    将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;Comparing the sub-pictures with the templates in the preset template library, respectively determining the specified template with the highest similarity with each of the sub-pictures;
    根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。According to the number of the specified template, the temperature range corresponding to the temperature data area is obtained.
  2. 根据权利要求1所述的检测温度的方法,其中,所述温度数据区域内还包括灰度范围,所述从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤,包括:The method for detecting temperature according to claim 1, wherein the temperature data area further includes a gray scale range, and the highest temperature area and the lowest temperature area are divided from the temperature data area according to a preset segmentation method respectively corresponding to The steps for the subimage include:
    在所述温度数据区域对应的灰度范围内确定当前灰度阈值;Determine the current grayscale threshold within the grayscale range corresponding to the temperature data area;
    通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;Dividing the grayscale range of the temperature data region into two regions by using the current grayscale threshold, including a first region smaller than the current grayscale threshold and a second region greater than or equal to the current grayscale threshold;
    计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;Calculate the grayscale variance of the first area and the second area under the current grayscale threshold;
    在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;Dynamically adjust the grayscale threshold within the grayscale range corresponding to the temperature data region, and determine the maximum grayscale variance corresponding to the first region and the second region;
    将所述最大灰度方差对应的灰度阈值作为分割阈值;Using the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold;
    通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。The sub-pictures respectively corresponding to the highest temperature area and the lowest temperature area are segmented by the segmentation threshold.
  3. 根据权利要求2所述的检测温度的方法,其中,所述计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤,包括:The method for detecting temperature according to claim 2, wherein the step of calculating the grayscale variance of the first region and the second region under the current grayscale threshold comprises:
    计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;calculating a first probability of each gray value distribution in the first area, and calculating a second probability of each gray value distribution in the second area;
    根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;Calculate a first average grayscale value corresponding to the first region according to each of the first probabilities, and calculate a second average grayscale value corresponding to the second region according to each of the second probabilities;
    根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;calculating the total average gray level of the temperature data region according to the first average gray value and the second average gray value;
    根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。Calculate the first area and the second area according to the total average grayscale, the first average grayscale value, the second average grayscale value, the first probability, and the second probability The grayscale variance under the current grayscale threshold.
  4. 根据权利要求2所述的检测温度的方法,其中,所述通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤,包括:The method for detecting temperature according to claim 2, wherein the step of dividing the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively by the segmentation threshold comprises:
    根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;The first boundary between the temperature data area and the background area, the second boundary where the highest temperature number in the temperature data area is located, and the third boundary where the lowest temperature number in the temperature data area is located are determined according to the segmentation threshold. boundary;
    根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;Determine the boundary of the sub-picture corresponding to the highest temperature area according to the first boundary and the second boundary, and determine the boundary of the sub-picture corresponding to the lowest temperature area according to the first boundary and the third boundary;
    根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。The sub-picture corresponding to the highest temperature region is intercepted according to the boundary of the sub-picture corresponding to the highest temperature region, and the sub-picture corresponding to the lowest temperature region is intercepted according to the boundary of the sub-picture corresponding to the lowest temperature region.
  5. 根据权利要求4所述的检测温度的方法,其中,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,所述根据所述分割阈值确定所述温 度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤之后,包括:The method for detecting temperature according to claim 4, wherein the second boundary and the third boundary are in a lateral direction of the temperature data region, and the temperature data region is determined according to the segmentation threshold to be the same as the temperature data region. After the steps of the first boundary of the background area, the second boundary where the highest temperature number is located in the temperature data area, and the third boundary where the lowest temperature number is located in the temperature data area, the steps include:
    判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;Determine whether the specified pixel point on the second boundary is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary;
    若否,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;If not, searching for a gray-scale fusion point in the longitudinal direction passing through the designated pixel point and parallel to the temperature data area;
    将所述灰度聚变点替换所述第二边界上的指定像素点;replacing the gray-scale fusion point with the specified pixel point on the second boundary;
    按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。All pixels on the second boundary are corrected according to the correction method of the specified pixel point, and the third boundary is corrected according to the correction method of the second boundary.
  6. 根据权利要求1所述的检测温度的方法,其中,所述根据所述指定模板的数字,得到所述温度数据区域对应的温度范围的步骤之后,包括:The method for detecting temperature according to claim 1, wherein after the step of obtaining the temperature range corresponding to the temperature data area according to the number of the specified template, the method comprises:
    获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;obtaining the minimum pixel value within the highest temperature region, and the maximum pixel value within the lowest temperature region;
    根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;According to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value, calculate the linear correlation coefficient between the pixel value and the temperature value;
    根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。The temperature values corresponding to all pixel points in the pseudo-color infrared image are estimated according to the linear correlation coefficient.
  7. 根据权利要求6所述的检测温度的方法,其中,所述伪彩色红外图像为红外设备检测发电部件的图像,所述根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值的步骤之后,包括:The method for detecting temperature according to claim 6, wherein the pseudo-color infrared image is an image of an infrared device detecting a power-generating component, and all the pixels in the pseudo-color infrared image are estimated according to the linear correlation coefficient, respectively. After the steps corresponding to the temperature values, include:
    判断是否存在温度值大于预设阈值的特定像素点;Determine whether there is a specific pixel whose temperature value is greater than a preset threshold;
    若是,则获取所述特定像素点在所述伪彩色红外图像内位置信息;If so, obtain the position information of the specific pixel in the pseudo-color infrared image;
    根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。According to the position information in the pseudo-color infrared image and the position mapping relationship of the power generation components detected by the infrared device, the heating failure point of the power generation components is determined.
  8. 一种检测温度的装置,其中,包括:A device for detecting temperature, comprising:
    第一获取模块,用于获取红外检测过程中得到的伪彩色红外图像;a first acquisition module, used for acquiring a pseudo-color infrared image obtained during the infrared detection process;
    截取模块,用于截取所述伪彩色红外图像内的温度数据区域;an interception module, used for intercepting the temperature data area in the pseudo-color infrared image;
    分割模块,用于从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;a segmentation module, configured to segment the sub-pictures corresponding to the highest temperature area and the lowest temperature area respectively from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
    比对模块,用于将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;a comparison module, configured to compare the sub-pictures with the templates in the preset template library, and respectively determine the specified template with the highest similarity with each of the sub-pictures;
    得到模块,用于根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。The obtaining module is used to obtain the temperature range corresponding to the temperature data area according to the number of the specified template.
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其中,所述处理器执行所述计算机程序时实现一种检测温度的方法,所述方法包括:A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements a method for detecting temperature when the processor executes the computer program, the method comprising:
    获取红外检测过程中得到的伪彩色红外图像;Obtain the pseudo-color infrared image obtained during the infrared detection process;
    截取所述伪彩色红外图像内的温度数据区域;intercepting the temperature data area in the pseudo-color infrared image;
    从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;The sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
    将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;Comparing the sub-pictures with the templates in the preset template library, respectively determining the specified template with the highest similarity with each of the sub-pictures;
    根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。According to the number of the specified template, the temperature range corresponding to the temperature data area is obtained.
  10. 根据权利要求9所述的计算机设备,其中,所述温度数据区域内还包括灰度范围,所述从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤,包括:The computer device according to claim 9, wherein the temperature data area further includes a gray scale range, and the subsections corresponding to the highest temperature area and the lowest temperature area are divided from the temperature data area according to a preset segmentation method. Steps for pictures, including:
    在所述温度数据区域对应的灰度范围内确定当前灰度阈值;Determine the current grayscale threshold within the grayscale range corresponding to the temperature data area;
    通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;Dividing the grayscale range of the temperature data region into two regions by using the current grayscale threshold, including a first region smaller than the current grayscale threshold and a second region greater than or equal to the current grayscale threshold;
    计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;Calculate the grayscale variance of the first area and the second area under the current grayscale threshold;
    在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;Dynamically adjust the grayscale threshold within the grayscale range corresponding to the temperature data region, and determine the maximum grayscale variance corresponding to the first region and the second region;
    将所述最大灰度方差对应的灰度阈值作为分割阈值;Using the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold;
    通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。The sub-pictures respectively corresponding to the highest temperature area and the lowest temperature area are segmented by the segmentation threshold.
  11. 根据权利要求10所述的计算机设备,其中,所述计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤,包括:The computer device according to claim 10, wherein the step of calculating the grayscale variance of the first region and the second region under the current grayscale threshold comprises:
    计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;calculating a first probability of each gray value distribution in the first area, and calculating a second probability of each gray value distribution in the second area;
    根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;Calculate a first average grayscale value corresponding to the first region according to each of the first probabilities, and calculate a second average grayscale value corresponding to the second region according to each of the second probabilities;
    根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;calculating the total average gray level of the temperature data region according to the first average gray value and the second average gray value;
    根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。Calculate the first area and the second area according to the total average grayscale, the first average grayscale value, the second average grayscale value, the first probability, and the second probability The grayscale variance under the current grayscale threshold.
  12. 根据权利要求10所述的计算机设备,其中,所述通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤,包括:The computer device according to claim 10, wherein the step of dividing the sub-pictures corresponding to the highest temperature region and the lowest temperature region respectively by the segmentation threshold comprises:
    根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;The first boundary between the temperature data area and the background area, the second boundary where the highest temperature number in the temperature data area is located, and the third boundary where the lowest temperature number in the temperature data area is located are determined according to the segmentation threshold. boundary;
    根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;Determine the boundary of the sub-picture corresponding to the highest temperature area according to the first boundary and the second boundary, and determine the boundary of the sub-picture corresponding to the lowest temperature area according to the first boundary and the third boundary;
    根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。The sub-picture corresponding to the highest temperature region is intercepted according to the boundary of the sub-picture corresponding to the highest temperature region, and the sub-picture corresponding to the lowest temperature region is intercepted according to the boundary of the sub-picture corresponding to the lowest temperature region.
  13. 根据权利要求12所述的计算机设备,其中,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,所述根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤之后,包括:13. The computer device of claim 12, wherein the second boundary and the third boundary are in a lateral direction of the temperature data area, and the temperature data area and the background area are determined according to the segmentation threshold After the steps of the first boundary of the temperature data area, the second boundary where the highest temperature number is located in the temperature data area, and the third boundary where the lowest temperature number is located in the temperature data area, the steps include:
    判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;Determine whether the specified pixel point on the second boundary is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary;
    若否,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;If not, searching for a gray-scale fusion point in the longitudinal direction passing through the designated pixel point and parallel to the temperature data area;
    将所述灰度聚变点替换所述第二边界上的指定像素点;replacing the gray-scale fusion point with the specified pixel point on the second boundary;
    按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。All pixels on the second boundary are corrected according to the correction method of the specified pixel point, and the third boundary is corrected according to the correction method of the second boundary.
  14. 根据权利要求9所述的计算机设备,其中,所述根据所述指定模板的数字,得到所述温度数据区域对应的温度范围的步骤之后,包括:The computer device according to claim 9, wherein, after the step of obtaining the temperature range corresponding to the temperature data area according to the numbers of the specified template, the step includes:
    获取所述最高温区内的最小像素值,以及所述最低温区内的最大像素值;obtaining the minimum pixel value within the highest temperature region, and the maximum pixel value within the lowest temperature region;
    根据最高温度与所述最小像素值的对应关系,以及最低温度与所述最大像素值的对应关系,计算像素值与温度值的线性关联系数;According to the corresponding relationship between the maximum temperature and the minimum pixel value, and the corresponding relationship between the minimum temperature and the maximum pixel value, calculate the linear correlation coefficient between the pixel value and the temperature value;
    根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值。The temperature values corresponding to all pixel points in the pseudo-color infrared image are estimated according to the linear correlation coefficient.
  15. 根据权利要求14所述的计算机设备,其中,所述伪彩色红外图像为红外设备检测发电部件的图像,所述根据所述线性关联系数估测所述伪彩色红外图像内所有像素点分别对应的温度值的步骤之后,包括:The computer device according to claim 14, wherein the pseudo-color infrared image is an image of an infrared device detecting a power-generating component, and estimating the corresponding corresponding pixels of all pixels in the pseudo-color infrared image according to the linear correlation coefficient After the temperature value steps, include:
    判断是否存在温度值大于预设阈值的特定像素点;Determine whether there is a specific pixel whose temperature value is greater than a preset threshold;
    若是,则获取所述特定像素点在所述伪彩色红外图像内位置信息;If so, obtain the position information of the specific pixel in the pseudo-color infrared image;
    根据所述伪彩色红外图像内位置信息,以及所述红外设备检测发电部件的位置映射关系,确定所述发电部件的发热故障点。According to the position information in the pseudo-color infrared image and the position mapping relationship of the power generation components detected by the infrared device, the heating failure point of the power generation components is determined.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现一种检测温度的方法,所述方法包括:A computer-readable storage medium on which a computer program is stored, wherein, when the computer program is executed by a processor, a method for detecting temperature, the method comprising:
    获取红外检测过程中得到的伪彩色红外图像;Obtain the pseudo-color infrared image obtained during the infrared detection process;
    截取所述伪彩色红外图像内的温度数据区域;intercepting the temperature data area in the pseudo-color infrared image;
    从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片,其中,所述子图片中仅包括一个数字;The sub-pictures corresponding to the highest temperature area and the lowest temperature area are segmented from the temperature data area according to a preset segmentation method, wherein the sub-picture only includes a number;
    将所述子图片与预设模板库中的模板进行比对,分别确定与各所述子图片相似度最高的指定模板;Comparing the sub-pictures with the templates in the preset template library, respectively determining the specified template with the highest similarity with each of the sub-pictures;
    根据所述指定模板的数字,得到所述温度数据区域对应的温度范围。According to the number of the specified template, the temperature range corresponding to the temperature data area is obtained.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述温度数据区域内还包括灰度范围,所述从所述温度数据区域按照预设分割方式分割出最高温区和最低温区分别对应的子图片的步骤,包括:The computer-readable storage medium according to claim 16, wherein the temperature data area further includes a gray scale range, and the highest temperature area and the lowest temperature area are divided from the temperature data area according to a preset segmentation method, respectively. The steps of the corresponding sub-picture include:
    在所述温度数据区域对应的灰度范围内确定当前灰度阈值;Determine the current grayscale threshold within the grayscale range corresponding to the temperature data area;
    通过所述当前灰度阈值将所述温度数据区域的灰度范围分成两个区域,包括小于所述当前灰度阈值的第一区域和大于等于所述当前灰度阈值的第二区域;Dividing the grayscale range of the temperature data region into two regions by using the current grayscale threshold, including a first region smaller than the current grayscale threshold and a second region greater than or equal to the current grayscale threshold;
    计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差;Calculate the grayscale variance of the first area and the second area under the current grayscale threshold;
    在所述温度数据区域对应的灰度范围内动态调整灰度阈值,确定所述第一区域和所述第二区域对应的最大灰度方差;Dynamically adjust the grayscale threshold within the grayscale range corresponding to the temperature data region, and determine the maximum grayscale variance corresponding to the first region and the second region;
    将所述最大灰度方差对应的灰度阈值作为分割阈值;Using the grayscale threshold corresponding to the maximum grayscale variance as the segmentation threshold;
    通过所述分割阈值分割出最高温区和最低温区分别对应的子图片。The sub-pictures respectively corresponding to the highest temperature area and the lowest temperature area are segmented by the segmentation threshold.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差的步骤,包括:The computer-readable storage medium according to claim 17, wherein the step of calculating the grayscale variance of the first region and the second region under the current grayscale threshold comprises:
    计算所述第一区域内各灰度值分布的第一概率,计算所述第二区域内各灰度值分布的第二概率;calculating a first probability of each gray value distribution in the first area, and calculating a second probability of each gray value distribution in the second area;
    根据各所述第一概率计算所述第一区域对应的第一平均灰度值,根据各所述第二概率计算所述第二区域对应的第二平均灰度值;Calculate a first average grayscale value corresponding to the first region according to each of the first probabilities, and calculate a second average grayscale value corresponding to the second region according to each of the second probabilities;
    根据所述第一平均灰度值和所述第二平均灰度值,计算所述温度数据区域的总平均灰度;calculating the total average gray level of the temperature data region according to the first average gray value and the second average gray value;
    根据所述总平均灰度、所述第一平均灰度值、所述第二平均灰度值、所述第一概率和所述第二概率,计算所述第一区域和所述第二区域在所述当前灰度阈值下的灰度方差。Calculate the first area and the second area according to the total average grayscale, the first average grayscale value, the second average grayscale value, the first probability, and the second probability The grayscale variance under the current grayscale threshold.
  19. 根据权利要求17所述的计算机可读存储介质,其中,所述通过所述分割阈值分割出最高温区和最低温区分别对应的子图片的步骤,包括:The computer-readable storage medium according to claim 17, wherein the step of dividing the sub-pictures corresponding to the highest temperature region and the lowest temperature region respectively by the segmentation threshold comprises:
    根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界;A first boundary between the temperature data area and the background area, a second boundary where the highest temperature number in the temperature data area is located, and a third boundary where the lowest temperature number in the temperature data area is located are determined according to the segmentation threshold boundary;
    根据所述第一边界和所述第二边界确定所述最高温区对应的子图片的边界,根据所述第一边界和所述第三边界确定所述最低温区对应的子图片的边界;Determine the boundary of the sub-picture corresponding to the highest temperature area according to the first boundary and the second boundary, and determine the boundary of the sub-picture corresponding to the lowest temperature area according to the first boundary and the third boundary;
    根据所述最高温区对应的子图片的边界,截取所述最高温区对应的子图片,根据所述最低温区对应的子图片的边界,截取所述最低温区对应的子图片。The sub-picture corresponding to the highest temperature region is intercepted according to the boundary of the sub-picture corresponding to the highest temperature region, and the sub-picture corresponding to the lowest temperature region is intercepted according to the boundary of the sub-picture corresponding to the lowest temperature region.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述第二边界和所述第三边界处于所述温度数据区域的横向方向上,所述根据所述分割阈值确定所述温度数据区域与背景区域的第一边界,以及所述温度数据区域内最高温数字所处的第二边界、所述温度数据区域内最低温数字所处的第三边界的步骤之后,包括:19. The computer-readable storage medium of claim 19, wherein the second boundary and the third boundary are in a lateral direction of the temperature data region, the temperature data region being determined according to the segmentation threshold After the step with the first boundary of the background area, the second boundary where the highest temperature number is located in the temperature data area, and the third boundary where the lowest temperature number is located in the temperature data area, the steps include:
    判断所述第二边界上的指定像素点是否处于灰度变化的边界阈值范围内,其中,所述指定像素点为所述第二边界上的任一像素点;Determine whether the specified pixel point on the second boundary is within the boundary threshold range of grayscale change, wherein the specified pixel point is any pixel point on the second boundary;
    若否,则在经过所述指定像素点且平行于所述温度数据区域的纵向方向上,探寻灰度聚变点;If not, searching for a gray-scale fusion point in the longitudinal direction passing through the designated pixel point and parallel to the temperature data area;
    将所述灰度聚变点替换所述第二边界上的指定像素点;replacing the gray-scale fusion point with the specified pixel point on the second boundary;
    按照所述指定像素点的修正方式,修正所述第二边界上的所有像素点,按照所述第二边界的修正方式,修正所述第三边界。All pixels on the second boundary are corrected according to the correction method of the specified pixel point, and the third boundary is corrected according to the correction method of the second boundary.
PCT/CN2021/084571 2020-12-11 2021-03-31 Method and apparatus for measuring temperature, and computer device WO2022121189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011461798.1 2020-12-11
CN202011461798.1A CN112539843B (en) 2020-12-11 2020-12-11 Method and device for detecting temperature and computer equipment

Publications (1)

Publication Number Publication Date
WO2022121189A1 true WO2022121189A1 (en) 2022-06-16

Family

ID=75020113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084571 WO2022121189A1 (en) 2020-12-11 2021-03-31 Method and apparatus for measuring temperature, and computer device

Country Status (2)

Country Link
CN (1) CN112539843B (en)
WO (1) WO2022121189A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116051555A (en) * 2023-03-31 2023-05-02 深圳市冠禹半导体有限公司 Wafer temperature distribution detection system and method
CN116503633A (en) * 2023-07-03 2023-07-28 山东艾迈科思电气有限公司 Intelligent detection control method for switch cabinet state based on image recognition
CN116879726A (en) * 2023-05-23 2023-10-13 国网安徽省电力有限公司电力科学研究院 Fault diagnosis method and system applied to GIS switch equipment
CN117036313A (en) * 2023-08-18 2023-11-10 华大天元(北京)科技股份有限公司 Computer vision-based infrared intelligent detection method and equipment for power equipment
CN117058625A (en) * 2023-10-11 2023-11-14 济宁港航梁山港有限公司 Campus fire control remote monitoring system based on thing networking

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112539843B (en) * 2020-12-11 2023-06-02 平安科技(深圳)有限公司 Method and device for detecting temperature and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4983836A (en) * 1988-06-30 1991-01-08 Nkk Corporation Method for detecting thinned out portion on inner surface or outer surface of pipe
CN102930280A (en) * 2012-10-05 2013-02-13 中国电子科技集团公司第十研究所 Method for identifying overhead high-voltage wire automatically from infrared image
CN104132733A (en) * 2014-07-04 2014-11-05 国家电网公司 Combined-type infrared thermal imager and temperature detection method thereof
CN107341947A (en) * 2017-07-21 2017-11-10 华南理工大学 A kind of fire-alarm and fire alarm method based on thermal infrared imager
CN110017901A (en) * 2019-04-01 2019-07-16 华北电力大学 The infared spectrum diagnostic method of electric equipment operation state in a kind of electric system
CN112539843A (en) * 2020-12-11 2021-03-23 平安科技(深圳)有限公司 Method and device for detecting temperature and computer equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101811A1 (en) * 2012-12-27 2014-07-03 Wang Hao Thermal image matching apparatus and thermal image matching method
US9773196B2 (en) * 2016-01-25 2017-09-26 Adobe Systems Incorporated Utilizing deep learning for automatic digital image segmentation and stylization
CN109934262B (en) * 2019-01-31 2023-08-22 平安科技(深圳)有限公司 Picture variability judging method, device, computer equipment and storage medium
CN110942458B (en) * 2019-12-06 2023-05-16 汕头大学 Temperature anomaly defect detection and positioning method and system
CN111369516B (en) * 2020-03-01 2023-06-30 上海置信电气股份有限公司 Transformer bushing heating defect detection method based on infrared image recognition
CN111882518B (en) * 2020-06-09 2023-12-19 中海石油(中国)有限公司 Self-adaptive pseudo-colorization method for magnetic flux leakage data
CN111862073A (en) * 2020-07-29 2020-10-30 广东电网有限责任公司 Temperature acquisition method and device for power equipment
CN112036410B (en) * 2020-08-13 2022-06-07 华乘电气科技股份有限公司 Electric power equipment infrared image segmentation method based on deep learning and image gradient

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4983836A (en) * 1988-06-30 1991-01-08 Nkk Corporation Method for detecting thinned out portion on inner surface or outer surface of pipe
CN102930280A (en) * 2012-10-05 2013-02-13 中国电子科技集团公司第十研究所 Method for identifying overhead high-voltage wire automatically from infrared image
CN104132733A (en) * 2014-07-04 2014-11-05 国家电网公司 Combined-type infrared thermal imager and temperature detection method thereof
CN107341947A (en) * 2017-07-21 2017-11-10 华南理工大学 A kind of fire-alarm and fire alarm method based on thermal infrared imager
CN110017901A (en) * 2019-04-01 2019-07-16 华北电力大学 The infared spectrum diagnostic method of electric equipment operation state in a kind of electric system
CN112539843A (en) * 2020-12-11 2021-03-23 平安科技(深圳)有限公司 Method and device for detecting temperature and computer equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116051555A (en) * 2023-03-31 2023-05-02 深圳市冠禹半导体有限公司 Wafer temperature distribution detection system and method
CN116879726A (en) * 2023-05-23 2023-10-13 国网安徽省电力有限公司电力科学研究院 Fault diagnosis method and system applied to GIS switch equipment
CN116879726B (en) * 2023-05-23 2024-02-09 国网安徽省电力有限公司电力科学研究院 Fault diagnosis method and system applied to GIS switch equipment
CN116503633A (en) * 2023-07-03 2023-07-28 山东艾迈科思电气有限公司 Intelligent detection control method for switch cabinet state based on image recognition
CN116503633B (en) * 2023-07-03 2023-09-05 山东艾迈科思电气有限公司 Intelligent detection control method for switch cabinet state based on image recognition
CN117036313A (en) * 2023-08-18 2023-11-10 华大天元(北京)科技股份有限公司 Computer vision-based infrared intelligent detection method and equipment for power equipment
CN117036313B (en) * 2023-08-18 2024-04-30 华大天元(北京)科技股份有限公司 Computer vision-based infrared intelligent detection method and equipment for power equipment
CN117058625A (en) * 2023-10-11 2023-11-14 济宁港航梁山港有限公司 Campus fire control remote monitoring system based on thing networking
CN117058625B (en) * 2023-10-11 2024-01-16 济宁港航梁山港有限公司 Campus fire control remote monitoring system based on thing networking

Also Published As

Publication number Publication date
CN112539843A (en) 2021-03-23
CN112539843B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
WO2022121189A1 (en) Method and apparatus for measuring temperature, and computer device
CN111860670B (en) Domain adaptive model training method, image detection method, device, equipment and medium
CN109492643B (en) Certificate identification method and device based on OCR, computer equipment and storage medium
CN110490202B (en) Detection model training method and device, computer equipment and storage medium
CN112288761B (en) Abnormal heating power equipment detection method and device and readable storage medium
CN112883850B (en) Multi-view space remote sensing image matching method based on convolutional neural network
CN110008844B (en) KCF long-term gesture tracking method fused with SLIC algorithm
Yang et al. Non-rigid image registration with dynamic Gaussian component density and space curvature preservation
CN112818821B (en) Human face acquisition source detection method and device based on visible light and infrared light
CN111401387A (en) Abnormal sample construction method and device, computer equipment and storage medium
CN112101195A (en) Crowd density estimation method and device, computer equipment and storage medium
CN112884782A (en) Biological object segmentation method, apparatus, computer device and storage medium
CN113344000A (en) Certificate copying and recognizing method and device, computer equipment and storage medium
CN115661872A (en) Robust palm region-of-interest positioning method in natural scene
CN113706481A (en) Sperm quality detection method, sperm quality detection device, computer equipment and storage medium
CN111967527A (en) Peony variety identification method and system based on artificial intelligence
CN112926616B (en) Image matching method and device, electronic equipment and computer readable storage medium
CN117372487A (en) Image registration method, device, computer equipment and storage medium
CN114627397A (en) Behavior recognition model construction method and behavior recognition method
CN111428553B (en) Face pigment spot recognition method and device, computer equipment and storage medium
CN114663760A (en) Model training method, target detection method, storage medium and computing device
CN114005052A (en) Target detection method and device for panoramic image, computer equipment and storage medium
CN110427961B (en) Building information extraction method and system based on rule and sample fusion
CN113657145A (en) Sweat pore feature and neural network-based fingerprint retrieval method
CN112070771A (en) Adaptive threshold segmentation method and device based on HS channel and storage medium

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: 21901905

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 26/09/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21901905

Country of ref document: EP

Kind code of ref document: A1