Method, apparatus, and medium for processing camera image data
By setting an optimized exposure delay time offset between multiple cameras, the processor pressure problem caused by parallel image transmission from multiple cameras is solved, thus maintaining the quality of panoramic images and smoothing data flow, while reducing the interface and cache pressure on the processor.
Patent Information
- Application Number
- CN202411845610.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In existing technologies, when multiple cameras are exposed and captured images simultaneously and transmitted to the processor for image stitching, the processor interface experiences a continuous high peak bandwidth, which puts pressure on the processor and data cache, and can easily cause latency and frame drops.
Based on the initial parameters of the cameras and the exposure delay time range for panoramic image stitching, an optimal time offset between multiple cameras is determined, and the exposure delay time between two adjacent cameras is set to reduce the peak data traffic when multiple cameras transmit images in parallel, thereby alleviating the pressure on the processor interface and data cache.
While ensuring the quality of panoramic images, it reduces the peak data traffic when multiple cameras acquire images and transmit them to the processor in parallel, effectively alleviating the interface pressure and data cache pressure on the processor to receive image data, and reducing the possibility of latency and frame loss.
Smart Images

Figure CN119743572B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing technology, and more particularly to the fields of image transmission, image stitching and autonomous driving technology, specifically to a method, apparatus, electronic device, computer-readable storage medium and computer program product for processing camera image data. Background Technology
[0002] Multiple images with overlapping areas can be acquired by synchronously triggering the exposure of multiple cameras. These images are then transmitted in parallel to the processor for image stitching, resulting in a panoramic image.
[0003] The methods described in this section are not necessarily methods that had been previously conceived or adopted. Unless otherwise specified, no method described in this section should be assumed to be prior art simply because it is included in this section. Similarly, unless otherwise specified, the issues mentioned in this section should not be considered to be accepted in any prior art. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing camera image data.
[0005] According to one aspect of this disclosure, a method for processing camera image data is provided, comprising: acquiring initial camera parameters, wherein the initial camera parameters are used for each of a multi-channel camera, the multi-channel camera being used to acquire multiple images and transmit the multiple images in parallel to a processor for panoramic image stitching; determining target conditions based on the initial camera parameters, wherein the target conditions indicate a range of allowable exposure delay times between every two adjacent cameras in the multi-channel camera; determining at least one first time offset based on the target conditions, wherein each of the at least one first time offset indicates an exposure delay time between every two adjacent cameras in the multi-channel camera, and, when setting the exposure delay time between every two adjacent cameras in the multi-channel camera based on each first time offset, a first traffic peak generated by the multi-channel camera during the parallel transmission of the multiple images to the processor is less than a first threshold; and setting the exposure delay time between every two adjacent cameras in the multi-channel camera based on the at least one first time offset.
[0006] According to another aspect of this disclosure, a camera image data processing apparatus is provided, comprising: an acquisition module configured to acquire initial camera parameters, wherein the initial camera parameters are used for each of a multi-channel camera, the multi-channel camera being used to acquire multiple images and transmit the multiple images in parallel to a processor for panoramic image stitching; a first determination module configured to determine target conditions based on the initial camera parameters, wherein the target conditions indicate a range of allowable exposure delay times between every two adjacent cameras in the multi-channel camera; a second determination module configured to determine at least one first time offset based on the target conditions, wherein each of the at least one first time offset indicates, when the multi-channel camera is triggered sequentially, the exposure delay time between every two adjacent cameras in the multi-channel camera, and, when the exposure delay time between every two adjacent cameras in the multi-channel camera is set based on each first time offset, a first traffic peak generated by the multi-channel camera during the parallel transmission of the multiple images to the processor is less than a first threshold; and a first setting module configured to set the exposure delay time between every two adjacent cameras in the multi-channel camera based on the at least one first time offset.
[0007] According to another aspect of this disclosure, an electronic device is provided, 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, the instructions being executed by the at least one processor to enable the at least one processor to perform the methods described above.
[0008] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the above-described method.
[0009] According to another aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the above-described method.
[0010] According to one or more embodiments of this disclosure, a method for processing camera image data is provided. For scenarios where multiple images acquired by multiple cameras in parallel are used for panoramic stitching, an optimal time offset between every two cameras in the multiple cameras is determined based on the initial parameters of the cameras themselves and the exposure delay time range that enables panoramic image stitching. When multiple cameras are triggered, the exposure delay time between adjacent cameras is set based on this optimal time offset. This ensures the quality of the panoramic image obtained by stitching images acquired by multiple cameras while reducing the peak data traffic when transmitting multiple images acquired by multiple cameras in parallel to the processor, effectively alleviating the interface pressure and data cache pressure on the processor when receiving image data.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0012] The accompanying drawings exemplify embodiments and form part of the specification, serving together with the textual description to explain exemplary implementations of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0013] Figure 1 This is a schematic diagram illustrating an example system in which various methods described herein may be implemented according to exemplary embodiments; Figure 2 This is a schematic diagram illustrating an example panoramic image generation system in which the various methods described herein may be implemented according to exemplary embodiments; Figure 3 A flowchart illustrating a method for processing camera image data according to an embodiment of the present disclosure is shown; Figure 4 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown; Figure 5a A schematic diagram of the pixel row exposure period of a camera image according to an embodiment of the present disclosure is shown; Figure 5b and Figure 5c The diagrams illustrate the data flow during the parallel transmission of image data acquired by multiple cameras to the processor, with and without setting an exposure time delay.
[0014] Figure 6 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown; Figure 7 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown; Figure 8 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown; Figure 9 A structural block diagram of a camera image data processing apparatus according to an embodiment of the present disclosure is shown; and Figure 10 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0015] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0016] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0017] The terminology used in the description of the various examples described in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0018] In related technologies, a method has been proposed to acquire multiple images with overlapping areas by synchronously triggering exposures of multiple cameras, and then transmitting these images in parallel to a processor for image stitching to obtain a panoramic image. However, this method of transmitting multiple images in parallel results in a continuous high peak bandwidth on the processor interface, causing processor stress and easily leading to latency and frame drops.
[0019] To address the aforementioned issues, this disclosure provides a method for processing camera image data. For scenarios where multiple images acquired by multiple cameras are transmitted in parallel for panoramic stitching, an optimal time offset between every two cameras is determined based on the initial parameters of the cameras themselves and the exposure delay time range sufficient for panoramic image stitching. When multiple cameras are triggered, the exposure delay time between adjacent cameras is set based on this optimal time offset. This ensures the quality of the panoramic image obtained by stitching images acquired by multiple cameras while reducing the peak data throughput when transmitting multiple images from multiple cameras in parallel to the processor, effectively alleviating the interface pressure and data cache pressure on the processor when receiving image data.
[0020] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0021] Figure 1 A schematic diagram of an exemplary system 100 in which the various methods and apparatus described herein can be implemented according to embodiments of this disclosure is shown. Reference Figure 1 The system 100 includes one or more client devices 101, 102, 103, 104, 105 and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105 and 106 can be configured to execute one or more applications.
[0022] In embodiments of this disclosure, server 120 may run one or more services or software applications that enable the execution of methods for processing camera image data.
[0023] In some embodiments, server 120 may also provide other services or software applications that may include non-virtual and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, such as to users of client devices 101, 102, 103, 104, 105 and / or 106 under a Software as a Service (SaaS) model.
[0024] exist Figure 1 In the configuration shown, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or combinations thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 can sequentially interact with server 120 using one or more client applications to utilize the services provided by these components. It should be understood that various different system configurations are possible and may differ from system 100. Therefore, Figure 1This is an example of a system for implementing the camera image data processing method described herein, and is not intended to be limiting.
[0025] Users can use client devices 101, 102, 103, 104, 105, and / or 106 to perform methods for processing camera image data. The client devices can provide an interface that allows users to interact with the client devices. The client devices can also output information to the user through this interface. Although... Figure 1 Only six client devices are described, but those skilled in the art will understand that this disclosure can support any number of client devices.
[0026] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors, or other sensing devices. These computer devices can run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablets, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing various applications, such as various internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and can use various communication protocols.
[0027] Network 110 can be any type of network well known to those skilled in the art, and can support data communication using any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.). By way of example only, one or more networks 110 can be a local area network (LAN), an Ethernet-based network, a token ring network, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0028] Server 120 may include one or more general-purpose computers, special-purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that can be virtualized to maintain virtual storage devices for servers). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0029] The computing unit in server 120 can run one or more operating systems, including any of the aforementioned operating systems and any commercially available server operating system. Server 120 can also run any of a variety of additional server applications and / or middleware applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0030] In some implementations, server 120 may include one or more applications to analyze and merge data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0031] In some implementations, server 120 can be a server for a distributed system or a server integrated with blockchain. Server 120 can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0032] System 100 may also include one or more databases 130. In some embodiments, these databases may be used to store camera parameter information and image information. For example, one or more of the databases 130 may be used to store information such as images to be stitched. Databases 130 may reside in various locations. For example, a database used by server 120 may be local to server 120, or it may be located remotely to server 120 and may communicate with server 120 via a network-based or dedicated connection. Databases 130 may be of different types. In some embodiments, the database used by server 120 may be, for example, a relational database. One or more of these databases may store, update, and retrieve data from and from the databases in response to commands.
[0033] In some embodiments, one or more of the databases 130 may also be used by an application to store application data. The databases used by the application may be of different types, such as key-value stores, object stores, or regular stores supported by a file system.
[0034] Figure 1 The system 100 can be configured and operated in various ways to enable the application of the various methods and apparatus described in this disclosure.
[0035] Figure 2 A schematic diagram of an example panoramic image generation system 200 in which various methods described herein may be implemented according to exemplary embodiments is shown.
[0036] like Figure 2 As shown, system 200 includes a multi-channel camera 210, a deserializer 220, an image processing chip 230, an FPGA processing unit 240, and a processor 250. The FPGA processing unit 240 further includes a MIPI IP interface 241, a FIFO data buffer 242, a DMA (Direct Memory Access) module 243, and a PCIe IP interface 244.
[0037] For example, the multi-channel camera 210 can be an eight-channel 8MP camera, which can simultaneously acquire eight 8MP images as images to be stitched together. Furthermore, with the FPGA processing unit 240 as an intermediary, the eight images acquired by the eight cameras can be transmitted in parallel to the processor 250 for image stitching processing.
[0038] For example, the deserializer 220 can be, for instance, a MAX96718 deserializer.
[0039] For example, the image processing chip 230 may be an ISP (Image Signal Processor) image processing chip.
[0040] For example, DMA module 243 may further include a FIFO data interface.
[0041] It should be understood that System 200 is a commonly used panoramic image generation system in this field, and those skilled in the art can understand the specific data processing flow of each module, so it will not be described in detail here.
[0042] Figure 3 A flowchart illustrating a method for processing camera image data according to an embodiment of the present disclosure is shown.
[0043] like Figure 3 As shown, the camera image data processing method 300 includes: Step 310: Obtain initial camera parameters, wherein the initial camera parameters are used for each of the multiple cameras in the multi-channel camera, which is used to acquire multiple images and transmit the multiple images in parallel to the processor for panoramic image stitching. Step 320: Determine the target conditions based on the initial camera parameters, wherein the target conditions indicate the range of exposure delay time that can be set between each two adjacent cameras in the multi-channel camera; Step 330: Determine at least one first time offset based on the target conditions, wherein each of the at least one first time offset indicates the exposure delay time between every two adjacent cameras in the multi-channel camera system, and when setting the exposure delay time between every two adjacent cameras in the multi-channel camera system based on each first time offset, the first traffic peak generated during the parallel transmission of multiple images from the multi-channel camera system to the processor is less than a first threshold; and Step 340: Set the exposure delay time between each pair of adjacent cameras in the multi-camera system according to at least one first time offset.
[0044] Therefore, for scenarios where multiple images acquired by multiple cameras are transmitted in parallel for panoramic stitching, an optimal time offset between every two cameras in the multiple cameras is determined based on the initial parameters of the cameras themselves and the exposure delay time range that enables panoramic image stitching. When multiple cameras are triggered, the exposure delay time between adjacent cameras is set based on the optimal time offset. This ensures the quality of the panoramic image obtained by stitching images acquired by multiple cameras while reducing the peak data traffic when transmitting multiple images acquired by multiple cameras in parallel to the processor, effectively alleviating the interface pressure and data cache pressure on the processor when receiving image data.
[0045] Figure 4 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown.
[0046] According to some embodiments, such as Figure 4 As shown, step 320 includes: Step 410: Determine the pixel row readout time based on the initial camera parameters, whereby the pixel row readout time indicates the time used to read out the data of the corresponding pixel row after exposure; and Step 420: Determine the target conditions based on the image stitching requirements and pixel row readout time. The image stitching requirements indicate the range of exposure delay time that can be set so that the feature similarity between any two images in the stitching process is greater than a third threshold.
[0047] According to one or more embodiments, camera images are exposed in units of pixels. See also Figure 5a The grayscale area in the figure indicates multiple rows of pixels. After each row of pixels in the grayscale area is exposed, the exposed pixel data needs to be read out and transmitted. This is when the "GAP" area shown by the diagonal lines on the right and bottom of the figure is generated.
[0048] In other words, the exposure cycle of each pixel row consists of the exposure time of its corresponding grayscale portion and the readout time of the diagonal portion, and the pixel row readout time in step 410 corresponds to the readout time of the diagonal region at the end of the corresponding pixel row.
[0049] Except for the area at the end of the pixel row on the right, Figure 5a The readout time of the last row of pixels in the current frame image shown also includes the area of the bottom diagonal line (the time interval between two parallel image transmissions). It should be noted that during the optimization process, since the readout time of the last row of pixels is the longest, method 300 uses the readout time of non-last row of pixels as the pixel row readout time (constraint condition), thus satisfying the readout time constraints of all pixel rows at the same time.
[0050] For example, the pixel row readout time in step 410 can be used as an upper limit of the selectable range of the first time offset, so that the pixel row readout time can be used as one of the constraints in the process of optimizing the first time offset in step 330.
[0051] Figure 5b and Figure 5c The data transmission flow is shown when the image data acquired by multiple cameras is transmitted to the processor in parallel, with and without setting the exposure time delay.
[0052] See Figure 5bIt shows the data transmission flow of image transmission when no exposure time delay is set (first time offset equals 0) and the multi-camera setup consists of 8 8MP cameras. From Figure 5b It can be seen that at the first moment of the transmission process, each of the eight cameras simultaneously transmits one row of pixels from its acquired image to the processor. Therefore, the processor will receive image data corresponding to eight rows of pixels at the same time, which is the peak moment of the received traffic. At the second moment, all eight cameras are in the pixel row readout time (GAP), so the amount of data received by the processor at this time is 0.
[0053] See Figure 5c It shows the data transmission flow of images when the exposure time delay is set to 20μs (first time offset is 20μs) and the multiple cameras are 8 channels of 8MP cameras. Compared to Figure 5b It can be seen Figure 5c At any given moment, at least one camera is always in the pixel row readout time. Therefore, after setting the exposure time delay, the data flow received by the processor at any given moment is less than [a certain value]. Figure 5b The peak traffic volume in the first instant is measured, thus achieving traffic shaving.
[0054] It should be noted that, although Figure 5c Each moment in the timeframe corresponds to a complete GAP (pixel row readout time) in at least one camera, but depending on the different exposure time delay settings, the current moment may also correspond to half a GAP, one-third of a GAP, or one-fifth of a GAP in that camera.
[0055] Therefore, under the same hardware conditions, by utilizing pixel row readout time for interleaved transmission of data and gaps, the data flow during parallel transmission of multiple image data is effectively smoothed, reducing the data reception pressure and cache pressure of the processor interface, and reducing the possibility of latency and frame loss.
[0056] Furthermore, by using the image stitching requirements of panoramic images as constraints for optimization, the resulting first-time offset can effectively balance data transmission pressure and image stitching quality, making it suitable for scenarios such as autonomous driving that require processing large amounts of image data simultaneously and have high requirements for panoramic image stitching quality.
[0057] In step 310, the same initial camera parameters can be set for each camera in the multi-camera system to improve the feature similarity between the images acquired by each camera, thereby enabling the stitched panoramic image to have a high degree of fusion and coherence.
[0058] According to some embodiments, the initial camera parameters include at least the camera frame rate, pixel clock, and the number of pixel columns and pixel rows of the acquired image for each camera, and step 410 includes: determining the pixel row readout time based on the camera frame rate, pixel clock, number of pixel columns, and number of pixel rows.
[0059] Depend on Figure 5a It can be seen that the pixel row readout time in step 410 is related to the number of pixel rows and columns in the current frame, the camera frame rate, and the pixel clock. Therefore, the pixel row readout time can be accurately calculated based on the above four parameters, which can be used as one of the constraints for optimizing the time offset.
[0060] Figure 6 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown.
[0061] According to some embodiments, such as Figure 6 As shown, step 330 includes: Step 631: Determine multiple second time offsets based on the target conditions, wherein each of the multiple second time offsets indicates the exposure delay time between every two adjacent cameras in the multi-camera system. Step 632: Perform trigger tests on the multiple cameras based on each second time offset to obtain multiple second traffic peaks corresponding to the multiple second time offsets. Each of the multiple second traffic peaks indicates the traffic peak generated during the parallel transmission of multiple images from the multiple cameras to the processor based on the corresponding second time offset; and Step 633: Select at least one second flow peak that is less than the first threshold from multiple second flow peaks, and take at least one second time offset corresponding to at least one second flow peak as at least one first time offset.
[0062] Based on this, the optional second time offset is first determined according to the image stitching requirements and pixel row readout time. Then, based on the trigger test, the second time offset with better smooth data flow effect is selected as the first time offset. The implementation method is simple, efficient and highly accurate.
[0063] According to some embodiments, image stitching requirements include at least one of the following: the maximum transmission bandwidth allowed by the processor interface, the maximum data buffer size allowed by the processor, and the maximum allowable exposure delay time to ensure that the feature similarity between any two images stitched from multiple images is greater than a third threshold.
[0064] From the perspective of image stitching, each image used for panoramic image stitching must have an overlapping area with at least one other image. This allows for the determination of feature similarity between the two images based on the overlapping area, thus enabling image stitching. Therefore, if the initial time offset is too large, the overlapping area between the acquired images will be too small or even non-existent, making effective stitching impossible.
[0065] Furthermore, from the perspective of data transmission, although setting a first time offset can reduce the peak data transmission rate, if the reduced peak data transmission rate is still greater than the maximum transmission bandwidth allowed by the processor interface and the maximum amount of cached data allowed by the processor, the processor will not be able to receive the image data transmitted in parallel completely, and there will also be latency and frame loss, which will affect the quality of the stitched panoramic image.
[0066] Therefore, using the above three items as image stitching requirements can minimize the impact of the first time offset on panoramic image stitching and determine the quality of the final panoramic image.
[0067] In one or more embodiments, in order to simplify the processing flow, any one or any two of the above three items can be used as image stitching requirements to balance processing costs and panoramic image quality.
[0068] In the example, for Figure 2 The panoramic image generation system 200 shown has an 8-channel 8MP camera. The maximum transmission bandwidth allowed by the processor interface can be, for example, 7.63 GB / s, and the maximum data cache size allowed by the processor can be, for example, 5600 B.
[0069] According to one or more embodiments, in step 330, a first threshold for the traffic peak can be determined based on at least one of the maximum transmission bandwidth allowed by the processor's interface and the maximum data buffer size allowed by the processor.
[0070] According to one or more embodiments, in step 420, one or more discrete first time offsets are determined based on image stitching requirements and pixel row readout time.
[0071] According to one or more embodiments, in step 420, the selectable range of time offset can also be determined according to the image stitching requirements and pixel row readout time, and multiple selectable time offsets can be determined from the selectable range with the target time unit as the interval to perform traffic peak testing, so as to determine at least one first time offset.
[0072] For example, based on the image stitching requirements and pixel row readout time, the selectable range is determined to be [0, 50μs]. If 1μs is used as the target time unit, the selectable time offset includes 0, 1μs, 2μs, 3μs...50μs. After conducting the peak flow test, 2μs, 4μs, 13μs and 25μs are determined as at least one first time offset.
[0073] According to one or more embodiments, in step 330, the first flow peak corresponding to each determined first time offset may be the same or different.
[0074] In the example, the smallest first time offset can be selected from multiple first time offsets corresponding to the same first flow peak as the optimal solution to improve exposure efficiency. For example, if 2μs, 4μs, and 13μs correspond to the same first flow peak, then 2μs can be selected as the optimal first time offset and set as the camera's exposure delay time.
[0075] According to some embodiments, panoramic image stitching includes panoramic image stitching for moving objects, and the maximum value of the exposure delay time allowed to be set is determined based on the following conditions to ensure that the feature similarity between every two images in the stitching of multiple images is greater than a third threshold: the moving speed of the moving object, the moving distance of the moving object corresponding to a single pixel in the image acquired by each camera, and the allowed pixel offset in the image acquired by each camera to achieve panoramic image stitching.
[0076] In one or more embodiments, in order to simplify the processing flow, the maximum value of the allowable exposure delay time can be determined based on any one or any two of the above three items, so as to balance processing cost and panoramic image quality.
[0077] In scenarios such as autonomous driving, it is often necessary to acquire and stitch panoramic images of moving objects (e.g., vehicles moving relative to roadside equipment, or pedestrians and obstacles moving relative to vehicles). In this case, it is necessary to set the maximum allowable time offset according to the specific state parameters of the moving objects to ensure that multiple clear images with sufficient continuity and overlap can be acquired as images to be stitched.
[0078] In the example, a roadside device including eight cameras needs to acquire panoramic images of a road scene including moving vehicles. The speed of the moving vehicles is known to be 120 km / h (33.33 m / s). In the images acquired by each camera, the actual distance in the road scene corresponding to a single pixel is 3.57 mm / pixel, and the allowed pixel offset in the acquired images is 1.5 pixels.
[0079] Based on this, each first time offset can be determined as the maximum value allowed for panoramic image stitching in the following way: Maximum allowed actual offset distance = = 5.355mm Maximum allowed total time offset = = 161μs Maximum allowable first time offset between two adjacent cameras = = 23μs Therefore, by using 23μs as the maximum exposure delay time limit, we can ensure that the optimized first time offset is sufficient to stitch together a clear and complete panoramic image of the road scene with a moving vehicle.
[0080] Figure 7 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown.
[0081] According to some embodiments, such as Figure 7 As shown, in addition to steps 310 to 340, method 300 further includes: Step 710: Perform a verification test on each of the at least one first time offset; Step 720: Take at least one first time offset that has passed the verification test as a third time offset to obtain at least one third time offset; and Step 730: Set the exposure delay time between each pair of adjacent cameras in the multi-camera system according to at least one third time offset.
[0082] By verifying and testing at least one first time offset obtained through optimization, the effectiveness of at least one third time offset obtained at the end can be further improved.
[0083] According to some embodiments, the verification test includes at least one of the following: verifying whether the first traffic peak corresponding to each first time offset is less than the maximum transmission bandwidth allowed by the processor's interface, verifying whether the first traffic peak corresponding to each first time offset is less than the maximum data buffer size allowed by the processor, and verifying whether the image stitching error of the acquired multiple images is less than a second threshold when the exposure delay time between each two adjacent cameras in the multiple cameras is set based on each first time offset, wherein the image stitching error indicates the degree of feature difference between the regions used for image stitching between each two images in the multiple images.
[0084] Using the above three items as image stitching requirements can effectively verify whether the determined first time offset will affect the quality of panoramic image stitching, thereby further improving the quality of the final panoramic image.
[0085] Figure 8 A partial flowchart of another method for processing camera image data according to an embodiment of the present disclosure is shown.
[0086] According to some embodiments, such as Figure 8 As shown, in addition to steps 310 to 340, method 300 further includes: Step 810: In response to the existence of at least one non-integer first time offset among at least one first time offset, align and / or round the at least one non-integer first time offset to obtain at least one fourth time offset; and Step 820: Update at least one first time offset based on at least one fourth time offset.
[0087] The first time offset obtained through optimization may be a floating-point number. Therefore, by simplifying its numerical value, the data processing difficulty when setting the exposure time delay based on the first time offset can be reduced, thereby improving the practicality of the obtained first time offset.
[0088] Figure 9 A structural block diagram of a camera image data processing apparatus according to an embodiment of the present disclosure is shown.
[0089] According to another aspect of this disclosure, a camera image data processing apparatus is provided. For example... Figure 9 As shown, the data quantization device 900 of the optimizer includes: an acquisition module 910 configured to acquire initial camera parameters, wherein the initial camera parameters are used for each of the multiple cameras in a multi-channel camera array, the multiple cameras being used to acquire multiple images and transmit the multiple images in parallel to the processor for panoramic image stitching; a first determination module 920 configured to determine target conditions based on the initial camera parameters, wherein the target conditions indicate the range of allowable exposure delay times between each pair of adjacent cameras in the multi-channel camera array; a second determination module 930 configured to determine at least one first time offset based on the target conditions, wherein each of the at least one first time offset indicates the exposure delay time between each pair of adjacent cameras in the multi-channel camera array when the multiple cameras are triggered sequentially, and, when setting the exposure delay time between each pair of adjacent cameras in the multi-channel camera array based on each first time offset, a first traffic peak generated during the parallel transmission of multiple images to the processor by the multiple cameras is less than a first threshold; and a first setting module 940 configured to set the exposure delay time between each pair of adjacent cameras in the multi-channel camera array based on at least one first time offset.
[0090] According to another aspect of this disclosure, an electronic device is also provided, 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, the instructions being executed by the at least one processor to enable the at least one processor to perform the aforementioned method.
[0091] According to another aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to cause the computer to perform the aforementioned method.
[0092] According to another aspect of this disclosure, a computer program product is also provided, including a computer program, wherein the computer program implements the aforementioned method when executed by a processor.
[0093] like Figure 10 As shown, the electronic device 500 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. The RAM 1003 may also store various programs and data required for the operation of the electronic device 500. The computing unit 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0094] Multiple components in electronic device 1000 are connected to I / O interface 1005, including: input unit 1006, output unit 1007, storage unit 1008, and communication unit 1009. Input unit 1006 can be any type of device capable of inputting information to electronic device 1000. Input unit 1006 can receive input digital or character information and generate key signal input related to user settings and / or function control of electronic device, and may include, but is not limited to, a mouse, keyboard, touchscreen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 1007 can be any type of device capable of presenting information, and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 1008 may include, but is not limited to, disk and optical disk. Communication unit 1009 allows electronic device 1000 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth. TMDevices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices and / or the like.
[0095] The computing unit 1001 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the various methods and processes described above, such as GPU-based matrix computation methods. For example, in some embodiments, the GPU-based matrix computation method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the GPU-based matrix computation method described above can be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform a GPU-based matrix computation method by any other suitable means (e.g., by means of firmware).
[0096] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0098] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0100] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0101] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0102] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0103] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.
Claims
1. A method for processing camera image data, comprising: Obtain initial camera parameters, wherein the initial camera parameters are used for each of the multiple cameras in the multi-channel camera, the multiple cameras are used to acquire multiple images and transmit the multiple images in parallel to the processor for panoramic image stitching, and wherein the initial camera parameters include at least the camera frame rate, pixel clock and the number of pixel columns and pixel rows of the acquired images of each camera; The pixel row readout time is determined based on the initial camera parameters, wherein the pixel row readout time indicates the time used to read out the data of the corresponding pixel row after exposure; The target conditions are determined based on the image stitching requirements and the pixel row readout time, wherein the image stitching requirements indicate the range of exposure delay time that can be set so that the feature similarity between any two images stitched in the multi-image array is greater than a third threshold, and wherein the target conditions indicate the range of exposure delay time that can be set between any two adjacent cameras in the multi-camera array. At least one first time offset is determined based on the target conditions, wherein each of the at least one first time offset indicates the exposure delay time between every two adjacent cameras in the multi-channel camera system, and when the exposure delay time between every two adjacent cameras in the multi-channel camera system is set based on each first time offset, the first traffic peak generated by the multi-channel camera system during the parallel transmission of the multiple images to the processor is less than a first threshold; and The exposure delay time between each pair of adjacent cameras in the multi-channel camera is set according to the at least one first time offset.
2. The method according to claim 1, wherein, Determining at least one first time offset based on the target conditions includes: A plurality of second time offsets are determined based on the target conditions, wherein each of the plurality of second time offsets indicates the exposure delay time between every two adjacent cameras in the multi-camera system; Trigger tests are performed on the multi-camera system based on each of the second time offsets to obtain multiple second traffic peaks corresponding to the multiple second time offsets. Each of the multiple second traffic peaks indicates the traffic peak generated during the parallel transmission of the multiple images from the multi-camera system to the processor, based on the corresponding second time offset. At least one second traffic peak less than the first threshold is selected from the plurality of second traffic peaks, and at least one second time offset corresponding to the at least one second traffic peak is used as the at least one first time offset.
3. The method according to claim 1, wherein, The step of determining the pixel row readout time based on the initial camera parameters includes: The pixel row readout time is determined based on the camera frame rate, the pixel clock, the number of pixel columns, and the number of pixel rows.
4. The method according to claim 1, wherein, The image stitching requirements include at least one of the following: The maximum allowable transmission bandwidth of the processor's interface, the maximum allowable data buffer size of the processor, and the maximum allowable exposure delay time to ensure that the feature similarity between any two images stitched together from the multiple images is greater than a third threshold.
5. The method according to claim 4, wherein, The panoramic image stitching includes panoramic image stitching for moving objects, and wherein the maximum value of the exposure delay time allowed to be set is determined based on the following condition: to ensure that the feature similarity between any two images in the stitching of the multiple images is greater than a third threshold. The moving speed of the moving object, the moving distance of the moving object corresponding to a single pixel in the image captured by each camera, and the allowed pixel offset in the images captured by each camera to achieve the panoramic image stitching.
6. The method according to claim 1, further comprising: A verification test is performed on each of the at least one first time offset, wherein the verification test is used to verify whether each first time offset satisfies the requirement of achieving the panoramic image stitching; The first time offset that passes the verification test is used as the third time offset to obtain at least one third time offset; and The exposure delay time between each pair of adjacent cameras in the multi-channel camera is set according to the at least one third time offset.
7. The method according to claim 6, wherein, The verification test includes at least one of the following: The system verifies whether the peak traffic value corresponding to each first time offset is less than the maximum transmission bandwidth allowed by the processor's interface, whether the peak traffic value corresponding to each first time offset is less than the maximum data buffer size allowed by the processor, and whether the image stitching error of the acquired multiple images is less than a second threshold when the exposure delay time between each two adjacent cameras in the multiple cameras is set based on each first time offset. The image stitching error indicates the degree of feature difference between the regions used for image stitching between each two images in the multiple images.
8. The method according to any one of claims 1-7, further comprising: In response to the presence of at least one non-integer first time offset among the at least one first time offset, the at least one non-integer first time offset is aligned and / or rounded to obtain at least one fourth time offset; as well as The at least one first time offset is updated based on the at least one fourth time offset.
9. An image data processing apparatus, comprising: The acquisition module is configured to acquire initial camera parameters, wherein the initial camera parameters are used for each of the multiple cameras in the multi-channel camera, the multiple cameras are used to acquire multiple images and transmit the multiple images in parallel to the processor for panoramic image stitching, and wherein the initial camera parameters include at least the camera frame rate, pixel clock and the number of pixel columns and pixel rows of the acquired images of each camera. The first determining module is configured to determine target conditions based on the initial camera parameters, wherein the target conditions indicate the range of exposure delay times that can be set between each pair of adjacent cameras in the multi-channel camera; The second determining module is configured to determine at least one first time offset based on the target conditions, wherein each of the at least one first time offset indicates, when the multi-camera system is triggered sequentially, the exposure delay time between every two adjacent cameras in the multi-camera system, and when the exposure delay time between every two adjacent cameras in the multi-camera system is set based on each first time offset, the first traffic peak generated by the multi-camera system during the parallel transmission of the multiple images to the processor is less than a first threshold; and The first setting module is configured to set the exposure delay time between every two adjacent cameras in the multi-channel camera array based on the at least one first time offset. The first determining module includes: The first determining submodule is configured to determine a pixel row readout time based on the initial camera parameters, wherein the pixel row readout time indicates the time for reading out data from the corresponding pixel row after exposure; and The second determining submodule is configured to determine the target conditions based on the image stitching requirements and the pixel row readout time, wherein the image stitching requirements indicate the range of the exposure delay time that can be set so that the feature similarity between any two images to be stitched in the multiple images is greater than a third threshold.
10. The apparatus according to claim 9, wherein, The second determining module includes: The determination submodule is configured to determine a plurality of second time offsets based on the target conditions, wherein each of the plurality of second time offsets indicates the exposure delay time between every two adjacent cameras in the multi-camera system. The test submodule is configured to trigger tests on the multi-camera system based on each of the second time offsets, obtaining multiple second traffic peaks corresponding to the multiple second time offsets. Each of the multiple second traffic peaks indicates the traffic peak generated during the parallel transmission of the multiple images from the multi-camera system to the processor, based on the corresponding second time offset. The filtering submodule is configured to filter out at least one second traffic peak that is less than the first threshold from the plurality of second traffic peaks, and to use at least one second time offset corresponding to the at least one second traffic peak as the at least one first time offset.
11. The apparatus according to claim 9, wherein, The first determining module is configured as follows: The pixel row readout time is determined based on the camera frame rate, the pixel clock, the number of pixel columns, and the number of pixel rows.
12. The apparatus according to claim 9, wherein, The image stitching requirements include at least one of the following: The maximum allowable transmission bandwidth of the processor's interface, the maximum allowable data buffer size of the processor, and the maximum allowable exposure delay time to ensure that the feature similarity between any two images stitched together from the multiple images is greater than a third threshold.
13. The apparatus according to claim 12, wherein, The panoramic image stitching includes panoramic image stitching for moving objects, and wherein the maximum value of the exposure delay time allowed to be set is determined based on the following condition: to ensure that the feature similarity between any two images in the stitching of the multiple images is greater than a third threshold. The moving speed of the moving object, the moving distance of the moving object corresponding to a single pixel in the image captured by each camera, and the allowed pixel offset in the images captured by each camera to achieve the panoramic image stitching.
14. The apparatus according to claim 9, further comprising: The verification module is configured to perform a verification test on each of the at least one first time offset, wherein the verification test is used to verify whether each first time offset satisfies the requirement of enabling the panoramic image stitching. The third determining module is configured to use the first time offset that passes the verification test among the at least one first time offset as the third time offset, so as to obtain at least one third time offset; and The second setting module is configured to set the exposure delay time between every two adjacent cameras in the multi-camera system based on the at least one third time offset.
15. The apparatus according to claim 14, wherein, The verification test includes at least one of the following: The system verifies whether the peak traffic value corresponding to each first time offset is less than the maximum transmission bandwidth allowed by the processor's interface, whether the peak traffic value corresponding to each first time offset is less than the maximum data buffer size allowed by the processor, and whether the image stitching error of the acquired multiple images is less than a second threshold when the exposure delay time between each two adjacent cameras in the multiple cameras is set based on each first time offset. The image stitching error indicates the degree of feature difference between the regions used for image stitching between each two images in the multiple images.
16. The apparatus according to any one of claims 9-15, further comprising: The numerical module is configured to align and / or round the at least one non-integer first time offset in response to the presence of at least one non-integer first time offset among the at least one first time offset, to obtain at least one fourth time offset. as well as The update module is configured to update the at least one first time offset based on the at least one fourth time offset.
17. An electronic device comprising: At least one processor; as well as A memory that is communicatively connected to the at least one processor; in The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-8.
19. A computer program product comprising a computer program, wherein, The computer program, when executed by a processor, implements the method of any one of claims 1-8.
Citation Information
Patent Citations
Panoramic video synchronous splicing system and method and panoramic video display device
CN107396068A
A multi-mode processing method of panoramic data based on limited bandwidth
CN109089083A
