Thermal infrared traffic target detection method and device based on improved YOLOv8
By improving the YOLOv8 network model and combining the Ak_C2f module, MBConv module and Shape-IoU loss function, the problem of accurate detection of thermal infrared traffic target detection in harsh environments is solved, achieving higher detection accuracy and anti-interference ability.
Patent Information
- Application Number
- CN202410728911.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-06
AI Technical Summary
Existing thermal infrared traffic target detection algorithms lack accurate detection capabilities in harsh environments, especially in complex traffic scenarios such as complete darkness, smoke, and glare, and cannot meet traffic detection needs.
By improving the YOLOv8 network model, using the Ak_C2f module, MBConv module, GAM module and Shape-IoU loss function, an improved YOLOv8 thermal infrared traffic target detection model is constructed, which enhances feature extraction and attention mechanisms, and improves detection accuracy and anti-interference capabilities.
It significantly improves the target detection accuracy in complex traffic environments, enhances the real-time performance and anti-interference ability of the model, and adapts to traffic environments with diverse object sizes and shapes.
Smart Images

Figure CN118609087A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of thermal infrared traffic target detection, and in particular to a thermal infrared traffic target detection method and device based on improved YOLOv8. Background Art
[0002] In recent years, with the continuous increase in my country's per capita disposable income, the number of cars has increased dramatically, which has also caused frequent traffic accidents. In order to better maintain the traffic safety line and improve the quality of national personal and property safety protection, my country strongly supports the research and development of intelligent transportation systems with on-board AI central control systems as the core technology, so that the automatic driving technology based on artificial intelligence has been fully developed. Among them, the environmental perception module is one of the important components of the automatic driving system, and target detection is the basis of the environmental perception module. Therefore, target detection technology based on traffic scenarios has always attracted the attention of many scientists.
[0003] In recent years, many excellent intelligent traffic detection algorithms have been developed, showing commendable performance in typical environments. However, there is still a significant gap in the availability of effective methods for accurate detection in more demanding environments, including adverse weather conditions, complete darkness, smoke, glare, fog, and similar situations. In complex traffic environments, ordinary cameras cannot meet the needs of traffic detection. Therefore, detecting such scenes requires the use of suitable thermal sensors to generate corresponding thermal infrared radiation images. However, these thermal infrared radiation images lack color or shadows, have low image resolution, and lack image hierarchy. Therefore, existing object detection algorithms face challenges in achieving accurate detection. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides a thermal infrared traffic target detection method and device based on improved YOLOv8, which has the advantages of accurate recognition and solves the above-mentioned technical problems.
[0006] (II) Technical solution
[0007] To achieve the above object, the present invention provides the following technical solution: a thermal infrared traffic target detection method and device based on improved YOLOv8, comprising the following steps:
[0008] S1. Obtain real-life traffic images under a preset scenario and build a data set, and divide the data set into a training set and a test set in proportion;
[0009] S2. Based on the Ak_C2f module, MBConv module, GAM module and Shape-IoU loss function, the YOLOv8 network model is improved to obtain an improved YOLOv8 thermal infrared traffic target detection model. The specific improvement steps are as follows:
[0010] S2.1. Replace the C2f module in the YOLOv8 network with the Ak_C2f module, wherein the Ak_C2f module includes the Ak_Bottleneck module.
[0011] S2.2, replacing the standard Conv module with an MBConv module, wherein the MBConv module is composed of a DWConv module and a SE module;
[0012] S2.3. Add a GAM module before the SPPF module in the backbone network of the YOLOv8 network model. The GAM module includes two parts: a channel attention submodule and a spatial attention submodule.
[0013] S2.4. Replace the CIoU loss function and DFL loss function in the Bbox Loss module of the YOLOv8 network model with the Shape-IoU loss function.
[0014] The backbone network of the improved YOLOv8 thermal infrared traffic target detection model includes two MBConv modules, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, a GAM module and an SPPF module connected in sequence;
[0015] The Neck layer of the improved YOLOv8 thermal infrared traffic target detection model includes two identical branches consisting of a Concat module, an Ak_C2f module, and an MBConv module, a branch consisting of a Concat module, an Ak_C2f module, and an Upsample module, and a branch consisting of a Concat module and an Ak_C2f module;
[0016] The detection head of the improved YOLOv8 thermal infrared traffic target detection model includes three detection units, each of which is divided into two paths, one of which is connected to the CBS module, the Conv2d module and the Bbox Loss module in sequence, and the other is connected to the CBS module, the Conv2d module and the Cls Loss module in sequence, wherein the CIoU loss function and the DFL loss function in the Bbox Loss module are replaced by the Shape-IoU loss function
[0017] S3, input the training set into the improved YOLOv8 thermal infrared traffic target detection model for training, and output the weight file;
[0018] S4. Use the weight file to test the test set and obtain the anchor box and confidence of each target category in each test set image.
[0019] As a preferred technical solution of the present invention, the preset traffic scene in step S1 includes bridge roads, urban road sections and intersection data under extreme weather conditions, and the division ratio of the training set and the test set in step S1 is 9:1.
[0020] As a preferred technical solution of the present invention, the process of replacing the C2f module with the Ak_C2f module in step S2.1 is specifically as follows:
[0021] S2.1.1. Set the feature map size of the input Ak_C2f module to ,in, is the height, is the width, is the number of channels, and a preliminary feature extraction is performed on the input image. The input image is extracted with a size of The feature map is divided into two equal parts according to the number of channels. One half is used as the first feature map for the input of the Concat module at the bottom of the module, and the other half will enter the Ak_Bottleneck module.
[0022] S2.1.2, the characteristic size of the Ak_Bottleneck module is ,in is the height, is the width, The Ak_Bottleneck module uses the CBS module to extract features from the feature map and uses it as the input of AkConv. AkConv divides the input features into initial sampling grids according to the adaptive square area of the deformable convolution kernel size. Initialize the sampling grid with a convolution kernel size of 3×3 , which is expressed as follows:
[0023]
[0024]
[0025] in, represents the initial sampling grid, and Respectively The maximum value of the row and column coordinates, and Respectively The maximum value of the row and column coordinates, Indicates that the convolution kernel size is 3×3 to initialize the sampling grid, and AkConv will use the learnable potential offset right and Perform summation to obtain a deformable dynamic sampling grid ,by For reference, deformable dynamic sampling feature extraction is performed. It can be expressed as:
[0026]
[0027] in, Indicates that the input feature is subjected to a convolution operation with a convolution kernel size of 3×3 to generate the potential offset of the feature map;
[0028] Two Ak_Bottleneck modules are connected in series in the Ak_C2f module, and the number of output channels of the two modules is consistent with the number of input channels. The output of the first Ak_Bottleneck module is used as the second feature map, and the second feature map is input into the second Ak_Bottleneck module. The output of the second Ak_Bottleneck module is used as the third feature map. The first feature map, the second feature map and the third feature map are cascaded through the Concat module, and finally the CBS module is used to fuse their features as the output of the entire Ak_C2f module.
[0029] As a preferred technical solution of the present invention, the convolution kernel sizes of channel-by-channel convolution and point-by-point convolution during the operation of the DWConv module are and ,in, is the height, is the width, The DWConv module uses channel-by-channel convolution to perform convolution operations on the two-dimensional plane of each channel of the image, and calculates the size of The features of are used as the input of point-by-point convolution, and finally a feature map after processing is obtained by weighted combination in the depth direction;
[0030] The SE module maps the global information of each channel to a feature vector of size 1×1×C through a global average pooling operation, and distributes the feature vector to the corresponding channel in a weighted manner to generate a feature map after secondary processing.
[0031] As a preferred technical solution of the present invention, the input variable of the channel attention submodule is The size is H×W×C, and the output of the channel attention submodule is obtained , the specific calculation expression is as follows:
[0032]
[0033] in, represents the channel attention weight calculation, represents the input in the channel attention submodule, represents the output of the channel attention submodule, Represents element-wise multiplication operation;
[0034] The output of the channel attention submodule As the input of the spatial attention submodule, the output feature is obtained , the specific expression is as follows:
[0035]
[0036] in, represents the spatial attention weight calculation, represents the output of the channel attention submodule, represents the output of the spatial attention submodule, Represents an element-wise multiplication operation.
[0037] As a preferred technical solution of the present invention, the expression of the Shape-IoU loss function is as follows:
[0038]
[0039] in, represents the Shape-IoU loss function, represents the basic IoU loss, a distance metric representing the bounding box shape, Represents the shape weight term.
[0040] As a preferred technical solution of the present invention, the specific steps of step S4 are as follows:
[0041] S4.1. Select an image from the test set, perform inference in the improved YOLOv8 network through the weight file, and obtain the anchor box and confidence of the target category in the image;
[0042] S4.2. Reread the images in the test set until all images in the test set have been detected.
[0043] The present invention also provides a thermal infrared traffic target detection device, comprising a memory, a processor, and a thermal infrared traffic target detection program stored in the memory and capable of running on the processor, wherein the thermal infrared traffic target detection program implements the above-mentioned thermal infrared traffic target detection method based on improved YOLOv8 when executed.
[0044] Compared with the prior art, the present invention provides a thermal infrared traffic target detection method and device based on improved YOLOv8, which has the following beneficial effects:
[0045] The present invention adopts Ak_C2f module to replace C2f module, which not only greatly enhances the long-range correlation and adaptive spatial aggregation of output features and improves the detection accuracy of the model, but also adjusts the computational flexibility of the module and reduces the dependence of model deployment on hardware devices. MBConv module is adopted to replace standard Conv module, which not only greatly reduces the number of module parameters and meets the real-time performance of traffic detection tasks, but also selectively amplifies feature information and improves feature utilization. GAM module is adopted to improve the attention weight distribution of features in spatial and channel dimensions and enhance the anti-interference ability of the model. Shape-IoU loss function is adopted to focus on the geometric relationship between bounding boxes to adapt to complex traffic environments with diverse object sizes or extreme shapes. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of the thermal infrared traffic target detection method based on improved YOLOv8 of the present invention;
[0047] Figure 2 This is a schematic diagram of the improved YOLOv8 network model structure of the present invention;
[0048] Figure 3 It is a schematic diagram of the Ak_C2f structure of the present invention;
[0049] Figure 4 It is a schematic diagram of the detection results of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] See also Figure 1-4 , a thermal infrared traffic target detection method and device based on improved YOLOv8, comprising the following steps:
[0052] S1. Obtain real-life traffic images under a preset scenario and build a data set, and divide the data set into a training set and a test set in proportion;
[0053] S2. Based on the Ak_C2f module, MBConv module, GAM module and Shape-IoU loss function, the YOLOv8 network model is improved to obtain an improved YOLOv8 thermal infrared traffic target detection model. The specific improvement steps are as follows:
[0054] S2.1. Replace the C2f module in the YOLOv8 network with the Ak_C2f module, where the Ak_C2f module includes the Ak_Bottleneck module.
[0055] S2.2, replace the standard Conv module with the MBConv module, which consists of the DWConv module and the SE module;
[0056] S2.3. Add a GAM module before the SPPF module in the backbone network of the YOLOv8 network model. The GAM module consists of two parts: a channel attention submodule and a spatial attention submodule.
[0057] S2.4. Replace the CIoU loss function and DFL loss function in the Bbox Loss module of the YOLOv8 network model with the Shape-IoU loss function.
[0058] The backbone network of the improved YOLOv8 thermal infrared traffic target detection model includes two MBConv modules, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, a GAM module, and an SPPF module connected in sequence;
[0059] The Neck layer of the improved YOLOv8 thermal infrared traffic target detection model includes two identical branches consisting of the Concat module, the Ak_C2f module, and the MBConv module, one branch consisting of the Concat module, the Ak_C2f module, and the Upsample module, and one branch consisting of the Concat module and the Ak_C2f module;
[0060] The detection head of the improved YOLOv8 thermal infrared traffic target detection model includes three detection units. Each detection unit is divided into two paths. One path is connected to the CBS module, Conv2d module and Bbox Loss module in sequence, and the other path is connected to the CBS module, Conv2d module and Cls Loss module in sequence. Among them, the CIoU loss function and DFL loss function in the Bbox Loss module are replaced by the Shape-IoU loss function
[0061] S3, input the training set into the improved YOLOv8 thermal infrared traffic target detection model for training, and output the weight file;
[0062] S4. Use the weight file to test the test set and obtain the anchor box and confidence of each target category in each test set image.
[0063] Furthermore, the traffic scenarios preset in step S1 include bridge roads, urban road sections and intersection data under extreme weather conditions, and the ratio of the training set to the test set in step S1 is 9:1.
[0064] Furthermore, the process of replacing the C2f module with the Ak_C2f module in step S2.1 is specifically as follows:
[0065] S2.1.1. Set the feature map size of the input Ak_C2f module to ,in, is the height, is the width, is the number of channels, and a preliminary feature extraction is performed on the input image. The input image is extracted with a size of The feature map is divided into two equal parts according to the number of channels. One half is used as the first feature map for the input of the Concat module at the bottom of the module, and the other half will enter the Ak_Bottleneck module.
[0066] S2.1.2, the characteristic size of the Ak_Bottleneck module is ,in is the height, is the width, Represents half of the number of channels, that is, half of the channels divided feature maps output by the CBS module or Ak_Bottleneck module. The Ak_Bottleneck module uses the CBS module to extract features from the feature map and uses it as the input of AkConv. AkConv divides the input features into initial sampling grids according to the adaptive square area of the deformable convolution kernel size. Initialize the sampling grid with a convolution kernel size of 3×3 , which is expressed as follows:
[0067]
[0068]
[0069] in, represents the initial sampling grid, and Respectively The maximum value of the row and column coordinates, and Respectively The maximum value of the row and column coordinates, Indicates that the convolution kernel size is 3×3 to initialize the sampling grid, and AkConv will use the learnable potential offset right and Perform summation to obtain a deformable dynamic sampling grid ,by For reference, deformable dynamic sampling feature extraction is performed. It can be expressed as:
[0070]
[0071] in, Indicates that the input feature is subjected to a convolution operation with a convolution kernel size of 3×3 to generate the potential offset of the feature map;
[0072] Two Ak_Bottleneck modules are connected in series in the Ak_C2f module, and the number of output channels of the two modules is consistent with the number of input channels. The output of the first Ak_Bottleneck module is used as the second feature map, and the second feature map is input into the second Ak_Bottleneck module. The output of the second Ak_Bottleneck module is used as the third feature map. The first feature map, the second feature map and the third feature map are cascaded through the Concat module, and finally the CBS module is used to fuse their features as the output of the entire Ak_C2f module. The entire Ak_C2f module retains the original features of the spatial details and effectively fuses the features with long-range correlation and adaptive spatial aggregation mined by Ak_Bottleneck, which greatly improves the quality of feature information on the basis of reducing the amount of calculation and improving cache efficiency.
[0073] Furthermore, during the operation of the DWConv module, the convolution kernel sizes of the channel-by-channel convolution and point-by-point convolution are and ,in, is the height, is the width, The DWConv module uses channel-by-channel convolution to perform convolution operations on the two-dimensional plane of each channel of the image, and calculates the size of The features of are used as the input of point-by-point convolution, and finally a feature map after processing is obtained by weighted combination in the depth direction;
[0074] The SE module maps the global information of each channel to a feature vector of size 1×1×C through a global average pooling operation, and distributes the feature vector to the corresponding channel in a weighted manner to generate a feature map after secondary processing.
[0075] Furthermore, the input variables of the channel attention submodule are The size is C×H×W, and the output of the channel attention submodule is obtained , the specific calculation expression is as follows:
[0076]
[0077] in, represents the channel attention weight calculation, represents the input in the channel attention submodule, represents the output of the channel attention submodule, Indicates element-wise multiplication operation;
[0078] The output of the channel attention submodule As the input of the spatial attention submodule, the output feature is obtained , the specific expression is as follows:
[0079]
[0080] in, represents the spatial attention weight calculation, represents the output of the channel attention submodule, represents the output of the spatial attention submodule, Represents an element-wise multiplication operation.
[0081] Furthermore, the expression of the Shape-IoU loss function is as follows:
[0082]
[0083] in, represents the Shape-IoU loss function, represents the basic IoU loss, A distance metric representing the shape of the bounding box to quantify the difference in shape between the predicted box and the label box. Represents the shape weight term to adjust the impact of shape error on the overall loss;
[0084] The expression is as follows:
[0085]
[0086] and Respectively represent the weight coefficients adjusted for the width and height of the label box to balance the influence of width and height in the shape distance measurement; and Represents the center of the prediction box; and Indicates the center of the label box, represents the normalization constant to maintain scale consistency;
[0087] The expression is as follows:
[0088]
[0089] represents the natural logarithm, Tuning parameters for shape consistency, A measure of the difference between width and height. Indicates the width and height;
[0090] Furthermore, the specific steps of step S4 are as follows:
[0091] S4.1. Select an image from the test set, perform inference in the improved YOLOv8 network through the weight file, and obtain the anchor box and confidence of the target category in the image.
[0092] S4.2. Reread the images in the test set until all images in the test set have been detected.
[0093] The present invention also provides a thermal infrared traffic target detection device, comprising a memory, a processor, and a thermal infrared traffic target detection program stored in the memory and capable of running on the processor. When the thermal infrared traffic target detection program is executed, it implements the above-mentioned thermal infrared traffic target detection method based on improved YOLOv8.
[0094] The thermal infrared traffic target detection method of this application based on the improved YOLOv8 is compared with the performance of YOLOv7 and YOLOv8 in three categories: people, cars, and bicycles. These methods are the existing technologies that have very good feature matching capabilities. Using these methods as comparison methods can more objectively prove the ability and effect of the infrared traffic target detection method of this application.
[0095]
[0096] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A thermal infrared traffic target detection method based on improved YOLOv8, characterized by: The following steps are involved: S1. Obtain real-life traffic images under a preset scenario and build a data set, and divide the data set into a training set and a test set in proportion; S2. Based on the Ak_C2f module, MBConv module, GAM module and Shape-IoU loss function, the YOLOv8 network model is improved to obtain an improved YOLOv8 thermal infrared traffic target detection model. The specific improvement steps are as follows: S2.
1. Replace the C2f module in the YOLOv8 network with an Ak_C2f module, wherein the Ak_C2f module includes an Ak_Bottleneck module. S2.2, replacing the standard Conv module with an MBConv module, wherein the MBConv module is composed of a DWConv module and a SE module; S2.
3. Add a GAM module before the SPPF module in the backbone network of the YOLOv8 network model. The GAM module includes two parts: a channel attention submodule and a spatial attention submodule. S2.
4. Replace the CIoU loss function and DFL loss function in the box loss module in the YOLOv8 network model with the Shape-IoU loss function. The backbone network of the improved YOLOv8 thermal infrared traffic target detection model includes two MBConv modules, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, an MBConv module, an Ak_C2f module, a GAM module and an SPPF module connected in sequence; The Neck layer of the improved YOLOv8 thermal infrared traffic target detection model includes two identical branches consisting of a Concat module, an Ak_C2f module, and an MBConv module, a branch consisting of a Concat module, an Ak_C2f module, and an Upsample module, and a branch consisting of a Concat module and an Ak_C2f module; The detection head of the improved YOLOv8 thermal infrared traffic target detection model includes three detection units, each of which is divided into two paths, one of which is connected to the CBS module, the Conv2d module and the Bbox Loss module in sequence, and the other is connected to the CBS module, the Conv2d module and the Cls Loss module in sequence, wherein the CIoU loss function and the DFL loss function in the Bbox Loss module are replaced by the Shape-IoU loss function S3, input the training set into the improved YOLOv8 thermal infrared traffic target detection model for training, and output the weight file; S4. Use the weight file to test the test set and obtain the anchor box and confidence of each target category in each test set image.
2. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: The traffic scenarios preset in step S1 include bridge roads, urban road sections and intersection data under extreme weather conditions, and the ratio of the training set to the test set in step S1 is 9:
1.
3. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: The process of replacing the C2f module with the Ak_C2f module in step S2.1 is specifically as follows: S2.1.
1. Set the feature map size of the input Ak_C2f module to ,in, is the height, is the width, is the number of channels, and a preliminary feature extraction is performed on the input image. The input image is extracted with a size of The feature map is divided into two equal parts according to the number of channels. One half is used as the first feature map for the input of the Concat module at the bottom of the module, and the other half will enter the Ak_Bottleneck module. S2.1.2, the characteristic size of the Ak_Bottleneck module is ,in is the height, is the width, The Ak_Bottleneck module uses the CBS module to extract features from the feature map and uses it as the input of AkConv. AkConv divides the input features into initial sampling grids according to the adaptive square area of the deformable convolution kernel size. Initialize the sampling grid with a convolution kernel size of 3×3 , which is expressed as follows: ; ; in, represents the initial sampling grid, and Respectively The maximum value of the row and column coordinates, and Respectively The maximum value of the row and column coordinates, Indicates that the convolution kernel size is 3×3 to initialize the sampling grid, and AkConv will use the learnable potential offset right and Perform summation to obtain a deformable dynamic sampling grid ,by For reference, deformable dynamic sampling feature extraction is performed. It can be expressed as: ; in, Indicates that the input feature is subjected to a convolution operation with a convolution kernel size of 3×3 to generate the potential offset of the feature map; Two Ak_Bottleneck modules are connected in series in the Ak_C2f module, and the number of output channels of the two modules is consistent with the number of input channels. The output of the first Ak_Bottleneck module is used as the second feature map, and the second feature map is input into the second Ak_Bottleneck module. The output of the second Ak_Bottleneck module is used as the third feature map. The first feature map, the second feature map and the third feature map are cascaded through the Concat module, and finally the CBS module is used to fuse their features as the output of the entire Ak_C2f module.
4. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: During the operation of the DWConv module, the convolution kernel sizes of channel-by-channel convolution and point-by-point convolution are and ,in, is the height, is the width, The DWConv module uses channel-by-channel convolution to perform convolution operations on the two-dimensional plane of each channel of the image, and calculates the size of The features of are used as the input of point-by-point convolution, and finally a feature map after processing is obtained by weighted combination in the depth direction; The SE module maps the global information of each channel to a feature vector of size 1×1×C through a global average pooling operation, and distributes the feature vector to the corresponding channel in a weighted manner to generate a feature map after secondary processing.
5. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: Input variables of the channel attention submodule The size is H×W×C, and the output of the channel attention submodule is obtained , the specific calculation expression is as follows: ; in, represents the channel attention weight calculation, represents the input in the channel attention submodule, represents the output of the channel attention submodule, Indicates element-wise multiplication operation; The output of the channel attention submodule As the input of the spatial attention submodule, the output feature is obtained , the specific expression is as follows: ; in, represents the spatial attention weight calculation, represents the output of the channel attention submodule, represents the output of the spatial attention submodule, Represents an element-wise multiplication operation.
6. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: The expression of the Shape-IoU loss function is as follows: ; in, represents the Shape-IoU loss function, represents the basic IoU loss, a distance metric representing the bounding box shape, Represents the shape weight term.
7. A thermal infrared traffic target detection method based on improved YOLOv8 according to claim 1, characterized in that: The specific steps of step S4 are as follows: S4.
1. Select an image from the test set, perform inference in the improved YOLOv8 network through the weight file, and obtain the anchor box and confidence of the target category in the image; S4.
2. Reread the images in the test set until all images in the test set have been detected.
8. A thermal infrared traffic target detection device, characterized in that: The invention comprises a memory, a processor and a thermal infrared traffic target detection program stored in the memory and capable of running on the processor. When the thermal infrared traffic target detection program is executed, the thermal infrared traffic target detection method based on improved YOLOv8 as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
High-precision infrared target detection method based on YOLOv9 improvement
CN119559484A
