Intelligent production line control method and related equipment for threaded fire protection pipelines
By performing image feature analysis and deblurring in the threaded fire pipe production line, we optimized the control parameters of the pipe threading machine, solved the problems of low production line efficiency and low measurement accuracy, and improved the overall production efficiency and quality.
Patent Information
- Application Number
- CN202410976895.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-22
AI Technical Summary
In the fully automatic production line of threaded fire protection pipes, the control method of the threading process of the automatic pipe threading machine results in low production line efficiency and low measurement accuracy, affecting the overall production efficiency and finished product quality.
By analyzing the image features between the fixed-length pipe cutting machine and the pipe threading machine in the production line, a threading deblurring model is constructed, and fixed features are used to deblur the threading image, retaining the contour information, and optimizing the pipe threading machine. control parameters to improve the efficiency and accuracy of the production line.
The overall efficiency and production quality of the fully automatic production line for threaded fire pipes are improved, and the problems of low efficiency and low measurement accuracy in the control method of the threading process of the automatic pipe threading machine are solved.
Smart Images

Figure CN118521577B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent production line control, and in particular to a control method for an intelligent production line of threaded fire-fighting pipelines and related equipment. Background Art
[0002] Firefighting pipes refer to pipe materials used in firefighting to connect firefighting equipment and devices and to transport firefighting water, gas or other media. Due to special needs, the thickness and material of firefighting pipes have special requirements, and they are sprayed with red paint to transport firefighting water.
[0003] In the process of pipeline production, common ways of connecting pipelines are welding, flange connection and threaded connection. For pipes with threaded connections, threading process needs to be performed at the connection end of the pipeline in its production process.
[0004] At present, the fully automatic production process of threaded fire-fighting pipes is to place them on a step-by-step conveyor through an automatic transport AGV, and then be transferred to an automatic fixed-length pipe cutting machine by an automatic conveyor roller to cut the fire-fighting pipes. The cut fire-fighting pipes are then threaded by an automatic pipe threading machine to obtain threaded fire-fighting pipes. After that, they are processed by an automatic reducing machine, a tapping machine, and an automatic thread winding device, and then assembled by an automatic auxiliary pipe assembly device to complete the preparation of the fire-fighting pipes, and then transferred and stacked by an industrial robot.
[0005] In the above-mentioned fully automatic production process, the processing quality of the metal threading head directly determines the connection effect and quality of the joint, which in turn affects the efficiency and quality of the entire process. Therefore, the control of the automatic fixed-length pipe cutting machine and the automatic pipe threading machine is particularly important in the fully automatic production line of threaded fire pipes.
[0006] At present, the control of the threading process of the automatic pipe threading machine is carried out by using a camera to synchronously shoot and accurately track the threading head to achieve fine control and optimization of the threading process of the automatic pipe threading machine. However, this method requires the installation of a new synchronous measurement device next to the original equipment, which will affect the efficiency of the entire production line; the second method is to use deblurring processing on the captured image, but this deblurring processing will cause the destruction of contour information, thereby affecting the measurement accuracy.
[0007] The reduction of measurement accuracy and efficiency in the threading process of the entire fire protection pipe automatic production line will inevitably lead to a reduction in the production efficiency of the entire line and a reduction in the quality of the finished product. Summary of the invention
[0008] Based on the problems raised by the above background technology, the purpose of the present invention is to provide a control method for an intelligent production line of threaded fire-fighting pipes and related equipment. By optimizing the control of the pipe cutting process and the threading process of the fire-fighting pipes in the fully automatic production line based on the overall production process, the overall efficiency and accuracy of the production process are improved, which solves the problems of low production line efficiency and low measurement accuracy of the current control method for the threading process of the automatic pipe threading machine.
[0009] The present invention is achieved through the following technical solutions:
[0010] The first aspect of the present invention provides a control method for an intelligent production line of threaded fire-fighting pipes, comprising the following steps:
[0011] Step S1, the fire-fighting pipe is transferred to a fixed-length pipe cutting machine, and a camera group arranged around the fixed-length pipe cutting machine takes pictures to obtain a pipe-cutting image;
[0012] Step S2, performing feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain broken pipe image features, dividing the broken pipe image features into broken pipe features and fixed features, and optimizing the control parameters of the fixed-length pipe cutting machine using the broken pipe features;
[0013] Step S3, the fire-fighting pipe after the fixed-length pipe cutting is transferred to the pipe threading machine, and the camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image;
[0014] Step S4, constructing a pipe thread deblurring model, taking the broken pipe image marked with the fixed features as the first input image, taking the pipe thread image as the second input image, inputting the first input image and the second input image into the pipe thread deblurring model for analysis and processing, and obtaining a deblurred pipe thread image;
[0015] Step S5, measuring the deblurred threading image to obtain threading parameters, analyzing and optimizing the threading parameters based on the production parameters, and optimizing the control parameters of the pipe threading machine using the threading parameters after analysis and optimization.
[0016] In the above technical scheme, starting from the fixed-length broken pipe, the image of the fixed-length broken pipe is subjected to broken pipe feature analysis and fixed feature analysis, wherein the fixed feature is an analysis of the features in the fire protection pipe that do not change with the motion state and is marked in the pipe image for subsequent defuzzification of the threaded image.
[0017] A pipe thread deblurring model is constructed. The broken pipe image marked with fixed features is taken as the first input image, and the pipe thread image is taken as the second input image. The first input image and the second input image are analyzed and compared. Based on the analysis and comparison, the pipe thread image is deblurred, so that the pipe thread image retains the characteristics of the fire pipe image while removing the blurred image in the pipe thread image, thereby obtaining a deblurred pipe thread image that retains the characteristics of the fire pipe image including the contour information.
[0018] The parameters of the threaded part in the deblurred threading image are measured, and the measured parameters are analyzed and optimized. The optimized parameters are used to optimize the control parameters of the pipe threading machine to improve the overall efficiency of the fully automatic production line of threaded fire-fighting pipes and the production quality of threaded fire-fighting pipes.
[0019] In an optional embodiment, performing feature analysis on the broken pipe image based on production parameters of the fire protection pipe and equipment parameters of the fixed-length pipe cutting machine to obtain the broken pipe image features includes the following steps:
[0020] Step S21, performing position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establishing a broken pipe structure model according to the position recognition result;
[0021] Step S22, marking the broken pipe points of the fire protection pipe on the broken pipe structure model, wherein the broken pipe points include inner broken pipe points and outer broken pipe points, and associating the inner broken pipe points and the outer broken pipe points of the broken pipe structure model with the production parameters to generate broken pipe features;
[0022] Step S23: Perform invariance analysis using the broken pipe feature to obtain a fixed feature.
[0023] In an optional embodiment, the broken pipe point of the fire protection pipe is marked on the broken pipe structure model, the broken pipe point includes an inner broken pipe point and an outer broken pipe point, and the inner broken pipe point and the outer broken pipe point of the broken pipe structure model are associated with each other using the production parameters, and generating the broken pipe feature includes the following steps:
[0024] Step S221, determining the positional relationship between the fixed-length pipe cutting machine and the fire-fighting pipe in the pipe-cutting structure model, and determining the central axis of the fire-fighting pipe using the positional relationship;
[0025] Step S222, identifying and marking the broken pipe point of the fire pipe from the broken pipe structure model, marking the point where the central axis passes through the cross section of the fire pipe as the center point, connecting the center point and the broken pipe point respectively, to obtain a broken pipe connection line set;
[0026] Step S223, performing straight line determination on each broken pipe connection line in the broken pipe connection line set:
[0027] If a straight line passes through two outer pipe break points and two inner pipe break points, the two outer pipe break points and the two inner pipe break points that the straight line passes through are combined and marked as the first pipe break point feature;
[0028] If a straight line passes through two external pipe-breaking points, the two external pipe-breaking points that the straight line passes through are combined and marked as the second pipe-breaking point feature;
[0029] If a straight line passes through two inner pipe break points, the two inner pipe break points that the straight line passes through are merged and marked as the third pipe break point feature;
[0030] Step S224, using the production parameters to perform parameter discrimination on the second pipe breaking point feature, associating the second pipe breaking point feature that meets the production parameters to obtain the outer contour feature; using the production parameters to perform parameter discrimination on the third pipe breaking point feature, associating the third pipe breaking point feature that meets the production parameters to obtain the inner contour feature.
[0031] In an optional embodiment, performing invariance analysis using the broken pipe feature to obtain a fixed feature includes the following steps:
[0032] Step S231, record the vector from the center point to the first pipe breaking point feature as a first vector, record the vector from the center point to the second pipe breaking point feature as a second vector, and record the vector from the center point to the third pipe breaking point feature as a third vector;
[0033] Step S232, calculating a first vector sum of the first vector and the second vector, recording the angle between the first vector and the second vector as a first angle, recording the angle between the first vector and the first vector sum as a second angle, and calculating a ratio of the first angle to the second angle as a first ratio;
[0034] Step S233, calculate the second vector sum of the first vector and the third vector, record the angle between the first vector and the third vector as the third angle, record the angle between the first vector and the second vector sum as the fourth angle, calculate the ratio of the third angle to the fourth angle and record it as the second ratio.
[0035] In an optional embodiment, constructing a thread deblurring model includes:
[0036] Constructing a first generator, the first generator is used to process a first input image and generate a first output image; wherein the first generator includes a convolution block, a downsampling convolution block and a deconvolution block;
[0037] Constructing a second generator, the second generator is used to process the second input image and generate a second output image; wherein the second generator includes a feature extraction network and a deblurring network in sequence; the feature extraction network includes four residual blocks with different scales and numbers of channels connected in sequence; the deblurring network includes a symmetrically arranged encoder and a decoder in sequence, the encoder includes a first encoding block, a second encoding block, a third encoding block, a fourth encoding block and a fifth encoding block arranged in sequence, a feature fusion module is provided between two adjacent encoding blocks, and the feature fusion module is used to perform feature fusion on the image features extracted by the feature extraction network and the image features extracted by the encoder;
[0038] Constructing a discriminator, the discriminator is used to discriminate the authenticity of the first input image and the second output image, and the authenticity of the second input image and the first output image; wherein the discriminator includes multiple convolutional layers, multiple normalization layers, multiple ReLU layers and Sigmoid layers;
[0039] A contrast network is constructed, where the contrast network is used to learn similar features of the second input image and the second output image based on fixed features of the first input image and the second output image, where the similar features are used to optimize the second generator.
[0040] In an optional embodiment, the broken pipe image marked with the fixed features is used as the first input image, the threading image is used as the second input image, the first input image and the second input image are input into the threading deblurring model for analysis and processing, and obtaining the deblurred threading image includes the following steps:
[0041] Input the first input image into the first generator, extract the broken tube features and fixed features of the first input image by the convolution block in the first generator, downsample the broken tube features and fixed features through the downsampling convolution block, and restore the downsampled broken tube features and fixed features by the deconvolution block to obtain a first output image;
[0042] Input the second input image into the second generator, and extract the first feature, the second feature, the third feature and the fourth feature respectively by the residual block in the feature extraction network; wherein the first feature at least includes the image feature of the pipe threading machine, the second feature at least includes the image feature of the outer contour of the fire pipe, the third feature at least includes the image feature of the inner contour of the fire pipe, and the fourth feature at least includes the image feature of the central axis of the fire pipe;
[0043] The first coding block, the second coding block, and the third coding block extract first coding block features, second coding block features, third coding block features, and fourth coding block features from the first input image, and the feature fusion module fuses the first coding block feature with the first feature, the second coding block feature with the second feature, the third coding block feature with the third feature, and the fourth coding block feature with the fourth feature, and transmits them to the decoder for decoding, respectively, to generate a second output image.
[0044] The second aspect of the present invention provides a threaded fire protection pipeline intelligent production line control system, comprising:
[0045] A broken pipe image module, which is used to transfer the fire pipe to a fixed-length pipe cutting machine, and to obtain a broken pipe image by taking pictures with a camera group arranged around the fixed-length pipe cutting machine;
[0046] A broken pipe image feature module, wherein the broken pipe image feature is used to perform feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain the broken pipe image feature, divide the broken pipe image feature into a broken pipe feature and a fixed feature, and use the broken pipe feature to optimize the control parameters of the fixed-length pipe cutting machine;
[0047] A threading image module, which is used to transfer the fire-fighting pipe after the pipe is cut to a fixed length to a pipe threading machine, and a camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image;
[0048] A deblurring module, wherein the deblurring module is used to construct a pipe thread deblurring model, wherein the broken pipe image marked with the fixed feature is used as a first input image, the pipe thread image is used as a second input image, and the first input image and the second input image are input into the pipe thread deblurring model for analysis and processing to obtain a deblurred pipe thread image;
[0049] An optimization module is used to measure the deblurred threading image to obtain threading parameters, analyze and optimize the threading parameters based on the production parameters, and use the analyzed and optimized threading parameters to optimize the control parameters of the pipe threading machine.
[0050] In an optional embodiment, the broken tube image feature module includes:
[0051] A broken pipe structure model unit, wherein the broken pipe structure model recognition unit is used to perform position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establish a broken pipe structure model according to the position recognition result;
[0052] A pipe breaking feature unit, the pipe breaking feature unit is used to mark the pipe breaking point of the fire protection pipe on the pipe breaking structure model, the pipe breaking point includes an inner pipe breaking point and an outer pipe breaking point, and the inner pipe breaking point and the outer pipe breaking point of the pipe breaking structure model are associated with each other by using the production parameters to generate a pipe breaking feature;
[0053] A fixed feature unit is used to perform invariance analysis using the broken pipe feature to obtain a fixed feature.
[0054] A third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for controlling an intelligent production line of threaded fire protection pipes when executing the program.
[0055] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for controlling an intelligent production line of threaded fire-fighting pipes.
[0056] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0057] The present invention acquires and analyzes images based on the upstream production process of the pipe threading production process to obtain fixed features of the fire protection pipe, and uses the fixed features to deblur the threading image. Compared with the existing tracking measurement and simple image deblurring, since the image relationship between the upstream and downstream of the production process is analyzed and the blurred threading image is processed using the fixed features in the production process, the deblurred threading image obtained still retains the image features of the fire protection pipe including contour information, thereby improving the overall efficiency and accuracy of the production process, and solving the problems of low production line efficiency and low measurement accuracy in the current control method for the threading process of the automatic pipe threading machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0059] Figure 1 A schematic flow chart of a method for controlling an intelligent production line of threaded fire-fighting pipes provided in Example 1 of the present invention;
[0060] Figure 2 A structural schematic diagram of a threaded fire protection pipeline intelligent production line control system provided in Example 2 of the present invention;
[0061] Figure 3 A schematic diagram of the structure of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0062] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0063] Embodiment 1 of the present invention provides a method for controlling an intelligent production line of threaded fire-fighting pipes, such as Figure 1 As shown, the control method of the intelligent production line of threaded fire-fighting pipelines includes the following steps:
[0064] Step S1, the fire-fighting pipe is transferred to a fixed-length pipe cutting machine, and a camera group arranged around the fixed-length pipe cutting machine takes pictures to obtain a pipe-cutting image;
[0065] Step S2, performing feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain broken pipe image features, dividing the broken pipe image features into broken pipe features and fixed features, and optimizing the control parameters of the fixed-length pipe cutting machine using the broken pipe features;
[0066] Step S3, the fire-fighting pipe after the fixed-length pipe cutting is transferred to the pipe threading machine, and the camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image;
[0067] Step S4, constructing a pipe thread deblurring model, taking the broken pipe image marked with the fixed features as the first input image, taking the pipe thread image as the second input image, inputting the first input image and the second input image into the pipe thread deblurring model for analysis and processing, and obtaining a deblurred pipe thread image;
[0068] Step S5, measuring the deblurred threading image to obtain threading parameters, analyzing and optimizing the threading parameters based on the production parameters, and optimizing the control parameters of the pipe threading machine using the threading parameters after analysis and optimization.
[0069] It should be noted that the current control of the threading process of the automatic pipe threading machine is to use a camera to synchronously shoot and accurately track the threading head to achieve fine control and optimization of the threading process of the automatic pipe threading machine. However, this method requires the installation of a new synchronous measurement device next to the original equipment, which will affect the efficiency of the entire production line; the second method is to blur the captured image, but the blurring will cause the destruction of contour information, thereby affecting the measurement accuracy.
[0070] In view of the above problems, the present invention proposes a control method for an intelligent production line of threaded fire-fighting pipes. Considering the overall process of the production line, the previous production process of pipe threading in the production line is fixed-length pipe breaking. Therefore, starting from the fixed-length broken pipe, the present invention performs broken pipe feature analysis and fixed feature analysis on the image of the fixed-length broken pipe, wherein the fixed feature is to analyze the features in the fire-fighting pipe that do not change with the motion state, and mark them in the pipe image for subsequent defuzzification processing of the threading image.
[0071] A pipe thread deblurring model is constructed. The broken pipe image marked with fixed features is taken as the first input image, and the pipe thread image is taken as the second input image. The first input image and the second input image are analyzed and compared. Based on the analysis and comparison, the pipe thread image is deblurred, so that the pipe thread image retains the characteristics of the fire pipe image while removing the blurred image in the pipe thread image, thereby obtaining a deblurred pipe thread image that retains the characteristics of the fire pipe image including the contour information.
[0072] The parameters of the threaded part in the deblurred threading image are measured, and the measured parameters are analyzed and optimized. The optimized parameters are used to optimize the control parameters of the pipe threading machine to improve the overall efficiency of the fully automatic production line of threaded fire-fighting pipes and the production quality of threaded fire-fighting pipes.
[0073] The present invention acquires and analyzes images based on the upstream production process of the pipe threading production process to obtain fixed features of the fire protection pipe, and uses the fixed features to deblur the threading image. Compared with the existing tracking measurement and simple image deblurring, since the image relationship between the upstream and downstream of the production process is analyzed and the blurred threading image is processed using the fixed features in the production process, the deblurred threading image obtained still retains the image features of the fire protection pipe including contour information, thereby improving the overall efficiency and accuracy of the production process, and solving the problems of low production line efficiency and low measurement accuracy in the current control method for the threading process of the automatic pipe threading machine.
[0074] In an optional embodiment, performing feature analysis on the broken pipe image based on production parameters of the fire protection pipe and equipment parameters of the fixed-length pipe cutting machine to obtain the broken pipe image features includes the following steps:
[0075] Step S21, performing position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establishing a broken pipe structure model according to the position recognition result;
[0076] Step S22, marking the broken pipe points of the fire protection pipe on the broken pipe structure model, wherein the broken pipe points include inner broken pipe points and outer broken pipe points, and associating the inner broken pipe points and the outer broken pipe points of the broken pipe structure model with the production parameters to generate broken pipe features;
[0077] Step S23: Perform invariance analysis using the broken pipe feature to obtain a fixed feature.
[0078] In an optional embodiment, the broken pipe point of the fire protection pipe is marked on the broken pipe structure model, the broken pipe point includes an inner broken pipe point and an outer broken pipe point, and the inner broken pipe point and the outer broken pipe point of the broken pipe structure model are associated with each other using the production parameters, and generating the broken pipe feature includes the following steps:
[0079] Step S221, determining the positional relationship between the fixed-length pipe cutting machine and the fire-fighting pipe in the pipe-cutting structure model, and determining the central axis of the fire-fighting pipe using the positional relationship;
[0080] Step S222, identifying and marking the broken pipe point of the fire pipe from the broken pipe structure model, marking the point where the central axis passes through the cross section of the fire pipe as the center point, connecting the center point and the broken pipe point respectively, to obtain a broken pipe connection line set;
[0081] Step S223, performing straight line determination on each broken pipe connection line in the broken pipe connection line set:
[0082] If a straight line passes through two outer pipe break points and two inner pipe break points, the two outer pipe break points and the two inner pipe break points that the straight line passes through are combined and marked as the first pipe break point feature;
[0083] If a straight line passes through two external pipe-breaking points, the two external pipe-breaking points that the straight line passes through are combined and marked as the second pipe-breaking point feature;
[0084] If a straight line passes through two inner pipe break points, the two inner pipe break points that the straight line passes through are merged and marked as the third pipe break point feature;
[0085] Step S224, using the production parameters to perform parameter discrimination on the second pipe breaking point feature, associating the second pipe breaking point feature that meets the production parameters to obtain the outer contour feature; using the production parameters to perform parameter discrimination on the third pipe breaking point feature, associating the third pipe breaking point feature that meets the production parameters to obtain the inner contour feature.
[0086] It should be noted that, due to the blurring of the edges of the image obtained during the threading process, the contour points and the center points of the fire pipe are used as feature points for identification in the embodiment of the present invention. Since the fire pipe after the pipe is broken is a hollow cylindrical tube body, it has an outer contour and an inner contour, and the difference between the outer contour and the inner contour is the thickness of the pipe. Based on the above characteristics, the embodiment of the present invention respectively constructs the outer broken pipe point and the inner broken pipe point, and the broken pipe point features are respectively constructed based on the center of the fire pipe.
[0087] Among them, parameter discrimination is based on the inner and outer radii of the fire protection pipe. There are extraction errors when extracting contour points. At this time, using production parameters to screen them is conducive to constructing contour features.
[0088] In an optional embodiment, performing invariance analysis using the broken pipe feature to obtain a fixed feature includes the following steps:
[0089] Step S231, record the vector from the center point to the first pipe breaking point feature as a first vector, record the vector from the center point to the second pipe breaking point feature as a second vector, and record the vector from the center point to the third pipe breaking point feature as a third vector;
[0090] Step S232, calculating a first vector sum of the first vector and the second vector, recording the angle between the first vector and the second vector as a first angle, recording the angle between the first vector and the first vector sum as a second angle, and calculating a ratio of the first angle to the second angle as a first ratio;
[0091] Step S233, calculate the second vector sum of the first vector and the third vector, record the angle between the first vector and the third vector as the third angle, record the angle between the first vector and the second vector sum as the fourth angle, calculate the ratio of the third angle to the fourth angle and record it as the second ratio.
[0092] It should be noted that during the threading process, the fire pipe rotates due to threading, resulting in a blurred image. Therefore, the shape characteristics of the fire pipe are utilized in the present invention, and the angle ratio is used as a fixed feature for subsequent deblurring processing.
[0093] In an optional embodiment, constructing a thread deblurring model includes:
[0094] Constructing a first generator, the first generator is used to process a first input image and generate a first output image; wherein the first generator includes a convolution block, a downsampling convolution block and a deconvolution block;
[0095] Constructing a second generator, the second generator is used to process the second input image and generate a second output image; wherein the second generator includes a feature extraction network and a deblurring network in sequence; the feature extraction network includes four residual blocks with different scales and numbers of channels connected in sequence; the deblurring network includes a symmetrically arranged encoder and a decoder in sequence, the encoder includes a first encoding block, a second encoding block, a third encoding block, a fourth encoding block and a fifth encoding block arranged in sequence, a feature fusion module is provided between two adjacent encoding blocks, and the feature fusion module is used to perform feature fusion on the image features extracted by the feature extraction network and the image features extracted by the encoder;
[0096] Constructing a discriminator, the discriminator is used to discriminate the authenticity of the first input image and the second output image, and the authenticity of the second input image and the first output image; wherein the discriminator includes multiple convolutional layers, multiple normalization layers, multiple ReLU layers and Sigmoid layers;
[0097] A contrast network is constructed, where the contrast network is used to learn similar features of the second input image and the second output image based on fixed features of the first input image and the second output image, where the similar features are used to optimize the second generator.
[0098] In an optional embodiment, the broken pipe image marked with the fixed features is used as the first input image, the threading image is used as the second input image, the first input image and the second input image are input into the threading deblurring model for analysis and processing, and obtaining the deblurred threading image includes the following steps:
[0099] Input the first input image into the first generator, extract the broken tube features and fixed features of the first input image by the convolution block in the first generator, downsample the broken tube features and fixed features through the downsampling convolution block, and restore the downsampled broken tube features and fixed features by the deconvolution block to obtain a first output image;
[0100] Input the second input image into the second generator, and extract the first feature, the second feature, the third feature and the fourth feature respectively by the residual block in the feature extraction network; wherein the first feature at least includes the image feature of the pipe threading machine, the second feature at least includes the image feature of the outer contour of the fire pipe, the third feature at least includes the image feature of the inner contour of the fire pipe, and the fourth feature at least includes the image feature of the central axis of the fire pipe;
[0101] The first coding block, the second coding block, and the third coding block extract first coding block features, second coding block features, third coding block features, and fourth coding block features from the first input image, and the feature fusion module fuses the first coding block feature with the first feature, the second coding block feature with the second feature, the third coding block feature with the third feature, and the fourth coding block feature with the fourth feature, and transmits them to the decoder for decoding, respectively, to generate a second output image.
[0102] Embodiment 2 of the present invention provides a threaded fire protection pipeline intelligent production line control system, such as Figure 2 As shown, the intelligent production line control system of threaded fire protection pipelines includes:
[0103] A broken pipe image module, which is used to transfer the fire pipe to a fixed-length pipe cutting machine, and to obtain a broken pipe image by taking pictures with a camera group arranged around the fixed-length pipe cutting machine;
[0104] A broken pipe image feature module, wherein the broken pipe image feature is used to perform feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain the broken pipe image feature, divide the broken pipe image feature into a broken pipe feature and a fixed feature, and use the broken pipe feature to optimize the control parameters of the fixed-length pipe cutting machine;
[0105] A threading image module, which is used to transfer the fire-fighting pipe after the pipe is cut to a fixed length to a pipe threading machine, and a camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image;
[0106] A deblurring module, wherein the deblurring module is used to construct a pipe thread deblurring model, wherein the broken pipe image marked with the fixed feature is used as a first input image, the pipe thread image is used as a second input image, and the first input image and the second input image are input into the pipe thread deblurring model for analysis and processing to obtain a deblurred pipe thread image;
[0107] An optimization module is used to measure the deblurred threading image to obtain threading parameters, analyze and optimize the threading parameters based on the production parameters, and use the analyzed and optimized threading parameters to optimize the control parameters of the pipe threading machine.
[0108] In an optional embodiment, the broken tube image feature module includes:
[0109] A broken pipe structure model unit, wherein the broken pipe structure model recognition unit is used to perform position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establish a broken pipe structure model according to the position recognition result;
[0110] A pipe breaking feature unit, the pipe breaking feature unit is used to mark the pipe breaking point of the fire protection pipe on the pipe breaking structure model, the pipe breaking point includes an inner pipe breaking point and an outer pipe breaking point, and the inner pipe breaking point and the outer pipe breaking point of the pipe breaking structure model are associated with each other by using the production parameters to generate a pipe breaking feature;
[0111] A fixed feature unit is used to perform invariance analysis using the broken pipe feature to obtain a fixed feature.
[0112] Embodiment 3 of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes a processor 21, a memory 22, an input device 23 and an output device 24; the number of processors 21 in the computer device can be one or more. Figure 3 A processor 21 is taken as an example; the processor 21, the memory 22, the input device 23 and the output device 24 in the electronic device can be connected by a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0113] The memory 22 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor 21 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 22, that is, the intelligent production line control method of the threaded fire-fighting pipeline of Example 1 is implemented.
[0114] The memory 22 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 22 may further include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0115] The input device 23 can be used to receive the ID and password input by the user, etc. The output device 24 is used to output the network configuration page.
[0116] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-executable instructions, when executed by a computer processor, are used to implement the intelligent production line control method for threaded fire protection pipes as provided in Embodiment 1.
[0117] An embodiment of the present invention provides a storage medium containing computer executable instructions, and its computer executable instructions are not limited to the method operations provided in Example 1, and can also execute related operations in the intelligent production line control method for threaded fire protection pipes provided in any embodiment of the present invention.
[0118] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for controlling an intelligent production line of threaded fire-fighting pipes, characterized in that: The steps include: Step S1, the fire-fighting pipe is transferred to a fixed-length pipe cutting machine, and a camera group arranged around the fixed-length pipe cutting machine takes pictures to obtain a pipe-cutting image; Step S2, performing feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain broken pipe image features, dividing the broken pipe image features into broken pipe features and fixed features, and optimizing the control parameters of the fixed-length pipe cutting machine using the broken pipe features; Step S3, the fire-fighting pipe after the fixed-length pipe cutting is transferred to the pipe threading machine, and the camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image; Step S4, constructing a pipe thread deblurring model, taking the broken pipe image marked with the fixed features as the first input image, taking the pipe thread image as the second input image, inputting the first input image and the second input image into the pipe thread deblurring model for analysis and processing, and obtaining a deblurred pipe thread image; Step S5, measuring the deblurred threading image to obtain threading parameters, analyzing and optimizing the threading parameters based on the production parameters, and optimizing the control parameters of the pipe threading machine using the threading parameters after analysis and optimization; Among them, building a thread deblurring model includes: Constructing a first generator, the first generator is used to process a first input image and generate a first output image; wherein the first generator includes a convolution block, a downsampling convolution block and a deconvolution block; Constructing a second generator, the second generator is used to process the second input image and generate a second output image; wherein the second generator includes a feature extraction network and a deblurring network in sequence; the feature extraction network includes four residual blocks with different scales and numbers of channels connected in sequence; the deblurring network includes a symmetrically arranged encoder and a decoder in sequence, the encoder includes a first encoding block, a second encoding block, a third encoding block, a fourth encoding block and a fifth encoding block arranged in sequence, a feature fusion module is provided between two adjacent encoding blocks, and the feature fusion module is used to perform feature fusion on the image features extracted by the feature extraction network and the image features extracted by the encoder; Constructing a discriminator, the discriminator is used to discriminate the authenticity of the first input image and the second output image, and the authenticity of the second input image and the first output image; wherein the discriminator includes multiple convolutional layers, multiple normalization layers, multiple ReLU layers and Sigmoid layers; Constructing a contrast network, wherein the contrast network is used to learn similar features of the second input image and the second output image based on fixed features of the first input image and the second output image, and the similar features are used to optimize the second generator; The broken pipe image marked with the fixed features is used as the first input image, the threading image is used as the second input image, the first input image and the second input image are input into the threading deblurring model for analysis and processing, and obtaining the deblurred threading image includes the following steps: Input the first input image into the first generator, extract the broken tube features and fixed features of the first input image by the convolution block in the first generator, downsample the broken tube features and fixed features through the downsampling convolution block, and restore the downsampled broken tube features and fixed features by the deconvolution block to obtain a first output image; Input the second input image into the second generator, and extract the first feature, the second feature, the third feature and the fourth feature respectively by the residual block in the feature extraction network; wherein the first feature at least includes the image feature of the pipe threading machine, the second feature at least includes the image feature of the outer contour of the fire pipe, the third feature at least includes the image feature of the inner contour of the fire pipe, and the fourth feature at least includes the image feature of the central axis of the fire pipe; The first coding block, the second coding block, and the third coding block extract first coding block features, second coding block features, third coding block features, and fourth coding block features from the first input image, and the feature fusion module fuses the first coding block feature with the first feature, the second coding block feature with the second feature, the third coding block feature with the third feature, and the fourth coding block feature with the fourth feature, and transmits them to the decoder for decoding, respectively, to generate a second output image.
2. The intelligent production line control method for threaded fire-fighting pipes according to claim 1 is characterized in that: Based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine, the broken pipe image is subjected to feature analysis to obtain the broken pipe image features, which includes the following steps: Step S21, performing position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establishing a broken pipe structure model according to the position recognition result; Step S22, marking the broken pipe points of the fire protection pipe on the broken pipe structure model, wherein the broken pipe points include inner broken pipe points and outer broken pipe points, and associating the inner broken pipe points and the outer broken pipe points of the broken pipe structure model with the production parameters to generate broken pipe features; Step S23: Perform invariance analysis using the broken pipe feature to obtain a fixed feature.
3. The intelligent production line control method for threaded fire-fighting pipes according to claim 2 is characterized in that: Marking the broken pipe points of the fire protection pipe on the broken pipe structure model, wherein the broken pipe points include inner broken pipe points and outer broken pipe points, and associating the inner broken pipe points and the outer broken pipe points of the broken pipe structure model with the production parameters to generate broken pipe features, including the following steps: Step S221, determining the positional relationship between the fixed-length pipe cutting machine and the fire-fighting pipe in the pipe-cutting structure model, and determining the central axis of the fire-fighting pipe using the positional relationship; Step S222, identifying and marking the broken pipe point of the fire pipe from the broken pipe structure model, marking the point where the central axis passes through the cross section of the fire pipe as the center point, connecting the center point and the broken pipe point respectively, to obtain a broken pipe connection line set; Step S223, performing straight line determination on each broken pipe connection line in the broken pipe connection line set: If a straight line passes through two outer pipe break points and two inner pipe break points, the two outer pipe break points and the two inner pipe break points that the straight line passes through are combined and marked as the first pipe break point feature; If a straight line passes through two external pipe-breaking points, the two external pipe-breaking points that the straight line passes through are combined and marked as the second pipe-breaking point feature; If a straight line passes through two inner pipe break points, the two inner pipe break points that the straight line passes through are merged and marked as the third pipe break point feature; Step S224, using the production parameters to perform parameter discrimination on the second pipe breaking point feature, associating the second pipe breaking point feature that meets the production parameters to obtain the outer contour feature; using the production parameters to perform parameter discrimination on the third pipe breaking point feature, associating the third pipe breaking point feature that meets the production parameters to obtain the inner contour feature.
4. The intelligent production line control method for threaded fire-fighting pipes according to claim 3 is characterized in that: Using the broken pipe feature to perform invariance analysis to obtain fixed features includes the following steps: Step S231, record the vector from the center point to the first pipe breaking point feature as a first vector, record the vector from the center point to the second pipe breaking point feature as a second vector, and record the vector from the center point to the third pipe breaking point feature as a third vector; Step S232, calculating a first vector sum of the first vector and the second vector, recording the angle between the first vector and the second vector as a first angle, recording the angle between the first vector and the first vector sum as a second angle, and calculating a ratio of the first angle to the second angle as a first ratio; Step S233, calculate the second vector sum of the first vector and the third vector, record the angle between the first vector and the third vector as the third angle, record the angle between the first vector and the second vector sum as the fourth angle, calculate the ratio of the third angle to the fourth angle and record it as the second ratio.
5. The intelligent production line control system of threaded fire-fighting pipelines is characterized by: include: A broken pipe image module, which is used to transfer the fire pipe to a fixed-length pipe cutting machine, and to obtain a broken pipe image by taking pictures with a camera group arranged around the fixed-length pipe cutting machine; A broken pipe image feature module, wherein the broken pipe image feature is used to perform feature analysis on the broken pipe image based on the production parameters of the fire protection pipeline and the equipment parameters of the fixed-length pipe cutting machine to obtain the broken pipe image feature, divide the broken pipe image feature into a broken pipe feature and a fixed feature, and use the broken pipe feature to optimize the control parameters of the fixed-length pipe cutting machine; A threading image module, which is used to transfer the fire-fighting pipe after the pipe is cut to a fixed length to a pipe threading machine, and a camera group arranged around the pipe threading machine takes a picture of the fire-fighting pipe to obtain a threading image; A deblurring module, wherein the deblurring module is used to construct a pipe thread deblurring model, wherein the broken pipe image marked with the fixed feature is used as a first input image, the pipe thread image is used as a second input image, and the first input image and the second input image are input into the pipe thread deblurring model for analysis and processing to obtain a deblurred pipe thread image; An optimization module, the optimization module is used to measure the deblurred threading image to obtain threading parameters, analyze and optimize the threading parameters based on the production parameters, and optimize the control parameters of the pipe threading machine using the threading parameters after analysis and optimization; Wherein, the deblurring module comprises: A first generator unit, the first generator unit is used to construct a first generator, the first generator is used to process a first input image and generate a first output image; wherein the first generator includes a convolution block, a downsampling convolution block and a deconvolution block; A second generator unit, the second generator unit is used to construct a second generator, the second generator is used to process a second input image and generate a second output image; wherein the second generator includes a feature extraction network and a deblurring network in sequence; the feature extraction network includes four residual blocks with different scales and numbers of channels connected in sequence; the deblurring network includes a symmetrically arranged encoder and a decoder in sequence, the encoder includes a first encoding block, a second encoding block, a third encoding block, a fourth encoding block and a fifth encoding block arranged in sequence, a feature fusion module is provided between two adjacent encoding blocks, and the feature fusion module is used to perform feature fusion on the image features extracted by the feature extraction network and the image features extracted by the encoder; A discriminator unit, the discriminator unit is used to construct a discriminator, the discriminator is used to discriminate the authenticity of the first input image and the second output image, and the authenticity of the second input image and the first output image; wherein the discriminator includes multiple convolutional layers, multiple normalization layers, multiple ReLU layers and Sigmoid layers; A comparison network unit, the comparison network unit is used to construct a comparison network, the comparison network is used to learn similar features of the second input image and the second output image based on fixed features of the first input image and the second output image, and the similar features are used to optimize the second generator; a first image processing unit, the first image processing unit being used to input the first input image into the first generator, extracting the broken tube features and fixed features of the first input image by the convolution block in the first generator, downsampling the broken tube features and fixed features through the downsampling convolution block, and restoring the downsampled broken tube features and fixed features by the deconvolution block to obtain a first output image; a second image processing unit, the second image processing unit is used to input the second input image into the second generator, and extract the first feature, the second feature, the third feature and the fourth feature respectively by the residual block in the feature extraction network; wherein the first feature at least includes the image feature of the pipe threading machine, the second feature at least includes the image feature of the outer contour of the fire pipe, the third feature at least includes the image feature of the inner contour of the fire pipe, and the fourth feature at least includes the image feature of the central axis of the fire pipe; A decoding unit, wherein the first coding block, the second coding block, and the third coding block extract a first coding block feature, a second coding block feature, a third coding block feature, and a fourth coding block feature from the first input image, and the feature fusion module fuses the first coding block feature with the first feature, the second coding block feature with the second feature, the third coding block feature with the third feature, and the fourth coding block feature with the fourth feature, and transmits them to the decoder for decoding, respectively, to generate a second output image.
6. The intelligent production line control system for threaded fire-fighting pipes according to claim 5 is characterized in that: The broken tube image feature module comprises: A broken pipe structure model unit, wherein the broken pipe structure model recognition unit is used to perform position recognition on the broken pipe image based on the equipment parameters of the fixed-length pipe cutting machine, and establish a broken pipe structure model according to the position recognition result; A pipe breaking feature unit, the pipe breaking feature unit is used to mark the pipe breaking point of the fire protection pipe on the pipe breaking structure model, the pipe breaking point includes an inner pipe breaking point and an outer pipe breaking point, and the inner pipe breaking point and the outer pipe breaking point of the pipe breaking structure model are associated with each other by using the production parameters to generate a pipe breaking feature; A fixed feature unit is used to perform invariance analysis using the broken pipe feature to obtain a fixed feature.
7. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the intelligent production line control method for threaded-connected fire-fighting pipes as described in any one of claims 1 to 4 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the intelligent production line control method for threaded fire-fighting pipes as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Filament Yarn Inspection Device
KR102562048B1
Image processing method and apparatus, and storage medium and electronic device
WO2023066173A1
