Traffic intersection risk judgment method and system, electronic equipment and storage medium
By collecting intersection images with drones and using the YOLO algorithm and IoU indicators to analyze motor vehicle trajectories, the problem of low intersection conflict identification accuracy and efficiency is solved, and high-accuracy and efficient traffic intersection risk judgments are achieved.
Patent Information
- Application Number
- CN202411195764.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, intersection conflict identification relies on manual identification, which has the problems of strong subjectivity and low accuracy and efficiency. The existing kinematics software has insufficient data accuracy and reliability in the parameter extraction process, making it difficult to fully and accurately reflect the traffic conflict situation.
Collect continuous frame images of intersections from a bird's-eye view through drones, conduct two-dimensional coordinate registration, and use YOLO algorithm and IoU indicators to identify and track motor vehicles, obtain vehicle trajectory data, calculate the time difference between trajectory intersections, and calculate the time difference according to the speed change. Feature judgment conflict risk.
It improves the accuracy and efficiency of intersection conflicts, ensures the high accuracy and reliability of output data, and solves the problem of low accuracy and efficiency of manual identification of intersection conflicts.
Smart Images

Figure CN118736508A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of road vehicle traffic control, and in particular to a method, system, electronic device and storage medium for determining risk at a traffic intersection. Background Art
[0002] Intersection conflicts mainly occur when two or more traffic participants may collide without slowing down or changing the direction of travel.
[0003] In related technologies, conflict identification at intersections is mainly achieved through manual identification combined with kinematic software parameter extraction. However, manual identification is highly subjective and easily affected by the experience and judgment of the identifier, resulting in inconsistent results. In addition, the manual processing process is time-consuming and difficult to meet the needs of rapid response. At the same time, the existing kinematic software is limited by equipment accuracy and algorithm limitations during parameter extraction, and the accuracy and reliability of the data are often low, making it difficult to fully and accurately reflect the actual situation of traffic conflicts.
[0004] Currently, no effective solution has been proposed to address the problems of low accuracy and efficiency in manual intersection conflict identification in related technologies. Summary of the invention
[0005] The embodiments of the present application provide a method, system, electronic device and storage medium for determining risk at a traffic intersection, so as to at least solve the problem of low accuracy and efficiency in manually identifying intersection conflicts in the related art.
[0006] In a first aspect, an embodiment of the present application provides a method for determining risk at a traffic intersection, the method comprising: Collecting continuous frame images of the intersection from a bird's-eye view by using a drone, and performing two-dimensional coordinate registration on the continuous frame images of the intersection; Based on the YOLO algorithm and the IoU index, the motor vehicles in the aligned continuous frame images of the intersection are identified and tracked to obtain the trajectory data of all the motor vehicles; Obtaining the trajectory intersection points of all motor vehicles according to the trajectory data, and obtaining the time difference between adjacent motor vehicles passing through each of the trajectory intersection points; When the time difference is less than a preset time threshold, the trajectory pair of the adjacent motor vehicles is obtained, and whether there is a collision risk between the adjacent motor vehicles is determined based on the speed change characteristics of the trajectory pair.
[0007] In some embodiments, based on the YOLO algorithm and the IoU index, the motor vehicles in the aligned continuous frame images of the intersection are identified and tracked to obtain the trajectory data of all motor vehicles, including: Based on the YOLO algorithm, motor vehicle recognition is performed on the aligned continuous frame images of the intersection, and the identified motor vehicles are tracked through the IoU indicator to obtain trajectory data of all motor vehicles in the continuous frame images of the intersection.
[0008] In some embodiments, performing two-dimensional coordinate registration on the continuous frame images of the intersection includes: Determine a plurality of non-collinear reference points in the continuous frame images of the intersection, and construct a pixel coordinate system to determine the pixel coordinates corresponding to the reference points in each of the continuous frame images of the intersection; Acquire the longitude and latitude coordinates of the reference point, and obtain a coordinate conversion model according to the pixel coordinates and the longitude and latitude coordinates of the reference point; Based on the coordinate conversion model, all the continuous frame images of the intersection are converted from a pixel coordinate system to a longitude and latitude coordinate system to align all the continuous frame images of the intersection.
[0009] In some embodiments, determining a plurality of non-collinear reference points in the continuous frame images of the intersection includes: Determine a reference frame image from the continuous frame images of the intersection, and extract key feature points from the reference frame image as the reference points; Based on a feature point matching algorithm, the position of the reference point is determined in other frame images, wherein the other frame images are images other than the reference frame image in the continuous frame images of the intersection.
[0010] In some embodiments, obtaining a coordinate transformation model according to the pixel coordinates and the longitude and latitude coordinates of the reference point includes: Obtaining transformation parameters based on the pixel coordinates and the longitude and latitude coordinates of the reference point; An affine transformation matrix is generated according to the transformation parameters, and the coordinate conversion model is obtained based on the affine transformation matrix.
[0011] In some embodiments, obtaining the trajectory intersection points of all motor vehicles according to the trajectory data, and obtaining the time difference between adjacent motor vehicles passing through each of the trajectory intersection points includes: Obtaining the trajectory intersection points of all motor vehicles according to the motor vehicle driving trajectories in the trajectory data; Acquire, from the trajectory data, adjacent motor vehicles passing through each of the trajectory intersections, and timestamps of the adjacent motor vehicles passing through the trajectory intersections; Based on the timestamp, the time difference between the adjacent motor vehicles passing the trajectory intersection is obtained.
[0012] In some embodiments, judging whether there is a risk of collision between adjacent motor vehicles according to the speed change characteristics of the trajectory pair includes: Based on the speed change characteristics, it is determined whether at least one of the adjacent motor vehicles has a negative acceleration within a preset time range. If so, the trajectory intersection point corresponding to the adjacent motor vehicle is used as the conflict intersection point.
[0013] In a second aspect, an embodiment of the present application provides a traffic intersection risk judgment system, the system comprising: a collection module, a recognition module, an analysis module and a judgment module, wherein: The acquisition module is used to acquire continuous frame images of the intersection from a bird's-eye view through a drone, and perform two-dimensional coordinate registration on the continuous frame images of the intersection; The recognition module is used to identify and track the motor vehicles in the aligned continuous frame images of the intersection based on the YOLO algorithm and the IoU index to obtain the trajectory data of all motor vehicles; The analysis module is used to obtain the trajectory intersection points of all motor vehicles according to the trajectory data, and obtain the time difference between adjacent motor vehicles passing through each of the trajectory intersection points; The judgment module is used to obtain the trajectory pair of the adjacent motor vehicles when the time difference is less than a preset time threshold, and judge whether there is a collision risk between the adjacent motor vehicles according to the speed change characteristics of the trajectory pair.
[0014] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for determining risk at a traffic intersection as described in the first aspect above is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for determining risk at a traffic intersection as described in the first aspect above.
[0016] Compared with the related art, the risk judgment method for traffic intersections provided in the embodiment of the present application uses a drone to collect continuous frame images of the intersection from a bird's-eye view, performs two-dimensional coordinate registration on the continuous frame images of the intersection, and identifies and tracks the motor vehicles in the registered continuous frame images of the intersection based on the YOLO algorithm and the IoU index, obtains the trajectory data of all motor vehicles, obtains the trajectory intersections of all motor vehicles based on the trajectory data, obtains the time difference between adjacent motor vehicles passing through each trajectory intersection, and obtains the trajectory pairs of adjacent motor vehicles when the time difference is less than the preset time threshold. According to the speed change characteristics of the trajectory pairs, it is determined whether there is a conflict risk between adjacent motor vehicles, thereby solving the problem of low accuracy and efficiency in manually identifying intersection conflicts. By using deep learning and trajectory analysis technology, the motion characteristics of each traffic participant are analyzed to ensure the high accuracy and reliability of the output data, and improve the accuracy and efficiency of intersection conflicts. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 is a flow chart of a method for determining risk at a traffic intersection according to an embodiment of the present application; Figure 2 is a schematic diagram of trajectory screening according to an embodiment of the present application; Figure 3 is a schematic diagram of conflict intersection screening according to an embodiment of the present application; Figure 4 is a flow chart of risk determination at a traffic intersection according to an embodiment of the present application; Figure 5 is a structural block diagram of a traffic intersection risk judgment system according to an embodiment of the present application; Figure 6 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0019] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0020] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0021] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0022] This embodiment provides a method for determining risk at a traffic intersection. Figure 1 is a flow chart of a method for determining risk at a traffic intersection according to an embodiment of the present application. Figure 1 As shown, the process includes the following steps: Step S101: collect continuous frame images of the intersection from a bird's-eye view by using a drone, and perform two-dimensional coordinate registration on the continuous frame images of the intersection.
[0023] The intersection area can be monitored in real time by taking high-resolution continuous frame images of the panoramic view of the intersection by drones. Compared with traditional ground cameras, drones can cover a wider area and more traffic participants, avoiding the problem of limited viewing angles and blind spots. It should be noted that continuous frame images of intersections include but are not limited to videos or continuously shot images.
[0024] In some embodiments, performing two-dimensional coordinate registration on continuous frame images of the intersection in step S101 specifically includes: Step S1011, determining a plurality of non-collinear reference points in the continuous frame images of the intersection, and constructing a pixel coordinate system to determine the pixel coordinates corresponding to the reference points in the continuous frame images of each intersection.
[0025] Select n non-collinear pixel points as reference points, where n is a positive integer greater than or equal to 3, and obtain the coordinates of these reference points on the pixel coordinate axis.
[0026] In some embodiments, determining a plurality of non-collinear reference points in the continuous frame images of the intersection in step S1011 includes: Step S201 , determining a reference frame image from continuous frame images of the intersection, and extracting key feature points from the reference frame image as reference points.
[0027] Step S202: determining the position of the reference point in other frame images based on a feature point matching algorithm, wherein the other frame images are images other than the reference frame image in the continuous frame images of the intersection.
[0028] It should be noted that the reference point is a key feature point with known longitude and latitude coordinates.
[0029] Step S1012, obtaining the longitude and latitude coordinates of the reference point, and obtaining a coordinate conversion model according to the pixel coordinates and the longitude and latitude coordinates of the reference point.
[0030] Optionally, the Helmert transformation method is used for registration. A series of intermediate variables, namely, transformation parameters, are constructed through the pixel coordinates and latitude and longitude coordinates of the reference points. The values corresponding to these transformation parameters are obtained by solving a set of linear equations, and an affine transformation matrix is constructed to complete the map registration through the affine transformation matrix.
[0031] In some embodiments, obtaining the coordinate conversion model according to the pixel coordinates and the longitude and latitude coordinates of the reference point in step S1012 includes: Step S203, obtaining transformation parameters based on the pixel coordinates and longitude and latitude coordinates of the reference point.
[0032] Assuming the number of benchmark points , get the pixel coordinates of these reference points {(x 1, y 1 ), (x 2 ,y 2 ), (x 3 ,y 3 ), (x 4 ,y 4 )} and the longitude and latitude coordinates {(X 1, Y 1 ), (X 2 ,Y 2 ), (X 3 ,Y 3 ), (X 4 ,Y 4 )}.
[0033] The transformation parameters include a, b, c, d, e, f, g, h, ii and jj, and the equations are as follows:
[0034] Where n is the number of reference points, x i is the horizontal coordinate of the i-th reference point in the pixel coordinate system, y i is the ordinate of the i-th reference point in the pixel coordinate system, X i is the horizontal coordinate of the i-th reference point in the longitude and latitude coordinate system, Y i is the ordinate of the i-th reference point in the longitude and latitude coordinate system.
[0035] Step S204, generating an affine transformation matrix according to the transformation parameters, and obtaining a coordinate transformation model based on the affine transformation matrix.
[0036] The initial transformation matrices m_mat and b_mat are constructed using the above transformation parameters. The initial transformation matrices are as follows:
[0037] Solve the linear equation m_mat*x_mat=b_mat and get the x_mat matrix:
[0038] Calculate the intermediate values of the affine function through the x_mat matrix:
[0039] Among them, θ is the rotation angle, s is the scaling factor, dx is the translation in the x-axis direction, and dy is the translation in the y-axis direction.
[0040] The affine matrix convert_mat is:
[0041] The coordinate transformation model is: convert_mat·pixel_loc = actual_loc
[0042] Among them, pixel_loc is the pixel coordinates of any pixel in the image, and actual_loc is the latitude and longitude coordinates corresponding to the pixel.
[0043] Step S1013: based on the coordinate conversion model, convert all the continuous frame images of the intersection from the pixel coordinate system to the longitude and latitude coordinate system to align all the continuous frame images of the intersection.
[0044] Step S102, based on the YOLO algorithm and the IoU index, the motor vehicles in the registered intersection continuous frame images are identified and tracked to obtain the trajectory data of all the motor vehicles.
[0045] In some of the embodiments, step S102 specifically includes: performing motor vehicle recognition on the aligned continuous frame images of the intersection based on the YOLO algorithm, and tracking the recognized motor vehicles through the IoU indicator to obtain trajectory data of all motor vehicles in the continuous frame images of the intersection.
[0046] Based on the YOLO algorithm, the motor vehicle is identified, and with the help of the IoU indicator, the long-term tracking of the motor vehicle target is achieved, and the motor vehicle trajectory data is output frame by frame. Table 1 is a motor vehicle trajectory data field table according to an embodiment of the present application. As shown in Table 1, the output trajectory data may include: the vehicle ID of the identified motor vehicle, the identification frame size, the vehicle type, the timestamp, and the speed, acceleration, and coordinates of the motor vehicle at the corresponding time. The trajectory set is denoted as C={c 1 ,c 2 ,...,c n}, where c i is the trajectory of vehicle with ID i.
[0047] Table 1
[0048] Continue to refer to Figure 1 After obtaining the trajectory data of the motor vehicle, execute step S103.
[0049] Step S103, obtaining the trajectory intersection points of all motor vehicles according to the trajectory data, and obtaining the time difference between adjacent motor vehicles passing through each trajectory intersection point.
[0050] In some embodiments, step S103 specifically includes: Step S1031, obtaining the trajectory intersection points of all motor vehicles according to the motor vehicle driving trajectories in the trajectory data.
[0051] Generate the trajectories of all motor vehicles in the video, detect the intersection points p between each trajectory, and output the detected intersection points as an intersection point set P = {p 1 ,p 2 ,...,p m Table 2 is a track intersection data table according to an embodiment of the present application. As shown in Table 2, the obtained intersection data includes a sequence number and intersection coordinate information.
[0052] Table 2
[0053] Step S1032, obtaining, from the trajectory data, adjacent motor vehicles passing through each trajectory intersection, and the timestamps of the adjacent motor vehicles passing through the trajectory intersection.
[0054] The trajectory intersection point p j For example, p j ∈P, filter all the points passing through the intersection point p j The motor vehicle, according to the point p j The vehicle trajectories are sorted in time order, and the vehicle ID information and the vehicle passing point p are recorded. j The timestamp information of the intersection is output as the trajectory set of the intersection, denoted as Traj_p j ={c s ,...,c t}, 1≤s≤n, 1≤t≤n, Table 3 is a data table of an intersection trajectory set according to an embodiment of the present application. Figure 2 This is a schematic diagram of trajectory screening according to an embodiment of the present application.
[0055] Table 3
[0056] Step S1033: based on the timestamp, obtain the time difference between adjacent motor vehicles passing through the track intersection.
[0057] The time difference of the timestamps of the intersection points of the trajectories of adjacent vehicles is calculated, and the trajectories whose time difference is less than or equal to the time threshold TA are selected to form a trajectory pair (the time threshold TA is pre-set according to the actual situation).
[0058] Step S104, when the time difference is less than a preset time threshold, the trajectory pairs of adjacent motor vehicles are obtained, and whether there is a risk of collision between the adjacent motor vehicles is determined based on the speed change characteristics of the trajectory pairs.
[0059] In some embodiments, judging whether there is a risk of collision between adjacent motor vehicles according to the speed change characteristics of the trajectory pair in step S104 includes: Based on the speed change characteristics, it is determined whether at least one of the adjacent motor vehicles has a negative acceleration within a preset time range. If so, the trajectory intersection point corresponding to the adjacent motor vehicles is used as the conflict intersection point.
[0060] The speed change characteristics of the vehicles involved in the trajectory pair are judged, and the trajectory pairs in which at least one of the two adjacent vehicles has a negative acceleration within the time threshold TA are screened out, and the possible Conflict set Conf_p where traffic conflicts occur j ={(c e ,c f ),...,(c g ,c h Table 4 is a conflict set data table according to an embodiment of the present application. Figure 3 It is a schematic diagram of conflict intersection screening according to an embodiment of the present application.
[0061] Table 4
[0062] Analyze the conflict of all intersections in the intersection set, obtain all possible conflicts in the intersection view taken by the drone, and output the complete set of conflict pairs Conf_p={(c e ,c f ),...,(c g ,c h )}. Table 5 is a table of all conflict set data according to an embodiment of the present application.
[0063] Table 5
[0064] Figure 4 It is a flow chart of risk assessment for a traffic intersection according to an embodiment of the present application.
[0065] Through deep learning and trajectory analysis technology, various indicators required for conflict assessment are extracted and calculated, including but not limited to speed, acceleration, and path deviation. The motion characteristics of each traffic participant are analyzed to ensure the high accuracy and reliability of the output data. The obtained indicators can not only be used for conflict analysis, but also provide data support for subsequent traffic safety research and improvement measures.
[0066] For example, by comparing and analyzing traffic conflict data, the effects of traffic management measures or road design improvements can be quantitatively evaluated. Specifically, data can be collected and analyzed before and after the implementation of improvement measures, and the actual effects of improvement measures can be intuitively demonstrated by comparing key indicators such as conflict frequency and severity.
[0067] Through the above steps, the continuous frame images of the intersection from a bird's-eye view are collected by drones, and the continuous frame images of the intersection are aligned in two dimensions. Based on the YOLO algorithm and the IoU index, the motor vehicles in the aligned continuous frame images of the intersection are identified and tracked to obtain the trajectory data of all motor vehicles. The trajectory intersections of all motor vehicles are obtained based on the trajectory data, and the time difference between adjacent motor vehicles passing through each trajectory intersection is obtained. When the time difference is less than the preset time threshold, the trajectory pairs of adjacent motor vehicles are obtained. According to the speed change characteristics of the trajectory pairs, it is determined whether there is a risk of conflict between adjacent motor vehicles, which solves the problem of low accuracy and efficiency of manual identification of intersection conflicts. Deep learning and trajectory analysis technology are used to analyze the motion characteristics of each traffic participant to ensure the high accuracy and reliability of the output data, and improve the accuracy and efficiency of intersection conflicts.
[0068] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0069] This embodiment also provides a traffic intersection risk judgment system, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0070] Figure 5 is a structural block diagram of a traffic intersection risk judgment system according to an embodiment of the present application, such as Figure 5 As shown, the system includes: a collection module 51, a recognition module 52, an analysis module 53 and a judgment module 54.
[0071] The acquisition module 51 is used to acquire continuous frame images of the intersection from a bird's-eye view through a drone, and perform two-dimensional coordinate registration on the continuous frame images of the intersection; The recognition module 52 is used to identify and track the motor vehicles in the registered continuous frame images of the intersection based on the YOLO algorithm and the IoU index to obtain the trajectory data of all the motor vehicles; An analysis module 53 is used to obtain the track intersection points of all motor vehicles according to the track data, and obtain the time difference between adjacent motor vehicles passing through each track intersection point; The judgment module 54 is used to obtain the trajectory pair of the adjacent motor vehicles when the time difference is less than the preset time threshold, and judge whether there is a collision risk between the adjacent motor vehicles according to the speed change characteristics of the trajectory pair.
[0072] In some embodiments, the identification module 52 includes: a trajectory identification module.
[0073] The trajectory recognition module is used to identify motor vehicles in the aligned continuous frame images of the intersection based on the YOLO algorithm, and track the identified motor vehicles through the IoU indicator to obtain the trajectory data of all motor vehicles in the continuous frame images of the intersection.
[0074] In some of the embodiments, the acquisition module 51 includes: a coordinate acquisition module, a model generation module and an alignment module.
[0075] The coordinate acquisition module is used to determine multiple non-collinear reference points in the continuous frame images of the intersection, and to construct a pixel coordinate system to determine the pixel coordinates corresponding to the reference points in the continuous frame images of each intersection.
[0076] The model generation module is used to obtain the latitude and longitude coordinates of the reference point, and obtain a coordinate conversion model according to the pixel coordinates and the latitude and longitude coordinates of the reference point; The alignment module is used to transform all the continuous frame images of the intersection from the pixel coordinate system to the longitude and latitude coordinate system based on the coordinate transformation model, so as to align all the continuous frame images of the intersection.
[0077] In some embodiments, the coordinate acquisition module includes: a reference point determination module and a matching module.
[0078] The reference point determination module is used to determine the reference frame image from the continuous frame images of the intersection and extract key feature points from the reference frame image as reference points.
[0079] The matching module is used to determine the position of the reference point in other frame images based on a feature point matching algorithm, wherein the other frame images are images other than the reference frame image in the continuous frame images of the intersection.
[0080] In some of the embodiments, the model generation module includes: a parameter determination module and a model construction module.
[0081] The parameter determination module is used to obtain the transformation parameters based on the pixel coordinates and the longitude and latitude coordinates of the reference point.
[0082] The model building module is used to generate an affine transformation matrix according to the transformation parameters and obtain a coordinate transformation model based on the affine transformation matrix.
[0083] In some embodiments, the analysis module 53 includes: an intersection determination module, a data acquisition module and a time difference module.
[0084] The intersection determination module is used to obtain the trajectory intersection points of all motor vehicles according to the motor vehicle driving trajectories in the trajectory data.
[0085] The data acquisition module is used to acquire, from the trajectory data, the adjacent motor vehicles passing through each trajectory intersection and the timestamps of the adjacent motor vehicles passing through the trajectory intersection.
[0086] The time difference module is used to obtain the time difference between adjacent motor vehicles passing through the track intersection based on the timestamp.
[0087] In some embodiments, the determination module 54 includes: a conflict intersection determination module.
[0088] The conflict intersection determination module is used to determine whether at least one of the adjacent motor vehicles has a negative acceleration within a preset time range based on the speed change characteristics. If so, the trajectory intersection points corresponding to the adjacent motor vehicles are used as conflict intersection points.
[0089] Through the above system, the acquisition module 51 collects continuous frame images of the intersection from a bird's-eye view through a drone, and performs two-dimensional coordinate registration on the continuous frame images of the intersection. The recognition module 52 identifies and tracks the motor vehicles in the registered continuous frame images of the intersection based on the YOLO algorithm and the IoU index to obtain the trajectory data of all motor vehicles. The analysis module 53 obtains the trajectory intersections of all motor vehicles based on the trajectory data, and obtains the time difference between adjacent motor vehicles passing through each trajectory intersection. The judgment module 54 obtains the trajectory pairs of adjacent motor vehicles when the time difference is less than the preset time threshold, and judges whether there is a risk of conflict between adjacent motor vehicles based on the speed change characteristics of the trajectory pairs, thereby solving the problem of low accuracy and efficiency in manually identifying intersection conflicts. Deep learning and trajectory analysis technology are used to analyze the motion characteristics of each traffic participant, ensure the high accuracy and reliability of the output data, and improve the accuracy and efficiency of intersection conflicts.
[0090] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0091] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0092] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0093] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program: S1, using a drone to collect continuous frame images of the intersection from a bird's-eye view, and performing two-dimensional coordinate registration on the continuous frame images of the intersection.
[0094] S2, based on the YOLO algorithm and IoU index, identifies and tracks the motor vehicles in the aligned continuous frame images of the intersection to obtain the trajectory data of all motor vehicles.
[0095] S3, obtaining the trajectory intersection points of all motor vehicles according to the trajectory data, and obtaining the time difference between adjacent motor vehicles passing through each trajectory intersection point.
[0096] S4, when the time difference is less than a preset time threshold, obtaining a trajectory pair of adjacent motor vehicles, and judging whether there is a risk of collision between adjacent motor vehicles according to the speed change characteristics of the trajectory pair.
[0097] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0098] In one embodiment, Figure 6 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 6 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 6 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for determining risk at a traffic intersection is implemented.
[0099] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0100] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0101] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for determining risk at a traffic intersection, characterized in that: The method comprises: Collecting continuous frame images of the intersection from a bird's-eye view by using a drone, and performing two-dimensional coordinate registration on the continuous frame images of the intersection; Based on the YOLO algorithm and the IoU index, the motor vehicles in the aligned continuous frame images of the intersection are identified and tracked to obtain the trajectory data of all the motor vehicles; Obtaining the trajectory intersection points of all motor vehicles according to the trajectory data, and obtaining the time difference between adjacent motor vehicles passing through each of the trajectory intersection points; When the time difference is less than a preset time threshold, the trajectory pair of the adjacent motor vehicles is obtained, and whether there is a collision risk between the adjacent motor vehicles is determined based on the speed change characteristics of the trajectory pair.
2. The method according to claim 1, characterized in that Based on the YOLO algorithm and the IoU index, the motor vehicles in the aligned continuous frame images of the intersection are identified and tracked to obtain the trajectory data of all motor vehicles, including: Based on the YOLO algorithm, motor vehicle recognition is performed on the aligned continuous frame images of the intersection, and the identified motor vehicles are tracked through the IoU indicator to obtain trajectory data of all motor vehicles in the continuous frame images of the intersection.
3. The method according to claim 1, characterized in that The two-dimensional coordinate registration of the continuous frame images of the intersection comprises: Determine a plurality of non-collinear reference points in the continuous frame images of the intersection, and construct a pixel coordinate system to determine the pixel coordinates corresponding to the reference points in each of the continuous frame images of the intersection; Acquire the longitude and latitude coordinates of the reference point, and obtain a coordinate conversion model according to the pixel coordinates and the longitude and latitude coordinates of the reference point; Based on the coordinate conversion model, all the continuous frame images of the intersection are converted from a pixel coordinate system to a longitude and latitude coordinate system to align all the continuous frame images of the intersection.
4. The method according to claim 3, characterized in that Determining a plurality of non-collinear reference points in the continuous frame images of the intersection comprises: Determine a reference frame image from the continuous frame images of the intersection, and extract key feature points from the reference frame image as the reference points; Based on a feature point matching algorithm, the position of the reference point is determined in other frame images, wherein the other frame images are images other than the reference frame image in the continuous frame images of the intersection.
5. The method according to claim 3, characterized in that: The obtaining of the coordinate conversion model according to the pixel coordinates and the longitude and latitude coordinates of the reference point comprises: Obtaining transformation parameters based on the pixel coordinates and the longitude and latitude coordinates of the reference point; An affine transformation matrix is generated according to the transformation parameters, and the coordinate conversion model is obtained based on the affine transformation matrix.
6. The method according to claim 1, characterized in that The step of obtaining the trajectory intersection points of all motor vehicles according to the trajectory data and obtaining the time difference between adjacent motor vehicles passing through each of the trajectory intersection points comprises: Obtaining the trajectory intersection points of all motor vehicles according to the motor vehicle driving trajectories in the trajectory data; Acquire, from the trajectory data, adjacent motor vehicles passing through each of the trajectory intersections, and timestamps of the adjacent motor vehicles passing through the trajectory intersections; Based on the timestamp, the time difference between the adjacent motor vehicles passing the trajectory intersection is obtained.
7. The method according to claim 1, characterized in that The determining, based on the speed change characteristics of the trajectory pair, whether there is a risk of collision between the adjacent motor vehicles comprises: Based on the speed change characteristics, it is determined whether at least one of the adjacent motor vehicles has a negative acceleration within a preset time range. If so, the trajectory intersection point corresponding to the adjacent motor vehicle is used as the conflict intersection point.
8. A traffic intersection risk assessment system, characterized in that: The system includes: a collection module, an identification module, an analysis module and a judgment module, wherein: The acquisition module is used to acquire continuous frame images of the intersection from a bird's-eye view through a drone, and perform two-dimensional coordinate registration on the continuous frame images of the intersection; The recognition module is used to identify and track the motor vehicles in the aligned continuous frame images of the intersection based on the YOLO algorithm and the IoU index to obtain the trajectory data of all motor vehicles; The analysis module is used to obtain the trajectory intersection points of all motor vehicles according to the trajectory data, and obtain the time difference between adjacent motor vehicles passing through each of the trajectory intersection points; The judgment module is used to obtain the trajectory pair of the adjacent motor vehicles when the time difference is less than a preset time threshold, and judge whether there is a collision risk between the adjacent motor vehicles according to the speed change characteristics of the trajectory pair.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the traffic intersection risk judgment method according to any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the traffic intersection risk judgment method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Vehicle intersection collision early warning method
CN106023652A
Vehicle driving trajectory prediction based traffic conflict discrimination method for expressway interflow area
CN110310516A
Front vehicle line pressing behavior detection and dynamic tracking method based on vehicle-mounted video
CN112487908A
Method for extracting unmanned aerial vehicle aerial video trajectory data of traffic participants at complex intersection
CN118172385A
Method of predicting traffic collisions and system thereof
US20170344855A1
