Background
The heating facility can directly install the stove generating heat in the heating facility by a method of heating heat in a certain space; or the air in the air can be pumped out and then sent back after being heated; it is also possible that an object in which the device is kept at a higher temperature, gives off heat to the space in which it is located. Such higher temperature objects are called heating radiators. In order to keep the heating radiator continuously emitting heat, a preheated fluid can be continuously passed through the radiator. This fluid is typically steam or hot water, referred to as the "heating medium". The heating medium is heated by a heat generating, collecting or exchanging device (heat source) provided outside the space, and then distributed to the respective heating radiators by a heating pipe. After a part of heat carried by the heating medium is transferred to the radiator, the heating medium flows back to the heat source through the return pipeline and is reheated. The heat medium circulates circularly to transfer the heat to the heated space continuously.
A typical heating plant is composed of a heat source, a heat medium pipe, and a heating radiator. These three basic components may sometimes be simplified, combined, or omitted. For example, a heat source for furnace heating and a heat emitter are combined, and a heat medium circulation pipe is not required. The fire pool heating is simpler, the glowing fuel and combustion products are used for releasing heat to the heated space, and a heat radiator is not provided.
Disclosure of Invention
In order to solve the technical problem that the current heating facility cannot automatically detect the water leakage state, the invention provides a heating facility water leakage state double-stage inspection system, which carries out instant alarm operation when detecting that water stains exist in heating equipment, wherein a background matching mode is adopted to determine whether the output image of a visible light camera changes the position due to the dislocation of the visible light camera, and more importantly, a self-adjusting unit is arranged in the visible light camera to automatically recover the position according to the change condition of the position; a double-stage filtering mode and a self-adaptive binarization threshold value adjusting mode are adopted, so that the image preprocessing effect is improved; and determining the time and the times of contrast improvement processing on the high-definition images based on the preliminary detection result of the target number of the images, thereby avoiding the waste of operation resources.
According to an aspect of the present invention, there is provided a heating facility water leakage state two-stage checking system, the system comprising:
the first flow detection equipment is arranged at the water inlet pipe of the heating facility and used for detecting the current flow of the water inlet pipe to be output as a first flow; the second flow detection equipment is arranged at a water outlet pipe of the heating facility and used for detecting the current flow of the water outlet pipe to be output as a second flow; the water leakage early warning equipment is respectively connected with the first flow detection equipment and the second flow detection equipment, and is used for calculating the excess of the first flow exceeding the second flow and sending water leakage early warning information when the excess is larger than or equal to a limited amount; the visible light camera is used for sensing visible light image data facing the heating facility so as to output a corresponding current visible light image; the infrared measuring instrument comprises an infrared transmitting unit, an infrared receiving unit and a microcontroller, wherein the infrared transmitting unit is positioned on the visible light camera and used for vertically and downwardly transmitting infrared signals, the infrared receiving unit is positioned beside the infrared transmitting unit and used for receiving the reflected infrared signals, and the microcontroller is respectively connected with the infrared transmitting unit and the infrared receiving unit and used for determining the real-time vertical position of the visible light camera based on the transmitting time of the infrared transmitting unit and the receiving time of the infrared receiving unit; the trigger starting device is connected with the infrared measuring instrument and used for sending a starting control signal when the real-time vertical position deviates from a preset vertical position and exceeds the limit, and also used for sending a closing control signal when the real-time vertical position deviates from the preset vertical position and does not exceed the limit; the pixel value matching device is respectively connected with the trigger starting device and the visible light camera, and is used for performing background extraction on the current visible light image to obtain a real-time background image when the starting control signal is received, matching the real-time background image with a preset background image, sending a matching failure signal when the matching degree is smaller than a preset percentage threshold value, and sending a matching success signal when the matching degree is larger than or equal to the preset percentage threshold value; the recursive filtering equipment is connected with the visible light camera and used for receiving the current visible light image and executing self-adaptive recursive filtering processing on the current visible light image so as to obtain and output a recursive filtering image; the wiener filtering equipment is connected with the recursive filtering equipment and used for receiving the recursive filtering image and executing wiener filtering processing with different dynamics based on the noise amplitude in the recursive filtering image so as to obtain a corresponding wiener filtering image; the intelligent blocking equipment is connected with the wiener filtering equipment and used for receiving the wiener filtering image, determining the fuzzy degree of the wiener filtering image and blocking the wiener filtering image based on the fuzzy degree of the wiener filtering image so as to obtain a plurality of image blocks with the same size; the parameter adjusting device is connected with the intelligent block device and used for receiving the image blocks and executing the following processing to each image block: acquiring a binarization threshold of the image blocks based on an OTSU algorithm, acquiring each binarization threshold of each image block in the neighborhood of the image blocks based on the OTSU algorithm, adjusting the binarization thresholds of the image blocks based on each binarization threshold of each image block in the neighborhood of the image blocks to obtain adjusted thresholds of the image blocks, and outputting the adjusted thresholds of the image blocks; in the parameter adjustment device, adjusting the binarization threshold of the image block based on each binarization threshold of each image block in the image block neighborhood to obtain an adjusted threshold of the image block includes: the higher the matching degree of the image block neighborhood image block and the image block is, the greater the influence degree of the image block neighborhood image block on the binarization threshold value of the image block is; a binarization executing device connected with the parameter adjusting device and used for receiving the plurality of image blocks and the adjusted threshold value corresponding to each image block, performing binarization processing on the image blocks based on the adjusted threshold value corresponding to each image block to obtain binarization blocks, and outputting each binarization block corresponding to each image block; the block combination equipment is connected with the binarization executing equipment and used for receiving each binarization block, combining each binarization block, performing edge fusion on the combined image to obtain a fused image and outputting the fused image as a block combination image; the contrast enhancement device is connected with the block combination device and used for receiving the block combination image and executing contrast enhancement processing on the block combination image to obtain a corresponding processed combination image; the object preliminary detection device is connected with the contrast enhancement device and used for receiving the processed combined image, detecting the existence condition of each object in the processed combined image, taking the number of the objects existing in the processed combined image as the current object number and outputting the current object number; the image decision equipment is connected with the target primary detection equipment and used for receiving the current target quantity, sending out a target excess signal when the current target quantity exceeds the limit, and sending out a target normal signal when the target quantity does not exceed the limit; the contrast improving device is respectively connected with the target preliminary detection device and the target decision device, and is used for receiving the processed combined image and executing contrast improving processing on the processed combined image when receiving the target excessive signal so as to obtain a corresponding contrast improving image, wherein the number of times of executing the contrast improving processing on the processed combined image by the contrast improving device is in direct proportion to the number of the current targets; the pixel point analysis equipment is connected with the contrast improvement equipment and is used for receiving the contrast improvement image, forming all pixel points of which the pixel point gray values are within the range of the water mark gray values in the contrast improvement image into water mark sub-images, and sending out water mark existence signals when the total number of the pixel points occupied by the water mark sub-images is greater than or equal to the number of preset pixel points; and the water leakage identification equipment is respectively connected with the water leakage early warning equipment and the pixel point analysis equipment and is used for sending a water leakage identification signal when receiving the water leakage early warning information and receiving the water mark information.
More specifically, in the heating facility water leakage state two-stage checking system: the pixel point analysis equipment is also used for sending out a water mark-free signal when the total number of the pixel points occupied by the water mark sub-image is less than the preset number of the pixel points.
More specifically, in the heating facility water leakage state two-stage checking system: the water leakage early warning equipment is also used for sending out water leakage-free information when the excess is less than the limit.
More specifically, in the heating facility water leakage state two-stage checking system: in the intelligent blocking device, the smaller the degree of blur of the wiener filter image is, the larger the number of image blocks obtained by blocking the wiener filter image is.
More specifically, in the heating facility water leakage state two-stage checking system: the visible light camera further comprises a self-adjusting unit which is connected with the pixel value matching device and used for carrying out vertical position self-adjustment on the visible light camera when the matching failure signal is received so as to restore the real-time vertical position of the visible light camera to the preset vertical position.
More specifically, in the heating facility water leakage state two-stage checking system: the pixel value matching device is further configured to stop background extraction of the current visible light image and send a matching success signal when receiving the closing control signal.
More specifically, in the heating facility water leakage state two-stage checking system: the self-adjusting unit is further used for stopping the self-adjustment of the vertical position of the visible light camera when the matching success signal is received.
More specifically, in the heating facility water leakage state two-stage checking system: in the contrast lifting device, when the target normal signal is received, the contrast lifting processing of the processed combined image is stopped.
Detailed Description
The embodiment of the double stage inspection system for water leakage state of heating facility according to the present invention will be explained in detail.
Heating facilities are provided to keep spaces where people live or produce in a suitable thermal state.
The method of heating to certain space can directly install the stove generating heat in it; or the air in the air can be pumped out and then sent back after being heated; it is also possible that an object in which the device is kept at a higher temperature, gives off heat to the space in which it is located. Such higher temperature objects are called heating radiators. In order to keep the heating radiator continuously emitting heat, a preheated fluid can be continuously passed through the radiator. This fluid is usually steam or hot water, called heat carrier medium or heating medium. The heating medium is heated by a heat generating, collecting or exchanging device (heat source) provided outside the space, and then distributed to the respective heating radiators by a heating pipe. After a part of heat carried by the heating medium is transferred to the radiator, the heating medium flows back to the heat source through the return pipeline and is reheated. The heat medium circulates circularly to transfer the heat to the heated space continuously.
A typical heating plant is composed of a heat source, a heat medium pipe, and a heating radiator. These three basic components may sometimes be simplified, combined, or omitted. For example, a heat source for furnace heating and a heat emitter are combined, and a heat medium circulation pipe is not required. The fire pool heating is simpler, the glowing fuel and combustion products are used for releasing heat to the heated space, and a heat radiator is not provided.
In order to overcome the defects, the invention builds a two-stage inspection system for the water leakage state of the heating facility, and can effectively solve the corresponding technical problems.
The heating facility water leakage state double-stage inspection system according to the embodiment of the invention comprises:
the first flow detection equipment is arranged at the water inlet pipe of the heating facility and used for detecting the current flow of the water inlet pipe to be output as a first flow;
the second flow detection equipment is arranged at a water outlet pipe of the heating facility and used for detecting the current flow of the water outlet pipe to be output as a second flow;
the water leakage early warning equipment is respectively connected with the first flow detection equipment and the second flow detection equipment, and is used for calculating the excess of the first flow exceeding the second flow and sending water leakage early warning information when the excess is larger than or equal to a limited amount;
the visible light camera is used for sensing visible light image data facing the heating facility so as to output a corresponding current visible light image;
the infrared measuring instrument comprises an infrared transmitting unit, an infrared receiving unit and a microcontroller, wherein the infrared transmitting unit is positioned on the visible light camera and used for vertically and downwardly transmitting infrared signals, the infrared receiving unit is positioned beside the infrared transmitting unit and used for receiving the reflected infrared signals, and the microcontroller is respectively connected with the infrared transmitting unit and the infrared receiving unit and used for determining the real-time vertical position of the visible light camera based on the transmitting time of the infrared transmitting unit and the receiving time of the infrared receiving unit;
the trigger starting device is connected with the infrared measuring instrument and used for sending a starting control signal when the real-time vertical position deviates from a preset vertical position and exceeds the limit, and also used for sending a closing control signal when the real-time vertical position deviates from the preset vertical position and does not exceed the limit;
the pixel value matching device is respectively connected with the trigger starting device and the visible light camera, and is used for performing background extraction on the current visible light image to obtain a real-time background image when the starting control signal is received, matching the real-time background image with a preset background image, sending a matching failure signal when the matching degree is smaller than a preset percentage threshold value, and sending a matching success signal when the matching degree is larger than or equal to the preset percentage threshold value;
the recursive filtering equipment is connected with the visible light camera and used for receiving the current visible light image and executing self-adaptive recursive filtering processing on the current visible light image so as to obtain and output a recursive filtering image;
the wiener filtering equipment is connected with the recursive filtering equipment and used for receiving the recursive filtering image and executing wiener filtering processing with different dynamics based on the noise amplitude in the recursive filtering image so as to obtain a corresponding wiener filtering image;
the intelligent blocking equipment is connected with the wiener filtering equipment and used for receiving the wiener filtering image, determining the fuzzy degree of the wiener filtering image and blocking the wiener filtering image based on the fuzzy degree of the wiener filtering image so as to obtain a plurality of image blocks with the same size;
the parameter adjusting device is connected with the intelligent block device and used for receiving the image blocks and executing the following processing to each image block: acquiring a binarization threshold of the image blocks based on an OTSU algorithm, acquiring each binarization threshold of each image block in the neighborhood of the image blocks based on the OTSU algorithm, adjusting the binarization thresholds of the image blocks based on each binarization threshold of each image block in the neighborhood of the image blocks to obtain adjusted thresholds of the image blocks, and outputting the adjusted thresholds of the image blocks; in the parameter adjustment device, adjusting the binarization threshold of the image block based on each binarization threshold of each image block in the image block neighborhood to obtain an adjusted threshold of the image block includes: the higher the matching degree of the image block neighborhood image block and the image block is, the greater the influence degree of the image block neighborhood image block on the binarization threshold value of the image block is;
a binarization executing device connected with the parameter adjusting device and used for receiving the plurality of image blocks and the adjusted threshold value corresponding to each image block, performing binarization processing on the image blocks based on the adjusted threshold value corresponding to each image block to obtain binarization blocks, and outputting each binarization block corresponding to each image block;
the block combination equipment is connected with the binarization executing equipment and used for receiving each binarization block, combining each binarization block, performing edge fusion on the combined image to obtain a fused image and outputting the fused image as a block combination image;
the contrast enhancement device is connected with the block combination device and used for receiving the block combination image and executing contrast enhancement processing on the block combination image to obtain a corresponding processed combination image;
the object preliminary detection device is connected with the contrast enhancement device and used for receiving the processed combined image, detecting the existence condition of each object in the processed combined image, taking the number of the objects existing in the processed combined image as the current object number and outputting the current object number;
the image decision equipment is connected with the target primary detection equipment and used for receiving the current target quantity, sending out a target excess signal when the current target quantity exceeds the limit, and sending out a target normal signal when the target quantity does not exceed the limit;
the contrast improving device is respectively connected with the target preliminary detection device and the target decision device, and is used for receiving the processed combined image and executing contrast improving processing on the processed combined image when receiving the target excessive signal so as to obtain a corresponding contrast improving image, wherein the number of times of executing the contrast improving processing on the processed combined image by the contrast improving device is in direct proportion to the number of the current targets;
the pixel point analysis equipment is connected with the contrast improvement equipment and is used for receiving the contrast improvement image, forming all pixel points of which the pixel point gray values are within the range of the water mark gray values in the contrast improvement image into water mark sub-images, and sending out water mark existence signals when the total number of the pixel points occupied by the water mark sub-images is greater than or equal to the number of preset pixel points;
and the water leakage identification equipment is respectively connected with the water leakage early warning equipment and the pixel point analysis equipment and is used for sending a water leakage identification signal when receiving the water leakage early warning information and receiving the water mark information.
Next, a specific configuration of the heating facility water leakage state two-stage verification system according to the present invention will be further described.
In the heating facility water leakage state two-stage inspection system: the pixel point analysis equipment is also used for sending out a water mark-free signal when the total number of the pixel points occupied by the water mark sub-image is less than the preset number of the pixel points.
In the heating facility water leakage state two-stage inspection system: the pixel point analysis equipment is also used for sending out a water mark-free signal when the total number of the pixel points occupied by the water mark sub-image is less than the preset number of the pixel points.
In the heating facility water leakage state two-stage inspection system: in the intelligent blocking device, the smaller the degree of blur of the wiener filter image is, the larger the number of image blocks obtained by blocking the wiener filter image is.
In the heating facility water leakage state two-stage inspection system: the visible light camera further comprises a self-adjusting unit which is connected with the pixel value matching device and used for carrying out vertical position self-adjustment on the visible light camera when the matching failure signal is received so as to restore the real-time vertical position of the visible light camera to the preset vertical position.
In the heating facility water leakage state two-stage inspection system: the pixel value matching device is further configured to stop background extraction of the current visible light image and send a matching success signal when receiving the closing control signal.
In the heating facility water leakage state two-stage inspection system: the self-adjusting unit is further used for stopping the self-adjustment of the vertical position of the visible light camera when the matching success signal is received.
And in the heating facility water leakage state two-stage inspection system: in the contrast lifting device, when the target normal signal is received, the contrast lifting processing of the processed combined image is stopped.
In addition, the water leakage recognition apparatus is implemented by a micro control unit. A Micro Control Unit (MCU), also called a Single Chip Microcomputer (Single Chip Microcomputer) or a Single Chip Microcomputer (MCU), is a Chip-level computer formed by appropriately reducing the frequency and specification of a Central Processing Unit (CPU) and integrating peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, etc., and even an LCD driving circuit on a Single Chip, and performing different combination control for different applications. Such as mobile phones, PC peripherals, remote controls, to automotive electronics, industrial stepper motors, robotic arm controls, etc., see the silhouette of the MCU.
The 32-bit MCU can be said to be the mainstream of the MCU market, the price of a single MCU is between 1.5 and 4 dollars, the working frequency is mostly between 100 and 350MHz, the execution efficiency is better, and the application types are also multiple. However, the length of the program code with the same function of the 32-bit MCU is increased by 30-40% compared with that of the 8/16-bit MCU due to the increase of the operand and the length of the memory, which causes that the capacity of the embedded OTP/FlashROM memory cannot be too small, and the number of external pins of the chip is greatly increased, thereby further limiting the cost reduction capability of the 32-bit MCU.
The two-stage inspection system for the water leakage state of the heating facility is adopted, aiming at the technical problem that the water leakage condition of the heating facility needs to be manually observed in the prior art, the instant alarm operation is carried out when the water stain of the heating equipment is detected, wherein a background matching mode is adopted to determine whether the position of an output image of the visible light camera is changed due to the dislocation of the visible light camera, and more importantly, a self-adjusting unit is arranged in the visible light camera to automatically recover the position according to the position change condition; a double-stage filtering mode and a self-adaptive binarization threshold value adjusting mode are adopted, so that the image preprocessing effect is improved; based on the preliminary detection result of the target number of the images, the time and the times of contrast improvement processing on the high-definition images are determined, and the waste of operation resources is avoided, so that the technical problem is solved.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.