Traffic warning method based on artificial intelligence signboard and traffic signboard

By integrating multiple cameras and warning lights on traffic signs and using artificial intelligence for multi-view image processing, the problem of existing traffic signs being unable to achieve active traffic warning is solved and effective safety for pedestrians and non-motorized vehicles is achieved. Early warning improves the ability to identify and respond to traffic safety risks.

CN117649643BActive Publication Date: 2024-09-24SHENZHEN COMPREHENSIVE TRANSPORTATION & MUNICIPAL ENG DESIGN & RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311341489.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2024-09-24
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

Existing traffic signs cannot implement active traffic warning functions and cannot effectively warn pedestrians and non-motor vehicles of traffic safety risks.

Method used

Using artificial intelligence-based traffic signs, equipped with warning lights and multiple cameras, by acquiring multi-view images, performing target detection and multi-view fusion processing, it can determine whether there is a traffic safety risk at the intersection, and light up the warning light when there is a risk. .

Benefits of technology

It realizes the active safety warning function of traffic signs, improves the traffic warning effect, and is suitable for large-scale application and promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117649643B
    Figure CN117649643B
Patent Text Reader

Abstract

The present invention discloses a traffic warning method and a traffic sign based on an artificial intelligence sign. The present invention introduces machine recognition technology into the traffic sign, so that the traffic sign can collect images at different angles at an intersection in real time, and can recognize pedestrians and / or non-motor vehicles in the image in real time, thereby generating a multi-perspective fusion image of the pedestrians and / or non-motor vehicles at the intersection; in this way, the traffic sign can judge whether the pedestrians and / or non-motor vehicles have traffic safety risks according to the multi-perspective fusion image, and when it is judged that there is a safety risk, the warning light on the traffic sign is actively lit to warn the pedestrians and / or non-motor vehicles; thus, the present invention realizes an active safety warning function based on the traffic sign, can greatly improve the traffic warning effect, and is suitable for large-scale application and promotion in the field of traffic warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of traffic warning, and in particular relates to a traffic warning method and a traffic sign based on an artificial intelligence sign. Background Art

[0002] Traffic signs are a type of road facility that uses words or symbols to convey guidance, restrictions, warnings and instructions. Most traffic signs have reflective functions, so that people farther away can see them. They play the role of managing traffic, indicating driving directions and providing traffic prompts, which can ensure smooth roads and driving safety. At the same time, due to their simplicity, clarity and eye-catching advantages, they have been widely used on highways, urban roads and all special roads.

[0003] At present, traffic signs installed at zebra crossings at intersections either have fixed prompts or fixed lit or flashing LED lights to provide traffic warnings. Their functions are single and they cannot realize active traffic warning functions. Therefore, the warning effects on pedestrians and non-motor vehicles are limited. Based on this, how to provide a traffic warning method based on traffic signs to realize active traffic warning functions has become an urgent problem to be solved. Summary of the invention

[0004] The purpose of the present invention is to provide a traffic warning method and a traffic sign based on an artificial intelligence sign, so as to solve the problem that traffic signs in the prior art cannot realize the active traffic warning function.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a traffic warning method based on an artificial intelligence sign is provided, which is applied to an intersection with a traffic sign, wherein the traffic sign is provided with a warning light, a controller and a plurality of cameras with different shooting angles, and the method comprises:

[0007] Obtaining a set of intersection images taken by each camera of the multiple cameras, wherein each intersection image in any one of the multiple intersection image sets is a point cloud image of a continuous frame;

[0008] Performing target detection processing on each intersection image in each intersection image set, and obtaining a pre-selected detection frame and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection frames of the target object, and the target object is a pedestrian or a non-motor vehicle;

[0009] Using the pre-selected detection frames of the target object, a detection frame sequence is formed, wherein the detection frame sequence includes a plurality of detection frame sets, each detection frame set corresponds to a collection time, the plurality of detection frame sets are sequentially sorted in order of collection time from earliest to latest, and any detection frame set includes a plurality of detection frame subsets, and any detection frame subset includes a pre-selected detection frame and a feature map in any intersection image when the target object is at a first target time, and the first target time is the collection time corresponding to any detection frame set;

[0010] For any detection frame subset in the i-th detection frame set in the detection frame sequence, determine the best detection frame in any detection frame subset, so as to form a positioning frame set of the target object at a second target time by using a feature map in each detection frame subset and the obtained multiple best detection frames after determining the best detection frame in all detection frame subsets in the i-th detection frame set, wherein the second target time is a collection time corresponding to the i-th detection frame set;

[0011] Based on the positioning frame set and each intersection image set, performing multi-view fusion processing on the target object to obtain a multi-view fusion image of the target object at a second target moment;

[0012] Add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, thereby obtaining a multi-view fusion image of the target object at different acquisition times, wherein the initial value of i is 1 and n is the total number of detection frame sets;

[0013] Based on the multi-view fusion images of the target object at different acquisition times, determining whether the target object poses a traffic safety risk at the intersection;

[0014] If so, the warning light is turned on to provide a traffic safety warning to the target object based on the warning light.

[0015] Based on the above disclosed content, the present invention provides a traffic sign based on artificial intelligence, wherein the sign is provided with a warning light, a controller and multiple cameras with different camera angles; thus, in actual application, multiple cameras can be used to collect images within different viewing angles at the intersection, thereby obtaining multiple intersection image sets, and the present invention realizes active traffic warning based on the multiple intersection image sets obtained by the above collection, and the specific process is as follows:

[0016] First, the present invention performs target detection on each intersection image in each intersection image set to obtain a pre-selected detection frame of the same target object in each intersection image at the same acquisition time; thus, this step is equivalent to realizing the detection of the same target object in different intersection images at the same time; then, a detection frame sequence is constructed based on the pre-selected detection frame of the aforementioned target object, wherein the detection frame sequence includes a plurality of detection frame sets sorted in sequence according to the acquisition time, each detection frame set includes a plurality of detection frame subsets, and any detection frame subset includes the pre-selected detection frame and feature map in any intersection image of the target object at the acquisition time corresponding to the detection frame set to which it belongs; based on this, the aforementioned steps are equivalent to counting the pre-selected detection frames of the target object in each intersection image corresponding to each acquisition time.

[0017] Next, the present invention determines the best detection frame in each detection frame subset, so that the best positioning frame corresponding to different perspectives of the target object at each acquisition moment can be obtained (for example, if there are 3 images at the first moment, then in each image, the best positioning frame corresponding to each is determined, thereby obtaining 3 best positioning frames); further, the present invention uses the best positioning frames obtained at different acquisition moments and the corresponding feature maps at different acquisition moments, and combines the original intersection image set to generate multi-perspective fusion images of the target object at the intersection at different acquisition moments; finally, based on multiple multi-perspective fusion images, the specific position of the target object at different moments can be determined, thereby, it can be determined whether the target object has a traffic safety risk based on the position, and when there is a traffic safety risk, the warning light is turned on to provide a safety prompt to the target object.

[0018] Through the above design, the present invention introduces machine recognition technology into traffic signs, so that traffic signs can collect images from different angles at intersections in real time, and can identify pedestrians and / or non-motor vehicles in the images in real time, thereby generating multi-perspective fusion images of pedestrians and / or non-motor vehicles at intersections; in this way, traffic signs can judge whether pedestrians and / or non-motor vehicles have traffic safety risks based on the multi-perspective fusion images, and when it is judged that there are safety risks, actively light up the warning lights on the traffic signs to warn pedestrians and / or non-motor vehicles; thus, the present invention realizes an active safety warning function based on traffic signs, can greatly improve the traffic warning effect, and is suitable for large-scale application and promotion in the field of traffic warning.

[0019] In a possible design, target detection processing is performed on each intersection image in each intersection image set to obtain a pre-selected detection box of the same target object in the intersection images in each intersection image set at the same acquisition time, including:

[0020] Acquire a 3D object detection network, wherein the 3D object detection network comprises a fast single-frame detection network;

[0021] Using the fast single-frame detection network in the 3D target detection network, target detection processing is performed on each intersection image in each intersection image set, so as to obtain, after the target detection processing, a pre-selected detection box and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set;

[0022] Correspondingly, for any detection box subset in the i-th detection box set in the detection box sequence, determining the best detection box in any detection box subset includes:

[0023] Using the fast single-frame detection network of the 3D object detection network, from any subset of detection boxes in the i-th detection box set, determine the best detection box in any detection box subset.

[0024] In one possible design, the 3D object detection network further includes: a multi-view fusion network, wherein before acquiring a set of intersection images taken by each of the multiple cameras, the method further includes:

[0025] Acquire a training data set, wherein the training data set includes a set of sample intersection images taken by multiple cameras, wherein each set of sample intersection images includes a plurality of sample intersection images and label data of each sample intersection image, and the label data of any sample intersection image is a real detection frame of a sample target in any sample intersection image;

[0026] An initial 3D object detection network is obtained, and the training data set is used as the input of the fast single-frame detection network in the initial 3D object detection network, and the multi-view sample fusion images of the sample target at different acquisition times are used as the output of the multi-view fusion network in the initial 3D object detection network to train the initial 3D object detection network, so as to obtain the 3D object detection network after the training is completed, wherein the output of the fast single-frame detection network and the sample intersection image set are used as the input of the multi-view fusion network, and the output of the fast single-frame detection network is the predicted detection box and feature map of the sample target in each sample intersection image.

[0027] In a possible design, when training the initial 3D object detection network, the predicted detection frame of the sample object in any sample intersection image is obtained in the following manner;

[0028] Inputting any of the sample intersection images into a fast single-frame detection network for target detection processing to obtain a plurality of pre-selected sample detection frames of the sample target in any of the sample intersection images;

[0029] Based on the multiple pre-selected sample detection frames and the real detection frame of any sample intersection image, and using the Hungarian matching algorithm, a Hungarian matching score map between the multiple pre-selected sample detection frames and the real detection frame is constructed, wherein the Hungarian matching score map includes multiple confidence levels, and each confidence level corresponds to a pre-selected sample detection frame;

[0030] The maximum pooling non-maximum suppression algorithm is used to determine the local peak on the Hungarian matching score map, and the pre-selected sample detection box corresponding to the local peak is used as the predicted detection box of the sample target in any sample intersection image.

[0031] In one possible design, the loss function of the initial 3D object detection network is:

[0032] L=L fsd +L fmvaa +L cv (1)

[0033] In the above formula (1), L represents the loss function of the initial 3D object detection network, L fsd represents the loss function of the fast single-frame detection network, L mvaa represents the multi-view prediction loss function, L cv represents the cross-view loss function.

[0034] In a possible design, the loss function of the fast single-frame detection network, the multi-view prediction loss function, and the cross-view loss function have the same function construction and all include a target loss term and a regression loss term;

[0035] The loss function of the fast single-frame detection network is calculated using the following formula (2):

[0036]

[0037] In the above formula (2), C represents the set of all pre-selected sample detection boxes of the sample target in any sample intersection image when the sample intersection image is used as the input of the initial 3D object detection network. represents the target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image, R represents a set of associated detection boxes, wherein the associated detection box is a pre-selected sample detection box of the sample target associated with its corresponding real detection box in any sample intersection image, Represents the regression loss term of the j-th associated detection box of the sample target in any of the sample intersection images, and the associated detection box is obtained according to the Hungarian matching algorithm.

[0038] In a possible design, the following formula (3) is used to calculate the target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image;

[0039]

[0040] In the above formula (3), N pos represents the positive sample set, N neg represents a negative sample set, wherein the positive sample set is a set of pre-selected detection boxes of the sample target belonging to positive samples in any sample intersection image, and the negative sample set is a set of pre-selected detection boxes of the sample target belonging to negative samples in any sample intersection image, p k is the probability that the kth pre-selected sample detection box is a positive sample, the positive sample set and the negative sample set are obtained by the Hungarian matching algorithm, and p k is obtained based on the Hungarian matching score graph.

[0041] In a second aspect, a traffic sign is provided, wherein the traffic sign is arranged at an intersection, and the traffic sign comprises:

[0042] A warning light and multiple cameras, wherein the multiple cameras are used to collect images of the intersection to obtain multiple intersection image sets;

[0043] A controller, used to obtain a set of intersection images taken by each of the multiple cameras, wherein each intersection image in any one of the multiple intersection image sets is a point cloud image of a continuous frame;

[0044] A controller is used to perform target detection processing on each intersection image in each intersection image set to obtain a pre-selected detection frame and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection frames of the target object, and the target object is a pedestrian or a non-motor vehicle;

[0045] A controller, configured to use the pre-selected detection frames of the target object to form a detection frame sequence, wherein the detection frame sequence includes a plurality of detection frame sets, each detection frame set corresponds to a collection time, the plurality of detection frame sets are sequentially sorted in order of collection time from earliest to latest, and any detection frame set includes a plurality of detection frame subsets, and any detection frame subset includes a pre-selected detection frame and a feature map in any intersection image when the target object is at a first target time, and the first target time is the collection time corresponding to any detection frame set;

[0046] A controller, configured to determine, for any detection frame subset in the i-th detection frame set in the detection frame sequence, the best detection frame in the any detection frame subset, so as to form a positioning frame set of the target object at a second target time by using a feature map in each detection frame subset and the obtained multiple best detection frames after determining the best detection frame in all detection frame subsets in the i-th detection frame set, wherein the second target time is a collection time corresponding to the i-th detection frame set;

[0047] A controller, configured to perform multi-view fusion processing on the target object based on the positioning frame set and each intersection image set, to obtain a multi-view fusion image of the target object at a second target moment;

[0048] A controller, configured to add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, thereby obtaining a multi-view fusion image of the target object at different acquisition times, wherein the initial value of i is 1, and n is the total number of detection frame sets;

[0049] A controller, configured to determine whether the target object poses a traffic safety risk at the intersection based on multi-view fusion images of the target object at different acquisition moments;

[0050] The controller is further used to light up the warning light when the target object presents a traffic safety risk at the intersection, so as to provide a traffic safety warning to the target object based on the warning light.

[0051] In the third aspect, a traffic warning device based on an artificial intelligence signboard is provided. Taking the device as an electronic device as an example, it includes a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the traffic warning method based on the artificial intelligence signboard as in the first aspect or any possible design in the first aspect.

[0052] In a fourth aspect, a storage medium is provided, on which instructions are stored. When the instructions are executed on a computer, the traffic warning method based on the artificial intelligence signboard as described in the first aspect or any possible design of the first aspect is executed.

[0053] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, causes the computer to execute the traffic warning method based on artificial intelligence signs as described in the first aspect or any possible design of the first aspect.

[0054] Beneficial effects:

[0055] (1) The present invention introduces machine recognition technology into traffic signs, so that traffic signs can collect images from different angles at intersections in real time, and can identify pedestrians and / or non-motor vehicles in the images in real time, thereby generating multi-perspective fusion images of pedestrians and / or non-motor vehicles at intersections; in this way, traffic signs can judge whether pedestrians and / or non-motor vehicles pose a traffic safety risk based on the multi-perspective fusion images, and actively light up the warning lights on the traffic signs to warn pedestrians and / or non-motor vehicles when it is judged that there is a safety risk; thus, the present invention realizes an active safety warning function based on traffic signs, which can greatly improve the traffic warning effect and is suitable for large-scale application and promotion in the field of traffic warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of the steps of a traffic warning method based on an artificial intelligence sign provided in an embodiment of the present invention;

[0057] Figure 2 A schematic diagram of the installation structure of a traffic sign provided by an embodiment of the present invention;

[0058] Figure 3 A schematic diagram of the structure of a traffic light provided by an embodiment of the present invention;

[0059] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0061] It should be understood that although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, a first unit can be referred to as a second unit, and similarly, a second unit can be referred to as a first unit without departing from the scope of the exemplary embodiments of the present invention.

[0062] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this article describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.

[0063] Example:

[0064] See also Figure 1 As shown, the traffic warning method based on artificial intelligence signs provided in this embodiment is applied to intersections with traffic signs, that is, based on the traffic signs, active traffic safety warnings for pedestrians and / or non-motor vehicles at the intersection are realized; wherein, for example, the aforementioned traffic signs may be but are not limited to being provided with warning lights, controllers and multiple cameras with different shooting angles. In this way, in specific applications, multiple cameras collect images within different viewing angles at the intersection, and the controller realizes safety warnings for pedestrians and / or non-motor vehicles based on the images collected by the aforementioned cameras; in this embodiment, the camera may be but is not limited to using an RGB-D camera, based on which point cloud images at different viewing angles at the intersection can be collected, thereby providing a data basis for safety warnings for pedestrians and non-motor vehicles in subsequent images.

[0065] Optionally, the aforementioned method may be, but is not limited to, run on the controller side. It can be understood that the aforementioned execution entity does not constitute a limitation on the embodiments of the present application. Accordingly, the operation steps of the method may be, but are not limited to, as shown in the following steps S1 to S8.

[0066] S1. Obtaining a set of intersection images captured by each camera in a plurality of cameras, wherein each intersection image in any one of the plurality of intersection image sets is a point cloud image of a continuous frame; in this embodiment, for example, but not limited to, installing a camera on the front and back of a traffic sign, so that the camera's shooting range covers the front and rear areas of the traffic sign; see Figure 2 As shown, a traffic sign can be set at each end of the zebra crossing at the intersection, and cameras can be set on the two traffic signs using the above-mentioned installation method, wherein, see Figure 2 As shown, Figure 2f1 and f2 are the fields of view of the front cameras on the two traffic signs, and b1 and b2 are the fields of view of the back cameras on the two traffic signs. Based on this, each camera monitors the area it is responsible for respectively, so that there will be no detection conflict and safety accidents caused by information loss due to blind spots in the camera's field of view can be effectively avoided. Moreover, b1 and b2 can effectively extend the detection range, so that non-motor vehicles and pedestrians can be detected one step ahead based on machine recognition technology to avoid the occurrence of safety accidents. Of course, the installation method of traffic signs and cameras can be specifically set according to actual use, and is not limited to the aforementioned examples.

[0067] Furthermore, in this embodiment, each camera can send a video stream to the controller, and the controller processes each received video stream frame by frame, so that a set of intersection images captured by each camera can be obtained.

[0068] After obtaining the intersection image set taken by each camera, an active traffic safety warning can be carried out; in this embodiment, target detection is first performed on the images in each intersection image set to identify the same pedestrian and / or non-motor vehicle in each intersection image at the same time, and then, based on the aforementioned intersection image sets, a multi-perspective fusion image of the same pedestrian and / or non-motor vehicle at the intersection at any time is obtained; in this way, by adopting the aforementioned operation, a multi-perspective fusion image of each pedestrian and / or non-motor vehicle at the intersection at different times can be obtained; based on this, for a pedestrian, according to the multi-perspective fusion image of the pedestrian at different times, the position of the pedestrian at different times can be known, and according to the time when it is at different positions, its residence time and / or travel speed at the intersection can be calculated; therefore, this embodiment performs a safety warning based on the residence time or travel speed of the pedestrian at the intersection; of course, the same is true for non-motor vehicles, and its principle will not be repeated.

[0069] In specific applications, this embodiment constructs a 3D target detection network to realize target detection in images of each intersection and subsequent fusion processing of images of the target object at different perspectives. Among them, the example 3D target detection network can include but is not limited to: a fast single-frame detection network and a multi-perspective fusion network, and target detection is realized based on the aforementioned fast single-frame detection network, and fusion processing of images of the target object at different perspectives is realized based on the aforementioned multi-perspective fusion network.

[0070] Optionally, before describing the following target detection on intersection images in each intersection image set and multi-perspective fusion processing of each target object in the intersection images, the present embodiment first describes the specific training process of the aforementioned 3D target detection network, so that after the training is completed, the 3D target detection network can be directly used to process subsequent images.

[0071] In this embodiment, the training process of the aforementioned 3D object detection network may include, but is not limited to, the following steps S01 and S02.

[0072] S01. Obtain a training data set, wherein the training data set includes a set of sample intersection images taken by multiple cameras, wherein each sample intersection image set contains a number of sample intersection images and label data of each sample intersection image, and the label data of any sample intersection image is a real detection box of a sample target in any sample intersection image.

[0073] S02. Obtain an initial 3D target detection network, and use the training data set as the input of the fast single-frame detection network in the initial 3D target detection network, and use the multi-view sample fusion images of the sample target at different acquisition times as the output of the multi-view fusion network in the initial 3D target detection network to train the initial 3D target detection network, so as to obtain the 3D target detection network after the training is completed, wherein the output of the fast single-frame detection network and the sample intersection image set are used as the input of the multi-view fusion network, and the output of the fast single-frame detection network is the predicted detection box and feature map of the sample target in each sample intersection image; in this embodiment, the initial 3D target detection network is an untrained network, and the multi-view fusion network can be, but is not limited to, a cross-attention network; in this way, through the aforementioned step S02, a 3D target detection network that directly outputs a multi-view fusion image can be obtained.

[0074] Furthermore, in this embodiment, when training the initial 3D object detection network, the predicted detection frame of the sample object in any sample intersection image can be obtained by, for example but not limited to, the following method.

[0075] S02a. Inputting any of the sample intersection images into a fast single-frame detection network for target detection processing to obtain a plurality of pre-selected sample detection frames of the sample target in any of the sample intersection images.

[0076] S02b. Based on the multiple pre-selected sample detection frames and the real detection frames of any sample intersection image, and using the Hungarian matching algorithm, a Hungarian matching score map between the multiple pre-selected sample detection frames and the real detection frames is constructed, wherein the Hungarian matching score map includes multiple confidence levels, and each confidence level corresponds to a pre-selected sample detection frame; in this embodiment, the specific process of step S02b is: first calculate the IOU ratio (i.e., intersection over union ratio) between each pre-selected sample detection frame and the real detection frame, and then map the value of each IOU ratio to a heat map to obtain a Hungarian matching score map.

[0077] After obtaining the Hungarian matching score map, in order to improve the calculation speed, this embodiment uses the maximum pooling non-maximum suppression algorithm to determine the optimal detection box (i.e., the predicted detection box) of the sample target in any sample intersection image based on the Hungarian matching score map, wherein the specific process is shown in the following step S02c.

[0078] S02c. Using the maximum pooling non-maximum suppression algorithm, the local peak on the Hungarian matching score map is determined, and the pre-selected sample detection box corresponding to the local peak is used as the predicted detection box of the sample target in any sample intersection image; in this embodiment, non-maximum suppression (NMS) is usually used for the detection results generated by the last layer of the post-processing network (i.e., the fast single-frame detector) to eliminate redundancy. It first outputs the box with the highest score, and then suppresses all boxes overlapping with the box, and repeats this process until all boxes are processed; however, the sequential nature of the algorithm makes the actual running speed slower when there are a large number of predictions. Therefore, this example accelerates this operation through maximum pooling on the basis of non-maximum suppression, that is, by first calculating the score and then directly finding the local maximum to determine the optimal detection box, that is, finding the local peak on the score map, and the pre-selected detection box corresponding to the local peak is retained as the prediction result, while all other positions are suppressed. Through the above-mentioned operation, the processing speed can be greatly improved, and a high degree of parallelization can be achieved. When processing about 200k predictions, this method is up to 6 times faster than conventional NMS.

[0079] Therefore, through the aforementioned steps S02a to S02c, the predicted detection frame of the sample target in each sample intersection image can be determined during each training. Then, the predicted detection frame and feature map of the sample target and the sample intersection image set are used as inputs of the multi-view fusion network to complete the training of the entire network.

[0080] In a specific implementation, a loss function of the initial 3D object detection network during the training process is provided below, which may be, but is not limited to, as shown in the following formula (1).

[0081] L=L fsd +L fmvaa +L cv (1)

[0082] In the above formula (1), L represents the loss function of the initial 3D object detection network, L fsd represents the loss function of the fast single-frame detection network, L mvaa represents the multi-view prediction loss function, L cv represents the cross-view loss function.

[0083] In this embodiment, the loss function of the fast single-frame detection network, the multi-view prediction loss function and the cross-view loss function have the same function structure and all include target loss terms and regression loss terms. The following takes the loss function of the fast single-frame detection network as an example to specifically explain its calculation process.

[0084] Among them, the loss function of the fast single-frame detection network described in the example can be calculated using the following formula (2):

[0085]

[0086] In the above formula (2), C represents the set of all pre-selected sample detection boxes of the sample target in any sample intersection image when the sample intersection image is used as the input of the initial 3D object detection network. represents the target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image, R represents a set of associated detection boxes, wherein the associated detection box is a pre-selected sample detection box of the sample target associated with its corresponding real detection box in any sample intersection image, It represents the regression loss term of the j-th associated detection box of the sample target in any of the sample intersection images, and the associated detection box is obtained according to the Hungarian matching algorithm. In specific applications, the pre-selected detection box related to the real detection box is determined by the Hungarian matching algorithm, which is a commonly used technology in network training, and its principle will not be repeated here.

[0087] Optionally, the following formula (3) may be used, for example but not limited to, to calculate the target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image.

[0088]

[0089] In the above formula (3), N pos represents the positive sample set, N neg represents a negative sample set, wherein the positive sample set is a set of pre-selected detection boxes of the sample target belonging to positive samples in any sample intersection image, and the negative sample set is a set of pre-selected detection boxes of the sample target belonging to negative samples in any sample intersection image, p k is the probability that the kth pre-selected sample detection box is a positive sample, the positive sample set and the negative sample set are obtained by the Hungarian matching algorithm, and p k is obtained according to the Hungarian matching score map; in this embodiment, the network uses the Hungarian matching algorithm during the training process to distinguish whether the pre-selected detection box is a positive sample or a negative sample. This is a common technology for network training, and its principle will not be repeated; at the same time, pk It can be, but is not limited to, the score of the k-th pre-selected sample detection box on the Hungarian matching score map.

[0090] In addition, in this embodiment, the regression loss term of the j-th associated detection box of the sample target in any sample intersection image can be calculated by, but not limited to, the following formula (4).

[0091]

[0092] In the above formula (4), SmoothL1 represents the smoothing loss function, δ j represents the center position of the real detection box, δ′ j Represents the center position of the jth associated detection box.

[0093] Therefore, the loss function of the fast single-frame detection network can be calculated through the above formulas (2)-(4); similarly, since the function construction of the other two loss functions is the same as the loss function of the fast single-frame detection network, only the values ​​of the parameters substituted into the above formulas (2)-(4) are different; based on this, the multi-view prediction loss function and the cross-view loss function can also be obtained by using the above formulas (2)-(4).

[0094] Therefore, through the aforementioned detailed explanation of the training process of the initial 3D target detection network, a neural network that can directly realize target detection and multi-view fusion processing can be obtained. Based on this, the target detection of intersection images in each intersection image set and the multi-view fusion of subsequent target object corresponding images can be realized based on this neural network.

[0095] Optionally, the process of implementing target detection based on the aforementioned 3D target detection network may be but is not limited to the process shown in the following step S2.

[0096] S2. Perform target detection processing on each intersection image in each intersection image set to obtain pre-selected detection boxes and feature maps of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection boxes of the target object, and the target object is a pedestrian or a non-motor vehicle; in this embodiment, a fast single-frame detection network in the 3D target detection network is used to perform target detection processing on each intersection image in each intersection image set, so as to obtain pre-selected detection boxes and feature maps of the same target object in the intersection images at the same acquisition time in each intersection image set after the target detection processing.

[0097] In this embodiment, the fast single-frame detector is constructed based on the Point Pillars architecture and dynamic voxelization, which is the basic network architecture for object detection in point cloud images, and mainly includes three parts: (1) Pillar Feature Net: converts the input point cloud into a sparse Pseudo image; (2) Backbone (backbone network, which is a CNN network): used to process the Pseudo image to obtain high-level features; (3) Detection Head, used to detect and regress the 3D box, output the predicted detection box and the corresponding feature map; specifically, it first divides the 3D space (i.e., the point cloud image) into equally divided pillars, which are voxels of infinite height, and each point in the point cloud image is assigned to a pillar, and then, uses the Pillar Feature Net to extract the high-level features of the Pseudo image. Net extracts features from each pillar, generates a 2D feature representation of the entire scene, and processes it through the CNN backbone network. In this way, each position of the final layer of the network will generate a bounding box prediction and feature map relative to the center of the corresponding pillar. Based on this, the aforementioned fast single-frame detector can be used to realize the detection of bounding boxes of different target objects in each intersection image. For the same target object in different intersection images, it is realized based on the CNN backbone network, which is a commonly used neural network for target detection, and the principle will not be repeated here.

[0098] The following is an example to illustrate the aforementioned step S2. Assume that there are two intersection image sets, namely the front intersection image set and the back intersection image set of the traffic sign, and the two intersection image sets each contain three intersection images (the images in the front intersection image set are A1, A2 and A3, and the images in the back intersection image set are B1, B2 and B3, and the acquisition time corresponding to the front intersection image set and the back intersection image set are both 3s). Then, after step S2, the pre-selected detection box of the same target object in the two intersection images at the first second can be obtained, such as the pre-selected detection box and feature map of pedestrian A in A1 and B1; similarly, for the second second, the pre-selected detection box and feature map of pedestrian A in A2 and B2 are obtained. ; For the third second, it is the pre-selected detection box and feature map of pedestrian A in A3 and B3; in specific applications, in the first second, pedestrian A may only exist in A1, and the pre-selected detection box and feature map in B1 are empty, and in the second second, it may exist in B2 but not in A2; in the third second, it may exist in B3; in this way, based on the above operations, it is equivalent to obtaining the pre-selected detection box and feature map of pedestrian A in the images of each intersection at each acquisition moment; and based on the pre-selected detection box and feature map of pedestrian A in the intersection images at different times, its image fusion at different perspectives can be realized; in addition, the target detection principle of other target objects is the same as the above example, which will not be repeated here.

[0099] Therefore, based on the fast single-frame detector in the aforementioned 3D object detection network, the detection of different target objects in each intersection image set can be completed to obtain the pre-selected detection box and feature map of the same target object in each intersection image at the same time.

[0100] After obtaining the pre-selected detection frames of the target object in the images of each intersection at the same acquisition time, it is necessary to determine the best detection frame so as to perform image fusion on the multi-view images of the target object. In this embodiment, the process of determining the best detection frame may be but is not limited to the following steps S3 and S4.

[0101] S3. Utilize the pre-selected detection frame of the target object to form a detection frame sequence, wherein the detection frame sequence includes several detection frame sets, each detection frame set corresponds to a collection moment, and the several detection frame sets are sorted in order from earliest to latest collection moment, and any detection frame set contains multiple detection frame subsets, and any detection frame subset contains the pre-selected detection frame and feature map in any intersection image when the target object is at a first target moment, and the first target moment is the collection moment corresponding to any detection frame set.

[0102] In this embodiment, based on the above examples, step S3 is described:

[0103] There are two intersection image sets mentioned above, each of which includes 3 images. Then, the detection frame sequence includes three detection frame sets, and the collection times corresponding to the three detection frame sets are the first second, the second second and the third second respectively. For the first detection frame set, it includes 2 detection frame subsets (assuming they are F1 and F2). Specifically, F1 includes all the pre-selected detection frames of pedestrian A in intersection image A1, and F2 includes all the pre-selected detection frames of pedestrian A in intersection image B1. Similarly, the two detection frame subsets in the second detection frame set include all the pre-selected detection frames of pedestrian A in intersection image A2, and pedestrian all pre-selected detection frames of pedestrian A in intersection image B2; of course, the same is true for the two detection frame subsets in the third detection frame set, that is, they respectively include all pre-selected detection frames of pedestrian A in intersection image A3, and all pre-selected detection frames of pedestrian A in intersection image B3; based on this, it is equivalent to counting all pre-selected detection frames of pedestrian A in each intersection image at the first second; all pre-selected detection frames in each intersection image at the second second; and all pre-selected detection frames in each intersection image at the third second; in this embodiment, the construction process of the detection frame sequences of the remaining target objects is the same as the above example, and will not be repeated here.

[0104] After obtaining the detection frame sequence of the target object, the best detection frame of the target object at the same time and corresponding to each intersection image can be selected, so as to perform multi-view fusion based on the best detection frame and the feature map of the target object in each intersection image, wherein the above process can be but is not limited to the following steps S4, S5 and S6.

[0105] S4. For any detection frame subset in the i-th detection frame set in the detection frame sequence, determine the best detection frame in any detection frame subset, so that after determining the best detection frame in all detection frame subsets in the i-th detection frame set, use the feature map in each detection frame subset and the obtained multiple best detection frames to form a positioning frame set of the target object at the second target time, wherein the second target time is the acquisition time corresponding to the i-th detection frame set; in this embodiment, the example also uses the fast single-frame detection network of the 3D object detection network to determine the best detection frame in any detection frame subset in the i-th detection frame set; for example, for the first detection frame subset in the aforementioned first detection frame set, it is equivalent to selecting an optimal detection frame from all pre-selected detection frames of pedestrian A in the intersection image A1 as the best detection frame, so that for the first detection frame set, it can obtain 2 best detection frames; of course, the determination process of the best detection frame of each detection frame subset in the remaining detection frame sets is consistent with the aforementioned example, and will not be repeated here.

[0106] After obtaining the best detection frame in each detection frame subset in the i-th detection frame set, combined with its corresponding feature map, the positioning frame set of the target object at the second moment can be formed; similarly, it is explained based on the above example:

[0107] For the first detection frame set of pedestrian A, there are two corresponding optimal detection frames (if there is no target object in B1, then the optimal detection frame in B1 is empty). At the same time, combined with the feature map of the target object in A1 and the feature map in B1, the positioning frame set of pedestrian A at the first second can be formed; of course, the construction process of the positioning frame set of the target object at the other second moments is the same as the above example and will not be repeated here.

[0108] After obtaining the positioning frame set of the i-th detection frame set, each intersection image set can be combined to achieve multi-perspective fusion of the target object at the second target moment; wherein the fusion process can be but is not limited to as shown in the following step S5.

[0109] S5. Based on the positioning frame set and each intersection image set, the target object is subjected to multi-perspective fusion processing to obtain a multi-perspective fusion image of the target object at the second target moment; in specific applications, for example, but not limited to, a multi-perspective fusion network in a 3D target detection network is used to implement multi-perspective fusion processing of the target object, thereby obtaining a multi-perspective fusion image of the target object at the second target moment.

[0110] In this way, based on the aforementioned steps S4 and S5, a multi-perspective fusion image of the target object at the second target moment (such as the fusion image at the first second) can be obtained; then, the aforementioned process is continuously repeated to obtain a multi-perspective fusion image of the target object at the remaining second target moments, wherein the loop process can be but is not limited to as shown in the following step S6.

[0111] S6. Add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, and obtain the multi-perspective fusion image of the target object at different acquisition times, wherein the initial value of i is 1, and n is the total number of detection frame sets; in this embodiment, based on the above example, the multi-perspective fusion image of the target object at the intersection at the first second, the second second and the third second can be obtained; then, based on the above three multi-perspective fusion images, the active traffic safety warning of the target object can be realized; wherein the warning process can be but is not limited to the following step S7.

[0112] S7. Based on the multi-perspective fusion images of the target object at different acquisition times, determine whether the target object presents a traffic safety risk at the intersection; in the present embodiment, it has been explained above that the intersection image is a point cloud image, therefore, the image fused in step S6 is: a multi-perspective fusion point cloud image, therefore, based on the multi-perspective fusion images of the target object at different acquisition times, the position of the target object at different acquisition times can be obtained; then, based on the position of the target object, a safety warning can be implemented.

[0113] Optionally, since the shooting range of each camera is fixed, the image layout obtained by fusion is the same. Therefore, two calibration points can be set in advance in the multi-view sample fusion image; then, after obtaining the multi-view fusion image of the target object in step S7, the two calibration points in the multi-view fusion image of the target object are determined through image recognition; then, the time when the target object passes the two calibration points is obtained; then, based on the time when the target object passes the two calibration points and the distance between the two calibration points, the speed of the target object between the two calibration points is calculated. If the speed is greater than the preset speed, it can be determined that there is a traffic safety risk; or if the time when the target object is between the two calibration points is less than the preset time (that is, the calibrated target object does not stop in front of the traffic sign), it can also be determined that there is a safety risk.

[0114] Furthermore, the time of passing the calibration point can be obtained in the following way: for example, in the multi-view fusion image at the 1st second, the target object is before the first calibration point, which means that it has not passed the first calibration point; in the multi-view fusion image at the 2nd second, it is after the first calibration point. In this way, it means that it has passed the first calibration point. The acquisition moment of the multi-view fusion image corresponding to the 2nd second can be used as the time of passing the first calibration point. Similarly, the time of passing the second calibration point can also be determined by the aforementioned method, which will not be repeated here.

[0115] When it is determined based on step S7 that the target object has a traffic safety risk, the controller on the traffic sign can control the warning light to light up to alert the target object, wherein the warning process can be but is not limited to as shown in the following step S8.

[0116] S8. If yes, light up the warning light to issue a traffic safety warning to the target object based on the warning light; in this embodiment, the warning light can be controlled to flash at a preset frequency but is not limited to it. At the same time, the warning light can use yellow light; of course, the lighting method can be specifically set according to actual use, and is not limited to the above examples.

[0117] Therefore, through the traffic warning method based on artificial intelligence signs described in detail in the aforementioned steps S1 to S8, the present invention introduces machine recognition technology into traffic signs, so that traffic signs can collect images from different angles at intersections in real time, and can identify pedestrians and / or non-motor vehicles in the images in real time, thereby generating multi-perspective fusion images of pedestrians and / or non-motor vehicles at intersections; in this way, traffic signs can judge whether pedestrians and / or non-motor vehicles have traffic safety risks based on the multi-perspective fusion images, and when it is judged that there are safety risks, actively light up the warning lights on the traffic signs to warn pedestrians and / or non-motor vehicles; thus, the present invention realizes an active safety warning function based on traffic signs, can greatly improve the traffic warning effect, and is suitable for large-scale application and promotion in the field of traffic warning.

[0118] like Figure 3 As shown, the second aspect of this embodiment provides a hardware device for implementing the traffic warning method based on artificial intelligence signs described in the first aspect of the embodiment, taking the device as a traffic sign as an example, including:

[0119] Warning lights and multiple cameras, wherein the multiple cameras are used to collect intersection images to obtain multiple intersection image sets.

[0120] The controller is used to obtain a set of intersection images taken by each camera among multiple cameras, wherein each intersection image in any intersection image set among the multiple intersection image sets is a point cloud image of continuous frames.

[0121] The controller is used to perform target detection processing on each intersection image in each intersection image set to obtain a pre-selected detection frame and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection frames of the target object, and the target object is a pedestrian or a non-motor vehicle.

[0122] A controller is used to use the pre-selected detection frame of the target object to form a detection frame sequence, wherein the detection frame sequence includes a plurality of detection frame sets, each detection frame set corresponds to a collection time, and the plurality of detection frame sets are sorted in order from the earliest to the latest collection time, and any detection frame set contains a plurality of detection frame subsets, and any detection frame subset contains the pre-selected detection frame and feature map in any intersection image when the target object is at a first target time, and the first target time is the collection time corresponding to any detection frame set.

[0123] A controller is used to determine the best detection frame in any detection frame subset within the i-th detection frame set in the detection frame sequence, so as to form a positioning frame set of the target object at a second target moment by using a feature map in each detection frame subset and the obtained multiple best detection frames after determining the best detection frame in all detection frame subsets within the i-th detection frame set, wherein the second target moment is a collection moment corresponding to the i-th detection frame set.

[0124] The controller is used to perform multi-view fusion processing on the target object based on the positioning frame set and each intersection image set to obtain a multi-view fusion image of the target object at a second target moment.

[0125] The controller is used to add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, thereby obtaining a multi-view fusion image of the target object at different acquisition times, wherein the initial value of i is 1 and n is the total number of detection frame sets.

[0126] The controller is used to determine whether the target object poses a traffic safety risk at the intersection based on the multi-view fusion images of the target object at different acquisition moments.

[0127] The controller is further used to light up the warning light when the target object presents a traffic safety risk at the intersection, so as to provide a traffic safety warning to the target object based on the warning light.

[0128] The working process, working details and technical effects of the traffic sign provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0129] like Figure 4 As shown, the third aspect of this embodiment provides another traffic warning device based on artificial intelligence signs. Taking the device as an electronic device as an example, it includes: a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the traffic warning method based on artificial intelligence signs as described in the first aspect of the embodiment.

[0130] For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). At the same time, the processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0131] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RISC) microprocessor, an X86 architecture processor, or a processor with an integrated embedded neural network processing unit (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (a low-power local area network protocol based on the IEEE802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver and / or a 5G transceiver, etc. In addition, the device may also include, but is not limited to, a power module, a display screen, and other necessary components.

[0132] The working process, working details and technical effects of the electronic device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0133] The fourth aspect of this embodiment provides a storage medium that stores instructions for the traffic warning method based on artificial intelligence signs as described in the first aspect of the embodiment, that is, the storage medium stores instructions, and when the instructions are run on a computer, the traffic warning method based on artificial intelligence signs as described in the first aspect of the embodiment is executed.

[0134] The storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0135] The working process, working details and technical effects of the storage medium provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0136] The fifth aspect of this embodiment provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the traffic warning method based on artificial intelligence signs as described in the first aspect of the embodiment, wherein the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0137] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A traffic warning method based on artificial intelligence signboards, characterized in that: The method is applied to an intersection with a traffic sign, wherein the traffic sign is provided with a warning light, a controller and a plurality of cameras with different shooting angles, and the method comprises: Obtaining a set of intersection images taken by each camera of the multiple cameras, wherein each intersection image in any one of the multiple intersection image sets is a point cloud image of a continuous frame; Performing target detection processing on each intersection image in each intersection image set, and obtaining a pre-selected detection frame and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection frames of the target object, and the target object is a pedestrian or a non-motor vehicle; Using the pre-selected detection frames of the target object, a detection frame sequence is formed, wherein the detection frame sequence includes a plurality of detection frame sets, each detection frame set corresponds to a collection time, the plurality of detection frame sets are sequentially sorted in order of collection time from earliest to latest, and any detection frame set includes a plurality of detection frame subsets, and any detection frame subset includes a pre-selected detection frame and a feature map in any intersection image when the target object is at a first target time, and the first target time is the collection time corresponding to any detection frame set; For any detection frame subset in the i-th detection frame set in the detection frame sequence, determine the best detection frame in any detection frame subset, so as to form a positioning frame set of the target object at a second target time by using a feature map in each detection frame subset and the obtained multiple best detection frames after determining the best detection frame in all detection frame subsets in the i-th detection frame set, wherein the second target time is a collection time corresponding to the i-th detection frame set; Based on the positioning frame set and each intersection image set, performing multi-view fusion processing on the target object to obtain a multi-view fusion image of the target object at a second target moment; Add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, thereby obtaining a multi-view fusion image of the target object at different acquisition times, wherein the initial value of i is 1 and n is the total number of detection frame sets; Based on the multi-view fusion images of the target object at different acquisition times, determining whether the target object poses a traffic safety risk at the intersection; If yes, lighting the warning light to provide a traffic safety warning to the target object based on the warning light; Based on the multi-view fusion images of the target object at different acquisition times, judging whether the target object presents a traffic safety risk at the intersection includes: Perform image recognition on the multi-view fusion image to obtain two calibration points in the multi-view fusion image; Obtaining the time when the target object passes through the two calibration points, and calculating the speed of the target object between the two calibration points based on the time when the target object passes through the two calibration points and the distance between the two calibration points; If the speed is greater than a preset speed, or the time between the target object passing two calibration points is less than a preset time, it is determined that the target object poses a traffic safety risk at the intersection.

2. The method according to claim 1, characterized in that: Performing target detection processing on each intersection image in each intersection image set, obtaining a pre-selected detection frame of the same target object in the intersection images at the same acquisition time in each intersection image set, including: Acquire a 3D object detection network, wherein the 3D object detection network comprises a fast single-frame detection network; Using the fast single-frame detection network in the 3D target detection network, target detection processing is performed on each intersection image in each intersection image set, so as to obtain, after the target detection processing, a pre-selected detection box and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set; Correspondingly, for any detection box subset in the i-th detection box set in the detection box sequence, determining the best detection box in any detection box subset includes: Using the fast single-frame detection network of the 3D object detection network, from any subset of detection boxes in the i-th detection box set, determine the best detection box in any detection box subset.

3. The method according to claim 2, characterized in that The 3D object detection network further includes: a multi-view fusion network, wherein before acquiring a set of intersection images taken by each of the multiple cameras, the method further includes: Acquire a training data set, wherein the training data set includes a set of sample intersection images taken by multiple cameras, wherein each set of sample intersection images includes a plurality of sample intersection images and label data of each sample intersection image, and the label data of any sample intersection image is a real detection frame of a sample target in any sample intersection image; An initial 3D object detection network is obtained, and the training data set is used as the input of the fast single-frame detection network in the initial 3D object detection network, and the multi-view sample fusion images of the sample target at different acquisition times are used as the output of the multi-view fusion network in the initial 3D object detection network to train the initial 3D object detection network, so as to obtain the 3D object detection network after the training is completed, wherein the output of the fast single-frame detection network and the sample intersection image set are used as the input of the multi-view fusion network, and the output of the fast single-frame detection network is the predicted detection box and feature map of the sample target in each sample intersection image.

4. The method according to claim 3, characterized in that When training the initial 3D object detection network, the predicted detection frame of the sample object in any sample intersection image is obtained in the following manner; Inputting any of the sample intersection images into a fast single-frame detection network for target detection processing to obtain a plurality of pre-selected sample detection frames of the sample target in any of the sample intersection images; Based on the multiple pre-selected sample detection frames and the real detection frame of any sample intersection image, and using the Hungarian matching algorithm, a Hungarian matching score map between the multiple pre-selected sample detection frames and the real detection frame is constructed, wherein the Hungarian matching score map includes multiple confidence levels, and each confidence level corresponds to a pre-selected sample detection frame; The maximum pooling non-maximum suppression algorithm is used to determine the local peak on the Hungarian matching score map, and the pre-selected sample detection box corresponding to the local peak is used as the predicted detection box of the sample target in any sample intersection image.

5. The method according to claim 4, characterized in that The loss function of the initial 3D object detection network is: (1) In the above formula (1), L represents the loss function of the initial 3D object detection network. represents the loss function of the fast single-frame detection network, represents the multi-view prediction loss function, represents the cross-view loss function.

6. The method according to claim 5, characterized in that The loss function of the fast single-frame detection network, the multi-view prediction loss function and the cross-view loss function have the same function structure and all include a target loss term and a regression loss term; The loss function of the fast single-frame detection network is calculated using the following formula (2): (2) In the above formula (2), C represents the set of all pre-selected sample detection boxes of the sample target in any sample intersection image when the sample intersection image is used as the input of the initial 3D target detection network. represents the target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image, R represents a set of associated detection boxes, wherein the associated detection box is a pre-selected sample detection box of the sample target associated with its corresponding real detection box in any sample intersection image, Represents the regression loss term of the j-th associated detection box of the sample target in any of the sample intersection images, and the associated detection box is obtained according to the Hungarian matching algorithm.

7. The method according to claim 6, characterized in that The target loss item of the kth pre-selected sample detection box of the sample target in any sample intersection image is calculated using the following formula (3); (3) In the above formula (3), represents the positive sample set, represents a negative sample set, wherein the positive sample set is a set consisting of pre-selected detection boxes of the sample target belonging to positive samples in any of the sample intersection images, and the negative sample set is a set consisting of pre-selected detection boxes of the sample target belonging to negative samples in any of the sample intersection images, is the probability that the kth pre-selected sample detection box is a positive sample, the positive sample set and the negative sample set are obtained by the Hungarian matching algorithm, and is obtained based on the Hungarian matching score graph.

8. A traffic sign, characterized in that: The traffic sign is set at the intersection, and the traffic sign includes: A warning light and multiple cameras, wherein the multiple cameras are used to collect images of the intersection to obtain multiple intersection image sets; A controller, used to obtain a set of intersection images taken by each of the multiple cameras, wherein each intersection image in any one of the multiple intersection image sets is a point cloud image of a continuous frame; A controller is used to perform target detection processing on each intersection image in each intersection image set to obtain a pre-selected detection frame and a feature map of the same target object in the intersection images at the same acquisition time in each intersection image set, wherein in any intersection image in the intersection images at the same acquisition time, there are multiple pre-selected detection frames of the target object, and the target object is a pedestrian or a non-motor vehicle; A controller, configured to use the pre-selected detection frames of the target object to form a detection frame sequence, wherein the detection frame sequence includes a plurality of detection frame sets, each detection frame set corresponds to a collection time, the plurality of detection frame sets are sequentially sorted in order of collection time from earliest to latest, and any detection frame set includes a plurality of detection frame subsets, and any detection frame subset includes a pre-selected detection frame and a feature map in any intersection image when the target object is at a first target time, and the first target time is the collection time corresponding to any detection frame set; A controller, configured to determine, for any detection frame subset in the i-th detection frame set in the detection frame sequence, the best detection frame in the any detection frame subset, so as to form a positioning frame set of the target object at a second target time by using a feature map in each detection frame subset and the obtained multiple best detection frames after determining the best detection frame in all detection frame subsets in the i-th detection frame set, wherein the second target time is a collection time corresponding to the i-th detection frame set; A controller, configured to perform multi-view fusion processing on the target object based on the positioning frame set and each intersection image set, to obtain a multi-view fusion image of the target object at a second target moment; A controller, configured to add 1 to i and re-determine the best detection frame in any detection frame subset within the i-th detection frame set until i is equal to n, thereby obtaining a multi-view fusion image of the target object at different acquisition times, wherein the initial value of i is 1, and n is the total number of detection frame sets; A controller, configured to determine whether the target object poses a traffic safety risk at the intersection based on multi-view fusion images of the target object at different acquisition moments; The controller is further configured to light up the warning light when the target object presents a traffic safety risk at the intersection, so as to provide a traffic safety warning to the target object based on the warning light; Based on the multi-view fusion images of the target object at different acquisition times, judging whether the target object presents a traffic safety risk at the intersection includes: Perform image recognition on the multi-view fusion image to obtain two calibration points in the multi-view fusion image; Obtaining the time when the target object passes through the two calibration points, and calculating the speed of the target object between the two calibration points based on the time when the target object passes through the two calibration points and the distance between the two calibration points; If the speed is greater than a preset speed, or the time between the target object passing two calibration points is less than a preset time, it is determined that the target object poses a traffic safety risk at the intersection.

9. An electronic device, characterized in that: include: A memory, a processor and a transceiver that are sequentially communicatively connected, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the traffic warning method based on the artificial intelligence signboard as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the traffic warning method based on an artificial intelligence signboard as described in any one of claims 1 to 7 is executed.