Traffic sign detection method and device, equipment, storage medium and product
By acquiring real-time images of the road and using the target image detection model, the traffic sign detection model is optimized, which solves the problem of low detection accuracy caused by lighting and weather changes in the existing technology, achieves real-time and accurate detection of traffic signs, and improves driving efficiency. Security and functional support for intelligent transportation systems.
Patent Information
- Application Number
- CN202410785699.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
AI Technical Summary
Existing traffic sign detection technology has low detection accuracy due to changes in lighting conditions and weather conditions, making it difficult to achieve real-time and accurate traffic sign detection.
By acquiring real-time road images and inputting them into the target image detection model, the remote sensing detection module and attention mechanism are used to optimize the initial image detection model, extract image feature information and target location information, and realize real-time detection of traffic signs.
It improves the accuracy and safety of traffic sign detection, provides important data support for intelligent transportation systems, and enhances the ability to respond instantly to changes in road conditions.
Smart Images

Figure CN118570769A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to traffic sign detection methods, devices, equipment, storage media and products. Background Art
[0002] With the continuous expansion of urban population and the increasing number of cars, urban traffic problems have gradually surfaced. The research and development and application of traffic sign detection technology are extremely important. It plays an irreplaceable role in alleviating urban traffic pressure, improving traffic safety and improving the urban environment.
[0003] At present, different traffic signs can be effectively identified by capturing the eye-catching visual features of traffic signs, such as bright colors, unique shapes, etc. However, due to various factors such as changes in lighting conditions and fluctuations in weather conditions, the quality of the collected traffic sign image data may be affected to varying degrees, resulting in low traffic sign detection accuracy.
[0004] Therefore, how to improve the accuracy of traffic sign detection is a problem that needs to be solved urgently.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a traffic sign detection method, device, equipment, storage medium and product, aiming to solve the technical problem of low detection accuracy of traffic signs.
[0007] To achieve the above objectives, the present application proposes a traffic sign detection method, the method comprising:
[0008] Obtain real-time images of roads;
[0009] Inputting the real-time road image into a target image detection model to obtain a target recognition result, wherein the target image detection model is used to extract feature information of the image and / or target position information;
[0010] A traffic sign is detected based on the object recognition result.
[0011] In one embodiment, before the step of inputting the real-time road image into the target image detection model to obtain the target recognition result, the step includes:
[0012] Establish an initial image detection model based on road image data and traffic annotated image data;
[0013] The initial image detection model is optimized to obtain a target image detection model.
[0014] In one embodiment, the image detection model includes a remote sensing detection module, and the step of optimizing the initial image detection model to obtain a target image detection model includes:
[0015] Inputting the road image data into a remote sensing detection module, wherein the remote sensing detection module is used to obtain key features of the road image data;
[0016] Based on the key features of the road image data, the initial image detection model is optimized to obtain a target image detection model.
[0017] In one embodiment, the image detection model includes an attention mechanism, and the step of optimizing the initial image detection model based on the key features of the road image data to obtain the target image detection model includes:
[0018] Obtaining an input feature map according to key features of the road image data;
[0019] Embedding the target position information into the input feature map based on the attention mechanism;
[0020] Generate an attention map based on the input feature map;
[0021] Applying the attention map to the input feature map to obtain a new input feature map, wherein the new input feature map is used to enhance attention to the target position;
[0022] The initial image detection model is optimized according to the new input feature map to obtain a target image detection model.
[0023] In one embodiment, the step of optimizing the initial image detection model to obtain the target image detection model includes:
[0024] Minimize the loss function to optimize the bounding box regression performance of the detection network;
[0025] When the regression performance meets the preset conditions, the target image detection model is obtained.
[0026] In one embodiment, the loss function includes width-height loss, and the step of minimizing the loss function includes:
[0027] Minimize the width and height loss, which is the difference between the width and height of the target box and the predicted box.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a traffic sign detection device, the traffic sign detection device comprising:
[0029] An image acquisition module, used to acquire real-time images of roads;
[0030] A target recognition module, used for inputting the real-time road image into a target image detection model to obtain a target recognition result, wherein the target image detection model is used for extracting feature information of the image and / or target position information;
[0031] A sign detection module is used to detect traffic signs based on the target recognition result.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a traffic sign detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the traffic sign detection method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the traffic sign detection method described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the traffic sign detection method described above are implemented.
[0035] One or more technical solutions proposed in this application have at least the following technical effects:
[0036] By acquiring real-time images of the road, the system can ensure immediate response to changes in road conditions. The real-time images of the road are input into the target image detection model to obtain target recognition results. The target image detection model is used to extract feature information and / or target location information of the image, and detect traffic signs based on the target recognition results, thus achieving real-time and accurate detection of traffic signs. This detection method not only improves driving safety, but also provides important data support for other functions of the intelligent transportation system (such as route planning, traffic management, etc.). BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1This is a flow chart of the first embodiment of the traffic sign detection method of the present application;
[0040] Figure 2 This is a flow chart of a second embodiment of the traffic sign detection method of the present application;
[0041] Figure 3 This is a schematic diagram of an SPP module and an SPPF module in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a flow chart of a third embodiment of a traffic sign detection method of the present application;
[0043] Figure 5 This is a schematic diagram of LSKNet in an embodiment of the present application;
[0044] Figure 6 Schematic diagram of the CA attention mechanism in an embodiment of the present application;
[0045] Figure 7 This is a structural diagram of the target image detection model in the embodiment of the present application;
[0046] Figure 8 This is a schematic diagram of the module structure of the traffic sign detection device according to an embodiment of the present application;
[0047] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the traffic sign detection method in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] By capturing the eye-catching visual features of traffic signs, such as bright colors and unique shapes, different traffic signs can be effectively identified. However, due to various factors such as changes in lighting conditions and fluctuations in weather conditions, the quality of the collected traffic sign image data may be affected to varying degrees, resulting in low traffic sign detection accuracy. Therefore, how to improve the accuracy of traffic sign detection is a problem that needs to be solved urgently.
[0052] The present application provides a solution, which can ensure the system's immediate response to changes in road conditions by acquiring real-time road images, inputting the real-time road images into a target image detection model to obtain target recognition results, and the target image detection model is used to extract feature information and / or target position information of the image, and detect traffic signs based on the target recognition results, thereby realizing real-time and accurate detection of traffic signs.
[0053] Based on this, the present application embodiment provides a traffic sign detection method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the traffic sign detection method of the present application.
[0054] In this embodiment, the traffic sign detection method includes steps S10 to S30:
[0055] Step S10, acquiring a real-time road image.
[0056] It should be noted that the real-time road image can be an image captured by an image acquisition device on the road in real time, reflecting the current road conditions. For example, these images usually contain elements such as vehicles, pedestrians, traffic signs, road markings, etc. The image acquisition device can be a vehicle-mounted camera, a driving recorder, or a road camera.
[0057] Step S20, inputting the real-time road image into a target image detection model to obtain a target recognition result. The target image detection model is used to extract feature information of the image and / or target position information.
[0058] It should be noted that the target image detection model can be understood as a pre-trained model for detecting target images. The target recognition result can be understood as the information output after the real-time road image passes through the target image detection model, which may include the feature information of the image and / or the target location information. The feature information of the image includes the unique attributes or characteristics of the traffic signs in the image, such as the color and meaning of the traffic signs. The target location information may be the coordinate location information of the traffic signs in the image. Exemplarily, the acquired real-time road image will be fed into a pre-trained target image detection model, which will use deep learning or other computer vision technologies to identify the targets in the image and extract the feature information and / or location information of these targets.
[0059] Step S30: Detect traffic signs based on the target recognition result.
[0060] Exemplarily, after obtaining the target recognition results, the system analyzes these results to detect whether there are traffic signs.
[0061] In this embodiment, by acquiring real-time road images, the system can ensure immediate response to changes in road conditions, input the real-time road images into the target image detection model, obtain target recognition results, and the target image detection model is used to extract feature information and / or target location information of the image, detect traffic signs based on the target recognition results, and achieve real-time and accurate detection of traffic signs. This detection method not only improves driving safety, but also provides important data support for other functions of the intelligent transportation system (such as route planning, traffic management, etc.).
[0062] Reference Figure 2 , Figure 2 This is a flow chart of the second embodiment of the traffic sign detection method of the present application. Figure 1 The first embodiment shown provides a second embodiment of the traffic sign detection method of the present application.
[0063] In the second embodiment, before step S10, the following steps are included:
[0064] Step S010: establishing an initial image detection model based on the road image data and the traffic annotated image data.
[0065] It should be noted that road image data refers to image data captured by cameras and other devices that reflect the actual road conditions, and traffic annotated image data refers to image data obtained after annotating road image data. The initial image detection model refers to an image detection model trained based on a large amount of annotated data before optimization and fine-tuning. It can be understood that the initial image detection model already has a certain target detection capability.
[0066] Step S020, optimizing the initial image detection model to obtain a target image detection model.
[0067] It should be noted that the target image detection model can be an image detection model with higher accuracy and generalization ability, which is used to detect targets such as traffic signs in road images in real time. Exemplarily, the initial image detection model is optimized to improve its target detection accuracy and efficiency. There are many optimization methods, including but not limited to adjusting model parameters, adding regularization terms, using more advanced optimization algorithms, etc.
[0068] For example, the YOLOv8 (You Only Look Once v8) algorithm can be used to detect small targets. YOLOv8 is used in various tasks such as object detection, image classification, and instance segmentation. The network process of YOLOv8 is divided into four parts: input, neck, detection head, and backbone network. The input uses the Mosaic data enhancement method, which still uses 640*640. The input image is randomly scaled, arranged, and cropped to form a new image to improve the ability to detect small targets. Figure 3 As shown in the figure, the backbone network includes modules such as Conv, C2f, and SPPF, which are mainly used for feature extraction. The Conv module uses two 3*3 convolutions in succession, which reduces the resolution by 4 times compared with the previous one; the C2f structure is an innovative design unique to YOLOv8. It draws on the ELAN structure concept in YOLOv7 and introduces more branches and cross-layer connections to improve the training efficiency and performance of the model. Compared with the traditional SPP module, the SPPF module is optimized and innovated in structure. SPPF no longer uses simple parallel maxpooling, but combines serial and parallel processing mechanisms. This hybrid method improves processing efficiency and makes feature extraction more comprehensive and accurate. YOLOv8 has made significant improvements in the Head part. The original coupled head structure has been optimized to a decoupled head structure, achieving more flexible and efficient feature extraction. At the same time, compared with the Anchor-Based method of YOLOv5, YOLOv8 adopts the Anchor-Free design, which further simplifies the target detection process and improves the accuracy and speed of detection. YOLOv8 uses the TaskAligned Assigner matching method, and abandons the IOU matching or unilateral ratio allocation method of the previous YOLO series. The classification loss of YOLOv8 is VFL Loss, and the regression loss is CIOU Loss, making the prediction results closer to reality.
[0069] This embodiment establishes an initial image detection model based on road image data and traffic annotated image data. By providing abundant road image data and corresponding traffic annotated image data, we can train a model that can preliminarily recognize traffic signs. By optimizing the initial image detection model, the target image detection model is obtained, which improves the performance of the model and makes it more accurate, efficient and robust in practical applications.
[0070] Reference Figure 4 , Figure 4 This is a flow chart of the third embodiment of the traffic sign detection method of the present application. Figure 2 The second embodiment shown provides a third embodiment of the traffic sign detection method of the present application.
[0071] In the third embodiment, the step S02 includes:
[0072] Step S0201: input the road image data into a remote sensing detection module, which is used to obtain key features of the road image data.
[0073] It should be noted that the remote sensing detection module is used to adaptively learn the key features of the target in the network and effectively integrate them with other features. Exemplarily, the remote sensing detection module can introduce LSKNet technology, which is a new remote sensing rotation target detection method. This method introduces ICCV and realizes effective detection of small targets through LSKblockAttention technology. The core idea of LSKNet is to improve the detection performance of small targets by introducing LSKblockAttention technology. LSKblockAttention is a lightweight attention mechanism.
[0074] For example, Figure 5 As shown in the figure, LSKNet (Large Selective Kernel Network) includes a large kernel selection (LKSelection) sub-block and a feed-forward network (FFN) sub-block. The LK Selection sub-block can dynamically adjust the receptive field of the network to capture contextual information of different scales as needed, so that the network can adjust its processing power according to the different sizes and complexities of objects in remote sensing images; the FFN sub-block is used for channel mixing and feature refinement. It consists of a fully connected layer, a deep convolution, a GELU activation function, and a second fully connected layer. These components work together to improve the quality of features and provide the necessary information for classification and detection. Together, these two sub-blocks constitute the LSKNet block, which can provide a wide range of contextual information while maintaining sensitivity to details.
[0075] Step S0202, based on the key features of the road image data, optimize the initial image detection model to obtain the target image detection model.
[0076] It should be noted that step S0202 includes: obtaining an input feature map based on key features of road image data; embedding target location information into the input feature map based on an attention mechanism; generating an attention map based on the input feature map; applying the attention map to the input feature map to obtain a new input feature map, which is used to enhance attention to the target location; optimizing the initial image detection model based on the new input feature map to obtain a target image detection model. Exemplarily, a CA (Coordinate attention) attention mechanism is introduced. The implementation of CA attention is as follows: Figure 6As shown, it can be considered as two parallel stages. The CA attention mechanism incorporates precise position information into the neural network. By encoding this information, it can achieve a detailed characterization of the relationship between channels and effective modeling of long-term dependencies. The CA attention mechanism includes Coordinate information embedding and Coordinate Attention generation. In Coordinate information embedding, the position information is embedded into the input feature map. In Coordinate Attention generation, the attention map is generated using the position information and applied to the input feature map to emphasize the representation of interest. The advantage of Coordinate attention is that it can participate in the modeling of large areas in mobile networks and avoid a lot of computational overhead.
[0077] It should be noted that in order to perform global average pooling on the feature map, it is necessary to obtain feature maps in both width and height directions. For example, assuming that the shape of the input feature layer is [C, H, W], after average pooling in the width direction, the obtained feature layer shape is [C, H, 1], which maps the features to the high dimension; after average pooling in the height direction, the obtained feature layer shape is [C, 1, W], which maps the features to the wide dimension. Then merge the two parallel stages, transpose the width and height to the same dimension, and then stack them to merge the width and height features together. The feature layer obtained at this time is: [C, 1, H + W]. Use convolution + normalization + activation function to obtain features. Then separate it into two parallel stages again, and then separate the width and height into: [C, 1, H] and [C, 1, W]. Then transpose them to obtain two feature layers [C, H, 1] and [C, 1, W]. Use 1x1 convolution to adjust the number of channels and then take sigmoid to obtain the attention situation in the width and height dimensions. Multiplying by the original features is the CA attention mechanism.
[0078] In this embodiment, the road image data is input into the remote sensing detection module, which is used to obtain the key features of the road image data. The remote sensing detection module can adaptively learn the key features of the target in the network and effectively integrate them with other features. Based on the key features of the road image data, the initial image detection model is optimized to obtain the target image detection model, thereby achieving a detailed characterization of the relationship between channels and effective modeling of long-term dependencies.
[0079] In one embodiment, based on the above-mentioned third embodiment, the step of optimizing the initial image detection model to obtain the target image detection model includes: minimizing the loss function to optimize the bounding box regression performance of the detection network; when the regression performance meets preset conditions, the target image detection model is obtained.
[0080] It should be noted that the loss function includes width and height loss, and the step of minimizing the loss function includes: minimizing the width and height loss, where the width and height loss is the difference between the width and height of the target box and the prediction box. It can be understood that EIOU further improves CIOU in the design of penalty terms. This loss function contains three core parts: overlap loss, center distance loss, and width and height loss. The overlap loss and center distance loss follow the calculation method in CIOU, while the width and height loss effectively improves the convergence speed by directly minimizing the difference between the width and height of the target box and the prediction box.
[0081] The loss function formula is shown in formula (1):
[0082]
[0083] It should be noted that the preset conditions can be indicators for judging the regression performance of the model. For example, precision (P), recall (R) and mean average precision (mAP) can be used to comprehensively evaluate the model performance. The precision refers to the proportion of correctly predicted positives (TP) to all predicted positives (TP+FP), and the calculation formula is shown in formula (2):
[0084]
[0085] Recall refers to the ratio of correctly predicted positive (TP) to actual positive (TP+FN), and is calculated as shown in formula (3):
[0086]
[0087] AP (Average Precision) represents the area under the PR curve of a certain category in all predicted images (the horizontal axis is Recall and the vertical axis is Precision), and the formula is (4):
[0088]
[0089] mAP50 represents the average accuracy of this type of samples when the IOU threshold of the confusion matrix is 0.5. It reflects the changing trend of the model's precision with the recall rate. The specific formula is formula (5):
[0090]
[0091] And mAP@0.5:0.95 represents the average mAP at different IOU thresholds (from 0.5 to 0.95, with a step size of 0.05).
[0092] In one implementation, based on the above embodiment, the target image detection model can be as follows: Figure 7 As shown in the figure, LSKNet technology is introduced before the final SPPF module to improve the sensitivity to traffic sign targets, and the CA attention mechanism is added to better detect some small targets. The loss function is replaced with EIOU to improve the regression performance of the network bounding box.
[0093] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the traffic sign detection method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0094] This application also provides a traffic sign detection device, please refer to Figure 8 , the traffic sign detection device comprises:
[0095] An image acquisition module 10 is used to acquire a real-time image of a road;
[0096] A target recognition module 20, used for inputting the real-time road image into a target image detection model to obtain a target recognition result, wherein the target image detection model is used for extracting feature information of the image and / or target position information;
[0097] The sign detection module 30 is configured to detect traffic signs based on the target recognition result.
[0098] The traffic sign detection device provided by the present application adopts the traffic sign detection method in the above embodiment, which can solve the technical problem of low detection accuracy of traffic signs. Compared with the prior art, the beneficial effects of the traffic sign detection device provided by the present application are the same as the beneficial effects of the traffic sign detection method provided by the above embodiment, and other technical features in the traffic sign detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0099] The present application provides a traffic sign detection device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the traffic sign detection method in the above-mentioned embodiment one.
[0100] Reference below Fig. 9, which shows a schematic diagram of the structure of a traffic sign detection device suitable for implementing the embodiment of the present application. The traffic sign detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The traffic sign detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Fig. 9 As shown, the traffic sign detection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the traffic sign detection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the traffic sign detection device to communicate with other devices wirelessly or by wire to exchange data. Although the traffic sign detection device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0102] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0103] The traffic sign detection device provided by the present application adopts the traffic sign detection method in the above embodiment, which can solve the technical problem of low detection accuracy of traffic signs. Compared with the prior art, the beneficial effects of the traffic sign detection device provided by the present application are the same as the beneficial effects of the traffic sign detection method provided by the above embodiment, and other technical features in the traffic sign detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0104] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0105] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0106] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the traffic sign detection method in the above-mentioned embodiment.
[0107] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0108] The computer-readable storage medium may be included in the traffic sign detection device; or may exist independently without being assembled into the traffic sign detection device.
[0109] The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the traffic sign detection device, the traffic sign detection device: establishes a grain system model based on grain quantity data, grain cost data, and first time data;
[0110] A tram system model is established based on tram quantity data, electricity consumption data, electricity price data and second time data; a theoretical mathematical model is established based on the grain system model and the tram system model, and the theoretical mathematical model includes an objective function; a multi-fidelity model is determined based on the theoretical mathematical model; the multi-fidelity model is optimized, and the optimal solution of the objective function is confirmed based on the optimized multi-fidelity model, and the tram-grain coupling system is optimized according to the optimal solution.
[0111] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0114] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned traffic sign detection method, and can solve the technical problem of low detection accuracy of traffic signs. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the traffic sign detection method provided by the above-mentioned embodiment, and will not be repeated here.
[0115] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned traffic sign detection method when executed by a processor.
[0116] The computer program product provided by the present application can solve the technical problem of low detection accuracy of traffic signs. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the traffic sign detection method provided by the above embodiment, which will not be repeated here.
[0117] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A traffic sign detection method, It is characterized in that The method includes: Obtain real-time images of roads; Inputting the real-time road image into a target image detection model to obtain a target recognition result, wherein the target image detection model is used to extract feature information of the image and / or target position information; A traffic sign is detected based on the object recognition result.
2. The method according to claim 1, It is characterized in that Before the step of inputting the real-time road image into the target image detection model to obtain the target recognition result, the method includes: Establish an initial image detection model based on road image data and traffic annotated image data; The initial image detection model is optimized to obtain a target image detection model.
3. The method according to claim 2, It is characterized in that The image detection model includes a remote sensing detection module, and the step of optimizing the initial image detection model to obtain a target image detection model includes: Inputting the road image data into a remote sensing detection module, wherein the remote sensing detection module is used to obtain key features of the road image data; Based on the key features of the road image data, the initial image detection model is optimized to obtain a target image detection model.
4. The method according to claim 3, It is characterized in that The image detection model includes an attention mechanism, and the step of optimizing the initial image detection model based on the key features of the road image data to obtain a target image detection model includes: Obtaining an input feature map according to key features of the road image data; Embedding the target position information into the input feature map based on the attention mechanism; Generate an attention map based on the input feature map; Applying the attention map to the input feature map to obtain a new input feature map, wherein the new input feature map is used to enhance attention to the target position; The initial image detection model is optimized according to the new input feature map to obtain a target image detection model.
5. The method according to claim 2, It is characterized in that The step of optimizing the initial image detection model to obtain a target image detection model comprises: Minimize the loss function to optimize the bounding box regression performance of the detection network; When the regression performance meets the preset conditions, the target image detection model is obtained.
6. The method according to claim 5, It is characterized in that The loss function includes width and height loss, and the step of minimizing the loss function includes: Minimize the width and height loss, which is the difference between the width and height of the target box and the predicted box.
7. A traffic sign detection device, It is characterized in that The device comprises: An image acquisition module, used to acquire real-time images of roads; A target recognition module, used for inputting the real-time road image into a target image detection model to obtain a target recognition result, wherein the target image detection model is used for extracting feature information of the image and / or target position information; A sign detection module is used to detect traffic signs based on the target recognition result.
8. A traffic sign detection device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the traffic sign detection method according to any one of claims 1 to 6.
9. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the traffic sign detection method according to any one of claims 1 to 6 are implemented.
10. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the traffic sign detection method according to any one of claims 1 to 6 are implemented.
