Methods and devices for determining anomalies in target vehicles, storage media, and electronic devices.

By extracting vehicle feature information and key points from the target image, combined with clustering and angle calculation, the vehicle trajectory analysis errors caused by target tracking errors are solved, and the efficiency and accuracy of capturing photos without following guidance are improved.

CN112446902BActive Publication Date: 2024-09-17ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011331944.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-24
Publication Date
2024-09-17
Estimated Expiration
2040-11-24

AI Technical Summary

Technical Problem

In the existing technology, target tracking errors lead to errors in vehicle trajectory analysis, resulting in low efficiency in capturing the target vehicle without following the guidance, and there is a lack of effective solutions.

Method used

By determining the characteristic information of the target vehicle from the target image, including the center point and key feature points, using the vehicle model information and key feature points to determine whether the driving trajectory is abnormal, using a target model and clustering algorithm based on N sampled feature information to divide the image area, connect side key points, calculate the angle to determine the trajectory, and improve tracking accuracy.

Benefits of technology

It improves the efficiency of capturing target vehicles when they are not following directions, reduces false tracking and false captures, and enhances the accuracy of vehicle trajectory analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446902B
    Figure CN112446902B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for determining the abnormality of a target vehicle, a storage medium, and an electronic device, the method comprising: determining the characteristic information of the target vehicle from the acquired target image, wherein the characteristic information includes the center point of the target vehicle and the key characteristic points of the target vehicle; determining whether the driving trajectory of the target vehicle is abnormal based on the vehicle model information of the target vehicle and the key characteristic points of the target vehicle. Through the present invention, the problem of vehicle trajectory analysis errors caused by target tracking errors in the related art, which in turn leads to the efficiency of capturing the target vehicle not driving according to the guidance, is solved, thereby achieving the effect of improving the efficiency of capturing the target vehicle not driving according to the guidance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of vehicles, and in particular, to a method and device for determining abnormality of a target vehicle, a storage medium, and an electronic device. Background Art

[0002] With the continuous upgrading of the intelligence of urban traffic management systems, the intelligence of various types of violation management in electric police scenarios has been continuously promoted, and the function of automatic capture of violations of target vehicles by electric police has been fully realized. However, due to some unstable factors in the current target detection and target tracking technologies, it may cause the target vehicle to violate the guidance and the violation efficiency related to vehicle trajectory judgment is low, which increases the cost of traffic violation data review by the traffic police department. In other words, it is imperative to improve the efficiency of automatic capture of violations in electric police scenarios.

[0003] However, in the waiting area of ​​the electric police scene, the target vehicles are relatively dense. Only through the trajectory analysis method, the up and down vehicles are easily confused with the lateral vehicles, resulting in misjudgment of vehicle trajectories.

[0004] With regard to the problem in the prior art that target tracking errors lead to vehicle trajectory analysis errors, which in turn lead to the inefficiency of capturing the target vehicle not driving according to the guidance, no effective solution has been proposed in the relevant technology. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for determining abnormalities of a target vehicle, a storage medium, and an electronic device, so as to at least solve the problem of vehicle trajectory analysis errors caused by target tracking errors in the related art, which in turn leads to the problem of inefficient capture of the target vehicle not driving according to the guidance.

[0006] According to one embodiment of the present invention, a method for determining an abnormality of a target vehicle is provided, comprising: determining feature information of the target vehicle from an acquired target image, wherein the feature information comprises a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; determining vehicle model information of the target vehicle using the center point; and determining whether a driving trajectory of the target vehicle is abnormal based on the vehicle model information of the target vehicle and the key feature points of the target vehicle.

[0007] According to another embodiment of the present invention, a device for determining an abnormality of a target vehicle is provided, comprising: a first determination module, used to determine characteristic information of the target vehicle from an acquired target image, wherein the characteristic information includes a center point of the target vehicle and key characteristic points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; a second determination module, used to determine vehicle model information of the target vehicle using the center point; and a third determination module, used to determine whether there is an abnormality in the driving trajectory of the target vehicle based on the vehicle model information of the target vehicle and the key characteristic points of the target vehicle.

[0008] In an exemplary embodiment, the first determination module includes: a first input unit, used to input the target image into the target model to obtain the center point of the target vehicle and the key feature points of the target vehicle output by the target model, wherein the target model is trained based on N sampling feature information and sampling vehicles corresponding to the N sampling feature information.

[0009] In an exemplary embodiment, the second determination module includes: a first division unit, configured to divide the target image into M image regions;

[0010] The first clustering unit is used to cluster the queues in the above-mentioned M image areas within a preset time period to obtain the vehicle model information of the above-mentioned target vehicle, wherein the above-mentioned queue is used to record the vehicle model information of the center point of the above-mentioned target vehicle in each of the above-mentioned image areas, and the above-mentioned vehicle model information includes the height of the above-mentioned target vehicle and the width of the above-mentioned target vehicle.

[0011] In an exemplary embodiment, the above-mentioned device also includes: a fourth determination module, which is used to cluster the queues in the above-mentioned M image areas within a preset time period, and after obtaining the vehicle model information of the above-mentioned target vehicle, use the height of the above-mentioned target vehicle, the width of the above-mentioned target vehicle and a preset threshold to determine the tracking range of the above-mentioned target vehicle, so as to track the driving trajectory of the above-mentioned target vehicle within the above-mentioned tracking range.

[0012] In an exemplary embodiment, the device further includes: a first connection module, used to connect N side key points in the first side of the target vehicle to obtain a first side straight line, wherein the N side key points are included in the key feature points of the target vehicle, and N is a natural number greater than 1; a second connection module, used to connect M side key points in the second side of the target vehicle to obtain a second side straight line, wherein the M side key points are included in the key feature points of the target vehicle, and M is a natural number greater than 1; a fourth determination module, used to determine the angle between the first side straight line and the vertical straight line in the vertical direction of the target vehicle to obtain a first angle; a fifth determination module, used to determine the angle between the second side straight line and the vertical straight line in the vertical direction of the target vehicle to obtain a second angle; a sixth determination module, used to determine the driving trajectory of the target vehicle based on the first angle and the second angle.

[0013] In an exemplary embodiment, the sixth determination module includes: a first determination unit, used to determine the difference between the first angle and the second angle; and a second determination unit, used to determine the trajectory of the target vehicle traveling in the area between the first angle and the second angle as the driving trajectory of the target vehicle when the difference is within a preset range.

[0014] In an exemplary embodiment, the third determination module includes: a third determination unit, used to determine the lane where the target vehicle is located from the positional relationship between the rear key point of the target vehicle and the lane line, wherein the rear key point is included in the key feature points of the target vehicle; a first acquisition unit, used to acquire image information of the target vehicle in the target area through a camera device; a fourth determination unit, used to determine the driving trajectory of the target vehicle in the target area from the image information; and a fifth determination unit, used to determine that the driving trajectory of the target vehicle is abnormal when the driving trajectory is inconsistent with a preset driving trajectory, wherein the preset driving trajectory corresponds to the lane.

[0015] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0016] According to yet another embodiment of the present invention, there is provided 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.

[0017] Through the present invention, the characteristic information of the target vehicle is determined from the acquired target image, wherein the characteristic information includes the center point of the target vehicle and the key characteristic points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; the model information of the target vehicle is determined by the center point; and whether the driving track of the target vehicle is abnormal is determined based on the model information of the target vehicle and the key characteristic points of the target vehicle. The purpose of determining the target vehicle through the characteristic information of the target vehicle for tracking is achieved. Therefore, the problem of vehicle trajectory analysis errors caused by target tracking errors in the related art, which in turn leads to the efficiency of capturing the target vehicle not driving according to the guidance, can be solved, thereby achieving the effect of improving the efficiency of capturing the target vehicle not driving according to the guidance. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for determining abnormality of a target vehicle according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a method for determining an abnormality of a target vehicle according to an embodiment of the present invention;

[0020] Figure 3 is an overall flow chart according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of a structure for detecting a target vehicle according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of key points of a vehicle according to an embodiment of the present invention;

[0023] Figure 6 is a schematic diagram of the target vehicle inspection frame width according to an embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of key point directions of a right-turning vehicle according to an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of capturing a vehicle not driving according to a guide according to an embodiment of the present invention;

[0026] Fig. 9 is a schematic diagram of a rear projection line and a rear projection midpoint according to an embodiment of the present invention;

[0027] Fig.10 4 is a structural block diagram of a device for determining abnormality of a target vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0030] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for determining abnormality of a target vehicle according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the abnormality of the target vehicle in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] In this embodiment, a method for determining whether a target vehicle is abnormal is provided. Figure 2 is a flow chart of a method for determining an abnormality of a target vehicle according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0034] Step S202, determining feature information of the target vehicle from the acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image;

[0035] Step S204, using the center point to determine the model information of the target vehicle;

[0036] Step S206, determining whether the driving trajectory of the target vehicle is abnormal based on the vehicle model information and the key feature points of the target vehicle.

[0037] The execution subject of the above steps may be a server, etc., but is not limited thereto.

[0038] Optionally, in this embodiment, the target vehicle includes but is not limited to a motor vehicle. This embodiment is not limited to being applied to the scene of capturing the violation of a motor vehicle. The target image can be determined from the acquired time-frequency sequence. Figure 3 As shown, the overall process of this embodiment includes determining the characteristic information of the target vehicle from the input time-frequency sequence, detecting the target vehicle, tracking the target object after determining the target vehicle, and capturing the target vehicle when the target vehicle does not drive according to the guidance.

[0039] Through the above steps, the characteristic information of the target vehicle is determined from the acquired target image, wherein the characteristic information includes the center point of the target vehicle and the key characteristic points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; the model information of the target vehicle is determined by the center point; and whether the driving trajectory of the target vehicle is abnormal is determined based on the model information of the target vehicle and the key characteristic points of the target vehicle. The purpose of determining the target vehicle through the characteristic information of the target vehicle for tracking is achieved. Therefore, the problem of vehicle trajectory analysis errors caused by target tracking errors in the related art, which in turn leads to the efficiency of capturing the target vehicle not driving according to the guidance, can be solved, thereby achieving the effect of improving the efficiency of capturing the target vehicle not driving according to the guidance.

[0040] In an exemplary embodiment, determining characteristic information of a target vehicle from an acquired target image includes:

[0041] S1, inputting the target image into the target model to obtain the center point of the target vehicle and the key feature points of the target vehicle output by the target model, wherein the target model is trained based on N sampling feature information and the sampling vehicles corresponding to the N sampling feature information.

[0042] Optionally, in this embodiment, the target model includes but is not limited to a cellular neural network (CNN), or an encoder-decoder module, such as a CenterNet or RetinaNet network.

[0043] In an exemplary embodiment, determining the model information of the target vehicle using the center point includes:

[0044] S1, divide the target image into M image regions;

[0045] S2, clustering the queues in M ​​image areas within a preset time period to obtain the model information of the target vehicle, wherein the queue is used to record the model information of the center point of the vehicle in each image area, and the model information includes the height and width of the target vehicle.

[0046] Optionally, in this embodiment, for example, the target image is divided into 16 equally divided image areas, and 2 queues that can store 1,000 target sizes are applied for each image area, and the width and height of each vehicle whose center point falls in the image area are recorded respectively; taking the width as an example, the queue is clustered once every 60 minutes (such as the k-means algorithm) to obtain the widths of the two categories of large vehicles and small vehicles.

[0047] In an exemplary embodiment, after clustering the queues in the M image regions within a preset time period to obtain the model information of the target vehicle, the method further includes:

[0048] S1, determining the tracking range of the target vehicle by using the height of the target vehicle, the width of the target vehicle and a preset threshold value, so as to track the driving trajectory of the target vehicle within the tracking range.

[0049] Optionally, in this embodiment, after obtaining the height and width of the target vehicle, a preset threshold t (for example, 0.2) is set. The tracking ranges R1, R2, and R3 are calculated by formula 1, and the tracking identification ID of the target vehicle is transferred between R1 and R2, and between R2 and R3, wherein Avg_Tw is the clustered large vehicle width, and Avg_cw is the clustered small vehicle width.

[0050]

[0051] In an exemplary embodiment, the driving trajectory of the target vehicle is determined by:

[0052] S1, connecting N side key points in a first side of the target vehicle to obtain a first side straight line, wherein the N side key points are included in the key feature points of the target vehicle, and N is a natural number greater than 1;

[0053] S2, connecting M side key points in the second side of the target vehicle to obtain a second side straight line, wherein the M side key points are included in the key feature points of the target vehicle, and M is a natural number greater than 1;

[0054] S3, determining an angle between the first side straight line and a vertical straight line in a vertical direction of the target vehicle to obtain a first angle;

[0055] S4, determining an angle between the second side straight line and a vertical straight line in a vertical direction of the target vehicle to obtain a second angle;

[0056] S5, determining a driving trajectory of the target vehicle based on the first angle and the second angle.

[0057] Optionally, in this embodiment, M side key points and N lateral key points represent key points on both sides of the target vehicle, respectively. For example, the key points of the two wheels on the left side are connected to obtain a first side straight line. The key points of the two wheels on the right side are connected to obtain a second side straight line.

[0058] In an exemplary embodiment, determining a driving trajectory of a target vehicle based on a first angle and a second angle includes:

[0059] S1, determining a difference between a first angle and a second angle;

[0060] S2: When the difference is within a preset range, a trajectory of the target vehicle traveling in an area between the first angle and the second angle is determined as a driving trajectory of the target vehicle.

[0061] Optionally, in this embodiment, the first angle and the second angle may range from 0 to 180 degrees, and the preset range may be ±15°.

[0062] In an exemplary embodiment, determining whether the driving trajectory of the target vehicle is abnormal based on the vehicle model information of the target vehicle and the tracking trajectory of the target vehicle includes:

[0063] S1, determining the lane where the target vehicle is located from the positional relationship between the rear key point of the target vehicle and the lane line, wherein the rear key point is included in the key feature points of the target vehicle;

[0064] S2, obtaining image information of the target vehicle in the target area through a camera device;

[0065] S3, determining the driving track of the target vehicle in the target area from the image information;

[0066] S4, when the driving trajectory is inconsistent with the preset driving trajectory, determining that the driving trajectory of the target vehicle is abnormal, wherein the preset driving trajectory corresponds to the lane.

[0067] Optionally, in this embodiment, for example, if the key point of the rear of the target vehicle is located between the right-turn lane lines, it is determined that the target vehicle is in the right-turn lane. The midpoint of the projection of the rear of the target vehicle passes through the set front line to capture the first image, the midpoint of the projection of the rear of the target vehicle passes through the middle line to capture the second image, or the third image is captured through the right-turn line to determine the driving direction of the target vehicle. If it is inconsistent with the direction of the lane where the target vehicle is located recorded previously, the captured target vehicle is not driving according to the guidance.

[0068] The present invention is described in detail below in conjunction with specific embodiments and accompanying drawings:

[0069] This embodiment proposes a method for capturing a target vehicle that does not follow the guidance and violates traffic regulations based on video. The overall process is as follows: Figure 3 As shown, the method includes: determining characteristic information of a target vehicle from an input time-frequency sequence and detecting the target vehicle; tracking the target object after determining the target vehicle, and capturing the target vehicle when the target vehicle does not travel according to the guidance.

[0070] Among them, the input video stream image is used to detect the target vehicle. The process is as follows Figure 4 As shown in Figure 1, the target vehicle detection module first sends each frame of the electric police scene under the monitoring perspective to the target detection CNN and encoder-decoder modules, such as CenterNet and RetinaNet networks, to detect the center point of all vehicles in the video stream image, the deviation of the center point mapped to the original image, the width and height (such as Figure 4 The mask area in the lower right corner) and 22 vehicle key points, such as Figure 4 As shown in the white dot in the target vehicle in the lower left corner; 22 types of vehicle key points are detected, such as Figure 5 As shown, points (1, 2, 11, 14, 15) are determined as key points on the left side of the target vehicle, points (3, 4, 12, 13, 16) are determined as key points on the side of the target vehicle, points (5, 6, 7, 8, 9, 10) are determined as key points on the head of the target vehicle, and points (17, 18, 19, 20, 21, 22) are determined as key points on the tail of the target vehicle.

[0071] Target vehicle tracking module: The Kernel Correlation Filter (KCF) algorithm is used to track each vehicle. The position with the largest response corresponding to the previous and next frames is found through correlation filtering. However, since the target vehicle is a rigid object with similar structural features, such as in the waiting area of ​​the electric police scene, lateral vehicles and downlink vehicles are prone to mistracking with uplink vehicles, resulting in mistracking due to non-guiding driving. Therefore, an online learning target vehicle frame module is first added to distinguish large and small vehicles for tracking and isolation, including:

[0072] Divide the original image into 16 equally divided bins (corresponding to the image area mentioned above) as follows Figure 6 As shown, two queues are applied for each bin, each of which can store 1000 target sizes, and the width and height of each vehicle whose center point falls in the bin are recorded respectively; taking the width as an example, the queue is clustered once every 60 minutes (such as K-means Clustering Algorithm, referred to as k-means, iterative clustering analysis algorithm), and the widths of two categories of large vehicles and small vehicles, namely, the width of large vehicles Avg_Tw and the width of small vehicles Avg_cw, are obtained. At the same time, a threshold t (for example, 0.2) is set, so that the tracking isolation ranges R1, R2, and R3 are calculated by the following formula, and the target tracking ID transfer can only be performed between R1 and R2, and between R2 and R3:

[0073]

[0074] Secondly, key point features are added to the tracking process for tracking: the vehicle with the target vehicle tail key point and (1 and 2) or (3 and 4) not detected at the same time is judged as the tail vehicle, the vehicle with the target vehicle front key point and (1 and 2) or (3 and 4) not detected at the same time is judged as the front vehicle, and the vehicle with key points (1 and 2) or (3 and 4) at the same time is judged as the side vehicle. For the side vehicle, if 1 and 2 exist at the same time, connect 2 and 1 (direction Dl from 2 to 1), if 3 and 4 exist at the same time, connect 4 and 3 (direction Dr from 4 to 3) to form a straight line, and then calculate the angle θ between D and the vertical direction. Therefore, the θ range of Dl is (0 to -180), and the θ range of Dr is (0 to 180), so as to achieve tracking and matching of the targets with a θ difference of ±15° between the two targets, and isolate the targets outside the range from each other. The direction detection is as follows Figure 7 shown.

[0075] Failure to follow the driving directions capture module: If the target vehicle fails to follow the driving directions, three captures are required, one at the front line L1, the middle line L2, and the other at L3 (the rear line or the left turn line or the right turn line). Figure 8As shown in the figure, between L1 and L2, we judge the midpoint of the target vehicle's rear projection and the lane line, and record the lane to which the target vehicle belongs. The left endpoint (x l ,y l ), right endpoint (x r ,y r ) and the midpoint (x center ,y center ),like Fig. 9 As shown, if there are points 21 and 22 in the calculation process, 21 and 22 are used for calculation first, as shown in Formula 2, and the threshold t is generally set to 0.1. Otherwise, 17 and 18 are used for calculation, as shown in Formula 3, and the threshold t is generally set to 0.25. The midpoint calculation is shown in Formula 4;

[0076]

[0077]

[0078]

[0079] Finally, the first image is captured when the midpoint of the target vehicle's rear projection passes through the front line, the second image is captured when the midpoint of the target vehicle's rear projection passes through the middle line, and the third image is captured when (the midpoint of the target vehicle's rear projection passes through the rear line) or (key point 1 or 2 passes through the left turn line) or (key point 3 or 4 passes through the right turn line), thereby determining the direction of the target vehicle. If it is inconsistent with the direction of the lane recorded previously where the target vehicle is located, the captured target vehicle is not driving according to the guidance.

[0080] In summary, in target vehicle tracking, online learning is added to distinguish large and small target vehicle types, key points are added to distinguish the direction of the target vehicle, and the large and small vehicle types and vehicle direction features are integrated for tracking, which improves the accuracy of the target vehicle tracking algorithm, thereby avoiding the mistracking caused by the target vehicle not following the guidance and mistakenly capturing it, while not reducing the capture rate and improving the efficiency of the target vehicle not following the guidance; in lane judgment, the center point of the rear projection of the target vehicle is used for lane judgment, which can accurately judge the lane and avoid the influence of parallax of the traditional use of detection frame and license plate information; in the judgment of crossing the line, the center point of the rear projection of the target vehicle and the key points of the wheels are used to ensure the capture position of the vehicle when crossing the line.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0082] In this embodiment, a device for determining that a target vehicle is abnormal is also provided, and the device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0083] Fig.10 is a structural block diagram of a device for determining an abnormality of a target vehicle according to an embodiment of the present invention, such as Fig.10 As shown, the device comprises:

[0084] A first determination module 1002 is used to determine feature information of a target vehicle from an acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image;

[0085] The second determination module 1004 is used to determine the model information of the target vehicle using the center point;

[0086] The third determination module 1006 is used to determine whether the driving trajectory of the target vehicle is abnormal based on the vehicle model information of the target vehicle and the key feature points of the target vehicle.

[0087] In an exemplary embodiment, the first determination module includes: a first input unit, used to input the target image into the target model to obtain the center point of the target vehicle and the key feature points of the target vehicle output by the target model, wherein the target model is trained based on N sampling feature information and sampling vehicles corresponding to the N sampling feature information.

[0088] In an exemplary embodiment, the second determination module includes: a first division unit, used to divide the target image into M image areas; a first clustering unit, used to cluster the queues in the M image areas within a preset time period to obtain the vehicle model information of the target vehicle, wherein the queue is used to record the vehicle model information of the center point of the target vehicle in each of the image areas, and the vehicle model information includes the height of the target vehicle and the width of the target vehicle.

[0089] In an exemplary embodiment, the above-mentioned device also includes: a fourth determination module, which is used to cluster the queues in the above-mentioned M image areas within a preset time period, and after obtaining the vehicle model information of the above-mentioned target vehicle, use the height of the above-mentioned target vehicle, the width of the above-mentioned target vehicle and a preset threshold to determine the tracking range of the above-mentioned target vehicle, so as to track the driving trajectory of the above-mentioned target vehicle within the above-mentioned tracking range.

[0090] In an exemplary embodiment, the device further includes: a first connection module, used to connect N side key points in the first side of the target vehicle to obtain a first side straight line, wherein the N side key points are included in the key feature points of the target vehicle, and N is a natural number greater than 1; a second connection module, used to connect M side key points in the second side of the target vehicle to obtain a second side straight line, wherein the M side key points are included in the key feature points of the target vehicle, and M is a natural number greater than 1; a fourth determination module, used to determine the angle between the first side straight line and the vertical straight line in the vertical direction of the target vehicle to obtain a first angle; a fifth determination module, used to determine the angle between the second side straight line and the vertical straight line in the vertical direction of the target vehicle to obtain a second angle; a sixth determination module, used to determine the driving trajectory of the target vehicle based on the first angle and the second angle.

[0091] In an exemplary embodiment, the sixth determination module includes: a first determination unit, used to determine the difference between the first angle and the second angle; and a second determination unit, used to determine the trajectory of the target vehicle traveling in the area between the first angle and the second angle as the driving trajectory of the target vehicle when the difference is within a preset range.

[0092] In an exemplary embodiment, the third determination module includes: a third determination unit, used to determine the lane where the target vehicle is located from the positional relationship between the rear key point of the target vehicle and the lane line, wherein the rear key point is included in the key feature points of the target vehicle; a first acquisition unit, used to acquire image information of the target vehicle in the target area through a camera device; a fourth determination unit, used to determine the driving trajectory of the target vehicle in the target area from the image information; and a fifth determination unit, used to determine that the driving trajectory of the target vehicle is abnormal when the driving trajectory is inconsistent with a preset driving trajectory, wherein the preset driving trajectory corresponds to the lane.

[0093] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0094] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0095] In this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0096] S1, determining feature information of a target vehicle from an acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image;

[0097] S2, using the center point to determine the model information of the target vehicle;

[0098] S3, determining whether the driving trajectory of the target vehicle is abnormal based on the model information of the target vehicle and the key feature points of the target vehicle.

[0099] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0100] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0101] In an exemplary embodiment, 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.

[0102] In an exemplary embodiment, the processor may be configured to perform the following steps via a computer program:

[0103] S1, determining feature information of a target vehicle from an acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image;

[0104] S2, using the center point to determine the model information of the target vehicle;

[0105] S3, determining whether the driving trajectory of the target vehicle is abnormal based on the model information of the target vehicle and the key feature points of the target vehicle.

[0106] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0107] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for determining abnormality of a target vehicle, characterized in that: include: Determining feature information of a target vehicle from the acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; Determine the vehicle type information and tracking range of the target vehicle using the center point; Based on the model information of the target vehicle, the driving trajectory of the target vehicle determined by the key feature points of the side of the target vehicle, and the lane of the target vehicle determined by the key feature points of the rear of the target vehicle, it is determined whether the driving trajectory of the target vehicle is abnormal.

2. The method according to claim 1, characterized in that Determine characteristic information of the target vehicle from the acquired target image, including: The target image is input into a target model to obtain a center point of the target vehicle and key feature points of the target vehicle output by the target model, wherein the target model is trained based on N sampling feature information and sampling vehicles corresponding to the N sampling feature information.

3. The method according to claim 1, characterized in that Determining the vehicle type information of the target vehicle using the center point includes: Dividing the target image into M image regions; The queues in the M image areas are clustered within a preset time period to obtain the vehicle model information of the target vehicle, wherein the queue is used to record the vehicle model information of the center point of the target vehicle in each image area, and the vehicle model information includes the height of the target vehicle and the width of the target vehicle.

4. The method according to claim 3, characterized in that After clustering the queues in the M image regions within a preset time period to obtain the vehicle model information of the target vehicle, the method further includes: The tracking range of the target vehicle is determined by using the height of the target vehicle, the width of the target vehicle and a preset threshold value, so as to track the driving trajectory of the target vehicle within the tracking range.

5. The method according to claim 1, characterized in that The driving trajectory of the target vehicle is determined by: Connecting N side key points in a first side of the target vehicle to obtain a first side straight line, wherein the N side key points are included in the key feature points of the target vehicle, and N is a natural number greater than 1; Connecting M side key points in the second side of the target vehicle to obtain a second side straight line, wherein the M side key points are included in the key feature points of the target vehicle, and M is a natural number greater than 1; Determine the angle between the first side straight line and a vertical straight line in the vertical direction of the target vehicle to obtain a first angle; Determine the angle between the second side straight line and a vertical straight line in the vertical direction of the target vehicle to obtain a second angle; The driving trajectory of the target vehicle is determined based on the first angle and the second angle.

6. The method according to claim 5, characterized in that Determining the driving trajectory of the target vehicle based on the first angle and the second angle includes: determining a difference between the first angle and the second angle; When the difference is within a preset range, the trajectory of the target vehicle traveling in the area between the first angle and the second angle is determined as the driving trajectory of the target vehicle.

7. The method according to claim 1, characterized in that Determining whether the driving trajectory of the target vehicle is abnormal based on the vehicle type information of the target vehicle and the driving trajectory of the target vehicle includes: Determine the lane where the target vehicle is located from the positional relationship between the rear key point of the target vehicle and the lane line, wherein the rear key point is included in the key feature points of the target vehicle; Acquire image information of the target vehicle in the target area by means of a camera device; Determining a driving track of the target vehicle in the target area from the image information; In a case where the driving trajectory is inconsistent with a preset driving trajectory, it is determined that the driving trajectory of the target vehicle is abnormal, wherein the preset driving trajectory corresponds to the lane.

8. A device for determining abnormality of a target vehicle, characterized in that: include: A first determination module is used to determine feature information of a target vehicle from an acquired target image, wherein the feature information includes a center point of the target vehicle and key feature points of the target vehicle, wherein the center point of the target vehicle is used to identify the target vehicle in the target image; A second determination module is used to determine the model information and tracking range of the target vehicle using the center point; The third determination module is used to determine whether there is any abnormality in the driving trajectory of the target vehicle based on the vehicle model information of the target vehicle, the driving trajectory of the target vehicle determined by the key feature points of the side of the target vehicle, and the lane of the target vehicle determined by the key feature points of the rear of the target vehicle.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.