WO2023185594A1 - Data processing method and apparatus - Google Patents

Data processing method and apparatus Download PDF

Info

Publication number
WO2023185594A1
WO2023185594A1 PCT/CN2023/083136 CN2023083136W WO2023185594A1 WO 2023185594 A1 WO2023185594 A1 WO 2023185594A1 CN 2023083136 W CN2023083136 W CN 2023083136W WO 2023185594 A1 WO2023185594 A1 WO 2023185594A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
preset
target
area
image
Prior art date
Application number
PCT/CN2023/083136
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 WO2023185594A1 publication Critical patent/WO2023185594A1/en

Links

Classifications

    • 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/30Determination of transform parameters for the alignment of images, i.e. image registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10048Infrared image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Definitions

  • the present application relates to the technical field of infrared thermal imaging, and in particular to a data processing method and device.
  • the sun's infrared radiation energy is extremely strong. Sunlight still has extremely high energy after being reflected by objects with smooth surfaces and high reflectivity.
  • the pseudo-high temperature area can also be called a reflective point, and the imaging grayscale value of the reflective point is much higher than The reflective point represents the imaging grayscale value corresponding to the actual temperature of the object, which seriously affects the accuracy of temperature measurement and high temperature alarm.
  • the purpose of the embodiments of the present application is to provide a data processing method and device to improve the accuracy of temperature measurement and high temperature alarm.
  • the specific technical solutions are as follows:
  • embodiments of the present application provide a data processing method, which method includes:
  • the attribute information of each pixel in the visible light image includes exposure information
  • the step of determining the overexposed area in the imaging area includes:
  • At least one target pixel whose exposure information matches the preset overexposure information is determined; a set of the at least one target pixel constitutes an overexposure area.
  • the exposure information includes light intensity
  • the preset overexposure information includes a preset light intensity threshold
  • the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
  • At least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
  • the exposure information includes a value of a target color channel that causes the pixel to appear white
  • the preset overexposure information includes a preset white condition
  • the preset white condition indicates that the color of the pixel is white
  • the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
  • At least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
  • the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white
  • the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates that the pixel
  • the color is white
  • the visible light image includes a visible light Bayer image and an RGB image
  • the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
  • At least one first pixel whose light intensity is greater than a preset light intensity threshold is determined;
  • At least one target pixel is determined based on the at least one first pixel and the at least one second pixel.
  • the step of determining at least one target pixel based on the at least one first pixel and the at least one second pixel includes:
  • a pixel that coincides with the at least one first pixel and the at least one second pixel is determined as a target pixel.
  • each pixel in the RGB image has grayscale values of three color channels
  • the preset white condition is that the grayscale values of the three color channels of the pixel exceed a preset grayscale threshold.
  • the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
  • the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values.
  • the imaging Pixels outside the area are the second pixel value;
  • the pixel with the first pixel value in the binary image is the target pixel.
  • the step of performing pixel segmentation on the visible light image based on a segmentation mask to obtain a binary image includes:
  • the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
  • the step of determining the imaging area of the high-temperature target in the visible light image in the thermal imaging image includes:
  • the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
  • the step of performing processing operations corresponding to reflective points on the high-temperature target includes:
  • Output prompt information indicating that the high-temperature target is a reflective point
  • the method also includes:
  • the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, a processing operation corresponding to the high-temperature object is performed on the high-temperature target.
  • embodiments of the present application provide a data processing device, which includes:
  • a detection unit is used to detect thermal imaging images and obtain high-temperature targets
  • a first determination unit configured to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image area
  • a second determination unit configured to determine the overexposure area in the imaging area
  • a first processing unit configured to perform processing operations corresponding to reflective points on the high-temperature target if the ratio of the overexposed area to the imaging area is greater than a preset ratio threshold.
  • the attribute information of each pixel in the visible light image includes exposure information
  • the second determination unit is specifically used for:
  • At least one target pixel whose exposure information matches the preset overexposure information is determined; a set of the at least one target pixel constitutes an overexposure area.
  • the exposure information includes light intensity
  • the preset overexposure information includes a preset light intensity threshold
  • the second determination unit is specifically used for:
  • At least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
  • the exposure information includes a value of a target color channel that causes the pixel to appear white
  • the preset overexposure information includes a preset white condition
  • the preset white condition indicates that the color of the pixel is white
  • the second determination unit is specifically used for:
  • At least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
  • the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white
  • the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates that the pixel
  • the color is white
  • the visible light image includes a visible light Bayer image and an RGB image
  • the second determination unit is specifically used for:
  • At least one first pixel whose light intensity is greater than a preset light intensity threshold is determined;
  • At least one target pixel is determined based on the at least one first pixel and the at least one second pixel.
  • the second determination unit is specifically used for:
  • a pixel that coincides with the at least one first pixel and the at least one second pixel is determined as a target pixel.
  • each pixel in the RGB image has grayscale values of three color channels
  • the preset white condition is that the grayscale values of the three color channels of the pixel exceed a preset grayscale threshold.
  • the second determination unit is specifically used for:
  • the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values.
  • the imaging Pixels outside the area are the second pixel value;
  • the pixel with the first pixel value in the binary image is the target pixel.
  • the second determination unit is specifically used for:
  • the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
  • the first determining unit is specifically used for:
  • the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
  • the first processing unit is specifically used for:
  • prompt information is output, and the prompt information indicates that the high-temperature target is a reflective point;
  • the high temperature target is deleted from the high temperature alarm list, which includes targets to be subjected to high temperature alarm; or
  • a preset mark is added to the high temperature target in the high temperature alarm list, and the preset mark indicates that the high temperature target is a reflective point.
  • the high temperature alarm for the high temperature target is stopped.
  • the device also includes:
  • the second processing unit is configured to perform processing operations corresponding to high-temperature objects on the high-temperature target if the ratio of the over-exposed area to the imaging area is less than or equal to the preset ratio threshold.
  • a bispectral thermal imaging device which includes a memory, a processor, a drive circuit, a thermal imaging image sensor, and a visible light image sensor;
  • the thermal imaging image sensor is used to collect thermal imaging images
  • the visible light image sensor is used to collect visible light images
  • the memory is used to store machine-executable instructions that can be executed by the processor
  • the processor is configured to be driven by the driving circuit, execute the machine executable instructions, and implement any of the data processing method steps.
  • embodiments of the present application provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, any one of the steps of the data processing method is implemented. .
  • Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the above-mentioned data processing methods.
  • the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target.
  • the processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
  • Figure 1 is a schematic flow chart of a first data processing method provided by an embodiment of the present application.
  • Figure 2 is a schematic flow chart of the second data processing method provided by the embodiment of the present application.
  • Figure 3 is a third flow diagram of the data processing method provided by the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of the fourth data processing method provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of the fifth data processing method provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of the sixth data processing method provided by the embodiment of the present application.
  • Figure 7 is a schematic flowchart of the seventh data processing method provided by the embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a bispectral thermal imaging device used to implement the data processing method provided by the embodiment of the present application.
  • Pixel It is composed of small squares in the image. These small squares have a clear position and assigned color value. The color and position of the small squares determine the appearance of the image.
  • the area occupied by the pixel The small square that represents the pixel at the position of the pixel in the image is the area occupied by the pixel.
  • Imaging area The projection area of the target in the image.
  • the projection area includes one or more pixels. That is, the imaging area can be understood as a set of areas occupied by one or more pixels. Simply put, it is the area occupied by one or more pixels. gather.
  • Overexposed area a collection of one or more pixels that are overexposed.
  • Dual-spectrum thermal imaging equipment including thermal imaging lenses and visible light lenses, which can obtain dual-channel image information at the same time, that is, thermal imaging images and visible light images can be obtained at the same time.
  • Registration can also be called dual-light registration: the process of pixel-level matching of visible light images and thermal imaging images of dual-spectrum thermal imaging equipment through calibration of thermal imaging lenses and visible light lenses and digital image processing.
  • Visible light Bayer image The original image output by the visible light image sensor, which has not been processed by ISP (Image Signal Processing).
  • ISP Image Signal Processing
  • RGB image The image obtained by ISP processing the original image output by the visible light image sensor.
  • Exposure area ratio the ratio of the area of the overexposed area in the visible light imaging area to the area of the visible light imaging area.
  • IR (Infrared Radiation, infrared) naked data can also be called thermal imaging image data: the original image data output by a thermal imaging image sensor based on infrared detection technology.
  • the sun's infrared radiation energy is extremely strong. Sunlight still has extremely high energy after being reflected by objects with smooth surfaces and high reflectivity.
  • the pseudo-high temperature area can also be called a reflective point, and the imaging grayscale value of the reflective point is much higher than The reflective point represents the imaging grayscale value corresponding to the actual temperature of the object, which seriously affects the accuracy of temperature measurement and high temperature alarm.
  • embodiments of the present application provide a data processing method, which can be applied to bispectral thermal imaging equipment or electronic equipment connected to bispectral thermal imaging equipment, without limitation.
  • the following description takes bispectral thermal imaging equipment as the execution subject, and does not serve a limiting purpose.
  • the data processing method includes the following steps:
  • Step S11 Detect the thermal imaging image to obtain the high-temperature target.
  • Bispectral thermal imaging equipment monitors the monitoring area and can obtain thermal imaging images and visible light images.
  • the dual-spectrum thermal imaging equipment monitors the monitoring area and obtains the thermal imaging image and the visible light image simultaneously as an example for explanation, and does not serve a limiting purpose.
  • thermal imaging images and visible light images can be collected by different devices, as long as the coordinate systems between the two can be calibrated to each other.
  • the higher the grayscale value of a pixel the higher the temperature of the object corresponding to the pixel.
  • the bispectral thermal imaging equipment acquires the thermal imaging image, it detects the thermal imaging image and can obtain one or more pixels whose grayscale value is higher than the specified grayscale threshold in the thermal imaging image. The proportion occupied by this one or more pixels can be obtained.
  • the area is the high temperature target.
  • the specified gray-scale threshold can be set according to actual needs.
  • the gray-scale value range of a thermal imaging image is [0, 255]
  • the specified gray-scale threshold can be 200, 230, or 254, etc.
  • the grayscale value range of a thermal imaging image is [0, 16383]
  • the specified grayscale threshold can be 16000, 16300, or 16382, etc.
  • the above-mentioned detection methods of high-temperature targets may include, but are not limited to, threshold segmentation methods, Otsu segmentation methods, or deep neural network target detection methods.
  • Step S12 Determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image.
  • the bispectral thermal imaging device not only acquires the thermal imaging image, but also acquires the visible light image corresponding to the thermal imaging image. After detecting a high-temperature target in a thermal imaging image, the bispectral thermal imaging device can determine the imaging area of the high-temperature target in the visible light image.
  • the coordinate systems between the thermal imaging image and the visible light image can be calibrated to each other.
  • the bispectral thermal imaging device detects After selecting the high-temperature target, the high-temperature target in the thermal imaging image can be mapped to the visible light image according to the calibration relationship between the thermal imaging image and the visible light image, thereby obtaining the imaging area of the high-temperature target in the visible light image.
  • the above-mentioned calibration relationship may be the relationship between one pixel of the thermal imaging image and one pixel of the visible light image (i.e., one-to-one correspondence), or may be the relationship between one pixel of the thermal imaging image and multiple pixels of the visible light image.
  • the relationship between pixels ie, one-to-many relationship
  • the calibration relationship between the thermal imaging image and the visible light image can be recorded in the bispectral thermal imaging device as a bi-optical registration rule. Every time a high-temperature target is acquired, the dual-spectrum thermal imaging equipment can directly run the dual-light registration rule to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image to improve calculation efficiency.
  • the bispectral thermal imaging equipment determines the imaging area of the high-temperature target in the thermal imaging image in the visible light image based on the calibration relationship between the thermal imaging image and the visible light image.
  • the imaging area obtained through this calibration relationship is more Accurate, thus improving the accuracy of the data processing method.
  • Step S13 Determine the overexposure area in the imaging area.
  • the bispectral thermal imaging device determines the imaging area of the high-temperature target in the visible light image, it determines the overexposed area in the imaging area.
  • Step S14 if the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, a processing operation corresponding to the reflective point is performed on the high-temperature target.
  • the ratio of the overexposed area to the imaging area can be measured based on the number or area of pixels.
  • the dual-spectrum thermal imaging device can calculate the area of the imaging area in the visible light image, and calculate the imaging area The area of the overexposed area in the domain is calculated, and then the exposure area ratio is calculated, that is, the ratio of the area of the above overexposed area to the area of the above imaging area is calculated, and the exposure area ratio is used as the proportion of the overexposed area to the imaging area.
  • the bispectral thermal imaging device can also calculate the first number of pixels included in the imaging area of the visible light image, and calculate the second number of pixels included in the overexposed area of the imaging area, and then calculate the exposure number ratio, That is, the ratio of the above-mentioned first quantity and the second quantity is calculated, and the ratio of the exposure quantity is used as the ratio of the overexposed area to the imaging area.
  • Bispectral thermal imaging equipment can also use other methods to calculate the proportion of the overexposed area to the imaging area, which is not limited.
  • the bispectral thermal imaging device can set a proportional threshold in advance, that is, a preset proportional threshold.
  • the preset proportion threshold can be limited according to actual needs, and there is no specific limit on this.
  • the dual-spectrum thermal imaging device determines whether the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold. If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, it means that the overexposed area occupies a larger proportion of the imaging area.
  • the high-temperature target detected from the thermal imaging image is due to reflection. At this time, it can be determined
  • the high-temperature target is a reflective point, and processing operations corresponding to the reflective points are performed on the high-temperature target. If the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, it means that the high-temperature target detected in the thermal imaging image is caused by the temperature of the object corresponding to the high-temperature target. In other words, there is a high temperature in the monitoring area.
  • dual-spectrum thermal imaging equipment can perform processing operations corresponding to high-temperature objects on the high-temperature targets to eliminate risks caused by high temperatures in a timely manner.
  • the dual-spectrum thermal imaging device performs processing operations corresponding to reflective points on the high-temperature target, where the processing operations corresponding to the reflective points may include Any one or more of the following actions:
  • the bispectral thermal imaging device can output the above prompt information in the form of a pop-up window, or can send the above prompt information to the connected terminal or server to prompt
  • the user's high temperature target is a reflective point.
  • the high temperature alarm list includes at least one target to be subjected to high temperature alarm.
  • the bispectral thermal imaging device can add the detected high temperature target to the high temperature alarm list, and subsequently can add the high temperature target included in the high temperature alarm list. Enable high temperature alarm.
  • the dual-spectrum thermal imaging equipment determines that the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the dual-spectrum thermal imaging equipment can remove the high-temperature target from high temperature. Delete from the alarm list, that is, the dual-spectrum thermal imaging device refuses to execute high-temperature alarms for the high-temperature target.
  • the dual-spectrum thermal imaging device After the dual-spectrum thermal imaging device determines that the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, it can regard the high-temperature target as a reflective point and add a preset mark indicating that the high-temperature target is a reflective point. Subsequently, the dual-spectrum thermal imaging equipment will no longer perform high-temperature alarms for the high-temperature target based on the preset identification.
  • the default logo can be represented by letters or numbers.
  • bispectral thermal imaging equipment can use the letter “F” or “S” to represent the preset logo, and bispectral thermal imaging equipment can also use the letters “1" or "0” to represent the preset logo.
  • the dual-spectrum thermal imaging equipment can add the above steps S11 to step S14 on the basis of the original high temperature alarm, that is, after detecting the high temperature target and before executing the high temperature alarm for the high temperature target, the above steps can be added.
  • Step S11-Step S14 if the dual-spectrum thermal imaging equipment determines that the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the dual-spectrum thermal imaging equipment can stop executing the high-temperature alarm for high-temperature targets and end the high-temperature alarm. deal with.
  • the processing operation corresponding to the reflective point can also be implemented in other ways.
  • the processing operation corresponding to the reflective point can also be empty.
  • the bispectral thermal imaging device performs the processing operation corresponding to the reflective point on the high-temperature target.
  • the processing operation means no processing is done.
  • processing operations corresponding to the high-temperature object are performed on the high-temperature target.
  • processing operations corresponding to high-temperature objects on high-temperature targets may include but is not limited to any one or more of the following operations:
  • Output a high-temperature alarm for the high-temperature target such as outputting prompt information including the high-temperature target, controlling the flashing of the alarm light, or controlling a voice output device (such as a speaker) to output voice information indicating the presence of a high-temperature object, etc.;
  • the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target.
  • the processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
  • the attribute information of each pixel in the visible light image includes exposure information, which may include but is not limited to light intensity, values of each color channel, brightness, luminous flux, etc.
  • the embodiment of the present application also provides a data processing method, as shown in Figure 2.
  • the method may include steps S21 to S24. Steps S21, S22 and S24 are in conjunction with the above-mentioned steps S11, S12 and S24. Step S14 is the same and will not be described again here. Step S23 is an implementable manner of step S13.
  • Step S23 From the imaging area, determine at least one target pixel whose exposure information matches the preset overexposure information.
  • the set of at least one target pixel constitutes an overexposure area.
  • the exposure information of each pixel in the visible light image may be obtained by detecting each pixel with a bispectral thermal imaging device, or may be obtained from other equipment, which is not limited.
  • Bispectral thermal imaging equipment can preset the overexposure information of pixels, that is, preset overexposure information.
  • the preset overexposure information can indicate that the pixel is overexposed.
  • the preset overexposure information can be limited according to actual needs, and there is no specific limit on this.
  • the bispectral thermal imaging device For each pixel in the imaging area of the visible light image, the bispectral thermal imaging device compares the exposure information of the pixel with the preset overexposure information. If the exposure information of the pixel matches the preset overexposure information, the bispectral thermal imaging device The imaging device may determine that the pixel is an overexposed pixel and use the pixel as a target pixel. The number of target pixels in the imaging area is one or more.
  • the matching conditions between the exposure information of the above pixels and the preset overexposure information can be adjusted according to the difference between the overexposure information and the preset overexposure information.
  • the exposure information is light intensity
  • the preset overexposure information is the preset light intensity threshold.
  • the matching condition between the exposure information of the pixel and the preset overexposure information is: the light intensity of the pixel is greater than or equal to the preset light intensity threshold; for another example, if the exposure information is brightness and the preset overexposure information is the preset brightness threshold, then the pixel's
  • the matching conditions between exposure information and preset overexposure information are: The brightness of the pixel is greater than or equal to the preset brightness threshold.
  • the bispectral thermal imaging device can use the area formed by the set of these target pixels as the overexposed area.
  • the bispectral thermal imaging device can determine the target pixel in the imaging image whose exposure information matches the preset overexposure information, thereby obtaining the overexposure area.
  • the overexposed area can be determined from the perspective of pixels, which improves the accuracy of the overexposed area, thereby improving the accuracy of the data processing method.
  • the exposure information includes light intensity
  • the preset overexposure information includes a preset light intensity threshold.
  • the embodiment of the present application also provides a data processing method, as shown in Figure 3.
  • the method may include steps S31 to S34. Steps S31, S32 and S34 are combined with the above-mentioned steps S21, S22 and S34. Step S24 is the same and will not be described again here. Step S33 is an implementable manner of step S23.
  • Step S33 Determine at least one target pixel whose light intensity is greater than a preset light intensity threshold from the imaging area, and a set of at least one target pixel constitutes an overexposure area.
  • the light intensity of each pixel in the visible light image may be obtained by detecting each pixel with a bispectral thermal imaging device, or may be obtained from other equipment, which is not limited.
  • Bispectral thermal imaging equipment can pre-set a light intensity threshold, that is, a preset light intensity threshold.
  • the preset light intensity threshold can indicate that the pixel is in a light intensity saturation state.
  • the preset light intensity threshold can be limited according to actual needs, and there is no specific limit on this.
  • the bispectral thermal imaging device For each pixel in the imaging area of the visible light image, the bispectral thermal imaging device compares the light intensity of the pixel with the preset light intensity threshold. If the light intensity of the pixel is greater than the preset light intensity threshold, that is, the pixel's light intensity is If the light intensity matches the preset light intensity threshold, it means that the pixel is in a light intensity saturation state.
  • the dual-spectrum thermal imaging device can determine that the pixel is an overexposed pixel and that the pixel is a target pixel.
  • the dual-spectrum thermal imaging device can determine at least one target pixel whose light intensity is greater than the preset light intensity threshold from the imaging area, thereby obtaining the overexposed area.
  • the dual-spectrum thermal imaging equipment can determine the overexposed area from the perspective of light intensity, which increases the applicability of the data processing method.
  • the exposure information includes a value of a target color channel that causes the pixel to appear white
  • the preset overexposure information includes a preset white condition
  • the preset white condition indicates that the color of the pixel is white.
  • White is a form of overexposure of pixels, and visible light images in different color spaces have different target color channels that make pixels appear white.
  • the values of the R color channel, the G color channel and the B color channel of a pixel in an RGB image work together to make the pixel appear white
  • the target color channel in the RGB image can include the R color channel, G color channel and one or more color channels in the B color channel
  • the value of the S color channel of the pixel in the HSV image and the value of the V color channel work together to make the pixel appear white
  • the target color channel in the HSV image can include the S color channel and one or more color channels in the V color channel
  • the value of the L color channel of the pixel in the HLV image acts to make the pixel appear white
  • the target color channel of the HLV image can include the L color channel, etc.
  • the embodiment of the present application also provides a data processing method, as shown in Figure 4.
  • the method may include steps S41 to S44. Steps S41, S42 and S44 are combined with the above-mentioned steps S21, S22 and S22. Step S24 is the same and will not be described again here. Step S43 is an implementable manner of step S23.
  • Step S43 From the imaging area, determine at least one target pixel whose value of the target color channel satisfies the preset white condition.
  • the set of at least one target pixel constitutes an overexposure area.
  • the bispectral thermal imaging device can preset the white condition, that is, the preset white condition.
  • the white condition indicates that the color of the pixel is white.
  • the preset white condition can be limited according to actual needs and is not specifically limited.
  • the bispectral thermal imaging device can match the value of the target color channel of the pixel with the preset white condition. If the value of the target color channel meets the preset white condition, it means The color of this pixel is white, and this pixel is the target pixel.
  • the bispectral thermal imaging device can determine at least one target pixel whose value of the target color channel satisfies the preset white condition from the imaging area, thereby obtaining the overexposed area. In this way, the bispectral thermal imaging device can determine the overexposed area from the perspective of color, which increases the applicability of the data processing method provided by the embodiments of the present application.
  • the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white
  • the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates the pixel's
  • the color is white; visible light images include visible light Bayer images and RGB images.
  • the embodiment of the present application also provides a data processing method, as shown in Figure 5.
  • the method may include steps S51 to S56. Steps S51, S52 and S56 are combined with the above-mentioned steps S21, S22 and S22. Step S24 is the same and will not be described again here. Step S53-Step S55 is an implementable manner of step S23.
  • Step S53 In the imaging area of the high-temperature target in the visible light Bayer image, determine at least one first pixel whose light intensity is greater than the preset light intensity threshold.
  • the visible light image includes a visible light Bayer image
  • the imaging area in the visible light image includes the imaging area of the high-temperature target in the visible light Bayer image.
  • Step S53 is similar to step S33 and will not be described again.
  • the visible light Bayer image contains rich light intensity information. Using the visible light Bayer image can effectively improve the accuracy of determining the first pixel, thereby improving the accuracy of determining the target pixel.
  • Step S54 In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition.
  • the visible light image includes an RGB image
  • the imaging area in the visible light image includes the imaging area of the high-temperature target in the RGB image.
  • Step S54 is similar to step S43 and will not be described again here.
  • RGB images The color information in RGB images is more accurate. Using RGB images can effectively improve the accuracy of determining the second pixel, thereby improving the accuracy of determining the target pixel.
  • Each pixel in the RGB image has a grayscale value of three color channels.
  • the preset white condition is the grayscale value of the three color channels of the pixel.
  • the values exceed the preset grayscale threshold. That is, the bispectral thermal imaging device determines at least one second pixel whose grayscale values of the three color channels exceed the preset grayscale threshold in the imaging area corresponding to the high-temperature target in the RGB image.
  • the preset grayscale threshold can be set according to actual needs.
  • the grayscale value range of a thermal imaging image is [0, 255]
  • the preset grayscale threshold can be 200, 230, or 254, etc.
  • the grayscale value range of a thermal imaging image is [0, 16383]
  • the preset grayscale threshold can be 16000, 16300, or 16382, etc.
  • step S53 and step S54 is not limited.
  • Step S55 Determine at least one target pixel based on at least one first pixel and at least one second pixel, and a set of at least one target pixel constitutes an overexposure area.
  • the bispectral thermal imaging device obtains the first pixel and RGB in the visible Bayer image. After the second pixel in the image, the first pixel and the second pixel are considered together to determine the target pixel in the imaging area.
  • the above step S55 may be: the bispectral thermal imaging device determines a pixel that coincides with at least one first pixel and at least one second pixel as the target pixel, that is, determines from the imaging area that it is both the first pixel and the second pixel.
  • the pixel of the pixel serves as the target pixel, that is, the light intensity of the target pixel is greater than the preset light intensity threshold, and the value of the target color channel of the target pixel satisfies the preset white condition. This effectively improves the accuracy of high temperature alarms.
  • the above step S55 may be: the bispectral thermal imaging device determines a set of at least one first pixel and at least one second pixel as the target pixel, that is, both the first pixel and the second pixel are used as the target pixel. This effectively improves the safety of high temperature alarms.
  • the dual-spectrum thermal imaging equipment when determining the over-exposed area, comprehensively considers the light intensity of the pixel and the prior knowledge of the target color channel, thereby improving the accuracy of the over-exposed area and thereby improving the accuracy of the over-exposed area. Accuracy of high temperature alarm.
  • the embodiment of the present application also provides a data processing method, as shown in Figure 6.
  • the method may include steps S61-step S64, steps S61, step S62 and step S64 together with the above-mentioned step S21. , step S22 and step S24 are the same and will not be described again here.
  • Step S63 is an implementable manner of step S23.
  • Step S63 perform pixel segmentation on the visible light image based on the segmentation mask to obtain a binary image.
  • the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values, and the pixels outside the imaging area are The second pixel value, the pixel with the first pixel value in the binary image is the target pixel, and a set of at least one target pixel constitutes an overexposed area.
  • the segmentation mask includes a first pixel value and a second pixel value
  • the first pixel value and the second pixel value can be set according to actual needs.
  • the first pixel value is 0 and the second pixel value is 1, or the first pixel value is 1 and the second pixel value is 0, etc.
  • the bispectral thermal imaging device sets the pixel value of the pixel whose exposure information in the imaging area in the visible light image matches the preset overexposure information as the first pixel value; sets the pixel value of the other pixels as the second pixel value. Pixel values.
  • the bispectral thermal imaging equipment can obtain a binary image.
  • the bispectral thermal imaging device can determine whether the exposure information of the pixel matches the preset overexposure information, and determine whether the pixel is included in the imaging area; if If both are yes, then the pixel value of the pixel is set to the first pixel value; otherwise, the pixel value of the pixel is set to the second pixel value.
  • the bispectral thermal imaging device can directly set the pixel value of the pixels in other areas outside the imaging area to the second pixel value for each pixel in the imaging area.
  • the bispectral thermal imaging device can determine whether the exposure information of the pixel matches the preset overexposure information; if so, the pixel value of the pixel is set to the first pixel value; otherwise, the pixel value of the pixel is set to the second pixel value. Pixel values.
  • the dual-spectrum thermal imaging device only needs to determine whether the exposure information of the pixels in the imaging area matches the preset overexposure information, and does not need to judge the pixels in other areas, which greatly improves the accuracy of determining overexposure.
  • the efficiency of the area improves the calculation efficiency of the ratio of the overexposed area to the imaging area; in addition, using this binary image for reflective point identification can effectively reduce the impact of background factors on reflective point identification and improve the accuracy of reflective point identification. , thereby improving the accuracy of high temperature alarms.
  • the bispectral thermal imaging equipment obtains a binary image based on the segmentation mask, uses the binary image to determine the overexposed area, and uses the binary image to identify reflective points, which can effectively reduce the impact of background factors on The influence of reflective point recognition improves the accuracy of reflective point recognition, thereby improving the accuracy of high temperature alarms.
  • the dual-spectrum thermal imaging equipment collects IR bare data and visible light Bayer images.
  • the optical Bayer image is processed by ISP to obtain an RGB image.
  • Step S71 detect high-temperature targets.
  • Bispectral thermal imaging equipment detects high-temperature targets based on IR bare data.
  • step S71 please refer to the relevant description of step S11 above.
  • Step S72 Calculate the coordinates of the visible light exposure search area.
  • the visible light exposure retrieval area is the imaging area of the high-temperature target in the visible light image.
  • the bispectral thermal imaging equipment obtains the imaging position (i.e., imaging area) of the high-temperature target in the visible light image based on the high-temperature target in the thermal imaging image and the visible light image (including the visible light Bayer image and the RGB image).
  • the imaging position i.e., imaging area
  • the visible light image including the visible light Bayer image and the RGB image.
  • the imaging area determined here is the subsequent search range.
  • Step S73 Search the light intensity saturation area.
  • the bispectral thermal imaging device searches the visible light exposure search area in the visible light Bayer image, and obtains at least one first pixel with a light intensity greater than a preset light intensity threshold.
  • the bispectral thermal imaging device uses the area composed of a set of at least one first pixel as the light intensity. saturated area.
  • Step S74 retrieve white areas.
  • the white area is the area where the grayscale values of the three color channels (i.e., R color channel, G color channel, and B color channel) in the RGB image have all reached saturation, that is, the grayscale values of the three color channels exceed the preset grayscale.
  • the bispectral thermal imaging device searches the visible light exposure retrieval area in the RGB image, and obtains at least one second pixel whose grayscale value of the three color channels exceeds the preset grayscale threshold. as a white area.
  • step S74 please refer to the above-mentioned FIG. 4 and the related description of step S54.
  • Step S75 Combine the white area and the light intensity saturated area.
  • the dual-spectrum thermal imaging device combines the white area and the light intensity saturated area to obtain the overexposed area, that is, the overexposed area is determined based on the second pixel that constitutes the white area and the first pixel that constitutes the light intensity saturated area.
  • the overexposed area is determined based on the second pixel that constitutes the white area and the first pixel that constitutes the light intensity saturated area.
  • Step S76 Calculate the exposure area ratio.
  • the bispectral thermal imaging equipment obtains a binary image based on the segmentation mask, determines the area of the overexposed area based on the binary image, and retrieves the area of the area based on the visible light exposure (that is, the area of the imaging area of the high-temperature target in the visible light image) and the overexposed area.
  • the area of the region, the exposure area ratio is calculated.
  • Step S77 detect whether the exposure area ratio is greater than a preset ratio threshold. If yes, step S78 is executed to perform processing operations corresponding to the reflective points on the high-temperature target; if not, step S79 is executed to output a high-temperature alarm.
  • the bispectral thermal imaging device detects whether the calculated exposure area ratio is greater than the preset ratio threshold. If the exposure area ratio is greater than the preset ratio threshold, it can be determined that the high-temperature target is a reflective point, and the bispectral thermal imaging device executes step S78, that is, , the bispectral thermal imaging equipment performs processing operations corresponding to the reflective points of the high-temperature target; if the exposure area ratio is less than or equal to the preset ratio threshold, it means that the high-temperature target is detected from the thermal imaging image due to the object corresponding to the high-temperature target itself.
  • the dual-spectrum thermal imaging device executes step S79 and outputs a high temperature alarm.
  • steps S77 to S79 please refer to the relevant description of step S14 above.
  • Figure 7 when the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, Figure 7 only shows one processing operation corresponding to the high-temperature object, that is, outputting a high-temperature alarm, and corresponding to the high-temperature object.
  • the processing operation may also include other operations, such as the description in step S14, adding the high-temperature target to the high-temperature alarm list, transmitting the identification of the high-temperature target to the designated terminal, etc., which are not limited.
  • the device may include:
  • the detection unit 81 is used to detect thermal imaging images to obtain high-temperature targets
  • the first determination unit 82 is used to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image;
  • the second determination unit 83 is used to determine the overexposure area in the imaging area
  • the first processing unit 84 is configured to perform processing operations corresponding to reflective points on the high-temperature target if the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold.
  • the attribute information of each pixel in the visible light image includes exposure information
  • the second determination unit 83 can be specifically used for:
  • At least one target pixel whose exposure information matches the preset overexposure information is determined; a set of at least one target pixel constitutes an overexposure area.
  • the exposure information includes light intensity
  • the preset overexposure information includes a preset light intensity threshold
  • the second determination unit 83 can be specifically used for:
  • At least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
  • the exposure information includes the value of the target color channel that makes the pixel appear white
  • the preset overexposure information includes a preset white condition, and the preset white condition indicates that the color of the pixel is white
  • the second determination unit 83 can be specifically used for:
  • At least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
  • the exposure information includes light intensity and the value of the target color channel that makes the pixel appear white.
  • the preset overexposure information includes a preset light intensity threshold and a preset white condition.
  • the preset white condition indicates that the color of the pixel is white; visible light Images include visible light Bayer images and RGB images;
  • the second determination unit 83 can be specifically used for:
  • At least one target pixel is determined based on at least one first pixel and at least one second pixel.
  • the second determination unit 83 can be specifically used for:
  • a pixel in which at least one first pixel coincides with at least one second pixel is determined as a target pixel.
  • each pixel in the RGB image has grayscale values of three color channels
  • the preset white condition is that the grayscale values of the three color channels of the pixel exceed the preset grayscale threshold.
  • the second determination unit 83 can be specifically used for:
  • the visible light image is segmented into pixels to obtain a binary image.
  • the pixels in the imaging area in the binary image are The pixels whose exposure information matches the preset overexposure information are the first pixel values, and the pixels outside the imaging area are the second pixel values;
  • the pixel with the first pixel value in the binary image is the target pixel.
  • the second determination unit 83 can be specifically used for:
  • the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
  • the first determining unit 82 can be specifically used for:
  • the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
  • the first processing unit 84 can be specifically used for:
  • a prompt message is output, indicating that the high-temperature target is a reflective point
  • the high-temperature target is deleted from the high-temperature alarm list, which includes targets to be subjected to high-temperature alarm;
  • a preset mark is added to the high temperature target in the high temperature alarm list, and the preset mark indicates that the high temperature target is a reflective point;
  • the high-temperature alarm for high-temperature targets will be stopped.
  • the above data processing device may also include:
  • the second processing unit is configured to perform processing operations corresponding to the high-temperature object on the high-temperature target if the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold.
  • the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target.
  • the processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
  • embodiments of the present application also provide a dual-spectrum thermal imaging device, as shown in Figure 9, including a memory 91, a processor 92, a drive circuit 93, a thermal imaging image sensor 94, and a visible light image sensor 95 ;
  • Thermal imaging image sensor 94 is used to collect thermal imaging images
  • Visible light image sensor 95 used to collect visible light images
  • Memory 91 for storing machine-executable instructions that can be executed by the processor
  • the processor 92 is configured to be driven by the driving circuit 93 to execute machine executable instructions to implement the steps of any of the above data processing methods.
  • the bispectral thermal imaging device may also include an alarm, which is used to output a high temperature alarm.
  • an alarm which is used to output a high temperature alarm.
  • the processor 92 determines that the ratio of the overexposed area to the imaging area is less than or equal to a preset ratio threshold, the processor 92 generates a high temperature alarm and outputs it through an alarm.
  • the memory may include Random Access Memory (RAM) or non-volatile memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located far away from the aforementioned processor.
  • the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (ASIC) Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium stores a computer program.
  • the steps of any of the above data processing methods are implemented. .
  • a computer program product containing instructions is also provided, which when run on a computer causes the computer to perform the steps of any of the data processing methods in the above embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or Solid State Disk (SSD), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Radiation Pyrometers (AREA)
  • Studio Devices (AREA)

Abstract

A data processing method and apparatus. The method comprises: performing detection on a thermal imaging image to obtain a high-temperature target (S11); determining an imaging area of the high-temperature target of the thermal imaging image in a visible light image (S12); determining an overexposure area in the imaging area (S13); and if the proportion of the overexposure area in the imaging area is greater than a preset proportion threshold, executing on the high-temperature target a processing operation corresponding to a reflective point (S14).

Description

一种数据处理方法及装置A data processing method and device
本申请要求于2022年3月28日提交中国专利局、申请号为202210308508.2发明名称为“一种数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with the application number 202210308508.2 and the invention title "A data processing method and device" submitted to the China Patent Office on March 28, 2022, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及红外热成像技术领域,特别是涉及一种数据处理方法及装置。The present application relates to the technical field of infrared thermal imaging, and in particular to a data processing method and device.
背景技术Background technique
太阳的红外辐射能量极强,太阳光在经过表面光滑且反射率高的物体反射后,仍具有极高的能量。反射后的太阳光直射进热成像镜头后,会在热成像镜头成像出的热成像图像中造成一个伪高温区域,伪高温区域又可以称为反光点,反光点的成像灰阶值远高于该反光点所表示物体的实际温度对应的成像灰阶值,这严重影响了测温以及高温报警的准确性。The sun's infrared radiation energy is extremely strong. Sunlight still has extremely high energy after being reflected by objects with smooth surfaces and high reflectivity. When the reflected sunlight directly enters the thermal imaging lens, it will cause a pseudo-high temperature area in the thermal image imaged by the thermal imaging lens. The pseudo-high temperature area can also be called a reflective point, and the imaging grayscale value of the reflective point is much higher than The reflective point represents the imaging grayscale value corresponding to the actual temperature of the object, which seriously affects the accuracy of temperature measurement and high temperature alarm.
发明内容Contents of the invention
本申请实施例的目的在于提供一种数据处理方法及装置,以提高测温以及高温报警的准确性。具体技术方案如下:The purpose of the embodiments of the present application is to provide a data processing method and device to improve the accuracy of temperature measurement and high temperature alarm. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种数据处理方法,所述方法包括:In a first aspect, embodiments of the present application provide a data processing method, which method includes:
对热成像图像进行检测,得到高温目标;Detect thermal imaging images to obtain high-temperature targets;
确定所述热成像图像中的所述高温目标在可见光图像中的成像区域;Determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image;
确定所述成像区域中的过曝区域;Determine the overexposed area in the imaging area;
若所述过曝区域占所述成像区域的比例大于预设比例阈值,则对所述高温目标执行反光点对应的处理操作。If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, processing operations corresponding to reflective points are performed on the high-temperature target.
可选的,所述可见光图像中每个像素的属性信息包括曝光信息;Optionally, the attribute information of each pixel in the visible light image includes exposure information;
所述确定所述成像区域中的过曝区域的步骤,包括:The step of determining the overexposed area in the imaging area includes:
从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素;所述至少一个目标像素的集合构成过曝区域。From the imaging area, at least one target pixel whose exposure information matches the preset overexposure information is determined; a set of the at least one target pixel constitutes an overexposure area.
可选的,所述曝光信息包括光强,所述预设过曝信息包括预设光强阈值;Optionally, the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold;
所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
从所述成像区域中,确定光强大于预设光强阈值的至少一个目标像素。From the imaging area, at least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
可选的,所述曝光信息包括使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设白色条件,所述预设白色条件指示像素的颜色为白色;Optionally, the exposure information includes a value of a target color channel that causes the pixel to appear white, the preset overexposure information includes a preset white condition, and the preset white condition indicates that the color of the pixel is white;
所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
从所述成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个目标像素。From the imaging area, at least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
可选的,所述曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设光强阈值和预设白色条件,所述预设白色条件指示像素的颜色为白色;所述可见光图像包括可见光Bayer图像和RGB图像;Optionally, the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white, and the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates that the pixel The color is white; the visible light image includes a visible light Bayer image and an RGB image;
所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步 骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area. steps, including:
在所述可见光Bayer图像中所述高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素;In the imaging area of the high-temperature target in the visible light Bayer image, at least one first pixel whose light intensity is greater than a preset light intensity threshold is determined;
在所述RGB图像中与所述高温目标对应的成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个第二像素;In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition;
根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素。At least one target pixel is determined based on the at least one first pixel and the at least one second pixel.
可选的,所述根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素的步骤,包括:Optionally, the step of determining at least one target pixel based on the at least one first pixel and the at least one second pixel includes:
确定所述至少一个第一像素与所述至少一个第二像素重合的像素,作为目标像素。A pixel that coincides with the at least one first pixel and the at least one second pixel is determined as a target pixel.
可选的,所述RGB图像中每个像素具有三个颜色通道的灰阶值,所述预设白色条件为像素的三个颜色通道的灰阶值超过预设灰阶阈值。Optionally, each pixel in the RGB image has grayscale values of three color channels, and the preset white condition is that the grayscale values of the three color channels of the pixel exceed a preset grayscale threshold.
可选的,所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:Optionally, the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
基于分割掩膜对所述可见光图像进行像素分割,得到二值图像,所述二值图像中所述成像区域内的曝光信息与预设过曝信息匹配的像素为第一像素值,所述成像区域外的像素为第二像素值;Perform pixel segmentation on the visible light image based on the segmentation mask to obtain a binary image. In the binary image, the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values. The imaging Pixels outside the area are the second pixel value;
所述二值图像中第一像素值的像素为目标像素。The pixel with the first pixel value in the binary image is the target pixel.
可选的,所述基于分割掩膜对所述可见光图像进行像素分割,得到二值图像的步骤,包括:Optionally, the step of performing pixel segmentation on the visible light image based on a segmentation mask to obtain a binary image includes:
将所述可见光图像中所述成像区域外的其他区域中像素的值设置为第二像素值;Set the values of pixels in other areas outside the imaging area in the visible light image as second pixel values;
针对所述成像区域内的每个像素,若该像素的曝光信息与预设过曝信息匹配,则将该像素的值设置为第一像素值,否则,将该像素的值设置为第二像素值。For each pixel in the imaging area, if the exposure information of the pixel matches the preset overexposure information, the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
可选的,所述确定所述热成像图像中的所述高温目标在可见光图像中的成像区域的步骤,包括:Optionally, the step of determining the imaging area of the high-temperature target in the visible light image in the thermal imaging image includes:
根据所述热成像图像和可见光图像之间的标定关系,确定所述热成像图像中的所述高温目标在可见光图像中的成像区域。According to the calibration relationship between the thermal imaging image and the visible light image, the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
可选的,所述对所述高温目标执行反光点对应的处理操作的步骤,包括:Optionally, the step of performing processing operations corresponding to reflective points on the high-temperature target includes:
输出提示信息,所述提示信息指示所述高温目标为反光点;或Output prompt information indicating that the high-temperature target is a reflective point; or
将所述高温目标从高温报警列表中删除,所述高温报警列表包括待进行高温报警的目标;或Delete the high-temperature target from the high-temperature alarm list, which includes targets to be subjected to high-temperature alarm; or
为所述高温报警列表中的所述高温目标添加预设标识,所述预设标识指示所述高温目标为反光点;或Add a preset mark to the high temperature target in the high temperature alarm list, the preset mark indicating that the high temperature target is a reflective point; or
停止执行针对所述高温目标的高温报警。Stop executing the high temperature alarm for the high temperature target.
可选的,所述方法还包括:Optionally, the method also includes:
若所述过曝区域占所述成像区域的比例小于等于所述预设比例阈值,则对所述高温目标执行高温对象对应的处理操作。If the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, a processing operation corresponding to the high-temperature object is performed on the high-temperature target.
第二方面,本申请实施例提供了一种数据处理装置,所述装置包括:In a second aspect, embodiments of the present application provide a data processing device, which includes:
检测单元,用于对热成像图像进行检测,得到高温目标;A detection unit is used to detect thermal imaging images and obtain high-temperature targets;
第一确定单元,用于确定所述热成像图像中的所述高温目标在可见光图像中的成像区 域;A first determination unit configured to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image area;
第二确定单元,用于确定所述成像区域中的过曝区域;a second determination unit configured to determine the overexposure area in the imaging area;
第一处理单元,用于若所述过曝区域占所述成像区域的比例大于预设比例阈值,则对所述高温目标执行反光点对应的处理操作。A first processing unit configured to perform processing operations corresponding to reflective points on the high-temperature target if the ratio of the overexposed area to the imaging area is greater than a preset ratio threshold.
可选的,所述可见光图像中每个像素的属性信息包括曝光信息;Optionally, the attribute information of each pixel in the visible light image includes exposure information;
所述第二确定单元,具体用于:The second determination unit is specifically used for:
从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素;所述至少一个目标像素的集合构成过曝区域。From the imaging area, at least one target pixel whose exposure information matches the preset overexposure information is determined; a set of the at least one target pixel constitutes an overexposure area.
可选的,所述曝光信息包括光强,所述预设过曝信息包括预设光强阈值;Optionally, the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold;
所述第二确定单元,具体用于:The second determination unit is specifically used for:
从所述成像区域中,确定光强大于预设光强阈值的至少一个目标像素。From the imaging area, at least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
可选的,所述曝光信息包括使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设白色条件,所述预设白色条件指示像素的颜色为白色;Optionally, the exposure information includes a value of a target color channel that causes the pixel to appear white, the preset overexposure information includes a preset white condition, and the preset white condition indicates that the color of the pixel is white;
所述第二确定单元,具体用于:The second determination unit is specifically used for:
从所述成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个目标像素。From the imaging area, at least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
可选的,所述曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设光强阈值和预设白色条件,所述预设白色条件指示像素的颜色为白色;所述可见光图像包括可见光Bayer图像和RGB图像;Optionally, the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white, and the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates that the pixel The color is white; the visible light image includes a visible light Bayer image and an RGB image;
所述第二确定单元,具体用于:The second determination unit is specifically used for:
在所述可见光Bayer图像中所述高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素;In the imaging area of the high-temperature target in the visible light Bayer image, at least one first pixel whose light intensity is greater than a preset light intensity threshold is determined;
在所述RGB图像中与所述高温目标对应的成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个第二像素;In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition;
根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素。At least one target pixel is determined based on the at least one first pixel and the at least one second pixel.
可选的,所述第二确定单元,具体用于:Optionally, the second determination unit is specifically used for:
确定所述至少一个第一像素与所述至少一个第二像素重合的像素,作为目标像素。A pixel that coincides with the at least one first pixel and the at least one second pixel is determined as a target pixel.
可选的,所述RGB图像中每个像素具有三个颜色通道的灰阶值,所述预设白色条件为像素的三个颜色通道的灰阶值超过预设灰阶阈值。Optionally, each pixel in the RGB image has grayscale values of three color channels, and the preset white condition is that the grayscale values of the three color channels of the pixel exceed a preset grayscale threshold.
可选的,所述第二确定单元,具体用于:Optionally, the second determination unit is specifically used for:
基于分割掩膜对所述可见光图像进行像素分割,得到二值图像,所述二值图像中所述成像区域内的曝光信息与预设过曝信息匹配的像素为第一像素值,所述成像区域外的像素为第二像素值;Perform pixel segmentation on the visible light image based on the segmentation mask to obtain a binary image. In the binary image, the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values. The imaging Pixels outside the area are the second pixel value;
所述二值图像中第一像素值的像素为目标像素。The pixel with the first pixel value in the binary image is the target pixel.
可选的,所述第二确定单元,具体用于:Optionally, the second determination unit is specifically used for:
将所述可见光图像中所述成像区域外的其他区域中像素的值设置为第二像素值;Set the values of pixels in other areas outside the imaging area in the visible light image as second pixel values;
针对所述成像区域内的每个像素,若该像素的曝光信息与预设过曝信息匹配,则将该像素的值设置为第一像素值,否则,将该像素的值设置为第二像素值。For each pixel in the imaging area, if the exposure information of the pixel matches the preset overexposure information, the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
可选的,所述第一确定单元,具体用于: Optionally, the first determining unit is specifically used for:
根据所述热成像图像和可见光图像之间的标定关系,确定所述热成像图像中的所述高温目标在可见光图像中的成像区域。According to the calibration relationship between the thermal imaging image and the visible light image, the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
可选的,所述第一处理单元,具体用于:Optionally, the first processing unit is specifically used for:
若所述过曝区域占所述成像区域的比例大于预设比例阈值,则输出提示信息,所述提示信息指示所述高温目标为反光点;或If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, prompt information is output, and the prompt information indicates that the high-temperature target is a reflective point; or
若所述过曝区域占所述成像区域的比例大于预设比例阈值,则将所述高温目标从高温报警列表中删除,所述高温报警列表包括待进行高温报警的目标;或If the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the high temperature target is deleted from the high temperature alarm list, which includes targets to be subjected to high temperature alarm; or
若所述过曝区域占所述成像区域的比例大于预设比例阈值,则为所述高温报警列表中的所述高温目标添加预设标识,所述预设标识指示所述高温目标为反光点;或If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, a preset mark is added to the high temperature target in the high temperature alarm list, and the preset mark indicates that the high temperature target is a reflective point. ;or
若所述过曝区域占所述成像区域的比例大于预设比例阈值,则停止执行针对所述高温目标的高温报警。If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, the high temperature alarm for the high temperature target is stopped.
可选的,所述装置还包括:Optionally, the device also includes:
第二处理单元,用于若所述过曝区域占所述成像区域的比例小于等于所述预设比例阈值,则对所述高温目标执行高温对象对应的处理操作。The second processing unit is configured to perform processing operations corresponding to high-temperature objects on the high-temperature target if the ratio of the over-exposed area to the imaging area is less than or equal to the preset ratio threshold.
第三方面,本申请实施例提供了一种双光谱热成像设备,所述双光谱热成像设备包括存储器、处理器、驱动电路、热成像图像传感器和可见光图像传感器;In a third aspect, embodiments of the present application provide a bispectral thermal imaging device, which includes a memory, a processor, a drive circuit, a thermal imaging image sensor, and a visible light image sensor;
所述热成像图像传感器,用于采集热成像图像;The thermal imaging image sensor is used to collect thermal imaging images;
所述可见光图像传感器,用于采集可见光图像;The visible light image sensor is used to collect visible light images;
所述存储器,用于存储能够被所述处理器执行的机器可执行指令;The memory is used to store machine-executable instructions that can be executed by the processor;
所述处理器,用于被所述驱动电路驱动,执行所述机器可执行指令,实现任一所述的数据处理方法步骤。The processor is configured to be driven by the driving circuit, execute the machine executable instructions, and implement any of the data processing method steps.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现任一所述的数据处理方法步骤。In the fourth aspect, embodiments of the present application provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any one of the steps of the data processing method is implemented. .
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一所述的数据处理方法。Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the above-mentioned data processing methods.
本申请实施例有益效果:Beneficial effects of the embodiments of this application:
本申请实施例提供的技术方案中,对热成像图像进行检测,得到高温目标,并确定热成像图像中的高温目标在可见光图像中的成像区域,进而确定成像区域中的过曝区域,若过曝区域占成像区域的比例大于预设比例阈值,则说明从热成像图像中检测到高温目标是由于反光造成的,此时可确定该高温目标为反光点,对该高温目标执行反光点对应的处理操作,有效降低了将反光点误认为热源点而造成的测温误差以及高温误报警的概率,进而提高测温以及高温报警的准确性。In the technical solution provided by the embodiment of the present application, the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target. The processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present application does not necessarily require achieving all the above-mentioned advantages simultaneously.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other embodiments can be obtained based on these drawings.
图1为本申请实施例提供的数据处理方法的第一种流程示意图;Figure 1 is a schematic flow chart of a first data processing method provided by an embodiment of the present application;
图2为本申请实施例提供的数据处理方法的第二种流程示意图; Figure 2 is a schematic flow chart of the second data processing method provided by the embodiment of the present application;
图3为本申请实施例提供的数据处理方法的第三种流程示意图;Figure 3 is a third flow diagram of the data processing method provided by the embodiment of the present application;
图4为本申请实施例提供的数据处理方法的第四种流程示意图;Figure 4 is a schematic flowchart of the fourth data processing method provided by the embodiment of the present application;
图5为本申请实施例提供的数据处理方法的第五种流程示意图;Figure 5 is a schematic flowchart of the fifth data processing method provided by the embodiment of the present application;
图6为本申请实施例提供的数据处理方法的第六种流程示意图;Figure 6 is a schematic flowchart of the sixth data processing method provided by the embodiment of the present application;
图7为本申请实施例提供的数据处理方法的第七种流程示意图;Figure 7 is a schematic flowchart of the seventh data processing method provided by the embodiment of the present application;
图8为本申请实施例提供的数据处理装置的一种结构示意图;Figure 8 is a schematic structural diagram of a data processing device provided by an embodiment of the present application;
图9为用来实现本申请实施例提供的数据处理方法的双光谱热成像设备的一种结构示意图。FIG. 9 is a schematic structural diagram of a bispectral thermal imaging device used to implement the data processing method provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员基于本申请所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art based on this application fall within the scope of protection of this application.
为便于理解,下面对本申请实施例中出现的词语进行解释说明。To facilitate understanding, the words appearing in the embodiments of this application are explained below.
像素:由图像的小方格组成的,这些小方格都有一个明确的位置和被分配的色彩数值,小方格颜色和位置就决定该图像所呈现出来的样子。Pixel: It is composed of small squares in the image. These small squares have a clear position and assigned color value. The color and position of the small squares determine the appearance of the image.
像素所占区域:图像中在像素的位置处表征该像素的小方格即为像素所占区域。The area occupied by the pixel: The small square that represents the pixel at the position of the pixel in the image is the area occupied by the pixel.
成像区域:目标在图像中的投影区域,该投影区域中包括一个或多个像素,即成像区域可以理解为一个或多个像素所占的区域的集合,简单来说就是一个或多个像素的集合。Imaging area: The projection area of the target in the image. The projection area includes one or more pixels. That is, the imaging area can be understood as a set of areas occupied by one or more pixels. Simply put, it is the area occupied by one or more pixels. gather.
过曝:由于光圈过大、快门过慢等原因造成的成像画面中亮度过高,照片泛白。Overexposure: Due to reasons such as too large aperture and too slow shutter speed, the brightness in the imaging screen is too high and the photo is whitened.
过曝区域:为被过曝的一个或多个像素的集合。Overexposed area: a collection of one or more pixels that are overexposed.
双光谱热成像设备:包括热成像镜头和可见光镜头,可同时获取双通道图像信息,即可同时获得热成像图像和可见光图像。Dual-spectrum thermal imaging equipment: including thermal imaging lenses and visible light lenses, which can obtain dual-channel image information at the same time, that is, thermal imaging images and visible light images can be obtained at the same time.
配准又可以称为双光配准:通过热成像镜头和可见光镜头进行标定和数字图像处理等手段,对双光谱热成像设备的可见光图像和热成像图像进行像素级匹配的过程。Registration can also be called dual-light registration: the process of pixel-level matching of visible light images and thermal imaging images of dual-spectrum thermal imaging equipment through calibration of thermal imaging lenses and visible light lenses and digital image processing.
可见光Bayer图像:可见光图像传感器输出的原始图像,该原始图像未经过ISP(Image Signal Processing,图像信号处理)处理。Visible light Bayer image: The original image output by the visible light image sensor, which has not been processed by ISP (Image Signal Processing).
RGB图像:对可见光图像传感器输出的原始图像进行ISP处理后得到的图像。RGB image: The image obtained by ISP processing the original image output by the visible light image sensor.
曝光面积比:可见光成像区域中的过曝区域的面积与可见光成像区域的面积的比值。Exposure area ratio: the ratio of the area of the overexposed area in the visible light imaging area to the area of the visible light imaging area.
IR(Infrared Radiation,红外线)裸数据又可以称为热成像图像数据:基于红外线检测技术的热成像图像传感器所输出的原始图像数据。IR (Infrared Radiation, infrared) naked data can also be called thermal imaging image data: the original image data output by a thermal imaging image sensor based on infrared detection technology.
太阳的红外辐射能量极强,太阳光在经过表面光滑且反射率高的物体反射后,仍具有极高的能量。反射后的太阳光直射进热成像镜头后,会在热成像镜头成像出的热成像图像中造成一个伪高温区域,伪高温区域又可以称为反光点,反光点的成像灰阶值远高于该反光点所表示物体的实际温度对应的成像灰阶值,这严重影响了测温以及高温报警的准确性。The sun's infrared radiation energy is extremely strong. Sunlight still has extremely high energy after being reflected by objects with smooth surfaces and high reflectivity. When the reflected sunlight directly enters the thermal imaging lens, it will cause a pseudo-high temperature area in the thermal image imaged by the thermal imaging lens. The pseudo-high temperature area can also be called a reflective point, and the imaging grayscale value of the reflective point is much higher than The reflective point represents the imaging grayscale value corresponding to the actual temperature of the object, which seriously affects the accuracy of temperature measurement and high temperature alarm.
为解决上述问题,本申请实施例提供了一种数据处理方法,该方法可以应用于双光谱热成像设备,或与双光谱热成像设备连接的电子设备,对此不进行限定。为便于理解,下面以双光谱热成像设备为执行主体进行说明,并不起限定作用。In order to solve the above problems, embodiments of the present application provide a data processing method, which can be applied to bispectral thermal imaging equipment or electronic equipment connected to bispectral thermal imaging equipment, without limitation. For ease of understanding, the following description takes bispectral thermal imaging equipment as the execution subject, and does not serve a limiting purpose.
下面通过具体实施例,对本申请实施例提供的数据处理方法进行详细说明。如图1所 示,该数据处理方法包括如下步骤:The data processing method provided by the embodiment of the present application will be described in detail below through specific examples. As shown in Figure 1 As shown, the data processing method includes the following steps:
步骤S11,对热成像图像进行检测,得到高温目标。Step S11: Detect the thermal imaging image to obtain the high-temperature target.
双光谱热成像设备对监控区域进行监控,可以获得热成像图像和可见光图像。本申请实施例中,仅以双光谱热成像设备对监控区域进行监控,同时获得热成像图像和可见光图像为例进行说明,并不起限定作用。例如,热成像图像和可见光图像可以由不同的设备采集得到,只要两者之间的坐标系可以相互标定即可。Bispectral thermal imaging equipment monitors the monitoring area and can obtain thermal imaging images and visible light images. In the embodiment of the present application, the dual-spectrum thermal imaging equipment monitors the monitoring area and obtains the thermal imaging image and the visible light image simultaneously as an example for explanation, and does not serve a limiting purpose. For example, thermal imaging images and visible light images can be collected by different devices, as long as the coordinate systems between the two can be calibrated to each other.
在热成像图像中,像素的灰阶值越高,表示该像素所对应位置的物体的温度越高。双光谱热成像设备获取到热成像图像后,对该热成像图像进行检测,可以得到热成像图像中灰阶值高于指定灰阶阈值的一个或多个像素,这一个或多个像素所占的区域即为高温目标。In thermal imaging images, the higher the grayscale value of a pixel, the higher the temperature of the object corresponding to the pixel. After the bispectral thermal imaging equipment acquires the thermal imaging image, it detects the thermal imaging image and can obtain one or more pixels whose grayscale value is higher than the specified grayscale threshold in the thermal imaging image. The proportion occupied by this one or more pixels can be obtained. The area is the high temperature target.
本申请实施例中,指定灰阶阈值可以根据实际需求进行设定,例如,热成像图像的灰阶值取值范围为[0,255],指定灰阶阈值可以为200、230或254等;再例如,热成像图像的灰阶值取值范围为[0,16383],指定灰阶阈值可以为16000、16300或16382等。In the embodiment of this application, the specified gray-scale threshold can be set according to actual needs. For example, the gray-scale value range of a thermal imaging image is [0, 255], and the specified gray-scale threshold can be 200, 230, or 254, etc.; For another example, the grayscale value range of a thermal imaging image is [0, 16383], and the specified grayscale threshold can be 16000, 16300, or 16382, etc.
上述高温目标的检测方法可以包括但不限于阈值分割方法、大津分割方法或深度神经网络目标检测方法等。The above-mentioned detection methods of high-temperature targets may include, but are not limited to, threshold segmentation methods, Otsu segmentation methods, or deep neural network target detection methods.
步骤S12,确定热成像图像中的高温目标在可见光图像中的成像区域。Step S12: Determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image.
本申请实施例中,双光谱热成像设备除获取了热成像图像外,还获取了该热成像图像对应的可见光图像。双光谱热成像设备在检测到热成像图像中的高温目标后,可以确定该高温目标在该可见光图像中的成像区域。In the embodiment of the present application, the bispectral thermal imaging device not only acquires the thermal imaging image, but also acquires the visible light image corresponding to the thermal imaging image. After detecting a high-temperature target in a thermal imaging image, the bispectral thermal imaging device can determine the imaging area of the high-temperature target in the visible light image.
一个可选的实施例中,为使得成像区域的确定更加精准,从而提升该数据处理方法的准确性,热成像图像和可见光图像之间的坐标系可以相互标定,双光谱热成像设备在检测到高温目标后,可以根据热成像图像和可见光图像之间的标定关系,将热成像图像中的高温目标映射至可见光图像中,从而得到高温目标在可见光图像中的成像区域。In an optional embodiment, in order to make the determination of the imaging area more accurate and thereby improve the accuracy of the data processing method, the coordinate systems between the thermal imaging image and the visible light image can be calibrated to each other. When the bispectral thermal imaging device detects After selecting the high-temperature target, the high-temperature target in the thermal imaging image can be mapped to the visible light image according to the calibration relationship between the thermal imaging image and the visible light image, thereby obtaining the imaging area of the high-temperature target in the visible light image.
本申请实施例中,上述标定关系可以为热成像图像的一个像素与可见光图像的一个像素之间的关系(即一一对应关系),也可以为热成像图像的一个像素与可见光图像的多个像素之间的关系(即一对多的关系),还可以为热成像图像的多个像素与可见光图像的一个像素之间的关系(即多对一的关系),对此不进行限定。In the embodiment of the present application, the above-mentioned calibration relationship may be the relationship between one pixel of the thermal imaging image and one pixel of the visible light image (i.e., one-to-one correspondence), or may be the relationship between one pixel of the thermal imaging image and multiple pixels of the visible light image. The relationship between pixels (ie, one-to-many relationship) may also be the relationship between multiple pixels of the thermal imaging image and one pixel of the visible light image (ie, many-to-one relationship), which is not limited.
热成像图像和可见光图像之间的标定关系可以作为双光配准规则,记录在双光谱热成像设备中。每次获取到高温目标时,双光谱热成像设备可以直接运行该双光配准规则,确定热成像图像中的高温目标在可见光图像中的成像区域,以提高计算效率。The calibration relationship between the thermal imaging image and the visible light image can be recorded in the bispectral thermal imaging device as a bi-optical registration rule. Every time a high-temperature target is acquired, the dual-spectrum thermal imaging equipment can directly run the dual-light registration rule to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image to improve calculation efficiency.
本申请实施例中,双光谱热成像设备根据热成像图像和可见光图像之间的标定关系,确定热成像图像中的高温目标在可见光图像中的成像区域,这种经过标定关系得到的成像区域更加精准,从而提升了该数据处理方法的准确性。In the embodiment of the present application, the bispectral thermal imaging equipment determines the imaging area of the high-temperature target in the thermal imaging image in the visible light image based on the calibration relationship between the thermal imaging image and the visible light image. The imaging area obtained through this calibration relationship is more Accurate, thus improving the accuracy of the data processing method.
步骤S13,确定成像区域中的过曝区域。Step S13: Determine the overexposure area in the imaging area.
双光谱热成像设备确定高温目标在可见光图像中的成像区域之后,在成像区域中,确定过曝区域。After the bispectral thermal imaging device determines the imaging area of the high-temperature target in the visible light image, it determines the overexposed area in the imaging area.
步骤S14,若过曝区域占成像区域的比例大于预设比例阈值,则对高温目标执行反光点对应的处理操作。Step S14, if the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, a processing operation corresponding to the reflective point is performed on the high-temperature target.
本申请实施例中,过曝区域占成像区域的比例可以依据像素点的个数或面积来何衡量。In the embodiment of the present application, the ratio of the overexposed area to the imaging area can be measured based on the number or area of pixels.
可选的,双光谱热成像设备可以计算可见光图像中成像区域的面积,并计算该成像区 域中过曝区域的面积,进而计算曝光面积比,即计算上述过曝区域的面积与上述成像区域的面积的比值,并将该曝光面积比作为过曝区域占成像区域的比例。Optionally, the dual-spectrum thermal imaging device can calculate the area of the imaging area in the visible light image, and calculate the imaging area The area of the overexposed area in the domain is calculated, and then the exposure area ratio is calculated, that is, the ratio of the area of the above overexposed area to the area of the above imaging area is calculated, and the exposure area ratio is used as the proportion of the overexposed area to the imaging area.
可选的,双光谱热成像设备也可以计算可见光图像的成像区域中包括的像素的第一数量,并计算该成像区域的过曝区域中包括的像素的第二数量,进而计算曝光数量比,即计算上述第一数量与第二数量的比值,并将该曝光数量比作为过曝区域占成像区域的比例。Optionally, the bispectral thermal imaging device can also calculate the first number of pixels included in the imaging area of the visible light image, and calculate the second number of pixels included in the overexposed area of the imaging area, and then calculate the exposure number ratio, That is, the ratio of the above-mentioned first quantity and the second quantity is calculated, and the ratio of the exposure quantity is used as the ratio of the overexposed area to the imaging area.
双光谱热成像设备还可以利用其他方式计算过曝区域占成像区域的比例,对此并不进行限定。Bispectral thermal imaging equipment can also use other methods to calculate the proportion of the overexposed area to the imaging area, which is not limited.
本申请实施例中,双光谱热成像设备可以预先设置一个比例阈值,即预设比例阈值。预设比例阈值可以根据实际需求进行限定,对此不进行具体限定。In the embodiment of the present application, the bispectral thermal imaging device can set a proportional threshold in advance, that is, a preset proportional threshold. The preset proportion threshold can be limited according to actual needs, and there is no specific limit on this.
双光谱热成像设备判断过曝区域占成像区域的比例是否大于预设比例阈值。若过曝区域占成像区域的比例大于预设比例阈值,则说明过曝区域在成像区域中所占的比例较大,从热成像图像中检测到高温目标是由于反光造成的,此时可确定该高温目标为反光点,进而对该高温目标执行反光点对应的处理操作。若过曝区域占成像区域的比例小于等于预设比例阈值,则说明从热成像图像中检测到高温目标是由于该高温目标对应的物体自身的温度造成的,也就是说,监控区域内存在高温物体,双光谱热成像设备可以对该高温目标执行高温对象对应的处理操作,以及时清除高温带来的风险。The dual-spectrum thermal imaging device determines whether the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold. If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, it means that the overexposed area occupies a larger proportion of the imaging area. The high-temperature target detected from the thermal imaging image is due to reflection. At this time, it can be determined The high-temperature target is a reflective point, and processing operations corresponding to the reflective points are performed on the high-temperature target. If the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, it means that the high-temperature target detected in the thermal imaging image is caused by the temperature of the object corresponding to the high-temperature target. In other words, there is a high temperature in the monitoring area. Objects, dual-spectrum thermal imaging equipment can perform processing operations corresponding to high-temperature objects on the high-temperature targets to eliminate risks caused by high temperatures in a timely manner.
一个可选的实施例中,若过曝区域占成像区域的比例大于预设比例阈值,则双光谱热成像设备对高温目标执行反光点对应的处理操作,其中,反光点对应的处理操作可以包括以下任一种或多种操作:In an optional embodiment, if the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, the dual-spectrum thermal imaging device performs processing operations corresponding to reflective points on the high-temperature target, where the processing operations corresponding to the reflective points may include Any one or more of the following actions:
1)输出提示信息,提示信息指示高温目标为反光点。1) Output prompt information, which indicates that the high-temperature target is a reflective point.
例如,双光谱热成像设备在确定过曝区域占成像区域的比例大于预设比例阈值之后,可以以弹窗的形式输出上述提示信息,也可以向连接的终端或服务器发送上述提示信息,以提示用户该高温目标为反光点。For example, after determining that the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the bispectral thermal imaging device can output the above prompt information in the form of a pop-up window, or can send the above prompt information to the connected terminal or server to prompt The user's high temperature target is a reflective point.
2)将高温目标从高温报警列表中删除,高温报警列表包括待进行高温报警的目标。2) Delete high-temperature targets from the high-temperature alarm list, which includes targets to be subjected to high-temperature alarms.
本申请实施例中,高温报警列表中包括至少一个待进行高温报警的目标,双光谱热成像设备可以将检测到的高温目标加入该高温报警列表中,后续可以对该高温报警列表包括的高温目标进行高温报警。In the embodiment of the present application, the high temperature alarm list includes at least one target to be subjected to high temperature alarm. The bispectral thermal imaging device can add the detected high temperature target to the high temperature alarm list, and subsequently can add the high temperature target included in the high temperature alarm list. Enable high temperature alarm.
对于一个高温目标,在将该高温目标加入高温报警列表后,若双光谱热成像设备确定过曝区域占成像区域的比例大于预设比例阈值,则双光谱热成像设备可将该高温目标从高温报警列表中删除,也就是双光谱热成像设备拒绝执行针对该高温目标的高温报警。For a high-temperature target, after adding the high-temperature target to the high-temperature alarm list, if the dual-spectrum thermal imaging equipment determines that the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the dual-spectrum thermal imaging equipment can remove the high-temperature target from high temperature. Delete from the alarm list, that is, the dual-spectrum thermal imaging device refuses to execute high-temperature alarms for the high-temperature target.
3)为高温报警列表中的高温目标添加预设标识,预设标识指示高温目标为反光点。3) Add a preset mark to the high temperature target in the high temperature alarm list. The preset mark indicates that the high temperature target is a reflective point.
双光谱热成像设备在确定过曝区域占成像区域的比例大于预设比例阈值之后,可以将高温目标看做反光点,并为该高温目标添加指示该高温目标为反光点的预设标识。后续,双光谱热成像设备依据该预设标识,不再执行针对该高温目标的高温报警。After the dual-spectrum thermal imaging device determines that the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, it can regard the high-temperature target as a reflective point and add a preset mark indicating that the high-temperature target is a reflective point. Subsequently, the dual-spectrum thermal imaging equipment will no longer perform high-temperature alarms for the high-temperature target based on the preset identification.
预设标识可以采用字母或数字表示。例如,双光谱热成像设备可以采用字母“F”或“S”表示预设标识,双光谱热成像设备也可以采用字母“1”或“0”表示预设标识。The default logo can be represented by letters or numbers. For example, bispectral thermal imaging equipment can use the letter "F" or "S" to represent the preset logo, and bispectral thermal imaging equipment can also use the letters "1" or "0" to represent the preset logo.
4)停止执行针对高温目标的高温报警。4) Stop executing high temperature alarms for high temperature targets.
本申请实施例中,双光谱热成像设备可以在原有高温报警的基础上增加上述步骤S11-步骤S14,即在检测到高温目标之后,以及执行针对该高温目标高温报警之前,增加上述 步骤S11-步骤S14,这种情况下,若双光谱热成像设备确定过曝区域占成像区域的比例大于预设比例阈值,双光谱热成像设备可以停止执行针对高温目标的高温报警,结束高温报警处理。In the embodiment of the present application, the dual-spectrum thermal imaging equipment can add the above steps S11 to step S14 on the basis of the original high temperature alarm, that is, after detecting the high temperature target and before executing the high temperature alarm for the high temperature target, the above steps can be added. Step S11-Step S14. In this case, if the dual-spectrum thermal imaging equipment determines that the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the dual-spectrum thermal imaging equipment can stop executing the high-temperature alarm for high-temperature targets and end the high-temperature alarm. deal with.
本申请实施例中,反光点对应的处理操作还可以采用其他方式实现,例如,反光点对应的处理操作还可以为空,这种情况下,双光谱热成像设备对高温目标执行反光点对应的处理操作即为不做任何处理。In the embodiment of the present application, the processing operation corresponding to the reflective point can also be implemented in other ways. For example, the processing operation corresponding to the reflective point can also be empty. In this case, the bispectral thermal imaging device performs the processing operation corresponding to the reflective point on the high-temperature target. The processing operation means no processing is done.
一个可选的实施例中,若过曝区域占成像区域的比例小于等于预设比例阈值,则对高温目标执行高温对象对应的处理操作。其中,对高温目标执行高温对象对应的处理操作可以包括但不限于以下任一种或多种操作:In an optional embodiment, if the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, processing operations corresponding to the high-temperature object are performed on the high-temperature target. Among them, performing processing operations corresponding to high-temperature objects on high-temperature targets may include but is not limited to any one or more of the following operations:
将高温目标加入高温报警列表;Add the high temperature target to the high temperature alarm list;
输出针对该高温目标的高温报警,如输出包括该高温目标的提示信息,控制警报灯闪烁,或者控制语音输出装置(如音响)输出指示存在高温物体的语音信息等;Output a high-temperature alarm for the high-temperature target, such as outputting prompt information including the high-temperature target, controlling the flashing of the alarm light, or controlling a voice output device (such as a speaker) to output voice information indicating the presence of a high-temperature object, etc.;
将高温目标的标识传输至指定终端等。Transmit the identification of the high-temperature target to the designated terminal, etc.
本申请实施例提供的技术方案中,对热成像图像进行检测,得到高温目标,并确定热成像图像中的高温目标在可见光图像中的成像区域,进而确定成像区域中的过曝区域,若过曝区域占成像区域的比例大于预设比例阈值,则说明从热成像图像中检测到高温目标是由于反光造成的,此时可确定该高温目标为反光点,对该高温目标执行反光点对应的处理操作,有效降低了将反光点误认为热源点而造成的测温误差以及高温误报警的概率,进而提高测温以及高温报警的准确性。In the technical solution provided by the embodiment of the present application, the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target. The processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
在本申请的一个实施例中,可见光图像中每个像素的属性信息包括曝光信息,该曝光信息可以包括但不限于光强、各个颜色通道的值、亮度和光通量等。这种情况下,本申请实施例还提供了一种数据处理方法,如图2所示,该方法可以包括步骤S21-步骤S24,步骤S21、步骤S22和步骤S24与上述步骤S11、步骤S12和步骤S14相同,此处不再赘述。步骤S23为步骤S13的一种可实现方式。In one embodiment of the present application, the attribute information of each pixel in the visible light image includes exposure information, which may include but is not limited to light intensity, values of each color channel, brightness, luminous flux, etc. In this case, the embodiment of the present application also provides a data processing method, as shown in Figure 2. The method may include steps S21 to S24. Steps S21, S22 and S24 are in conjunction with the above-mentioned steps S11, S12 and S24. Step S14 is the same and will not be described again here. Step S23 is an implementable manner of step S13.
步骤S23,从成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素,至少一个目标像素的集合构成过曝区域。Step S23: From the imaging area, determine at least one target pixel whose exposure information matches the preset overexposure information. The set of at least one target pixel constitutes an overexposure area.
本申请实施例中,可见光图像中每个像素的曝光信息可以是双光谱热成像设备对每个像素进行检测得到的,也可以是从其它设备获取到的,对此不进行限定。In the embodiment of the present application, the exposure information of each pixel in the visible light image may be obtained by detecting each pixel with a bispectral thermal imaging device, or may be obtained from other equipment, which is not limited.
双光谱热成像设备可以预先设置像素的过曝信息,即预设过曝信息。预设过曝信息可以指示该像素处于过曝状态。预设过曝信息可以根据实际需求进行限定,对此不进行具体限定。Bispectral thermal imaging equipment can preset the overexposure information of pixels, that is, preset overexposure information. The preset overexposure information can indicate that the pixel is overexposed. The preset overexposure information can be limited according to actual needs, and there is no specific limit on this.
针对可见光图像的成像区域中每个像素,双光谱热成像设备将该像素的曝光信息与预设过曝信息进行比对,若该像素的曝光信息与预设过曝信息匹配,则双光谱热成像设备可确定该像素为过曝的像素,并将该像素作为目标像素。成像区域中目标像素的个数为一个或多个。For each pixel in the imaging area of the visible light image, the bispectral thermal imaging device compares the exposure information of the pixel with the preset overexposure information. If the exposure information of the pixel matches the preset overexposure information, the bispectral thermal imaging device The imaging device may determine that the pixel is an overexposed pixel and use the pixel as a target pixel. The number of target pixels in the imaging area is one or more.
上述像素的曝光信息与预设过曝信息的匹配条件可以根据过曝信息和预设过曝信息的不同来调整,例如,曝光信息为光强,预设过曝信息为预设光强阈值,则像素的曝光信息与预设过曝信息的匹配条件为:像素的光强大于等于预设光强阈值;再例如,曝光信息为亮度,预设过曝信息为预设亮度阈值,则像素的曝光信息与预设过曝信息的匹配条件为: 像素的亮度大于等于预设亮度阈值。The matching conditions between the exposure information of the above pixels and the preset overexposure information can be adjusted according to the difference between the overexposure information and the preset overexposure information. For example, the exposure information is light intensity, and the preset overexposure information is the preset light intensity threshold. Then the matching condition between the exposure information of the pixel and the preset overexposure information is: the light intensity of the pixel is greater than or equal to the preset light intensity threshold; for another example, if the exposure information is brightness and the preset overexposure information is the preset brightness threshold, then the pixel's The matching conditions between exposure information and preset overexposure information are: The brightness of the pixel is greater than or equal to the preset brightness threshold.
双光谱热成像设备在得到至少一个目标像素后,可以将这些目标像素的集合构成的区域作为过曝区域。After obtaining at least one target pixel, the bispectral thermal imaging device can use the area formed by the set of these target pixels as the overexposed area.
本申请实施例提供的技术方案中,双光谱热成像设备可以确定成像图像中曝光信息与预设过曝信息匹配的目标像素,进而得到过曝区域。这样可以从像素的角度确定过曝区域,提高了过曝区域的精确度,进而提高了数据处理方法的精确度。In the technical solution provided by the embodiment of the present application, the bispectral thermal imaging device can determine the target pixel in the imaging image whose exposure information matches the preset overexposure information, thereby obtaining the overexposure area. In this way, the overexposed area can be determined from the perspective of pixels, which improves the accuracy of the overexposed area, thereby improving the accuracy of the data processing method.
在本申请的一个实施例中,曝光信息包括光强,预设过曝信息包括预设光强阈值。这种情况下,本申请实施例还提供了一种数据处理方法,如图3所示,该方法可以包括步骤S31-步骤S34,步骤S31、步骤S32和步骤S34与上述步骤S21、步骤S22和步骤S24相同,此处不再赘述。步骤S33为步骤S23的一种可实现方式。In one embodiment of the present application, the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold. In this case, the embodiment of the present application also provides a data processing method, as shown in Figure 3. The method may include steps S31 to S34. Steps S31, S32 and S34 are combined with the above-mentioned steps S21, S22 and S34. Step S24 is the same and will not be described again here. Step S33 is an implementable manner of step S23.
步骤S33,从成像区域中,确定光强大于预设光强阈值的至少一个目标像素,至少一个目标像素的集合构成过曝区域。Step S33: Determine at least one target pixel whose light intensity is greater than a preset light intensity threshold from the imaging area, and a set of at least one target pixel constitutes an overexposure area.
本申请实施例中,可见光图像中每个像素的光强可以是双光谱热成像设备对每个像素进行检测得到的,也可以是从其它设备获取到的,对此不进行限定。In the embodiment of the present application, the light intensity of each pixel in the visible light image may be obtained by detecting each pixel with a bispectral thermal imaging device, or may be obtained from other equipment, which is not limited.
双光谱热成像设备可以预先设置一个光强阈值,即预设光强阈值。预设光强阈值可以指示该像素处于光强饱和状态。预设光强阈值可以根据实际需求进行限定,对此不进行具体限定。Bispectral thermal imaging equipment can pre-set a light intensity threshold, that is, a preset light intensity threshold. The preset light intensity threshold can indicate that the pixel is in a light intensity saturation state. The preset light intensity threshold can be limited according to actual needs, and there is no specific limit on this.
针对可见光图像的成像区域中的每个像素,双光谱热成像设备将该像素的光强与预设光强阈值进行比对,若该像素的光强大于预设光强阈值,即该像素的光强与预设光强阈值匹配,则说明该像素处于光强饱和状态,双光谱热成像设备可确定该像素为过曝的像素,该像素为目标像素。For each pixel in the imaging area of the visible light image, the bispectral thermal imaging device compares the light intensity of the pixel with the preset light intensity threshold. If the light intensity of the pixel is greater than the preset light intensity threshold, that is, the pixel's light intensity is If the light intensity matches the preset light intensity threshold, it means that the pixel is in a light intensity saturation state. The dual-spectrum thermal imaging device can determine that the pixel is an overexposed pixel and that the pixel is a target pixel.
本申请实施例提供的技术方案中,双光谱热成像设备可以从成像区域中,确定光强大于预设光强阈值的至少一个目标像素,从而得到过曝区域。这样,双光谱热成像设备可以从光强的角度确定过曝区域,增加了数据处理方法的适用性。In the technical solution provided by the embodiment of the present application, the dual-spectrum thermal imaging device can determine at least one target pixel whose light intensity is greater than the preset light intensity threshold from the imaging area, thereby obtaining the overexposed area. In this way, the dual-spectrum thermal imaging equipment can determine the overexposed area from the perspective of light intensity, which increases the applicability of the data processing method.
在本申请的一个实施例中,曝光信息包括使得像素呈现白色的目标颜色通道的值,预设过曝信息包括预设白色条件,预设白色条件指示像素的颜色为白色。白色为像素过曝的一种表现形式,而不同颜色空间的可见光图像,使得像素呈现白色的目标颜色通道不同。例如,RGB图像中像素的R颜色通道的值、G颜色通道的值和B颜色通道的值共同作用,使得该像素呈现白色,则RGB图像中的目标颜色通道可以包括R颜色通道、G颜色通道和B颜色通道中的一个或多个颜色通道;HSV图像中像素的S颜色通道的值和V颜色通道的值共同作用,使得该像素呈现白色,则HSV图像中的目标颜色通道可以包括S颜色通道和V颜色通道中的一个或多个颜色通道;HLV图像中像素的L颜色通道的值作用,使得该像素呈现白色,则HLV图像的目标颜色通道可以包括L颜色通道等。In one embodiment of the present application, the exposure information includes a value of a target color channel that causes the pixel to appear white, and the preset overexposure information includes a preset white condition, and the preset white condition indicates that the color of the pixel is white. White is a form of overexposure of pixels, and visible light images in different color spaces have different target color channels that make pixels appear white. For example, the values of the R color channel, the G color channel and the B color channel of a pixel in an RGB image work together to make the pixel appear white, then the target color channel in the RGB image can include the R color channel, G color channel and one or more color channels in the B color channel; the value of the S color channel of the pixel in the HSV image and the value of the V color channel work together to make the pixel appear white, then the target color channel in the HSV image can include the S color channel and one or more color channels in the V color channel; the value of the L color channel of the pixel in the HLV image acts to make the pixel appear white, then the target color channel of the HLV image can include the L color channel, etc.
这种情况下,本申请实施例还提供了一种数据处理方法,如图4所示,该方法可以包括步骤S41-步骤S44,步骤S41、步骤S42和步骤S44与上述步骤S21、步骤S22和步骤S24相同,此处不再赘述。步骤S43为步骤S23的一种可实现方式。In this case, the embodiment of the present application also provides a data processing method, as shown in Figure 4. The method may include steps S41 to S44. Steps S41, S42 and S44 are combined with the above-mentioned steps S21, S22 and S22. Step S24 is the same and will not be described again here. Step S43 is an implementable manner of step S23.
步骤S43,从成像区域中,确定目标颜色通道的值满足预设白色条件的至少一个目标像素,至少一个目标像素的集合构成过曝区域。Step S43: From the imaging area, determine at least one target pixel whose value of the target color channel satisfies the preset white condition. The set of at least one target pixel constitutes an overexposure area.
本申请实施例中,双光谱热成像设备可以预先设置白色条件,即预设白色条件。预设 白色条件指示像素的颜色为白色,预设白色条件可以根据实际需求进行限定,对此不进行具体限定。In the embodiment of the present application, the bispectral thermal imaging device can preset the white condition, that is, the preset white condition. Default The white condition indicates that the color of the pixel is white. The preset white condition can be limited according to actual needs and is not specifically limited.
针对可见光图像的成像区域中的每个像素,双光谱热成像设备可以将该像素的目标颜色通道的值与预设白色条件进行匹配,若该目标颜色通道的值满足预设白色条件,则说明该像素的颜色为白色,该像素为目标像素。For each pixel in the imaging area of the visible light image, the bispectral thermal imaging device can match the value of the target color channel of the pixel with the preset white condition. If the value of the target color channel meets the preset white condition, it means The color of this pixel is white, and this pixel is the target pixel.
本申请实施例提供的技术方案中,双光谱热成像设备可以从成像区域中,确定目标颜色通道的值满足预设白色条件的至少一个目标像素,从而得到过曝区域。这样,双光谱热成像设备可以从颜色的角度确定过曝区域,增加了本申请实施例提供的数据处理方法的适用性。In the technical solution provided by the embodiment of the present application, the bispectral thermal imaging device can determine at least one target pixel whose value of the target color channel satisfies the preset white condition from the imaging area, thereby obtaining the overexposed area. In this way, the bispectral thermal imaging device can determine the overexposed area from the perspective of color, which increases the applicability of the data processing method provided by the embodiments of the present application.
在本申请的一个实施例中,曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,预设过曝信息包括预设光强阈值和预设白色条件,预设白色条件指示像素的颜色为白色;可见光图像包括可见光Bayer图像和RGB图像。In one embodiment of the present application, the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white, and the preset overexposure information includes a preset light intensity threshold and a preset white condition, and the preset white condition indicates the pixel's The color is white; visible light images include visible light Bayer images and RGB images.
这种情况下,本申请实施例还提供了一种数据处理方法,如图5所示,该方法可以包括步骤S51-步骤S56,步骤S51、步骤S52和步骤S56与上述步骤S21、步骤S22和步骤S24相同,此处不再赘述。步骤S53-步骤S55为步骤S23的一种可实现方式。In this case, the embodiment of the present application also provides a data processing method, as shown in Figure 5. The method may include steps S51 to S56. Steps S51, S52 and S56 are combined with the above-mentioned steps S21, S22 and S22. Step S24 is the same and will not be described again here. Step S53-Step S55 is an implementable manner of step S23.
步骤S53,在可见光Bayer图像中高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素。Step S53: In the imaging area of the high-temperature target in the visible light Bayer image, determine at least one first pixel whose light intensity is greater than the preset light intensity threshold.
本申请实施例中,可见光图像包括可见光Bayer图像,相应的,可见光图像中的成像区域包括可见光Bayer图像中高温目标的成像区域。步骤S53和步骤S33相似,在此不再赘述。In the embodiment of the present application, the visible light image includes a visible light Bayer image, and accordingly, the imaging area in the visible light image includes the imaging area of the high-temperature target in the visible light Bayer image. Step S53 is similar to step S33 and will not be described again.
可见光Bayer图像中包括丰富的光强信息,利用可见光Bayer图像,可以有效提高确定的第一像素的准确度,进而提高确定目标像素的准确度。The visible light Bayer image contains rich light intensity information. Using the visible light Bayer image can effectively improve the accuracy of determining the first pixel, thereby improving the accuracy of determining the target pixel.
步骤S54,在RGB图像中与高温目标对应的成像区域中,确定目标颜色通道的值满足预设白色条件的至少一个第二像素。Step S54: In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition.
本申请实施例中,可见光图像包括RGB图像,相应的,可见光图像中的成像区域包括RGB图像中高温目标的成像区域。步骤S54和步骤S43相似,在此不再赘述。In the embodiment of the present application, the visible light image includes an RGB image, and accordingly, the imaging area in the visible light image includes the imaging area of the high-temperature target in the RGB image. Step S54 is similar to step S43 and will not be described again here.
RGB图像中的颜色信息更为准确,利用RGB图像可以有效提高确定的第二像素的准确度,进而提高确定目标像素的准确度。The color information in RGB images is more accurate. Using RGB images can effectively improve the accuracy of determining the second pixel, thereby improving the accuracy of determining the target pixel.
RGB图像中每个像素具有三个颜色通道的灰阶值,为了进一步提高确定的第二像素的准确度,在可见光图像采用RGB图像时,预设白色条件为像素的三个颜色通道的灰阶值均超过预设灰阶阈值。也就是,双光谱热成像设备在RGB图像中与高温目标对应的成像区域中,确定三个颜色通道的灰阶值均超过预设灰阶阈值的至少一个第二像素。Each pixel in the RGB image has a grayscale value of three color channels. In order to further improve the accuracy of the determined second pixel, when the visible light image uses an RGB image, the preset white condition is the grayscale value of the three color channels of the pixel. The values exceed the preset grayscale threshold. That is, the bispectral thermal imaging device determines at least one second pixel whose grayscale values of the three color channels exceed the preset grayscale threshold in the imaging area corresponding to the high-temperature target in the RGB image.
本申请实施例中预设灰阶阈值可以根据实际需求进行设定,例如,热成像图像的灰阶值取值范围为[0,255],预设灰阶阈值可以为200、230或254等;再例如,热成像图像的灰阶值取值范围为[0,16383],预设灰阶阈值可以为16000、16300或16382等。In the embodiments of this application, the preset grayscale threshold can be set according to actual needs. For example, the grayscale value range of a thermal imaging image is [0, 255], and the preset grayscale threshold can be 200, 230, or 254, etc. ; For another example, the grayscale value range of a thermal imaging image is [0, 16383], and the preset grayscale threshold can be 16000, 16300, or 16382, etc.
本申请实施例中,不限定步骤S53和步骤S54的执行顺序。In the embodiment of the present application, the execution order of step S53 and step S54 is not limited.
步骤S55,根据至少一个第一像素与至少一个第二像素,确定至少一个目标像素,至少一个目标像素的集合构成过曝区域。Step S55: Determine at least one target pixel based on at least one first pixel and at least one second pixel, and a set of at least one target pixel constitutes an overexposure area.
本申请实施例中,双光谱热成像设备在得到可见光Bayer图像中的第一像素和RGB 图像中的第二像素之后,综合考虑第一像素和第二像素,以确定成像区域中的目标像素。In the embodiment of the present application, the bispectral thermal imaging device obtains the first pixel and RGB in the visible Bayer image. After the second pixel in the image, the first pixel and the second pixel are considered together to determine the target pixel in the imaging area.
可选的,上述步骤S55可以为:双光谱热成像设备确定至少一个第一像素与至少一个第二像素重合的像素,作为目标像素,即从成像区域中,确定既是第一像素又是第二像素的像素,作为目标像素,也就是,目标像素的光强大于预设光强阈值,且该目标像素的目标颜色通道的值满足预设白色条件。这有效提高了高温报警的准确性。Optionally, the above step S55 may be: the bispectral thermal imaging device determines a pixel that coincides with at least one first pixel and at least one second pixel as the target pixel, that is, determines from the imaging area that it is both the first pixel and the second pixel. The pixel of the pixel serves as the target pixel, that is, the light intensity of the target pixel is greater than the preset light intensity threshold, and the value of the target color channel of the target pixel satisfies the preset white condition. This effectively improves the accuracy of high temperature alarms.
可选的,上述步骤S55可以为:双光谱热成像设备确定至少一个第一像素与至少一个第二像素合集,作为目标像素,即第一像素和第二像素均作为目标像素。这有效提高了高温报警的安全性。Optionally, the above step S55 may be: the bispectral thermal imaging device determines a set of at least one first pixel and at least one second pixel as the target pixel, that is, both the first pixel and the second pixel are used as the target pixel. This effectively improves the safety of high temperature alarms.
本申请实施例提供的技术方案中,双光谱热成像设备在确定过曝区域时,综合考虑了像素的光强以及目标颜色通道的先验知识,提高了过曝区域的精确度,进而提高了高温报警的准确性。In the technical solution provided by the embodiments of this application, when determining the over-exposed area, the dual-spectrum thermal imaging equipment comprehensively considers the light intensity of the pixel and the prior knowledge of the target color channel, thereby improving the accuracy of the over-exposed area and thereby improving the accuracy of the over-exposed area. Accuracy of high temperature alarm.
在本申请的一个实施例中,本申请实施例还提供了一种数据处理方法,如图6所示,该方法可以包括步骤S61-步骤S64,步骤S61、步骤S62和步骤S64与上述步骤S21、步骤S22和步骤S24相同,此处不再赘述。步骤S63为步骤S23的一种可实现方式。In one embodiment of the present application, the embodiment of the present application also provides a data processing method, as shown in Figure 6. The method may include steps S61-step S64, steps S61, step S62 and step S64 together with the above-mentioned step S21. , step S22 and step S24 are the same and will not be described again here. Step S63 is an implementable manner of step S23.
步骤S63,基于分割掩膜对可见光图像进行像素分割,得到二值图像,二值图像中成像区域内的曝光信息与预设过曝信息匹配的像素为第一像素值,成像区域外的像素为第二像素值,该二值图像中第一像素值的像素为目标像素,至少一个目标像素的集合构成过曝区域。Step S63, perform pixel segmentation on the visible light image based on the segmentation mask to obtain a binary image. In the binary image, the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values, and the pixels outside the imaging area are The second pixel value, the pixel with the first pixel value in the binary image is the target pixel, and a set of at least one target pixel constitutes an overexposed area.
本申请实施例中,分割掩膜包括第一像素值和第二像素值,第一像素值和第二像素值可以根据实际需求进行设定。例如,第一像素值为0,第二像素值为1,或者第一像素值为1,第二像素值为0等。基于分割掩膜,双光谱热成像设备将可见光图像中成像区域内的曝光信息与预设过曝信息匹配的像素的像素值设置为第一像素值;将其他的像素的像素值设置为第二像素值。此时,双光谱热成像设备可以得到一张二值图像。In this embodiment of the present application, the segmentation mask includes a first pixel value and a second pixel value, and the first pixel value and the second pixel value can be set according to actual needs. For example, the first pixel value is 0 and the second pixel value is 1, or the first pixel value is 1 and the second pixel value is 0, etc. Based on the segmentation mask, the bispectral thermal imaging device sets the pixel value of the pixel whose exposure information in the imaging area in the visible light image matches the preset overexposure information as the first pixel value; sets the pixel value of the other pixels as the second pixel value. Pixel values. At this time, the bispectral thermal imaging equipment can obtain a binary image.
一个可选的实施例中,针对可见光图像中的每个像素,双光谱热成像设备可以判断该像素的曝光信息与预设过曝信息是否匹配,并判断该像素是否包含于成像区域内;若均为是,则将该像素的像素值设置为第一像素值;否则,将该像素的像素值设置为第二像素值。In an optional embodiment, for each pixel in the visible light image, the bispectral thermal imaging device can determine whether the exposure information of the pixel matches the preset overexposure information, and determine whether the pixel is included in the imaging area; if If both are yes, then the pixel value of the pixel is set to the first pixel value; otherwise, the pixel value of the pixel is set to the second pixel value.
另一个可选的实施例中,在确定成像区域后,双光谱热成像设备可以直接将成像区域外的其他区域中的像素的像素值设置为第二像素值,针对成像区域中的每个像素,双光谱热成像设备可以判断该像素的曝光信息与预设过曝信息是否匹配;若是,则将该像素的像素值设置为第一像素值;否则,将该像素的像素值设置为第二像素值。该实施例中,双光谱热成像设备只需要判断成像区域内的像素的曝光信息与预设过曝信息是否匹配,而不需对其他区域中的像素进行判断处理,这大大提高了确定过曝区域的效率,提高了过曝区域占成像区域的比例的计算效率;此外,利用该二值图像进行反光点识别,可有效降低背景因素对反光点识别的影响,提高了反光点识别的准确率,进而提升了高温报警的准确率。In another optional embodiment, after determining the imaging area, the bispectral thermal imaging device can directly set the pixel value of the pixels in other areas outside the imaging area to the second pixel value for each pixel in the imaging area. , the bispectral thermal imaging device can determine whether the exposure information of the pixel matches the preset overexposure information; if so, the pixel value of the pixel is set to the first pixel value; otherwise, the pixel value of the pixel is set to the second pixel value. Pixel values. In this embodiment, the dual-spectrum thermal imaging device only needs to determine whether the exposure information of the pixels in the imaging area matches the preset overexposure information, and does not need to judge the pixels in other areas, which greatly improves the accuracy of determining overexposure. The efficiency of the area improves the calculation efficiency of the ratio of the overexposed area to the imaging area; in addition, using this binary image for reflective point identification can effectively reduce the impact of background factors on reflective point identification and improve the accuracy of reflective point identification. , thereby improving the accuracy of high temperature alarms.
本申请实施例提供的技术方案中,双光谱热成像设备基于分割掩膜得到二值图像,并利用二值图像确定过曝区域,利用该二值图像进行反光点识别,可有效降低背景因素对反光点识别的影响,提高反光点识别准确率,进而提升了高温报警的准确率。In the technical solution provided by the embodiments of this application, the bispectral thermal imaging equipment obtains a binary image based on the segmentation mask, uses the binary image to determine the overexposed area, and uses the binary image to identify reflective points, which can effectively reduce the impact of background factors on The influence of reflective point recognition improves the accuracy of reflective point recognition, thereby improving the accuracy of high temperature alarms.
下面结合图7所示的数据处理方法的流程图,对本申请实施例提供的数据处理方法进行详细说明。该方法中,双光谱热成像设备采集到IR裸数据和可见光Bayer图像,对可见 光Bayer图像进行ISP处理,得到RGB图像。The data processing method provided by the embodiment of the present application will be described in detail below with reference to the flow chart of the data processing method shown in Figure 7 . In this method, the dual-spectrum thermal imaging equipment collects IR bare data and visible light Bayer images. The optical Bayer image is processed by ISP to obtain an RGB image.
步骤S71,检测高温目标。Step S71, detect high-temperature targets.
双光谱热成像设备基于IR裸数据,检测高温目标。步骤S71的具体实现过程可以参见上述步骤S11部分的相关描述。Bispectral thermal imaging equipment detects high-temperature targets based on IR bare data. For the specific implementation process of step S71, please refer to the relevant description of step S11 above.
步骤S72,可见光曝光检索区域的坐标计算。Step S72: Calculate the coordinates of the visible light exposure search area.
其中,可见光曝光检索区域即为可见光图像中高温目标的成像区域。双光谱热成像设备根据热成像图像中的高温目标以及可见光图像(包括可见光Bayer图像和RGB图像),得到该高温目标在可见光图像中的成像位置(即成像区域)。步骤S72的具体实现过程可以参见上述步骤S12部分的相关描述。Among them, the visible light exposure retrieval area is the imaging area of the high-temperature target in the visible light image. The bispectral thermal imaging equipment obtains the imaging position (i.e., imaging area) of the high-temperature target in the visible light image based on the high-temperature target in the thermal imaging image and the visible light image (including the visible light Bayer image and the RGB image). For the specific implementation process of step S72, please refer to the relevant description of step S12 above.
这里所确定的成像区域即为后续的检索范围。The imaging area determined here is the subsequent search range.
步骤S73,检索光强饱和区域。Step S73: Search the light intensity saturation area.
双光谱热成像设备检索可见光Bayer图像中可见光曝光检索区域,得到光强大于预设光强阈值的至少一个第一像素,双光谱热成像设备将至少一个第一像素的集合构成的区域作为光强饱和区域。步骤S73的具体实现过程可以参见上述图3和步骤S53部分的相关描述。The bispectral thermal imaging device searches the visible light exposure search area in the visible light Bayer image, and obtains at least one first pixel with a light intensity greater than a preset light intensity threshold. The bispectral thermal imaging device uses the area composed of a set of at least one first pixel as the light intensity. saturated area. For the specific implementation process of step S73, please refer to the above-mentioned FIG. 3 and the relevant description of step S53.
步骤S74,检索白色区域。Step S74: Retrieve white areas.
其中,白色区域为RGB图像中三个颜色通道(即R颜色通道、G颜色通道和B颜色通道)的灰阶值均达到饱和的区域,即三个颜色通道的灰阶值均超过预设灰阶阈值的像素的集合。双光谱热成像设备检索RGB图像中可见光曝光检索区域,得到三个颜色通道的灰阶值超过预设灰阶阈值的至少一个第二像素,双光谱热成像设备将至少一个第二像素构成的区域作为白色区域。步骤S74的具体实现过程可以参见上述图4和步骤S54部分的相关描述。Among them, the white area is the area where the grayscale values of the three color channels (i.e., R color channel, G color channel, and B color channel) in the RGB image have all reached saturation, that is, the grayscale values of the three color channels exceed the preset grayscale. A collection of pixels with a threshold value. The bispectral thermal imaging device searches the visible light exposure retrieval area in the RGB image, and obtains at least one second pixel whose grayscale value of the three color channels exceeds the preset grayscale threshold. as a white area. For the specific implementation process of step S74, please refer to the above-mentioned FIG. 4 and the related description of step S54.
步骤S75,将白色区域和光强饱和区域进行组合。Step S75: Combine the white area and the light intensity saturated area.
双光谱热成像设备将白色区域和光强饱和区域进行组合,得到过曝区域,即根据构成白色区域的第二像素和构成光强饱和区域的第一像素,确定过曝区域。步骤S75的具体实现过程可以参见上述步骤S55部分的相关描述。The dual-spectrum thermal imaging device combines the white area and the light intensity saturated area to obtain the overexposed area, that is, the overexposed area is determined based on the second pixel that constitutes the white area and the first pixel that constitutes the light intensity saturated area. For the specific implementation process of step S75, please refer to the relevant description of step S55 above.
步骤S76,计算曝光面积比。Step S76: Calculate the exposure area ratio.
双光谱热成像设备基于分割掩膜得到二值图像,基于该二值图像确定过曝区域的面积,并根据可见光曝光检索区域的面积(即可见光图像中高温目标的成像区域的面积)以及过曝区域的面积,计算曝光面积比。步骤S76的具体实现过程可以参见上述步骤S14和步骤S63部分的相关描述。The bispectral thermal imaging equipment obtains a binary image based on the segmentation mask, determines the area of the overexposed area based on the binary image, and retrieves the area of the area based on the visible light exposure (that is, the area of the imaging area of the high-temperature target in the visible light image) and the overexposed area. The area of the region, the exposure area ratio is calculated. For the specific implementation process of step S76, please refer to the relevant descriptions of the above-mentioned steps S14 and step S63.
步骤S77,检测曝光面积比是否大于预设比例阈值。若是,则执行步骤S78,对高温目标执行反光点对应的处理操作;若否,则执行步骤S79,输出高温报警。Step S77, detect whether the exposure area ratio is greater than a preset ratio threshold. If yes, step S78 is executed to perform processing operations corresponding to the reflective points on the high-temperature target; if not, step S79 is executed to output a high-temperature alarm.
双光谱热成像设备检测计算所得的曝光面积比是否大于预设比例阈值,若曝光面积比大于预设比例阈值,则可确定该高温目标为反光点,双光谱热成像设备执行步骤S78,也就是,双光谱热成像设备对该高温目标执行反光点对应的处理操作;若曝光面积比小于等于预设比例阈值,则说明从热成像图像中检测到高温目标是由于该高温目标对应的物体自身的温度造成的,双光谱热成像设备执行步骤S79,输出高温报警。步骤S77-步骤S79的具体实现过程可以参见上述步骤S14部分的相关描述。 The bispectral thermal imaging device detects whether the calculated exposure area ratio is greater than the preset ratio threshold. If the exposure area ratio is greater than the preset ratio threshold, it can be determined that the high-temperature target is a reflective point, and the bispectral thermal imaging device executes step S78, that is, , the bispectral thermal imaging equipment performs processing operations corresponding to the reflective points of the high-temperature target; if the exposure area ratio is less than or equal to the preset ratio threshold, it means that the high-temperature target is detected from the thermal imaging image due to the object corresponding to the high-temperature target itself. Caused by temperature, the dual-spectrum thermal imaging device executes step S79 and outputs a high temperature alarm. For the specific implementation process of steps S77 to S79, please refer to the relevant description of step S14 above.
本申请实施例中,在过曝区域占成像区域的比例小于等于预设比例阈值的情况下,图7中仅示出了一种高温对象对应的处理操作,即输出高温报警,高温对象对应的处理操作还可以包括其他操作,如步骤S14部分的描述,将高温目标加入高温报警列表、将高温目标的标识传输至指定终端等,对此不进行限定。In the embodiment of the present application, when the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, Figure 7 only shows one processing operation corresponding to the high-temperature object, that is, outputting a high-temperature alarm, and corresponding to the high-temperature object. The processing operation may also include other operations, such as the description in step S14, adding the high-temperature target to the high-temperature alarm list, transmitting the identification of the high-temperature target to the designated terminal, etc., which are not limited.
上述步骤S71-步骤S79部分的描述相对简单,具体可参见上述图1-图6部分的相关描述,此处不再赘述。The description of the above steps S71 to S79 is relatively simple. For details, please refer to the relevant descriptions of the above FIGS. 1 to 6 and will not be described again here.
与上述数据处理方法对应,本申请实施例提供了一种数据处理装置,如图8所示,该装置可以包括:Corresponding to the above data processing method, embodiments of the present application provide a data processing device, as shown in Figure 8. The device may include:
检测单元81,用于对热成像图像进行检测,得到高温目标;The detection unit 81 is used to detect thermal imaging images to obtain high-temperature targets;
第一确定单元82,用于确定热成像图像中的高温目标在可见光图像中的成像区域;The first determination unit 82 is used to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image;
第二确定单元83,用于确定成像区域中的过曝区域;The second determination unit 83 is used to determine the overexposure area in the imaging area;
第一处理单元84,用于若过曝区域占成像区域的比例大于预设比例阈值,则对高温目标执行反光点对应的处理操作。The first processing unit 84 is configured to perform processing operations corresponding to reflective points on the high-temperature target if the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold.
可选的,可见光图像中每个像素的属性信息包括曝光信息;Optionally, the attribute information of each pixel in the visible light image includes exposure information;
第二确定单元83,具体可以用于:The second determination unit 83 can be specifically used for:
从成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素;至少一个目标像素的集合构成过曝区域。From the imaging area, at least one target pixel whose exposure information matches the preset overexposure information is determined; a set of at least one target pixel constitutes an overexposure area.
可选的,曝光信息包括光强,预设过曝信息包括预设光强阈值;Optionally, the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold;
第二确定单元83,具体可以用于:The second determination unit 83 can be specifically used for:
从成像区域中,确定光强大于预设光强阈值的至少一个目标像素。From the imaging area, at least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
可选的,曝光信息包括使得像素呈现白色的目标颜色通道的值,预设过曝信息包括预设白色条件,预设白色条件指示像素的颜色为白色;Optionally, the exposure information includes the value of the target color channel that makes the pixel appear white, and the preset overexposure information includes a preset white condition, and the preset white condition indicates that the color of the pixel is white;
第二确定单元83,具体可以用于:The second determination unit 83 can be specifically used for:
从成像区域中,确定目标颜色通道的值满足预设白色条件的至少一个目标像素。From the imaging area, at least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
可选的,曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,预设过曝信息包括预设光强阈值和预设白色条件,预设白色条件指示像素的颜色为白色;可见光图像包括可见光Bayer图像和RGB图像;Optionally, the exposure information includes light intensity and the value of the target color channel that makes the pixel appear white. The preset overexposure information includes a preset light intensity threshold and a preset white condition. The preset white condition indicates that the color of the pixel is white; visible light Images include visible light Bayer images and RGB images;
第二确定单元83,具体可以用于:The second determination unit 83 can be specifically used for:
在可见光Bayer图像中高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素;In the imaging area of the high-temperature target in the visible Bayer image, determine at least one first pixel whose light intensity is greater than a preset light intensity threshold;
在RGB图像中与高温目标对应的成像区域中,确定目标颜色通道的值满足预设白色条件的至少一个第二像素;In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition;
根据至少一个第一像素与至少一个第二像素,确定至少一个目标像素。At least one target pixel is determined based on at least one first pixel and at least one second pixel.
可选的,第二确定单元83,具体可以用于:Optional, the second determination unit 83 can be specifically used for:
确定至少一个第一像素与至少一个第二像素重合的像素,作为目标像素。A pixel in which at least one first pixel coincides with at least one second pixel is determined as a target pixel.
可选的,RGB图像中每个像素具有三个颜色通道的灰阶值,预设白色条件为像素的三个颜色通道的灰阶值超过预设灰阶阈值。Optionally, each pixel in the RGB image has grayscale values of three color channels, and the preset white condition is that the grayscale values of the three color channels of the pixel exceed the preset grayscale threshold.
可选的,第二确定单元83,具体可以用于:Optional, the second determination unit 83 can be specifically used for:
基于分割掩膜对可见光图像进行像素分割,得到二值图像,二值图像中成像区域内的 曝光信息与预设过曝信息匹配的像素为第一像素值,成像区域外的像素为第二像素值;Based on the segmentation mask, the visible light image is segmented into pixels to obtain a binary image. The pixels in the imaging area in the binary image are The pixels whose exposure information matches the preset overexposure information are the first pixel values, and the pixels outside the imaging area are the second pixel values;
二值图像中第一像素值的像素为目标像素。The pixel with the first pixel value in the binary image is the target pixel.
可选的,第二确定单元83,具体可以用于:Optional, the second determination unit 83 can be specifically used for:
将可见光图像中成像区域外的其他区域中像素的值设置为第二像素值;Set the value of the pixel in other areas outside the imaging area in the visible light image as the second pixel value;
针对成像区域内的每个像素,若该像素的曝光信息与预设过曝信息匹配,则将该像素的值设置为第一像素值,否则,将该像素的值设置为第二像素值。For each pixel in the imaging area, if the exposure information of the pixel matches the preset overexposure information, the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
可选的,第一确定单元82,具体可以用于:Optionally, the first determining unit 82 can be specifically used for:
根据热成像图像和可见光图像之间的标定关系,确定热成像图像中的高温目标在可见光图像中的成像区域。According to the calibration relationship between the thermal imaging image and the visible light image, the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
可选的,第一处理单元84,具体可以用于:Optionally, the first processing unit 84 can be specifically used for:
若过曝区域占成像区域的比例大于预设比例阈值,则输出提示信息,提示信息指示高温目标为反光点;或If the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, a prompt message is output, indicating that the high-temperature target is a reflective point; or
若过曝区域占成像区域的比例大于预设比例阈值,则将高温目标从高温报警列表中删除,高温报警列表包括待进行高温报警的目标;或If the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, the high-temperature target is deleted from the high-temperature alarm list, which includes targets to be subjected to high-temperature alarm; or
若过曝区域占成像区域的比例大于预设比例阈值,则为高温报警列表中的高温目标添加预设标识,预设标识指示高温目标为反光点;或If the proportion of the overexposed area to the imaging area is greater than the preset ratio threshold, a preset mark is added to the high temperature target in the high temperature alarm list, and the preset mark indicates that the high temperature target is a reflective point; or
若过曝区域占成像区域的比例大于预设比例阈值,则停止执行针对高温目标的高温报警。If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, the high-temperature alarm for high-temperature targets will be stopped.
可选的,上述数据处理装置还可以包括:Optionally, the above data processing device may also include:
第二处理单元,用于若过曝区域占成像区域的比例小于等于预设比例阈值,则对高温目标执行高温对象对应的处理操作。The second processing unit is configured to perform processing operations corresponding to the high-temperature object on the high-temperature target if the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold.
本申请实施例提供的技术方案中,对热成像图像进行检测,得到高温目标,并确定热成像图像中的高温目标在可见光图像中的成像区域,进而确定成像区域中的过曝区域,若过曝区域占成像区域的比例大于预设比例阈值,则说明从热成像图像中检测到高温目标是由于反光造成的,此时可确定该高温目标为反光点,对该高温目标执行反光点对应的处理操作,有效降低了将反光点误认为热源点而造成的测温误差以及高温误报警的概率,进而提高测温以及高温报警的准确性。In the technical solution provided by the embodiment of the present application, the thermal imaging image is detected to obtain a high-temperature target, and the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined, and then the overexposure area in the imaging area is determined. If the ratio of the exposure area to the imaging area is greater than the preset ratio threshold, it means that the high-temperature target detected from the thermal imaging image is caused by reflection. At this time, the high-temperature target can be determined to be a reflective point, and the corresponding reflective point is performed on the high-temperature target. The processing operation effectively reduces the temperature measurement error and the probability of high temperature false alarm caused by mistaking the reflective point for the heat source point, thereby improving the accuracy of temperature measurement and high temperature alarm.
与上述数据处理方法对应,本申请实施例还提供了一种双光谱热成像设备,如图9所示,包括存储器91、处理器92、驱动电路93、热成像图像传感器94、可见光图像传感器95;Corresponding to the above data processing method, embodiments of the present application also provide a dual-spectrum thermal imaging device, as shown in Figure 9, including a memory 91, a processor 92, a drive circuit 93, a thermal imaging image sensor 94, and a visible light image sensor 95 ;
热成像图像传感器94,用于采集热成像图像;Thermal imaging image sensor 94 is used to collect thermal imaging images;
可见光图像传感器95,用于采集可见光图像;Visible light image sensor 95, used to collect visible light images;
存储器91,用于存储能够被处理器执行的机器可执行指令;Memory 91 for storing machine-executable instructions that can be executed by the processor;
处理器92,用于被驱动电路93驱动,执行机器可执行指令,实现上述任一数据处理方法的步骤。The processor 92 is configured to be driven by the driving circuit 93 to execute machine executable instructions to implement the steps of any of the above data processing methods.
本申请实施例中,双光谱热成像设备还可以包括报警器,该报警器用于输出高温报警。例如,在处理器92确定过曝区域占成像区域的比例小于等于预设比例阈值的情况下,处理器92生成高温报警,并通过报警器输出。In the embodiment of the present application, the bispectral thermal imaging device may also include an alarm, which is used to output a high temperature alarm. For example, when the processor 92 determines that the ratio of the overexposed area to the imaging area is less than or equal to a preset ratio threshold, the processor 92 generates a high temperature alarm and outputs it through an alarm.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易 失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include Random Access Memory (RAM) or non-volatile memory. Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (ASIC) Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一数据处理方法的步骤。In yet another embodiment provided by the present application, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of any of the above data processing methods are implemented. .
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一数据处理方法的步骤。In yet another embodiment provided by this application, a computer program product containing instructions is also provided, which when run on a computer causes the computer to perform the steps of any of the data processing methods in the above embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者固态硬盘Solid State Disk(SSD)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or Solid State Disk (SSD), etc.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、双光谱热成像设备、存储介质和计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, the device, bispectral thermal imaging equipment, storage medium and computer program product embodiments are described simply because they are basically similar to the method embodiments. For relevant details, please refer to the partial description of the method embodiments.
以上所述仅为本申请的较佳实施例,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。 The above descriptions are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application are included in the protection scope of this application.

Claims (27)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method includes:
    对热成像图像进行检测,得到高温目标;Detect thermal imaging images to obtain high-temperature targets;
    确定所述热成像图像中的所述高温目标在可见光图像中的成像区域;Determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image;
    确定所述成像区域中的过曝区域;Determine the overexposed area in the imaging area;
    若所述过曝区域占所述成像区域的比例大于预设比例阈值,则对所述高温目标执行反光点对应的处理操作。If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, processing operations corresponding to reflective points are performed on the high-temperature target.
  2. 根据权利要求1所述的方法,其特征在于,所述可见光图像中每个像素的属性信息包括曝光信息;The method according to claim 1, wherein the attribute information of each pixel in the visible light image includes exposure information;
    所述确定所述成像区域中的过曝区域的步骤,包括:The step of determining the overexposed area in the imaging area includes:
    从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素;所述至少一个目标像素的集合构成过曝区域。From the imaging area, at least one target pixel whose exposure information matches the preset overexposure information is determined; a set of the at least one target pixel constitutes an overexposure area.
  3. 根据权利要求2所述的方法,其特征在于,所述曝光信息包括光强,所述预设过曝信息包括预设光强阈值;The method of claim 2, wherein the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold;
    所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
    从所述成像区域中,确定光强大于预设光强阈值的至少一个目标像素。From the imaging area, at least one target pixel whose light intensity is greater than a preset light intensity threshold is determined.
  4. 根据权利要求2所述的方法,其特征在于,所述曝光信息包括使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设白色条件,所述预设白色条件指示像素的颜色为白色;The method of claim 2, wherein the exposure information includes a value of a target color channel that causes the pixel to appear white, the preset overexposure information includes a preset white condition, and the preset white condition indicates that the pixel The color is white;
    所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
    从所述成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个目标像素。From the imaging area, at least one target pixel whose value of the target color channel satisfies the preset white condition is determined.
  5. 根据权利要求2所述的方法,其特征在于,所述曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设光强阈值和预设白色条件,所述预设白色条件指示像素的颜色为白色;所述可见光图像包括可见光Bayer图像和RGB图像;The method of claim 2, wherein the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white, and the preset overexposure information includes a preset light intensity threshold and a preset white condition. , the preset white condition indicates that the color of the pixel is white; the visible light image includes a visible light Bayer image and an RGB image;
    所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
    在所述可见光Bayer图像中所述高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素;In the imaging area of the high-temperature target in the visible light Bayer image, at least one first pixel whose light intensity is greater than a preset light intensity threshold is determined;
    在所述RGB图像中与所述高温目标对应的成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个第二像素;In the imaging area corresponding to the high-temperature target in the RGB image, determine at least one second pixel whose value of the target color channel satisfies the preset white condition;
    根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素。At least one target pixel is determined based on the at least one first pixel and the at least one second pixel.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素的步骤,包括:The method of claim 5, wherein the step of determining at least one target pixel based on the at least one first pixel and the at least one second pixel includes:
    确定所述至少一个第一像素与所述至少一个第二像素重合的像素,作为目标像素。A pixel that coincides with the at least one first pixel and the at least one second pixel is determined as a target pixel.
  7. 根据权利要求5所述的方法,其特征在于,所述RGB图像中每个像素具有三个颜色通道的灰阶值,所述预设白色条件为像素的三个颜色通道的灰阶值超过预设灰阶阈值。 The method according to claim 5, characterized in that each pixel in the RGB image has a grayscale value of three color channels, and the preset white condition is that the grayscale value of the three color channels of the pixel exceeds a preset value. Set the grayscale threshold.
  8. 根据权利要求2所述的方法,其特征在于,所述从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素的步骤,包括:The method of claim 2, wherein the step of determining at least one target pixel whose exposure information matches preset overexposure information from the imaging area includes:
    基于分割掩膜对所述可见光图像进行像素分割,得到二值图像,所述二值图像中所述成像区域内的曝光信息与预设过曝信息匹配的像素为第一像素值,所述成像区域外的像素为第二像素值;Perform pixel segmentation on the visible light image based on the segmentation mask to obtain a binary image. In the binary image, the pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values. The imaging Pixels outside the area are the second pixel value;
    所述二值图像中第一像素值的像素为目标像素。The pixel with the first pixel value in the binary image is the target pixel.
  9. 根据权利要求8所述的方法,其特征在于,所述基于分割掩膜对所述可见光图像进行像素分割,得到二值图像的步骤,包括:The method according to claim 8, characterized in that the step of performing pixel segmentation on the visible light image based on a segmentation mask to obtain a binary image includes:
    将所述可见光图像中所述成像区域外的其他区域中像素的值设置为第二像素值;Set the values of pixels in other areas outside the imaging area in the visible light image as second pixel values;
    针对所述成像区域内的每个像素,若该像素的曝光信息与预设过曝信息匹配,则将该像素的值设置为第一像素值,否则,将该像素的值设置为第二像素值。For each pixel in the imaging area, if the exposure information of the pixel matches the preset overexposure information, the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value.
  10. 根据权利要求1所述的方法,其特征在于,所述确定所述热成像图像中的所述高温目标在可见光图像中的成像区域的步骤,包括:The method according to claim 1, wherein the step of determining the imaging area of the high-temperature target in the thermal imaging image in the visible light image includes:
    根据所述热成像图像和可见光图像之间的标定关系,确定所述热成像图像中的所述高温目标在可见光图像中的成像区域。According to the calibration relationship between the thermal imaging image and the visible light image, the imaging area of the high-temperature target in the thermal imaging image in the visible light image is determined.
  11. 根据权利要求1所述的方法,其特征在于,所述对所述高温目标执行反光点对应的处理操作的步骤,包括:The method of claim 1, wherein the step of performing processing operations corresponding to reflective points on the high-temperature target includes:
    输出提示信息,所述提示信息指示所述高温目标为反光点;或Output prompt information indicating that the high-temperature target is a reflective point; or
    将所述高温目标从高温报警列表中删除,所述高温报警列表包括待进行高温报警的目标;或Delete the high-temperature target from the high-temperature alarm list, which includes targets to be subjected to high-temperature alarm; or
    为所述高温报警列表中的所述高温目标添加预设标识,所述预设标识指示所述高温目标为反光点;或Add a preset mark to the high temperature target in the high temperature alarm list, the preset mark indicating that the high temperature target is a reflective point; or
    停止执行针对所述高温目标的高温报警。Stop executing the high temperature alarm for the high temperature target.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-11, characterized in that the method further includes:
    若所述过曝区域占所述成像区域的比例小于等于所述预设比例阈值,则对所述高温目标执行高温对象对应的处理操作。If the ratio of the overexposed area to the imaging area is less than or equal to the preset ratio threshold, a processing operation corresponding to the high-temperature object is performed on the high-temperature target.
  13. 一种数据处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device includes:
    检测单元,用于对热成像图像进行检测,得到高温目标;A detection unit is used to detect thermal imaging images and obtain high-temperature targets;
    第一确定单元,用于确定所述热成像图像中的所述高温目标在可见光图像中的成像区域;A first determination unit configured to determine the imaging area of the high-temperature target in the thermal imaging image in the visible light image;
    第二确定单元,用于确定所述成像区域中的过曝区域;a second determination unit configured to determine the overexposure area in the imaging area;
    第一处理单元,用于若所述过曝区域占所述成像区域的比例大于预设比例阈值,则对所述高温目标执行反光点对应的处理操作。A first processing unit configured to perform processing operations corresponding to reflective points on the high-temperature target if the ratio of the overexposed area to the imaging area is greater than a preset ratio threshold.
  14. 根据权利要求13所述的装置,其特征在于,所述可见光图像中每个像素的属性信息包括曝光信息;The device according to claim 13, wherein the attribute information of each pixel in the visible light image includes exposure information;
    所述第二确定单元,具体用于:从所述成像区域中,确定曝光信息与预设过曝信息匹配的至少一个目标像素;所述至少一个目标像素的集合构成过曝区域。The second determination unit is specifically configured to: determine at least one target pixel whose exposure information matches preset overexposure information from the imaging area; a set of the at least one target pixel constitutes an overexposure area.
  15. 根据权利要求14所述的装置,其特征在于,所述曝光信息包括光强,所述预设过曝信息包括预设光强阈值; The device according to claim 14, wherein the exposure information includes light intensity, and the preset overexposure information includes a preset light intensity threshold;
    所述第二确定单元,具体用于:从所述成像区域中,确定光强大于预设光强阈值的至少一个目标像素。The second determination unit is specifically configured to determine at least one target pixel whose light intensity is greater than a preset light intensity threshold from the imaging area.
  16. 根据权利要求14所述的装置,其特征在于,所述曝光信息包括使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设白色条件,所述预设白色条件指示像素的颜色为白色;The device of claim 14, wherein the exposure information includes a value of a target color channel that causes the pixel to appear white, the preset overexposure information includes a preset white condition, and the preset white condition indicates that the pixel The color is white;
    所述第二确定单元,具体用于:从所述成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个目标像素。The second determination unit is specifically configured to determine at least one target pixel whose value of the target color channel satisfies the preset white condition from the imaging area.
  17. 根据权利要求14所述的装置,其特征在于,所述曝光信息包括光强和使得像素呈现白色的目标颜色通道的值,所述预设过曝信息包括预设光强阈值和预设白色条件,所述预设白色条件指示像素的颜色为白色;所述可见光图像包括可见光Bayer图像和RGB图像;The device according to claim 14, wherein the exposure information includes light intensity and a value of a target color channel that makes the pixel appear white, and the preset overexposure information includes a preset light intensity threshold and a preset white condition. , the preset white condition indicates that the color of the pixel is white; the visible light image includes a visible light Bayer image and an RGB image;
    所述第二确定单元,具体用于:在所述可见光Bayer图像中所述高温目标的成像区域中,确定光强大于预设光强阈值的至少一个第一像素;在所述RGB图像中与所述高温目标对应的成像区域中,确定所述目标颜色通道的值满足所述预设白色条件的至少一个第二像素;根据所述至少一个第一像素与所述至少一个第二像素,确定至少一个目标像素。The second determination unit is specifically configured to: determine at least one first pixel whose light intensity is greater than a preset light intensity threshold in the imaging area of the high-temperature target in the visible Bayer image; and In the imaging area corresponding to the high-temperature target, determine at least one second pixel whose value of the target color channel satisfies the preset white condition; determine based on the at least one first pixel and the at least one second pixel. At least one target pixel.
  18. 根据权利要求17所述的装置,其特征在于,所述第二确定单元,具体用于:确定所述至少一个第一像素与所述至少一个第二像素重合的像素,作为目标像素。The device according to claim 17, wherein the second determining unit is specifically configured to determine a pixel that coincides with the at least one first pixel and the at least one second pixel as the target pixel.
  19. 根据权利要求17所述的装置,其特征在于,所述RGB图像中每个像素具有三个颜色通道的灰阶值,所述预设白色条件为像素的三个颜色通道的灰阶值超过预设灰阶阈值。The device according to claim 17, characterized in that each pixel in the RGB image has a grayscale value of three color channels, and the preset white condition is that the grayscale value of the three color channels of the pixel exceeds a preset value. Set the grayscale threshold.
  20. 根据权利要求14所述的装置,其特征在于,所述第二确定单元,具体用于:基于分割掩膜对所述可见光图像进行像素分割,得到二值图像,所述二值图像中所述成像区域内的曝光信息与预设过曝信息匹配的像素为第一像素值,所述成像区域外的像素为第二像素值;所述二值图像中第一像素值的像素为目标像素。The device according to claim 14, characterized in that the second determination unit is specifically configured to perform pixel segmentation on the visible light image based on a segmentation mask to obtain a binary image, and the binary image is The pixels whose exposure information in the imaging area matches the preset overexposure information are the first pixel values, and the pixels outside the imaging area are the second pixel values; the pixels with the first pixel value in the binary image are the target pixels.
  21. 根据权利要求20所述的装置,其特征在于,所述第二确定单元,具体用于:将所述可见光图像中所述成像区域外的其他区域中像素的值设置为第二像素值;针对所述成像区域内的每个像素,若该像素的曝光信息与预设过曝信息匹配,则将该像素的值设置为第一像素值,否则,将该像素的值设置为第二像素值。The device according to claim 20, wherein the second determination unit is specifically configured to: set values of pixels in other areas outside the imaging area in the visible light image as second pixel values; for For each pixel in the imaging area, if the exposure information of the pixel matches the preset overexposure information, the value of the pixel is set to the first pixel value; otherwise, the value of the pixel is set to the second pixel value. .
  22. 根据权利要求13所述的装置,其特征在于,所述第一确定单元,具体用于:根据所述热成像图像和可见光图像之间的标定关系,确定所述热成像图像中的所述高温目标在可见光图像中的成像区域。The device according to claim 13, wherein the first determination unit is specifically configured to determine the high temperature in the thermal imaging image according to the calibration relationship between the thermal imaging image and the visible light image. The imaged area of the target in the visible light image.
  23. 根据权利要求13所述的装置,其特征在于,所述第一处理单元,具体用于:The device according to claim 13, characterized in that the first processing unit is specifically used for:
    若所述过曝区域占所述成像区域的比例大于预设比例阈值,则输出提示信息,所述提示信息指示所述高温目标为反光点;或If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, prompt information is output, and the prompt information indicates that the high-temperature target is a reflective point; or
    若所述过曝区域占所述成像区域的比例大于预设比例阈值,则将所述高温目标从高温报警列表中删除,所述高温报警列表包括待进行高温报警的目标;或If the proportion of the overexposed area to the imaging area is greater than the preset proportion threshold, the high temperature target is deleted from the high temperature alarm list, which includes targets to be subjected to high temperature alarm; or
    若所述过曝区域占所述成像区域的比例大于预设比例阈值,则为所述高温报警列表中的所述高温目标添加预设标识,所述预设标识指示所述高温目标为反光点;或If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, a preset mark is added to the high temperature target in the high temperature alarm list, and the preset mark indicates that the high temperature target is a reflective point. ;or
    若所述过曝区域占所述成像区域的比例大于预设比例阈值,则停止执行针对所述高温目标的高温报警。If the ratio of the overexposed area to the imaging area is greater than the preset ratio threshold, the high temperature alarm for the high temperature target is stopped.
  24. 根据权利要求13-23任一项所述的装置,其特征在于,所述装置还包括: The device according to any one of claims 13-23, characterized in that the device further includes:
    第二处理单元,用于若所述过曝区域占所述成像区域的比例小于等于所述预设比例阈值,则对所述高温目标执行高温对象对应的处理操作。The second processing unit is configured to perform processing operations corresponding to high-temperature objects on the high-temperature target if the ratio of the over-exposed area to the imaging area is less than or equal to the preset ratio threshold.
  25. 一种双光谱热成像设备,其特征在于,所述双光谱热成像设备包括存储器、处理器、驱动电路、热成像图像传感器和可见光图像传感器;A bispectral thermal imaging device, characterized in that the bispectral thermal imaging device includes a memory, a processor, a drive circuit, a thermal imaging image sensor and a visible light image sensor;
    所述热成像图像传感器,用于采集热成像图像;The thermal imaging image sensor is used to collect thermal imaging images;
    所述可见光图像传感器,用于采集可见光图像;The visible light image sensor is used to collect visible light images;
    所述存储器,用于存储能够被所述处理器执行的机器可执行指令;The memory is used to store machine-executable instructions that can be executed by the processor;
    所述处理器,用于被所述驱动电路驱动,执行所述机器可执行指令,实现权利要求1-12任一项所述的方法步骤。The processor is configured to be driven by the driving circuit, execute the machine executable instructions, and implement the method steps described in any one of claims 1-12.
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-12任一项所述的方法步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in any one of claims 1-12 are implemented.
  27. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行权利要求1-12任一项所述的方法步骤。 A computer program product containing instructions that, when run on a computer, causes the computer to perform the method steps described in any one of claims 1-12.
PCT/CN2023/083136 2022-03-28 2023-03-22 Data processing method and apparatus WO2023185594A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210308508.2A CN114419076B (en) 2022-03-28 2022-03-28 Data processing method and device
CN202210308508.2 2022-03-28

Publications (1)

Publication Number Publication Date
WO2023185594A1 true WO2023185594A1 (en) 2023-10-05

Family

ID=81264147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/083136 WO2023185594A1 (en) 2022-03-28 2023-03-22 Data processing method and apparatus

Country Status (2)

Country Link
CN (1) CN114419076B (en)
WO (1) WO2023185594A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114419076B (en) * 2022-03-28 2022-08-05 杭州微影软件有限公司 Data processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103996182A (en) * 2013-02-15 2014-08-20 欧姆龙株式会社 Image processing device, image processing method, and image processing program
WO2019048601A1 (en) * 2017-09-09 2019-03-14 Fcm Dienstleistungs Ag Automatic early detection of smoke, soot and fire with increased detection reliability
CN111199629A (en) * 2020-02-18 2020-05-26 普宙飞行器科技(深圳)有限公司 Heat source identification device, unmanned aerial vehicle and heat source identification method
CN112258507A (en) * 2020-11-20 2021-01-22 财拓云计算(上海)有限公司 Target object detection method and device of internet data center and electronic equipment
CN112614302A (en) * 2020-12-03 2021-04-06 杭州海康微影传感科技有限公司 Fire detection method, device and system and electronic equipment
CN114419076A (en) * 2022-03-28 2022-04-29 杭州微影软件有限公司 Data processing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6380843B2 (en) * 2013-12-19 2018-08-29 株式会社リコー Object detection apparatus, mobile device control system including the same, and object detection program
CN106851121B (en) * 2017-01-05 2019-07-05 Oppo广东移动通信有限公司 Control method and control device
CN110160657B (en) * 2019-05-31 2021-04-06 华中科技大学 High-temperature distribution detection method and device based on visible-light thermal imaging
CN113660428B (en) * 2020-04-30 2023-07-04 北京小米移动软件有限公司 Image acquisition method and device and electronic equipment
CN113834571A (en) * 2020-06-24 2021-12-24 杭州海康威视数字技术股份有限公司 Target temperature measurement method, device and temperature measurement system
CN112950509B (en) * 2021-03-18 2023-10-10 杭州海康威视数字技术股份有限公司 Image processing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103996182A (en) * 2013-02-15 2014-08-20 欧姆龙株式会社 Image processing device, image processing method, and image processing program
WO2019048601A1 (en) * 2017-09-09 2019-03-14 Fcm Dienstleistungs Ag Automatic early detection of smoke, soot and fire with increased detection reliability
CN111199629A (en) * 2020-02-18 2020-05-26 普宙飞行器科技(深圳)有限公司 Heat source identification device, unmanned aerial vehicle and heat source identification method
CN112258507A (en) * 2020-11-20 2021-01-22 财拓云计算(上海)有限公司 Target object detection method and device of internet data center and electronic equipment
CN112614302A (en) * 2020-12-03 2021-04-06 杭州海康微影传感科技有限公司 Fire detection method, device and system and electronic equipment
CN114419076A (en) * 2022-03-28 2022-04-29 杭州微影软件有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN114419076A (en) 2022-04-29
CN114419076B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
WO2021174841A1 (en) Temperature measurement method, temperature measurement apparatus, electronic device and computer-readable storage medium
WO2023185594A1 (en) Data processing method and apparatus
WO2017206444A1 (en) Method and device for detecting imaging difference, and computer storage medium
JP6553624B2 (en) Measurement equipment and system
WO2021008052A1 (en) Lens accuracy calibration method, apparatus and device for 3d photographic module
WO2017114368A1 (en) Method and device for processing photosensitive quality of camera module, and storage medium
WO2022135581A1 (en) Image testing method, apparatus and system, and device and storage medium
TW201227615A (en) Moving object detection method and image processing system for moving object detection
WO2020077869A1 (en) Image retrieval method, device, terminal, and storage medium
WO2024055698A1 (en) Package inspection method and system and electronic device
WO2021237731A1 (en) Target detection method and device, and computer readable medium
US9270984B2 (en) Camera with dust checking function
CN109753886B (en) Face image evaluation method, device and equipment
WO2019109722A1 (en) Privacy shielding processing method, device, electronic apparatus, and storage medium
CN111982415A (en) Pipeline leakage detection method and device
TW201109808A (en) Method of using flash to assist detecting focal length
JP2021007055A (en) Discriminator learning device, discriminator learning method, and computer program
CN112347874A (en) Fire detection method, device, equipment and storage medium
CN113793291B (en) Image fusion method and device, electronic equipment and storage medium
US20240060822A1 (en) Method and apparatus for detecting fire spots, electronic device, and storage medium
CN110766745A (en) Method for detecting interference object in front of projector lens, projector and storage medium
KR102215055B1 (en) Method and apparatus for detecting dead pixel
JP2003259390A (en) White balance correction apparatus, imaging unit provided with the same, control method therefor, program for activating the control method, and storage medium stored with the program
JP2012226676A (en) Counting method for bar
CN111811663A (en) Temperature detection method and device based on video stream

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

Country of ref document: EP

Kind code of ref document: A1