Multi-sensor frame synchronization determination method, storage medium and computer program product
By receiving and aligning different frame rate signals, the real trigger moment of the sensor is determined, solving the problem of multi-channel camera synchronization in autonomous driving, achieving high-precision sensor data synchronization, and ensuring the accuracy and stability of data fusion.
Patent Information
- Application Number
- CN202410743504.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2024-08-27
AI Technical Summary
In the field of autonomous driving, time synchronization of multiple cameras is difficult to achieve, especially when the number of cameras is large and the frame rates are inconsistent, resulting in inaccurate obstacle recognition.
By receiving preset frame rate signals and different frame rate signals, the time axis aligned with the synchronized time axis is used to record the starting frame signal time of each sensor, and the real triggering time is determined based on the exposure time and starting signal time to ensure the synchronization of sensor data. .
It achieves high-precision, low-latency synchronization of multi-sensor data, ensuring the integrity and accuracy of subsequent data fusion and processing.
Smart Images

Figure CN118555350A
Abstract
Description
[0001] This application is a divisional application of Chinese invention patent application No. 202410403474.4. The application date of the original application is April 03, 2024, and the name of the invention is "Multi-sensor frame synchronization determination method, storage medium and computer program product". Technical Field
[0002] The embodiments of the present application relate to the field of autonomous driving technology, and in particular to a multi-sensor frame synchronization determination method, storage medium, and computer program product. Background Art
[0003] In the field of autonomous driving, data from a lot of sensors is needed (such as radar, camera, GPS / IMU (Inertial Measurement Unit), etc.). If the message times received by the computing unit from each sensor are not uniform, it will cause problems such as inaccurate obstacle recognition.
[0004] When it comes to time synchronization of multiple cameras, it is often necessary to perform frame synchronization processing on cameras at different locations and directions on the vehicle to ensure that all camera images acquired are images at the same time, so as to facilitate subsequent data fusion and processing. In the current existing solutions, it is often only possible to synchronize cameras of the same type and with the same frame rate, and the accuracy is not high. However, in the field of autonomous driving, there are often many cameras with different frame rates. Summary of the invention
[0005] Embodiments of the present invention provide a multi-sensor frame synchronization determination method, a storage medium, and a computer program product, which are used to solve at least one of the above technical problems.
[0006] In a first aspect, an embodiment of the present invention provides a method for determining multi-sensor frame synchronization, comprising: receiving a preset frame rate signal for triggering synchronization of each sensor and multiple signals with different frame rates, wherein the preset frame rate signal is used to establish a synchronization timeline, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger out data; transparently transmitting the multiple signals with different frame rates to each sensor, and using multiple timelines aligned with the synchronization timeline to record the start frame signal time of the current frame received by each sensor; determining the actual trigger moment of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned timeline; and determining whether the current frame of each sensor is synchronized based on the actual trigger moment of each sensor.
[0007] In a second aspect, an embodiment of the present invention provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the multi-sensor frame synchronization determination methods described above in the present invention.
[0008] In a third aspect, an embodiment of the present invention provides a storage medium, in which one or more programs including execution instructions are stored, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute any of the above-mentioned multi-sensor frame synchronization determination methods of the present invention.
[0009] In a fourth aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program stored on a storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes any one of the above-mentioned multi-sensor frame synchronization determination methods.
[0010] The method of the present application transmits multiple signals with different frame rates to each sensor, uses multiple time axes aligned with the synchronous time axis, records the start frame signal time of the current frame received by each sensor, and then determines the actual trigger time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis. Therefore, it is possible to determine whether the data of each sensor is data at the same time based on the actual trigger time, which facilitates subsequent multi-sensor data fusion and processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0012] Figure 1 A flowchart of a multi-sensor frame synchronization determination method provided by an embodiment of the present invention;
[0013] Figure 2 A flowchart of another multi-sensor frame synchronization determination method provided by an embodiment of the present invention;
[0014] Figure 3 A flowchart of another multi-sensor frame synchronization determination method provided by an embodiment of the present invention;
[0015] Figure 4A schematic diagram of a vehicle-mounted camera provided in an embodiment of the present application;
[0016] Figure 5 A schematic diagram of multi-camera frame synchronization hardware transmission provided by an embodiment of the present invention;
[0017] Figure 6 A schematic diagram of a synchronization timeline for multi-camera frame synchronization provided by an embodiment of the present invention;
[0018] Figure 7 A schematic diagram of triggering time for multi-camera frame synchronization provided by an embodiment of the present invention;
[0019] Figure 8 A block diagram of a multi-sensor frame synchronization determination device provided by an embodiment of the present invention;
[0020] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Please refer to Figure 1 , which shows a flowchart of a multi-sensor frame synchronization determination method provided by an embodiment of the present invention, wherein the sensors can be sensors of the same type, such as cameras or radars, or sensors of different types, such as a combination of radars and cameras, and the present application is not limited thereto.
[0023] like Figure 1 As shown, in step 101, a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor are received;
[0024] In step 102, the plurality of signals with different frame rates are transparently transmitted to each sensor, and the start frame signal time of the current frame received by each sensor is recorded using the plurality of time axes aligned with the synchronous time axis;
[0025] In step 103, the actual triggering time of the current frame of each sensor is determined based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis;
[0026] In step 104 , it is determined whether the current frames of the sensors are synchronized based on the actual triggering moments of the sensors.
[0027] In this embodiment, the above-mentioned multi-sensor frame synchronization determination method can be software or a program set in the automobile controller, such as a multi-sensor frame synchronization determination device, through which the synchronized frame signal can be found from the current frame or multiple frames of data of each sensor for subsequent fusion or other processing.
[0028] For step 101, the multi-sensor frame synchronization determination device receives a preset frame rate signal and a plurality of signals with different frame rates for triggering the synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization timeline, and signals with different frame rates correspond to sensors with different frame rates. By setting all sensors to trigger data, it is ensured that the sensor can start generating data when it receives a trigger signal (that is, each sensor receives a corresponding frame rate signal), such as when a camera starts to expose a picture, and the preset frame rate signal and a plurality of signals with different frame rates sent synchronously can ensure synchronization at the hardware level. Among them, the preset frame rate signal and a plurality of signals with different frame rates sent synchronously can be a synchronization trigger signal issued by an automobile microcontroller unit MCU (Microcontroller Unit, MCU). For example, a corresponding synchronization trigger program can be set in the MCU so that the MCU can synchronously send a trigger signal to ensure that the signal is sent synchronously. Specifically, the preset frame rate may be a common divisor of multiple different frame rates. For example, if the multiple different frame rates are 5 Hz and 10 Hz, respectively, the preset frame rate may be 1 Hz or 5 Hz. If the multiple different frame rates are 10 Hz, 20 Hz and 30 Hz, the preset frame rate may be 1 Hz, 2 Hz, 5 Hz and 10 Hz. The present application has no limitation thereto. In some optional embodiments, the preset frame rate may be set to 1 Hz, which is not described in detail here. The signals of multiple different frame rates may not be limited to two channels, but may be multiple channels, which is not described in detail here.
[0029] For step 102, the multi-sensor frame synchronization determination device transmits multiple signals with different frame rates to each sensor, and uses multiple time axes aligned with the synchronization time axis to record the start frame signal time of the current frame received by each sensor. Among them, the synchronization time axis can be a 1Hz time axis, and multiple time axes with different frame rates, such as 10Hz and 20Hz time axes, are aligned with the 1Hz time axis. Then, the 10Hz time axis aligned with the 1Hz time axis is used to record the return signals of one or more sensors with a corresponding frame rate of 10Hz, and the 20Hz time axis aligned with the 1Hz time axis is used to record the return signals of one or more sensors with a corresponding frame rate of 20Hz. Among them, transparent transmission is also called transparent transmission, which is a data transmission method, which is characterized in that during the data transmission process, no processing is performed on the transmitted content to keep the original state of the data. Therefore, no additional delay will be generated during the transparent transmission process, and the delay caused by other processing can be focused on in the future, such as exposure time and software scheduling processing time.
[0030] In a specific example, the multi-sensor frame synchronization determination device is, for example, a car microcontroller unit CECU (Car Electronic Control Unit), or a software or program in the CECU for determining whether the frames of multiple sensors are synchronized. The MCU can use GPIO (General-Purpose IO ports) as a trigger signal and map it to the trigger GPIO of multiple sensors at the same time. The MCU sends a 1Hz signal to the CECU through the GPIO for synchronizing the time axis. The MCU sends a 20Hz signal through the GPIO and transmits it to the corresponding sensor through hardware. At the same time, the MCU sends a 10Hz signal through another GPIO and transmits it to the corresponding sensor through hardware. Among them, the MCU needs to control the alignment of the 10Hz, 20Hz, and 1Hz signals to ensure that the time axes of the three signals are consistent, thereby ensuring from the hardware that the exposure time and shooting time of each camera at a certain moment are completely consistent, with the advantages of high precision, low latency and good stability.
[0031] Afterwards, for step 103, the multi-sensor frame synchronization determination device determines the real trigger time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis. Specifically, due to the existence of software scheduling and exposure time, the received start frame signal time may not be the time of the trigger moment. In this case, the start frame signal time needs to be converted into the real trigger moment.
[0032] Finally, for step 104, the multi-sensor frame synchronization determination device determines whether the current frame of each sensor is synchronized based on the real trigger time of each sensor. After obtaining the real trigger time of each sensor, it can be determined that each sensor with the same or similar real trigger time has a synchronized frame.
[0033] The method of this embodiment transmits multiple signals with different frame rates to each sensor, uses multiple time axes aligned with the synchronous time axis to record the start frame signal time of the current frame received by each sensor, and then determines the actual trigger time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis. Therefore, it is possible to determine whether the data of each sensor is data at the same time based on the actual trigger time, which facilitates subsequent multi-sensor data fusion and processing.
[0034] Please refer to Figure 2 , which shows another multi-sensor frame synchronization determination method provided by an embodiment of the present invention. The flowchart mainly describes the process Figure 1 The flowchart further defines the process of "determining the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis".
[0035] like Figure 2 As shown, in step 201, the start frame signal time of the current frame of each sensor is converted into a trigger time based on the exposure time of each sensor;
[0036] In step 202, the trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis as the actual trigger time of the current frame of each sensor.
[0037] In this embodiment, for step 201, the multi-sensor frame synchronization determination device converts the start frame signal time of the current frame of each sensor into the trigger time based on the exposure time of each sensor. For example, due to the existence of software scheduling and exposure time, the received start frame signal time is not the time of the trigger moment. At this time, it is necessary to convert the start frame signal time into the trigger time, so that the start frame signal time of all sensors can be converted into the trigger time. For example, the trigger time can be obtained by deleting the software scheduling and exposure time from the start frame signal time. Among them, the exposure time of each sensor is related to the performance of the sensor itself, and may be between 0-30ms, which will not be repeated here. The software scheduling time can be obtained by testing statistical analysis, such as testing the triggering of multiple cameras, recording the image output time and exposure time, and then statistically analyzing the time difference between the two (such as averaging, etc.), and the software scheduling time can be obtained.
[0038] Then, for step 202, the multi-sensor frame synchronization determination device shifts the trigger time of the current frame of each sensor back on the aligned time axis to the moment closest to the trigger time on the time axis as the real trigger time of the current frame of each sensor. For example, because the calculated trigger time has no corresponding real trigger time, it is necessary to shift back to find the nearest trigger time. In a specific embodiment, the time for receiving the start frame signal of 1 frame is 110ms, and the exposure time of the current frame is 8ms. At this time, the calculated trigger time is 102ms, and the nearest real trigger time is 100ms. At this time, we change the calculated 102ms to 100ms, so that the timestamps of all sensors can be converted into real trigger moments. At this time, both 20Hz and 10Hz sensors can be synchronized at 10Hz, ensuring the subsequent data fusion and processing of all sensors.
[0039] The method of this embodiment converts the start frame signal time of the current frame of each sensor into a trigger time based on the exposure time of each sensor, and then shifts the trigger time of the current frame of each sensor back on the aligned time axis to the moment closest to the trigger time on the time axis as the actual trigger time of the current frame of each sensor, thereby ensuring frame synchronization of all sensors.
[0040] In some optional embodiments, converting the start frame signal time of the current frame of each sensor into a trigger time based on the exposure time of each sensor includes: a multi-sensor frame synchronization determination device uses the start frame time of the current frame of each sensor to subtract the exposure time of each sensor to obtain the trigger time of the current frame of each sensor, thereby obtaining the trigger time.
[0041] In some optional embodiments, the trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis as the real trigger time of the current frame of each sensor, including: the multi-sensor frame synchronization determination device shifts the trigger time of the current frame of each sensor back on the aligned time axis to the moment closest to the trigger time on the time axis, and determines whether the time of the shift back exceeds a preset threshold; taking the preset threshold of 10ms as an example, if the time of the shift back to the moment closest to the trigger time on the time axis exceeds 10ms, the shift is abandoned. Because the shift needs to exceed the preset threshold, it means that there may be problems with the data, and the problematic data can be discarded, which will not be described in detail here; if the time of the shift back to the moment closest to the trigger time on the time axis does not exceed 10ms, the shifted moment is used as the real trigger time of the current frame of each sensor, thereby improving the accuracy of obtaining the real trigger time, and the preset threshold can also be set to other values, such as 3ms or 5ms, which is not limited in this application.
[0042] Please refer to Figure 3 , which shows another multi-sensor frame synchronization determination method provided by an embodiment of the present invention. The flowchart mainly describes the process Figure 1 The flowchart further defines the process of "transmitting the multiple signals with different frame rates to each sensor, and using multiple time axes aligned with the synchronous time axis to record the start frame signal time of the current frame received by each sensor."
[0043] like Figure 3 As shown, in step 301, the plurality of signals of different frame rates are transparently transmitted to the sensor connected to the deserializer via a plurality of corresponding deserializers, wherein each deserializer is connected to one or more serializers of corresponding frame rates, and each serializer is connected to a sensor module;
[0044] In step 302, time axis alignment is performed on a plurality of signals with different frame rates based on the synchronization time axis, and the start frame signal time of the current frame received by each sensor is recorded using the aligned time axis.
[0045] In this embodiment, for step 301, the multi-sensor frame synchronization determination device transmits the multiple signals of different frame rates to the sensors connected to the deserializers via multiple corresponding deserializers. A deserializer can process a signal of a frame rate, for example, a 10Hz deserializer processes one or more 10Hz signals, and a 20Hz deserializer processes one or more 20Hz frame rate signals. Among them, each deserializer is connected to one or more serializers of corresponding frame rates, for example, four serializers are connected, and each serializer is connected to a sensor module. Among them, the serializer (serializer) and the deserializer (deserializer) are a mainstream time-division multiplexing, point-to-point serial communication technology, that is, multiple low-speed parallel signals at the transmitting end are converted into high-speed serial signals, through the transmission medium, and finally at the receiving end The high-speed serial signal is converted back into a low-speed parallel signal. This point-to-point serial communication technology makes full use of the channel capacity of the transmission medium, reduces the required number of transmission channels and device pins, and improves the transmission speed of the signal, thereby greatly reducing the communication cost.
[0046] Then, for step 302, the multi-sensor frame synchronization determination device performs time axis alignment on multiple signals with different frame rates based on the synchronization time axis, and uses the aligned time axis to record the start frame signal time of the current frame received by each sensor. For example, the micro control unit sends a 1Hz signal to the automotive electronic control unit through GPIO for synchronization of the time axis, the micro control unit sends a 20Hz signal to a deserializer through GPIO, and finally transmits it to the four-way sensor connected thereto, and at the same time, the micro control unit sends a 10Hz signal to a deserializer through another GPIO and finally transmits it to the four-way sensor connected thereto, wherein the micro control unit needs to control the alignment of the 10Hz, 20Hz and 1Hz signals to ensure that the time axes of the three signals are consistent, and at the same time, the automotive electronic control unit uses each time axis after synchronization of the 1Hz time axis to record the start frame signal time of the current frame received by all cameras, wherein the four-way sensor may also be a one-way sensor or a two-way sensor, and the present application is not limited thereto.
[0047] This embodiment aligns the time axes of multiple signals with different frame rates returned by the deserializer based on the synchronization time axis, and uses the aligned time axis to record the start frame signal time of the current frame received by each sensor, thereby improving the accuracy of frame synchronization and reducing delay.
[0048] In some optional embodiments, determining whether the current frames of each sensor are synchronized based on the real triggering moment of each sensor includes: if the real triggering moment of the current frames of at least two sensors is the same, then determining that the current frames of at least two sensors are synchronized; if the real triggering moment of the current frames of no two sensors is the same, then determining that there is no synchronized current frame, and continuing to calculate whether the next frame of each sensor is synchronized, so as to determine whether it is synchronized. When there is no synchronized frame in the current frame, calculating whether there is a synchronized frame in the next frame.
[0049] In some optional embodiments, after determining the current frame synchronization of the at least two sensors, the method further includes: a multi-sensor frame synchronization determination device uses the current frames of the at least two sensors for subsequent data fusion and data processing, thereby ensuring the frame synchronization of all sensors and ensuring the integrity of all sensor data when being fused.
[0050] The following uses an example of multi-camera frame synchronization to illustrate the solution of the present application. It should be noted that frame synchronization of multiple sensors of the same type and sensors of different types are within the protection scope of the present application and will not be described in detail later.
[0051] Please refer to Figure 4 , which shows a schematic diagram of the location of the vehicle-mounted camera.
[0052] like Figure 4As shown, the corresponding number name table of the vehicle-mounted camera is as follows:
[0053]
[0054] Continue to refer Figure 5 , which shows a schematic diagram of multi-camera frame synchronization hardware transmission provided by an embodiment of the present invention.
[0055] like Figure 5 As shown, the MCU sends a 1Hz signal to CECU through GPIO for synchronizing the time axis; the MCU sends a 20Hz signal to a deserialize through GPIO, and finally transmits it to the four cameras connected to it through serialize, or it can be multiple cameras; at the same time, the MCU sends a 10Hz signal to a deserialize through another GPIO and finally transmits it to the four cameras connected to it.
[0056] Continue to refer Figure 6 , which shows a schematic diagram of a synchronization timeline for multi-camera frame synchronization provided by an embodiment of the present invention.
[0057] like Figure 6 As shown, the MCU needs to control the alignment of the 10Hz, 20Hz, and 1Hz signals to ensure that the time axes of the three signals are consistent, thereby ensuring from a hardware perspective that the exposure time and shooting time of each camera at a certain moment are consistent, with the advantages of high precision, low latency, and good stability.
[0058] CECU needs to set all cameras to trigger image output to ensure that the camera can start exposing and outputting images when it receives the trigger signal; at the same time, CECU uses a time axis synchronized with 1Hz to record the SOF timestamp (Start OfFrame, start frame signal time) received by all cameras.
[0059] Due to software scheduling and exposure time, the received SOF time may not be the trigger time. In this case, the SOF time needs to be converted into trigger time. At this time, the SOF of all cameras can be converted into trigger time.
[0060] Continue to refer Figure 7 , which shows a triggering time diagram of multi-camera frame synchronization provided by an embodiment of the present invention.
[0061] like Figure 7The trigger time, SOF time and exposure time shown in the figure, where trigger time = SOF time - exposure time. Due to errors caused by software scheduling and data handling and processing delays, the received SOF time is not accurate enough, resulting in a mismatch between the calculated trigger time and the actual trigger time, so software calibration is required. At this time, we need to shift downward to the nearest trigger time and change the nearest trigger time to the calculated trigger time.
[0062] like Figure 7 As shown in the figure, for a 10Hz signal, assuming that the SOF time of the received frame is 10ms and the exposure time of the current frame is 8ms, the calculated trigger time is 2ms, and the nearest real trigger time is 0ms. At this time, we change the calculated 2ms to 0ms. For a 20Hz signal, assuming that the SOF time of the received frame is 18ms and the exposure time of the current frame is 15ms, the calculated trigger time is 3ms, and the nearest real trigger time is 0ms. At this time, we change the calculated 3ms to 0ms. This method can be used to convert the timestamps of all cameras into real trigger moments. At this time, both 20Hz and 10Hz cameras can be synchronized at 10Hz, ensuring the subsequent data fusion and processing of all cameras.
[0063] Please refer to Figure 8 , which shows a block diagram of a multi-sensor frame synchronization determination device provided by an embodiment of the present application.
[0064] like Figure 8 As shown, the multi-sensor synchronization determination device 800 includes a receiving program module 810 , an alignment program module 820 , a real trigger moment determination program module 830 and a synchronization determination program module 840 .
[0065] Among them, the receiving program module 810 is used to receive a preset frame rate signal and multiple signals with different frame rates for triggering the synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization time axis, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger data; the alignment program module 820 is used to transparently transmit the multiple signals with different frame rates to each sensor, and use multiple time axes aligned with the synchronization time axis to record the start frame signal time of the current frame received by each sensor; the real trigger moment determination program module 830 is used to determine the real trigger moment of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis; and the synchronization determination program module 840 is used to determine whether the current frame of each sensor is synchronized based on the real trigger moment of each sensor.
[0066] It should be understood that Figure 8Modules and references documented in Figure 1 , Figure 2 and Figure 3 Therefore, the operations and features described above for the method and the corresponding technical effects are also applicable to Figure 8 The modules in it will not be described in detail here.
[0067] It is worth noting that the modules in the embodiments of the present application are not used to limit the solutions of the present application. For example, the receiving program module can be described as a module for receiving a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor. In addition, the relevant functional modules can also be implemented by a hardware processor, for example, the receiving program module can also be implemented by a processor, which will not be described in detail here.
[0068] In some other embodiments, embodiments of the present invention further provide a non-volatile computer storage medium, the computer storage medium storing computer executable instructions, the computer executable instructions can execute the multi-sensor frame synchronization determination method in any of the above method embodiments;
[0069] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:
[0070] Receiving a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization time axis, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger data output;
[0071] Transmitting the multiple signals with different frame rates to each sensor, and using multiple time axes aligned with the synchronization time axis to record the start frame signal time of the current frame received by each sensor;
[0072] Determine the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis;
[0073] Whether the current frames of each sensor are synchronized is determined based on the actual triggering moment of each sensor.
[0074] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the multi-sensor frame synchronization determination device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the multi-sensor frame synchronization determination device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0075] An embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any of the above-mentioned multi-sensor frame synchronization determination methods.
[0076] Please refer to Fig. 9 , which shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
[0077] like Fig. 9 As shown, the device includes: one or more processors 910 and a memory 920, Fig. 9 A processor 910 is taken as an example. The device of the multi-sensor frame synchronization determination method may also include: an input device 930 and an output device 940. The processor 910, the memory 920, the input device 930 and the output device 940 may be connected via a bus or other means. Fig. 9 In the example, the bus connection is used. The memory 920 is the above-mentioned non-volatile computer-readable storage medium. The processor 910 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 920, that is, the multi-sensor frame synchronization determination method of the above-mentioned method embodiment is implemented. The input device 930 can receive input digital or character information, and generate key signal input related to user settings and function control of the multi-sensor frame synchronization determination device. The output device 940 may include a display device such as a display screen.
[0078] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0079] As an implementation mode, the electronic device is applied to a multi-sensor frame synchronization determination device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:
[0080] Receiving a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization time axis, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger data output;
[0081] Transmitting the multiple signals with different frame rates to each sensor, and using multiple time axes aligned with the synchronization time axis to record the start frame signal time of the current frame received by each sensor;
[0082] Determine the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis;
[0083] Whether the current frames of each sensor are synchronized is determined based on the actual triggering moment of each sensor.
[0084] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
[0085] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0086] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0087] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0088] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0089] (5) Other electronic devices with data interaction functions.
[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining multi-sensor frame synchronization, comprising: Receiving a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization time axis, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger data output; Transmitting the multiple signals with different frame rates to each sensor, and using multiple time axes aligned with the synchronization time axis to record the start frame signal time of the current frame received by each sensor; Determine the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis; Determine whether the current frames of each sensor are synchronized based on the actual triggering moment of each sensor; The determining of the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis includes: Converting the start frame signal time of the current frame of each sensor into a trigger time based on the exposure time of each sensor; The trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis as the real trigger time of the current frame of each sensor.
2. The method according to claim 1, characterized in that The converting the start frame signal time of the current frame of each sensor into the trigger time based on the exposure time of each sensor includes: The trigger time of the current frame of each sensor is obtained by subtracting the exposure time of each sensor from the start frame time of the current frame of each sensor.
3. The method according to claim 1, characterized in that The trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis as the real trigger time of the current frame of each sensor, including: The trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis, and whether the shifted back time exceeds a preset threshold; If the time of shifting back to the moment closest to the trigger time on the time axis exceeds a preset threshold, the shift is abandoned; If the time shifted back to the moment closest to the trigger time on the time axis does not exceed the preset threshold, the shifted moment is used as the actual trigger time of the current frame of each sensor.
4. The method according to claim 1, characterized in that The transparently transmitting the signals of the plurality of different frame rates to each sensor and using the plurality of time axes aligned with the synchronous time axis to record the start frame signal time of the current frame received by each sensor comprises: Transmitting the signals of the plurality of different frame rates to sensors connected to the deserializers via a plurality of corresponding deserializers, wherein each deserializer is connected to one or more serializers of corresponding frame rates, and each serializer is connected to a sensor module; The multiple signals with different frame rates are time-axis aligned based on the synchronization time axis, and the start frame signal time of the current frame received by each sensor is recorded using the aligned time axis.
5. The method according to claim 1, characterized in that The determining whether the current frames of each sensor are synchronized based on the real triggering moment of each sensor includes: If the real triggering time of the current frames of at least two sensors is the same, determining that the current frames of the at least two sensors are synchronized; If the real triggering time of the current frames of no two sensors is the same, it is determined that there is no synchronized current frame, and the calculation continues to determine whether the next frames of each sensor are synchronized.
6. The method according to claim 5, characterized in that After determining the current frame synchronization of the at least two sensors, the method further includes: The current frames of the at least two sensors are used for subsequent data fusion and data processing.
7. A multi-sensor synchronization determination device, characterized in that: It includes a receiving program module, an alignment program module, a real triggering moment determination program module and a synchronization determination program module; The receiving program module is used to receive a preset frame rate signal and a plurality of signals with different frame rates for triggering synchronization of each sensor, wherein the preset frame rate signal is used to establish a synchronization time axis, and the signals with different frame rates correspond to sensors with different frame rates, wherein all sensors are set to trigger data output; The alignment program module is used to transparently transmit the multiple signals with different frame rates to each sensor, and use the multiple time axes aligned with the synchronous time axis to record the start frame signal time of the current frame received by each sensor; The real trigger moment determination program module is used to determine the real trigger moment of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis; The synchronization determination program module is used to determine whether the current frame of each sensor is synchronized based on the real triggering moment of each sensor; The determining of the actual triggering time of the current frame of each sensor based on the exposure time of each sensor, the corresponding start frame signal time and the aligned time axis includes: Converting the start frame signal time of the current frame of each sensor into a trigger time based on the exposure time of each sensor; The trigger time of the current frame of each sensor is shifted back on the aligned time axis to the moment closest to the trigger time on the time axis as the real trigger time of the current frame of each sensor.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Multi-camera frame synchronization calibration method, system and device and storage medium
CN120658836A
