Valve sealing detection method and system
The integration of image processing and infrared thermography for valve seal assessment addresses the limitations of existing methods by providing accurate, real-time monitoring of seal integrity, enabling timely maintenance and reducing leak risks.
Patent Information
- Application Number
- CN202410665580.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing methods for detecting the seal integrity of valves are inadequate as they rely solely on surface scratches, which do not accurately predict seal failure, leading to potential leaks and significant losses if not addressed in a timely manner.
A method and system that combine image processing and infrared thermography to assess the seal face's wear and temperature distribution, calculating a correction factor for wear severity, enabling real-time monitoring and accurate detection of seal integrity issues.
This approach allows for precise determination of seal integrity and timely alerts for maintenance, reducing the risk of leaks and associated losses by integrating image processing and thermographic data to assess valve seal conditions.
Smart Images

Figure CN118565715B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of valve sealing detection, and more specifically, to a valve sealing detection method and system. Background Art
[0002] Valves are control components in fluid delivery systems, with functions such as shutoff, regulation, flow diversion, backflow prevention, pressure stabilization, flow diversion or overflow pressure relief. Valves used in fluid control systems come in a wide variety of varieties and specifications, from the simplest shutoff valves to the various valves used in extremely complex automatic control systems. Valves can be used to control the flow of various types of fluids, such as air, water, steam, various corrosive media, mud, oil, liquid metals, and radioactive media.
[0003] At present, during the working process of valves, some valves have a long working life, and some valves are also in a corrosive environment, which will cause the aging and damage of the valves, and eventually lead to problems with the sealing of the valves. If the sealing of the valves cannot be tested in time during the normal working process of the valves, the water leakage caused by the sealing problems of the valves cannot be discovered in time, which will cause great losses to the users.
[0004] In the related art, in the related art, for example, the Chinese patent application document with publication number CN114841997B, a method for detecting surface defects of a valve base sealing surface, the patent calculates the curling degree and the influence degree corresponding to each scratch according to the area corresponding to each scratch and the grayscale value of each pixel point in the acquired scratch image, and then classifies each scratch according to the scratch features corresponding to each scratch, each benchmark category and the K-means clustering algorithm to obtain a preset number of optimal scratch categories, and finally calculates the defect degree of the sealing surface to be detected according to the number of scratches corresponding to each optimal scratch category and the corresponding influence degree of each scratch.
[0005] However, only scratches on the sealing surface cannot accurately determine whether the sealing surface is intact, because areas with more serious scratches may not necessarily leak. Therefore, only scratches cannot accurately determine the sealing surface's sealing, and thus cannot accurately determine the valve's sealing. Summary of the invention
[0006] The present invention provides a valve sealing detection method and system, aiming to solve the problem in the related art that during the normal operation of the valve, the sealing performance of the sealing surface cannot be accurately determined only by scratches, and thus the sealing performance of the valve cannot be accurately determined.
[0007] In a first aspect, the present invention provides a valve seal detection method, comprising: obtaining an image and a temperature distribution map of a sealing surface of a target valve, and performing grayscale processing to obtain a first grayscale image and a second grayscale image corresponding to its temperature distribution map; processing the first grayscale image to obtain a plurality of wear areas, and calculating the degree of wear of each wear area according to the grayscale value of each pixel point in each wear area on the sealing surface and the area of the wear area. ; Match the area on the second grayscale image corresponding to the wear area on the first grayscale image as the temperature detection area; and calculate the correction coefficient of the wear area corresponding to the temperature detection area according to the number and grayscale value of the pixels in the temperature detection area ; According to the correction coefficient, the wear degree of the wear area is corrected to obtain the corrected wear degree, and the damage degree of the sealing surface is calculated , the calculation formula is: ; In the formula, represents the total number of worn areas, [] represents a standard normalized function; in response to the damage degree being greater than a preset threshold, the valve is controlled to stop working. The valve status can be monitored in real time, and an alarm can be given in time when the valve may leak.
[0008] In one embodiment, the method includes: in response to the damage degree being less than a preset threshold, the valve continues to work.
[0009] In one embodiment, the calculation formula for the wear degree of the wear area is: ; In the formula, Indicates the sealing surface of the target valve. The degree of wear in each wear area, Represents the average gray value of the pixels on the sealing surface of a standard valve. Indicates The average gray value of the pixels in the wear area is Indicates The area of the wear zone, Indicates the standard area of the sealing surface of a standard valve. According to the degree of wear and the wear area of the wear area, the higher the degree of wear, the greater the possibility of valve leakage.
[0010] In one embodiment, the correction coefficient of the wear area corresponding to the temperature detection area is calculated using the following formula: ; In the formula, Indicates Correction factor for each wear area, Indicates The sum of the grayscale values of each pixel in the temperature detection area corresponding to the wear area in the second grayscale image, Indicates The number of pixels in the temperature detection area corresponding to each wear area in the second grayscale image. Through the temperature element, the higher the regional temperature, the greater the possibility of leakage in the area, and then combined with the degree of wear to improve the accuracy of detection.
[0011] In one embodiment, obtaining an image of the sealing surface of the target valve includes: obtaining an image of the sealing surface of the target valve by a camera device, graying the image to obtain a first grayscale image. This technical means can simply and quickly obtain an image of the sealing surface.
[0012] In one embodiment, obtaining a temperature distribution map of the sealing surface of the target valve includes: detecting the sealing surface of the target valve by an infrared thermal imager, and obtaining a temperature distribution map of the sealing surface of the target valve at a preset time interval. This technical means can monitor the temperature of the sealing surface in real time.
[0013] In one embodiment, calculating the correction coefficient of the wear area corresponding to the temperature detection area includes: calculating the correction coefficient of the wear area corresponding to the temperature detection area according to the grayscale value and the number of pixels in the temperature detection area.
[0014] In one embodiment, the preset time interval is every 3 hours.
[0015] In a second aspect, the present invention further provides a valve sealing detection system, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement any one of the above valve sealing detection methods.
[0016] Beneficial effect: The present invention can detect the degree of wear of the sealing surface itself through the first grayscale image, and obtain the correction coefficient of the wear area according to the temperature distribution diagram of the valve during operation. The degree of wear of the sealing surface itself is weighted by the correction coefficient, so as to accurately judge the sealing performance of the sealing surface and detect the sealing performance of the valve in real time. When there is a problem with the sealing surface of the valve, an alarm can be issued in time to remind the staff to inspect the valve. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0018] Figure 1is a schematic diagram showing a flow chart of detecting valve sealing according to an embodiment of the present invention;
[0019] Figure 2 FIG. 1 is a schematic diagram schematically showing the structure of a system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0021] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0022] At present, during the working process of valves, some valves have a long working life, and some valves are also in a corrosive environment, which will cause the aging and damage of the valves, and eventually lead to problems with the sealing of the valves. If the sealing of the valves cannot be tested in time during the normal working process of the valves, the water leakage caused by the sealing problems of the valves cannot be discovered in time, which will cause great losses to the users.
[0023] In one embodiment, if the valve sealing is not good, it will cause the temperature around the sealing surface to be different. For example, when a fluid passes through, valve leakage will cause the local temperature to rise, so the sealing of the valve can be analyzed based on the temperature data of the sealing surface.
[0024] Step S101: Acquire an image and a temperature distribution diagram of a sealing surface of a target valve.
[0025] In one embodiment, an image and a temperature distribution map of a sealing surface of a target valve are acquired, and grayscale processing is performed to obtain a first grayscale image and a second grayscale image corresponding to its temperature distribution map.
[0026] Specifically, the image and temperature distribution diagram of the sealing surface of the target valve are obtained as follows: an image of the sealing surface of the target valve is obtained by a camera, for example, the camera can be a camera, and then the image is grayed to obtain a first gray image. The sealing surface of the target valve is detected by an infrared thermal imager, and a temperature distribution diagram of the sealing surface of the target valve is obtained at a preset time interval, and then the image is grayed to obtain a second gray image. For example, the temperature distribution diagram of the sealing surface of the target valve can be obtained every 3 hours or once a day.
[0027] Step S102: Obtain the wear area and calculate the wear degree.
[0028] In one embodiment, edge processing is performed on the first grayscale image to obtain multiple wear areas, and the wear degree of each wear area is calculated according to the grayscale value of each pixel point in each wear area on the sealing surface and the area of the wear area. .
[0029] Specifically, all edges in the first grayscale image are detected by using the canny edge detection algorithm. The wear area is usually manifested as discontinuity or abnormality of the edge. Then, a binary image is generated according to a suitable threshold value. The binary image is processed to distinguish the damaged area from the normal area, thereby obtaining multiple wear areas on the sealing surface. Then, the degree of wear of each wear area is calculated according to the grayscale value of each pixel point in each wear area on the sealing surface and the area of the wear area, wherein the area of the wear area is the total number of pixels in the wear area.
[0030] Step S103: Calculate the correction coefficient of each wear area.
[0031] In one embodiment, the area on the second grayscale image corresponding to the wear area on the first grayscale image is matched as the temperature detection area; and the correction coefficient of the wear area corresponding to the temperature detection area is calculated according to the number and grayscale value of the pixels in the temperature detection area. .
[0032] In one embodiment, the wear area in the first grayscale image has been obtained by the above method, and then the area corresponding to the wear area on the first grayscale image is found in the second grayscale image as the temperature detection area. In other words, the temperature data of each wear area can be obtained by combining the second grayscale image with the first grayscale image. And in the thermal imaging image (second grayscale image), the high temperature area is usually displayed as a brighter color or grayscale value, such as white or light gray. This is because the thermal imaging device maps the high temperature area to a higher grayscale value or brightness value to highlight the area with high temperature. On the contrary, the low temperature area is usually displayed as a darker color or grayscale value, such as black or dark gray. The grayscale value of the pixels in the low temperature area is lower because they correspond to a lower temperature, and the thermal imaging device maps them to a lower grayscale value or brightness value. Therefore, according to the above method, the correction coefficient of the wear area corresponding to the temperature detection area can be calculated. For the area with higher temperature, the correction coefficient is larger, and for the area with lower temperature, the correction coefficient is smaller.
[0033] Step S104: Calculate the damage degree of the valve sealing surface.
[0034] In one embodiment, the wear degree of the wear area is corrected according to the correction coefficient to obtain the corrected wear degree, and the damage degree of the sealing surface is calculated. .
[0035] In one embodiment, if the correction coefficient corresponding to the wear area is higher, the corrected wear degree value is larger, indicating that the sealing performance of the wear area is worse, and leakage may occur. Finally, the sum of the wear degrees of all the corrected wear areas on the sealing surface is counted, and the normalized value of the sum of the wear degrees of all the corrected wear areas is used as the damage degree of the sealing surface.
[0036] Step S105: Control the valve according to the degree of damage of the valve sealing surface.
[0037] In one embodiment, if the damage degree is greater than a preset threshold, the valve is controlled to stop working and an alarm is given. If the damage degree is less than the preset threshold, the valve continues to work.
[0038] In one embodiment, if the degree of damage to the sealing surface is greater than a preset threshold, it means that the sealing performance of the sealing surface is poor and there may be a risk of leakage. At this time, the valve needs to be stopped and an alarm is issued to prompt maintenance personnel to check the valve. On the contrary, if the degree of damage to the sealing surface is less than the preset threshold, it means that the sealing performance of the sealing surface is good and there is no risk of leakage. The valve can work normally.
[0039] In addition, when the degree of damage to the sealing surface is less than the preset threshold, the infrared thermal imager can also detect the sealing condition of the valve sealing surface in real time while it is still in the detection process. Because the temperature distribution map of the sealing surface will be detected by the infrared thermal imager every preset time, when a higher temperature is detected in a later temperature distribution map, the correction coefficient corresponding to the grinding area will become larger, and then the calculated degree of damage to the sealing surface will become larger. When the degree of damage to the sealing surface increases to greater than the preset threshold, the valve will be stopped and maintenance personnel will be sent to inspect the valve.
[0040] In one embodiment, regarding step S102, the wear degree of each wear area is calculated using the following calculation formula: In the formula, Indicates the sealing surface of the target valve. The degree of wear in each wear area, Represents the average gray value of the pixels on the sealing surface of a standard valve. Indicates The average gray value of the pixels in the wear area is Indicates The area of the wear zone, Indicates the standard area of the sealing surface of a standard valve.
[0041] Among them, The greater the difference between the average grayscale value of the pixels in the first wear area and the average grayscale value of the pixels on the sealing surface of the standard valve, the greater the difference between the average grayscale value of the pixels in the first wear area and the average grayscale value of the pixels on the sealing surface of the standard valve. The more severe the wear of a wear area, the If the difference is smaller, it means that the difference between the wear area and the standard valve is small, indicating that the If the wear condition of the wear area is light, The smaller the value of The smaller the difference between the area of the first wear area and the standard area of the sealing surface of the standard valve, the smaller the difference between the first wear area and the standard area of the sealing surface of the standard valve. The larger the wear area, the greater the possibility of leakage, so The larger the value of, the smaller the wear area will be, and the smaller the leakage possibility will be. The smaller the value of .
[0042] In one embodiment, the standard valve is a brand new valve without damage. The standard valve is used as a standard to calculate the wear degree of the target valve. Specifically, an image of the sealing surface of the standard valve is acquired by a camera to obtain pixel points of the sealing surface of the standard valve. The standard area of the sealing surface and the average gray value of the pixel points on the sealing surface are calculated based on the pixel points.
[0043] In one embodiment, regarding step S103, the correction coefficient of the wear area corresponding to the temperature detection area is calculated, and the calculation formula is: ; In the formula, Indicates Correction factor for each wear area, Indicates The sum of the grayscale values of each pixel in the temperature detection area corresponding to the wear area in the second grayscale image, Indicates The number of pixels in the temperature detection area corresponding to the wear area in the second grayscale image. The higher the temperature, the greater the grayscale value of the pixel, and the greater the correction coefficient.
[0044] In one embodiment, regarding step S104, the damage degree of the sealing surface is calculated using the following formula: ; In the formula, Indicates the degree of damage to the sealing surface of the target valve. Indicates the wear degree of the i-th wear area on the target valve sealing surface, Indicates Correction factor for each wear area, represents the total number of worn areas, [] indicates the standard normalization function.
[0045] For example, three wear areas are detected on the sealing surface of the target valve from the first grayscale image, namely wear area A1, wear area B1 and wear area C1, and the wear degrees of the above wear areas are calculated to be Q1, Q2 and Q3 respectively. Areas corresponding to wear area A1, wear area B1 and wear area C1 are matched from the second grayscale image, namely temperature detection area A2, temperature detection area B2 and temperature detection area C2, and the correction coefficient of wear area A1 corresponding to temperature detection area A2 is calculated to be , the correction coefficient of the wear area A2 corresponding to the temperature detection area B2 is The correction coefficient of the wear area A3 corresponding to the temperature detection area C2 is Then, the above data is inserted into the formula for calculating the damage degree of the sealing surface in step S104 to obtain: =Q1 +Q2 +Q3 .
[0046] According to the above steps, the degree of wear of the sealing surface itself can be detected through the first grayscale image, and the correction coefficient of the wear area can be obtained according to the temperature distribution diagram of the valve during operation. The degree of wear of the sealing surface itself is weighted by the correction coefficient, and the sealing performance of the sealing surface can be accurately judged. The sealing performance of the valve can be detected in real time. When there is a problem with the sealing surface of the valve, an alarm can be issued in time to remind the staff to inspect the valve.
[0047] The present invention also provides a valve sealing detection system. Figure 2 As shown, the system includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a valve sealing detection method according to the first aspect of the present invention is implemented.
[0048] In one embodiment, the present invention provides a computer device whose internal structure can be as follows: Figure 2As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities, and various varieties such as CPU, single-chip microcomputer, DSP or FPGA can be selected. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. When the computer program is executed, the steps described in the above method embodiment can be completed, such as S101-step S105. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a valve sealing detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0049] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the computer device of the present invention. The specific computer device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0050] The system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface, whose configuration and functions are known in the art and thus will not be described in detail here.
[0051] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0052] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0053] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0054] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A valve sealing detection method, characterized in that: include: Acquire an image and a temperature distribution map of a sealing surface of a target valve, and perform grayscale processing to obtain a second grayscale image corresponding to the first grayscale image and its temperature distribution map; The first grayscale image is edge processed to obtain multiple wear areas, and the wear degree of each wear area is calculated according to the grayscale value of each pixel point in each wear area on the sealing surface and the area of the wear area. ; Matching the area on the second grayscale image corresponding to the wear area on the first grayscale image as the temperature detection area; and calculating the correction coefficient of the wear area corresponding to the temperature detection area according to the number and grayscale value of the pixels in the temperature detection area ; The degree of wear of the wear area is corrected according to the correction coefficient to obtain the corrected degree of wear, and the degree of damage of the sealing surface is calculated. , the calculation formula is: ; In the formula, represents the total number of worn areas, [] indicates the standard normalization function; In response to the damage degree being greater than a preset threshold, the valve is controlled to stop working and an alarm is issued.
2. The valve sealing detection method according to claim 1, characterized in that: include: In response to the damage degree being less than a preset threshold, the valve continues to work.
3. The valve sealing detection method according to claim 1, characterized in that: The calculation formula for the wear degree of the wear area is: ; In the formula, Indicates the sealing surface of the target valve. The degree of wear in each wear area, Represents the average gray value of the pixels on the sealing surface of a standard valve. Indicates The average gray value of the pixels in the wear area is Indicates The area of the wear zone, Indicates the standard area of the sealing surface of a standard valve.
4. The valve sealing detection method according to claim 1, characterized in that: The correction coefficient of the wear area corresponding to the temperature detection area is calculated, and the calculation formula is: ; In the formula, Indicates Correction factor for each wear area, Indicates The sum of the grayscale values of each pixel in the temperature detection area corresponding to the wear area in the second grayscale image, Indicates The number of pixels in the temperature detection area corresponding to the wear area in the second grayscale image.
5. The valve sealing detection method according to claim 1, characterized in that: Acquire images of the sealing surface of the target valve, including: An image of the sealing surface of the target valve is acquired through a camera device, and the image is grayed to obtain a first gray image.
6. The valve sealing detection method according to claim 1, characterized in that: Obtain the temperature distribution diagram of the sealing surface of the target valve, including: The sealing surface of the target valve is detected by an infrared thermal imager, and a temperature distribution diagram of the sealing surface of the target valve is obtained at preset time intervals.
7. The valve sealing detection method according to any one of claims 1 to 6, characterized in that: Calculating the correction coefficient of the wear area corresponding to the temperature detection area includes: A correction coefficient of a wear area corresponding to the temperature detection area is calculated according to the grayscale values of the pixels and the number of the pixels in the temperature detection area.
8. The valve sealing detection method according to claim 6, characterized in that: The preset time interval is every 3 hours.
9. A valve sealing detection system, comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor executes the computer program to implement the valve sealing detection method according to any one of claims 1 to 8.
Citation Information
Patent Citations
A method for detecting surface defects on the sealing surface of a valve base
CN114841997B
Leakage source detecting device based on infrared thermal imaging processing
CN102636313A
Device and method for on-line measurement of abrasion loss of mechanical sealing end face based on technology of digital B-ultrasound imaging
CN105115453A