Shooting time determination method and device, program product and storage medium
By calculating and sending the trigger time, the time alignment of the exposure center points of multiple camera devices is ensured, which solves the problem of inconsistent exposure times of camera devices in the field of intelligent driving and achieves time consistency of image data.
Patent Information
- Application Number
- CN202410850149.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
In the field of intelligent driving, multiple camera devices have inconsistent exposure times due to differences in the external environment and their own parameters, causing the problem that the images acquired are not at the same time.
By obtaining the image time information captured by the first camera device, the trigger time is calculated and sent, so that the first camera device captures the second object according to the determined time, ensuring that its exposure center point time is aligned with the exposure center point time of other camera devices.
It realizes the exposure of multiple camera devices within the same time range, solves the problem of image time inconsistency, and ensures the consistency and accuracy of image data.
Smart Images

Figure CN118784971A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and device for determining shooting time, a program product, and a storage medium. Background Art
[0002] With the application of various camera devices and the iteration of visual perception algorithms, for example, in the field of intelligent driving, more and more applications of autonomous driving that relies on pure visual perception are being applied. Therefore, the temporal consistency of data from various camera devices (e.g., cameras) is becoming increasingly important.
[0003] In the related art, a synchronous clock generated by hardware is mainly used to simultaneously trigger all cameras for exposure. The exposure time of the camera is affected by the camera's resolution, clock CLK, and the ambient light intensity. Although all cameras are triggered for exposure at the same time, the different exposure times will cause the exposure start time points of cameras in different directions to be different, resulting in the problem that the images acquired are not at the same moment. Summary of the invention
[0004] The embodiments of the present application provide a method and device for determining shooting time, a program product, and a storage medium, so as to at least solve the problem in the related art that the images acquired are not at the same time due to the inconsistency of the center points of exposure time caused by the external environment and the own parameters of each camera device.
[0005] According to an embodiment of the present application, a method for determining a shooting time is provided, comprising: acquiring first time information of a first image, wherein the first image is a frame of image shot by a first camera device at a current time, and the first image includes a first object; determining a first trigger time based on the first time information, wherein the first trigger time is a time after the current time at which the first camera device is to be triggered to shoot a second object; sending the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain a second image, wherein a first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras at the same time period to obtain the second object, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
[0006] In an exemplary embodiment, obtaining the first time information of the first image includes: calculating the frame interval time according to the frame rate, wherein the frame rate is used to indicate the number of image frames captured by the first camera device per second, and the frame interval time is used to indicate the time interval between two adjacent frames of images captured by the camera device; determining the timing duration of the timer according to the frame interval time; and triggering the acquisition of the first time information of the first image captured by the first camera device at the current time when the timer reaches the timing duration.
[0007] In an exemplary embodiment, determining a first trigger time based on the first time information includes: determining a first time interval using the first time, the first exposure time and the second trigger time in the first time information, wherein the first time is used to indicate the time when the first camera device sends the first image to the controller, the first exposure time is used to indicate the exposure time of the photosensitive component in the camera device when the first camera device shoots the first object, and the second trigger time is used to indicate the time when the first camera device is triggered to shoot the first object; determining the first exposure center point time using the second exposure center point time in the first time information and the frame rate of the first camera device, wherein the second exposure center time is used to indicate the exposure time of the first image, and the frame rate is used to indicate the number of image frames shot by the first camera device per second; determining the first trigger time based on the first time interval and the first exposure center point time.
[0008] In an exemplary embodiment, the first time, the first exposure time and the second trigger time in the above-mentioned first time information are used to determine the first time interval, including: calculating the time difference between the above-mentioned first time and the above-mentioned first exposure time to obtain the first time difference; calculating the time difference between the above-mentioned first time difference and the above-mentioned second trigger time to obtain the above-mentioned first time interval.
[0009] In an exemplary embodiment, the second exposure center point time in the first time information and the frame rate of the first camera device are used to determine the first exposure center time point, including: calculating the ratio between a preset coefficient and the frame rate, and determining a multiple of the ratio to determine the target frame interval of the camera device; and calculating the first exposure center time using the target frame interval and the second exposure center point time.
[0010] In an exemplary embodiment, the first trigger time is determined based on the first time interval and the first exposure center point time, including: calculating the difference between the first exposure center point time and the first time interval to obtain a second difference; calculating the difference between the first time and the second time to obtain a third difference, wherein the second time is used to indicate the time when the controller receives the first image; and determining the first trigger time based on the second difference and the third difference.
[0011] In an exemplary embodiment, the first trigger time is sent to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time. After obtaining the second image, the method further includes: determining the time difference between the first exposure center point time and the other exposure center point times; when the time difference is less than or equal to a preset threshold, aligning the first exposure center point time of the second image shot by the first camera device with other exposure center point times of other images shot by other cameras in the same time period; when the time difference is greater than the preset threshold, adjusting the third trigger time of the first camera device according to the time difference, wherein the third trigger time is the time to be triggered for the first camera device to shoot the third object.
[0012] According to another embodiment of the present application, a device for determining shooting time is provided, comprising: a first acquisition module, used to acquire first time information of a first image, wherein the first image is a frame of image shot by a first camera device at a current time, and the first image includes a first object; a first determination module, used to determine a first trigger time based on the first time information, wherein the first trigger time is a time after the current time when the first camera device is to be triggered to shoot a second object; a first sending module, used to send the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain a second image, wherein a first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain the second object, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
[0013] In an exemplary embodiment, the above-mentioned first acquisition module includes: a first calculation unit, used to calculate the frame interval time according to the frame rate, wherein the above-mentioned frame rate is used to indicate the number of image frames taken by the above-mentioned first camera device per second, and the above-mentioned frame interval time is used to indicate the time interval between two adjacent frames of images taken by the above-mentioned camera device; a first determination unit, used to determine the timing duration of the timer according to the above-mentioned frame interval time; and a first acquisition unit, used to trigger the acquisition of the above-mentioned first time information of the above-mentioned first image taken by the above-mentioned first camera device at the above-mentioned current time when the above-mentioned timer reaches the above-mentioned timing duration.
[0014] In an exemplary embodiment, the first determination module includes: a second determination unit, used to determine the first time interval using the first time, the first exposure time and the second trigger time in the first time information, wherein the first time is used to indicate the time when the first camera device sends the first image to the controller, the first exposure time is used to indicate the exposure time of the photosensitive component in the camera device when the first camera device shoots the first object, and the second trigger time is used to indicate the time when the first camera device is triggered to shoot the first object; a third determination unit, used to determine the first exposure center point time using the second exposure center point time in the first time information and the frame rate of the first camera device, wherein the second exposure center time is used to indicate the exposure time of the first image, and the frame rate is used to indicate the number of image frames shot by the first camera device per second; a fourth determination unit, used to determine the first trigger time based on the first time interval and the first exposure center point time.
[0015] In an exemplary embodiment, the above-mentioned first determination unit includes: a first calculation subunit, used to calculate the time difference between the above-mentioned first time and the above-mentioned first exposure time to obtain the first time difference; a second calculation subunit, used to calculate the time difference between the above-mentioned first time difference and the above-mentioned second trigger time to obtain the above-mentioned first time interval.
[0016] In an exemplary embodiment, the above-mentioned second determination unit includes: a third calculation subunit, used to calculate the ratio between a preset coefficient and the above-mentioned frame rate, and determine the multiple of the above-mentioned ratio to determine the target frame interval of the above-mentioned camera device; a fourth calculation subunit, used to use the above-mentioned target frame interval and the above-mentioned second exposure center point time to calculate the above-mentioned first exposure center time.
[0017] In an exemplary embodiment, the third determination unit includes: a fifth calculation subunit, used to calculate the difference between the first exposure center point time and the first time interval to obtain a second difference; a sixth calculation subunit, used to calculate the difference between the first time and the second time to obtain a third difference, wherein the second time is used to indicate the time when the controller receives the first image; and a first determination subunit, used to determine the first trigger time based on the second difference and the third difference.
[0018] In an exemplary embodiment, the apparatus further includes: a second determination module, for sending the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time, and after obtaining the second image, determine the time difference between the first exposure center point time and the other exposure center point times; a third determination module, for determining, when the time difference is less than or equal to a preset threshold, that the first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain other images of the second object; and a first adjustment module, for adjusting the third trigger time of the first camera device according to the time difference when the time difference is greater than the preset threshold, wherein the third trigger time is the time to be triggered for the first camera device to shoot the third object.
[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0020] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0021] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0022] Through the present application, after acquiring the first image captured by the first camera device at the current time, the first time information of the first image is acquired, the first trigger time of the next capture of the second image by the camera device is calculated using the first time information, and the first trigger time is sent to the first camera device, the first camera device can capture the second object according to the first trigger time to obtain the second image. The other trigger times of other camera devices are calculated in the same way, so that the first exposure center point time of the second image captured by the first camera device is aligned with the other exposure center point times of other images captured by other cameras in the same time period. Thus, images with the same time of multiple camera devices can be acquired. Therefore, the problem in the related art that the images acquired are not at the same time due to the inconsistency of the exposure time center points caused by the external environment and the parameters of each camera device can be solved, thereby achieving the effect of making the images exposed by multiple camera devices in the same time range. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for determining shooting time according to an embodiment of the present application;
[0024] Figure 2 is a flow chart of a method for determining shooting time according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of exposure of a camera device according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of the relationship between various times according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of multiple camera devices being triggered simultaneously according to an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of time alignment of the exposure center point after adjusting the trigger time according to an embodiment of the present application;
[0029] Figure 7 It is a schematic diagram of the hardware structure in this specific embodiment;
[0030] Figure 8 is a flow chart for calculating the trigger time of each camera according to this specific embodiment;
[0031] Fig. 9 It is a structural block diagram of a device for determining shooting time according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0034] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for determining shooting time in an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the shooting time in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0036] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0037] In this embodiment, a method for determining shooting time is provided. Figure 2 is a flow chart of a method for determining a shooting time according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0038] Step S202, obtaining first time information of a first image, wherein the first image is a frame of image taken by a first camera device at a current time, and the first image includes a first object;
[0039] Step S204, determining a first trigger time based on the first time information, wherein the first trigger time is a time after the current time when the first camera device is to be triggered to shoot the second object;
[0040] Step S206, sending the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain a second image, wherein the first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain other images, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
[0041] The execution subject of the above steps may be a terminal, a server, a specific processor provided in the terminal or the server, or a processor or processing device provided relatively independently from the terminal or the server, but is not limited thereto.
[0042] Through the above steps, after obtaining the first image captured by the first camera device at the current time, the first time information of the first image is obtained, the first trigger time of the camera device to capture the second image next time is calculated using the first time information, and the first trigger time is sent to the first camera device, the first camera device can capture the second object according to the first trigger time to obtain the second image. The other trigger times of other camera devices are calculated in the same way, so that the first exposure center point time of the second image captured by the first camera device is aligned with the other exposure center point times of other images captured by other cameras in the same time period. Thus, images with the same time of multiple camera devices can be obtained. Therefore, the problem in the related art that the images captured are not at the same time due to the inconsistency of the exposure time center points caused by the external environment and the parameters of each camera device can be solved, thereby achieving the effect of making the images exposed by multiple camera devices in the same time range.
[0043] Optionally, this embodiment includes but is not limited to being applied to scenes with camera equipment, for example, in scenes of autonomous driving, adjusting the time relationship of triggering exposure or shooting of each camera for circumferential or surround view, so that the middle point of exposure time of each camera is the same. When doing BEV algorithm stitching, the exposure center point time of each camera is aligned. Among them, the BEV algorithm, namely the Bird's Eye View algorithm, simplifies the complexity of the three-dimensional environment by converting the data obtained by sensors (for example, LiDAR and cameras) into BEV representation, so as to more efficiently perform tasks such as object detection and path planning.
[0044] Optionally, the first image and the second image may be adjacent frame images to be captured, or images to be captured within a period of time after the first image. The first object and the second object are not limited and may be vehicles, pedestrians, objects, etc.
[0045] Optionally, the first camera device and the other camera devices are multiple camera devices arranged in the same device, for example, multiple cameras arranged in a vehicle, and multiple frames of images taken by the multiple cameras in the same time period need to be obtained to control the vehicle.
[0046] Alternatively, a camera device generally refers to an electronic device used to capture images and videos, such as a digital camera, a vehicle-mounted camera. A RAW camera (without ISP) is set in a vehicle. A RAW camera is a professional photographic device that can capture and save the original data of an image without any compression or processing. This allows the photographer to retain more image details and color information during post-processing, thereby obtaining a higher quality final picture.
[0047] Optionally, the first trigger time in this embodiment is the time for triggering the first camera device to shoot, or the time for triggering the first camera device to expose. The main function is to set a shooting time for the camera device, so as to control the alignment of the exposure center time. The exposure center time refers to the time when the camera lens is aimed at the subject (for example, the first object, the second object) during shooting, and the appropriate shutter speed and aperture size are set to ensure normal exposure of the picture. It can also be understood as the time for the camera to focus and expose during the shooting process. During shooting, choosing a suitable exposure center time can ensure that the picture is clear and bright, and avoid overexposure or underexposure.
[0048] Optionally, in this embodiment, the exposure mode of the first camera device and the other camera devices may be rolling exposure, for example, Figure 3 As shown, when the CMOS starts to be exposed, the photosensitive element senses light from the first row, the second row, the third row, and so on in a certain order until the entire photosensitive component has exposed each row from top to bottom and completed its work, that is, the exposure time of different rows of pixels is different.
[0049] Optionally, the time of the first exposure center point of the second image captured by the first camera device is aligned with the time of other exposure center points of other images captured by other cameras of the second object in the same time period. This is to ensure that the images captured by different cameras in the same time period can be accurately aligned in the scene where images of the same object (second object) captured by multiple cameras need to be processed, which is crucial for subsequent image processing, analysis and fusion. In the fields of autonomous driving, robot vision, multi-view monitoring, etc., camera synchronization is the basis for achieving accurate environmental perception and scene understanding. Through the above steps, the consistency of images captured by different camera devices in time and space can be ensured, providing an accurate data basis for subsequent analysis and processing.
[0050] In an exemplary embodiment, obtaining first time information of a first image includes: calculating a frame interval time based on a frame rate, wherein the frame rate is used to indicate the number of image frames captured by the first camera device per second, and the frame interval time is used to indicate the time interval between two adjacent frames of images captured by the camera device; determining a timing duration of a timer according to the frame interval time; and triggering obtaining the first time information of the first image captured by the first camera device at the current time when the timer reaches the timing duration.
[0051] Optionally, the frame rate is a unit of measurement indicating how many frames of images a camera can capture per second, usually expressed in frames per second (FPS). The frame interval time refers to the time difference between two frames of images. To calculate the frame interval time, the following formula can be used: frame interval time = 1 / frame rate, where the frame rate is in FPS. For example, if the frame rate of the camera is 30FPS, the frame interval time is calculated as follows:
[0052] Frame interval = 1 / 30FPS≈0.0333 seconds. This means that there is a time difference of approximately 0.0333 seconds between each frame. If the frame rate is 60FPS, the frame interval will be: Frame interval = 1 / 60FPS≈0.0167 seconds. Frame interval is very important for applications that require precise time synchronization, such as synchronizing images from different cameras in a multi-camera system, or determining the exact time of an event in video analysis. The frame interval is also used to initialize the timer, that is, to initialize the timing duration of the timer.
[0053] Optionally, when the timer reaches the timing duration, triggering acquisition of the first time information of the first camera device capturing the first image at the current time specifically includes: setting the timing duration, starting the timer, waiting for the timer to complete, the timer reaching the duration, and triggering image acquisition. This embodiment can ensure the consistency and accuracy of data by precisely controlling the time point of image capture, thereby meeting data analysis requirements.
[0054] In an exemplary embodiment, determining a first trigger time based on the first time information includes: determining a first time interval using the first time, the first exposure time and the second trigger time in the first time information, wherein the first time is used to indicate the time when the first camera device sends the first image to the controller, the first exposure time is used to indicate the exposure time of the photosensitive component in the camera device when the first camera device shoots the first object, and the second trigger time is used to indicate the time when the first camera device is triggered to shoot the first object; determining the first exposure center point time using the second exposure center point time in the first time information and the frame rate of the first camera device, wherein the second exposure center time is used to indicate the exposure time of the first image, and the frame rate is used to indicate the number of image frames shot per second by the first camera device; determining the first trigger time based on the first time interval and the first exposure center point time.
[0055] Optionally, in this embodiment, the camera can be triggered to expose by a first trigger time, and the exposure interval of the camera can be controlled by changing the trigger frequency. For example, the controller sends a signal to the trigger module of the camera to trigger the camera to expose. Changing the frequency of the trigger module can control the exposure interval of the camera, that is, changing the speed of continuous shooting of the camera. By increasing the frequency of the trigger module, the exposure speed of the camera can be increased to achieve faster continuous shooting. Reducing the frequency of the trigger module will extend the exposure interval, making the interval time of camera shooting longer. The control module can adjust the trigger frequency according to actual needs to achieve different exposure intervals. This flexible control method can meet the shooting needs in different scenarios and improve shooting efficiency and quality.
[0056] Optionally, determining the first time interval using the first time, the first exposure time, and the second trigger time in the first time information includes: calculating the time difference between the first time and the first exposure time to obtain a first time difference; and calculating the time difference between the first time difference and the second trigger time to obtain the first time interval. For example, the first time interval is calculated using the following formula: T delay =T SOF -T exposure -T trigger , where T delay Used to indicate the first time interval, T SOF Used to indicate the first time, T exposure Used to indicate the first exposure time, T trigger Used to indicate the second trigger time.
[0057] Optionally, using the second exposure center time in the first time information and the frame rate of the first camera device to determine the first exposure center time point includes: calculating a ratio between a preset coefficient and the frame rate, and determining a multiple of the ratio to determine a target frame interval of the camera device; and calculating the first exposure center time using the target frame interval and the second exposure center time. For example, the first exposure center time point is calculated using the following formula: T timestamp_next =T timestamp +(1000 / fp)*2; where T timestamp_next Used to indicate the first exposure center time point, T timestamp It is used to indicate the time of the second exposure center point, and fp is used to indicate the frame rate.
[0058] Optionally, determining the first trigger time based on the first time interval and the first exposure center time includes: calculating the difference between the first exposure center time and the first time interval to obtain a second difference; calculating the difference between the first time and the second time to obtain a third difference, wherein the second time is used to indicate the time when the controller receives the first image; and determining the first trigger time based on the second difference and the third difference. For example, the first trigger time is calculated in the following manner: T trigger_next =T timestamp_next -T delay -T f_exposure / 2, where T trigger_next Used to indicate the first trigger time. Optionally, Figure 4 The figure shows the relationship between various times.
[0059] Optionally, the calculation method of other triggering times of other camera devices is the same as the calculation method of the first triggering time. The controller can calculate and issue the calculations at the same time. Figure 5 As shown in FIG. 1 , it is a schematic diagram of multiple camera devices being triggered simultaneously. Figure 6 FIG. 1 is a schematic diagram of aligning the exposure center point time after adjusting the trigger time. In this embodiment, by adjusting the relationship between the trigger phases of each camera device, the exposure center point time of each camera device is at the same time, thereby minimizing the exposure error caused by the camera itself and external factors.
[0060] In an exemplary embodiment, the first trigger time is sent to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time. After obtaining the second image, the method further includes: determining the time difference between the first exposure center point time and the other exposure center point times; when the time difference is less than or equal to a preset threshold, determining that the first exposure center point time of the first camera device to shoot the second image is aligned with other exposure center point times of other images obtained by shooting the second object with other cameras in the same time period; when the time difference is greater than the preset threshold, adjusting the third trigger time of the first camera device according to the time difference, wherein the third trigger time is the time to be triggered for the first camera device to shoot the third object.
[0061] Optionally, after calculating the trigger time of each camera device, this embodiment needs to continue to adjust the trigger time of the camera device so that the exposure center time of multiple camera devices tends to be consistent. The adjustment method is the same as the above-mentioned method of calculating the trigger time, which will not be repeated here.
[0062] The present application is described below in conjunction with specific embodiments:
[0063] This embodiment takes the control of the camera by the domain control system SOC as an example. Figure 7 As shown in FIG. 1 , it is a schematic diagram of the hardware structure in this specific embodiment. The RAW camera and the domain controller are connected via a deserializer (Serdes). The domain controller triggers the camera to expose through a trigger module, and the exposure interval of the camera can be controlled by changing the frequency of the trigger module trigger module. Similarly, the domain controller can obtain the time T when the trigger module sends a trigger exposure. trigger , the camera exposure time T exposure , and the camera frame transmission start time T SOF and end time T eof .
[0064] Among them, domain control refers to the control and management of a specific area or field. In this embodiment, domain control refers to a domain controller, which can be a server. A RAW camera is a camera specifically used to take high-quality images without an ISP (image signal processor). In this case, data transmission and communication can be achieved by connecting the RAW camera and the domain controller through a deserializer (Serdes). Serdes is a chip or module used to convert serial data into parallel data (and reverse conversion), which can help data transmission and communication between different devices. By connecting the RAW camera and the domain controller through a deserializer, data transmission and control can be achieved, so that the domain controller can manage and control the image data taken by the RAW camera.
[0065] The domain control triggers the camera to expose through the trigger. The exposure interval of the camera can be controlled by changing the frequency of the trigger. The domain control system sends a signal to the trigger of the camera to trigger the camera to expose. Changing the frequency of the trigger can control the exposure interval of the camera, that is, change the speed of the camera's continuous shooting. By increasing the frequency of the trigger, the camera's exposure speed can be increased to achieve faster continuous shooting. Reducing the frequency of the trigger will extend the exposure interval, making the camera's shooting interval longer. The domain control system can adjust the frequency of the trigger according to actual needs to achieve different exposure intervals. This flexible control method can meet the shooting needs in different scenarios and improve shooting efficiency and quality.
[0066] like Figure 8 FIG. 1 is a flowchart of the SOC calculating the trigger time of each camera in this specific embodiment, which specifically includes the following steps:
[0067] S801, calculating the frame interval time according to the frame rate, and using it to initialize the timing duration of the timer;
[0068] S802, determining whether the timer has reached the timing duration;
[0069] S803, when the timer reaches the timing duration, or after receiving the interrupt signal of the timer, obtaining the time information of the current latest data frame;
[0070] S804, calculating the exposure center time of the next frame of each camera and the trigger time of the next frame of each camera according to the obtained time information;
[0071] S805, adjusting the trigger time of each camera in real time according to the calculated trigger time point and exposure center time of each camera.
[0072] This embodiment uses a certain time point in the future as the frame exposure center point of all sensors, which can ensure that all sensors collect data at the same time point, thereby ensuring the consistency and accuracy of the data. This can avoid time differences and inconsistencies between data and improve the efficiency and accuracy of data processing. At the same time, by using a future time point as the frame exposure center point, the working time of the sensor can be better planned and adjusted, thereby improving the utilization and performance of the sensor.
[0073] In addition, this embodiment uses the time information of the previous frame of the camera and the given exposure center point time to dynamically adjust the trigger time of the camera, reducing the influence of the camera's exposure time due to factors such as the surrounding light environment, so that the exposure time center points of all cameras are located at the same time as much as possible, and the exposure center points of cameras with different resolutions are aligned. It can also achieve synchronization of the exposure center points of all cameras in the vehicle, providing reliable data input for algorithms such as splicing and BEV, so that the perception output target of each camera is the state of the same time in the real world. This provides safety guarantee during driving, especially high-speed driving.
[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0075] In this embodiment, a device for determining the shooting time is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0076] Fig. 9 is a structural block diagram of a device for determining shooting time according to an embodiment of the present application, such as Fig. 9 As shown, the device comprises:
[0077] The first acquisition module 92 is used to acquire the first time information of the first image, wherein the first image is a frame of image taken by the first camera device at the current time, and the first image includes the first object; the first determination module 94 is used to determine the first trigger time based on the first time information, wherein the first trigger time is the time after the current time when the first camera device is to be triggered to shoot the second object; the first sending module 96 is used to send the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain the second image, wherein the first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain the second object, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
[0078] In an exemplary embodiment, the above-mentioned first acquisition module includes: a first calculation unit, used to calculate the frame interval time according to the frame rate, wherein the above-mentioned frame rate is used to indicate the number of image frames taken by the above-mentioned first camera device per second, and the above-mentioned frame interval time is used to indicate the time interval between two adjacent frames of images taken by the above-mentioned camera device; a first determination unit, used to determine the timing duration of the timer according to the above-mentioned frame interval time; and a first acquisition unit, used to trigger the acquisition of the above-mentioned first time information of the above-mentioned first image taken by the above-mentioned first camera device at the above-mentioned current time when the above-mentioned timer reaches the above-mentioned timing duration.
[0079] In an exemplary embodiment, the first determination module includes: a second determination unit, used to determine the first time interval using the first time, the first exposure time and the second trigger time in the first time information, wherein the first time is used to indicate the time when the first camera device sends the first image to the controller, the first exposure time is used to indicate the exposure time of the photosensitive component in the camera device when the first camera device shoots the first object, and the second trigger time is used to indicate the time when the first camera device is triggered to shoot the first object; a third determination unit, used to determine the first exposure center point time using the second exposure center point time in the first time information and the frame rate of the first camera device, wherein the second exposure center time is used to indicate the exposure time of the first image, and the frame rate is used to indicate the number of image frames shot by the first camera device per second; a fourth determination unit, used to determine the first trigger time based on the first time interval and the first exposure center point time.
[0080] In an exemplary embodiment, the above-mentioned first determination unit includes: a first calculation subunit, used to calculate the time difference between the above-mentioned first time and the above-mentioned first exposure time to obtain the first time difference; a second calculation subunit, used to calculate the time difference between the above-mentioned first time difference and the above-mentioned second trigger time to obtain the above-mentioned first time interval.
[0081] In an exemplary embodiment, the above-mentioned second determination unit includes: a third calculation subunit, used to calculate the ratio between a preset coefficient and the above-mentioned frame rate, and determine the multiple of the above-mentioned ratio to determine the target frame interval of the above-mentioned camera device; a fourth calculation subunit, used to use the above-mentioned target frame interval and the above-mentioned second exposure center point time to calculate the above-mentioned first exposure center time.
[0082] In an exemplary embodiment, the third determination unit includes: a fifth calculation subunit, used to calculate the difference between the first exposure center point time and the first time interval to obtain a second difference; a sixth calculation subunit, used to calculate the difference between the first time and the second time to obtain a third difference, wherein the second time is used to indicate the time when the controller receives the first image; and a first determination subunit, used to determine the first trigger time based on the second difference and the third difference.
[0083] In an exemplary embodiment, the apparatus further includes: a second determination module, for sending the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time, and after obtaining the second image, determine the time difference between the first exposure center point time and the other exposure center point times; a third determination module, for determining, when the time difference is less than or equal to a preset threshold, that the first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain other images of the second object; and a first adjustment module, for adjusting the third trigger time of the first camera device according to the time difference when the time difference is greater than the preset threshold, wherein the third trigger time is the time to be triggered for the first camera device to shoot the third object.
[0084] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0085] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0086] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0087] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0088] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0089] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0090] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0091] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0092] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0093] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0094] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining shooting time, characterized in that: include: Acquire first time information of a first image, wherein the first image is a frame of image taken by a first camera device at a current time, and the first image includes a first object; Determine a first trigger time based on the first time information, wherein the first trigger time is a time after the current time when the first camera device is to be triggered to photograph a second object; The first trigger time is sent to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain a second image, wherein a first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain the second object, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
2. The method according to claim 1, characterized in that Acquiring first time information of a first image, including: Calculating a frame interval time according to a frame rate, wherein the frame rate is used to indicate the number of image frames captured by the first camera device per second, and the frame interval time is used to indicate the time interval between two adjacent frames of images captured by the camera device; Determine the timing duration of the timer according to the frame interval time; When the timer reaches the timing duration, the first time information of the first camera device shooting the first image at the current time is triggered to be acquired.
3. The method according to claim 1, characterized in that Determining a first trigger time based on the first time information includes: Determine a first time interval by using a first time, a first exposure time, and a second trigger time in the first time information, wherein the first time is used to indicate the time when the first camera device sends the first image to the controller, the first exposure time is used to indicate the exposure time of a photosensitive component in the camera device when the first camera device photographs the first object, and the second trigger time is used to indicate the time when the first camera device is triggered to photograph the first object; Determine the first exposure center time by using the second exposure center time in the first time information and the frame rate of the first camera device, wherein the second exposure center time is used to represent the exposure time of the first image, and the frame rate is used to represent the number of image frames captured by the first camera device per second; The first trigger time is determined based on the first time interval and the first exposure center point time.
4. The method according to claim 3, characterized in that Determining a first time interval by using the first time, the first exposure time, and the second trigger time in the first time information includes: Calculate the time difference between the first time and the first exposure time to obtain a first time difference; The first time interval is obtained by calculating the time difference between the first time difference and the second trigger time.
5. The method according to claim 3, characterized in that: Determining the first exposure center time point by using the second exposure center time in the first time information and the frame rate of the first camera device includes: Calculating a ratio between a preset coefficient and the frame rate, and determining a multiple of the ratio to determine a target frame interval of the camera device; The first exposure center time is calculated using the target frame interval and the second exposure center time.
6. The method according to claim 3, characterized in that Determining the first trigger time based on the first time interval and the first exposure center point time includes: Calculate the difference between the first exposure center point time and the first time interval to obtain a second difference; Calculating a difference between a first time and a second time to obtain a third difference, wherein the second time is used to indicate a time when the controller receives the first image; The first trigger time is determined based on the second difference and the third difference.
7. The method according to claim 3, characterized in that The first trigger time is sent to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time. After obtaining the second image, the method further includes: Determine a time difference between the first exposure center point time and the other exposure center point times; When the time difference is less than or equal to a preset threshold, determining that a first exposure center point time of the second image captured by the first camera device is aligned with other exposure center point times of other images of the second object captured by other cameras in the same time period; When the time difference is greater than the preset threshold, a third trigger time of the first camera device is adjusted according to the time difference, wherein the third trigger time is a time to trigger the first camera device to shoot a third object.
8. A device for determining shooting time, characterized in that: include: A first acquisition module, configured to acquire first time information of a first image, wherein the first image is a frame of image taken by a first camera device at a current time, and the first image includes a first object; A first determining module, configured to determine a first trigger time based on the first time information, wherein the first trigger time is a time after the current time at which the first camera device is to be triggered to shoot a second object; A first sending module is used to send the first trigger time to the first camera device to instruct the first camera device to shoot the second object according to the first trigger time to obtain a second image, wherein a first exposure center point time of the second image shot by the first camera device is aligned with other exposure center point times of other images shot by other cameras in the same time period to obtain the second object, the first exposure center point time is used to represent the exposure time of the second image, and the other exposure center point times are used to represent the exposure time of the other images.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
