Vehicle path restoration method and device, electronic equipment and storage medium

By correcting the positioning deviation of the camera equipment and combining traffic and driving habit indicators, the accuracy of vehicle path restoration is improved, and the problems of positioning deviation and incomplete path selection in the existing technology are solved.

CN118537813APending Publication Date: 2024-08-23QINGDAO HISENSE TRANS TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410447219.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In existing vehicle path restoration technology, camera equipment positioning deviation and path selection only consider traffic attributes, resulting in insufficient accuracy in path restoration.

Method used

By acquiring multiple vehicle images, the preset positioning deviation of the camera equipment is corrected, and the actual path of the vehicle is determined by combining traffic indicators and path selection preference indicators.

Benefits of technology

The accuracy of vehicle path restoration is improved, positioning deviations are corrected, driving habits are taken into account, and the authenticity of path selection is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537813A
    Figure CN118537813A
Patent Text Reader

Abstract

The invention relates to the technical field of path restoration, and provides a vehicle path restoration method and device, electronic equipment and a storage medium, which are used for improving the accuracy of vehicle path restoration. The method comprises the following steps: acquiring a first vehicle map shot for a target vehicle; if the number of the first vehicle maps meets a number threshold value, respectively determining intersections corresponding to the first vehicle maps based on marking positioning of camera devices corresponding to the first vehicle maps; obtaining a reachable path between two intersections corresponding to every two first vehicle maps with adjacent shooting time; for reachable paths between every two intersections, if there are at least two reachable paths, determining a target path in each reachable path based on each traffic index and a path selection preference index; and restoring the vehicle path of the target vehicle based on the target paths corresponding to every two first vehicle maps with adjacent time. According to the method, the camera shooting point position is rectified, and the path selection preference index is added during path restoration, so that the accuracy of path restoration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Vehicle path restoration refers to the reconstruction of a vehicle's driving path over a period of time based on vehicle information captured by cameras at different traffic light intersections. By analyzing the reconstructed path, it can provide a certain degree of data support and assistance for traffic management, traffic safety, urban planning and other fields. Therefore, the accuracy of vehicle path restoration is very important.

[0003] In the related art, information is usually extracted directly from the images captured by the cameras at different traffic light intersections, and the road that the vehicle is most likely to pass is determined based on the location of the camera, the extracted license plate number and other information, combined with traffic attributes such as the length of all accessible paths between the two intersections and congestion conditions, and then the vehicle's path is connected into lines to achieve path restoration; however, in the above process, once various information data are inaccurate or even erroneous, for example, due to human negligence, the actual location of the camera is deviated from the location recorded in the device management, which will directly lead to errors in the path restoration result; in addition, when the vehicle is driving, it is not only the traffic attributes that affect the path selection. Considering only the traffic attributes when restoring the path will also lead to inaccurate path restoration. Summary of the invention

[0004] Embodiments of the present application provide a vehicle path restoration method, device, electronic device and storage medium to improve the accuracy of vehicle path restoration.

[0005] A vehicle path restoration method provided in an embodiment of the present application includes:

[0006] Acquire a first vehicle image taken for the target vehicle, where the first vehicle image is taken by a camera device at an intersection;

[0007] If the number of the first vehicle images meets the number threshold, then based on the annotated positioning of the camera devices corresponding to each of the first vehicle images, the intersections corresponding to each of the first vehicle images are respectively determined; wherein the annotated positioning of each camera device is obtained by updating the preset positioning after determining that there is a deviation in the preset positioning of the camera device based on the positioning data group of each reference vehicle; each positioning data group includes positioning data within a preset time period corresponding to each of the reference vehicles, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device;

[0008] Obtain a reachable path between two intersections corresponding to each two first vehicle graphs with adjacent shooting times;

[0009] For each achievable path between two intersections, if there are at least two achievable paths, determine a target path among the achievable paths based on each traffic index and the path selection preference index;

[0010] The vehicle path of the target vehicle is restored based on the target paths corresponding to every two time-adjacent first vehicle graphs.

[0011] An embodiment of the present application provides a vehicle path restoration device, comprising:

[0012] A first acquisition unit is used to acquire a first vehicle image taken for a target vehicle, where the first vehicle image is obtained by taking pictures with a camera device at an intersection;

[0013] A first determination unit is used to determine the intersections corresponding to each of the first vehicle images based on the annotated positions of the camera devices corresponding to each of the first vehicle images if the number of the first vehicle images meets the number threshold; wherein the annotated positions of each camera device are obtained by updating the preset positions after determining that there is a deviation in the preset positions of the camera device based on the positioning data groups of each reference vehicle; each positioning data group includes positioning data within a preset time period corresponding to each of the reference vehicles, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device;

[0014] A second acquisition unit is used to acquire a reachable path between two intersections corresponding to every two first vehicle graphs with adjacent shooting times;

[0015] A second determination unit is configured to determine a target path among the reachable paths between each two intersections based on the traffic indicators and the path selection preference indicators if there are at least two reachable paths;

[0016] A restoration unit is used to restore the vehicle path of the target vehicle based on the target paths corresponding to every two time-adjacent first vehicle graphs.

[0017] Optionally, the device further comprises:

[0018] A matching unit, configured to: if the number of the first vehicle images does not meet the number threshold, determine the similarity between the vehicle identification of the target vehicle and the vehicle identification of at least one other vehicle in a second vehicle image corresponding to at least one other vehicle that meets the time condition and the distance condition based on the shooting time and the shooting location of the first vehicle image; the vehicle identification is obtained by identifying the vehicle in the vehicle image;

[0019] If there are other vehicles whose vehicle identification similarity with the target vehicle meets the similarity threshold, then among at least one other vehicle that meets the similarity threshold, a matching vehicle whose corresponding similarity meets the preset selection condition is determined, and the second vehicle image of the matching vehicle is used as the first vehicle image of the target vehicle, and the steps of performing annotation positioning based on the camera equipment corresponding to each first vehicle image to respectively determine the intersections corresponding to each first vehicle image are performed.

[0020] Optionally, the second determination unit is specifically configured to, if the path selection preference index includes a group path selection preference index or an individual path selection preference index corresponding to the target vehicle, determine, for each achievable path, a decision score corresponding to the achievable path based on each traffic index corresponding to the achievable path and a traffic index weight corresponding to each traffic index, as well as the path selection preference index and a preset preference weight;

[0021] Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

[0022] Optionally, the second determination unit is specifically configured to, if the path selection preference index includes a group path selection preference index and an individual path selection preference index corresponding to the target vehicle, then for each achievable path, based on each traffic index corresponding to the achievable path and the traffic index weight corresponding to each traffic index, the group path selection preference index and the group preference weight, and the individual path selection preference index and the individual preference weight, determine the decision score corresponding to the achievable path;

[0023] Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

[0024] Optionally, the group path selection preference index is determined based on the selection results of multiple vehicles for the respective reachable paths in different historical time periods, and the individual path selection preference index is determined based on the selection results of the target vehicle for the respective reachable paths in different historical time periods.

[0025] Optionally, the device further comprises:

[0026] a notification unit, configured to determine, before obtaining a reachable path between two intersections corresponding to every two first vehicle images adjacent in shooting time, a travel speed of the target vehicle between intersections corresponding to every three first vehicle images adjacent in shooting time, if the number of the first vehicle images is at least three and different first vehicle images correspond to different intersections;

[0027] If both driving speeds are greater than the preset upper speed limit, the first vehicle image corresponding to the middle intersection is marked as data abnormal and notified;

[0028] If the reason for the data abnormality returned in the notification is that there is a deviation in the position of the camera device corresponding to the intermediate intersection, the annotation positioning of the camera device shall be corrected; if the reason for the data abnormality is that the recording time of the first vehicle image corresponding to the intermediate intersection is wrong, the first vehicle image corresponding to the intermediate intersection shall be deleted.

[0029] Optionally, if there is only one reachable path, the reachable path is used as the target path.

[0030] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned vehicle path restoration methods.

[0031] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is executed on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned vehicle path restoration methods.

[0032] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned vehicle path restoration methods.

[0033] The beneficial effects of this application are as follows:

[0034] The embodiments of the present application provide a vehicle path restoration method, device, electronic device and storage medium. The present application restores the path of the vehicle based on the vehicle images captured by the cameras at each intersection. Specifically, after obtaining the first vehicle image captured for the target vehicle, it is first determined that the number of the first vehicle images meets the quantity threshold. Thereafter, based on the annotated positioning of the camera device corresponding to each first vehicle image, it is determined which intersection the target vehicle was located at when the corresponding first vehicle image was captured. The annotated positioning may be corrected. This is because the preset positioning of the camera device is manually measured and uploaded to the system. Therefore, there may be a situation where the preset positioning is inconsistent with the actual position of the camera device due to human errors. The point deviation caused by this situation will inevitably affect the accuracy of the vehicle path restoration. Therefore, before performing the path restoration, it is determined whether there is a positioning deviation in the preset positioning of the camera device based on the positioning data group of the reference vehicle. If there is, it will be corrected to solve the problem of positioning deviation.

[0035] Furthermore, after obtaining all accessible paths between two intersections corresponding to the first vehicle images with every two adjacent shooting times, in addition to selecting among the accessible paths based on traffic indicators, the present application also considers path selection preference indicators related to the driver's driving habits, so that the final target path is closer to the actual situation, thereby improving the accuracy of path restoration.

[0036] Other features and advantages of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] 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:

[0038] Figure 1 A schematic diagram of an application scenario of a vehicle path restoration method provided in an embodiment of the present application;

[0039] Figure 2 An overall flow chart of a vehicle path restoration method provided in an embodiment of the present application;

[0040] Figure 3 A road schematic diagram provided for an embodiment of the present application;

[0041] Figure 4 A schematic diagram of a capture point location error provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of the shortest distance between points and lines provided in an embodiment of the present application;

[0043] Figure 6 Another schematic diagram of the shortest distance between points and lines provided in an embodiment of the present application;

[0044] Figure 7 A position deviation list provided in an embodiment of the present application;

[0045] Figure 8 A schematic diagram of spatiotemporal fuzzy matching provided in an embodiment of the present application;

[0046] Fig. 9 A schematic diagram of multiple optional paths provided in an embodiment of the present application;

[0047] Fig.10 Another schematic diagram of multiple optional paths provided in an embodiment of the present application;

[0048] Fig.11 A logical schematic diagram of vehicle path restoration provided in an embodiment of the present application;

[0049] Fig.12 A schematic diagram of the marking and positioning of a camera device provided in an embodiment of the present application;

[0050] Fig.13 A schematic diagram of path restoration and point correction provided in an embodiment of the present application;

[0051] Fig.14 A schematic diagram of the structure of a vehicle path restoration device provided in an embodiment of the present application;

[0052] Fig.15 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0054] The following is an introduction to some concepts involved in the embodiments of the present application.

[0055] Marking positioning: At traffic light intersections, there are often cameras to take pictures of passing vehicles. The coordinate position of the camera is usually located and the positioning result, that is, the preset positioning, is recorded in the relevant system to determine the intersection position that the vehicle photographed by the camera passed when shooting. However, due to manual positioning, there is a high possibility of inaccurate positioning or errors in entering the positioning into the system, that is, point-point errors, which makes the preset positioning inconsistent with the actual position. At this time, the preset positioning needs to be corrected to obtain the marked positioning; for the preset positioning without point-point errors, the preset positioning is directly used as the marked positioning.

[0056] Path selection preference index: includes at least one of a group path selection preference index and an individual path selection preference index, wherein the group path selection preference index is determined by the selection results made by all vehicles passing through two intersections in the accessible paths corresponding to the two intersections in different historical time periods, and the individual path selection preference index is only determined by the selection results of the target vehicle on the above-mentioned accessible paths in different historical time periods.

[0057] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0058] like Figure 1 As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes two camera devices 110, a server 120 and a target vehicle 130.

[0059] In the embodiment of the present application, different camera devices 110 are located at different intersections, or at different positions of the same intersection, and are responsible for photographing passing vehicles. The camera devices 110 include but are not limited to video cameras, cameras and other devices; the server 120 is a background server corresponding to software or web pages, applets, etc., or a server specifically used for vehicle path restoration, which is not specifically limited in the present application. The server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0060] It should be noted that the vehicle path restoration method in each embodiment of the present application is executed by the server 120. When the server 120 is used as the execution body, after the camera device 110 obtains the first vehicle image taken for the target vehicle, it sends the first vehicle image to the server 120. After determining that the number of first vehicle images received for the target vehicle meets the quantity threshold, the server 120 obtains the marked location of the camera device corresponding to each first vehicle image, thereby determining the intersection corresponding to each first vehicle image, and for every two first vehicle images adjacent in shooting time, obtains the reachable path between the two corresponding intersections; if there are at least two reachable paths, the server determines the target path in each reachable path based on each traffic indicator and the path selection preference indicator; finally, the vehicle path of the target vehicle is restored according to the target path corresponding to every two first vehicle images adjacent in time.

[0061] In an optional implementation, the camera device 110 and the server 120 may communicate with each other via a communication network.

[0062] In an optional implementation, the communication network is a wired network or a wireless network.

[0063] It should be noted that Figure 1 The figure is only an example. In fact, the number of camera devices and servers is not limited and is not specifically limited in the embodiments of the present application.

[0064] In addition, the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation and other scenarios.

[0065] The following describes the vehicle path restoration method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect.

[0066] See also Figure 2 As shown, it is an implementation flow chart of a vehicle path restoration method provided by an embodiment of the present application. The specific implementation process of the method is as follows S201-S205:

[0067] S201: The server obtains a first vehicle image taken for a target vehicle.

[0068] In the above, the first vehicle image is obtained by taking pictures based on the camera equipment at the intersection; the camera equipment is installed at the traffic light intersection, and can capture passing vehicles. When the target vehicle passes through the intersection with the camera equipment, the vehicle image will be captured. This application is based on the vehicle image to determine the intersection passed by the vehicle, and further restore the vehicle path.

[0069] like Figure 3 As shown, a road schematic diagram provided in an embodiment of the present application, assuming that a vehicle is photographed at intersection 1 and intersection 2 by the camera equipment at the corresponding intersection, it can be determined based on the vehicle image and the shooting time that the vehicle has passed through intersection 1 and intersection 2 successively. Path decision is to decide the path that the vehicle is most likely to choose from multiple reachable paths from intersection 1 to intersection 2. What the present application needs to solve is how to improve the accuracy of the decision results and restore the vehicle's path more accurately.

[0070] It should be noted that due to the limited size of the image, Figure 3 Only two accessible paths (path 1 and path 2) from intersection 1 to intersection 2 are shown. In fact, the number of accessible paths is greater than 2.

[0071] The target vehicle can be identified by the vehicle identification, which can be obtained from the first vehicle image. That is, it is possible to determine which vehicle images captured by each camera device are of the same vehicle based on the vehicle identification in the vehicle image.

[0072] When the same target vehicle passes through the same intersection at a certain time, and multiple vehicle images are continuously captured by the same camera device or different camera devices (for example, the camera device of the straight signal light and the camera device of the left turn signal light at the same intersection both capture the target vehicle), a time period (for example, 5 seconds, 10 seconds) can be set based on the actual situation. If the difference in the shooting time of the multiple vehicle images is within the above time period, only the latest vehicle image is retained as the first vehicle image corresponding to the target vehicle when passing through the intersection. If the shooting time interval of the two vehicle images is long, it is possible that the target vehicle returns to pass through the intersection again after passing through the intersection for a period of time. Therefore, it is necessary to retain both vehicle images and use them as the first vehicle images corresponding to the target vehicle when passing through the intersection twice.

[0073] S202: If the number of the first vehicle images meets the number threshold, the server determines the intersections corresponding to the first vehicle images based on the marked positioning of the camera devices corresponding to the first vehicle images.

[0074] Among them, the quantity threshold can be 2, and the annotated positioning of each camera device is obtained by updating the preset positioning after determining that there is a deviation in the preset positioning of the camera device based on the positioning data group of each reference vehicle; each positioning data group includes the positioning data within a preset time period corresponding to each reference vehicle, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device.

[0075] In the above, the location of the intersection where the camera device is located can be used as the preset location of the camera device. The preset location is generally measured manually and manually entered into the relevant server, database or traffic system. However, manual measurement may result in measurement errors or measurement deviations, and there may be input errors when entering the seat ticket, that is, the capture point position is wrong, such as Figure 4 As shown, it is a schematic diagram of the error of capturing point positions provided in an embodiment of the present application. The thicker arrow line in the figure represents the actual driving trajectory of the reference vehicle. The preset position of the camera equipment that photographed the reference vehicle (that is, the capturing point position) is also marked in the figure. Most of the points are on the actual driving trajectory of the reference vehicle, but there are two (circled with dotted circles on the way) that deviate from the original driving trajectory, that is, the preset positions of these two points do not match the actual positions, and there is a deviation.

[0076] For the deviated points, the wrong intersection will be located when the target vehicle's path is restored later, which will further lead to errors in the vehicle path restoration. Therefore, before restoring the vehicle path, it is necessary to correct the snapshot points where the points are incorrect (that is, the preset positioning of the camera equipment).

[0077] Specifically, taking the preset positioning of a camera device at an intersection as an example, within a preset time period, the server obtains a third vehicle image of all reference vehicles passing through the camera device at the intersection, and obtains a positioning data group of the reference vehicle when passing through the intersection. The positioning data group of the reference vehicle can be obtained in a manner as follows: through the vehicle positioning device on the reference vehicle, the positioning data of the geographic location of the reference vehicle can be collected and uploaded to the server, and the server can further intercept the positioning data of n minutes before and after the shooting time of the third vehicle image to form a positioning data group; the positioning data group can specifically be a string of global positioning system (English: Global Positioning System, GPS) data, etc., which is not specifically limited in this application. Since the positioning data group of the reference vehicle is needed to match the preset positioning of the camera device, the reference vehicle can select a taxi, a bus, or other vehicle that is equipped with a vehicle positioning device.

[0078] The preset time period mentioned above can be set according to actual conditions, such as the past week, the past three days, etc., and this application does not make any specific limitation.

[0079] According to the positioning data group corresponding to the reference vehicle, a small section of the reference vehicle's driving trajectory can be determined, and the preset positioning of the camera device is a coordinate point. By calculating the shortest distance between the point and the line, it can be determined whether the preset positioning of the camera device is abnormal.

[0080] like Figure 5As shown, it is a schematic diagram of the shortest distance between points and lines provided in an embodiment of the present application. The white icon in the figure is the preset positioning of the camera device, and the black icon is each positioning data in the positioning data group corresponding to the reference vehicle. According to each positioning data in the positioning data group, it can be obtained that a short section of the driving trajectory of the reference vehicle is a straight line, and the point-line distance is the perpendicular distance from the preset positioning to the trajectory line.

[0081] like Figure 6 As shown, it is another schematic diagram of the shortest distance between points and lines provided in an embodiment of the present application. The white icon in the figure is the preset positioning of the camera device, and the black icon is each positioning data in the positioning data group corresponding to the reference vehicle. According to each positioning data in the positioning data group, it can be obtained that a small section of the driving trajectory line of the reference vehicle is an arc, then the point-line distance is the perpendicular line distance from the preset positioning to the tangent of the trajectory line, and specifically the Euclidean distance can be used for calculation, etc., which will not be repeated in this application.

[0082] Specifically, a distance threshold can be set. Assuming the distance threshold is 300 meters, the data with a point-to-line distance greater than 300 meters will be marked as abnormal data and recorded. For the case where the same reference vehicle may pass the same intersection multiple times within a preset time period, the average of multiple point-to-line distances obtained for the reference vehicle can be taken to determine whether the average is greater than 300 meters. If so, it is marked as abnormal data and the data is recorded. The recording format can be as follows: Figure 7 As shown, a position deviation detailed table provided in an embodiment of the present application. In the figure, the camera device number and the capture point number are preset and stored in the server, and can be directly obtained. The vehicle identification of the reference vehicle can be obtained by identifying the reference vehicle in the corresponding third vehicle figure. Specifically, the vehicle identification can be the license plate number of the vehicle, etc., and the vehicle types of the reference vehicle include large vehicles, small vehicles, etc.; the position deviation is the point-line distance between the driving trajectory of the reference vehicle and the preset positioning of the camera device. If there are multiple point-line distances, the average of the point-line distances is recorded. Afterwards, all data within the preset time period are gathered. If the number of abnormal data problem records corresponding to the camera device at the intersection exceeds a certain number (specifically, it can be set according to actual conditions, such as more than 20 abnormal data), the preset positioning of the camera device at the intersection is marked as abnormal.

[0083] Then, the position deviations of multiple time periods can be aggregated and the average value can be calculated as the final position deviation corresponding to the camera device.

[0084] Perform the above operation for all intersections, and finally enter all intersections with abnormal markings into the point configuration error list so that the preset positioning of the camera equipment at these intersections can be corrected later. This can be done through manual correction or software correction. Manual correction can be done based on the final position deviation of the intersection and the GPS trajectory of the reference vehicle. Software correction can be done based on related map software services. The server can input the intersection name into the map software, query the longitude and latitude information corresponding to the intersection, and use the obtained longitude and latitude information as the marked positioning of the camera equipment at the intersection.

[0085] For the camera equipment without any point error, its preset position is directly used as the annotation position.

[0086] It is understandable that in the specific implementation of the present application, related data such as the vehicle positioning data group is involved. When the above embodiments of the present application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the relevant objects, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0087] After the position of the captured point is corrected based on the reference vehicle, the first vehicle map corresponding to the target vehicle for subsequent travel can be obtained to restore the path of the target vehicle. First, the relevant passing vehicle data needs to be obtained according to each first vehicle map corresponding to the target vehicle. An optional implementation method is that the server can determine the shooting time, shooting location, vehicle identification of the target vehicle in the map and other data of the first vehicle map captured by the camera device, and combine the above data into the passing vehicle data, and the shooting location can be the marked location of the corresponding camera device.

[0088] In addition, the vehicle passing data needs to be cleaned and screened. For example, if the number of first vehicle images does not meet the quantity threshold, that is, the target vehicle has only one first vehicle image, the path cannot be restored. In this case, data analysis is required. Considering that each vehicle trip rarely passes through only one intersection, that is, single-point chain travel, therefore, in this case, it is likely that the vehicle identification recognition is incorrect.

[0089] Assuming that the vehicle identification is a license plate number, the following two methods can be used to determine whether the license plate number is incorrect.

[0090] Method 1: There are certain rules for the license plate number of a vehicle. If the license plate number recognized from the first vehicle image does not conform to the established rules, it indicates that the license plate number recognition is incorrect. It can be determined by regular matching. The regular expression can be: regexp_like(CCARNUMBER, '^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-HJ-NP-Z]{1}(([A-HJ-NP-Z0-9]{5})|([0-9]{6}|[A-HJ-NP-Z]{1}[0-9]{5}|[0-9]{5}[A-HJ-NP-Z]{1}|[A-HJ-NP-Z]{2}[0-9]{4}))$').

[0091] Among them, ^ indicates the start of the matching string; $ indicates the end of the matching string.

[0092] [京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1} is a character set that matches the first character of the license plate number.

[0093] [A-HJ-NP-Z]{1} is a character set that matches the second character of the license plate number.

[0094] (([A-HJ-NP-Z0-9]{5})|([0-9]{6}|[A-HJ-NP-Z]{1}[0-9]{5}|[0-9]{5}[A-HJ-NP-Z]{1}|[A-HJ-NP-Z]{2}[0-9]{4})) matches other characters and lists various character combination cases.

[0095] After correcting the license plate number, obtain the first vehicle image corresponding to the target vehicle again according to the corrected license plate number.

[0096] Method 2: Adopt the method of spatio-temporal fuzzy matching (spatio-temporal similarity search and matching) to correct the license plate number. Among them, the similarity uses the license plate number edit distance similarity.

[0097] An optional implementation is that the server determines the similarity between the vehicle identification of the target vehicle and the vehicle identification of at least one other vehicle in the second vehicle image corresponding to at least one other vehicle that meets the time condition and the distance condition based on the shooting time and the shooting location of the first vehicle image; if there are other vehicles whose vehicle identification similarity satisfies a similarity threshold with the target vehicle, then in the at least one other vehicle that meets the similarity threshold, a matching vehicle whose corresponding similarity satisfies a preset selection condition is determined, and the second vehicle image of the matching vehicle is used as the first vehicle image of the target vehicle, and the steps of respectively determining the intersections corresponding to each first vehicle image are performed based on the annotation positioning of the camera equipment corresponding to each first vehicle image.

[0098] like Figure 8 As shown, it is a schematic diagram of a spatiotemporal fuzzy matching provided by an embodiment of the present application, only in Figure 8 A first vehicle image of a target vehicle is captured at the most central intersection in the image, and the time range and geographical range of the search are defined based on the shooting time and shooting location (e.g. Figure 8 The target vehicle is matched with other vehicles based on the similarity of the license plate numbers within the range.

[0099] The specific demarcation range, that is, the time condition and the distance condition can be set according to the actual situation. For example, the time condition can be within 20 minutes before and after the shooting time of the first vehicle image, and the distance condition can be within 1 km around the shooting location of the first vehicle image as the center. With the time condition and the distance condition as restrictions, the second vehicle image corresponding to other vehicles is searched within the above range, and the similarity between the vehicle identification of other vehicles in the second vehicle image and the vehicle identification of the target vehicle is compared, and other vehicles whose similarity meets the similarity threshold are screened out, and then the matching vehicles that meet the preset selection conditions are further screened out. The preset selection conditions can be other vehicles with the highest similarity, etc.

[0100] After the matching vehicle is determined, the target vehicle and the matching vehicle can be determined to be the same vehicle, the license plate number of the target vehicle can be corrected to the license plate number of the matching vehicle, and the second vehicle image corresponding to the matching vehicle can also be used as the first vehicle image corresponding to the target vehicle. That is, at this time, all the first vehicle images corresponding to the target vehicle include a first vehicle image originally corresponding to the target vehicle and a second vehicle image corresponding to the matching vehicle.

[0101] If, after the above two methods, it is determined that the target vehicle's license plate number is not misidentified and the target vehicle has only one vehicle map, the first vehicle map corresponding to the target vehicle is deleted and the path of the target vehicle is not restored.

[0102] In addition, if the matching vehicle determined by method two also corresponds to only one second vehicle map, it is necessary to identify the license plate number in the first vehicle map that the target vehicle originally corresponds to and the license plate number in the second vehicle map that the matching vehicle corresponds to, and analyze which license plate number has a number error. After correcting the wrong number, the target vehicle and the matching vehicle are regarded as the same vehicle and the two vehicle maps (the first vehicle map and the second vehicle map) are merged. If they cannot be identified, the first vehicle map corresponding to the target vehicle is also deleted, and the path of the target vehicle is not restored.

[0103] In addition to determining the preset location of the capture point by referring to the vehicle's positioning data, and cleaning the passing vehicle data by correcting license plate errors, this application also considers determining whether there is a problem with the passing vehicle data by using time and space inaccessibility.

[0104] An optional implementation is that if the number of first vehicle images is at least three, and different first vehicle images correspond to different intersections, the server determines the driving speed of the target vehicle between intersections corresponding to every two first vehicle images with adjacent shooting times among the intersections corresponding to every three first vehicle images with adjacent shooting times; if both driving speeds are greater than a preset speed upper limit, the server marks the first vehicle image corresponding to the middle intersection as a data abnormality and notifies.

[0105] Furthermore, if the cause of the data abnormality returned in the notification is that there is a deviation in the position of the camera equipment corresponding to the middle intersection, the annotation positioning of the camera equipment is corrected; if the cause of the data abnormality is that the recording time of the first vehicle image corresponding to the middle intersection is wrong, the first vehicle image corresponding to the middle intersection is deleted.

[0106] Specifically, the target vehicle is assumed to pass through intersections A, B, and C successively, and the distances between points AB and BC are l1 and l2 respectively, and the passing time is t1 and t2 respectively. Then the average speed of the target vehicle between points AB and BC is v1=l1 / t1, v2=l2 / t2. If both v1 and v2 are greater than the preset speed limit, it can be determined that the target vehicle is inaccessible in time and space for two consecutive sections of the journey, and it can be further determined that there is a capture point position error or a time calibration problem at point B. The server can mark the data abnormality of the first vehicle image taken by the camera device and notify relevant personnel to troubleshoot the problem.

[0107] In addition, correcting the preset positioning of the camera equipment by referring to the vehicle cannot cover all the camera equipment. Therefore, there may be camera equipment with incorrect positioning that has not been corrected. Incorrectly marked positioning of the camera equipment will also cause a single point to form a chain. If relevant personnel determine that the cause of the abnormality is that there is a deviation in the position of the camera equipment corresponding to the B point intersection, that is, the capture point is wrong, the marked positioning of the camera equipment will be corrected; if it is determined that the cause of the abnormality is that the recording time of the first vehicle image corresponding to the B point intersection is wrong, the first vehicle image corresponding to the B point intersection will be deleted.

[0108] Finally, the server determines the sequence of intersections and routes passed by the target vehicle based on the vehicle passing data corresponding to all first vehicle graphs after the final data corresponding to the target vehicle has been cleaned.

[0109] S203: The server obtains a reachable path between two intersections corresponding to every two first vehicle graphs with adjacent shooting times.

[0110] For all intersections that the target vehicle passes through, the server needs to obtain the reachable paths between every two adjacent intersections, and the upper limit of the reachable paths can be limited, for example, a maximum of five reachable paths are obtained for every two adjacent intersections.

[0111] The reachable path gives priority to the shortest reachable path. Assuming that the upper limit of the number of reachable paths is 5, and the intersections are A and B, the server can first find a reachable path with the shortest distance between A and B and record it as AB1. Then, without considering AB1, continue to look for a reachable path with the shortest distance and record it as AB2, and so on, until AB5 is recorded, or all reachable paths have been traversed, and then stop obtaining the reachable path between A and B.

[0112] Specifically, the reachable path can be generated by the A* algorithm. Assuming that the upper limit of the shortest reachable path is K, and the total reachable paths between two intersections are greater than K, then the K shortest reachable paths meet the following conditions: The K shortest reachable paths are generated in order, that is, for all i (i = 1, 2, ..., K-1), the reachable path p i is on a reachable path p i+1 The K shortest reachable paths are determined before; they are arranged in ascending order of length, that is, for all i (i = 1, 2, ..., K-1), there is c (p i )<c(p i+1 ), where c represents the length; the K shortest reachable paths are the K reachable paths with the shortest length among all reachable paths between two intersections, that is, for all reachable paths p∈P st -P K , both have c(p K )<c(p).

[0113] In addition, if no reachable path can be found between two adjacent intersections, the data can be marked as abnormal and the driving path of the target vehicle will not be restored.

[0114] S204: For every achievable path between two intersections, if there are at least two achievable paths, the server determines a target path from each achievable path based on each traffic index and the path selection preference index.

[0115] In the related art, when making multi-path decisions (i.e., selecting a target path from accessible paths), only traffic indicators are often considered while vehicle travel preferences are ignored, resulting in poor path restoration results. Therefore, this application uses both path selection preferences and traffic conditions as decision indicators when making multi-path decisions, and then selects the target path from accessible paths.

[0116] Still assuming that the K reachable paths between the two intersections A and B are analyzed, the traffic indicators may include path length (the length of each of the K reachable paths between A and B); the number of signal-controlled intersections (the number of signal-controlled intersections that each of the K reachable paths between A and B needs to pass through); the number of turns; the path congestion index (the average of the comprehensive congestion index of each link included in each of the K reachable paths between A and B), etc.

[0117] The path selection preference index includes at least one of a group path selection preference index and an individual path selection preference index corresponding to the target vehicle. If the path selection preference index includes only one, that is, the group path selection preference index or the individual path selection preference index corresponding to the target vehicle, then for each reachable path, the server can determine the decision score corresponding to the reachable path based on each traffic index corresponding to the reachable path and the traffic index weight corresponding to each traffic index, as well as the path selection preference index and the preset preference weight;

[0118] Specifically, if the path selection preference index includes a group path selection preference index, then the above path selection preference index is the group path selection preference index, and the preset preference weight is the group preference weight; if the path selection preference index includes an individual path selection preference index, then the above path selection preference index is the individual path selection preference index, and the preset preference weight is the individual preference weight.

[0119] If the path selection preference index includes two types: a group path selection preference index and an individual path selection preference index corresponding to the target vehicle, then for each reachable path, the server can determine the decision score corresponding to the reachable path based on the traffic indicators corresponding to the reachable path and the traffic indicator weights corresponding to each traffic indicator, the group path selection preference index and the group preference weight, and the individual path selection preference index and the individual preference weight.

[0120] After determining the decision score corresponding to each reachable path, the server can determine the target path among the reachable paths based on the decision scores corresponding to the reachable paths. For example, the reachable path with the highest decision score is used as the target path. Alternatively, a reachable path is randomly selected as the target path from all reachable paths whose decision scores exceed a certain limit.

[0121] The group path selection preference can be mainly determined by the proportion of the selection results of all vehicles passing through two intersections in each optional path within a certain historical period, such as Fig. 9 FIG. 1 is a schematic diagram of multiple optional paths provided in an embodiment of the present application. Fig. 9 There are multiple paths from intersection A to intersection B. Suppose four reachable paths AabB, AcbB, AcB, and AdeB are selected for analysis, and the historical time period is selected within the past week. Then, the selection results of all vehicles passing through AB in the past week on the above four reachable paths are summarized. Suppose 33% of the vehicles choose AabB, 21% of the vehicles choose AcbB, 40% of the vehicles choose AcB, and 6% of the vehicles choose AdeB. Then, the group path selection preference index corresponding to each reachable path can be determined based on the above percentage data, for example, the percentage value can be directly used as the index value.

[0122] In addition, there is a situation where Fig.10 As shown, it is another schematic diagram of multiple optional paths provided in an embodiment of the present application. All accessible paths between AB will pass through point f at the beginning, that is, they all have a common path. There are three accessible paths, namely: AfgmB, AfhqB, AlB. In this case, the Bayesian principle can be adopted. Suppose the vehicle passes through A and B, and the next feasible points are g, h, and l. Then the probability of path g, that is, the probability of selecting AfgmB is the posterior probability P(g│AB)=P(AfgmB) / P(AB), and the same is true for the other two paths.

[0123] Afterwards, the group path selection preference index corresponding to each reachable path can be determined based on the posterior probability, for example, each posterior probability is directly used as an index value.

[0124] The individual path selection preference index only analyzes the preference of the current target vehicle's travel trajectory. It can obtain all the data of the target vehicle passing through the two intersections A and B in a certain historical period of time, and analyze its selection results for the accessible path.

[0125] In the above, the group path selection preference index can be determined based on the selection results of multiple vehicles for each reachable path in different historical time periods, and the individual path selection preference index can also be determined based on the selection results of the target vehicle for each reachable path in different historical time periods. Different historical time periods can be different seasons, such as the group path selection preference index and individual path selection preference index corresponding to spring, the group path selection preference index and individual path selection preference index corresponding to summer, etc. When it is specifically applied, the group path selection preference index and individual path selection preference index corresponding to different periods can be selected according to the current season for calculation; further, it can also be the path selection preference index under different weather conditions, for example, the group path selection preference index and individual path selection preference index corresponding to rainy days, the group path selection preference index and individual path selection preference index corresponding to snowy days, the group path selection preference index and individual path selection preference index corresponding to sunny days, etc. Similarly, when restoring the path, different group path selection preference indexes and individual path selection preference indicators can be selected according to the weather when the vehicle image was taken, etc.

[0126] It should be noted that the above-mentioned method of calculating indicators through corresponding weights is only an example. Other methods for calculating indicators are applicable to this application, and this application does not make specific limitations.

[0127] In addition, in the case where there is only one reachable path between two intersections, the reachable path can be directly used as the target path corresponding to the intersection.

[0128] S205: The server restores the vehicle path of the target vehicle based on the target paths corresponding to every two time-adjacent first vehicle graphs.

[0129] After obtaining the target paths corresponding to all adjacent intersections, all target paths are connected in sequence to restore the vehicle path of the target vehicle.

[0130] In summary, if Fig.11 As shown, it is a logical schematic diagram of vehicle path restoration provided in an embodiment of the present application. Before performing path restoration, the server will first perform data preprocessing on the path. Specifically, the preprocessing includes: correcting the preset positioning of the camera device with deviations by referring to the vehicle, that is, correcting the position of the capture point; making a spatial and temporal unreachability judgment on the target vehicle; cleaning the passing vehicle data obtained based on the first vehicle map, and the cleaning of the passing vehicle data is mainly for the cleaning and correction of vehicle identification (such as license plate number). The incorrect recognition of vehicle identification is mainly manifested in the case of single-point chaining. Therefore, based on the single-point chaining analysis, regular matching, spatial and temporal fuzzy matching and other methods can be used to clean and correct the vehicle identification. Among them, the labeled positioning of the camera device can also be corrected during the single-point chaining process.

[0131] After data preprocessing, the accessible paths of adjacent intersections corresponding to the shooting time passed by the target vehicle are obtained, and indicators of each accessible path are calculated. The indicators mainly include path length, number of signal-controlled intersections, number of turns, path congestion index, group path selection preference index, individual path selection preference index. Path decision is made based on the indicator calculation results, that is, the target path is determined from each reachable path, and finally the path is restored according to each target path.

[0132] The method proposed in this application can effectively correct the erroneous capture points and accurately restore the vehicle path, such as Fig.12 As shown in FIG. 1 , a schematic diagram of the marking and positioning of a camera device provided in an embodiment of the present application is shown. Based on the marking and positioning of the camera device that takes a vehicle image of the same vehicle, the positions of seven camera devices are shown in the figure. After path restoration, the following can be obtained: Fig.13 A schematic diagram of path restoration and point correction is shown, in which the thick line in the figure represents the restored vehicle's driving trajectory, and a snapshot point with a position deviation is corrected, which is the black icon circled by a dotted line in the figure. The corrected snapshot point falls on the vehicle's driving trajectory, which is the black icon not circled by a dotted line in the figure.

[0133] Based on the same inventive concept, the embodiment of the present application also provides a vehicle path restoration device. Fig.14 As shown, it is a structural schematic diagram of a vehicle path restoration device, which may include:

[0134] A first acquisition unit 1401 is used to acquire a first vehicle image taken for a target vehicle, where the first vehicle image is obtained by taking pictures with a camera device at an intersection;

[0135] A first determining unit 1402 is configured to determine the intersections corresponding to the first vehicle images respectively based on the annotated positioning of the camera devices corresponding to the first vehicle images if the number of the first vehicle images meets the number threshold; wherein the annotated positioning of each camera device is obtained by updating the preset positioning after determining that there is a deviation in the preset positioning of the camera device based on the positioning data group of each reference vehicle; each positioning data group includes positioning data within a preset time period corresponding to each reference vehicle, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device;

[0136] The second acquisition unit 1403 is used to acquire a reachable path between two intersections corresponding to every two first vehicle graphs with adjacent shooting times;

[0137] The second determining unit 1404 is configured to determine a target path among the reachable paths between each two intersections based on the traffic indicators and the path selection preference indicators if there are at least two reachable paths.

[0138] The restoration unit 1405 is used to restore the vehicle path of the target vehicle based on the target paths corresponding to every two time-adjacent first vehicle graphs.

[0139] Optionally, the device further comprises:

[0140] The matching unit 1406 is configured to: if the number of the first vehicle images does not meet the number threshold, determine the similarity between the vehicle identification of the target vehicle and the vehicle identification of the at least one other vehicle in a second vehicle image corresponding to at least one other vehicle that meets the time condition and the distance condition based on the shooting time and the shooting location of the first vehicle image; the vehicle identification is obtained by identifying the vehicle in the vehicle image;

[0141] If there are other vehicles whose vehicle identification similarity with the target vehicle meets the similarity threshold, then among at least one other vehicle that meets the similarity threshold, a matching vehicle whose corresponding similarity meets the preset selection condition is determined, and the second vehicle image of the matching vehicle is used as the first vehicle image of the target vehicle, and the steps of performing annotation positioning based on the camera equipment corresponding to each first vehicle image to respectively determine the intersections corresponding to each first vehicle image are performed.

[0142] Optionally, the second determining unit 1404 is specifically configured to, if the path selection preference index includes a group path selection preference index or an individual path selection preference index corresponding to the target vehicle, determine, for each achievable path, a decision score corresponding to the achievable path based on each traffic index corresponding to the achievable path and a traffic index weight corresponding to each traffic index, as well as the path selection preference index and a preset preference weight;

[0143] Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

[0144] Optionally, the second determining unit 1404 is specifically configured to, if the path selection preference index includes a group path selection preference index and an individual path selection preference index corresponding to the target vehicle, then for each achievable path, based on each traffic index corresponding to the achievable path and the traffic index weight corresponding to each traffic index, the group path selection preference index and the group preference weight, and the individual path selection preference index and the individual preference weight, determine the decision score corresponding to the achievable path;

[0145] Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

[0146] Optionally, the group path selection preference index is determined based on the selection results of multiple vehicles for the respective reachable paths in different historical time periods, and the individual path selection preference index is determined based on the selection results of the target vehicle for the respective reachable paths in different historical time periods.

[0147] Optionally, the device further comprises:

[0148] The notification unit 1407 is configured to determine, before obtaining a reachable path between two intersections corresponding to every two first vehicle graphs adjacent in shooting time, if the number of the first vehicle graphs is at least three and different first vehicle graphs correspond to different intersections, then, among the intersections corresponding to every three first vehicle graphs adjacent in shooting time, determine a travel speed of the target vehicle between intersections corresponding to every two first vehicle graphs adjacent in shooting time;

[0149] If both driving speeds are greater than the preset upper speed limit, the first vehicle image corresponding to the middle intersection is marked as data abnormal and notified;

[0150] If the reason for the data abnormality returned in the notification is that there is a deviation in the position of the camera device corresponding to the intermediate intersection, the annotation positioning of the camera device shall be corrected; if the reason for the data abnormality is that the recording time of the first vehicle image corresponding to the intermediate intersection is wrong, the first vehicle image corresponding to the intermediate intersection shall be deleted.

[0151] Optionally, if there is only one reachable path, the reachable path is used as the target path.

[0152] After introducing the vehicle path restoration method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0153] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0154] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server, such as Figure 1 In this embodiment, the structure of the electronic device can be as follows: Fig.15As shown, it includes a memory 1501 , a communication module 1503 and one or more processors 1502 .

[0155] The memory 1501 is used to store computer programs executed by the processor 1502. The memory 1501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0156] The memory 1501 may be a volatile memory, such as a random-access memory (RAM); the memory 1501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1501 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1501 may be a combination of the above memories.

[0157] The processor 1502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1502 is used to implement the above vehicle path restoration method when calling the computer program stored in the memory 1501 .

[0158] The communication module 1503 is used to communicate with terminal devices and other servers.

[0159] The specific connection medium between the memory 1501, the communication module 1503 and the processor 1502 is not limited in the embodiment of the present application. Fig.15 In the embodiment, the memory 1501 and the processor 1502 are connected via a bus 1504. The bus 1504 is connected to the processor 1502 via a bus 1504. Fig.15 The connections between the other components are described with bold lines, which are only for illustration and are not intended to be limiting. The bus 1504 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.15 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0160] The memory 1501 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the vehicle path restoration method of the embodiment of the present application. The processor 1502 is used to execute the above-mentioned vehicle path restoration method, such as Figure 2 shown.

[0161] In some possible implementations, various aspects of the vehicle path restoration method provided by the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the vehicle path restoration method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 2 Follow the steps shown in .

[0162] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0163] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0164] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0165] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0167] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A vehicle path restoration method, characterized in that: The method comprises: Acquire a first vehicle image taken for the target vehicle, where the first vehicle image is taken by a camera device at an intersection; If the number of the first vehicle images meets the number threshold, then based on the annotated positioning of the camera devices corresponding to each of the first vehicle images, the intersections corresponding to each of the first vehicle images are respectively determined; wherein the annotated positioning of each camera device is obtained by updating the preset positioning after determining that there is a deviation in the preset positioning of the camera device based on the positioning data group of each reference vehicle; each positioning data group includes positioning data within a preset time period corresponding to each of the reference vehicles, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device; Obtain a reachable path between two intersections corresponding to each two first vehicle graphs with adjacent shooting times; For each achievable path between two intersections, if there are at least two achievable paths, determine a target path among the achievable paths based on each traffic index and the path selection preference index; The vehicle path of the target vehicle is restored based on the target paths corresponding to every two time-adjacent first vehicle graphs.

2. The method according to claim 1, characterized in that The method further comprises: If the number of the first vehicle images does not meet the number threshold, then based on the shooting time and shooting location of the first vehicle image, in a second vehicle image corresponding to at least one other vehicle that meets the time condition and the distance condition, determine the similarity between the vehicle identification of the target vehicle and the vehicle identification of the at least one other vehicle; the vehicle identification is obtained by identifying the vehicle in the vehicle image; If there are other vehicles whose vehicle identification similarity with the target vehicle meets the similarity threshold, then among at least one other vehicle that meets the similarity threshold, a matching vehicle whose corresponding similarity meets the preset selection condition is determined, and the second vehicle image of the matching vehicle is used as the first vehicle image of the target vehicle, and the steps of performing annotation positioning based on the camera equipment corresponding to each first vehicle image to respectively determine the intersections corresponding to each first vehicle image are performed.

3. The method according to claim 1, characterized in that If the path selection preference index includes a group path selection preference index or an individual path selection preference index corresponding to the target vehicle, determining a target path from each achievable path based on each traffic index and the path selection preference index includes: For each achievable path, based on each traffic indicator corresponding to the achievable path and the traffic indicator weight corresponding to each traffic indicator, as well as the path selection preference indicator and the preset preference weight, determine the decision score corresponding to the achievable path; Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

4. The method according to claim 1, characterized in that If the path selection preference index includes a group path selection preference index and an individual path selection preference index corresponding to the target vehicle, then based on each traffic index and the path selection preference index, determining a target path from each achievable path includes: For each achievable path, based on each traffic indicator corresponding to the achievable path and the traffic indicator weight corresponding to each traffic indicator, the group path selection preference indicator and the group preference weight, and the individual path selection preference indicator and the individual preference weight, determine the decision score corresponding to the achievable path; Based on the decision scores corresponding to the respective achievable paths, a target path is determined among the achievable paths.

5. The method according to claim 3 or 4, characterized in that The group path selection preference index is determined based on the selection results of multiple vehicles for the respective reachable paths in different historical time periods, and the individual path selection preference index is determined based on the selection results of the target vehicle for the respective reachable paths in different historical time periods.

6. The method according to claim 1, characterized in that Before obtaining a reachable path between two intersections corresponding to each two first vehicle graphs with adjacent shooting times, the method further includes: If the number of the first vehicle images is at least three, and different first vehicle images correspond to different intersections, then, among the intersections corresponding to the first vehicle images at every three adjacent shooting times, determine the travel speed of the target vehicle between the intersections corresponding to the first vehicle images at every two adjacent shooting times; If both driving speeds are greater than the preset upper speed limit, the first vehicle image corresponding to the middle intersection is marked as data abnormal and notified; If the reason for the data abnormality returned in the notification is that there is a deviation in the position of the camera device corresponding to the intermediate intersection, the annotation positioning of the camera device shall be corrected; if the reason for the data abnormality is that the recording time of the first vehicle image corresponding to the intermediate intersection is wrong, the first vehicle image corresponding to the intermediate intersection shall be deleted.

7. A vehicle path restoration device, characterized in that: include: A first acquisition unit is used to acquire a first vehicle image taken for a target vehicle, where the first vehicle image is obtained by taking pictures with a camera device at an intersection; A first determination unit is used to determine the intersections corresponding to each of the first vehicle images based on the annotated positions of the camera devices corresponding to each of the first vehicle images if the number of the first vehicle images meets the number threshold; wherein the annotated positions of each camera device are obtained by updating the preset positions after determining that there is a deviation in the preset positions of the camera device based on the positioning data groups of each reference vehicle; each positioning data group includes positioning data within a preset time period corresponding to each of the reference vehicles, and the preset time period is determined based on the time when the corresponding reference vehicle is photographed by the camera device; A second acquisition unit is used to acquire a reachable path between two intersections corresponding to every two first vehicle graphs with adjacent shooting times; A second determination unit is configured to determine a target path among the reachable paths between each two intersections based on the traffic indicators and the path selection preference indicators if there are at least two reachable paths; A restoration unit is used to restore the vehicle path of the target vehicle based on the target paths corresponding to every two time-adjacent first vehicle graphs.

8. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 6.

10. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the steps of any one of the methods described in claims 1 to 6.

Citation Information

Patent Citations

  • Camera position calibration method and device

    CN105336171A

  • Commuting vehicle space-time trajectory reconstruction method and system based on license plate recognition data

    CN111243277A

  • Vehicle trajectory reconstruction method based on license plate recognition data

    CN112365711A

  • Vehicle trajectory determination method and device, storage medium and electronic device

    CN114743165A

  • Missing path recovery method based on sparse license plate recognition data

    CN115565367A