A gas leak detection system and method
By establishing direct communication links between gas transportation equipment, connecting equipment, and port terminals, the problem of complex transmission of gas leak detection information was solved, enabling timely handling of gas leak incidents.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LONGKOU BINGANG OIL TANK FARM IN SHANDONG
- Filing Date
- 2023-04-03
- Publication Date
- 2026-05-29
AI Technical Summary
During the gas transportation process at ports, the transmission path of gas leak detection information is complex, leading to untimely handling of leak incidents.
By establishing direct communication links between gas transportation equipment, connecting equipment, and port terminals, the information transmission path is reduced, enabling real-time communication and collaborative operation of gas leak detection devices.
It improved the efficiency of handling gas leak incidents, reduced processing delays, and ensured that gas leak incidents could be handled in a timely manner.
Smart Images

Figure CN116557788B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of gas detection, and more particularly to a gas leak detection system and method. Background Technology
[0002] During gas transportation at ports, gas carriers typically connect to the terminal's pipelines via a transfer vessel, ultimately delivering the gas to storage tanks at the terminal. Throughout the entire transportation process, it is essential to monitor for gas leaks.
[0003] In the existing gas transmission process, gas carriers, connecting ships, and the areas where dock pipelines and gas storage tanks are located all have their own gas detection equipment. Once a gas is detected at a certain location, a warning message will be sent to the central server set up at the dock. When the duty personnel see the warning message, they will notify the personnel related to gas transmission to take appropriate actions, such as instructing the crew on the gas carrier to stop gas transmission.
[0004] However, in the existing gas leak detection process, once a gas leak occurs, the information transmission path is complex and requires the participation of multiple people, which makes the handling of gas leaks untimely. Summary of the Invention
[0005] This application provides a gas leak detection system and method that can reduce information transmission paths, thereby reducing processing delays and enabling gas leak events to be handled in a timely manner.
[0006] In a first aspect, embodiments of this application provide a gas leak detection system, the system including gas transport equipment, connecting equipment, port terminal and port collaborative operation server, the gas transport equipment is equipped with gas export equipment, the connecting equipment is equipped with gas transfer equipment, and the port terminal is equipped with gas transport pipelines;
[0007] The port terminal is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0008] Connecting equipment is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0009] A gas transport device is used to communicate with a port collaborative operation server via a wide area network to successfully enable port collaborative operation services when the distance between the gas transport device and the port terminal is less than a threshold value T1, wherein T1 is a value greater than 0.
[0010] The connecting device is also used to negotiate the connecting service for the transport equipment with the port collaborative operation server. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock.
[0011] The gas transport equipment is also used to connect its own gas export device to the gas transfer equipment after arriving at the port terminal, and to establish direct communication with the connecting equipment through a first communication link, which is different from the link connecting to the wide area network.
[0012] The connecting device is also used to establish a direct communication connection with the port terminal via a second communication link, wherein the second communication link is different from the first communication link and the link connecting to the wide area network.
[0013] The gas transport equipment is also used to start unloading gas after the connection equipment, transport equipment, and port terminal have established direct communication. The gas is exported to the connection equipment via the gas export equipment, transferred to the port terminal by the gas transfer equipment of the connection equipment, and then transmitted to the gas storage tank by the gas transport pipeline of the port terminal.
[0014] The connecting equipment, gas transport equipment, and port terminal are also used to detect gas leak events through their respective pre-configured gas leak detection devices during the gas unloading process. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.
[0015] Secondly, this application provides a gas leak detection method, which is applied to the gas leak detection system described above. The method includes: the port terminal communicating with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0016] The connecting equipment communicates with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0017] When the distance between the gas transport equipment and the port terminal is less than the threshold value T1, the gas transport equipment communicates with the port collaborative operation server through the wide area network to successfully activate the port collaborative operation service, where T1 is a value greater than 0.
[0018] The connecting device and the port collaborative operation server negotiate the connecting service for the transport equipment. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock.
[0019] After arriving at the port terminal, the gas transport equipment connects its own gas export device to the gas transfer device and establishes a direct communication with the connecting device through a first communication link. This first communication link is different from the link connecting to the wide area network.
[0020] The connecting equipment establishes a direct communication with the port terminal via a second communication link, which is different from the first communication link and the link connecting to the wide area network.
[0021] After the gas transport equipment establishes direct communication with the connecting equipment, transport equipment, and port terminal, it begins to unload gas. The gas is exported to the connecting equipment via the gas export equipment, then transferred to the port terminal by the gas transfer equipment of the connecting equipment, and finally transported to the gas storage tank by the gas transport pipeline of the port terminal.
[0022] During the unloading of gas, the connecting equipment, gas transport equipment, and port terminal each detect gas leak events through their respective pre-configured gas leak detection devices. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.
[0023] This application discloses a gas leak detection system and method. The system includes gas transportation equipment, connecting equipment, port terminal, and port collaborative operation server. The connecting equipment can establish direct connections with the port terminal and gas transportation equipment respectively, reducing the alarm information transmission path during gas transmission, thereby reducing processing delay and enabling gas leak events to be handled in a timely manner. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a structural diagram of a gas leak detection system provided in an embodiment of this application. Detailed Implementation
[0026] See Figure 1 This application provides a gas leak detection system, which includes gas transport equipment, connecting equipment, port terminal and port collaborative operation server. The gas transport equipment is equipped with gas export equipment, the connecting equipment is equipped with gas transfer equipment, and the port terminal is equipped with gas transport pipelines.
[0027] The port terminal is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0028] As a feasible implementation, the gas transport equipment is equipped with a gas leak detection device GF1, a wireless communication device WF1, and a control device CF1; the gas connection equipment is equipped with a gas leak detection device GF2, a wireless communication device WF2, and a control device CF2; and the port terminal is equipped with a leak detection device GF3, a wireless communication device WF3, and a control device CF3. In this case, the specific process by which the port terminal communicates with the port collaborative operation server via a wide area network to successfully activate the port collaborative operation service is as follows:
[0029] CF3 sends the first service activation command to WF3, instructing it to activate the port collaborative operation service;
[0030] After receiving the first service activation instruction, WF3 sends the first port collaborative operation service request message to the port collaborative operation server.
[0031] After receiving the first port collaborative operation service response message from the port collaborative operation server, if the first port collaborative operation service response message indicates success, WF3 sends a notification message to CF3 to indicate that the port collaborative operation service has been successfully enabled.
[0032] The connection device is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0033] As a feasible implementation method, the specific process by which the connecting device communicates with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service is as follows:
[0034] CF2 sends a second service activation command to WF2, instructing it to activate the port collaborative operation service;
[0035] After receiving the instruction, WF2 sends a second join service request message to the port collaborative operation server via the wireless channel;
[0036] After receiving the second port collaborative operation service response message from the port collaborative operation server, if the second port collaborative operation service response message indicates success, WF2 sends a notification message to CF2 to indicate that the port collaborative operation service has been successfully enabled.
[0037] A gas transport device is used to communicate with a port collaborative operation server via a wide area network to successfully activate port collaborative operation services when the distance between the gas transport device and the port terminal is less than a threshold value T1, where T1 is a value greater than 0. T1 is preset based on experimental calculation data, for example, it can be 100 kilometers.
[0038] As a feasible implementation method, the process of successfully activating port collaborative operation services for gas transportation equipment can be as follows:
[0039] When the distance between the gas transport equipment and the terminal is less than the threshold value T1, CF1 sends a third activation service command to WF1, instructing the gas transport equipment to activate the port collaborative operation service.
[0040] After receiving the instruction, WF1 sends a third join service request message to the port collaborative operation server via the wireless channel;
[0041] After receiving the third port collaborative operation service response message from the port collaborative operation server, if the third port collaborative operation service message indicates success, WF1 sends a notification message to CF1 to indicate that the port collaborative operation service has been successfully enabled.
[0042] The connecting device is also used to negotiate the connecting service for the transport equipment with the port collaborative operation server. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock.
[0043] As a feasible implementation method, the connecting equipment and the port collaborative operation server negotiate the connecting service for the transport equipment. After successful negotiation, the connecting equipment is controlled to arrive at the terminal according to the negotiated estimated arrival time. The specific process of connecting the gas transfer equipment to the gas transport pipeline of the port terminal is as follows:
[0044] The port collaborative operation server is also specifically used to send a second broadcast message to the connecting equipment. The second broadcast message contains at least one of the following parameters: Action type representing the behavior indicated by the message, Service ID representing the service identifier, Object ID representing the subject identifier, Approaching time representing the expected arrival time, and Event ID representing the event identifier, wherein the Action type is set to Service event notify and the Object ID is set to the identifier of the transport ship.
[0045] The connecting device is also specifically used to send a service request message to the port collaborative operation server after reading the second broadcast message. The service request message includes one or more of the following parameters: Action type, ServiceID, Object ID, and Event ID. In the second broadcast message, the Object ID is set to the identifier of the connecting device. The values of Service ID and Event ID in the second broadcast message are the same as those in the first broadcast message.
[0046] The port collaborative operation server is also specifically used to send service response messages to the connecting equipment;
[0047] The connecting equipment is also specifically used to, upon receiving a service response message indicating agreement, control the connecting equipment to arrive at the dock according to the time indicated by the Approaching time, and connect the gas transfer equipment of the connecting equipment to the gas transport pipeline of the dock.
[0048] The gas transport equipment is also used to connect its own gas export device to the gas transfer equipment after arriving at the port terminal, and to establish a direct communication with the connecting equipment through a first communication link, which is different from the link connecting to the wide area network.
[0049] As a feasible approach, the process by which the gas transport equipment establishes a direct communication link with the connecting equipment in the first communication link is as follows:
[0050] A gas transport device, specifically used to send a first broadcast message, the first broadcast message including the identifier of the gas transport device and wireless link information, the wireless link information including public information and link information of multiple sub-links, the public information including any one or more of the following parameters: PAN enable indicating whether it is connected to a wide area network, PAN link ID indicating the link identifier connected to the wide area network, and Maxsimultaneous links indicating the maximum number of links that can be operated simultaneously.
[0051] Among them, PAN enable is set to true to indicate that a wide area network is connected; PAN link ID is set to linkx1; Maxsimultaneous links is set to k, where k is an integer greater than 2; the link information of any sub-link includes any one or more of the following parameters: Link ID representing the corresponding link identifier, and Link profile representing the link parameters;
[0052] The connection device is also specifically used to, after receiving the first broadcast message, select to establish a direct first communication link linkx2 according to the first broadcast message, and send a first connection establishment request message to the gas transportation device. The first connection establishment request message contains the link identifier of the first communication link; the linkx2 is different from the linkx1.
[0053] As a feasible implementation method, the process by which the connecting device selects to establish a direct first communication link linkx2 based on the first broadcast message is as follows:
[0054] The connection device is also specifically used to check the PAN link ID parameter if the PAN enable parameter is true in the first broadcast message, and determine the link indicated by the PAN link ID as a link that cannot be directly connected; if the connection device is connected to the WAN via the link x1, then maintain the connection to the WAN on link x1.
[0055] If the connection device is connected to the WAN via link x3, then switch the connection to the WAN to link x1.
[0056] The number of links that can be connected is determined based on the Max simultaneous links in the first broadcast message. Based on the link information of each sub-link other than linkx1, the optimal link is selected from the sub-links other than linkx1 as the first communication link linkx2.
[0057] The gas transport equipment is also specifically used to send a connection establishment response message to WF2 after receiving the first connection establishment request message, when it is determined that linkx2 is different from linkx1 and the number of links requested for connection is not greater than k-1, indicating that it agrees to establish a connection.
[0058] The connecting device is also used to establish a direct communication link with the port terminal on the second communication link, which is different from the first communication link and the link connecting to the wide area network.
[0059] In this embodiment of the application, after WF2 establishes a connection with WF1, it can read the broadcast message sent by WF3 and establish a connection with WF3 on the second communication link in the same way as establishing a connection with WF1, which will not be described in detail here; wherein the second communication link for WF2 to establish a connection with WF3 is different from the first communication link for WF2 to establish a connection with WF1.
[0060] The gas transport equipment is also used to unload gas after establishing direct communication between the connecting equipment, the transport equipment, and the port terminal. The gas is exported to the connecting equipment via the gas export equipment, then transferred to the port terminal by the gas transfer equipment of the connecting equipment, and finally transported to the gas storage tank by the gas transport pipeline of the port terminal.
[0061] The connecting equipment, gas transport equipment, and port terminal are also used to detect gas leak events through their respective pre-configured gas leak detection devices during the gas unloading process. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.
[0062] As one feasible implementation, the gas transport equipment is equipped with a gas leak detection device GF1, a wireless communication device WF1, and a control device CF1; the gas connection equipment is equipped with a gas leak detection device GF2, a wireless communication device WF2, and a control device CF2; and the port terminal is equipped with a leak detection device GF3, a wireless communication device WF3, and a control device CF3. Specifically, if the gas transport equipment detects a gas leak through GF1, it sends an alarm message to WF1 and simultaneously instructs CF1 to close the gas valve. WF1 then sends an alarm message to WF2 via a first communication link. Upon receiving the alarm message, WF2 sends an alarm message to WF3 via a second communication link and simultaneously instructs CF2 to close the gas valve. Upon receiving the warning message from WF2, WF3 instructs CF3 to close the gas valve.
[0063] The connecting device is also specifically used to send an alarm message to WF2 when it detects a gas leak through GF2, and simultaneously instruct CF2 to close the gas valve. WF2 sends an alarm message to WF1 through the first communication link and to WF3 through the second communication link. After receiving the alarm message, WF1 instructs CF1 to close the gas valve; after receiving the warning message, WF3 instructs CF3 to close the gas valve.
[0064] The port terminal is also used to send an alarm message to WF3 when the port terminal detects a gas leak via GF3, and simultaneously instruct CF3 to close the gas valve. WF3 sends an alarm message to WF2 via the second communication link. After receiving the alarm message, WF2 sends an alarm message to WF1 via the first communication link, and simultaneously instructs CF2 to close the gas valve. After receiving the warning message, WF1 instructs CF1 to close the gas valve.
[0065] This application also provides a gas leak detection method, which can be applied to the above-mentioned gas leak detection system. The method includes:
[0066] The port terminal communicated with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0067] The connecting equipment communicates with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service.
[0068] When the distance between the gas transport equipment and the port terminal is less than the threshold value T1, the gas transport equipment communicates with the port collaborative operation server through the wide area network to successfully activate the port collaborative operation service, where T1 is a value greater than 0.
[0069] The connecting device and the port collaborative operation server negotiate the connecting service for the transport equipment. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock.
[0070] After arriving at the port terminal, the gas transport equipment connects its own gas export device to the gas transfer device and establishes a direct communication with the connecting device through a first communication link. This first communication link is different from the link connecting to the wide area network.
[0071] The connecting equipment establishes a direct communication with the port terminal via a second communication link, which is different from the first communication link and the link connecting to the wide area network.
[0072] After the gas transport equipment establishes direct communication with the connecting equipment, transport equipment, and port terminal, it begins to unload gas. The gas is exported to the connecting equipment via the gas export equipment, then transferred to the port terminal by the gas transfer equipment of the connecting equipment, and finally transported to the gas storage tank by the gas transport pipeline of the port terminal.
[0073] During the unloading of gas, the connecting equipment, gas transport equipment, and port terminal each detect gas leak events through their respective pre-configured gas leak detection devices. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.
[0074] As a feasible approach, the gas transport equipment is equipped with a gas leak detection device GF1, a wireless communication device WF1, and a control device CF1; the gas connection equipment is equipped with a gas leak detection device GF2, a wireless communication device WF2, and a control device CF2; and the port terminal is equipped with a leak detection device GF3, a wireless communication device WF3, and a control device CF3. Taking a port operation scenario as an example, assuming the gas transport equipment is a gas transport ship, the gas connection equipment is a connection ship, the gas transport ship has a gas leak detection device GF1, a wireless communication device WF1, and a control device CF1, the connection ship has a gas leak detection device GF2, a wireless communication device WF2, and a control device CF2; and the port terminal has a gas leak detection device GF3, a wireless communication device WF3, and a control device CF3. The execution steps of the gas leak detection method include:
[0075] S1: CF3 sends a first service activation command to WF3, instructing that the port collaborative operation service be activated. The parameters included in the first service activation command are shown in Table 1.
[0076] Table 1
[0077]
[0078] S2: After receiving the first service activation command, WF3 sends a first port collaborative operation service request message to the port collaborative operation server via a wireless channel, such as a 4G or 5G mobile communication network, or a satellite communication network. The parameters contained in the first port collaborative operation service request message are shown in Table 2.
[0079] Table 2
[0080]
[0081] S3: After receiving the first port collaborative operation service response message from the port collaborative operation server, if the first port collaborative operation service response message indicates "success," then WF3 sends a notification message to CF3 indicating that the port collaborative operation service has been successfully enabled. If the response message indicates "failed," then WF3 sends a notification message to CF3 indicating that the service has not been successfully enabled. If the service has not been successfully enabled, this solution ends, and subsequent steps only apply to scenarios where the service has been successfully enabled.
[0082] S4: CF2 sends a second enable service command to WF2, instructing that the port collaborative operation service be enabled. The parameters included in the second enable service command are shown in Table 3.
[0083] Table 3
[0084]
[0085] S5: After receiving the instruction, WF2 sends a second join service request message to the port collaborative operation server via the wireless channel. The parameters contained in the second join service request message are shown in Table 4.
[0086] Table 4
[0087]
[0088] S6: After receiving the second port collaborative operation service response message from the port collaborative operation server, if the second port collaborative operation service response message indicates success, WF2 sends a notification message to CF2 to indicate that the port collaborative operation service has been successfully enabled.
[0089] S7: When the distance between the gas carrier and the dock is less than the threshold T1, CF1 sends a third activation service command to WF1, instructing the gas carrier to activate the port collaborative operation service. The parameters included in the third activation service command are shown in Table 5.
[0090] Table 5
[0091]
[0092] S8: After receiving the instruction, WF1 sends a third join service request message to the port collaborative operation server via a wireless channel (e.g., 4G, 5G mobile communication network, or satellite communication network). The parameters contained in the third join service request message are shown in Table 6.
[0093] Table 6
[0094]
[0095] S9: After receiving the third port collaborative operation service response message from the port collaborative operation server, if the third port collaborative operation service message indicates success, WF1 sends a notification message to CF1 to indicate that the port collaborative operation service has been successfully enabled.
[0096] S10: After sending the third port collaborative operation service response message to WF1, the port collaborative operation server DS sends a second broadcast message. The parameters contained in the second broadcast message are shown in Table 7.
[0097] Table 7
[0098]
[0099] S11: After reading the broadcast message, WF2 sends a service request message to DS, which includes the parameters shown in Table 8:
[0100] Table 8
[0101]
[0102] S12: DS sends a service response message to WF2, indicating agreement.
[0103] S13: After receiving the service acceptance response message, WF2 sends a service acceptance message to CF2. CF2 controls the shuttle vessel to arrive at the dock according to the Approaching time indication and connects the gas transfer equipment of the shuttle vessel to the gas transport pipeline at the dock.
[0104] S14: After the transport ship arrives, connect the gas extraction equipment to the gas transfer equipment on the connecting ship.
[0105] S15: WF1 sends a broadcast message (i.e., the first broadcast message mentioned above), the parameters of which are shown in Table 9:
[0106] Table 9
[0107]
[0108] The Operation W-link element includes:
[0109]
[0110] The common info contains:
[0111]
[0112] The link1 info contains:
[0113]
[0114] The settings for Link2 info and Link3 info are similar to those for Link1 info, with the link identifiers being Link2 and Link3 respectively. This application will not elaborate on these details.
[0115] S16: After receiving the above broadcast message, WF2 selects to establish the first direct communication link according to the broadcast message, as follows:
[0116] If PAN enable is true, then check the PAN link ID parameter and determine that the link indicated by the PAN link ID is a link that cannot be directly connected.
[0117] If the link connecting WF2 to the WAN is link1, then the connection to the WAN will remain on link1.
[0118] If the link connecting WF2 to the WAN is link2, then the connection to the WAN will be switched to link1.
[0119] The number of links that can be connected is determined based on the Max simultaneous links. In this invention, there is 1 link. The optimal link is selected as the link to establish a direct connection based on the link profile in link 2 info and link 3 info. For example, the link with a smaller center frequency is better, or the link with a larger channel bandwidth is better.
[0120] S17: WF2 sends a first connection establishment request message to WF1. The parameters contained in the request message are shown in Table 10.
[0121] Table 10
[0122]
[0123] S18: After receiving the first connection establishment request message, if the link requested by WF2 is not the link that WF1 is connecting to the WAN, and the number of links requested is less than or equal to Max simultaneous links minus 1, WF1 sends a connection establishment response message to WF2, indicating that it agrees to establish a connection.
[0124] S19: After WF2 establishes a direct connection with WF1, it reads the broadcast message sent by WF3 and establishes a connection with WF3 in the same way as WF1. The link between WF2 and WF3 is different from the link between WF2 and WF1. For example, the present invention can be set to link3. And it is assumed that the link between WF3 and the wide area network is link1.
[0125] S20: After WF2 and WF1, and WF2 and WF3 are directly connected, the transport ship begins to unload the gas, which is then transferred to the gas storage tank via the gas export equipment, the connecting barge, and the dock gas transport pipeline.
[0126] S21: During the gas unloading process, GF1, GF2, and GF3 begin detecting gas leak events, using the following detection methods:
[0127] The GF1's infrared camera acquires infrared video and performs the following steps:
[0128] Step S1: Perform infrared image gas enhancement processing based on guided filters on the acquired infrared video;
[0129] Step S2: Detect gas targets in the enhanced video based on a visual background extractor;
[0130] Step S1 includes the following specific steps:
[0131] Step S11: Perform preprocessing on the acquired infrared video:
[0132] First, the acquired infrared video is extracted frame by frame to generate a series of infrared images. Then, the original image and the guide image are selected from the generated infrared images according to a fixed frame difference as input for the guide filter. The frame difference can be set as needed, but it is generally set to 5 frames.
[0133] Step S12, obtain the filtered image:
[0134] Step S12 includes the following specific steps:
[0135] Step S121: Downsample the original image and the guide image:
[0136] The input is defined as the original image I_origin, the guide image I_guide, the filter kernel window K_(7×7), the gradient factor ε=0.2, the sampling coefficients s=0.5, and the number of frames f_nums = 31, where the sampling coefficients are directly proportional to the algorithm's running time.
[0137] T algorithm ∝1 / ε (1)
[0138] Select the original image, obtain its width and height, and reset the image area S according to the sampling coefficients and the original image dimensions. image :
[0139] S image =(w origin *s,h origin *s) (2)
[0140] The original image and the guide image are downsampled based on the reset image area, and the sampled image areas are kept consistent.
[0141] Step S122: Perform mean filtering on the downsampled image:
[0142] The size of the filter kernel window is readjusted based on the sampling coefficient s, and the adjusted filter kernel window is used to perform mean filtering on the downsampled original image and the guide image respectively.
[0143] Step S123: Solve for the variance and covariance of the downsampled image:
[0144] First, the variance of the downsampled original image is calculated. Then, the covariance of the downsampled original image and the guide image is solved.
[0145] Step S124: Calculate the linear correlation factor a within the filter kernel window.k b k And perform mean filtering on it:
[0146] Within the filter kernel window, due to the presence of the linear correlation factor, the pixel p of the downsampled filtered image... ij and the pixel g of the downsampled guide image ij It satisfies the linear relationship expressed by the following formula:
[0147] p ij =a k g ij +b k (3)
[0148] Step S125, calculate the output filtered image:
[0149] Based on the original width and height of the original image, the linear correlation factors a and b after mean filtering are upsampled to obtain a. mean_us b mean_us Then, the filtered image I is calculated based on the linear correlation factor after upsampling. gf The specific calculation method is shown in the following formula:
[0150] I gf =a mean_us *I guide +b mean_us (4)
[0151] Step S13, Obtain the edge image:
[0152] By performing a difference operation between the guiding image and the filtered image obtained in step S12, an edge image that does not contain internal texture information can be obtained.
[0153] Step S14, Obtain the base image:
[0154] The dynamic range of the original image is obtained, compressed to a smaller range, and a transformation matrix for the two ranges is established. The transformation matrix is then applied to the base image to achieve dynamic compression of the background image.
[0155] Step S14 includes the following specific steps:
[0156] Step S141: Solve for the background dynamic range [C, D] of the original image;
[0157] Step S142: Compress the background dynamic range of the original image to [c, d], and satisfy the following relationship:
[0158] (5)
[0159] Step S143: Calculate the transformation matrix from [C, D] to [c, d] and apply it to the next image.
[0160] Step S15, acquire gas-enhanced image:
[0161] The magnification factor m=2 is set. Based on the magnification factor, the acquired edge image is magnified and fused with the base layer image to obtain an enhanced infrared gas image. The specific fusion method is shown in the following formula.
[0162] I output =I fd +m*I ed (6)
[0163] Among them, I output For enhanced infrared gas images, I fd Based on the image, I ed This is an edge image.
[0164] Step S2 includes the following specific steps:
[0165] Step S21: Obtain a grayscale image containing only the gas region.
[0166] First, input the infrared gas enhancement image obtained in step S1 above. Then, perform the operation of obtaining a gas mask based on the visualization background extractor. Next, perform an AND operation between the obtained gas region mask and the input enhancement image to obtain a grayscale image containing only the gas part.
[0167] Step S22, acquire other grayscale images that do not contain gas regions:
[0168] By inverting the gas mask obtained in step S21 and performing an AND operation with the input enhanced image, grayscale images of other areas that do not contain gas can be obtained.
[0169] Step S23: Obtain the final gas detection image:
[0170] The gas region grayscale image obtained in step S21 is subjected to pseudo-colorization processing and then fused with the grayscale images of other regions to obtain the final gas detection image.
[0171] If the gas detection image includes an area of a preset color (such as red, yellow, etc.), then a gas leak event is determined to have been detected (i.e., a gas leak has been detected).
[0172] It is understandable that the process of GF2 and GF3 detecting gas leaks is the same as that of GF1, and will not be repeated here.
[0173] S22: When any one of the devices GF1, GF2, and GF3 detects a gas leak event, it notifies the other devices via a direct link, as follows:
[0174] If GF1 detects a gas leak, it sends an alarm message to WF1 and instructs CF1 to close the gas valve. WF1 then sends an alarm message to WF2 via link2. Upon receiving the alarm message, WF2 sends an alarm message to WF3 via link3 and instructs CF2 to close the gas valve. Upon receiving the alarm message, WF3 instructs CF3 to close the gas valve.
[0175] If GF2 detects a gas leak, it sends an alarm message to WF2 and simultaneously instructs CF2 to close the gas valve. WF2 sends an alarm message to WF1 via link2 and to WF3 via link3. After receiving the alarm message, WF1 instructs CF1 to close the gas valve; after receiving the alarm message, WF3 instructs CF3 to close the gas valve.
[0176] If GF3 detects a gas leak, it sends an alarm message to WF3 and instructs CF3 to close the gas valve. WF3 sends an alarm message to WF2 via link3. After receiving the alarm message, WF2 sends an alarm message to WF1 via link2 and instructs CF2 to close the gas valve. After receiving the alarm message, WF1 instructs CF1 to close the gas valve.
[0177] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0178] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0179] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0180] The aspects of embodiments of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0181] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A gas leak detection system, characterized in that, The system includes gas transport equipment, connecting equipment, port terminals and port collaborative operation servers. The gas transport equipment is equipped with gas export equipment, the connecting equipment is equipped with gas transfer equipment, and the port terminals are equipped with gas transport pipelines. The port terminal is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service. Connecting equipment is used to communicate with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service; A gas transport device is used to communicate with a port collaborative operation server via a wide area network to successfully enable port collaborative operation services when the distance between the gas transport device and the port terminal is less than a threshold value T1, wherein T1 is a value greater than 0. The connecting device is also used to negotiate the connecting service for the transport equipment with the port collaborative operation server. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock. The gas transport equipment is also used to connect its own gas export device to the gas transfer equipment after arriving at the port terminal, and to establish direct communication with the connecting equipment through a first communication link, which is different from the link connecting to the wide area network. The connecting device is also used to establish a direct communication connection with the port terminal via a second communication link, wherein the second communication link is different from the first communication link and the link connecting to the wide area network. The gas transport equipment is also used to start unloading gas after the connection equipment, transport equipment, and port terminal have established direct communication. The gas is exported to the connection equipment via the gas export equipment, transferred to the port terminal by the gas transfer equipment of the connection equipment, and then transmitted to the gas storage tank by the gas transport pipeline of the port terminal. The connecting equipment, gas transport equipment, and port terminal are also used to detect gas leak events through their respective pre-configured gas leak detection devices during the gas unloading process. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.
2. The system as described in claim 1, characterized in that, A gas transport device, specifically used to send a first broadcast message, the first broadcast message including the identifier of the gas transport device and wireless link information, the wireless link information including public information and link information of multiple sub-links, the public information including any one or more of the following parameters: PAN enable indicating whether it is connected to a wide area network, PAN link ID indicating the link identifier connected to the wide area network, and Maxsimultaneous links indicating the maximum number of links that can be operated simultaneously. Among them, PAN enable is set to true to indicate that a wide area network is connected; PAN link ID is set to linkx1; Maxsimultaneous links is set to k, where k is an integer greater than 2; the link information of any sub-link includes any one or more of the following parameters: Link ID representing the corresponding link identifier, and Link profile representing the link parameters; The connection device is also specifically used to, after receiving the first broadcast message, select to establish a direct first communication link linkx2 according to the first broadcast message, and send a first connection establishment request message to the gas transportation device. The first connection establishment request message contains the link identifier of the first communication link; the linkx2 is different from the linkx1. The gas transport equipment is also specifically used to, upon receiving a first connection establishment request message, when determining that linkx2 is different from linkx1 and the number of links requested for connection is no greater than k-1, send a connection establishment response message to the wireless communication device WF2 configured in the connection equipment, indicating that it agrees to establish a connection.
3. The system as described in claim 1, characterized in that, The connection device is also specifically used to check the PAN link ID parameter if the PAN enable parameter is true in the first broadcast message, and determine the link indicated by the PAN link ID as a link that cannot be directly connected; if the connection device is connected to the WAN via the link x1, then maintain the connection to the WAN on link x1. If the connection device is connected to the WAN via link x3, then switch the connection to the WAN to link x1. The number of links that can be connected is determined based on the Max simultaneous links in the first broadcast message. Based on the link information of each sub-link other than linkx1, the optimal link is selected from the sub-links other than linkx1 as the first communication link linkx2.
4. The system as described in claim 1, characterized in that, The gas transport equipment is equipped with a gas leak detection device GF1, a wireless communication device WF1 and a control device CF1; the connecting equipment is equipped with a gas leak detection device GF2, a wireless communication device WF2 and a control device CF2; and the port terminal is equipped with a leak detection device GF3, a wireless communication device WF3 and a control device CF3. The gas transport equipment is also specifically used to send an alarm message to WF1 when the gas transport equipment detects a gas leak via GF1, and simultaneously instruct CF1 to close the gas valve. WF1 sends an alarm message to WF2 via the first communication link. After receiving the alarm message, WF2 sends an alarm message to WF3 via the second communication link, and simultaneously instructs CF2 to close the gas valve. After receiving the warning message from WF2, WF3 instructs CF3 to close the gas valve. The connecting device is also specifically used to send an alarm message to WF2 when it detects a gas leak through GF2, and simultaneously instruct CF2 to close the gas valve. WF2 sends an alarm message to WF1 through the first communication link and to WF3 through the second communication link. After receiving the alarm message, WF1 instructs CF1 to close the gas valve; after receiving the warning message, WF3 instructs CF3 to close the gas valve. The port terminal is also used to send an alarm message to WF3 when the port terminal detects a gas leak via GF3, and simultaneously instruct CF3 to close the gas valve. WF3 sends an alarm message to WF2 via the second communication link. After receiving the alarm message, WF2 sends an alarm message to WF1 via the first communication link, and simultaneously instructs CF2 to close the gas valve. After receiving the warning message, WF1 instructs CF1 to close the gas valve.
5. The system as described in claim 1, characterized in that, The port collaborative operation server is also specifically used to send a second broadcast message to the connecting equipment. The second broadcast message contains at least one of the following parameters: Action type representing the behavior indicated by the message, Service ID representing the service identifier, Object ID representing the subject identifier, Approaching time representing the expected arrival time, and Event ID representing the event identifier, wherein the Action type is set to Service event notify and the Object ID is set to the identifier of the transport ship. The connecting device is also specifically used to send a service request message to the port collaborative operation server after reading the second broadcast message. The service request message includes one or more of the following parameters: Action type, Service ID, Object ID, and Event ID. In the second broadcast message, the Object ID is set to the identifier of the connecting device. The values of Service ID and Event ID in the second broadcast message are the same as those in the first broadcast message. The port collaborative operation server is also specifically used to send service response messages to the connecting equipment; The connecting equipment is also specifically used to, upon receiving a service response message indicating agreement, control the connecting equipment to arrive at the dock according to the time indicated by Approachingtime, and connect the gas transfer equipment of the connecting equipment to the gas transport pipeline of the dock.
6. The system as described in claim 1, characterized in that, The gas transport equipment is equipped with a gas leak detection device GF1, a wireless communication device WF1 and a control device CF1; the connecting equipment is equipped with a gas leak detection device GF2, a wireless communication device WF2 and a control device CF2; and the port terminal is equipped with a leak detection device GF3, a wireless communication device WF3 and a control device CF3. CF3 sends the first service activation command to WF3, instructing it to activate the port collaborative operation service; After receiving the first service activation instruction, WF3 sends the first port collaborative operation service request message to the port collaborative operation server. After receiving the first port collaborative operation service response message from the port collaborative operation server, if the first port collaborative operation service response message indicates success, WF3 sends a notification message to CF3 to indicate that the port collaborative operation service has been successfully enabled.
7. The system as described in claim 6, characterized in that, CF2 sends a second service activation command to WF2, instructing it to activate the port collaborative operation service; After receiving the instruction, WF2 sends a second join service request message to the port collaborative operation server via the wireless channel; After receiving the second port collaborative operation service response message from the port collaborative operation server, if the second port collaborative operation service response message indicates success, WF2 sends a notification message to CF2 to indicate that the port collaborative operation service has been successfully enabled.
8. The system as described in claim 6, characterized in that, When the distance between the gas transport equipment and the terminal is less than the threshold value T1, CF1 sends a third activation service command to WF1, instructing the gas transport equipment to activate the port collaborative operation service. After receiving the instruction, WF1 sends a third join service request message to the port collaborative operation server via the wireless channel; After receiving the third port collaborative operation service response message from the port collaborative operation server, if the third port collaborative operation service message indicates success, WF1 sends a notification message to CF1 to indicate that the port collaborative operation service has been successfully enabled.
9. The system as described in claim 6, characterized in that, The first service activation instruction includes one or more of the following parameters: Service enable and Service ID. In the first service activation instruction, Service enable indicates whether the service is enabled. Setting it to true indicates that the service is enabled. In the first service activation instruction, Service ID is a service identifier used to identify the port collaborative operation service.
10. A method for detecting gas leaks, characterized in that, The method is applied to the gas leak detection system as described in any one of claims 1-9, and the method includes: The port terminal communicated with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service. The connecting equipment communicates with the port collaborative operation server via a wide area network to successfully enable the port collaborative operation service. When the distance between the gas transport equipment and the port terminal is less than the threshold value T1, the gas transport equipment communicates with the port collaborative operation server through the wide area network to successfully activate the port collaborative operation service, where T1 is a value greater than 0. The connecting device and the port collaborative operation server negotiate the connecting service for the transport equipment. After the negotiation is successful, the connecting device is controlled to arrive at the dock according to the negotiated expected arrival time, and the gas transfer equipment is connected to the gas transport pipeline of the port dock. After arriving at the port terminal, the gas transport equipment connects its own gas export device to the gas transfer device and establishes a direct communication with the connecting device through a first communication link. This first communication link is different from the link connecting to the wide area network. The connecting equipment establishes a direct communication with the port terminal via a second communication link, which is different from the first communication link and the link connecting to the wide area network. After the gas transport equipment establishes direct communication with the connecting equipment, transport equipment, and port terminal, it begins to unload gas. The gas is exported to the connecting equipment via the gas export equipment, then transferred to the port terminal by the gas transfer equipment of the connecting equipment, and finally transported to the gas storage tank by the gas transport pipeline of the port terminal. During the unloading of gas, the connecting equipment, gas transport equipment, and port terminal each detect gas leak events through their respective pre-configured gas leak detection devices. When any one of the connecting equipment, gas transport equipment, and port terminal detects a gas leak event, it notifies the other equipment through the first communication link and the second communication link.