Construction site safe wearing detection method and system based on improved YOLOv5

By improving the YOLOv5 target detection network, introducing a cross-level path aggregation network and improving the non-maximum suppression algorithm, the problems of high miss detection rate and difficulty in processing multi-category prediction frames in construction site safety wear detection are solved, achieving higher detection accuracy. rate and recall.

CN118629069AActive Publication Date: 2024-09-10SOUTH CHINA UNIV OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410693363.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-10
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing target detection networks focus on precision rate and ignore recall rate in construction site safety wear detection, resulting in a high missed detection rate. It is especially difficult to effectively detect small targets, and the multi-category non-maximum suppression algorithm is difficult to handle with inclusion relationships and intersections. than the smaller prediction box.

Method used

Improve the YOLOv5 target detection network, introduce a cross-level path aggregation network to accelerate feature fusion, and improve the non-maximum suppression algorithm, filter and remove unnecessary prediction boxes by calculating the inclusion degree and intersection ratio of prediction boxes, and improve Recall and precision.

Benefits of technology

It improves the recall rate of the target detection network and improves the detection accuracy. It can detect small targets more effectively and process prediction boxes containing relationships, reducing the missed detection rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629069A
    Figure CN118629069A
Patent Text Reader

Abstract

The invention discloses a construction site safe wearing detection method and system based on improved YOLOv5. The method comprises the following steps: acquiring a training set; training the improved YOLOv5 target detection network by using the training set to obtain a construction site safety wearing detection model; a path aggregation network adopted by a neck network in the YOLOv5 target detection network is a three-layer double-pyramid structure network and sequentially comprises a pyramid structure from top to bottom and a pyramid structure from bottom to top; respectively adding cross-level connection modules between the lowermost layer input and the middle layer output of the path aggregation network and between the middle layer input and the uppermost layer output to obtain a cross-level path aggregation network; replacing a path aggregation network adopted by a neck network in the YOLOv5 target detection network with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; and deploying the construction site safety wearing detection model in a safety wearing detection system to realize real-time detection and early warning of safety wearing. The recall rate of the target detection network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a construction site safety wear detection method, system, terminal equipment and computer-readable storage medium based on improved YOLOv5. Background Art

[0002] The primary prerequisite for construction workers to consciously wear safety equipment in accordance with regulations is to ensure production safety at construction sites. The human cost required to conduct manual supervision through video surveillance systems to timely discover and eliminate safety hazards in production is too high. In recent years, in the field of computer vision, target detection technology has made great progress, making its application possible. Target detection has gone through two major stages: based on manual feature extraction and based on neural networks. Target detection technology based on neural networks is becoming more and more mature.

[0003] Safety wear detection on construction sites requires detection of construction workers' heads, torsos, hands, shoes and other targets, which contain a large number of small targets in actual scenes. Existing mainstream target detection network research focuses on improving precision, but pays less attention to the recall rate related to target missed detection rate. By improving the recall rate of target detection networks, the missed detection rate of targets can be reduced, especially more small targets can be detected.

[0004] When multiple overlapping prediction boxes or multiple mutually exclusive prediction results are detected for the same target, the multi-category non-maximum suppression algorithm can only solve the two overlapping situations with high intersection-over-union ratio: overlapping but not contained or almost completely overlapping. However, for two prediction boxes with a containment relationship and a small intersection-over-union ratio, it is difficult to filter out or correct the prediction results through multi-category non-maximum suppression. Summary of the invention

[0005] In order to solve at least one problem in the above-mentioned prior art, the present invention provides a construction site safety wear detection method, system, terminal device and computer-readable storage medium based on improved YOLOv5.

[0006] The first object of the present invention is to provide a construction site safety wear detection method based on improved YOLOv5.

[0007] The second object of the present invention is to provide a construction site safety wear detection system based on improved YOLOv5.

[0008] The third object of the present invention is to provide a terminal device.

[0009] A fourth object of the present invention is to provide a computer-readable storage medium.

[0010] The first object of the present invention can be achieved by adopting the following technical solutions:

[0011] A construction site safety wear detection method based on improved YOLOv5, the method comprising:

[0012] Obtain a training set; the samples in the training set are pictures of worksite wear and their annotated categories;

[0013] The improved YOLOv5 target detection network is trained using the training set to obtain a construction site safety wear detection model; the path aggregation network used in the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used in the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence;

[0014] The construction site safety wear detection model is deployed in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

[0015] Furthermore, in the improved YOLOv5 target detection network, CLPAN is repeatedly stacked according to the network depth requirements.

[0016] Furthermore, the improved YOLOv5 target detection network also includes improvements to the non-maximum suppression algorithm NMS, including:

[0017] Calculate the inclusion degree and intersection-over-union ratio between all prediction boxes;

[0018] Take any two prediction boxes as a prediction box pair;

[0019] Perform the following operations on all prediction box pairs, and the retained prediction box is the final prediction output:

[0020] If the degree of inclusion between the two prediction boxes is greater than the first set threshold and they belong to the same category, then: if the intersection-over-union ratio between the two prediction boxes is less than or equal to the second set threshold, then remove the prediction box with the smaller area of ​​the two prediction boxes and retain the prediction box with the larger area; otherwise, remove the prediction box with the smaller confidence of the two prediction boxes and retain the prediction box with the larger confidence;

[0021] If the degree of inclusion between the two prediction boxes is greater than the first set threshold and they do not belong to the same category, or the degree of inclusion between the two prediction boxes is less than or equal to the first set threshold, then: if the intersection-over-union ratio between the two prediction boxes is greater than the second set threshold, the prediction box with the smaller confidence among the two prediction boxes is removed, and the prediction box with the larger confidence is retained.

[0022] Furthermore, the inclusion degree C between the two predicted boxes i and j ij for:

[0023]

[0024] In the formula, S i and S j are the areas of prediction boxes i and j respectively, S i∩j is the area of ​​the intersection of prediction boxes i and j.

[0025] Furthermore, the intersection over union (IoU) between the two predicted boxes i and j is ij for:

[0026]

[0027] In the formula, S i∩j and S i∪j are the areas of the intersection and union of the predicted boxes i and j, respectively.

[0028] Furthermore, the categories divide the labels into five categories according to the head, torso, hands, feet and leaping actions, and each category is divided into two subcategories: compliant with safety regulations and non-compliant with safety regulations.

[0029] Furthermore, subcategories in the same category have a mutually exclusive relationship with the same target.

[0030] The second object of the present invention can be achieved by adopting the following technical solutions:

[0031] A construction site safety wear detection system based on improved YOLOv5, the system comprising:

[0032] An acquisition module is used to acquire a training set; the samples in the training set are pictures of worksite wear and their annotated categories;

[0033] A training module is used to train the improved YOLOv5 target detection network using the training set to obtain a construction site safety wear detection model; the path aggregation network used by the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used by the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence;

[0034] The detection module is used to deploy the construction site safety wear detection model in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

[0035] The third object of the present invention can be achieved by adopting the following technical solutions:

[0036] A terminal device includes a processor and a memory for storing a program executable by the processor. When the processor executes the program stored in the memory, the above-mentioned construction site safety wear detection method based on improved YOLOv5 is implemented.

[0037] The fourth object of the present invention can be achieved by adopting the following technical solutions:

[0038] A computer-readable storage medium stores a program, and when the program is executed by a processor, the above-mentioned construction site safety wear detection method based on improved YOLOv5 is implemented.

[0039] The present invention has the following beneficial effects compared with the prior art:

[0040] 1. The present invention improves the neck path aggregation network of the YOLOv5 target detection network, introduces a cross-level connection module to accelerate the feature fusion between layers, and improves the recall rate of the target detection network;

[0041] 2. The present invention improves the non-maximum suppression algorithm, screens and removes prediction results that have an inclusion relationship and mutually exclusive categories for the same target, expands the applicability of the algorithm, and improves the accuracy of network prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 the structures shown in these drawings without paying creative work.

[0043] Figure 1 This is a flow chart of a construction site safety wear detection method based on improved YOLOv5 according to Example 1 of the present invention;

[0044] Figure 2 This is a schematic diagram of the structure of the YOLOv5 target detection network of Example 1 of the present invention;

[0045] Figure 3 This is a simplified diagram comparing the structures of the neck network before and after improvement according to Example 1 of the present invention;

[0046] Figure 4This is a structural diagram of an improved YOLOv5 network according to Embodiment 1 of the present invention;

[0047] Figure 5 This is a schematic diagram of the target frame overlap and inclusion relationship of Example 1 of the present invention;

[0048] Figure 6 This is a flow chart of an improved non-maximum suppression algorithm according to Embodiment 1 of the present invention;

[0049] Figure 7 It is a structural block diagram of a construction site safety wear detection system based on improved YOLOv5 according to Embodiment 2 of the present invention;

[0050] Figure 8 This is a structural block diagram of the terminal device of embodiment 3 of the present invention. DETAILED DESCRIPTION

[0051] 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 in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should be understood that the specific embodiments described are only used to explain the present application and are not used to limit the present application.

[0052] Embodiment 1:

[0053] like Figure 1 As shown, the construction site safety wear detection method based on improved YOLOv5 provided in this embodiment includes the following steps:

[0054] S101. Build a data set.

[0055] By obtaining public pictures on the Internet and simulating and taking pictures of construction site wear by ourselves, a dataset for training the construction site safety wear detection network is constructed.

[0056] S102: labeling datasets.

[0057] The images in the dataset are annotated and the labels are divided into five categories according to the head, torso, hands, feet and leaping actions. Each category is divided into two subcategories: those that meet safety standards and those that do not. The subcategories in the same category have a mutually exclusive relationship with the same target.

[0058] S103. Improve the YOLOv5 network.

[0059] This embodiment is improved on the basis of the YOLOv5 target detection network, where the network structure of YOLOv5 is as follows: Figure 2 As shown in the figure, it is divided into three parts: backbone, neck and head. The neck adopts the path aggregation network PAN. The main components are the standard convolution module Conv, the three-convolution cross-stage partial connection bottleneck module C3, the upsampling module and the channel splicing module.

[0060] Specifically, the path aggregation network PAN in the YOLOv5 target detection network is a three-layer (P3, P4, P5) dual-pyramid structure network, including a top-down and a bottom-up pyramid structure for feature fusion.

[0061] In order to facilitate the rapid rise of underlying information, this embodiment introduces a cross-level connection module between the P3 input and the P4 output and between the P4 input and the P5 output. The cross-level connection module includes a C3 module and a Conv module. Figure 3 .

[0062] In this embodiment, the transformed path aggregation network is called a cross-level path aggregation network CLPAN.

[0063] It is understandable that CLPAN can be repeatedly stacked according to the network depth requirement, and the CLPAN repeatedly stacked n times is recorded as CLPAN Rn. Use CLPAN Rn to replace the neck PAN, and the improved YOLOv5 network structure can be found in Figure 4 .

[0064] In this embodiment, CLPAN R2 is used as the neck of YOLOv5.

[0065] S104. Improve the non-maximum suppression algorithm NMS.

[0066] The overlapping relationship between the prediction boxes is as follows Figure 5 , Multi-category NMS can only solve two types of overlapping relationships: overlapping but not contained and almost completely overlapping. For this reason, the NMS algorithm is improved. The improved NMS algorithm process is as follows Figure 6 As shown, the specific steps are as follows:

[0067] (1) Calculate the inclusion degree and intersection-over-union ratio between all predicted boxes.

[0068] Traverse the inclusion degree c and intersection over union (IoU) between all predicted boxes.

[0069] The inclusion degree between the predicted boxes i and j is The intersection and ratio is Where S i and S j are the areas of target boxes i and j respectively, S i∩j and S ivjare the areas of the intersection and union of target boxes i and j respectively.

[0070] (2) Select two prediction boxes i and j. If the inclusion degree of prediction boxes i and j is c ij Greater than the threshold c th , then continue to execute (3), otherwise jump to (6).

[0071] In this embodiment, the inclusion threshold c th =0.8.

[0072] (3) If the predicted categories of prediction boxes i and j belong to the same category, continue to execute (4), otherwise jump to (6).

[0073] (4) If the intersection of predicted boxes i and j is greater than IoU ij Less than or equal to the threshold IoU th , then continue to execute (5), otherwise jump to (7).

[0074] In this embodiment, the intersection-over-union threshold IoU th =0.5.

[0075] (5) Remove the prediction box with a smaller area from prediction boxes i and j, retain the prediction box with a larger area, and jump to (9).

[0076] (6) If the intersection of predicted boxes i and j is greater than IoU ij Greater than the threshold IoU th , then continue to execute (7), otherwise jump to (8).

[0077] (7) Remove the prediction box with smaller confidence among prediction boxes i and j, retain the prediction box with larger confidence, and jump to (9).

[0078] (8) The prediction boxes i and j are not removed and both prediction boxes are retained.

[0079] (9) Repeat (2) to (8) until all prediction box pairs (i, j) are traversed. The prediction box retained at this time is the final prediction output.

[0080] S105. Use the labeled data set to train the improved YOLOv5 network to obtain a construction site safety wear detection model.

[0081] In this embodiment, the training parameters are set as follows: 100 iterations, a batch size of 32, and an input size of 640×640 pixels.

[0082] S106. Deploy the construction site safety wear detection model in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

[0083] The model obtained by S105 is used to deploy a safety wear detection system on the construction site to detect and warn safety wear in real time.

[0084] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium.

[0085] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0086] Embodiment 2:

[0087] like Figure 7 As shown, this embodiment provides a construction site safety wear detection system based on improved YOLOv5, the system includes an acquisition module 701, a training module 702 and a detection module 703, wherein:

[0088] The acquisition module 701 is used to acquire a training set; the samples in the training set are pictures of worksite wear and their annotated categories;

[0089] The training module 702 is used to train the improved YOLOv5 target detection network using the training set to obtain a construction site safety wear detection model; the path aggregation network used by the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used by the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence;

[0090] The detection module 703 is used to deploy the construction site safety wear detection model in the safety wear detection system on the construction site to achieve real-time detection and early warning of safety wear.

[0091] The specific implementation of each module in this embodiment can refer to the above-mentioned embodiment 1, which will not be described one by one here; it should be noted that the system provided in this embodiment is only illustrated by the division of the above-mentioned functional modules. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure can be divided into different functional modules to complete all or part of the functions described above.

[0092] Embodiment 3:

[0093] This embodiment provides a terminal device, which can be a computer. Figure 8 As shown, a processor 802, a memory, an input device 803, a display 804 and a network interface 805 connected through a system bus 801, the processor is used to provide computing and control capabilities, the memory includes a non-volatile storage medium 806 and an internal memory 807, the non-volatile storage medium 806 stores an operating system, a computer program and a database, the internal memory 807 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium, when the processor 802 executes the computer program stored in the memory, the construction site safety wear detection method based on the improved YOLOv5 of the above embodiment 1 is implemented as follows:

[0094] Obtain a training set; the samples in the training set are pictures of worksite wear and their annotated categories;

[0095] The improved YOLOv5 target detection network is trained using the training set to obtain a construction site safety wear detection model; the path aggregation network used in the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used in the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence;

[0096] The construction site safety wear detection model is deployed in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

[0097] Embodiment 4:

[0098] This embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the construction site safety wear detection method based on improved YOLOv5 of the above embodiment 1 is implemented as follows:

[0099] Obtain a training set; the samples in the training set are pictures of worksite wear and their annotated categories;

[0100] The improved YOLOv5 target detection network is trained using the training set to obtain a construction site safety wear detection model; the path aggregation network used in the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used in the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence;

[0101] The construction site safety wear detection model is deployed in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

[0102] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0103] The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and inventive concept of the present invention within the scope disclosed by the present invention, which shall fall within the protection scope of the present invention.

Claims

1. A construction site safety wear detection method based on improved YOLOv5, characterized in that: The method comprises: Obtain a training set; the samples in the training set are pictures of worksite wear and their annotated categories; The improved YOLOv5 target detection network is trained using the training set to obtain a construction site safety wear detection model; the path aggregation network used in the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used in the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence; The construction site safety wear detection model is deployed in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

2. The construction site safety wear detection method according to claim 1, characterized in that: In the improved YOLOv5 target detection network, CLPAN is repeatedly stacked according to the network depth requirements.

3. The construction site safety wear detection method according to claim 1, characterized in that: The improved YOLOv5 target detection network also includes improvements to the non-maximum suppression algorithm NMS, including: Calculate the inclusion degree and intersection-over-union ratio between all prediction boxes; Take any two prediction boxes as a prediction box pair; Perform the following operations on all prediction box pairs, and the retained prediction box is the final prediction output: If the degree of inclusion between the two prediction boxes is greater than the first set threshold and they belong to the same category, then: if the intersection-over-union ratio between the two prediction boxes is less than or equal to the second set threshold, then remove the prediction box with the smaller area of ​​the two prediction boxes and retain the prediction box with the larger area; otherwise, remove the prediction box with the smaller confidence of the two prediction boxes and retain the prediction box with the larger confidence; If the degree of inclusion between the two prediction boxes is greater than the first set threshold and they do not belong to the same category, or the degree of inclusion between the two prediction boxes is less than or equal to the first set threshold, then: if the intersection-over-union ratio between the two prediction boxes is greater than the second set threshold, the prediction box with the smaller confidence among the two prediction boxes is removed, and the prediction box with the larger confidence is retained.

4. The construction site safety wear detection method according to claim 3, characterized in that: The degree of inclusion C between two prediction boxes i and j ij for: In the formula, S i and S j are the areas of prediction boxes i and j respectively, S i∩j is the area of ​​the intersection of prediction boxes i and j.

5. The construction site safety wear detection method according to claim 3, characterized in that: The intersection over union (IoU) between two predicted boxes i and j ij for: In the formula, S i∩j and S i∪j are the areas of the intersection and union of the predicted boxes i and j, respectively.

6. The construction site safety wear detection method according to any one of claims 1 to 5, characterized in that: The categories divide the tags into five categories according to the head, torso, hands, feet and crossing actions, and each category is divided into two subcategories: compliant with safety regulations and non-compliant with safety regulations.

7. The construction site safety wear detection method according to claim 6, characterized in that: Subcategories within the same category have a mutually exclusive relationship with the same target.

8. A construction site safety wear detection system based on improved YOLOv5, characterized in that: The system comprises: An acquisition module is used to acquire a training set; the samples in the training set are pictures of worksite wear and their annotated categories; A training module is used to train the improved YOLOv5 target detection network using the training set to obtain a construction site safety wear detection model; the path aggregation network used by the neck network in the YOLOv5 target detection network is a three-layer double pyramid structure network, which includes a top-down and a bottom-up pyramid structure in sequence; a cross-level connection module is added between the bottom layer input and the middle layer output and between the middle layer input and the top layer output of the path aggregation network to obtain a cross-level path aggregation network; the path aggregation network used by the neck network in the YOLOv5 target detection network is replaced with a cross-level path aggregation network to obtain an improved YOLOv5 target detection network; the cross-level connection module includes a C3 module and a convolution module connected in sequence; The detection module is used to deploy the construction site safety wear detection model in the construction site safety wear detection system to achieve real-time detection and early warning of safety wear.

9. A terminal device, comprising a processor and a memory for storing a program executable by the processor, characterized in that: When the processor executes the program stored in the memory, the construction site safety wear detection method described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the construction site safety wear detection method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Visual positioning method applied to filling field and compatible with different barrel types

    CN114782538A

  • Mask detection system and method under elevator scene based on edge calculation

    CN116994313A

  • Method for detecting Ophiocephalus argus cantor under intra-class occulusion based on cross-scale layered feature fusion

    US11694428B1