Image recognition method for helmet wearing of worker on construction site
Through the YOLOv8 image recognition method, the problems of low efficiency of safety helmet wearing detection and large environmental impact at the construction site are solved, accurate identification and early warning in complex environments are achieved, and the efficiency and accuracy of safety management at the construction site are improved.
Patent Information
- Application Number
- CN202410788174.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-03
AI Technical Summary
Existing construction site safety helmet wearing detection methods have low detection efficiency and are greatly affected by the environment, making it difficult to accurately identify whether workers are wearing safety helmets in complex environments.
The YOLOv8 image recognition method is used to obtain an image data set of helmets worn at the construction site through surveillance cameras or mobile phones, and the image annotation tool is used to annotate the real frame of the target object, and the data set is divided into training, verification, and For the test set, technologies such as multi-scale feature fusion and convolution modules are used for model training, and are deployed to monitoring equipment for helmet wearing detection.
It can accurately identify whether workers are wearing safety helmets in complex environments and provide early warning and prompt functions, which improves the efficiency and accuracy of safety management at construction sites and reduces the occurrence of safety accidents.
Smart Images

Figure CN118587708A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of wearing safety helmets at construction sites, and in particular relates to an image recognition method for workers wearing safety helmets at construction sites. Background Art
[0002] As an important personal protective equipment, hard hats can effectively protect workers' heads from accidental injuries. However, on construction sites, some workers think that their heads are not easily injured, or they are unwilling to wear hard hats because the temperature is too high. This leads to a low rate of hard hat wearing, which can easily lead to workers dying from head injuries. The current hard hat wearing identification scheme has the following shortcomings:
[0003] 1. At present, many construction sites still use traditional manual inspection methods to supervise and manage personnel who do not wear safety helmets. This manual supervision method is simple and easy, but it will increase labor costs and has many limitations. For example, when the construction site is large, the site environment is complex, and there are too many workers, there is a high probability of inadequate supervision when there are insufficient manpower. Safety hazards of manual supervision are everywhere.
[0004] Second, the method based on traditional target detection relies on the feature extractor specially designed by researchers to complete the detection task of the helmet. The general process is that researchers design feature descriptors for the scene to extract the feature information of the helmet, and then classify it through classifiers such as support vector machine SVM (support voctor mashine), perceptron and logistic regression. Although the traditional target detection method has a small model and runs fast, it relies heavily on the feature extraction level and experience of researchers.
[0005] 3. Due to the dense construction workers in real detection tasks, small detection targets, complex working environment, and great influence of weather, lighting, etc., and the many interference factors such as occlusion on site, these algorithms can only achieve simple recognition under ideal conditions, and have poor generalization ability for the complex environment of the construction site, and poor detection performance for small targets.
[0006] Therefore, there is an urgent need to design an image recognition method for workers wearing safety helmets on construction sites to solve the problems mentioned above of low detection efficiency and great environmental impact of existing safety helmet wearing detection methods. Summary of the invention
[0007] In order to solve the technical problems mentioned in the background technology that the existing safety helmet wearing detection method has low detection efficiency and is greatly affected by the environment, an image recognition method for safety helmet wearing of workers on a construction site is provided to solve the above problems.
[0008] To achieve the above purpose, the specific technical scheme of the image recognition method for workers wearing safety helmets at construction sites of the present invention is as follows: A method for image recognition of workers wearing safety helmets at a construction site, comprising the following steps: Use surveillance cameras or mobile phones to take photos to obtain image datasets of construction workers wearing hard hats at construction sites; Use image annotation tools to annotate the real boxes of target objects in the image dataset; The labeled image dataset is divided into 8:1:1 ratio for training, verification and testing of the model; Deploy the trained model to monitoring equipment for helmet wearing detection; Check whether workers are wearing safety helmets properly;
[0009] If the inspecting workers do not wear safety helmets properly, the safety manager will remind the workers to wear safety helmets of the correct color.
[0010] Furthermore, using surveillance cameras or mobile phones to obtain image datasets of construction workers wearing safety helmets at construction sites includes taking photos from multiple angles, multiple distances, and multiple backgrounds to collect image datasets of workers wearing safety helmets and not wearing safety helmets in multiple colors.
[0011] Furthermore, the image dataset is annotated with the real boxes of the target objects using image annotation tools. The labels are divided into head, yellow, blue, red, and white. The corresponding XML files are generated, and the generated XML files are converted into TXT files that can be trained by YOLOv8. The dataset is divided into training set, validation set, and test set in a ratio of 8:1:1.
[0012] Furthermore, the YOLOv8 network inputs the sorted image dataset of construction workers wearing helmets at the construction site to obtain the target recognition module, specifically:
[0013] S1: Input: The size of the input image is adjusted to 640×640, and the training parameters are set to epochs=200, batch=4.
[0014] S2: Backbone network: The backbone network is the basis of the model and is responsible for extracting features from the input image. It uses a series of convolutional and deconvolutional layers to extract features, and uses residual connections and bottleneck structures to reduce the size of the network and improve performance. It consists of 5 convolutional modules, 4 C2f modules, and 1 SPPF module. S3: Neck network: The neck network is located between the backbone network and the head network, and performs feature fusion and enhancement. It uses multi-scale feature fusion technology to fuse feature maps from different stages of the backbone network to enhance feature representation capabilities.
[0015] S4: Head network: classifies and locates the feature information output by the neck network, outputs the prediction box of the detection target, and is responsible for the final target detection and classification tasks. It includes a detection head and a classification head. The detection head contains a series of convolutional layers and deconvolutional layers to generate detection results; the classification head uses global average pooling to classify each feature map.
[0016] S5: Calculate the loss of the predicted box and the real box, then reversely update the network weights of the improved YOLOv8 and iterate the network parameters;
[0017] S6: Repeat the above steps S1-S5 until the iteration is terminated to obtain an image recognition module.
[0018] Furthermore, the main structure of the convolution module is a 2D convolution, a BatchNorm2d and a SiLU activation function to reduce the size of the feature map, increase the number of channels and enhance the nonlinear representation ability of the model.
[0019] Furthermore, the C2f module includes the following steps: Use 1x1 convolution kernel to reduce the number of input channels to 1 / 2 of the original to reduce the amount of calculation and memory consumption; Use multiple 3x3 convolution kernels to perform convolution operations to extract feature information; Using residual connections, the input is directly added to the output, thus forming a cross-layer connection;
[0020] Use the 1x1 convolution kernel again to restore the number of channels of the feature map.
[0021] Furthermore, the SPPF module is a pooling layer that can perform pooling operations on feature maps of different sizes to obtain feature vectors of fixed length. The input can be a feature map of any size, and the output is a feature vector of fixed length that can be used as the input of the classifier.
[0022] Furthermore, the neck network takes the outputs P3, P4 and P5 of the feature extraction backbone network, and inputs P3, P4 and P5 into the PAN-FPN network structure to fuse feature maps of multiple scales; P5 is fused with P4 after upsampling to obtain F1, F1 is fused with P3 after a C2f layer and an upsampling to obtain T1, T1 is fused with F1 after a convolution layer to obtain F2, F2 is passed through a C2f layer to obtain T2, T2 is fused with P5 after a convolution layer to obtain F3, and F3 is passed through a C2f layer to obtain T3. T1, T2 and T3 are the products of the entire neck network.
[0023] Furthermore, the PAN-FPN network structure has a path aggregation network of a feature pyramid network, which is a neural network architecture for object detection in computer vision, and is used to combine the feature pyramid network FPN with the path aggregation network PAN.
[0024] Further, FPN is used to extract features from images of different scales, while PAN is used to aggregate these features across different layers of the network.
[0025] The image recognition method for construction site workers wearing safety helmets of the present invention has the following advantages:
[0026] The image dataset of construction workers wearing hard hats at the construction site is obtained by taking photos with a camera or a mobile phone; the image dataset is annotated with the real frame of the target object using an image annotation tool; the annotated dataset is then divided in a ratio of 8:1:1 for training, verification, and testing of the model; the trained model is deployed to the monitoring equipment to detect whether the workers are wearing hard hats in a standardized manner; if the workers are not wearing hard hats in a standardized manner, the safety manager will remind the workers to wear hard hats of the correct color. This can be applied to the supervision and management of construction sites to detect the wearing of hard hats by construction workers. Through real-time monitoring, it can be identified whether hard hats are worn and whether they are worn in an irregular manner, and early warning and prompt functions can be provided, which helps to reduce the occurrence of safety accidents. At the same time, by identifying the color of hard hats, the management can better supervise and manage the activities of workers on the construction site, and can also distinguish different types of work or responsibilities, effectively prevent and control the occurrence of safety accidents, and provide data support for safe production management, thereby improving the efficiency and accuracy of safe production management. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a flow chart of the image recognition method for workers wearing safety helmets at construction sites according to the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] Those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0030] Please refer to the attached Figure 1 The present invention describes an image recognition method for workers wearing safety helmets at a construction site.
[0031] like Figure 1 As shown, the image recognition method of the construction site workers wearing safety helmets in the present invention includes the following steps: Use surveillance cameras or mobile phones to take photos to obtain image datasets of construction workers wearing hard hats at construction sites; Use image annotation tools to annotate the real boxes of target objects in the image dataset; The labeled image dataset is divided into 8:1:1 ratio for training, verification and testing of the model; Deploy the trained model to monitoring equipment for helmet wearing detection; Check whether workers are wearing safety helmets properly;
[0032] If the inspecting workers do not wear safety helmets properly, the safety manager will remind the workers to wear safety helmets of the correct color.
[0033] The image dataset of construction workers wearing hard hats at the construction site is obtained by taking photos with a camera or a mobile phone; the image dataset is annotated with the real frame of the target object using an image annotation tool; the annotated dataset is then divided in a ratio of 8:1:1 for training, verification, and testing of the model; the trained model is deployed to the monitoring equipment to detect whether the workers are wearing hard hats in a standardized manner; if the workers are not wearing hard hats in a standardized manner, the safety manager will remind the workers to wear hard hats of the correct color. This can be applied to the supervision and management of construction sites to detect the wearing of hard hats by construction workers. Through real-time monitoring, it can be identified whether hard hats are worn and whether they are worn in an irregular manner, and early warning and prompt functions can be provided, which helps to reduce the occurrence of safety accidents. At the same time, by identifying the color of hard hats, the management can better supervise and manage the activities of workers on the construction site, and can also distinguish different types of work or responsibilities, effectively prevent and control the occurrence of safety accidents, and provide data support for safe production management, thereby improving the efficiency and accuracy of safe production management.
[0034] Further, if Figure 1As shown, using surveillance cameras or mobile phones to obtain image datasets of construction workers wearing safety helmets at construction sites includes taking photos from multiple angles, multiple distances, and multiple backgrounds to collect image datasets of workers wearing safety helmets and not wearing safety helmets in multiple colors.
[0035] Further, if Figure 1 As shown, the image dataset is annotated with the real box of the target object using an image annotation tool. The labels are divided into head, yellow, blue, red, and white. The corresponding XML file is generated, and the generated XML file is converted into a TXT file that can be trained by YOLOv8. The dataset is divided into training set, validation set, and test set in a ratio of 8:1:1.
[0036] Furthermore, the YOLOv8 network inputs the sorted construction site construction workers wearing helmets image data set to obtain the image recognition module, specifically:
[0037] S1: Input: The size of the input image is adjusted to 640×640, and the training parameters are set to epochs=200, batch=4.
[0038] S2: Backbone network: The backbone network is the basis of the model and is responsible for extracting features from the input image. It uses a series of convolutional and deconvolutional layers to extract features, and uses residual connections and bottleneck structures to reduce the size of the network and improve performance. S3: Neck network: The neck network is located between the backbone network and the head network, and performs feature fusion and enhancement. It uses multi-scale feature fusion technology to fuse feature maps from different stages of the backbone network to enhance feature representation capabilities.
[0039] S4: Head network: classifies and locates the feature information output by the neck network, outputs the prediction box of the detection target, and is responsible for the final target detection and classification tasks. It includes a detection head and a classification head. The detection head contains a series of convolutional layers and deconvolutional layers to generate detection results; the classification head uses global average pooling to classify each feature map.
[0040] S5: Calculate the loss of the predicted box and the real box, then reversely update the network weights of the improved YOLOv8 and iterate the network parameters;
[0041] S6: Repeat the above steps S1-S5 until the iteration is terminated to obtain an image recognition module.
[0042] Further, the following is given for S32: 1. Convolution module (Conv): The main structure is a 2D convolution, a BatchNorm2d and a SiLU activation function. The function of the entire convolution module is:
[0043] (1) Downsampling: The convolutional layer in each convolutional module uses a convolution kernel with a stride of 2 for downsampling to reduce the size of the feature map and increase the number of channels.
[0044] (2) Non-linear representation: Batch Normalization layer and ReLU activation function are added after each convolutional layer to enhance the non-linear representation ability of the model.
[0045] 2. C2f module: First, use a 1x1 convolution kernel to reduce the number of input channels to 1 / 2 of the original to reduce the amount of computation and memory consumption; then, use multiple 3x3 convolution kernels to perform convolution operations to extract feature information; then, use residual links to add the input directly to the output, thus forming a cross-layer connection; then, use the 1x1 convolution kernel again to restore the number of channels of the feature map.
[0046] 3. SPPF module: The SPP layer is a pooling layer that can perform pooling operations on feature maps of different sizes to obtain a feature vector of fixed length. The input of the SPP layer can be a feature map of any size, and the output is a feature vector of fixed length, which can be used as the input of the classifier.
[0047] Further, S33 is given as follows:
[0048] The entire neck network part inputs the output P3, P4, and P5 of the feature extraction backbone network into the PAN-FPN network structure to fuse feature maps of multiple scales; P5 is upsampled and fused with P4 to obtain F1, F1 is fused with P3 after a C2f layer and an upsampling to obtain T1, T1 is fused with F1 after a convolution layer to obtain F2, F2 is passed through a C2f layer to obtain T2, T2 is fused with P5 after a convolution layer to obtain F3, F3 is passed through a C2f layer to obtain T3, and finally T1, T2, and T3 are the products of the entire Neck.
[0049] PAN-FPN is a neural network framework for object detection in computer vision, with a path aggregation network of feature pyramid network. It combines the feature pyramid network (FPN) with the path aggregation network (PAN) to improve the accuracy and efficiency of object detection.
[0050] FPN is used to extract features from images of different scales, while PAN is used to aggregate these features across different layers of the network. This allows the network to detect objects of different sizes and resolutions, and handle complex scenes with multiple objects.
[0051] Further, the improvements for S32 and S33 are given as follows:
[0052] 1. Dynamic Convolution (DynamicConv): Dynamic convolution (DynamicConv) replaces the two convolutional networks in the C2f module, aiming to increase the number of network parameters with almost no additional floating-point operations. Dynamic convolution processes input data by dynamically selecting or combining different convolution kernels (called "experts") for each input sample. This method can be seen as an extension of the traditional convolution operation, which allows the network to adaptively adjust its parameters based on the input.
[0053] In dynamic convolution, instead of using a fixed convolution kernel for all inputs, there are multiple convolution kernels (or parameter sets), and the adapted kernel is dynamically selected based on the characteristics of the input. This selection is done by dynamically generating weights that control the contribution of each convolution kernel through a learned function, for example, using a multi-layer perceptron (MLP) and a softmax function.
[0054] The calculation process of dynamic convolution: given the input feature X, and a set of convolution kernels W1, W2, …, WM, each kernel corresponds to an expert.
[0055] The contribution of each expert is controlled by a dynamic coefficient αi, which is dynamically generated for each sample.
[0056] The output Y is the weighted sum of all dynamically selected convolution kernel operations:
[0057]
[0058] in represents the convolution operation, αi is dynamically calculated through a small network (such as MLP), and the input of this small network is the feature after global average pooling.
[0059] 2. Mixed local channel attention (MLCA): The improved mechanism MLCA combines the information of local and global features as well as channel and spatial features. This is a lightweight attention mechanism that can significantly improve the detection accuracy while increasing the number of parameters.
[0060] As one of the most widely used components in computer vision, attention mechanism can help neural networks emphasize important elements and suppress irrelevant elements. However, most channel attention mechanisms only contain channel feature information and ignore spatial feature information, resulting in poor model representation or object detection performance; while spatial attention modules are usually complex and computationally expensive. In order to strike a balance between performance and complexity, this paper proposes a lightweight hybrid local channel attention (MLCA) module to improve the performance of object detection networks. This module can simultaneously integrate channel information and spatial information, as well as local information and global information to improve the expression effect of the network.
[0061] Further, the workflow of Mixed Local Channel Attention (MLCA): The input feature map (C, W, H) is first processed by local average pooling (LAP) and global average pooling (GAP). Local pooling focuses on the features of the local area, while global pooling captures the statistical information of the entire feature map.
[0063] The local pooled features and the global pooled features are transformed through a 1D convolution (Conv1d). The 1D convolution here is used to compress the feature channels while keeping the spatial dimension unchanged.
[0064] After 1D convolution, the features are rearranged (Reshape) to make them suitable for subsequent operations.
[0065] The local pooled features are rearranged after 1D convolution and then combined with the original input features through a "multiplication" operation (X). This process is equivalent to a feature selection, which strengthens the focus on useful features.
[0066] The global pooled features are combined with the local pooled features through an “addition” operation after 1D convolution and rearrangement. This step incorporates global context information into the feature map.
[0067] Finally, the feature map processed by local and global attention is restored to its original spatial dimension through the unpooling (UNAP) operation again.
[0068] Further, S34 is given as follows: The workflow of the decoupling head: The feature maps T1, T2, and T3 obtained by the network are respectively input into the decoupling head for prediction, which includes 4 3x3 convolutions and 2 1x1 convolutions. At the same time, the WIOU loss function is added to the regression branch of the detection head. The regression head needs to calculate the position offset between the predicted box and the real box, and then send the offset to the regression head for loss calculation, and then output a four-dimensional vector, which represents the upper left corner coordinates x, y and the lower right corner coordinates x, y of the target box. The classification head performs Rol Pooling and convolution operations on each candidate box extracted by Anchor Free to obtain a classifier output tensor. The value at each position represents the probability that the candidate box belongs to each category. Finally, the final detection result is screened out by maximum value suppression.
[0070] Further, the following is given for S35:
[0071] The loss function of YOLOv8 consists of multiple parts, including classification loss (VFL Loss) and regression loss in the form of CIOULoss+DFL. The classification loss function is mainly used for target classification, which is to calculate the difference between the model's predicted probability of the target category and the true label. The regression loss function is used to predict the bounding box position of the target and to calculate the difference between the bounding box predicted by the model and the true bounding box.
[0072]
[0073] q is the IoU (intersection over union) of bbox (prediction box) and gt (real box). IoU is the intersection of the prediction box and the real box divided by the union of the two boxes. Then p is the score, that is, the probability. If the two boxes intersect, that is, q>0, it is a positive sample. If the two boxes do not intersect, let q=0, which is a negative sample.
[0074] The formula of CIOU Loss function is as follows:
[0075]
[0076]
[0077]
[0078] Where α is a weight function and is used to measure the similarity of aspect ratios.
[0079] The Distribution Focal Loss (DFL) function is a loss function used for target detection tasks. It optimizes the probability distribution near the label y through the cross entropy function, so that the network can quickly focus on the value near the label, thereby improving the performance of the model.
[0080] S5, using the image recognition module to recognize the images of construction workers wearing helmets at the construction site collected by monitoring equipment and mobile phone photography, and determine which category the images belong to;
[0081] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for image recognition of workers wearing safety helmets at a construction site, characterized in that: The specific steps include: Use surveillance cameras or mobile phones to take photos to obtain image datasets of construction workers wearing hard hats at construction sites; Use image annotation tools to annotate the real boxes of target objects in the image dataset; The labeled image dataset is divided into 8:1:1 ratio for training, verification and testing of the model; Deploy the trained model to monitoring equipment for helmet wearing detection; Check whether workers are wearing safety helmets properly; If the inspecting workers do not wear safety helmets properly, the safety manager will remind the workers to wear safety helmets of the correct color.
2. The image recognition method for workers wearing safety helmets at construction sites according to claim 1 is characterized in that: Using surveillance cameras or mobile phones to obtain image datasets of construction workers wearing hard hats at construction sites includes taking photos from multiple angles, multiple distances, and multiple backgrounds to collect image datasets of workers wearing hard hats and not wearing hard hats in multiple colors.
3. The image recognition method for workers wearing safety helmets at construction sites according to claim 1 is characterized in that: The image dataset is annotated with the real box of the target object using the image annotation tool. The labels are divided into head, yellow, blue, red, and white. The corresponding XML file is generated, and the generated XML file is converted into a TXT file that can be trained by YOLOv8. The dataset is divided into training set, validation set, and test set in a ratio of 8:1:
1.
4. The image recognition method for workers wearing safety helmets at construction sites according to claim 3 is characterized in that: The YOLOv8 network inputs the sorted construction site construction workers wearing helmets image data set to obtain the target recognition module, specifically: S1: Input: resize the input image to 640×640, and set the training parameters to epochs=200, batch=4; S2: Backbone network: The backbone network is the basis of the model and is responsible for extracting features from the input image. It uses a series of convolutional and deconvolutional layers to extract features, and uses residual connections and bottleneck structures to reduce the size of the network and improve performance. It consists of 5 convolutional modules, 4 C2f modules, and 1 SPPF module. S3: Neck network: The neck network is located between the backbone network and the head network, and performs feature fusion and enhancement. It uses multi-scale feature fusion technology to fuse feature maps from different stages of the backbone network to enhance feature representation capabilities. S4: Head network: classifies and locates the feature information output by the neck network, outputs the prediction box of the detection target, and is responsible for the final target detection and classification tasks. It includes a detection head and a classification head. The detection head contains a series of convolutional layers and deconvolutional layers to generate detection results. The classification head uses global average pooling to classify each feature map; S5: Calculate the loss of the predicted box and the real box, then reversely update the network weights of the improved YOLOv8 and iterate the network parameters; S6: Repeat the above steps S1-S5 until the iteration is terminated to obtain an image recognition module.
5. The image recognition method for workers wearing safety helmets at construction sites according to claim 4 is characterized in that: The main structure of the convolution module is a 2D convolution, a BatchNorm2d and a SiLU activation function to reduce the size of the feature map, increase the number of channels and enhance the nonlinear representation ability of the model.
6. The image recognition method for workers wearing safety helmets at construction sites according to claim 4, characterized in that: The C2f module includes the following steps: Use 1x1 convolution kernel to reduce the number of input channels to 1 / 2 of the original to reduce the amount of calculation and memory consumption; Use multiple 3x3 convolution kernels to perform convolution operations to extract feature information; Using residual connections, the input is directly added to the output, thus forming a cross-layer connection; Use the 1x1 convolution kernel again to restore the number of channels of the feature map.
7. The image recognition method for workers wearing helmets at construction sites according to claim 4, characterized in that: The SPPF module is a pooling layer that can perform pooling operations on feature maps of different sizes to obtain feature vectors of fixed length. The input can be a feature map of any size, and the output is a feature vector of fixed length that can be used as the input of the classifier.
8. The method for image recognition of workers wearing safety helmets at a construction site according to claim 4, characterized in that: The neck network extracts the outputs P3, P4 and P5 of the feature extraction backbone network, and inputs P3, P4 and P5 into the PAN-FPN network structure to fuse feature maps of multiple scales; P5 is fused with P4 after upsampling to obtain F1, F1 is fused with P3 after a C2f layer and an upsampling to obtain T1, T1 is fused with F1 after a convolution layer to obtain F2, F2 is passed through a C2f layer to obtain T2, T2 is fused with P5 after a convolution layer to obtain F3, and F3 is passed through a C2f layer to obtain T3. T1, T2 and T3 are the products of the entire neck network.
9. The image recognition method for workers wearing safety helmets at construction sites according to claim 8, characterized in that: The PAN-FPN network structure has a path aggregation network with a feature pyramid network. It is a neural network architecture for object detection in computer vision, which is used to combine the feature pyramid network FPN with the path aggregation network PAN.
10. The method for image recognition of workers wearing helmets at construction sites according to claim 8, characterized in that: FPN is used to extract features from images of different scales, while PAN is used to aggregate these features across different layers of the network.
Citation Information
Patent Citations
Safety helmet positioning and color recognition method and system based on deep learning
CN110188724A
Method for detecting illegal behaviors in smart factory based on improved YOLOv8
CN117315538A
Cited By
Safety helmet detection method
CN119964074A
