Heat exchanger tube arrangement detection method and device, electronic device and storage medium

By comparing the heat exchanger's control image and reference images, automatically detect the arrangement of the heat exchanger tube, solve the problem of time consuming and low accuracy in the existing technology, and realize more efficient and accurate tube and arrangement. Test.

CN119379579APending Publication Date: 2025-01-28ZHEJIANG DUNAN MASCH & ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310937516.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, the heat exchanger pipe arrangement detection consumes time and effort, and the detection results are low, making it difficult to ensure the consistency of the pipe arrangement.

Method used

By obtaining the image of the heat exchanger tube, it compares it with the reference image to determine the arrangement of the heat exchanger tube and achieve automated detection.

Benefits of technology

Reduce the time and energy of manual operation, improve the accuracy of the test results, ensure the consistency of the arrangement of the heat exchanger tube, and improve the service life and efficiency of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119379579A_ABST
    Figure CN119379579A_ABST
Patent Text Reader

Abstract

The invention relates to a heat exchanger tube arrangement detection method and device, an electronic device and a storage medium, the heat exchanger tube arrangement detection method comprises the steps that a to-be-detected heat exchanger tube bundle image is acquired, and the to-be-detected heat exchanger tube bundle image comprises a plurality of heat exchange tube areas; comparing the plurality of heat exchange tube regions of the to-be-detected heat exchanger tube bundle image with a corresponding region of a reference image to obtain a comparison result of the to-be-detected heat exchanger tube bundle image; and determining the arrangement state of the heat exchanger tubes according to the comparison result. According to the invention, the problem of low accuracy of a heat exchanger tube arrangement detection result is solved, automatic detection of heat exchanger tube arrangement is realized, and the accuracy of the heat exchanger tube arrangement detection result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of heat exchangers, and in particular to a method, device, electronic device and storage medium for detecting the arrangement of heat exchanger tubes. Background Art

[0002] Shell and tube heat exchangers are a common heat transfer equipment, usually composed of a series of tubes and shells. Because there are a large number of tubes, if the tubes are arranged irregularly or scattered, it will lead to low heat transfer efficiency or uneven temperature, thus affecting the service life and efficiency of the equipment.

[0003] At present, in order to ensure the consistency of the arrangement of the tubes, manual inspection is usually adopted. However, the manual operation is not only time-consuming and labor-intensive, but also difficult to avoid the problem of low accuracy of the inspection results due to human errors.

[0004] Currently, no effective solution has been proposed for the problems existing in the above-mentioned related technologies. Summary of the invention

[0005] In this embodiment, a heat exchanger tube arrangement detection method, device, electronic device and storage medium are provided to solve the problem that heat exchanger tube arrangement detection is time-consuming and labor-intensive and the detection result has low accuracy in the related art.

[0006] In a first aspect, a heat exchanger tube arrangement detection method is provided in this embodiment, comprising:

[0007] Acquire a tube bundle image of a heat exchanger to be inspected, wherein the tube bundle image of the heat exchanger to be inspected includes a plurality of heat exchange tube regions, and each heat exchange tube region is used to set a corresponding heat exchange tube;

[0008] Comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be inspected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be inspected;

[0009] The arrangement state of the heat exchanger tubes is determined according to the comparison result.

[0010] In some embodiments, the step of acquiring the image of the heat exchanger tube bundle to be inspected includes:

[0011] Obtain an initial image of the heat exchanger tube bundle;

[0012] Preprocessing the initial image of the heat exchanger tube bundle to obtain a preprocessed image of the heat exchanger tube bundle;

[0013] The target area detection is performed on the preprocessed heat exchanger tube bundle image to obtain the heat exchanger tube bundle image to be detected.

[0014] In some embodiments, the step of comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be detected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be detected includes:

[0015] Determining the reference point of the image of the heat exchanger tube bundle to be inspected;

[0016] Determine the current target point based on the reference point and the preset distance;

[0017] Determine the heat exchange tube area where the current target point is located as the current heat exchange tube area to be detected;

[0018] Comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected;

[0019] Based on the comparison results of all the heat exchange tube regions to be inspected in the heat exchanger tube bundle image to be inspected, the comparison results of the heat exchanger tube bundle image to be inspected are obtained.

[0020] In some embodiments, determining the reference point of the image of the heat exchanger tube bundle to be inspected includes:

[0021] Determine the similarity between a target pixel and all pixels in the reference image, wherein the target pixel is any pixel in the image of the heat exchanger tube bundle to be detected;

[0022] Determining a matching similarity of the target pixel based on a similarity between the target pixel and all pixels in the reference image;

[0023] The pixel point with the highest matching similarity in the image of the heat exchanger tube bundle to be inspected is determined as the reference point.

[0024] In some of the embodiments, after determining the current target point based on the reference point and the preset distance, the method further includes:

[0025] Determine a next target point based on the current target point and the preset distance;

[0026] The heat exchange tube region where the next target point is located is determined as the next heat exchange tube region to be detected, until all the heat exchange tube regions to be detected in the heat exchanger tube bundle image to be detected are traversed.

[0027] In some embodiments, comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected includes:

[0028] Comparing the current pixel information with the reference pixel information to obtain a first comparison result;

[0029] Comparing the current pixel information with a preset value to obtain a second comparison result;

[0030] The comparison result of the current heat exchange tube area to be detected is determined based on the first comparison result and the second comparison result.

[0031] In some embodiments, the first comparison result includes that the current pixel information is the same as the reference pixel information, or that the current pixel information is different from the reference pixel information, and the second comparison result includes that the current pixel information is the same as the preset value, or that the current pixel information is different from the preset value. The comparison result of the target heat exchange tube area to be detected is determined based on the first comparison result and the second comparison result, including:

[0032] If the current pixel information is the same as the reference pixel information, and the current pixel information is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected;

[0033] If the current pixel information is different from the reference pixel information, and the current pixel information is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong;

[0034] If the current pixel information is different from the reference pixel information, and the current pixel information is the same as the preset value, the comparison result of the current heat exchange tube area to be detected is that no heat exchange tubes are arranged in the current heat exchange tube area.

[0035] In some embodiments, comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected includes:

[0036] The current pixel information is the pixel average value of all pixels in the current heat exchange tube area to be detected, and the reference pixel information is the pixel average value of all pixels in the corresponding area in the reference image. If the current pixel information is the same as the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected;

[0037] If the current pixel information is different from the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong.

[0038] In some embodiments, determining the arrangement state of the heat exchanger tubes according to the comparison result includes:

[0039] If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that there is an arrangement error of the heat exchange tubes or there are heat exchange tubes that are not arranged, then the arrangement state of the heat exchanger tubes is an arrangement error;

[0040] If the comparison result of the image of the heat exchanger tube bundle to be inspected is that all the heat exchange tubes are arranged correctly, then the arrangement state of the heat exchanger tubes is correct.

[0041] In a second aspect, a heat exchanger tube arrangement detection device is provided in this embodiment, comprising:

[0042] An acquisition module, used for acquiring an image of a heat exchanger tube bundle to be detected, wherein the image of the heat exchanger tube bundle to be detected includes a plurality of heat exchange tube regions, each of which is used for setting a corresponding heat exchange tube;

[0043] A comparison module, used for comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be detected with corresponding regions of the reference image, to obtain a comparison result of the heat exchanger tube bundle image to be detected;

[0044] A determination module is used to determine the arrangement state of the heat exchanger tubes according to the comparison result.

[0045] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the heat exchanger tube arrangement detection method described in the first aspect above is implemented.

[0046] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the heat exchanger tube arrangement detection method described in the first aspect is implemented.

[0047] Compared with the related art, the heat exchanger tube arrangement detection method provided in the embodiment of the present application obtains the image of the heat exchanger tube bundle to be detected, and compares multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected with the corresponding area of ​​the reference image, so as to determine whether the heat exchange tubes in the multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected are arranged correctly, and then obtain the arrangement results of all the heat exchange tubes in the image of the heat exchanger tube bundle to be detected. Furthermore, the arrangement state of the heat exchanger tubes is determined according to the arrangement results of all the heat exchange tubes, so as to detect the arrangement state of the heat exchange tubes by image recognition, realize the automatic detection of the arrangement state of the heat exchange tubes, reduce tedious manual operations, and then compare the multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected with the corresponding area of ​​the reference image to determine the arrangement state of the heat exchanger tubes, thereby improving the accuracy of the heat exchanger tube arrangement detection result.

[0048] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0050] Figure 1 It is a schematic diagram of an application scenario of a heat exchanger tube arrangement detection method provided in an embodiment of the present application;

[0051] Figure 2 is a flow chart of a heat exchanger tube arrangement detection method provided in an embodiment of the present application;

[0052] Figure 3 is a schematic diagram of a shell and tube heat exchanger provided in an embodiment of the present application;

[0053] Figure 4 is an image of a heat exchanger tube bundle to be inspected provided in an embodiment of the present application;

[0054] Figure 5 is a flow chart of another embodiment of a heat exchanger tube arrangement detection method according to an embodiment of the present application;

[0055] Figure 6 It is a structural block diagram of a heat exchanger tube arrangement detection device provided in an embodiment of the present application;

[0056] Figure 7 It is a diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0058] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0059] Shell and tube heat exchangers are a common heat transfer equipment, usually composed of a series of tubes and shells. Because there are a large number of tubes, if the tubes are arranged irregularly or scattered, it will lead to low heat transfer efficiency or uneven temperature, thus affecting the service life and efficiency of the equipment.

[0060] At present, in order to ensure the consistency of the arrangement of the tubes, manual inspection is usually adopted. However, the manual operation is not only time-consuming and labor-intensive, but also difficult to avoid the problem of low accuracy of the inspection results due to human errors.

[0061] Therefore, how to improve the accuracy of heat exchanger tube arrangement detection results and reduce labor costs is a problem that needs to be solved.

[0062] The heat exchanger tube arrangement detection method provided in the embodiment of the present application can be applied to Figure 1 In the application scenario shown, Figure 1Schematic diagram of an application scenario of a heat exchanger tube arrangement detection method provided in an embodiment of the present application. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.

[0063] In this embodiment, a method for detecting the arrangement of heat exchanger tubes is provided. Figure 2 : is a flow chart of a heat exchanger tube arrangement detection method provided by an embodiment of the present application. The execution subject of the method may be an electronic device. Optionally, the electronic device may be a server or a terminal device, but the present application is not limited thereto. Specifically, Figure 2 As shown, the process includes the following steps:

[0064] Step S201, obtaining a tube bundle image of a heat exchanger to be inspected, wherein the tube bundle image of the heat exchanger to be inspected includes a plurality of heat exchange tube regions.

[0065] Exemplarily, an image of a tube bundle of a heat exchanger to be inspected is acquired by an image acquisition device. The heat exchanger may be a shell and tube heat exchanger, which includes a plurality of through holes arranged in a concentrated manner, each through hole being used to set a corresponding heat exchange tube, that is, the image of the tube bundle of the heat exchanger to be inspected includes a plurality of heat exchange tube areas, each heat exchange tube area being a cross-sectional area of ​​a corresponding through hole, and each heat exchange tube area being used to set a corresponding heat exchange tube.

[0066] Figure 3 is a schematic diagram of a shell and tube heat exchanger provided in an embodiment of the present application, such as Figure 3 The shell and tube heat exchanger shown includes a fixed tube sheet, a connecting pipe, a heat exchange tube and a shell. A plurality of heat exchange tubes are arranged in a concentrated manner. The shell is sleeved on the outside of the plurality of concentrated heat exchange tubes. The fixed tube sheet is arranged at one end of the concentrated heat exchange tubes for fixing the concentrated heat exchange tubes. A connecting pipe is arranged on the outside of the shell for connecting the heat exchanger to external equipment.

[0067] The image acquisition device can be a camera, such as a high-definition camera, which can take pictures of the heat exchange tubes inside the shell to obtain clear images of the concentrated arrangement of the heat exchange tubes. The image acquisition device can stabilize the camera at the center of the shell and tube heat exchanger through a fixed bracket to take pictures. The fixed bracket can also be fixed to the shell and tube heat exchanger in different ways, such as pasting, sleeve installation, etc., mainly for the purpose of fixing the camera at the center of the heat exchanger to take pictures. As one of the embodiments, the installation position of the high-definition camera needs to be perpendicular to the tubes inside the shell and the spacing can be adaptively adjusted.

[0068] Step S202 : comparing a plurality of heat exchange tube regions of the heat exchanger tube bundle image to be inspected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be inspected.

[0069] Furthermore, multiple heat exchange tube areas of the heat exchanger tube bundle image to be inspected are compared with corresponding areas in the reference image respectively to obtain a comparison result of each heat exchange tube area, and the comparison results of all heat exchange tube areas are determined as the comparison result of the heat exchanger tube bundle image to be inspected.

[0070] Step S203, determining the arrangement state of the heat exchanger tubes according to the comparison result.

[0071] Furthermore, whether the arrangement state of the heat exchanger tubes is correct is determined based on the comparison result of the image of the heat exchanger tube bundle to be detected, thereby realizing the determination of the arrangement state of the heat exchanger tubes by image recognition.

[0072] In the above implementation process, by acquiring the image of the heat exchanger tube bundle to be detected, and comparing multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected with the corresponding area of ​​the reference image, it is determined whether the heat exchange tubes in the multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected are arranged correctly, and then the arrangement results of all the heat exchange tubes in the image of the heat exchanger tube bundle to be detected are obtained. Furthermore, the arrangement state of the heat exchanger tubes is determined according to the arrangement results of all the heat exchange tubes, so that the arrangement state of the heat exchanger tubes is detected by image recognition, thereby realizing automatic detection of the arrangement state of the heat exchanger tubes and reducing tedious manual operations. Furthermore, by comparing multiple heat exchange tube areas in the image of the heat exchanger tube bundle to be detected with the corresponding area of ​​the reference image, the arrangement state of the heat exchanger tubes is determined, thereby improving the accuracy of the heat exchanger tube arrangement detection result.

[0073] In some of the embodiments, obtaining the image of the heat exchanger tube bundle to be inspected may include the following steps:

[0074] Step 1: Get the initial image of the heat exchanger tube bundle.

[0075] Step 2: Preprocess the initial image of the heat exchanger tube bundle to obtain a preprocessed image of the heat exchanger tube bundle.

[0076] Step 3: Perform target area detection on the preprocessed heat exchanger tube bundle image to obtain the heat exchanger tube bundle image to be detected.

[0077] Exemplarily, the heat exchange tube bundle may be photographed by a camera to obtain an initial image of the heat exchanger tube bundle, and further, the initial image of the heat exchanger tube bundle is preprocessed to obtain a preprocessed image of the heat exchanger tube bundle, wherein the preprocessing may include grayscale processing and filtering processing.

[0078] Specifically, the initial image of the heat exchanger tube bundle is grayed to obtain a gray image after graying. More specifically, each pixel in the gray image can be represented by a gray value of 0-255, and the gray value of the corresponding pixel can be obtained according to the pixel value of each pixel in the initial image of the heat exchanger tube bundle on the RGB three channels and the gray processing formula Gray=R*0.299+G*0.587+B*0.114G, wherein R, G, and B respectively represent the pixel values ​​of a certain pixel in the initial image of the heat exchanger tube bundle on the RGB three channels, and Gray represents the gray value of the corresponding pixel after gray processing.

[0079] Furthermore, the grayscale image after grayscale processing is filtered to obtain the preprocessed heat exchanger tube bundle image. Specifically, the grayscale image after grayscale processing can be filtered by Gaussian filtering. Gaussian filtering is a conventional denoising filtering algorithm. Its principle is to perform weighted averaging according to the grayscale values ​​of the pixel points to be filtered and their neighborhood points according to the parameter rules generated by the Gaussian formula, which can effectively filter out the high-frequency noise superimposed in the ideal image. The Gaussian formula is:

[0080]

[0081] Among them, G(x,y) represents the pixel value after filtering, σ represents the Gaussian filter parameter, and x and y represent the coordinate values ​​of the pixel point before filtering.

[0082] Furthermore, target area detection is performed on the preprocessed heat exchanger tube bundle image. Specifically, multiple heat exchange tube areas can be identified by edge detection, or multiple heat exchange tube areas can be determined by threshold segmentation, thereby determining the area where each heat exchange tube is distributed.

[0083] As one of the embodiments, when multiple heat exchange tube regions are identified and determined by edge detection, the preprocessed heat exchanger tube bundle image can be passed through a partial differential equation: Determine the image gradient value, where x and y represent the coordinate values ​​of the pixel point after filtering, f(x, y) represents the pixel value of the point after filtering, and ε is a constant that approaches zero. In this way, the partial derivative of a pixel point with respect to the X-axis and Y-axis can be determined. The gradient is understood as the speed of change of the pixel grayscale value in the field of image processing.

[0084] As another embodiment, multiple heat exchange tube areas can also be determined by threshold segmentation. The threshold range of edge pixel points can be set. If the pixel points in the preprocessed heat exchanger tube bundle image are within the set threshold range, they are determined to be edge pixel points. If the pixel points in the preprocessed heat exchanger tube bundle image are not within the set threshold range, they are non-edge pixel points, thereby determining the pixel points belonging to the edge of the heat exchange tube in the preprocessed heat exchanger tube bundle image, and then determining multiple heat exchange tube areas based on the pixel points at the edge of the heat exchange tube.

[0085] Figure 4 is an image of a heat exchanger tube bundle to be inspected provided in an embodiment of the present application, such as Figure 4 In the image of the heat exchanger tube bundle to be inspected, multiple heat exchange tube areas are densely arranged.

[0086] In the above implementation process, the initial image of the heat exchanger tube bundle is preprocessed, thereby realizing grayscale processing and filtering processing of the initial image of the heat exchanger tube bundle, effectively filtering out the high-frequency noise superimposed in the image, and then, the preprocessed heat exchanger tube bundle image is subjected to target detection, thereby determining multiple heat exchange tube areas in the heat exchanger tube bundle image, and realizing the division of the heat exchange tube areas.

[0087] In some of the embodiments, comparing a plurality of heat exchange tube regions of the heat exchanger tube bundle image to be inspected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be inspected may include the following steps:

[0088] Step 1: Determine the reference point of the image of the heat exchanger tube bundle to be inspected.

[0089] Step 2: Determine the current target point based on the reference point and the preset distance.

[0090] Step 3: Determine the heat exchange tube area where the current target point is located as the current heat exchange tube area to be detected.

[0091] Step 4: Compare the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected.

[0092] Step 5: Based on the comparison results of all the heat exchange tube regions to be inspected in the heat exchanger tube bundle image to be inspected, a comparison result of the heat exchanger tube bundle image to be inspected is obtained.

[0093] Exemplarily, the reference point is determined in the image of the heat exchanger tube bundle to be inspected. The center point of the image of the heat exchanger tube bundle to be inspected can be determined as the reference point, or the leftmost pixel point in the image of the heat exchanger tube bundle to be inspected can be determined as the reference point, or the rightmost pixel point in the image of the heat exchanger tube bundle to be inspected can be determined as the reference point, or other pixel points in the image of the heat exchanger tube bundle to be inspected can be determined as the reference point, and there is no limitation here.

[0094] Specifically, taking the center point of the heat exchanger bundle image to be detected as the reference point as an example, a circumscribed polygon including the heat exchanger bundle image to be detected can be determined first, and the center of the circumscribed polygon can be determined as the reference point of the heat exchanger bundle image to be detected.

[0095] Furthermore, the current target point can be determined according to the reference point and the preset distance, wherein the preset distance can be the arrangement spacing of the tube bundle. Specifically, in the image of the tube bundle of the heat exchanger to be inspected, starting from the reference point and moving in the preset direction, the pixel points at every arrangement spacing are determined as the current target point.

[0096] Furthermore, after the current target point is determined, edge detection is performed upward, downward, leftward and rightward respectively through mathematical functions to determine the edge information of the heat exchange tube area where the current target point is located, that is, the heat exchange tube area where the current target point is located is determined, and the heat exchange tube area where the current target point is located is determined as the current heat exchange tube area to be detected, and the above process of determining the current heat exchange tube area to be detected is repeated, and then all heat exchange tube areas to be detected in the heat exchanger tube bundle image to be detected are traversed, wherein the preset direction can be any direction within 360 degrees starting from the reference point.

[0097] Furthermore, the current pixel information of the current heat exchange tube area to be inspected is determined, and the current pixel information of the current heat exchange tube area to be inspected is compared with the reference pixel information of the corresponding area in the reference image to determine whether the current pixel information is the same as the reference pixel information, thereby determining the comparison result of the current heat exchange tube area to be inspected, wherein the reference image can be an image after each heat exchange tube in a shell and tube heat exchanger of the same type as the heat exchanger to be inspected is correctly arranged.

[0098] Furthermore, the comparison results of all the heat exchange tube regions to be detected are determined by the above method, and the comparison results of all the heat exchange tube regions to be detected are combined to obtain the comparison result of the tube bundle image of the heat exchanger to be detected.

[0099] In the above implementation process, the current target point is determined according to the reference point and the preset distance, and then the heat exchange tube area where the current target point is located is determined as the current heat exchange tube area to be detected, so that all the heat exchange tube areas to be detected in the image of the heat exchanger tube bundle to be detected can be determined based on the reference point, thereby improving the accuracy of determining the heat exchange tube area to be detected, and then comparing the pixel information of the current heat exchange tube area to be detected with the pixel information of the corresponding area in the reference image, so that the comparison result of the current heat exchange tube area to be detected can be accurately determined through the pixel information, and then the comparison results of all heat exchange tube areas to be detected can be obtained.

[0100] In some of the embodiments, determining the reference point of the image of the heat exchanger tube bundle to be inspected may include the following steps:

[0101] Step 1: Determine the similarity between the target pixel and all the pixels in the reference image. The target pixel is any pixel in the image of the heat exchanger bundle to be inspected.

[0102] Step 2: Based on the similarity between the target pixel and all pixels in the reference image, determine the matching similarity of the target pixel.

[0103] Step 3: Determine the pixel point with the highest matching similarity in the image of the heat exchanger tube bundle to be inspected as the reference point.

[0104] Exemplarily, any pixel point in the image of the heat exchanger tube bundle to be inspected is determined as a target pixel point, and the similarity between the target pixel point and all the pixels in the reference image is determined. Specifically, the similarity between the target pixel point and all the pixels in the reference image can be determined based on the ratio of the pixel value of the target pixel point to the pixel values ​​of all the pixels in the reference image.

[0105] As another embodiment, the similarity between the target pixel and all the pixels in the reference image may also be determined by the following standard square difference matching formula:

[0106]

[0107] Among them, R(x, y) represents the similarity between the target pixel point (x, y) and the pixel point (x′, y′) in the reference image, T′ represents the pixel point of the heat exchanger bundle image to be detected, I′ represents the addition of the pixel points of the heat exchanger bundle image to be detected and the reference image, and the standard square difference matching is used to determine the similarity between the target pixel point and all the pixels in the reference image. The larger the value of R(x, y), the lower the similarity between the target pixel point and all the pixels in the reference image.

[0108] It should be noted that in the embodiment of the present application, only the standard square difference matching is used as an example to determine the similarity between the target pixel and all the pixels in the reference image. In actual applications, one or more of the square difference matching algorithm, correlation matching algorithm and standard correlation matching algorithm can also be used to determine the similarity between the target pixel and all the pixels in the reference image, and there is no limitation here.

[0109] Furthermore, the maximum value of the similarity between the target pixel and all pixels in the reference image is determined as the matching similarity of the target pixel. Correspondingly, the pixel in the reference image with the greatest similarity to the target pixel is determined as the pixel matching the target pixel.

[0110] Furthermore, by the above method, all pixel points in the image of the heat exchanger tube bundle to be detected can be traversed from left to right and from top to bottom, and then the matching similarity of all pixel points in the image of the heat exchanger tube bundle to be detected can be determined. Further, the pixel point with the highest matching similarity in the image of the heat exchanger tube bundle to be detected can be determined as the reference point.

[0111] In the above implementation process, the matching similarity of the target pixel is determined according to the similarity between the target pixel and all the pixels in the reference image, and then the pixel with the highest matching similarity in the image of the heat exchanger tube bundle to be inspected is determined as the reference point, thereby using the pixel with the highest matching similarity as the reference point, thereby improving the accuracy of determining the area of ​​the heat exchange tube to be inspected.

[0112] In some of the embodiments, after determining the current target point based on the reference point and the preset distance, the following steps may also be included:

[0113] Step 1: Determine the next target point based on the current target point and the preset distance.

[0114] Step 2: Based on the current heat exchange tube area to be inspected and the preset distance, determine the next heat exchange tube area to be inspected until all heat exchange tube areas to be inspected in the heat exchanger tube bundle image to be inspected are traversed.

[0115] Exemplarily, the arrangement spacing of the tube bundle is determined as a preset distance, which can be adaptively set according to the model of the shell and tube heat exchanger. The value range of the preset distance is between [0, 200]. In the embodiment of the present application, the preset distance of 25 mm is taken as an example for explanation.

[0116] Specifically, starting from the reference point, move 25 mm along the preset direction to obtain a pixel point, and the pixel point can be determined as the current target point. Then, after determining the current target point, the current target point can be used as the basis, and the preset direction can be moved again for 25 mm. The pixel point obtained is the next target point, and the heat exchange tube area of ​​the next target point is determined as the next heat exchange tube area to be detected. Repeat this process, and count the determined current heat exchange tube areas to be detected until all heat exchange tube areas to be detected in the heat exchanger tube bundle image to be detected are traversed.

[0117] It should be noted that, in the above-mentioned traversal process, the direction of travel each time may be the same or different, and there is no limitation here, and the preset direction may be any direction within a 360-degree range starting from the reference point or the current target point, so that all heat exchange tube areas within a range of 25 mm around the reference point can be respectively determined as the current heat exchange tube areas to be detected, and then the position information of the current heat exchange tube area to be detected and the direction information between the reference point and the reference point can be determined in this way.

[0118] In the above implementation process, the tube row spacing is used as the preset distance, and is gradually extended based on the reference point, so as to determine all the heat exchange tube areas to be inspected in the heat exchanger tube bundle image to be inspected, thereby improving the accuracy of determining the heat exchange tube areas to be inspected.

[0119] In some of the embodiments, comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected may include the following steps:

[0120] Step 1: Compare the current pixel information with the reference pixel information to obtain a first comparison result.

[0121] Step 2: Compare the current pixel information with the preset value to obtain a second comparison result.

[0122] Step 3: Determine the comparison result of the current heat exchange tube area to be inspected based on the first comparison result and the second comparison result.

[0123] Exemplarily, the current pixel information of the current heat exchange tube area to be detected is compared with the reference pixel information of the corresponding area in the reference image to determine a first comparison result of whether the pixel information of the current heat exchange tube area to be detected is the same as the reference pixel information of the corresponding area in the reference image.

[0124] Specifically, the current pixel information may be the pixel average value of all pixels in the current heat exchange tube area to be detected, and the reference pixel information may be the pixel average value of all pixels in the corresponding area in the reference image.

[0125] That is, the first comparison result includes that the current pixel information is the same as the reference pixel information, or that the current pixel information is different from the reference pixel information.

[0126] Furthermore, the current pixel information is compared with the preset value to obtain a second comparison result of whether the current pixel information of the heat exchange tube area to be detected is equal to the preset value, wherein the preset value may be the corresponding pixel average value when the heat exchange tube area is not arranged with heat exchange tubes.

[0127] That is, the second comparison result includes that the current pixel value is the same as the preset value, or the current pixel value is different from the preset value.

[0128] Furthermore, a comparison result of the current heat exchange tube region to be inspected is determined according to the first comparison result and the second comparison result.

[0129] In the above implementation process, the current pixel information is compared with the reference pixel information and the preset value to obtain a first comparison result and a second comparison result, so that the comparison result of the current heat exchange tube area to be detected can be determined based on the first comparison result and the second comparison result.

[0130] In some embodiments, the first comparison result includes that the current pixel information is the same as the reference pixel information, or the current pixel information is different from the reference pixel information, and the second comparison result includes that the current pixel information is the same as the preset value, or the current pixel information is different from the preset value. The comparison result of the target heat exchange tube area to be detected is determined based on the first comparison result and the second comparison result, which may include:

[0131] If the current pixel information of the current heat exchange tube area to be detected is the same as the reference pixel information of the corresponding area in the reference image, and the current pixel value is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is arranged correctly, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected.

[0132] If the current pixel information of the current heat exchange tube area to be detected is different from the reference pixel information of the corresponding area in the reference image, and the current pixel value is different from the preset value, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong.

[0133] If the current pixel information of the current heat exchange tube area to be detected is different from the reference pixel information of the corresponding area in the reference image, and the current pixel value is the same as the preset value, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube area to be detected has no heat exchange tubes arranged.

[0134] In the above implementation process, the current pixel information of the heat exchange tube area to be detected is compared with the reference pixel information of the corresponding area in the reference image, and the pixel information of the current heat exchange tube area to be detected is compared with the preset value. This can not only determine whether the heat exchange tubes are arranged correctly, but also determine whether there are heat exchange tubes in the heat exchange tube area, thereby improving the accuracy of heat exchange tube arrangement detection.

[0135] As another embodiment, comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected may include:

[0136] The current pixel information is the pixel average of all pixels in the current heat exchange tube area to be detected, and the reference pixel information is the pixel average of all pixels in the corresponding area in the reference image. If the current pixel information is the same as the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is arranged correctly, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected.

[0137] If the current pixel information is different from the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong.

[0138] For example, in order to improve the efficiency of the arrangement of the heat exchanger tubes, the comparison result of the current heat exchange tube area to be detected can be determined directly based on the comparison result between the current pixel information and the reference pixel information.

[0139] Specifically, the current pixel information is the pixel average value of all pixels in the current heat exchange tube area to be detected, and the reference pixel information is the pixel average value of all pixels in the corresponding area in the reference image. If the current pixel information is the same as the reference pixel information, it means that the current heat exchange tube is arranged in the correct position, that is, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is arranged correctly. If the current pixel information is different from the reference pixel information, it means that the current heat exchange tube area to be detected is a correctly arranged heat exchange tube, that is, the current heat exchange tube is arranged incorrectly.

[0140] In some of the embodiments, determining the arrangement state of the heat exchanger tubes according to the comparison result may include the following steps:

[0141] If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that there is an arrangement error of the heat exchange tubes or that the heat exchange tubes are not arranged, the arrangement state of the heat exchanger tubes is an arrangement error.

[0142] If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that all the heat exchange tubes are correctly arranged, then the arrangement state of the heat exchanger tubes is correct.

[0143] Exemplarily, the comparison result of the image of the heat exchanger tube bundle to be inspected includes incorrect arrangement of the heat exchange tubes, correct arrangement of the heat exchange tubes, or non-arrangement of the heat exchange tubes. If any one or more heat exchange tube areas are incorrectly arranged or there are heat exchange tubes that are not arranged in the image of the heat exchanger tube bundle to be inspected, it means that the arrangement state of the heat exchanger tube bundle is incorrectly arranged.

[0144] If all heat exchange tubes in the tube bundle image of the heat exchanger to be inspected are arranged correctly, the arrangement state of the heat exchanger tubes is correct.

[0145] In the above implementation process, according to the comparison results of the heat exchange tubes in the tube bundle image of the heat exchanger to be detected, the arrangement state of the overall heat exchange tubes is determined, and then the arrangement state of the heat exchange tubes is accurately determined.

[0146] In some of the embodiments, if the arrangement state of the heat exchanger tubes is an arrangement error, the method further comprises:

[0147] Display the arrangement position of each heat exchanger tube and mark the incorrectly arranged heat exchanger tubes.

[0148] For example, if the arrangement status of the heat exchanger tubes is incorrect, the arrangement position of each heat exchanger tube can be displayed, and the incorrectly arranged heat exchanger tubes can be marked, so that the staff can intuitively determine the incorrectly arranged heat exchange tubes and correct the incorrectly arranged heat exchange tubes.

[0149] This embodiment also provides a heat exchanger tube arrangement detection embodiment. Figure 5 is a flow chart of another embodiment of a heat exchanger tube arrangement detection method according to an embodiment of the present application, such as Figure 5 As shown, the process includes the following steps:

[0150] Step S501, obtaining a heat exchanger tube bundle image through a camera.

[0151] Exemplarily, a heat exchange tube bundle of a shell and tube heat exchanger is photographed by a high-definition camera to obtain an image of the heat exchanger tube bundle.

[0152] Step S502: preprocess the heat exchanger tube bundle image to obtain a preprocessed image.

[0153] Furthermore, the heat exchanger tube bundle image is grayed to obtain a gray image. Each pixel in the gray image can be represented by a gray value of 0-255, which is specifically represented by 255 gray values ​​between black and white. The formula Gray = R*0.299+G*0.587+B*0.114G is directly quoted. Gray represents the gray image, and RGB represents the gray values ​​of the three channels. Then Gaussian filtering is performed. Gaussian filtering is the most popular denoising filtering algorithm. Its principle is to perform weighted averaging according to the gray values ​​of the pixel points to be filtered and their neighborhood points according to the parameter rules generated by the Gaussian formula, which can effectively filter out the high-frequency noise superimposed in the ideal image, thereby obtaining a preprocessed image.

[0154] Step S503: perform edge detection on the preprocessed image to obtain an image of the heat exchange tube region.

[0155] Furthermore, edge detection is performed on the image to further identify and detect the heat exchange tube. The image filtering is based on the above grayscale image. The image is two-dimensional (grayscale image) at this time. The differential (gradient calculation) of the two-dimensional function is the partial differential equation: From this formula, we can get the image gradient, which is the partial derivative of the current pixel point with respect to the X-axis and Y-axis. The gradient in the field of image processing is understood as the speed at which the pixel grayscale value changes.

[0156] Step S504: extract features from the heat exchange tube region image and compare features with the reference image.

[0157] Furthermore, the pixel average value of all pixels in the heat exchange tube area is determined as the characteristic value of the corresponding heat exchange tube area, and then the characteristic value is compared with the pixel average value of the area corresponding to the position in the reference image to determine whether the pixel average values ​​are equal.

[0158] Step S505 , determining whether the feature of the heat exchange tube is the same as the feature of the corresponding position in the reference image.

[0159] If the characteristic value of the heat exchange tube area is equal to the pixel average value of the area corresponding to the position in the reference image, the heat exchange tubes in the heat exchange tube area are arranged correctly, and step S507 is executed; if the characteristic value of the heat exchange tube area is not equal to the pixel average value of the area corresponding to the position in the reference image, and the characteristic value is not equal to the pixel average value when the heat exchange tubes are not arranged, the heat exchange tubes in the heat exchange tube area are arranged incorrectly, and then the state of the heat exchange tubes is an arrangement error, and step S506 is executed; if the characteristic value of the heat exchange tube area is equal to the pixel average value when the heat exchange tubes are not arranged, the heat exchange tubes are not arranged in the heat exchange tube area, and the state of the heat exchange tubes is an arrangement error, and step S506 is executed.

[0160] Step S506: issuing a warning message to remind the staff to correct the incorrectly arranged heat exchange tubes.

[0161] Specifically, when the state of the heat exchange tube is an arrangement error, a warning message is issued to remind the staff to correct the heat exchange tube that is arranged incorrectly or not arranged, and then execute step S507.

[0162] Step S507, outputting the arrangement status of the heat exchanger tubes.

[0163] When the status of the heat exchange tubes is correctly arranged, the arrangement status of each heat exchanger tube is output.

[0164] In the above implementation process, the automatic detection of the position arrangement of the heat exchange tubes is achieved through image comparison, which effectively ensures the heat transfer efficiency and maintenance difficulty, reduces tedious manual operations, accurately determines the position and direction of the heat exchange tubes, simplifies operations, improves efficiency, and reduces the error rate and missed detection rate through automatic data uploading and processing, greatly improving the efficiency and safety of the equipment.

[0165] It should be noted that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0166] In this embodiment, a heat exchanger tube arrangement detection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementations, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0167] Figure 6 is a structural block diagram of a heat exchanger tube arrangement detection device provided in an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0168] An acquisition module 601 is used to acquire an image of a heat exchanger tube bundle to be detected, wherein the image of the heat exchanger tube bundle to be detected includes a plurality of heat exchange tube regions, and each heat exchange tube region is used to set a corresponding heat exchange tube;

[0169] A comparison module 602 is used to compare a plurality of heat exchange tube regions of the heat exchanger tube bundle image to be detected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be detected;

[0170] The determination module 603 is used to determine the arrangement state of the heat exchanger tubes according to the comparison result.

[0171] In some embodiments, the acquisition module 601 is specifically used for:

[0172] Obtain an initial image of the heat exchanger tube bundle;

[0173] Preprocessing the initial image of the heat exchanger tube bundle to obtain a preprocessed image of the heat exchanger tube bundle;

[0174] The target area detection is performed on the preprocessed heat exchanger tube bundle image to obtain the heat exchanger tube bundle image to be detected.

[0175] In some embodiments, the comparison module 602 is specifically used to:

[0176] Determine the reference point of the image of the heat exchanger tube bundle to be inspected;

[0177] Determine the current target point based on the reference point and the preset distance;

[0178] The heat exchange tube area where the current target point is located is determined as the current heat exchange tube area to be detected;

[0179] Compare the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected;

[0180] Based on the comparison results of all the heat exchange tube regions to be inspected in the heat exchanger tube bundle image to be inspected, the comparison results of the heat exchanger tube bundle image to be inspected are obtained.

[0181] In some embodiments, the comparison module 602 is specifically used to:

[0182] Determine the similarity between the target pixel and all the pixels in the reference image, where the target pixel is any pixel in the image of the heat exchanger bundle to be inspected;

[0183] Based on the similarity between the target pixel and all the pixels in the reference image, determining the matching similarity of the target pixel;

[0184] The pixel point with the highest matching similarity in the image of the heat exchanger tube bundle to be inspected is determined as the reference point.

[0185] In some embodiments, the comparison module 602 is specifically used to:

[0186] Determine the next target point based on the current target point and the preset distance;

[0187] The heat exchange tube region where the next target point is located is determined as the next heat exchange tube region to be detected, until all the heat exchange tube regions to be detected in the heat exchanger tube bundle image to be detected are traversed.

[0188] In some embodiments, the comparison module 602 is specifically used to:

[0189] Comparing the current pixel information with the reference pixel information to obtain a first comparison result;

[0190] Comparing the current pixel information with the preset value to obtain a second comparison result;

[0191] The comparison result of the current heat exchange tube area to be inspected is determined based on the first comparison result and the second comparison result.

[0192] In some embodiments, the first comparison result includes that the current pixel information is the same as the reference pixel information, or the current pixel information is different from the reference pixel information, and the second comparison result includes that the current pixel information is the same as the preset value, or the current pixel information is different from the preset value. The comparison module 602 is specifically used to:

[0193] If the current pixel information is the same as the reference pixel information, and the current pixel information is different from the preset value, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected;

[0194] If the current pixel information is different from the reference pixel information, and the current pixel information is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong;

[0195] If the current pixel information is different from the reference pixel information, and the current pixel information is the same as the preset value, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube area has no heat exchange tubes arranged therein.

[0196] In some embodiments, the comparison module 602 is specifically used to:

[0197] The current pixel information is the pixel average value of all pixels in the current heat exchange tube area to be detected, and the reference pixel information is the pixel average value of all pixels in the corresponding area in the reference image. If the current pixel information is the same as the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected;

[0198] If the current pixel information is different from the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong.

[0199] In some embodiments, the determination module 603 is specifically used to:

[0200] If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that there is an arrangement error of the heat exchange tubes or that there are heat exchange tubes that are not arranged, then the arrangement state of the heat exchanger tubes is an arrangement error;

[0201] If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that all the heat exchange tubes are correctly arranged, then the arrangement state of the heat exchanger tubes is correct.

[0202] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0203] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, Figure 7 This is an internal structure diagram of a computer device provided in an embodiment of the present application, wherein the computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. 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, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store heat exchanger image data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a heat exchanger tube arrangement detection method is implemented.

[0204] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0205] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0206] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0207] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0209] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above 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.

[0210] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for detecting the arrangement of heat exchanger tubes, characterized in that: include: Acquire a tube bundle image of a heat exchanger to be inspected, wherein the tube bundle image of the heat exchanger to be inspected includes a plurality of heat exchange tube regions, each heat exchange tube region being used to set a corresponding heat exchange tube; Comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be inspected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be inspected; The arrangement state of the heat exchanger tubes is determined according to the comparison result.

2. The heat exchanger tube arrangement detection method according to claim 1, characterized in that: The step of obtaining the image of the heat exchanger tube bundle to be inspected comprises: Obtain an initial image of the heat exchanger tube bundle; Preprocessing the initial image of the heat exchanger tube bundle to obtain a preprocessed image of the heat exchanger tube bundle; The target area detection is performed on the preprocessed heat exchanger tube bundle image to obtain the heat exchanger tube bundle image to be detected.

3. The heat exchanger tube arrangement detection method according to claim 1, characterized in that: The step of comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be detected with corresponding regions of the reference image to obtain a comparison result of the heat exchanger tube bundle image to be detected includes: Determining the reference point of the image of the heat exchanger tube bundle to be inspected; Determine the current target point based on the reference point and the preset distance; Determine the heat exchange tube area where the current target point is located as the current heat exchange tube area to be detected; Comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected; Based on the comparison results of all the heat exchange tube regions to be inspected in the heat exchanger tube bundle image to be inspected, the comparison results of the heat exchanger tube bundle image to be inspected are obtained.

4. The heat exchanger tube arrangement detection method according to claim 3, characterized in that: The step of determining the reference point of the image of the heat exchanger tube bundle to be inspected comprises: Determine the similarity between a target pixel and all pixels in the reference image, wherein the target pixel is any pixel in the image of the heat exchanger tube bundle to be detected; Determining a matching similarity of the target pixel based on a similarity between the target pixel and all pixels in the reference image; The pixel point with the highest matching similarity in the image of the heat exchanger tube bundle to be inspected is determined as the reference point.

5. The heat exchanger tube arrangement detection method according to claim 3, characterized in that: After determining the current target point based on the reference point and the preset distance, the method further includes: Determine a next target point based on the current target point and the preset distance; The heat exchange tube region where the next target point is located is determined as the next heat exchange tube region to be detected, until all the heat exchange tube regions to be detected in the heat exchanger tube bundle image to be detected are traversed.

6. The heat exchanger tube arrangement detection method according to claim 3, characterized in that: The step of comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected includes: Comparing the current pixel information with the reference pixel information to obtain a first comparison result; Comparing the current pixel information with a preset value to obtain a second comparison result; The comparison result of the current heat exchange tube area to be detected is determined based on the first comparison result and the second comparison result.

7. The heat exchanger tube arrangement detection method according to claim 6, characterized in that: The first comparison result includes that the current pixel information is the same as the reference pixel information, or that the current pixel information is different from the reference pixel information, and the second comparison result includes that the current pixel information is the same as the preset value, or that the current pixel information is different from the preset value. The comparison result of the target heat exchange tube area to be detected is determined based on the first comparison result and the second comparison result, including: If the current pixel information is the same as the reference pixel information, and the current pixel information is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected; If the current pixel information is different from the reference pixel information, and the current pixel information is different from the preset value, then the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong; If the current pixel information is different from the reference pixel information, and the current pixel information is the same as the preset value, the comparison result of the current heat exchange tube area to be detected is that no heat exchange tubes are arranged in the current heat exchange tube area.

8. The heat exchanger tube arrangement detection method according to claim 3, characterized in that: The step of comparing the current pixel information of the current heat exchange tube area to be detected with the reference pixel information of the corresponding area in the reference image to determine the comparison result of the current heat exchange tube area to be detected includes: The current pixel information is the pixel average value of all pixels in the current heat exchange tube area to be detected, and the reference pixel information is the pixel average value of all pixels in the corresponding area in the reference image. If the current pixel information is the same as the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube is correctly arranged, and the current heat exchange tube is the heat exchange tube corresponding to the current heat exchange tube area to be detected; If the current pixel information is different from the reference pixel information, the comparison result of the current heat exchange tube area to be detected is that the current heat exchange tube arrangement is wrong.

9. The heat exchanger tube arrangement detection method according to claim 7 or 8, characterized in that: Determining the arrangement state of the heat exchanger tubes according to the comparison result includes: If the comparison result of the image of the heat exchanger tube bundle to be inspected shows that there is an arrangement error of the heat exchange tubes or that there are heat exchange tubes that are not arranged, then the arrangement state of the heat exchanger tubes is an arrangement error; If the comparison result of the image of the heat exchanger tube bundle to be inspected is that all the heat exchange tubes are arranged correctly, then the arrangement state of the heat exchanger tubes is correct.

10. A heat exchanger tube arrangement detection device, characterized in that: include: An acquisition module, used for acquiring an image of a heat exchanger tube bundle to be detected, wherein the image of the heat exchanger tube bundle to be detected includes a plurality of heat exchange tube regions, each of which is used for setting a corresponding heat exchange tube; A comparison module, used for comparing the plurality of heat exchange tube regions of the heat exchanger tube bundle image to be detected with corresponding regions of the reference image, to obtain a comparison result of the heat exchanger tube bundle image to be detected; A determination module is used to determine the arrangement state of the heat exchanger tubes according to the comparison result.

11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the heat exchanger tube arrangement detection method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the heat exchanger tube arrangement detection method according to any one of claims 1 to 9 are implemented.