A method, device, electronic device and storage medium for determining vehicle trajectory

By comparing the driver's first facial feature with the second facial feature of the identified vehicle in the vehicle image, the problem of inaccurate vehicle image classification is solved and the accuracy of the vehicle trajectory is improved.

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

Patent Information

Application Number
CN202210373656.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2024-09-10
Estimated Expiration
2042-04-06

AI Technical Summary

Technical Problem

The classification method of vehicle images in the existing technology is unreasonable, resulting in the problem of inaccurate vehicle trajectories.

Method used

By obtaining vehicle trajectory representation data within a specified time period in a designated area, if the vehicle identity is not successfully recognized from the vehicle image, the first facial features of the driver and the second face of the vehicle that has successfully identified the vehicle identity are used The features are compared, and if they match, it is determined that the vehicle image belongs to the corresponding vehicle, and the vehicle's trajectory is generated based on the vehicle's trajectory reference image.

Benefits of technology

The classification accuracy of vehicle images and the accuracy of vehicle trajectories are improved, and the number of trajectory reference images is increased, thereby improving the accuracy of the final vehicle trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114863400B
    Figure CN114863400B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for determining vehicle tracks, belonging to the field of artificial intelligence technology. The method includes: obtaining vehicle track representation data within a specified time period in a specified area, the vehicle track representation data including multiple vehicle images, location information and time information corresponding to each vehicle image, if no vehicle identification is successfully identified from any vehicle image, then the first facial feature of the driver in the vehicle image is compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, if the first facial feature matches the second facial feature corresponding to any vehicle, then the vehicle image is determined as the track reference image of the corresponding vehicle, and then based on each track reference image of each vehicle, the location information and time information corresponding to each track reference image, the track of the vehicle is generated. In this way, the classification accuracy of the vehicle image can be improved, and the accuracy of the vehicle track finally determined can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, electronic device and storage medium for determining a vehicle trajectory. Background Art

[0002] With the improvement of my country's economic level, there are more and more vehicles on the road, and the road monitoring system collects more and more vehicle images every day.

[0003] In some scenarios, it is necessary to determine the trajectory of each vehicle based on a large number of vehicle images. However, the relevant technical solutions are implemented based on the vehicle identification in the vehicle image, such as the license plate number. Due to occlusion, shooting angle, and shooting light problems, the vehicle identification in the vehicle image is often unable to be successfully identified. At this time, it is difficult to accurately classify the vehicle image, that is, to determine which vehicle the vehicle image belongs to, resulting in the final determined vehicle trajectory being inaccurate.

[0004] It can be seen that in the prior art, there is a problem that the classification method of vehicle images is unreasonable, resulting in inaccurate vehicle trajectory being finally determined. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for determining a vehicle trajectory, so as to solve the problem in the prior art that the classification method of vehicle images is unreasonable, resulting in inaccurate vehicle trajectory being finally determined.

[0006] In a first aspect, an embodiment of the present application provides a method for determining a vehicle trajectory, comprising:

[0007] Acquire vehicle trajectory representation data within a specified time period in a specified area, wherein the vehicle trajectory representation data includes a plurality of vehicle images, and location information and time information corresponding to each vehicle image;

[0008] If it is determined that the vehicle identification is not successfully identified from any vehicle image, comparing the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified;

[0009] If it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, then determining that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and determining the vehicle image as a trajectory reference image of the vehicle;

[0010] Based on each trajectory reference image of each vehicle, and the position information and time information corresponding to each trajectory reference image, the trajectory of the vehicle is generated.

[0011] In some embodiments, comparing the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified includes:

[0012] Selecting, from the vehicles whose vehicle identifications have been successfully identified, a candidate vehicle whose appearance features match the appearance features of the vehicle in the vehicle image;

[0013] The first facial feature is compared with a second facial feature corresponding to the candidate vehicle.

[0014] In some embodiments, if it is determined that the vehicle logo is successfully recognized from the vehicle image, the method further includes:

[0015] If the vehicle identifier in the vehicle image is not recognized for the first time, it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as a trajectory reference image of the vehicle.

[0016] In some embodiments, if the vehicle logo in the vehicle image is recognized for the first time, the method further includes:

[0017] It is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

[0018] In some embodiments, before determining the vehicle image as the trajectory reference image of the newly appeared vehicle, the method further includes:

[0019] Comparing the vehicle features of the vehicle image with the vehicle features corresponding to the vehicle whose vehicle identification has been successfully identified, the vehicle features of any vehicle including the vehicle identification and / or appearance features of the vehicle;

[0020] It is determined that the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully recognized.

[0021] In some embodiments, if it is determined that the vehicle features of the vehicle image do not match the vehicle features of each vehicle whose vehicle identification has been successfully identified, the method further includes:

[0022] comparing a first facial feature of the driver in the vehicle image with a second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified;

[0023] If it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, the vehicle image is determined as a trajectory reference image of the vehicle.

[0024] In a second aspect, an embodiment of the present application provides a device for determining a vehicle trajectory, comprising:

[0025] An acquisition module, used to acquire vehicle trajectory representation data within a specified time period in a specified area, wherein the vehicle trajectory representation data includes a plurality of vehicle images, and location information and time information corresponding to each vehicle image;

[0026] A first comparison module is used to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified if it is determined that the vehicle identification has not been successfully identified from any vehicle image;

[0027] a classification module, configured to, if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle, determine that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and determine the vehicle image as a trajectory reference image of the vehicle;

[0028] The generating module is used to generate the trajectory of each vehicle based on each trajectory reference image of each vehicle and the position information and time information corresponding to each trajectory reference image.

[0029] In some embodiments, the first comparison module is specifically used for:

[0030] Selecting, from the vehicles whose vehicle identifications have been successfully identified, a candidate vehicle whose appearance features match the appearance features of the vehicle in the vehicle image;

[0031] The first facial feature is compared with a second facial feature corresponding to the candidate vehicle.

[0032] In some embodiments, the classification module is further configured to:

[0033] If it is determined that the vehicle identifier is successfully identified from the vehicle image, then when the vehicle identifier in the vehicle image is not identified for the first time, it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as the trajectory reference image of the vehicle.

[0034] In some embodiments, the classification module is further configured to:

[0035] If the vehicle identification in the vehicle image is recognized for the first time, it is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

[0036] In some embodiments, it also includes:

[0037] A second comparison module is used to compare the vehicle features of the vehicle image with the vehicle features corresponding to the vehicle whose vehicle identification has been successfully identified, the vehicle features of any vehicle including the vehicle identification and / or appearance features of the vehicle;

[0038] The classification module is further configured to determine, before determining the vehicle image as the trajectory reference image of the newly appeared vehicle, that the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully identified.

[0039] In some embodiments, the first comparison module is further configured to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, if it is determined that the vehicle feature of the vehicle image does not match the vehicle feature of each vehicle whose vehicle identification has been successfully identified;

[0040] The classification module is further configured to determine the vehicle image as a trajectory reference image of the vehicle if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle.

[0041] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein:

[0042] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the above-mentioned method for determining the vehicle trajectory.

[0043] In a fourth aspect, an embodiment of the present application provides a storage medium. When a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the above-mentioned method for determining a vehicle trajectory.

[0044] In an embodiment of the present application, vehicle trajectory representation data within a specified time period in a specified area is obtained, and the vehicle trajectory representation data includes multiple vehicle images, location information and time information corresponding to each vehicle image. For any vehicle image, if it is determined that the vehicle identification is not successfully identified from the vehicle image, the first facial feature of the driver in the vehicle image is compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified. If it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, the vehicle image is determined as a trajectory reference image of the corresponding vehicle, and then based on each trajectory reference image of each vehicle and the location information and time information corresponding to each trajectory reference image, the vehicle trajectory is generated. In this way, when the vehicle identification is not successfully identified from the vehicle image, based on the facial features of the driver in the vehicle image and the facial features of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, the vehicle images are classified in units of vehicles, which can improve the classification accuracy of the vehicle images, and can also increase the number of trajectory reference images corresponding to each vehicle after classification, and a larger number of trajectory reference images is also conducive to improving the accuracy of the vehicle trajectory finally determined. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 A schematic diagram of an application scenario of a method for determining a vehicle trajectory provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of a method for determining a vehicle trajectory provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of the overall trajectory of a vehicle provided in an embodiment of the present application;

[0049] Figure 4 A flowchart of another method for determining a vehicle trajectory provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of the structure of a device for determining a vehicle trajectory provided in an embodiment of the present application;

[0051] Figure 6 A schematic diagram of the hardware structure of an electronic device for implementing a method for determining a vehicle trajectory provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to solve the problem in the prior art that the classification method of vehicle images is unreasonable, resulting in inaccurate determination of vehicle trajectories, the embodiments of the present application provide a method, device, electronic device and storage medium for determining a vehicle trajectory.

[0053] 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.

[0054] The solution provided in the embodiments of the present application is applicable to all scenarios that require generating vehicle trajectories based on vehicle images, such as improving the deployment of traffic equipment in a city based on the vehicle trajectories of a city, tracking the trajectory of an illegal vehicle, etc.

[0055] like Figure 1As shown, an application scenario diagram provided by an embodiment of the present application includes a camera 101, a database 102, and a trajectory analysis device 103. The camera 101, the database 102, and the trajectory analysis device 103 can be directly or indirectly connected to each other through one or more networks, and the network can be a wired network or a wireless network, for example, the wireless network can be a mobile cellular network, or a wireless fidelity (Wireless-Fidelity, WIFI) network, and of course, other possible networks can also be used, and the embodiment of the present application does not limit this.

[0056] The camera 101 may be installed on a road to collect vehicle images of vehicles traveling on the road, and upload the vehicle images, location information and time information when the vehicle images are collected to the database 102 .

[0057] The database 102 can store the vehicle images uploaded by each camera 101, the location information and time information corresponding to the vehicle images, and the data involved in the method of the embodiment of the present application.

[0058] The trajectory analysis device 103 may be, for example, a server, a mobile phone, a tablet computer (PAD), a laptop computer, a desktop computer, a smart TV, and a smart wearable device, and may obtain vehicle trajectory representation data within a specified time period in a specified area from a database, such as multiple vehicle images, and location information and time information corresponding to each vehicle image. For each vehicle image, if it is determined that the vehicle identification, such as the license plate number, is not successfully identified from the vehicle image, the first facial feature of the driver in the vehicle image is compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified. If it is determined that the first facial feature matches any second facial feature, the vehicle image may be determined as a trajectory reference image of the vehicle corresponding to the matched second facial feature, that is, the vehicle image is classified as an image of the vehicle. Then, for each vehicle, based on each trajectory reference image of the vehicle and the location information and time information corresponding to each trajectory reference image, the trajectory of the vehicle is generated, thereby obtaining the trajectory of each vehicle.

[0059] In this way, when the vehicle logo is not successfully identified from the vehicle image, the vehicle image is classified into vehicle units based on the facial features of the driver in the vehicle image and the facial features of the driver corresponding to the vehicle whose vehicle logo has been successfully identified. This can improve the classification accuracy of the vehicle image and the number of trajectory reference images corresponding to each vehicle. A larger number of trajectory reference images is also conducive to improving the accuracy of the final determined vehicle trajectory.

[0060] In addition, it should be noted that in the embodiment of the present application, the number of cameras 101 can be one or more, and similarly, the number of databases 102 can also be one or more, that is, there is no limitation on the number of cameras 101 and databases 102.

[0061] After introducing the application scenarios of the embodiments of the present application, the method of determining the vehicle trajectory proposed in the present application is described below with specific embodiments. Figure 2 A flow chart of a method for determining a vehicle trajectory provided in an embodiment of the present application, the method is applied to Figure 1 In the trajectory analysis device 103, the method includes the following steps.

[0062] In step 201 , vehicle trajectory representation data within a specified time period in a specified area is obtained, where the vehicle trajectory representation data includes a plurality of vehicle images, and position information and time information corresponding to each vehicle image.

[0063] The specified area may be a city, a district in a city, a geographical area, etc., and the specified time period may be a day, a week, etc.

[0064] Generally, there may be multiple vehicles in the original vehicle image stored in the database 102. In order to improve the speed of determining the vehicle trajectory, the original vehicle image may be identified in advance to determine the area where each vehicle is located in the original vehicle image. Then, the original vehicle image is cropped according to the area where each vehicle is located to obtain a vehicle image. Subsequently, the vehicle images mentioned in the embodiments of the present application all refer to the cropped vehicle images, that is, the vehicle images generally contain only one vehicle.

[0065] In step 202, if it is determined that the vehicle identification is not successfully identified from any vehicle image, the first facial feature of the driver in the vehicle image is compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified.

[0066] Taking the vehicle identification as a license plate number as an example, in some cases, there is no license plate in the vehicle image, and in some cases, there is a license plate in the vehicle image but only two or three characters in the license plate can be identified. In these cases, the license plate number cannot be successfully identified from the vehicle image. Therefore, in the embodiment of the present application, successfully identifying the license plate number means that a license plate number of not less than a preset number of digits, such as 5 digits, can be identified from the vehicle image.

[0067] The vehicle whose vehicle identification has been successfully identified actually refers to the vehicle whose license plate number has been determined. For these vehicles, it is only necessary to determine whether the current vehicle image is the image of this vehicle. To this end, the first facial feature of the driver in the vehicle image can be compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified to determine whether the vehicle image belongs to a newly appeared vehicle or a vehicle with a determined license plate number.

[0068] In specific implementation, an alternative vehicle whose appearance features match the appearance features of the vehicle in the vehicle image can be selected from the vehicles whose vehicle identification has been successfully identified, and then the first facial features are compared with the second facial features corresponding to the alternative vehicle, where the appearance features include vehicle model, series and / or vehicle color.

[0069] In this way, the comparison range of facial features can be narrowed, the classification speed of vehicle images can be improved, and the speed of determining vehicle trajectories can be improved.

[0070] In addition, for each vehicle whose vehicle identification has been successfully identified, after determining each vehicle image A belonging to this vehicle, if the driver's face in vehicle image A is clearer than the face in vehicle image B corresponding to the current second facial feature of the vehicle, the driver's face feature in vehicle image A can also replace the current second facial feature of the vehicle, that is, the driver's face feature in vehicle image A is used as the latest second facial feature of the vehicle. Similarly, if the vehicle appearance in vehicle image A is closer to the real appearance of the vehicle than the vehicle appearance in vehicle image B or vehicle image C corresponding to the current vehicle appearance of the vehicle, the vehicle appearance in vehicle image A can also replace the current vehicle appearance of the vehicle, that is, the vehicle appearance in vehicle image A is used as the latest vehicle appearance of the vehicle.

[0071] In step 203, if it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, then the vehicle image is determined to belong to the vehicle corresponding to the matched second facial feature, and the vehicle image is determined as the trajectory reference image of the vehicle.

[0072] That is, when the first facial feature of the driver in the vehicle image matches the second facial feature of the driver corresponding to any vehicle whose vehicle identification has been successfully identified, the vehicle image is determined to be an image of the vehicle corresponding to the matched second facial feature, and the vehicle image can be determined as the trajectory reference image of this vehicle.

[0073] In step 204 , a trajectory of the vehicle is generated based on each trajectory reference image of each vehicle, and position information and time information corresponding to each trajectory reference image.

[0074] Taking vehicle V as an example, assuming that vehicle V has 4 trajectory reference images: trajectory reference image 1, trajectory reference image 2, trajectory reference image 3 and trajectory reference image 4, trajectory reference image 1 corresponds to location A, trajectory reference image 2 corresponds to location B, trajectory reference image 3 corresponds to location C, and trajectory reference image 4 corresponds to location D. In addition, the time corresponding to trajectory reference image 1, trajectory reference image 2, trajectory reference image 3 and trajectory reference image 4 is getting later and later. Then, the overall trajectory of vehicle V can be determined as: location A—>location B—>location C—>location D, see Figure 3 Afterwards, the detailed trajectory of the vehicle V can be generated by combining the roads in the specified area and the overall trajectory using the specified trajectory generation algorithm.

[0075] Figure 4 A flowchart of another method for determining a vehicle trajectory provided in an embodiment of the present application, the method is applied to Figure 1 In the trajectory analysis device 103, the method includes the following steps.

[0076] In step 301 , vehicle trajectory representation data within a specified time period in a specified area is obtained, where the vehicle trajectory representation data includes a plurality of vehicle images, and position information and time information corresponding to each vehicle image.

[0077] In step 302 , for each vehicle image, it is determined whether the vehicle logo is successfully recognized from the vehicle image. If not, the process proceeds to step 303 . If yes, the process proceeds to step 306 .

[0078] In step 303, it is determined whether the first facial feature of the driver in the vehicle image matches the second facial feature of the driver corresponding to any vehicle whose vehicle identification has been successfully identified. If so, the process proceeds to step 304; if not, the process proceeds to step 305.

[0079] That is, the first facial feature of the driver in the vehicle image is compared with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified to determine whether the vehicle image belongs to a newly appeared vehicle or a vehicle with a determined license plate number.

[0080] In step 304, it is determined that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and the vehicle image is determined as a trajectory reference image of the vehicle.

[0081] That is, it is determined that the vehicle image belongs to a vehicle with a determined license plate number.

[0082] In step 305 , the vehicle image is discarded.

[0083] In step 306 , it is determined whether the vehicle logo in the vehicle image is recognized for the first time. If not, the process proceeds to step 307 . If yes, the process proceeds to step 308 .

[0084] In step 307 , it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as a trajectory reference image of the vehicle.

[0085] That is, it is determined that the vehicle image belongs to a vehicle with a determined license plate number.

[0086] In step 308 , it is determined whether the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully identified. If so, the process proceeds to step 309 ; if not, the process proceeds to step 303 .

[0087] Among them, vehicle characteristics include vehicle identification and / or appearance characteristics of the vehicle, and appearance characteristics include vehicle model, series, and vehicle color.

[0088] Taking the vehicle identification as a license plate number as an example, license plate number matching means that at least a set number of digits (such as 4 digits) of the license plate number in the vehicle image is the same as the license plate number of at least one vehicle whose license plate number has been successfully identified. Appearance feature matching means that the vehicle appearance features in the vehicle image are the same as the vehicle appearance features of at least one vehicle whose license plate number has been successfully identified.

[0089] When the vehicle features include the vehicle identification and appearance features of the vehicle, a match means that at least a set number of digits of the license plate number in the vehicle image is the same as the license plate number of at least one vehicle whose license plate number has been successfully identified, and the vehicle appearance features in the vehicle image are the same as the vehicle appearance features of at least one of these vehicles.

[0090] In step 309 , it is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

[0091] In step 310 , a trajectory of the vehicle is generated based on each trajectory reference image of each vehicle, and position information and time information corresponding to each trajectory reference image.

[0092] In the embodiment of the present application, a large number of vehicle images are archived from multiple dimensions such as vehicle identification, driver's face, vehicle model and series, and vehicle color, and the problem of missed or wrong classification of vehicles when license plate recognition is incorrect or license plate recognition cannot be successfully identified can be solved. The classification of vehicle images is more accurate, and based on relatively accurate classification results, it is also conducive to determining relatively accurate vehicle trajectories.

[0093] Based on the same technical concept, an embodiment of the present application also provides a device for determining a vehicle trajectory. The principle of solving the problem by the device for determining a vehicle trajectory is similar to that of the method for determining a vehicle trajectory described above. Therefore, the implementation of the device for determining a vehicle trajectory can refer to the implementation of the method for determining a vehicle trajectory, and the repeated parts will not be repeated.

[0094] Figure 5A schematic diagram of the structure of a device for determining a vehicle trajectory provided in an embodiment of the present application includes an acquisition module 501, a first comparison module 502, a classification module 503, and a generation module 504.

[0095] An acquisition module 501 is used to acquire vehicle trajectory representation data within a specified time period in a specified area, wherein the vehicle trajectory representation data includes a plurality of vehicle images, and location information and time information corresponding to each vehicle image;

[0096] The first comparison module 502 is used to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified if it is determined that the vehicle identification has not been successfully identified from any vehicle image;

[0097] A classification module 503 is configured to, if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle, determine that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and determine the vehicle image as a trajectory reference image of the vehicle;

[0098] The generating module 504 is used to generate the trajectory of each vehicle based on each trajectory reference image of each vehicle and the position information and time information corresponding to each trajectory reference image.

[0099] In some embodiments, the first comparison module 502 is specifically used to:

[0100] Selecting, from the vehicles whose vehicle identifications have been successfully identified, a candidate vehicle whose appearance features match the appearance features of the vehicle in the vehicle image;

[0101] The first facial feature is compared with a second facial feature corresponding to the candidate vehicle.

[0102] In some embodiments, the classification module 503 is further configured to:

[0103] If it is determined that the vehicle identifier is successfully identified from the vehicle image, then when the vehicle identifier in the vehicle image is not identified for the first time, it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as the trajectory reference image of the vehicle.

[0104] In some embodiments, the classification module 503 is further configured to:

[0105] If the vehicle identification in the vehicle image is recognized for the first time, it is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

[0106] In some embodiments, it also includes:

[0107] A second comparison module 505 is used to compare the vehicle features of the vehicle image with the vehicle features corresponding to the vehicle whose vehicle identification has been successfully identified, and the vehicle features of any vehicle include the vehicle identification and / or appearance features of the vehicle;

[0108] The classification module 503 is further configured to determine, before determining the vehicle image as the trajectory reference image of the newly appeared vehicle, whether the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully identified.

[0109] In some embodiments, the first comparison module 502 is further configured to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, if it is determined that the vehicle feature of the vehicle image does not match the vehicle feature of each vehicle whose vehicle identification has been successfully identified;

[0110] The classification module 503 is further configured to determine the vehicle image as a trajectory reference image of the vehicle if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle.

[0111] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional modules in the embodiments of the present application may be integrated in a processor, or may exist physically separately, or two or more modules may be integrated in one module. The coupling between the modules may be achieved through some interfaces, which are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations of the same or different devices. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0112] After introducing the method and device for determining a vehicle trajectory according to an exemplary embodiment of the present application, next, an electronic device for implementing any of the above methods according to another exemplary embodiment of the present application is introduced.

[0113] Refer to the following Figure 6 The electronic device 130 implemented according to this embodiment of the present application is described. Figure 6 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0114] like Figure 6As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).

[0115] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0116] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0117] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0118] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0119] In an exemplary embodiment, a storage medium is also provided, and when a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can perform the above-mentioned method for determining a vehicle trajectory. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0120] In an exemplary embodiment, the electronic device of the present application may include at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor may execute any step of the method for determining the vehicle trajectory provided in the embodiments of the present application.

[0121] In an exemplary embodiment, a computer program product is also provided. When the computer program product is executed by an electronic device, the electronic device can implement any exemplary method provided in the present application.

[0122] Furthermore, the computer 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 (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0123] The program product for determining the vehicle trajectory in the embodiment of the present application may adopt a CD-ROM and include program code, and may be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0124] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0125] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0126] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0127] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0128] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0129] 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.

[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 generate 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 1 A device that provides the functions specified in a block or multiple blocks.

[0131] 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.

[0132] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0133] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0134] 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 method for determining a vehicle trajectory, characterized in that: include: Acquire vehicle trajectory representation data within a specified time period in a specified area, wherein the vehicle trajectory representation data includes a plurality of vehicle images, and location information and time information corresponding to each vehicle image; If it is determined that the vehicle identification is not successfully identified from any vehicle image, comparing the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified; If it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, then determining that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and determining the vehicle image as a trajectory reference image of the vehicle; Based on each trajectory reference image of each vehicle, and the position information and time information corresponding to each trajectory reference image, the trajectory of the vehicle is generated.

2. The method according to claim 1, characterized in that Comparing the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, includes: Selecting, from the vehicles whose vehicle identifications have been successfully identified, a candidate vehicle whose appearance features match the appearance features of the vehicle in the vehicle image; The first facial feature is compared with a second facial feature corresponding to the candidate vehicle.

3. The method according to claim 1, characterized in that If it is determined that the vehicle logo is successfully recognized from the vehicle image, the method further includes: If the vehicle identifier in the vehicle image is not recognized for the first time, it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as a trajectory reference image of the vehicle.

4. The method according to claim 3, characterized in that If the vehicle logo in the vehicle image is recognized for the first time, the method further includes: It is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

5. The method according to claim 4, characterized in that Before determining the vehicle image as the trajectory reference image of the newly appeared vehicle, the method further includes: Comparing the vehicle features of the vehicle image with the vehicle features corresponding to the vehicle whose vehicle identification has been successfully identified, the vehicle features of any vehicle including the vehicle identification and / or appearance features of the vehicle; It is determined that the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully recognized.

6. The method according to claim 5, characterized in that If it is determined that the vehicle features of the vehicle image do not match the vehicle features of each vehicle whose vehicle identification has been successfully identified, the method further includes: comparing a first facial feature of the driver in the vehicle image with a second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified; If it is determined that the first facial feature matches the second facial feature corresponding to any vehicle, the vehicle image is determined as a trajectory reference image of the vehicle.

7. A device for determining a vehicle trajectory, characterized in that: include: An acquisition module, used to acquire vehicle trajectory representation data within a specified time period in a specified area, wherein the vehicle trajectory representation data includes a plurality of vehicle images, and location information and time information corresponding to each vehicle image; A first comparison module is used to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified if it is determined that the vehicle identification has not been successfully identified from any vehicle image; a classification module, configured to, if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle, determine that the vehicle image belongs to the vehicle corresponding to the matched second facial feature, and determine the vehicle image as a trajectory reference image of the vehicle; The generating module is used to generate the trajectory of each vehicle based on each trajectory reference image of each vehicle and the position information and time information corresponding to each trajectory reference image.

8. The device according to claim 7, characterized in that The first comparison module is specifically used for: Selecting, from the vehicles whose vehicle identifications have been successfully identified, a candidate vehicle whose appearance features match the appearance features of the vehicle in the vehicle image; The first facial feature is compared with a second facial feature corresponding to the candidate vehicle.

9. The device according to claim 7, characterized in that The classification module is also used to: If it is determined that the vehicle identifier is successfully identified from the vehicle image, then when the vehicle identifier in the vehicle image is not identified for the first time, it is determined that the vehicle image belongs to the vehicle corresponding to the vehicle identifier, and the vehicle image is determined as the trajectory reference image of the vehicle.

10. The device according to claim 9, characterized in that The classification module is also used to: If the vehicle identification in the vehicle image is recognized for the first time, it is determined that the vehicle image belongs to a newly appeared vehicle, and the vehicle image is determined as a trajectory reference image of the newly appeared vehicle.

11. The device according to claim 10, characterized in that Also includes: A second comparison module is used to compare the vehicle features of the vehicle image with the vehicle features corresponding to the vehicle whose vehicle identification has been successfully identified, the vehicle features of any vehicle including the vehicle identification and / or appearance features of the vehicle; The classification module is further configured to determine, before determining the vehicle image as the trajectory reference image of the newly appeared vehicle, that the vehicle features of the vehicle image match the vehicle features of at least one vehicle whose vehicle identification has been successfully identified.

12. The device according to claim 11, characterized in that The first comparison module is further configured to compare the first facial feature of the driver in the vehicle image with the second facial feature of the driver corresponding to the vehicle whose vehicle identification has been successfully identified, if it is determined that the vehicle feature of the vehicle image does not match the vehicle feature of each vehicle whose vehicle identification has been successfully identified; The classification module is further configured to determine the vehicle image as a trajectory reference image of the vehicle if it is determined that the first facial feature matches a second facial feature corresponding to any vehicle.

13. An electronic device, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor, wherein: The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 6.

14. A storage medium, characterized in that: When the computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the method according to any one of claims 1 to 6.