Vehicle image data synchronous acquisition method, system, electronic device and storage medium

Through multi-threaded collection and timestamp filtering technology, the problem of out-of-synchronization in vehicle image data collection is solved, synchronous collection of image data is realized, and the accuracy of autonomous driving environment perception is improved.

CN116095247BActive Publication Date: 2024-09-24CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310083988.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-31
Publication Date
2024-09-24
Estimated Expiration
2043-01-31

AI Technical Summary

Technical Problem

In the field of autonomous driving, the time stamp error of the vehicle image data collection device makes it difficult to synchronize the collection of image data, affecting environmental perception and driving decision-making.

Method used

A multi-thread acquisition method is used to determine the maximum time difference by calculating the timestamp of the initial image of each frame, and filter the synchronized image data group to ensure synchronous acquisition of image data.

Benefits of technology

It reduces the timestamp error of image data, improves the accuracy of image data fusion, and facilitates subsequent environment perception and driving decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095247B
    Figure CN116095247B
Patent Text Reader

Abstract

The present application provides a method, system, electronic device and storage medium for synchronous acquisition of vehicle image data. The method includes: responding to an acquisition instruction, performing multi-threaded acquisition on multiple vehicle-mounted image acquisition devices to obtain multiple frames of initial images, grouping the multiple frames of initial images to obtain multiple image data groups to be synchronized, calculating the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, screening the multiple image data groups to be synchronized according to the maximum time difference to obtain multiple synchronized image data groups, and completing the synchronous acquisition of vehicle image data. The vehicle image data synchronous acquisition method adopts a multi-threaded mechanism to acquire multiple frames of initial images, processes the multiple frames of initial images to obtain synchronized image data groups, realizes the synchronous acquisition of vehicle image data, reduces the timestamp error of image data, and provides convenience for subsequent image data fusion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, system, electronic device and storage medium for synchronously collecting vehicle image data. Background Art

[0002] In the field of autonomous driving, vehicles need to fuse data collected by multiple on-board image acquisition devices to achieve environmental perception and then determine driving decisions. The fusion of image data depends on timestamps. Each on-board image acquisition device works independently and timestamps the collected image data according to its own clock signal. The timestamp is sent to the image fusion device along with the collected image data for image data fusion. When performing image fusion, it is necessary to ensure that the timestamp error of the fused image data is small, so the synchronous acquisition of image data is particularly important.

[0003] In the actual image data acquisition process, the following factors lead to image data asynchrony: first, the start time of image data acquisition by multiple vehicle-mounted image acquisition devices is different, and synchronization cannot be guaranteed; second, the timestamp error of the image data after synchronous acquisition cannot fully meet the fusion timestamp error condition. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present application provides a method, system, electronic device and storage medium for synchronous acquisition of vehicle image data to solve the technical problem of asynchronous image data acquisition mentioned above.

[0005] The present application provides a method for synchronous acquisition of vehicle image data, which comprises: in response to an acquisition instruction, performing multi-threaded acquisition on multiple vehicle-mounted image acquisition devices to obtain image data, wherein the image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device; grouping the multiple frames of initial images to obtain multiple image data groups to be synchronized, wherein each image data group to be synchronized includes one frame of initial image from different vehicle-mounted image acquisition devices; calculating the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, to obtain the maximum time difference of multiple image data groups to be synchronized; screening multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, to obtain multiple synchronized image data groups, and completing the synchronous acquisition of vehicle image data.

[0006] In one embodiment of the present application, multiple vehicle-mounted image acquisition threads are created, and each vehicle-mounted image acquisition device is assigned a vehicle-mounted image acquisition thread; a barrier is set to make the created vehicle-mounted image acquisition threads enter a waiting state, and the number of vehicle-mounted image acquisition threads entering the waiting state is counted; if the number of threads is equal to a preset thread threshold, the barrier is removed to release multiple vehicle-mounted image acquisition threads, so that multiple vehicle-mounted image acquisition devices perform multi-threaded synchronous acquisition.

[0007] In one embodiment of the present application, the multiple frames of initial images are framed based on preset frame sampling interval parameters to obtain multiple filtered image data groups, wherein the filtered image data groups include multiple frames of initial images obtained after frame sampling corresponding to each vehicle-mounted image acquisition device; the timestamps corresponding to the multiple frames of initial images in the filtered image data group are used as multiple reference timestamps, a similar timestamp is matched from each filtered image data group according to the reference timestamp, and the initial images corresponding to the similar timestamps are divided into an image data group to be synchronized to obtain multiple image data groups to be synchronized.

[0008] In one embodiment of the present application, the index values ​​in an image data group to be synchronized are screened to obtain a maximum index value and a minimum index value, each frame of the initial image has a corresponding index value, and the index value corresponding to the initial image corresponds one-to-one to the timestamp corresponding to the initial image; the corresponding maximum timestamp is matched according to the maximum index value, and the corresponding minimum timestamp is matched according to the minimum index value; the difference between the maximum timestamp and the minimum timestamp is calculated, and the difference is determined as the maximum time difference of the image data group to be synchronized.

[0009] In an embodiment of the present application, if the maximum time difference of a to-be-synchronized image data set is less than a preset time difference threshold, the to-be-synchronized image data set is determined as a synchronous image data set to obtain a plurality of synchronous image data sets.

[0010] In one embodiment of the present application, an image to be identified is determined from multiple frames of initial images in each synchronous image data group, and the image to be identified is identified based on preset feature conditions. If the image to be identified does not meet the preset feature conditions, the image to be identified and the index value corresponding to the image to be identified are deleted; the number of index values ​​of the index values ​​in each synchronous image data group is counted, and if the number of index values ​​of a synchronous image data group is equal to a preset index threshold, the synchronous image data group is determined as a target synchronous image data group.

[0011] In one embodiment of the present application, the waiting time for the vehicle-mounted image acquisition device thread to enter the waiting state is recorded; if the waiting time exceeds a preset time threshold and the number of threads is less than a preset thread threshold, an acquisition abnormality reminder is sent.

[0012] In one embodiment of the present application, a vehicle image data synchronous acquisition system is also provided, and the vehicle image data synchronous acquisition system includes: an acquisition module, which is used to perform multi-threaded acquisition on multiple vehicle-mounted image acquisition devices in response to an acquisition instruction to obtain image data, and the image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device; a grouping module, which groups the multiple frames of initial images to obtain multiple image data groups to be synchronized, and each image data group to be synchronized includes a frame of initial image from different vehicle-mounted image acquisition devices; a calculation module, which is used to calculate the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, and obtain the maximum time difference of multiple image data groups to be synchronized; a synchronization module, which is used to screen multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, obtain multiple synchronized image data groups, and complete the synchronous acquisition of vehicle image data.

[0013] In one embodiment of the present application, an electronic device is also provided, which includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle image data synchronization acquisition method as described above.

[0014] In one embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle image data synchronous acquisition method as described above.

[0015] Beneficial effects of the present application: The present application provides a method, system, electronic device and storage medium for synchronous acquisition of vehicle image data. The method for synchronous acquisition of vehicle image data performs multi-threaded acquisition on a vehicle-mounted image acquisition device according to an acquisition instruction to obtain multiple frames of initial images. By grouping and synchronously processing the multiple frames of initial images to obtain a synchronous image data group, synchronous acquisition of vehicle image data can be achieved, reducing the timestamp error of the image data and providing convenience for subsequent image data fusion.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1 is a schematic diagram of an implementation environment of a method for synchronously collecting vehicle image data shown in an exemplary embodiment of the present application;

[0019] Figure 2 is a flow chart of a method for synchronously collecting vehicle image data shown in an exemplary embodiment of the present application;

[0020] Figure 3 It is a flowchart of a multi-thread synchronization mechanism shown by an exemplary embodiment;

[0021] Figure 4 is a block diagram of a vehicle image data synchronous acquisition system shown in an exemplary embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0024] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0025] It should be noted that in this application, "first", "second", etc. are only used to distinguish similar objects, and are not used to limit the order or precedence of similar objects. The variations of "including", "having", etc. described above indicate that the scope covered by the subject of the word is not exclusive except for the examples shown by the word.

[0026] It is understood that the various numbers, step numbers, and other reference numerals recorded in this application are distinguished for the convenience of description and are not intended to limit the scope of this application. The size of the reference numerals in this application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.

[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0028] The embodiments of the present application respectively propose a vehicle image data synchronous acquisition method, a vehicle image data synchronous acquisition system, an electronic device, a computer-readable storage medium and a computer program product, and these embodiments will be described in detail below.

[0029] See also Figure 1 , Figure 1 It is a schematic diagram of an implementation environment of a method for synchronously collecting vehicle image data shown in an exemplary embodiment of the present application.

[0030] Reference Figure 1 As shown, the implementation environment may include a smart car 101 and a computer device 102. The smart car 101 is equipped with multiple vehicle-mounted image acquisition devices. The vehicle-mounted image acquisition device refers to a device or equipment that can collect light signals from the actual external environment and obtain an electronic image corresponding to the external environment based on the light signals. The vehicle-mounted image acquisition device may be a camera, a video camera, etc. The computer device 102 may be at least one of a microcomputer, an embedded computer, a neural network computer, etc. The computer device 102 may be a local computer device and configured in the smart car 101, or a remote computer device and remotely communicate with the smart car 101 in a two-way manner, which is not limited here. The computer device 102 controls the multiple vehicle-mounted image acquisition devices configured on the smart car 101 to perform multi-threaded acquisition. The smart car 101 provides the image data collected by the multiple vehicle-mounted image acquisition devices to the computer device 102 for processing to obtain a synchronized image data group.

[0031] Schematically, the computer device 102 performs multi-threaded acquisition on multiple vehicle-mounted image acquisition devices configured for the smart car 101 in response to the acquisition instruction, and obtains image data, the image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device, the multiple frames of initial images are grouped, and multiple image data groups to be synchronized are obtained, each image data group to be synchronized includes a frame of initial image from different vehicle-mounted image acquisition devices, the maximum time difference of each image data group to be synchronized is calculated based on the timestamp corresponding to the initial image in each image data group to be synchronized, and the maximum time difference of multiple image data groups to be synchronized is obtained, and the multiple image data groups to be synchronized are screened according to the maximum time difference of each image data group to be synchronized, and multiple synchronized image data groups are obtained, and the synchronous acquisition of vehicle image data is completed. It can be seen that the technical solution of the embodiment of the present application can realize the synchronous acquisition of vehicle image data, reduce the timestamp error of image data, and provide convenience for subsequent image data fusion.

[0032] It should be noted that the vehicle image data synchronous acquisition method provided in the embodiment of the present application is generally executed by the computer device 102 , and accordingly, the vehicle image data synchronous acquisition system is generally set in the computer device 102 .

[0033] See also Figure 2 , Figure 2 is a flow chart of a method for synchronously collecting vehicle image data, which is shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 The implementation environment shown is specifically executed by the computer device 102 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0034] Reference Figure 2 As shown, in an exemplary embodiment, the vehicle image data synchronous acquisition method includes at least steps S210 to S240, which are described in detail as follows:

[0035] Step S210 , in response to the acquisition instruction, performing multi-threaded acquisition on multiple vehicle-mounted image acquisition devices to obtain image data.

[0036] In one embodiment of the present application, the acquisition instruction refers to an instruction for acquiring image data. The acquisition instruction may be an instruction initiated by a remote server, or an instruction initiated by a vehicle-mounted server (such as a vehicle-mounted system), or an instruction initiated by a terminal (such as a user's mobile phone), and is not limited here. After the computer device 102 responds to the acquisition instruction, it performs multi-threaded acquisition on the vehicle-mounted image acquisition device to obtain image data. The image data may be video data or picture data, and is not limited here. The image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device. Compared with single-threaded acquisition, multi-threaded acquisition can realize the synchronous acquisition of image data by the vehicle-mounted image acquisition device, thereby reducing the time difference in the acquisition of image data by each vehicle-mounted image acquisition device.

[0037] In a specific embodiment of the present application, before collecting image data, 6 cameras can be installed on the smart car as 6 vehicle-mounted image acquisition devices. Among them, the 6 cameras are a front-view camera, a right front camera, a right rear camera, a left front camera, a left rear camera and a rear-view camera. The front-view camera is installed at the windshield rearview mirror, the right front camera and the left front camera are installed at the position of the front door rearview mirror, the left rear camera and the right rear camera are installed at the rear door opening, and the rear-view camera is installed near the car logo position at the rear of the car. The pixels of the 6 cameras can be 2 million, or more than 2 million. After the installation is completed, in response to the acquisition instruction, the 6 cameras are multi-threaded to obtain image data.

[0038] In a specific embodiment of the present application, when collecting image data, a scene tag can be added to the current scene to improve the efficiency of subsequent data processing. The scene tag can be pre-set, and the specific scene tag can refer to Table 1:

[0039]

[0040]

[0041]

[0042]

[0043] Table 1

[0044] In one embodiment of the present application, performing multi-threaded acquisition on multiple vehicle-mounted image acquisition devices includes the following steps:

[0045] Creating multiple vehicle-mounted image acquisition threads, each vehicle-mounted image acquisition device is assigned one vehicle-mounted image acquisition thread;

[0046] A barrier is set to make the created vehicle image acquisition thread enter a waiting state, and the number of vehicle image acquisition threads entering the waiting state is counted;

[0047] If the number of threads is equal to the preset thread threshold, the barrier is removed to release multiple vehicle-mounted image acquisition threads, so that multiple vehicle-mounted image acquisition devices can perform multi-threaded synchronous acquisition.

[0048] First of all, it should be noted that the multi-threaded synchronization mechanism allows each thread to wait until all cooperating threads reach a certain moment, and then continue execution at the same time from a certain moment.

[0049] Please refer to Figure 3 , Figure 3 FIG. 1 is a flowchart of a multi-thread synchronization mechanism shown in an exemplary embodiment. Figure 3 As shown, the multi-thread synchronization mechanism includes three processes: multi-thread initialization, multi-thread waiting and releasing threads. Among them, multi-thread initialization refers to setting a barrier to block threads so that multi-threads enter waiting. Releasing threads is also called multi-thread deinitialization. The barrier is released through multi-thread deinitialization to enable multi-threads to execute synchronously.

[0050] In this embodiment, a multi-thread synchronization mechanism is used to ensure synchronization of multiple vehicle-mounted image acquisition devices. Specifically, during the acquisition preparation process, multiple vehicle-mounted image acquisition threads are created, and one vehicle-mounted image acquisition thread is assigned to each vehicle-mounted image acquisition device. Since the vehicle-mounted image acquisition thread created first will run first, it is initialized by calling the pthread_barrier_init function, that is, setting a barrier to block the vehicle-mounted image acquisition thread, so that the vehicle-mounted image acquisition thread created or running first enters a waiting state, waiting for other vehicle-mounted image acquisition threads to catch up, and calling the count parameter to specify the number of threads that must be reached before all vehicle-mounted image acquisition threads are allowed to continue running. Specifically, the pthread_barrier_wait function is called to display that the current vehicle-mounted image acquisition thread is waiting, ready to wait for other vehicle-mounted image acquisition threads to catch up. When the count parameter of the vehicle image acquisition thread that calls the pthread_barrier_wait function does not reach the set value (preset thread threshold), it enters a dormant state. If a vehicle image acquisition thread is the last to call the pthread_barrier_wait function and the count parameter reaches the set value, the pthread_barrier_destroy function is called for deinitialization, that is, the barrier is released to release the vehicle image acquisition thread, and all vehicle image acquisition threads are woken up to enable multiple vehicle image acquisition devices to perform multi-threaded synchronous acquisition.

[0051] In a specific embodiment of the present application, when the acquisition program starts, 6 camera threads are created, and 1 camera thread is allocated to each camera. When the acquisition program is formally executed, the pthread_barrier_init function is used for initialization to make the first camera thread wait, and the count parameter is called to specify that the number of camera threads entering the waiting state must reach 6. When the number of camera threads calling the pthread_barrier_wait function reaches 6, the pthread_barrier_destroy function is called for deinitialization to make the 6 cameras start to synchronously acquire image data.

[0052] In one embodiment of the present application, the vehicle image data synchronous acquisition method further includes the following steps:

[0053] Record the waiting time for the vehicle-mounted image acquisition device thread to enter the waiting state;

[0054] If the waiting time exceeds the preset time threshold and the number of threads is less than the preset thread threshold, a collection exception reminder is sent.

[0055] In this embodiment, a timer can be set to record the waiting time for the vehicle-mounted image acquisition device thread to enter the waiting state. The timer starts counting from the time when the first vehicle-mounted image acquisition device thread enters the waiting state. If the number of vehicle-mounted image acquisition threads entering the waiting state is less than the preset thread threshold, and the waiting time exceeds the preset time threshold, an acquisition abnormality reminder is sent. Indicatively, an acquisition abnormality reminder can be fed back to the acquisition instruction sending end, and all vehicle-mounted image acquisition threads are terminated at the same time; or an acquisition abnormality reminder can be fed back to the acquisition instruction sending end, so that the sending end sends a termination acquisition instruction, and all vehicle-mounted image acquisition threads are terminated by the termination acquisition instruction. The preset time threshold can be set by those skilled in the art. The technical solution of this embodiment can avoid wasting resources because one or more vehicle-mounted image acquisition threads have not entered the waiting state for a long time, resulting in the inability to remove the barrier.

[0056] Step S220 , grouping the multiple frames of initial images to obtain multiple image data groups to be synchronized, each of which includes an initial image frame from a different vehicle-mounted image acquisition device.

[0057] In one embodiment of the present application, the number of frames of multiple initial images captured by a vehicle-mounted image acquisition device is determined to create multiple image data groups to be synchronized, and the number of image data groups to be synchronized is consistent with the number of frames. According to the order of timestamps corresponding to the multiple initial images, each initial image in the multiple initial images captured by each vehicle-mounted image acquisition device is divided into each image data group to be synchronized in sequence, so that each image data group to be synchronized includes one initial image from different vehicle-mounted image acquisition devices.

[0058] In a specific embodiment of the present application, the multi-frame initial images captured by the front camera are named multi-frame cam0 initial images, the multi-frame initial images captured by the right front camera are named multi-frame cam1 initial images, the multi-frame initial images captured by the left front camera are named multi-frame cam2 initial images, the multi-frame initial images captured by the right rear camera are named multi-frame cam3 initial images, the multi-frame initial images captured by the left rear camera are named multi-frame cam4 initial images, and the multi-frame initial images captured by the rear camera are named multi-frame cam5 initial images.

[0059] The multiple frames of initial images are grouped to obtain multiple image data groups to be synchronized. Specifically, the first frame image of the multiple frames of cam0 initial images, the first frame image of the multiple frames of cam1 initial images, the first frame image of the multiple frames of cam2 initial images, the first frame image of the multiple frames of cam3 initial images, the first frame image of the multiple frames of cam4 initial images, and the first frame image of the multiple frames of cam5 initial images are divided into the first image data group to be synchronized; the second frame image of the multiple frames of cam0 initial images, the second frame image of the multiple frames of cam1 initial images, the second frame image of the multiple frames of cam2 initial images, the second frame image of the multiple frames of cam3 initial images, the second frame image of the multiple frames of cam4 initial images, and the second frame image of the multiple frames of cam5 initial images are divided into the second image data group to be synchronized... and so on, to obtain multiple image data groups to be synchronized.

[0060] In one embodiment of the present application, step S220 includes the following steps:

[0061] Step S221, extracting multiple frames of initial images based on a preset extraction interval parameter to obtain multiple filtered image data groups, wherein the filtered image data groups include multiple frames of initial images obtained after extraction corresponding to each vehicle-mounted image acquisition device.

[0062] In one embodiment of the present application, since there are many identical or similar initial images in the collected multiple frames of initial images, in order to reduce the workload of subsequent image processing and avoid waste of resources, the multiple frames of initial images can be extracted to reduce the number of repeated initial images. The multiple frames of initial images collected by a vehicle-mounted image acquisition device are extracted according to a preset extraction interval parameter, and a screening image data group is generated based on the multiple frames of initial images obtained after extraction, thereby obtaining multiple screening image data groups. Schematically, the preset extraction interval parameter can be 2 frames per second, or other parameters set by those skilled in the art. It should be understood that the multiple frames of initial images obtained after extraction refer to the multiple frames of initial images extracted after extraction of the multiple frames of initial images collected by a vehicle-mounted image acquisition device.

[0063] In a specific embodiment of the present application, multiple frames of cam0 initial images are extracted according to a preset interval parameter of 2 frames per second by executing a frame capture python (a computer programming language) script, that is, 2 frames of cam0 initial images are extracted from the multiple frames of cam0 initial images every 1 second, and the extracted multiple frames of cam0 initial images are combined into a cam0 screening image data group. Correspondingly, the cam0 screening image data group includes the multiple frames of cam0 initial images obtained after frame extraction corresponding to the front-view camera. Similarly, the frame capture python script is executed with the preset interval parameter of 2 frames per second to extract multiple frames of cam1 initial images, multiple frames of cam2 initial images, multiple frames of cam3 initial images, multiple frames of cam4 initial images and multiple frames of cam5 initial images, so as to obtain the cam1 filtered image data group, cam2 filtered image data group, cam3 filtered image data group, cam4 filtered image data group and cam5 filtered image data group, respectively. The cam0 filtered image data group, cam1 filtered image data group, cam2 filtered image data group, cam3 filtered image data group, cam4 filtered image data group and cam5 filtered image data group are, that is, 6 filtered image data groups.

[0064] Step S222, using the timestamps corresponding to the multiple frames of initial images in the filtered image data group as multiple reference timestamps, matching a similar timestamp from each filtered image data group according to the reference timestamps, and dividing the initial images corresponding to the similar timestamps into an image data group to be synchronized, so as to obtain multiple image data groups to be synchronized.

[0065] In one embodiment of the present application, a screening image data group is arbitrarily selected from all screening image data groups, and the timestamps corresponding to all the initial images in the screening image data group are used as multiple reference timestamps. According to each reference timestamp, an identical or most similar timestamp is matched from each screening image data group, and the timestamp is determined as a similar timestamp. The initial images corresponding to the similar timestamps are divided into one image data group to be synchronized, thereby obtaining multiple image data groups to be synchronized.

[0066] It should be understood that when the vehicle-mounted image acquisition device acquires image data, it will add a timestamp to the acquired image data, so each frame of the initial image has a corresponding timestamp.

[0067] In a specific embodiment of the present application, the timestamps corresponding to all cam0 initial images in the cam0 screening image data group can be determined as multiple reference timestamps, and all the reference timestamps are named reference timestamp 0, reference timestamp 1, reference timestamp 2, etc.

[0068] According to reference timestamp No. 0, match an identical or most similar timestamp from each of the six filtered image data groups as a similar timestamp, namely similar timestamp No. 0 of cam0 filtered image data group, similar timestamp No. 0 of cam1 filtered image data group, similar timestamp No. 0 of cam2 filtered image data group, similar timestamp No. 0 of cam3 filtered image data group, similar timestamp No. 0 of cam4 filtered image data group and similar timestamp No. 0 of cam5 filtered image data group. The cam0 initial image corresponding to similar timestamp No. 0 of cam0 filtered image data group, the cam1 initial image corresponding to similar timestamp No. 0 of cam1 filtered image data group, the cam2 initial image corresponding to similar timestamp No. 0 of cam2 filtered image data group, the cam3 initial image corresponding to similar timestamp No. 0 of cam3 filtered image data group, the cam4 initial image corresponding to similar timestamp No. 0 of cam4 filtered image data group and the cam5 initial image corresponding to similar timestamp No. 0 of cam5 filtered image data group are divided into the first image data group to be synchronized.

[0069] According to reference timestamp No. 1, match an identical or most similar timestamp from each of the 6 filtered image data groups as a similar timestamp, namely similar timestamp No. 1 of cam0 filtered image data group, similar timestamp No. 1 of cam1 filtered image data group, similar timestamp No. 1 of cam2 filtered image data group, similar timestamp No. 1 of cam3 filtered image data group, similar timestamp No. 1 of cam4 filtered image data group and similar timestamp No. 1 of cam5 filtered image data group. The cam0 initial image corresponding to similar timestamp No. 1 of cam0 filtered image data group, the cam1 initial image corresponding to similar timestamp No. 1 of cam1 filtered image data group, the cam2 initial image corresponding to similar timestamp No. 1 of cam2 filtered image data group, the cam3 initial image corresponding to similar timestamp No. 1 of cam3 filtered image data group, the cam4 initial image corresponding to similar timestamp No. 1 of cam4 filtered image data group and the cam5 initial image corresponding to similar timestamp No. 1 of cam5 filtered image data group are divided into the second image data group to be synchronized.

[0070] And so on, a plurality of image data groups to be synchronized are obtained.

[0071] Step S230 , calculating the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, and obtaining the maximum time differences of multiple image data groups to be synchronized.

[0072] In one embodiment of the present application, for a group of image data to be synchronized, the timestamp corresponding to each initial image in the group of image data to be synchronized is determined, and the maximum time difference of the group of image data to be synchronized is calculated based on these timestamps, and the maximum time difference of multiple groups of image data to be synchronized is obtained by analogy. There are multiple ways to calculate the maximum time difference. The timestamps corresponding to the initial images in the same group of image data to be synchronized can be combined in pairs to determine the difference between each group of timestamps, and the difference between each group is compared, and the maximum difference is used as the maximum time difference of the group of image data to be synchronized; the maximum timestamp and the minimum timestamp in a group of image data to be synchronized can also be found, and the difference between the maximum timestamp and the minimum timestamp is used as the maximum time difference of the group of image data to be synchronized.

[0073] In one embodiment of the present application, step S230 includes the following steps:

[0074] Screening the index values ​​in a to-be-synchronized image data group to obtain a maximum index value and a minimum index value, each frame of the initial image has a corresponding index value, and the index value corresponding to the initial image corresponds to a timestamp corresponding to the initial image one by one;

[0075] Match the corresponding maximum timestamp according to the maximum index value, and match the corresponding minimum timestamp according to the minimum index value;

[0076] The difference between the maximum time stamp and the minimum time stamp is calculated, and the difference is determined as the maximum time difference of the image data sets to be synchronized.

[0077] It should be understood that the index value is a number consisting of multiple digits. When the vehicle-mounted image acquisition device acquires image data, multiple frames of initial images of the acquired image data are marked and index values ​​are provided. Therefore, each frame of the initial image has a corresponding index value, and the index value corresponding to the initial image corresponds one-to-one to the timestamp corresponding to the initial image. The larger the index value, the larger the timestamp corresponding to the index value.

[0078] In this embodiment, when determining the maximum time difference of a to-be-synchronized image data group, first determine the index values ​​corresponding to all the initial images in the to-be-synchronized image data group, judge the numerical values ​​of the index values, determine the index value with the largest numerical value as the maximum index value, and determine the index value with the smallest numerical value as the minimum index value. In the to-be-synchronized image data group, match the corresponding timestamp according to the maximum index value, and the timestamp is the maximum timestamp of the to-be-synchronized image data group, match the corresponding timestamp according to the minimum index value, and the timestamp is the minimum timestamp of the to-be-synchronized image data group. Calculate the difference between the maximum timestamp and the minimum timestamp, and determine the difference as the maximum time difference of the to-be-synchronized image data group.

[0079] Step S240 , screening multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, obtaining multiple synchronized image data groups, and completing the synchronized collection of vehicle image data.

[0080] In one embodiment of the present application, the maximum time difference of a synchronized image data group will affect the accuracy of the synchronized image data group during subsequent image fusion. The smaller the maximum time difference, the higher the accuracy of the image fusion. Therefore, it is necessary to screen multiple image data groups to be synchronized according to the maximum time difference, delete the image data groups to be synchronized with larger maximum time differences, and screen out the image data groups to be synchronized with smaller maximum time differences as synchronized image data groups.

[0081] In one embodiment of the present application, step S240 includes: if the maximum time difference of an image data group to be synchronized is less than a preset time difference threshold, determining the image data group to be synchronized as a synchronous image data group to obtain multiple synchronous image data groups.

[0082] In this embodiment, the screening condition is preset, specifically, the maximum time difference of each image data group to be synchronized is compared with the preset time difference threshold, so as to screen all the image data groups to be synchronized. If the maximum time difference of an image data group to be synchronized is less than the preset time difference threshold, the image data group to be synchronized is determined as a synchronized image data group; if the maximum time difference of an image data group to be synchronized is greater than or equal to the preset time difference threshold, the image data group to be synchronized is deleted. According to the above screening rules, multiple synchronized image data groups are obtained. Indicatively, the preset time difference threshold can be 30 milliseconds, or other values ​​set by those skilled in the art.

[0083] In a specific embodiment of the present application, the image data group to be synchronized is screened to obtain a synchronized image data group. Specifically, one image data group to be synchronized includes 6 frames of initial images, namely cam0 initial image, cam1 initial image, cam2 initial image, cam3 initial image, cam4 initial image and cam5 initial image. The image names of the 6 frames of initial images are matched in sequence to obtain the minimum index value and the maximum index value. If the timestamp difference (maximum time difference) corresponding to the minimum index value and the maximum index value is less than 30 milliseconds, the image data group to be synchronized is considered to be a synchronized image data group that has been synchronized.

[0084] In one embodiment of the present application, after step S240, the following steps are included:

[0085] Step S250, determining an image to be identified from the multiple frames of initial images in each synchronous image data group, identifying the image to be identified based on preset feature conditions, and if the image to be identified does not meet the preset feature conditions, deleting the image to be identified and the index value corresponding to the image to be identified.

[0086] In a specific embodiment of the present application, the cam0 initial image in each synchronous image data group is determined as the image to be identified, and the image to be identified is manually cleaned (screened) based on the cleaning rules (preset characteristic conditions), and the cleaning rules are as follows:

[0087] 1) If the vehicle collecting image data stops, only one image is retained from the series of images of the stopped vehicle;

[0088] 2) If it is determined through the image that there is no vehicle, person or other target on the side of the vehicle where the image data is collected, the image needs to be deleted;

[0089] 3) If the number of vehicles or pedestrians in the image is greater than or equal to 5, the image is retained; otherwise, the image is deleted;

[0090] 4) If there are multiple targets (pedestrians, vehicles) in consecutive frames (consecutive images), the images of the consecutive frames can be retained;

[0091] 5) Each image must include lane lines, targets, and freespace (driving road surface). If any of them is missing, the image will be deleted.

[0092] 6) Images with special scenes or special targets can be retained, such as curves, unusual vehicles (ambulances, sanitation vehicles, buses), and artificial obstacles (cones, emergency tripods, water barriers, warning posts).

[0093] It should be understood that when an image is deleted, the index value and timestamp corresponding to the image will also be deleted.

[0094] Step S260 , counting the number of index values ​​of the index values ​​in each synchronous image data group, and if the number of index values ​​of a synchronous image data group is equal to a preset index threshold, determining the synchronous image data group as a target synchronous image data group.

[0095] In one embodiment of the present application, after the image to be identified that does not meet the preset feature conditions is deleted, the synchronized image data group corresponding to the image to be identified will also be deleted, so as to screen out the target synchronized image data group. The deletion method may be to count the number of index values ​​of the index values ​​in each synchronized image data group. If the number of index values ​​of a synchronized image data group is less than the preset index threshold, the synchronized image data group is deleted. If the number of index values ​​of a synchronized image data group is equal to the preset index threshold, the synchronized image data group is retained and determined as the target synchronized image data group. The initial image in the target synchronized image data group is the image for subsequent image fusion.

[0096] In a specific embodiment of the present application, the above-mentioned method of screening the synchronous image data group to be cleaned can also be used to screen the synchronous image data group after cleaning. If any frame of the 6 frames of initial images is not found in a synchronous image data group after cleaning, it is considered that the synchronous image data group does not meet the screening conditions, and the cleaned synchronous image data group that still includes 6 frames of initial images is screened out as the target synchronous image data group.

[0097] Figure 4 is a block diagram of a vehicle image data synchronization acquisition system shown in an exemplary embodiment of the present application. The system can be applied to Figure 1 The implementation environment shown in the figure is specifically configured in the computer device 102. The system can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the system is applicable.

[0098] Reference Figure 4 As shown, the exemplary vehicle image data synchronous acquisition system includes:

[0099] The acquisition module 410 is used to perform multi-threaded acquisition on multiple vehicle-mounted image acquisition devices in response to an acquisition instruction to obtain image data, wherein the image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device; the grouping module 420 is used to group the multiple frames of initial images to obtain multiple image data groups to be synchronized, each image data group to be synchronized includes a frame of initial image from different vehicle-mounted image acquisition devices; the calculation module 430 is used to calculate the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, and obtain the maximum time difference of multiple image data groups to be synchronized; the synchronization module 440 is used to filter the multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, obtain multiple synchronized image data groups, and complete the synchronized acquisition of vehicle image data.

[0100] In one embodiment of the present application, the acquisition module 410 includes a creation unit 411, a blocking unit 412, and a release unit 413. The creation unit 411 is used to create multiple vehicle-mounted image acquisition threads, and each vehicle-mounted image acquisition device is assigned a vehicle-mounted image acquisition thread. The blocking unit 412 is used to set a barrier to make the created vehicle-mounted image acquisition thread enter a waiting state, and count the number of vehicle-mounted image acquisition threads that enter the waiting state. The release unit 413 is used to release the barrier and release multiple vehicle-mounted image acquisition threads if the number of threads is equal to a preset thread threshold, so that multiple vehicle-mounted image acquisition devices can perform multi-threaded synchronous acquisition.

[0101] In one embodiment of the present application, the grouping module 420 includes a frame extraction unit 421 and a grouping unit 422. The frame extraction unit 421 is used to extract frames of multiple frames of initial images based on a preset frame extraction interval parameter to obtain multiple screening image data groups, and the screening image data group includes multiple frames of initial images obtained after the frame extraction corresponding to each vehicle-mounted image acquisition device. The grouping unit 422 is used to use the timestamps corresponding to the multiple frames of initial images in the screening image data group as multiple reference timestamps, match a similar timestamp from each screening image data group according to the reference timestamp, and divide the initial images corresponding to the similar timestamps into a to-be-synchronized image data group to obtain multiple to-be-synchronized image data groups.

[0102] In one embodiment of the present application, the calculation module 430 includes an index value screening unit 431, a timestamp matching unit 432, and a maximum time difference calculation unit 433. The index value screening unit 431 is used to screen the index values ​​in a to-be-synchronized image data group to obtain the maximum index value and the minimum index value, each frame of the initial image has a corresponding index value, and the index value corresponding to the initial image corresponds to the timestamp corresponding to the initial image. The timestamp matching unit 432 is used to match the corresponding maximum timestamp according to the maximum index value, and to match the corresponding minimum timestamp according to the minimum index value. The maximum time difference calculation unit 433 is used to calculate the difference between the maximum timestamp and the minimum timestamp, and determine the difference as the maximum time difference of the to-be-synchronized image data group.

[0103] In another embodiment of the present application, the vehicle image data synchronous acquisition system includes an acquisition end and a server end, wherein an acquisition device composed of an acquisition module 410 is configured at the acquisition end, and a processing device composed of a grouping module 420, a calculation module 430 and a synchronization module 440 is configured at the server end.

[0104] It should be noted that the vehicle image data synchronous acquisition system provided in the above embodiment and the vehicle image data synchronous acquisition method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the vehicle image data synchronous acquisition system provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0105] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle image data synchronization acquisition method provided in the above-mentioned embodiments.

[0106] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0107] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method described in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0108] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0109] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0110] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a 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. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-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. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0111] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0112] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0113] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle image data synchronous acquisition method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0114] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle image data synchronous acquisition method provided in each of the above embodiments.

[0115] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for synchronously collecting vehicle image data, characterized in that: The vehicle image data synchronous acquisition method comprises: In response to the acquisition instruction, performing multi-threaded acquisition on multiple vehicle-mounted image acquisition devices to obtain image data, wherein the image data includes multiple frames of initial images acquired by each vehicle-mounted image acquisition device; The multiple frames of initial images are grouped to obtain multiple image data groups to be synchronized, each of which includes one frame of initial image from different vehicle-mounted image acquisition devices; the multiple frames of initial images are grouped to obtain multiple image data groups to be synchronized, including: extracting frames from the multiple frames of initial images based on a preset extraction interval parameter to obtain multiple filtered image data groups, the filtered image data groups include multiple frames of initial images obtained after extraction corresponding to each vehicle-mounted image acquisition device; using timestamps corresponding to the multiple frames of initial images in the filtered image data group as multiple reference timestamps, matching a similar timestamp from each filtered image data group according to the reference timestamps, and dividing the initial images corresponding to the similar timestamps into one image data group to be synchronized, so as to obtain multiple image data groups to be synchronized; Calculate the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized, and obtain the maximum time differences of multiple image data groups to be synchronized; According to the maximum time difference of each image data group to be synchronized, multiple image data groups to be synchronized are screened to obtain multiple synchronous image data groups, and the synchronous acquisition of vehicle image data is completed; according to the maximum time difference of each image data group to be synchronized, multiple image data groups to be synchronized are screened to obtain multiple synchronous image data groups, including: if the maximum time difference of an image data group to be synchronized is less than a preset time difference threshold, the image data group to be synchronized is determined as a synchronous image data group; if the maximum time difference of an image data group to be synchronized is greater than or equal to the preset time difference threshold, the image data group to be synchronized is deleted to obtain multiple synchronous image data groups.

2. The method for synchronously collecting vehicle image data according to claim 1, characterized in that: Multi-threaded acquisition of multiple vehicle-mounted image acquisition devices, including: Creating multiple vehicle-mounted image acquisition threads, each vehicle-mounted image acquisition device is assigned one vehicle-mounted image acquisition thread; A barrier is set to make the created vehicle image acquisition thread enter a waiting state, and the number of vehicle image acquisition threads entering the waiting state is counted; If the number of threads is equal to the preset thread threshold, the barrier is removed to release multiple vehicle-mounted image acquisition threads, so that multiple vehicle-mounted image acquisition devices can perform multi-threaded synchronous acquisition.

3. The method for synchronously collecting vehicle image data according to any one of claims 1 or 2, characterized in that: Calculating the maximum time difference of each image data group to be synchronized based on the timestamp corresponding to the initial image in each image data group to be synchronized includes: Screening the index values ​​in a to-be-synchronized image data group to obtain a maximum index value and a minimum index value, each frame of the initial image has a corresponding index value, and the index value corresponding to the initial image corresponds to a timestamp corresponding to the initial image one by one; Matching a corresponding maximum timestamp according to the maximum index value, and matching a corresponding minimum timestamp according to the minimum index value; A difference between the maximum time stamp and the minimum time stamp is calculated, and the difference is determined as a maximum time difference of the image data sets to be synchronized.

4. The method for synchronously collecting vehicle image data according to claim 3, characterized in that: After obtaining a plurality of synchronous image data groups, the vehicle image data synchronous acquisition method includes: Determine an image to be identified from multiple frames of initial images in each synchronous image data group, identify the image to be identified based on a preset feature condition, and if the image to be identified does not meet the preset feature condition, delete the image to be identified and the index value corresponding to the image to be identified; The number of index values ​​of the index values ​​in each synchronous image data group is counted, and if the number of index values ​​of a synchronous image data group is equal to a preset index threshold, the synchronous image data group is determined as a target synchronous image data group.

5. The method for synchronously collecting vehicle image data according to claim 2, characterized in that: The vehicle image data synchronous acquisition method also includes: Recording the waiting time for the vehicle-mounted image acquisition device thread to enter the waiting state; If the waiting time exceeds a preset time threshold and the number of threads is less than a preset thread threshold, a collection abnormality reminder is sent.

6. A vehicle image data synchronous acquisition system, characterized in that: The vehicle image data synchronous acquisition system comprises: A collection module, for performing multi-threaded collection on a plurality of vehicle-mounted image collection devices in response to a collection instruction to obtain image data, wherein the image data includes a plurality of frames of initial images collected by each vehicle-mounted image collection device; A grouping module, grouping the multiple frames of initial images to obtain multiple image data groups to be synchronized, each of which includes a frame of initial image from different vehicle-mounted image acquisition devices; grouping the multiple frames of initial images to obtain multiple image data groups to be synchronized, including: extracting frames from the multiple frames of initial images based on a preset extraction interval parameter to obtain multiple filtered image data groups, the filtered image data groups include multiple frames of initial images obtained after extraction corresponding to each vehicle-mounted image acquisition device; using timestamps corresponding to the multiple frames of initial images in the filtered image data group as multiple reference timestamps, matching a similar timestamp from each filtered image data group according to the reference timestamp, and dividing the initial images corresponding to the similar timestamps into one image data group to be synchronized, so as to obtain multiple image data groups to be synchronized; A calculation module, configured to calculate a maximum time difference of each image data group to be synchronized based on a timestamp corresponding to an initial image in each image data group to be synchronized, so as to obtain maximum time differences of a plurality of image data groups to be synchronized; A synchronization module is used to screen multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, obtain multiple synchronized image data groups, and complete the synchronous acquisition of vehicle image data; screen multiple image data groups to be synchronized according to the maximum time difference of each image data group to be synchronized, and obtain multiple synchronized image data groups, including: if the maximum time difference of an image data group to be synchronized is less than a preset time difference threshold, then the image data group to be synchronized is determined as a synchronized image data group; if the maximum time difference of an image data group to be synchronized is greater than or equal to the preset time difference threshold, then the image data group to be synchronized is deleted to obtain multiple synchronized image data groups.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the vehicle image data synchronous acquisition method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute the method for synchronously collecting vehicle image data as claimed in any one of claims 1 to 5.