Image processing device, gas flow rate estimation system, program, and gas flow rate estimation method
The image processing device corrects image positions and allows user-defined area specification to accurately estimate gas flow rates, addressing the challenges of handheld infrared camera use by ensuring precise alignment and area selection, thus enhancing estimation accuracy.
Patent Information
- Application Number
- PCT/JP2024/008698
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-26
AI Technical Summary
Existing gas flow rate estimation methods fail when using handheld infrared cameras, as they assume a fixed field of view, leading to incorrect estimates due to shifting image positions and difficulty in specifying the gas flow area, especially when the camera is moved during panning operations.
An image processing device and system that aligns image positions between time-series images and allows user specification of the gas flow area, using a correction unit and area input section to ensure accurate estimation by displaying a setting screen for area designation and performing blur correction to maintain image alignment.
This approach enables accurate gas flow rate estimation by correcting image positions and allowing precise area selection, improving the accuracy of gas flow rate calculations even when using handheld infrared cameras.
Smart Images

Figure JP2024008698_26092024_PF_FP
Abstract
Description
Image processing device, gas flow rate estimation system, program, and gas flow rate estimation method
[0001] The present invention relates to an image processing device that estimates a gas flow rate from time-series images, a gas flow rate estimation system, a program executed by a computer of the image processing device that estimates a gas flow rate from time-series images, and a gas flow rate estimation method.
[0002] As a technique for estimating the flow rate of leaked gas, a technique for estimating the gas flow rate based on a gas region included in an image has been proposed (see, for example, Patent Document 1).
[0003] The gas flow rate is estimated using an infrared image obtained by photographing a subject, including a monitoring target, with an infrared camera, or an image obtained by performing image processing to extract frequency components from the infrared image. In Patent Document 1, the gas transit time required for leaked gas to pass through the gas region is calculated using the average motion vector of the gas region included in the image. The gas volume in the gas region is also calculated using the gas concentration thickness product of the gas region. The estimated gas flow rate is then calculated using the gas transit time and gas volume.
[0004] International Publication No. WO2020 / 110411
[0005] Conventionally, infrared cameras have been designed to be fixed in place on a tripod, etc. However, in order to improve the efficiency of gas inspection work, users have been requesting handheld infrared cameras.
[0006] By capturing images with a fixed infrared camera, the image position of the gas region does not shift significantly between time-series images, such as a video. In contrast, when capturing images with a handheld infrared camera, the field of view may move when the camera is moved sideways, a process known as panning. However, when estimating flow rate using the method of Patent Document 1, processing is performed under the assumption that the field of view of the image does not move. Therefore, if flow rate estimation is performed using an image that tracks the field of view, an accurate estimate of the gas flow rate cannot be obtained.
[0007] In addition, to estimate the gas flow rate, the user is required to specify an area in the time-series images where the gas flow rate will be estimated. However, if the field of view moves, specifying the area becomes difficult.
[0008] The present invention has been made to solve such problems, and aims to provide an image processing device, a gas flow rate estimation system, a program, and a gas flow rate estimation method that enable the user to specify an area for estimating gas flow rate for time-series images that have been corrected to align the image positions.
[0009] In order to solve the above-mentioned problems, the present invention is an image processing device that estimates gas flow rates from time-series images, and is equipped with an image input unit that receives time-series images of a subject including a monitoring target, a correction unit that performs correction to align the image positions of the monitoring target between the time-series images, an area input unit that accepts the specification of an area for estimating gas flow rates, a display unit that displays a setting screen that accepts the specification of an area for estimating gas flow rates in the area input unit for the time-series images that have been corrected to align the image positions, and an estimation unit that estimates gas flow rates from the time-series images in which the area for estimating gas flow rates has been set.
[0010] The present invention also provides a gas flow estimation system comprising an infrared camera that photographs subjects including a monitoring target, and an image processing device that estimates a gas flow rate from time-series images photographed by the infrared camera, wherein the image processing device comprises an image input unit to which time-series images of subjects including a monitoring target photographed by the infrared camera are input, a correction unit that performs correction to align the image positions of the monitoring target between the time-series images, an area input unit that accepts designation of an area for estimating the gas flow rate, a display unit that displays a setting screen that accepts designation of an area for estimating the gas flow rate in the area input unit for the time-series images that have been corrected to align the image positions, and an estimation unit that estimates the gas flow rate from the time-series images in which the area for estimating the gas flow rate has been set.
[0011] Furthermore, the present invention is a program executed by a computer of an image processing device that estimates a gas flow rate from time-series images, and causes the computer to execute the following steps: inputting time-series images of a subject including a monitoring target; correcting the image positions of the monitoring target between the time-series images to align; accepting designation of an area for estimating the gas flow rate; displaying a setting screen that accepts designation of an area for estimating the gas flow rate for the time-series images that have been corrected to align the image positions; and estimating the gas flow rate from the time-series images in which the area for estimating the gas flow rate has been set.
[0012] The present invention also provides a gas flow rate estimation method that executes the steps of inputting time-series images of a subject including a monitoring target, correcting the image positions of the monitoring target between the time-series images to align them, accepting the designation of an area for estimating the gas flow rate, displaying a setting screen that accepts the designation of an area for estimating the gas flow rate for the time-series images that have been corrected to align the image positions, and estimating the gas flow rate from the time-series images in which the area for estimating the gas flow rate has been set.
[0013] According to the present invention, an area for estimating a gas flow rate can be specified for time-series images that have been corrected to align the image positions. This makes it easy to set a monitoring target in the image so that it falls within the area for estimating a gas flow rate. Furthermore, by estimating a gas flow rate from time-series images that have been corrected to align the image positions and in which an area for estimating a gas flow rate has been set, the accuracy of the gas flow rate estimation can be improved.
[0014] 1 is a block diagram showing a configuration of a gas flow rate estimation system according to an embodiment. FIG. 2 is a block diagram showing a hardware configuration of a gas flow rate estimation device. FIG. 3 is a flowchart showing an example of a gas flow rate estimation method according to an embodiment. FIG. 4 is an explanatory diagram showing an example of an image before and after blur correction. FIG. 5 is an explanatory diagram showing an example of an image before and after blur correction. FIG. 6 is an explanatory diagram showing an example of an image before and after blur correction. FIG. 7 is an explanatory diagram showing a relationship between another example of an image before and after blur correction and image processing. FIG. 8 is an explanatory diagram showing a relationship between another example of an image before and after blur correction and image processing. FIG. 9 is an explanatory diagram showing a relationship between another example of an image before and after blur correction and image processing. FIG. 10 is an explanatory diagram showing an example of an image in which blur correction has been properly performed between time-series images (infrared images). FIG. 11 is an explanatory diagram showing an example of an image in which edges have been extracted from images in which blur correction has been properly performed between time-series images. FIG. 12 is an explanatory diagram showing an example of an image in which edges have been extracted from images in which blur correction has been properly performed between time-series images. FIG. 13 is an explanatory diagram showing an example of an image in which blur correction has not been properly performed between time-series images (infrared images). 1 is an explanatory diagram showing an example of an image in which blur correction could not be performed correctly between time-series images (infrared images). FIG. 1 is an explanatory diagram showing an example of an image in which blur correction could not be performed correctly between time-series images (infrared images). FIG. 2 is an explanatory diagram showing an example of an image in which blur correction could not be performed correctly between time-series images (infrared images). FIG. 3 is an explanatory diagram showing an example of a setting screen. FIG. 4 is an explanatory diagram showing an example of an output of a determination result of whether blur correction is successful. FIG. 5 is an explanatory diagram showing an example of an output of a determination result of whether area input is successful. FIG. 6 is an explanatory diagram showing an example of an image (infrared image) in which a region in which gas was reflected is within the field of view and blur correction has been performed correctly. FIG. 7 is an explanatory diagram showing an example of an image (infrared image) in which a region in which gas was reflected is outside the field of view. FIG. 8 is an explanatory diagram showing an example of an image (gas image) in which a region in which gas was reflected is within the field of view and blur correction has been performed correctly. FIG. 9 is an explanatory diagram showing an example of an image (gas image) in which a region in which gas was reflected is outside the field of view. FIG. 10 is an explanatory diagram showing an example of an output of an estimation result of a gas flow rate. FIG. 11 is an explanatory diagram showing an example of an output when a gas flow rate cannot be estimated. FIG. 10 is an explanatory diagram showing an example of an infrared image from which a gas image is generated.FIG. 1 is an explanatory diagram showing an example of an infrared image from which a gas image is generated. FIG. 2 is an explanatory diagram showing an example of an infrared image from which a gas image is generated. FIG. 3 is an explanatory diagram showing an example of an image used to specify an area. FIG. 4 is an explanatory diagram showing an example of an image used to specify an area. FIG. 5 is an explanatory diagram showing an example of an image used to specify an area.
[0015] Hereinafter, a gas flow rate estimation device as an embodiment of an image processing device of the present invention will be described with reference to the drawings. Also, a gas flow rate estimation system, a program executed by a computer of the gas flow rate estimation device, and a gas flow rate estimation method of the present invention will be described.
[0016] 1A is a block diagram showing the configuration of a gas flow rate estimation system 1 according to this embodiment. The gas flow rate estimation system 1 includes an infrared camera 2, a gas flow rate estimation device 3, and an output unit 4. Note that the gas flow rate estimation device 3 may also be configured to include the infrared camera 2 and the output unit 4.
[0017] The infrared camera 2 captures infrared images, such as video, of a subject including a gas leak monitoring target, in a time series, and generates image data MD. The gas leak monitoring target is, for example, a location where gas transport pipes are connected. The infrared images may be a plurality of infrared images captured in time series and are not limited to video.
[0018] The infrared camera 2 includes an optical system 5, a filter 6, an image sensor 7, and a signal processing unit 8. The optical system 5 is a lens that forms an infrared image of a subject on the image sensor 7.
[0019] The filter 6 is disposed between the optical system 5 and the image sensor 7, and passes only infrared light of a specific wavelength out of the light that has passed through the optical system 5. The wavelength band of infrared light that the filter 6 passes depends on the type of gas to be detected. For example, in the case of methane, a filter 6 that passes infrared light in the wavelength band of 3.2 to 3.4 μm is used.
[0020] The imaging element 7 is a two-dimensional image sensor. The imaging element 7 is, for example, a cooled indium antimony (InSb) image sensor, and receives infrared light that has passed through the filter 6. The signal processing unit 8 converts the analog signal output from the imaging element 7 into a digital signal and performs known image processing. If the infrared image is a moving image, this digital signal becomes moving image data MD.
[0021] The gas flow rate estimation device 3 is an example of an image processing device, and is a personal computer, a smartphone, a tablet terminal, etc. The gas flow rate estimation device 3 includes, as functional blocks, an image data input unit 9, a shake correction unit 10, a shake correction pass / fail determination unit 11, an image / warning display unit 12, an area input unit 13, an area pass / fail determination unit 14, and a gas flow rate estimation unit 15.
[0022] The image data input unit 9 is an example of an image input unit, and is a communication interface that communicates with a communication unit (not shown) of the infrared camera 2. The image data input unit 9 receives image data MD sent from the infrared camera 2. The image data input unit 9 sends the image data MD to the shake correction unit 10.
[0023] The image stabilization unit 10 is an example of a correction unit that performs correction to align the image positions of the image data MD and generates corrected image data MD1. The image stabilization unit 10 aligns the image positions of each frame if the image data MD is a video, or aligns the image positions of each still image if the image data MD is a still image captured in time series. The correction to align the image positions of the image data MD uses, for example, a method described in International Publication No. WO2017 / 179510 A1, filed by the same applicant as the present invention.
[0024] The blur correction pass / fail judgment unit 11 is an example of a correction pass / fail judgment unit, and judges whether the image positions are aligned for corrected image data MD1 that has been subjected to blur correction that aligns image positions. The blur correction pass / fail judgment unit 11 judges whether the image positions are aligned for each frame if the image data MD is a moving image, or for each still image if the image data MD is still images captured in time series.
[0025] The image / warning display unit 12 is an example of a display unit or a warning unit, and displays a setting screen for accepting designation of an area for estimating a gas flow rate for the corrected image data MD1 on the output unit 4. When it is determined that the corrected image data MD1 contains an image whose image position is not aligned beyond a predetermined threshold, the image / warning display unit 12 displays a warning on the setting screen.
[0026] The area input unit 13 accepts the designation of an area for estimating a gas flow rate from the corrected image data MD1. The area pass / fail determination unit 14 determines whether an image exists in the set area. If it is determined that an image does not exist in the set area, the image / warning display unit 12 displays a warning on the setting screen.
[0027] The gas flow rate estimation unit 15 is an example of an estimation unit, and uses the corrected data MD1 to calculate an estimated gas flow rate for an image within a set area. The gas flow rate is estimated, for example, using a method described in International Publication No. WO2020 / 110411 A1, filed by the same applicant as the present invention. International Publication No. WO2020 / 110411 A1 calculates the gas transit time for leaked gas to pass through the gas region using the average motion vector of the gas region included in the image. Furthermore, the gas volume in the gas region is calculated using the gas concentration thickness product of the gas region. Then, the estimated gas flow rate is calculated using the gas transit time and gas volume.
[0028] 1A. The gas flow rate estimation device 3 includes a CPU (Central Processing Unit) 3a, which is an example of a computer. The gas flow rate estimation device 3 also includes a RAM (Random Access Memory) 3b, a ROM (Read Only Memory) 3c, a HDD (Hard Disk Drive) 3d, a display 3e, a communication interface 3f, a keyboard 3g, and a bus 3h connecting these components.
[0029] The display 3e is hardware that realizes the output unit 4. The display 3e is, for example, a liquid crystal display. Instead of a liquid crystal display, the display 3e may be an organic light emitting diode (EL) display, a plasma display, or the like.
[0030] The communication interface 3f is hardware that realizes the image data input unit 9. The keyboard 3g is hardware that realizes the area input unit 13. A touch panel or a mouse may be used instead of the keyboard.
[0031] The HDD 3d, which serves as a storage unit, stores programs for implementing the respective functional blocks of the motion compensation unit 10, motion compensation pass / fail determination unit 11, image / warning display unit 12, area input unit 13, area pass / fail determination unit 14, and gas flow rate estimation unit 15. The HDD 3d also stores various data such as image data MD and corrected image data MD1.
[0032] The program that realizes the shake correction unit 10 is a program that acquires image data MD, performs correction to align the image positions of the image data MD, and generates corrected image data MD1. The program that realizes the shake correction pass / fail determination unit 11 is a program that determines whether the image positions of the corrected image data MD1 that has been subjected to shake correction to align the image positions are aligned.
[0033] The program realizing the image / warning display unit 12 is a program that displays on the display 3 e a setting screen that accepts designation of an area for estimating a gas flow rate for the corrected image data MD1. The program realizing the image / warning display unit 12 is also a program that displays a warning on the setting screen when it is determined that the corrected image data MD1 contains an image whose image position is misaligned beyond a predetermined threshold.
[0034] The program realizing the area input unit 13 is a program that accepts the designation of an area for estimating the gas flow rate for the corrected image data MD1. The program realizing the image / warning display unit 12 displays a warning on the setting screen when it is determined that no image exists in the set area.
[0035] The program that realizes the gas flow rate estimation unit 15 is a program that uses the corrected data MD1 to obtain an estimated value of the gas flow rate for an image within a set area.
[0036] These programs are pre-stored in the HDD 3d, but are not limited to this. For example, a storage medium storing these programs may be prepared, and the programs stored in this storage medium may be stored in the HDD 3d. The storage medium storing these programs is, for example, an external storage medium such as a magnetic disk, an optical disk, or an SSD (Solid State Drive). Alternatively, these programs may be stored in a server connected to the gas flow rate estimation device 3 via a wired or wireless network, and may be sent to the HDD 3d via the network and stored in the HDD 3d. These programs may be stored in the ROM 3c instead of the HDD 3d. The gas flow rate estimation device 3 may be provided with a flash memory instead of the HDD 3d, and these programs may be stored in the flash memory.
[0037] The CPU 3a reads these programs from the HDD 3d, loads them into the RAM 3b, and executes the loaded programs. This realizes a motion compensation unit 10, a motion compensation pass / fail determination unit 11, an image / warning display unit 12, an area input unit 13, an area pass / fail determination unit 14, and a gas flow rate estimation unit 15. However, some or all of these functions may be realized by processing by a DSP (Digital Signal Processor) instead of or in addition to processing by the CPU 3a. Similarly, some or all of the functions may be realized by processing by a dedicated hardware circuit instead of or in addition to software processing.
[0038] <Operational Example of Gas Flow Rate Estimation Device, Gas Flow Rate Estimation System, and Program According to This Embodiment> Fig. 2 is a flowchart showing an example of a gas flow rate estimation method according to this embodiment. Next, an operation example of the gas flow rate estimation method, the gas flow rate estimation system 1, the gas flow rate estimation device 3, and the program executed by the gas flow rate estimation device 3 will be described.
[0039] 2, the image stabilization unit 10 performs correction to align the image positions of the image data MD and generates corrected image data MD1. In step SA1, the image stabilization pass / fail determination unit 11 determines whether the image positions of the corrected image data MD1 are aligned using a program executed by the CPU 3a.
[0040] In step SA2, the image / warning display unit 12 displays a setting screen on the output unit 4 (display 3e) according to a program executed by the CPU 3a. If the image / warning display unit 12 determines that the corrected image data MD1 contains images whose image positions are not aligned beyond a predetermined threshold, it displays a warning on the setting screen.
[0041] In step SA3, the area input unit 13 receives a designation of an area for estimating a gas flow rate from the corrected image data MD1 according to a program executed by the CPU 3a. The area pass / fail determination unit 14 determines whether an image exists in the designated area. If it is determined that an image does not exist in the designated area, the image / warning display unit 12 displays a warning on the setting screen.
[0042] In step SA4, the gas flow rate estimation unit 15 uses the corrected data MD1 according to the program executed by the CPU 3a to obtain an estimated value of the gas flow rate for the image within the set area.
[0043] The operation will be described in detail below. Figures 3A, 3B, and 3C are explanatory diagrams showing examples of images before and after blur correction. Figure 3A shows image data MD before correction, and Figure 3B shows corrected image data MD1. Figure 3C shows, as a comparative example, image data corrected by a conventional correction method.
[0044] 3A shows an example of image data MD before correction, in which blurring due to movement of the photographing field of view occurs between the initial image data MD(1) and image data MD(m) m seconds later. Also, blurring due to movement of the photographing field of view occurs between image data MD(m) m seconds later and image data MD(n) n seconds later (n>m).
[0045] 3B shows an example in which the image stabilization pass / fail judgment unit 11 generates corrected image data MD1 using the technique described in International Publication No. WO2017 / 179510 A1. In FIG. 3B, the image position of the corrected image data MD1(m) after m seconds has been corrected to align with the image position of the initial corrected image data MD1(1). Furthermore, the image position of the corrected image data MD1(n) after n seconds has been corrected to align with the image position of the corrected image data MD1(m) after m seconds. This means that even if the infrared camera 2 is moved using a so-called panning operation when capturing an infrared image, the image positions can be aligned in the corrected image data MD1.
[0046] In contrast, conventional correction methods perform correction to remove vibration noise caused by camera shake. However, as shown in Figure 3C, blur (image position shift) due to movement of the field of view remains between the initial corrected image data MD2(1) and the corrected image data MD2(m) obtained m seconds later. Furthermore, because the corrected image data MD2(m) obtained m seconds later and the corrected image data MD2(n) obtained n seconds later are displayed in accordance with the field of view, blur (image position shift) due to movement of the field of view remains.
[0047] 4A, 4B, and 4C are explanatory diagrams showing other examples of images before and after blur correction and the relationship between the image processing. Fig. 4A shows pre-correction image data MD3, and Fig. 4B shows corrected image data MD4. Fig. 4C shows corrected image data MD5 that has been processed using, for example, the method described in Japanese Patent No. 6245418, which was filed and registered by the same applicant as the present invention.
[0048] 4A, it is assumed that there is no blurring due to the tilt of the infrared camera 2 between the initial image data MD3(1) and the image data MD3(m) m seconds later. In contrast, it is assumed that there is blurring due to the tilt of the infrared camera 2 between the image data MD3(m) m seconds later and the image data MD3(n) n seconds later (n>m).
[0049] 4B shows an example in which the image stabilization pass / fail judgment unit 11 generates corrected image data MD4 using the method described in International Publication No. WO2017 / 179510 A1. In FIG. 4B, it is assumed that there is no blurring due to tilt of the infrared camera 2 between the initial image data MD4(1) and the image data MD4(m) m seconds later. However, FIG. 4B shows a case in which the image position of the corrected image data MD4(n) n seconds later was not correctly aligned with the image position of the corrected image data MD4(m) m seconds later.
[0050] Consider a case where gas amount estimation is performed using an image (referred to as a gas image) generated by performing image processing on an infrared image using the method described in Japanese Patent No. 6245418. In this method, a gas image is generated by removing specific frequency components from the infrared image.
[0051] The corrected image data MD5(1) obtained by image processing the initial corrected image data MD4(1) using the same method is displayed so that the gas portion G appears white, making it possible to distinguish it from other parts, as shown in Figure 4C. The corrected image data MD5(m) obtained by image processing the corrected image data MD4(m) obtained m seconds later using the same method is also displayed so that the gas portion G appears white.
[0052] However, when the corrected image data MD4(n) obtained after n seconds is image-processed using the same method to obtain corrected image data MD5(n), even areas other than gas appear white. This is because the method described in Patent No. 6245418 extracts temporal changes in pixel values (temperature values) assuming that the field of view does not move. Since blurring remains in the corrected image data MD4(n) obtained after n seconds compared to the corrected image data MD4(m) obtained after m seconds, even areas other than gas appear to change over time in apparent pixel values. Therefore, in the corrected image data MD5(n), even areas other than gas appear white. Using such a gas image to estimate the amount of gas will result in an inaccurate estimation of the amount of gas.
[0053] In contrast, consider a case where the image position of the corrected image data MD1(n) after n seconds is corrected to align with the image position of the corrected image data MD1(m) after m seconds, as shown in FIG. 3B. In this case, there is no apparent change in pixel value over time even in areas other than gas. As a result, the gas area is displayed as white. Using such a gas image to estimate the amount of gas can accurately estimate the amount of gas.
[0054] Furthermore, in flow rate estimation using the method described in International Publication No. WO2020 / 110411 A1, it is necessary to estimate the concentration-thickness product using, for example, the method described in Japanese Patent No. 6344533. This process refers to time changes under the assumption that the field of view does not move, so an incorrect concentration-thickness product is estimated, and as a result, an incorrect flow rate estimate is output. Therefore, if shake correction fails due to a large shake or other reason, it is necessary to detect the failure and warn the user to hold the device firmly or to prevent an incorrect flow rate estimate from being output.
[0055] Therefore, it is necessary to determine whether or not the blur correction has been performed correctly and to notify the result.
[0056] Therefore, the image blur correction quality determination unit 11 determines whether the image positions are aligned for the corrected image data MD1. Furthermore, if the image / warning display unit 12 determines that the corrected image data MD1 contains images whose image positions are not aligned beyond a predetermined threshold, it displays a warning on the settings screen. This makes it possible to prevent gas flow rate estimation using images for which the image blur correction has not been performed correctly.
[0057] Next, a method for determining blur by the blur correction quality determination unit 11 will be described. Figures 5A and 5B are explanatory diagrams showing an example of an image in which blur correction has been performed correctly between time-series images (infrared images). Figures 5C and 5D are explanatory diagrams showing an example of an image in which edges have been extracted from an image in which blur correction has been performed correctly between time-series images. Figures 6A and 6B are explanatory diagrams showing an example of an image in which blur correction has not been performed correctly between time-series images (infrared images). Figures 6C and 6D are explanatory diagrams showing an example of an image in which edges have been extracted from an image in which blur correction has not been performed correctly between time-series images.
[0058] Assume that gas flow rate estimation is performed using image data for every 5 seconds of a video. Fig. 5A shows a corrected image MD6(1) of the first frame of a 5-second video, and Fig. 5B shows a corrected image MD6(5) of the last frame of the same 5-second video. Fig. 5C shows a corrected image MD7(1) obtained by extracting edges from the corrected image MD6(1) of Fig. 5A. Fig. 5D shows a corrected image MD7(5) obtained by extracting edges from the corrected image MD6(5) of Fig. 5B.
[0059] Fig. 6A shows a corrected image MD8(1) of the first frame of a five-second video, and Fig. 6B shows a corrected image MD8(5) of the last frame of the same five-second video. Fig. 6C shows a corrected image MD9(1) obtained by extracting edges from the corrected image MD7(1) of Fig. 6A. Fig. 6D shows a corrected image MD9(5) obtained by extracting edges from the corrected image MD7(5) of Fig. 6B.
[0060] The method for determining blur is to determine whether the first and last frames of a 5-second period are similar by calculating the similarity using template matching. The similarity is determined using a method such as NCC (Normalized Cross-Correlation) as shown in the following equation (1), and the presence of blur is determined based on a threshold value.
[0061]
[0062] The infrared images shown in Figures 5A, 5B, 6A, and 6B may be used directly to determine blurring. Alternatively, to make it easier to compare differences, a spatial differential filter may be applied, and edge-extracted images may be template-matched, as shown in Figures 5C, 5D, 6C, and 6D.
[0063] Here, the NCC method is used to compare images after edge extraction. When the difference between the images is as large as that between the infrared images shown in FIGS. 5A and 5B, the similarity R calculated by the NCC method using the edge-extracted images shown in FIGS. 5C and 5D is NCC was 0.979. In the NCC method, a perfect match results in a similarity of 1.0. For example, if the threshold is set to 0.7, it can be determined that blur correction has been performed correctly in the relationship between Figures 5A and 5B.
[0064] In contrast, when the difference between the infrared images is as large as that between FIGS. 6A and 6B, the similarity R calculated by the NCC method using the edge-extracted images shown in FIGS. 6C and 6D is NCC was 0.377. For example, if the threshold is set to 0.7, it can be determined that blur correction has not been performed correctly in the relationship between Figures 6A and 6B. Note that template matching is not limited to NCC, and other methods such as ZNCC (Zero-mean Normalized Cross-Correlation) and SAD (Sum of Absolute Difference) may also be used.
[0065] Next, a description will be given of an example of the setting screen 50 displayed by the image / warning display unit 12. Fig. 7A is an explanatory diagram showing an example of the setting screen.
[0066] The setting screen 50, which accepts the designation of the area for gas flow rate estimation, includes an image display section 51 on which the corrected image MD10 and the like are displayed. The corrected image MD10 displays a gas image generated by performing image processing on an infrared image using the technique described in Japanese Patent No. 6245418, but an infrared image may also be used. The setting screen 50 also includes a time display section 52 that displays the elapsed time of the corrected image MD10 being reproduced. The setting screen 50 also includes a condition setting section 53 in which conditions such as the distance to the location where gas flow rate estimation is performed, the type of gas, and the temperature are set. The setting screen 50 also includes an operation guidance section 54 that prompts the user to designate the area for gas flow rate estimation. The setting screen 50 also includes a result display section 55 that displays the results of the gas flow rate estimation.
[0067] The image / warning display unit 12 displays this setting screen 50 on the output unit 4 (display 3e).
[0068] Next, an example of area designation by the area input unit 13 using the setting screen 50 will be described. The user follows the guidance of the operation guidance unit 54 to designate an area using a frame 56 on the corrected image MD10 displayed on the image display unit 51 so as to include an area for estimating the gas flow rate. The area input unit 13 displays the frame 56 designated by the user on the image display unit 51 of the setting screen 50. The corrected image MD10 may be a video or a still image displayed in chronological order. For example, the frame 56 is applied to all frames of a video of t seconds in the same range. Furthermore, the frame 56 is applied to all k still images in the same range.
[0069] The user also specifies the temperature, shooting distance, and gas type in the condition setting unit 53, and presses the start button 57. When the start button 57 is pressed, the gas flow rate estimation unit 15 performs a gas flow rate estimation process, and the result of the gas flow rate estimation is displayed on the result display unit 55.
[0070] Next, a description will be given of an example of a warning output by the shake correction pass / fail determination unit 11 using the setting screen 50. Fig. 7B is an explanatory diagram showing an example of an output result of the determination of the pass / fail of shake correction.
[0071] The image stabilization pass / fail judgment unit 11 judges the pass / fail of the image stabilization by calculating the similarity of the corrected image data having an arbitrary time difference by template matching. When the image / warning display unit 12 determines that the corrected image data contains an image whose image position is not aligned beyond a predetermined threshold, it displays a warning on the setting screen 50, as shown in FIG. 7B .
[0072] A warning that the shake correction is not being performed correctly is given, for example, by displaying a warning frame 58 of a predetermined color on the corrected image MD10 on the image display unit 51.
[0073] The image / warning display unit 12 displays a warning frame 58 in a warning color, for example, red, on the image display unit 51 for the corrected image MD10 for which the blur correction quality determination unit 11 has determined that blur correction has not been performed correctly.
[0074] While a corrected image determined to have not been corrected correctly is being displayed during repeated playback of a video of corrected images, the image / warning display unit 12 displays a red warning frame 58. For example, if a corrected image determined to have not been corrected correctly continues for five seconds in the video, the image / warning display unit 12 displays a red warning frame 58 for that five seconds. If the warning frame 58 is displayed for most of the time during playback of the corrected image video, for example, for 25 seconds out of a 30-second video, the user can determine that re-shooting is necessary.
[0075] The warning that the shake correction is not being performed correctly is not limited to the warning frame 58. For example, a message may be displayed on the setting screen 50 to advise the user to hold the infrared camera 2 firmly while taking a picture.
[0076] Next, an example of a warning output by the area pass / fail determination unit 14 will be described. FIG. 7C is an explanatory diagram showing an example of an output result of a determination of the pass / fail of an area input. FIG. 8A is an explanatory diagram showing an example of an image (infrared image) in which the area in which gas was captured is within the field of view and the image blur correction has been performed correctly, and FIG. 8B is an explanatory diagram showing an example of an image (infrared image) in which the area in which gas was captured is outside the field of view because the camera was panned to the right. FIG. 9A is an explanatory diagram showing an example of an image (gas image) in which the area in which gas was captured is within the field of view and the image blur correction has been performed correctly, and FIG. 9B is an explanatory diagram showing an example of an image (gas image) in which the area in which gas was captured is outside the field of view because the camera was panned to the right.
[0077] Compared to the corrected image MD10(1) shown in Figure 8A, the corrected image MD10(2) shown in Figure 8B was captured by panning to the right, so the area in which the gas was captured is outside the field of view and blur correction has been performed. Therefore, Figure 8B does not include an image containing the target for gas leak monitoring. As a result, the corrected image MD10(10), which is a gas image shown in Figure 9A generated from the infrared image shown in Figure 8A, includes an image containing the target for gas leak monitoring. In contrast, the corrected image MD10(20), which is a gas image shown in Figure 9B generated from the infrared image shown in Figure 8B, does not include an image containing the target for gas leak monitoring.
[0078] 7C shows an example in which an area for estimating a gas flow rate is specified by a frame 56 on the setting screen 50 for the corrected image MD10 (20) shown in FIG. 9B. In this case, the area pass / fail determination unit 14 determines that the corrected image MD10 including a target for gas leak monitoring is not present within the area specified by the frame 56 on the setting screen 50. When it is determined that an image including a target for gas leak monitoring is not present within the set area, the image / warning display unit 12 displays a warning on the setting screen 50 as shown in FIG. 7C.
[0079] A warning that an image does not exist within the set area is given, for example, by displaying a warning frame 59 of a predetermined color different from the color used for the blur correction on the corrected image MD10 on the image display unit 51.
[0080] For the corrected image MD10 for which the area pass / fail determination unit 14 has determined that no image exists within the set area, the image / warning display unit 12 displays, for example, a yellow warning frame 59 as a warning color on the image display unit 51. The image / warning display unit 12 displays the yellow warning frame 59 while the corrected image for which it has been determined that no image exists within the set area is being displayed during repeated playback of the moving image of the corrected image.
[0081] The warning that an image does not exist within the set area is not limited to the warning frame 59. For example, a message indicating that the image is out of the field of view may be displayed on the setting screen 50.
[0082] When an area for estimating the gas flow rate is specified by a frame 56 on the setting screen 50 for the corrected image MD10(10) shown in Fig. 9A, the output will be similar to the example shown in Fig. 7A. In this case, the area pass / fail determination unit 14 determines that the corrected image MD10 exists within the area specified by the frame 56 on the setting screen 50. When it is determined that an image exists in the set area, the image / warning display unit 12 does not display a warning on the setting screen 50, as shown in Fig. 7A.
[0083] Next, an example of output of the gas flow rate estimation result by the gas flow rate estimation unit 15 will be described. Fig. 10A is an explanatory diagram showing an example of output of the gas flow rate estimation result, and Figs. 10B and 10C are explanatory diagrams showing output examples when the gas flow rate cannot be estimated. Also, Figs. 11A, 11B, and 11C are explanatory diagrams showing examples of the original infrared image from which the gas image used to estimate the gas flow rate was generated.
[0084] Consider the case where the target for gas flow rate estimation is a corrected image MD20(1) in which image blur correction has been performed correctly and an image including a target for gas leak monitoring is included, as shown in Fig. 11A. In this case, the target for gas leak monitoring is included within the area specified by the frame 56, as shown in the corrected image MD10(1) in Fig. 10A.
[0085] Furthermore, in the case of a gas image generated by performing image processing on an infrared image using the technique described in Japanese Patent No. 6245418, the gas portion appears white, as described above.
[0086] As a result, the image blur correction was performed correctly, and the gas portion is prominent in the corrected image MD10(1), in which the image including the target for gas leak monitoring is present within the area designated by the frame 56. Therefore, the gas flow rate can be estimated using, for example, the method described in International Publication No. WO2020 / 110411 A1.
[0087] Therefore, if it is determined that the image includes a target for gas leak monitoring after the image blur correction has been performed correctly, and the start button 57 is pressed, estimation is performed by the gas flow rate estimation unit 15. Then, the image / warning display unit 12 displays the estimated amount of gas on the result display unit 55, as shown in FIG.
[0088] Consider the case where the target for gas flow rate estimation is a corrected image MD20(2) that is missing enough to include no image of the target for gas leak monitoring, as shown in Fig. 11B In this case, as in the corrected image MD10(2) shown in Fig. 10B , no target for gas leak monitoring exists within the area specified by the frame 56.
[0089] Therefore, the gas flow rate estimation unit 15 cannot correctly estimate the gas flow rate for the corrected image MD10(2) in which it is determined that there is no image including a target for monitoring gas leaks.
[0090] Therefore, even if start button 57 is pressed, if it is determined that there is no image including a target for gas leak monitoring, estimation is not performed by gas flow rate estimation unit 15. Then, image / warning display unit 12 displays on result display unit 55 a message that the gas amount cannot be estimated, as shown in FIG.
[0091] Consider the case where the target of gas flow rate estimation is a corrected image MD20(3) for which blur correction was not performed correctly, as shown in Fig. 11C. In this case, the gas image generated from the infrared image will appear white, not only in the gas area but also in the non-gas area, as in the corrected image MD10(3) shown in Fig. 10C.
[0092] Therefore, the gas flow rate estimation unit 15 cannot correctly estimate the gas flow rate for the corrected image MD10(3) for which it is determined that the blur correction has not been performed correctly.
[0093] Therefore, even if start button 57 is pressed, if it is determined that blur correction has not been performed correctly, estimation is not performed by gas flow rate estimation unit 15. Then, image / warning display unit 12 displays on result display unit 55 a message that the gas amount cannot be estimated, as shown in Fig. 10C.
[0094] In the gas flow rate estimation process described above, the estimated value is updated for each 5 seconds of corrected image data for which a flow rate is estimated, for example, on the setting screen 50, which repeatedly plays back a video. If the estimation is correct with the area determination and blur determination being OK, the estimated value is displayed and updated as shown in Figure 10A. If the area determination or blur determination is NG for the relevant 5 seconds, a message indicating that the estimation was not possible is displayed as shown in Figures 10B and 10C.
[0095] Next, a description will be given of images used to specify an area by the area input unit 13 using the setting screen 50. Figures 12A, 12B, 12C, and 12D are explanatory diagrams showing examples of images used to specify an area.
[0096] In the case of the gas image MD30(2) shown in FIG. 12B, which was generated by performing image processing on the infrared image MD30(1) shown in FIG. 12A using the method described in Japanese Patent No. 6245418, the gas portion appears white, as described above. Therefore, when designating an area, it is easy to visually identify the target for gas leak monitoring. Therefore, although the above example describes area designation using a gas image, other images may also be used. In the infrared image MD30(1) shown in FIG. 12A and the temperature image MD30(3) shown in FIG. 12C, gas can be visually identified when the gas concentration is very high. Furthermore, the difference image MD30(4) shown in FIG. 12D displays, for example, a time difference (difference between frames 0.2 seconds apart) of the infrared image MD30(1). Furthermore, a gas image may be displayed as an image for designating an area, and at least one of the infrared image, temperature image, and difference image may be displayed for reference. The temperature image MD30(3) shown in Figure 12C is originally a color image, with high temperature areas indicated in red and low temperature areas indicated in blue. However, here, a grayscale image is used instead of a color image.
[0097] The present invention can be used in an image processing device and a gas flow rate estimation system that estimate a gas flow rate from time-series images, and also in a program executed by a computer of an image processing device that estimates a gas flow rate from time-series images and a gas flow rate estimation method.
[0098] 1...Gas flow rate estimation system, 2...Infrared camera, 3...Gas flow rate estimation device (image processing device), 3a...CPU (computer), 3b...RAM, 3c...ROM, 3d...HDD, 3e...Display, 3f...Communication interface, 3g...Keyboard, 3h...Bus, 4...Output unit, 5...Optical system, 6...Filter, 7...Imaging element, 8...Signal processing unit, 9...Image data input unit, 10...Shake correction unit, 11...Shake correction pass / fail judgment unit, 12...Image / warning display unit, 13...Area input unit, 14...Area pass / fail judgment unit, 15...Gas flow rate estimation unit
Claims
1. An image processing device that estimates a gas flow rate from time-series images, comprising: an image input unit that receives input of time-series images of a subject including a monitoring target; a correction unit that performs correction to align the image positions of the monitoring target between the time-series images; an area input unit that accepts designation of an area for estimating the gas flow rate; a display unit that displays a setting screen that accepts designation of an area for estimating the gas flow rate from the time-series images that have been corrected to align the image positions via the area input unit; and an estimation unit that estimates the gas flow rate from the time-series images in which the area for estimating the gas flow rate has been set.
2. The image processing device according to claim 1, further comprising a correction quality determination unit that determines whether the image positions of time-series images that have been corrected to align their image positions are aligned.
3. The image processing device according to claim 2, further comprising a warning unit that outputs a warning when it is determined that the image positions of time-series images that have been corrected to align the image positions are not aligned.
4. The image processing device according to claim 3, wherein the estimation unit does not execute estimation of the gas flow rate when it is determined that the image positions of the time-series images that have been corrected to align the image positions are not aligned.
5. The image processing device according to claim 2, wherein the correction pass / fail determination unit performs template matching on the time-series images and determines whether the image positions of the time-series images that have been corrected to align the image positions are aligned.
6. The image processing device according to claim 1, further comprising an area pass / fail determination unit that determines whether or not a time-series image that has been corrected to align image positions is present in an area that is set for estimating a gas flow rate.
7. The image processing device according to claim 6, further comprising a warning unit that outputs a warning when it is determined that the time-series images that have been corrected to align the image positions are not present in an area set for estimating a gas flow rate.
8. The image processing device according to claim 6, wherein the estimation unit does not perform gas flow rate estimation when it determines that a time series of images that have been corrected to align image positions are not present in an area set for gas flow rate estimation.
9. The image processing device according to claim 1, wherein the display unit displays on the setting screen at least one of an infrared image, an image processed to extract frequency components from an infrared image, an image obtained by performing inter-frame difference calculations on a video, or an image converted into temperature as a time-series image that has been corrected to align image positions.
10. A gas flow estimation system comprising: an infrared camera which photographs subjects including a monitoring target; and an image processing device which estimates a gas flow rate from time-series images photographed by the infrared camera, wherein the image processing device comprises: an image input unit which receives input of time-series images of subjects including a monitoring target photographed by the infrared camera; a correction unit which performs correction to align image positions of the monitoring target between the time-series images; an area input unit which accepts designation of an area for estimating a gas flow rate; a display unit which displays a setting screen which accepts designation of an area for estimating a gas flow rate by the area input unit for the time-series images which have been corrected to align the image positions; and an estimation unit which estimates a gas flow rate from the time-series images in which the area for estimating a gas flow rate has been set.
11. A program executed by a computer of an image processing device that estimates a gas flow rate from time-series images, the program causing the computer to execute the following steps: inputting time-series images of a subject including a monitoring target; correcting the image positions of the monitoring target between the time-series images to align; accepting designation of an area for estimating the gas flow rate; displaying a setting screen that accepts designation of an area for estimating the gas flow rate for the time-series images that have been corrected to align the image positions; and estimating the gas flow rate from the time-series images in which the area for estimating the gas flow rate has been set.
12. A gas flow rate estimation method comprising the steps of: inputting a time series of images of a subject including a monitoring target; correcting the image positions of the monitoring target between the time series images to align; accepting designation of an area for estimating gas flow rate; displaying a setting screen for accepting designation of an area for estimating gas flow rate for the time series images that have been corrected to align the image positions; and estimating the gas flow rate from the time series images in which the area for estimating gas flow rate has been set.
Citation Information
Patent Citations
Gas detection image processing apparatus, gas detection image processing method, and gas detection image processing program
JP6245418B2
Image processing device, image processing method, image processing program, and gas detection system
WO2017179510A1
Method for measuring gas flow rate in blast furnace
JP1996325614A
Blood flow velocity measuring apparatus
JP2003164431A
Image processing system for gas detection, image processing method for gas detection, and image processing program for gas detection
JP2019184485A
