Gas pipeline network video monitoring method based on 5G mobile network and image processing
Through deep learning model training and image processing of face images of gas pipeline network construction workers, the characteristic coefficients of each pixel are calculated, and combined with Gaussian filtering and SLIC algorithm, the problem of recognition errors caused by inaccurate segmentation of helmets is solved and improved Accuracy of face recognition.
Patent Information
- Application Number
- CN202410293840.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-14
AI Technical Summary
When using the SLIC super-pixel image segmentation algorithm to detect gas pipeline network construction workers, the construction workers' safety helmets are easily divided into multiple areas, resulting in inaccurate face recognition and problems of false detection, missed detection, and false detection.
By collecting face images of gas pipeline network construction workers, the FaceNet deep learning network model is trained, and the gas pipeline network protection area image is obtained, and the construction worker suspicion coefficient, confidence coefficient and safety helmet confidence coefficient of each pixel are calculated, combined with Gaussian filtering To remove noise, use the SLIC superpixel segmentation algorithm to obtain the image area, extract the feature area of the worker's helmet based on the shape features of the helmet, and combine it with the FaceNet deep learning network model for face recognition.
It effectively reduces the impact of noise, avoids missed detections and false detections caused by inaccurate font area segmentation, improves the accuracy and reliability of face recognition, and improves the accuracy of face positioning.
Smart Images

Figure CN118200480B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image data processing technology, and specifically to a gas pipeline network video monitoring method based on 5G mobile network and image processing. Background Art
[0002] As the fifth generation of mobile communication technology, 5G has faster speed, higher bandwidth and lower latency than 4G. Its uniqueness lies in supporting the simultaneous connection of more devices, providing unprecedented possibilities for the realization of the Internet of Everything. In recent years, artificial intelligence technology has made great progress. Through advanced algorithms such as learning, reasoning and neural networks, artificial intelligence can simulate the human decision-making process and perform specific tasks without direct human intervention. In this trend, AI video surveillance, as a specific application method of introducing artificial intelligence technology into actual production systems, combines image processing technology to analyze and reason about the images of the monitoring screen and extract key information. This can not only significantly improve the accuracy and intelligence of the monitoring system, but also further liberate productivity, making the production process more efficient and intelligent.
[0003] In order to prevent gas leakage accidents and minimize casualties and property losses, gas companies use 5G mobile networks combined with image processing to conduct video surveillance of gas pipeline construction workers to solve the frequent leakage accidents caused by construction digging and pipeline corrosion in urban gas pipeline operations. Due to the presence of fonts on the construction workers' helmets, when using the SLIC (simple lineariterative clustering) superpixel image segmentation algorithm to detect gas pipeline construction workers, it is easy to segment the helmets into multiple areas, resulting in false detection, missed detection, and misdetection, leading to inaccurate face recognition. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a gas pipeline network video monitoring method based on 5G mobile network and image processing to solve the existing problems.
[0005] The gas pipeline network video monitoring method based on 5G mobile network and image processing of the present invention adopts the following technical solutions:
[0006] An embodiment of the present invention provides a gas pipeline network video monitoring method based on 5G mobile network and image processing, the method comprising the following steps:
[0007] Collect facial images of gas pipeline network construction workers and train the FaceNet deep learning network model; obtain images of gas pipeline network protection areas;
[0008] For each pixel of the gas network protection area image; obtain the suspected coefficient of the construction worker of each pixel according to the distribution relationship between the RGB channel values of each pixel; obtain the confidence coefficient of the construction worker of each pixel according to the distribution of the confidence coefficient of the construction worker of each pixel and its neighboring pixels; obtain the confidence coefficient of the construction worker's helmet of each pixel according to the distribution relationship between the confidence coefficient of the construction worker of the neighboring pixels of each pixel and all pixels; obtain the confidence coefficient of the helmet according to the confidence coefficient of the construction worker's helmet of each pixel combined with Gaussian filtering to remove noise; obtain the color confidence distance between pixels according to the difference in the confidence coefficient of the helmet between pixels and the color difference characteristics; obtain each image area by using the SLIC superpixel segmentation algorithm in combination with the metric distance between pixels; obtain the characteristic area significance value of each image area according to the difference between the distribution of the helmet confidence coefficient of the pixel of each image area and the pixel of the entire image; take the image area with the characteristic area significance value greater than 0 as the worker's helmet feature area; obtain the helmet shape confidence of each worker's helmet feature area according to the shape characteristics of the worker's helmet area;
[0009] The face area of the gas pipeline construction workers is extracted according to the helmet shape confidence of each worker's helmet feature area, and face recognition is performed in combination with the trained FaceNet deep learning network model.
[0010] Preferably, the construction worker suspected coefficient of each pixel point is obtained according to the distribution relationship between the RGB channel values of each pixel point, and the specific steps include:
[0011] When the red channel value of each pixel is greater than or equal to the green channel value and greater than the blue channel value, the red feature value of each pixel is 1, otherwise the red channel value of each pixel is 0;
[0012] The numerical variance of each pixel in the red, green and blue channels is calculated; and the product of the variance of each pixel and the red eigenvalue is used as the construction worker suspected coefficient of each pixel.
[0013] Preferably, the construction worker confidence coefficient of each pixel is obtained according to the distribution of the construction worker confidence coefficient of each pixel and its neighboring pixel points, specifically:
[0014] For the 3×3 neighborhood of each pixel point; calculate the mean of the suspected coefficients of construction workers of all pixels in the neighborhood of each pixel point; count the number of pixels with non-zero suspected coefficients of construction workers in the neighborhood of each pixel point; and use the product of the mean and the number of pixels as the confidence coefficient of construction workers of each pixel point.
[0015] Preferably, the construction worker helmet confidence coefficient of each pixel point is obtained according to the distribution relationship between the neighborhood pixel points of each pixel point and the construction worker confidence coefficients of all pixel points, specifically:
[0016] Calculate the mean of the construction workers' confidence coefficients for all pixels;
[0017] When there is a construction worker confidence coefficient of a pixel point in the neighborhood of each pixel point that is greater than the mean, the maximum construction worker confidence coefficient in the neighborhood of each pixel point is used as the construction worker safety helmet confidence coefficient of each pixel point; otherwise, the construction worker confidence coefficient of each pixel point is used as the construction worker safety helmet confidence coefficient of each pixel point.
[0018] Preferably, the construction worker helmet confidence coefficient is obtained by combining the construction worker helmet confidence coefficient of each pixel point with Gaussian filtering to remove noise, specifically:
[0019] The Gaussian filtering algorithm of the confidence coefficient of the construction workers' safety helmets of all pixel points is input, and the output of the Gaussian filtering algorithm is the confidence coefficient of the construction workers' safety helmets of each pixel point after denoising; the normalized value of the confidence coefficient of the construction workers' safety helmets of each pixel point after denoising is used as the confidence coefficient of the safety helmet of each pixel point.
[0020] Preferably, the color confidence distance between the pixels is obtained according to the helmet confidence coefficient difference and the color difference feature between the pixels, specifically:
[0021] Convert the image of the gas network protection area into LAB space;
[0022] For pixel i and pixel j, the Euclidean distance between the LAB values of pixel i and pixel j is saved as the color distance between pixel i and pixel j in the LAB color space; a preset constant β is set; the absolute value of the difference between the helmet confidence coefficients of pixel i and pixel j is calculated; the product between β and the absolute value of the difference is calculated; and the sum of the product and the color distance is used as the color confidence distance between pixel i and pixel j.
[0023] Preferably, the metric distance between pixels is defined according to the color confidence distance and position distribution between the pixels, and the specific steps include:
[0024] Get the maximum values qL, qa, qb of the L, A, and B channels of the LAB color space respectively; preset the fixed constant m of the SLIC superpixel segmentation algorithm; the weight coefficient w is expressed as:
[0025]
[0026] The square root of the ratio of the number of all pixels to the number of superpixels is taken as the maximum distance S within the class;
[0027] For pixel i and pixel j, calculate the Euclidean distance between pixel i and pixel j; take the square of the ratio of the color confidence distance to the weight coefficient as the first distance; take the square of the ratio of the Euclidean distance to the maximum distance within the class as the second distance; calculate the sum of the first distance and the second distance; and take the square root of the sum as the metric distance between pixel i and pixel j.
[0028] Preferably, the obtaining of the characteristic region saliency value of each region according to the difference between the distribution of the helmet confidence coefficient of the pixel points in each image region and the pixel points in the entire image specifically includes:
[0029] The mean of the helmet confidence coefficients of all pixel points in each region is obtained; the mean of the helmet confidence coefficients of all pixel points in the image is taken as the overall mean; and the difference between the mean and the overall mean is taken as the characteristic region significance value of each region.
[0030] Preferably, the helmet shape confidence of each worker helmet area is obtained according to the shape feature of the worker helmet area, and the specific expression is:
[0031]
[0032] r t =ED(mp t ,mi t )
[0033] Where V t is the helmet shape confidence, exp() represents the exponential function with natural constant as base, N t is the number of pixels in the feature area t of the worker's helmet, π is the circumference of a circle, and r t is the diameter of the characteristic area t of the worker's helmet, ED is the Euclidean distance, mp t Represents the pixel coordinates with the largest sum of horizontal and vertical coordinates in the worker's helmet feature area t, mi t Represents the pixel coordinates with the smallest horizontal and vertical coordinates in the worker's helmet feature area t.
[0034] Preferably, the face area of the gas pipeline network construction workers is extracted according to the helmet shape confidence of each worker's helmet feature area, and face recognition is performed in combination with the trained FaceNet deep learning network model. The specific steps include:
[0035] Set the regional coefficient; take the worker's helmet feature area whose helmet shape confidence is greater than the regional coefficient as the helmet area; take the area below the helmet area as the face area; merge the helmet area with the face area as the input of the FaceNet deep learning network model; if the face area is recognized as a gas pipeline construction worker, the recognition is successful; otherwise, the recognition fails.
[0036] The present invention has at least the following beneficial effects:
[0037] The present invention first constructs a suspected coefficient for each pixel point through the clothing features of the gas pipeline construction workers; constructs the confidence coefficient of the construction workers according to the relationship between the pixel point and its neighborhood, effectively reducing the impact of noise; at the same time, in the confidence coefficient channel of the construction workers, an approximate morphological corrosion operation is used to effectively reduce the font area in the helmet, avoiding the omission and false detection caused by the inaccurate segmentation of the font area in the segmentation algorithm. The confidence coefficient of the construction workers is integrated into the distance of the SLIC algorithm, so that the pixels with similar confidence coefficients of the helmets are more easily divided into the same area, forming a more obvious difference with other areas, making the boundaries of the areas more certain and clear. Finally, according to the shape characteristics of the divided area, the area where the construction workers' helmets are located is determined, and the face is located through the area, so that the face positioning is more accurate, thereby improving the face recognition effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of a gas pipeline network video monitoring method based on 5G mobile network and image processing provided by the present invention;
[0040] Figure 2 Diagram of the steps for obtaining the face area and the helmet area. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of the gas pipeline network video monitoring method based on 5G mobile network and image processing proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0043] The following is a detailed description of the specific scheme of the gas pipeline network video monitoring method based on 5G mobile network and image processing provided by the present invention in conjunction with the accompanying drawings.
[0044] An embodiment of the present invention provides a gas pipeline network video monitoring method based on 5G mobile network and image processing.
[0045] Specifically, the following gas pipeline network video monitoring method based on 5G mobile network and image processing is provided, please refer to Figure 1 , the method comprises the following steps:
[0046] Step S001: Obtain facial data of gas pipeline network construction team members, train the face recognition deep learning model, and obtain images of the gas pipeline network protection area.
[0047] This embodiment mainly recognizes the facial images of people wearing safety helmets in the gas pipeline network protection area to determine whether the construction personnel are gas pipeline network construction personnel.
[0048] First, the facial data of the gas pipeline construction team members are collected, and the face recognition deep learning FaceNet network model is trained so that the FaceNet network model can accurately identify the identity information of the gas pipeline construction team members. It should be noted that the training process of the model is an existing public technology and will not be repeated in this embodiment.
[0049] In the gas pipeline network protection area, high-definition cameras are installed to obtain images of the gas pipeline network protection area.
[0050] Step S002: According to the clothing features of the construction workers, a helmet confidence coefficient is constructed for each pixel point, and the pixel area is distinguished; the image is segmented using the SLIC superpixel segmentation algorithm; and the helmet shape confidence of each area image is obtained by combining the shape features of the helmet.
[0051] When inspecting gas pipeline construction workers, the obvious color difference between the helmet and the surrounding environment can be used to improve the accuracy of detection. Normally, gas pipeline construction workers must wear yellow or red helmets, and the areas where gas pipelines are buried are often dominated by green vegetation or soil, and there is an obvious color difference between the two. Therefore, by performing color analysis and comparison on the image, the helmet and the background can be distinguished. This color difference-based method can be used as a supplement to the SLIC superpixel image segmentation algorithm to improve the accuracy and reliability of gas pipeline construction worker detection. Thus, the construction worker suspicion coefficient A is constructed for each pixel point. k , the expression is:
[0052] A k =RM k ×σ k
[0053]
[0054] In the formula, A k represents the construction worker suspicion coefficient of pixel k, σ k Represents the numerical variance of pixel k in the R, G, and B color channels, RM k Represents the red eigenvalue of pixel k, R k is the red image channel value of pixel k, G k is the green channel value of pixel k, B k is the blue channel value of pixel k. When the red pixel in the kth pixel is the largest, RM k =1.
[0055] Since the RGB pixel value of yellow is (255,255,0) and the pixel value of orange is (255,128,0), the red channel dominates in yellow and orange. When pixel k is yellow-orange or red, the red channel value of pixel k is greater than the other two color channels. At this time, RM k =1. During construction, most of the safety helmets on the construction site are yellow and red, with fewer orange helmets. Therefore, when the color of the k-th pixel is closer to red or yellow, its variance σ k The larger it is, the more likely the main color of the pixel is yellow or red, and the more likely it is the area where the helmet is located.
[0056] However, when a single abnormal pixel is yellow, orange or red, the construction worker suspicion coefficient of the pixel is relatively large. To suppress the occurrence of this problem, the distribution of the 3×3 neighborhood pixels of each pixel is considered with each pixel as the center. The implementer can adjust the size of the neighborhood according to the actual situation. Construct the construction worker confidence coefficient C k , the expression is:
[0057]
[0058] In the formula, C k expresses the construction worker confidence coefficient of pixel k, n represents the number of pixels in the neighborhood, A i Indicates the construction worker suspicion coefficient of pixel i, NUM(A k1 ,……,A kn ) represents the number of pixels with non-zero suspected coefficients of construction workers in the neighborhood pixels, A k1 , A kn They respectively represent the construction worker suspicion coefficients of the first and nth pixel points in the neighborhood of pixel point k.
[0059] The above formula processes the possible construction worker suspected coefficient noise pixel points. When the construction worker suspected coefficient A of the pixel point k When the construction worker confidence coefficient of its neighboring pixels is not 0, and the construction worker confidence coefficient of its neighboring pixels is 0, the pixel is a noise point. At this time, the neighborhood mean method is used to reduce the construction worker confidence coefficient of the noise pixel. k The value is not 0, which further reduces the confidence coefficient of the construction worker at the noise pixel point. At the non-noise point, that is, the pixel point of the gas pipeline construction worker's helmet, the construction worker's suspicion coefficient A k The distribution is dense, which leads to the construction personnel confidence coefficient C k Basically unchanged.
[0060] Obtain the confidence coefficient of the construction workers at all pixel points in the image of the gas network protection area. Considering that the font area that may exist in the helmet will affect the accuracy of the image segmentation algorithm, the morphological corrosion operation is used to reduce the font area in the helmet and calculate the confidence coefficient AC of the construction workers' helmet. k , the expression is:
[0061]
[0062] In the formula, AC k represents the confidence coefficient of the construction worker's helmet at pixel k, C k,i represents the construction worker confidence coefficient of the ith pixel in the neighborhood of pixel k, N represents the number of all pixels in the image of the gas network protection area, C i , C k They represent the construction worker confidence coefficients of pixel i and pixel k respectively, C k,max Indicates the maximum value of the construction worker confidence coefficient of pixel point k in the neighborhood.
[0063] If there is a pixel point in the neighborhood of the pixel point whose construction worker confidence coefficient is greater than the average construction worker confidence coefficient of the entire image, it means that the possibility that the area where the pixel point is located is the font area is greater, and the construction worker helmet confidence coefficient of the pixel point is greater.
[0064] When pixel k is in the font area, the surrounding pixels have a high confidence coefficient for construction workers, which results in a high confidence coefficient for the helmet of the font pixel. This method is used to corrode the font area in the helmet. The confidence coefficients for construction workers' helmets of all pixels are obtained, and a Gaussian filter algorithm of 5×5 is used in the helmet confidence coefficient channel to reduce possible noise pixels. Finally, the normalized helmet confidence coefficient is called MC. It should be noted that the Gaussian filter algorithm is a well-known technology and will not be described in detail in this embodiment.
[0065] In order to facilitate further segmentation of the construction workers' helmet areas in the image, the collected RGB image is converted into the LAB color space, wherein the image conversion is an existing well-known technology and will not be repeated in this embodiment. Using the SLIC superpixel segmentation algorithm, the number of superpixels is set to u. This embodiment takes the empirical value of 144, and the implementer can adjust it according to the actual situation. The SLIC superpixel segmentation algorithm is a clustering-based image segmentation algorithm that divides the input image into a series of color-similar areas. Combined with the helmet confidence coefficient, the pixel metric distance in the SLIC algorithm is defined as DL(i,j):
[0066]
[0067] d n (i,j)=d c (i,j)+β×|MC i -MC j |
[0068]
[0069] In the formula, DL(i,j) represents the distance between pixel i and pixel j, d n (i,j) represents the color confidence distance between pixel i and pixel j, d c (i, j) represents the color distance between pixel i and pixel j in the Lab color space, β is a constant set to 100, MC i , MC j Represents the helmet confidence coefficient of pixel i and pixel j respectively, d s (i,j) represents the Euclidean distance between pixel i and pixel j, S represents the maximum distance within the class, w is the weight coefficient, m is a fixed constant in the SLIC algorithm, qL is the maximum value of the brightness channel in the Lab color space, qa and qb are the maximum values of color channel a and color channel b in the Lab color space respectively. Save as the first distance, Save as the second distance.
[0070] It should be noted that the maximum distance within a class is N is the number of pixels in the image, u is the number of superpixels; the color distance between pixel i and pixel j in the Lab color space is Among them, L i , L j are the specific values of the L channel of pixel i and pixel j respectively, a i 、a j are the specific values of channel A of pixel i and pixel j, respectively, and bi , b j are the specific values of the B channel of pixel i and pixel j respectively; the Euclidean distance between pixel i and pixel j is Among them, x i ,y i are the X-axis coordinate value and Y-axis coordinate value of pixel i, respectively. j ,y j are the X-axis coordinate value and Y-axis coordinate value of pixel point j respectively.
[0071] The helmet confidence coefficient is added to the color distance of the original formula to determine the color confidence distance, so that the pixels in the image that are close in space, color, and helmet confidence coefficient are more likely to be gathered together and become one category. Since the helmet confidence coefficient is smaller than the value range of the color space, the maximum and minimum normalization idea is used in the formula to map the difference of the construction workers' confidence coefficient to the range of [0, β]. In the SLIC algorithm, m can be used as a measure between color and space distance, but due to the addition of the helmet confidence coefficient, the color distance becomes larger, so m should also be appropriately increased to ensure the uniformity of the data. The calculation formula of the weight coefficient w is: Simplify. When w is larger, it is equivalent to weakening the influence of color and construction worker confidence, image segmentation is more dependent on spatial distance, and the segmented image is more regular. When w is smaller, color and construction worker confidence coefficient have a greater impact on image segmentation. In this embodiment, it is hoped that the effect of image segmentation is more dependent on pixel color and construction worker confidence coefficient, so a smaller m is set. It should be noted that in this embodiment, m=8, and the value range of m is [1, 40]. The implementer can adjust it according to the actual situation.
[0072] The SLIC superpixel segmentation algorithm is executed using the new pixel metric distance DL(i,j), and the entire image is segmented into u region images. Due to the addition of the helmet confidence coefficient, it is easier to segment the pixel region at the worker's helmet into one category. It should be noted that the SLIC superpixel segmentation algorithm is an existing well-known technology and will not be described in detail in this embodiment.
[0073] In order to accurately distinguish the areas where construction workers are located, the characteristic area significance value P is constructed. t , the expression is:
[0074]
[0075] Where P t is the salient value of the feature region of image region t, N t is the number of pixels in image region t, MC iis the confidence coefficient of the helmet at pixel i, and N is the number of pixels in the entire image.
[0076] When the image area is the construction worker's helmet area, the mean value of the helmet confidence coefficient is large, making P t Greater than 0. If the characteristic region significance value of the image region is greater than 0, the region is considered to be the characteristic region of the worker's helmet.
[0077] Considering the semicircular shape of the helmet, the helmet shape confidence V is further calculated in the worker helmet area. t :
[0078]
[0079] r t =ED(mp t ,mi t )
[0080] Where P t is the helmet shape confidence, exp() represents the exponential function with natural constant as base, N t is the number of pixels in the feature area t of the worker's helmet, π is the circumference of a circle, and r t is the diameter of the characteristic area t of the worker's helmet, ED is the Euclidean distance, mp t Represents the pixel coordinates with the largest sum of horizontal and vertical coordinates in the worker's helmet feature area t, mi t Represents the pixel coordinates with the smallest horizontal and vertical coordinates in the worker's helmet feature area t.
[0081] If the characteristic area of the worker's helmet is a semicircular shape, according to its diameter r t The number of pixels and N t The gap is smaller, resulting in V t Larger. That is, V t The larger it is, the more likely it is the area where the construction workers' helmets are located.
[0082] Step S003: further extract the face area of the gas pipeline network construction personnel, and complete the gas pipeline network video monitoring in combination with the FaceNet deep learning model.
[0083] Set the area coefficient δ, which is set to 0.5 in this embodiment. The implementer can adjust it by himself and select the helmet shape confidence V t >δ area and the adjacent area below the area are merged. The two areas include the safety helmet and face area of the gas pipeline construction personnel. The area below the safety helmet is the face area. The steps for obtaining the face area and the safety helmet area are as follows: Figure 2As shown. The combined area of the helmet area and the face area is input into the trained FaceNet deep learning network model. If it is successfully identified as a construction worker of the gas pipeline network, the recognition is successful and no processing is performed. If it is detected as an unfamiliar construction worker, the recognition fails, and a warning is issued using a loudspeaker. The image of the construction worker is further transmitted to the person in charge of the area and the company's enterprise end through 5G technology.
[0084] At this point, the video monitoring of the gas pipeline network is completed.
[0085] In summary, the embodiment of the present invention first constructs a suspected coefficient for each pixel through the clothing features of the gas pipeline construction workers; constructs the confidence coefficient of the construction workers based on the relationship between the pixel and its neighborhood, effectively reducing the impact of noise; at the same time, in the confidence coefficient channel of the construction workers, an approximate morphological corrosion operation is used to effectively reduce the font area in the safety helmet, avoiding the omission and false detection caused by the inaccurate segmentation of the font area in the segmentation algorithm. The confidence coefficient of the construction workers is integrated into the distance of the SLIC algorithm, so that the pixels with similar confidence coefficients of the safety helmets are more easily divided into the same area, forming a more obvious difference from other areas, making the boundaries of the areas more certain and clear. Finally, according to the shape characteristics of the divided area, the area where the construction workers' safety helmets are located is determined, and the face is located through this area, so that the face positioning is more accurate, thereby improving the face recognition effect.
[0086] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0087] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0088] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. Gas pipeline network video monitoring method based on 5G mobile network and image processing, It is characterized in that The method comprises the following steps: Collect facial images of gas pipeline network construction workers and train the FaceNet deep learning network model; obtain images of gas pipeline network protection areas; For each pixel point in the gas network protection area image; obtain the red eigenvalue by comparing the red channel value with the green channel value and the blue channel value, calculate the variance of each pixel point in the three channels, and use the product of the variance and the red eigenvalue as the construction worker suspected coefficient of the pixel point; use the product of the mean of the construction worker suspected coefficients of the pixel point and its neighborhood pixels and the number of pixels with non-zero construction worker suspected coefficients as the construction worker confidence coefficient of the pixel point; compare the centroid coefficient of the construction worker in the neighborhood of the pixel point with the mean of the confidence coefficients of all construction workers to obtain the construction worker safety helmet confidence coefficient of each pixel point; according to the construction worker safety helmet of each pixel point The confidence coefficient is combined with Gaussian filtering to remove noise to obtain the helmet confidence coefficient; the color confidence distance between pixels is obtained based on the difference in helmet confidence coefficients and color difference features between pixels; the SLIC superpixel segmentation algorithm is used in combination with the metric distance between pixels to obtain each image area; the difference between the mean of the helmet confidence coefficients of all pixels in each area and the mean of the helmet confidence coefficients of all pixels in the image is used as the feature area significance value of each area; the image area with a feature area significance value greater than 0 is used as the worker helmet feature area; the helmet shape confidence of each worker helmet feature area is obtained based on the shape characteristics of the worker helmet area; Preset the regional coefficient, compare the helmet shape confidence with the regional coefficient to obtain the helmet area and the face area, and merge the helmet area and the face area as the input of the FaceNet deep learning network for face recognition; The helmet shape confidence of each worker helmet area is obtained according to the shape features of the worker helmet area. The specific expression is: ; In the formula, is the helmet shape confidence, represents an exponential function with a natural constant as base, Safety helmet feature area for workers The number of pixels in is the circumference of a circle, Safety helmet feature area for workers The diameter of is the Euclidean distance, Indicates the characteristic area of the worker's helmet The pixel coordinates with the largest sum of horizontal and vertical coordinates, Indicates the characteristic area of the worker's helmet The pixel coordinates with the smallest horizontal and vertical coordinates.
2. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The method for obtaining the construction worker suspected coefficient of the pixel point includes: When the red channel value of each pixel is greater than or equal to the green channel value and greater than the blue channel value, the red feature value of each pixel is 1, otherwise the red feature value of each pixel is 0; The numerical variance of each pixel in the red, green and blue channels is calculated; and the product of the variance of each pixel and the red eigenvalue is used as the construction worker suspected coefficient of each pixel.
3. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The method for obtaining the construction worker confidence coefficient of the pixel point includes: For each pixel neighborhood; calculating the mean of the suspected coefficients of construction personnel of all pixels in the neighborhood of each pixel; counting the number of pixels with non-zero suspected coefficients of construction personnel in the neighborhood of each pixel; and taking the product of the mean and the number of pixels as the confidence coefficient of construction personnel of each pixel.
4. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The method for obtaining the confidence coefficient of the construction worker's helmet at the pixel point includes: Calculate the mean of the construction workers' confidence coefficients for all pixels; When there is a construction worker confidence coefficient of a pixel point in the neighborhood of each pixel point that is greater than the mean, the maximum construction worker confidence coefficient in the neighborhood of each pixel point is used as the construction worker safety helmet confidence coefficient of each pixel point; otherwise, the construction worker confidence coefficient of each pixel point is used as the construction worker safety helmet confidence coefficient of each pixel point.
5. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The helmet confidence coefficient is obtained by combining the helmet confidence coefficient of the construction personnel at each pixel point with the Gaussian filter to remove noise, specifically: The Gaussian filtering algorithm of the confidence coefficient of the construction workers' safety helmets of all pixel points is input, and the output of the Gaussian filtering algorithm is the confidence coefficient of the construction workers' safety helmets of each pixel point after denoising; the normalized value of the confidence coefficient of the construction workers' safety helmets of each pixel point after denoising is used as the confidence coefficient of the safety helmet of each pixel point.
6. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The color confidence distance between the pixels is obtained according to the helmet confidence coefficient difference and the color difference feature between the pixels, specifically: Convert the image of the gas network protection area into LAB space; For pixel i and pixel j, the Euclidean distance between the LAB values of pixel i and pixel j is saved as the color distance between pixel i and pixel j in the LAB color space; Preset Constants ; Calculate the absolute value of the difference between the helmet confidence coefficients of pixel i and pixel j; calculate and the product of the absolute value of the difference; and taking the sum of the product and the color distance as the color confidence distance between pixel point i and pixel point j.
7. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 6, It is characterized in that The metric distance between the pixels is defined according to the color confidence distance and position distribution between the pixels, and the specific steps include: Get the maximum values qL, qa, qb of the L, A, and B channels of the LAB color space respectively; preset the fixed constant m of the SLIC superpixel segmentation algorithm; the weight coefficient w is expressed as: ; The square root of the ratio of the number of all pixels to the number of superpixels is taken as the maximum distance S within the class; For pixel i and pixel j, calculate the Euclidean distance between pixel i and pixel j; take the square of the ratio of the color confidence distance to the weight coefficient as the first distance; take the square of the ratio of the Euclidean distance to the maximum distance within the class as the second distance; calculate the sum of the first distance and the second distance; and take the square root of the sum as the metric distance between pixel i and pixel j.
8. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The characteristic region significance value of each region specifically includes: The mean of the helmet confidence coefficients of all pixel points in each region is obtained; the mean of the helmet confidence coefficients of all pixel points in the image is taken as the overall mean; and the difference between the mean and the overall mean is taken as the characteristic region significance value of each region.
9. The gas pipeline network video monitoring method based on 5G mobile network and image processing as claimed in claim 1, It is characterized in that The specific steps of performing face recognition include: The feature area of the worker's helmet whose helmet shape confidence is greater than the area coefficient is taken as the helmet area; the area adjacent to the helmet area is taken as the face area; the helmet area and the face area are merged as the input of the FaceNet deep learning network model; if the face area is recognized as a gas pipeline construction worker, the recognition is successful; otherwise, the recognition fails.
Citation Information
Patent Citations
Safety helmet identification method based on video streaming data
CN108460358A
Subway construction worker unsafe behavior identification method and system
CN115205977A
