Camera equalization parameter adjustment method and device, equipment and storage medium

By dynamically adjusting the equalization parameters of the camera in autonomous vehicles, and adjusting the communication link and configuration parameters based on the effective frame rate change trend, the problem of unstable transmission quality is solved, the link usage time is extended, and the cost is reduced.

CN118612404APending Publication Date: 2024-09-06GUANGZHOU WERIDE TECH LTD CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410555947.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing camera equalization parameter adjustment method cannot be dynamically adjusted for a long time, the chip link is incompatible, and the camera link cannot be independently adjusted, resulting in unstable transmission quality.

Method used

After the camera is initialized, it determines whether the data stream outputs a normal image, obtains the number of effective frames and the total number of frames in a continuous time period, calculates the effective frame rate, adjusts the equalization parameters based on the frame rate change trend, and dynamically adjusts the communication link and configuration. parameter.

Benefits of technology

It extends the use time of the transmission link, improves the accuracy of data transmission, reduces adjustment costs, and realizes independent and long-term dynamic adjustment of the camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612404A
    Figure CN118612404A
Patent Text Reader

Abstract

The invention relates to the technical field of automatic driving, and discloses a camera equalization parameter adjustment method and device, equipment and a storage medium. The method comprises the following steps: after a camera is initialized, judging whether a camera data stream outputs a normal image under a current equilibrium parameter, if so, obtaining the effective frame number and the total frame number of original image data generated by the camera in a plurality of continuous preset time periods, and if not, obtaining the total frame number of the original image data; and calculating the effective frame rate of each preset time period based on the effective frame number and the total frame number, and adjusting the current equalization parameter based on the change trend of each effective frame rate. According to the scheme, the transmission link of the camera and the camera are dynamically adjusted, so that transmission loss caused by physical characteristics of a transmission line is compensated, the service time of the transmission link of the camera is prolonged, the accuracy of data transmission of the camera is improved, and the cost of adjusting the balance parameter of the camera in the automatic driving vehicle is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a camera balance parameter adjustment method, device, equipment and storage medium. Background Art

[0002] Vehicles with intelligent driving capabilities typically use high-speed serial links for high-speed data transmission between the main driving computing unit and the camera. The physical medium is typically shielded coaxial cable. To compensate for transmission losses caused by the physical characteristics of the transmission line (such as variations in transmission characteristics over length), pre-emphasis and equalization (EQ) are implemented to compensate for transmission link impairments. Chip manufacturers typically offer 10 to 12 EQ settings to accommodate different physical transmission line scenarios. However, in real-world applications, the physical transmission characteristics of the high-speed coaxial cable connecting the camera change over time due to environmental factors such as temperature and vibration. A specific pre-defined EQ setting is no longer suitable for long-term, fixed application of a specific camera connection. Pre-defined EQ settings may not adapt to different camera connections in a vehicle. Chip manufacturers' automatic equalization (AEQ) features often suffer from inaccurate auto-detection and lack compatibility with previous-generation serial communication technologies. For example, for GMSL1 communication links, the AEQ technology provided by GMSL2 chips does not work correctly on the GMSL1 protocol to which they are compatible. In addition, the automatic equalization (AEQ) function provided by existing chip manufacturers uses the signal quality detected by the chip itself as the basis for adjustment, which is different from the final image quality. Summary of the Invention

[0003] The main purpose of the present invention is to solve the technical problems existing in the camera's equalization parameter adjustment method, such as the inability to make long-term dynamic adjustments, chip link incompatibility, and the inability to independently adjust the camera link.

[0004] A first aspect of the present invention provides a method for adjusting the equalization parameters of a camera, which is applied to an autonomous driving vehicle. The method includes: after initializing the camera, determining whether the camera data stream outputs a normal image under the current equalization parameters; if so, obtaining the valid frame number and total frame number of the original image data generated by the camera in multiple consecutive preset time periods, and calculating the effective frame rate of each preset time period based on the valid frame number and the total frame number; and adjusting the current equalization parameters based on the changing trend of each of the effective frame rates.

[0005] Optionally, in the first implementation method of the first aspect of the present invention, after the camera is initialized, before determining whether the camera data stream outputs a normal image under the current balancing parameters, it also includes: obtaining the balancing gear corresponding to the communication link and configuration parameters of the camera on the autonomous driving vehicle, and determining the balancing parameters corresponding to each balancing gear; querying whether the camera system has received the status of the balancing gear adjustment flag; when the status is the set state, controlling the communication link and configuration parameters of the corresponding camera to be adjusted to the corresponding balancing gear based on the balancing gear adjustment flag, and obtaining the current balancing parameters of the camera based on the correspondence between the balancing gear and the balancing parameters.

[0006] Optionally, in a second implementation method of the first aspect of the present invention, after the camera is initialized, determining whether the camera data stream outputs a normal image under the current equalization parameters includes: after the camera is initialized, receiving the camera data stream based on the current equalization parameters; verifying the camera data stream based on the format and integrity of the camera data stream to obtain a verification result; and determining whether the camera data stream outputs a normal image under the current equalization parameters based on the verification result.

[0007] Optionally, in a third implementation method of the first aspect of the present invention, the obtaining of the valid frame number and the total frame number of the original image data generated by the camera in a plurality of consecutive preset time periods, and calculating the effective frame rate of each preset time period based on the valid frame number and the total frame number, includes: obtaining the original image data generated by the camera in a plurality of consecutive preset time periods, and counting the total frame number of the original image data; performing feature analysis on the original image data to obtain image features of each original image, and judging whether each original image is a valid image based on each image feature, wherein the image features include a timestamp and verification information; if so, counting the number of valid images in each preset time period to obtain the valid frame number; calculating the ratio of the valid frame number to the total frame number to obtain the effective frame rate of the camera in each preset time period.

[0008] Optionally, in a fourth implementation method of the first aspect of the present invention, the current equalization parameters are adjusted based on the changing trend of each of the effective frame rates, including: sorting each of the effective frame rates based on the time sequence of the preset time periods corresponding to each of the effective frame rates to obtain an effective frame rate sequence; determining the changing trend of the effective frame rate according to the numerical value of each effective frame rate in the effective frame rate sequence; when the changing trend is continuously declining, controlling the equalization gear adjustment flag position, and adjusting the current equalization parameters of the camera based on the equalization gear adjustment flag position.

[0009] Optionally, in a fifth implementation of the first aspect of the present invention, the adjusting of the current balance parameters of the camera based on the balance gear adjustment flag includes: when the camera is powered on, adjusting the balance gear of the communication link of the camera based on the balance gear adjustment flag; or, when the camera is powered on, adjusting the balance gear of the configuration parameters of the camera based on the balance gear adjustment flag.

[0010] Optionally, in a sixth implementation method of the first aspect of the present invention, after adjusting the current equalization parameters based on the changing trend of each of the effective frame rates, it includes: obtaining the target camera data stream, target effective frame number and target total frame rate generated by the camera based on the adjusted equalization parameters, and calculating the target effective frame rate of the camera based on the adjusted equalization parameters; judging whether the target effective frame rate is within a preset fault tolerance range; if so, determining that the adjusted equalization parameters are the target equalization parameters.

[0011] A second aspect of the present invention provides a camera equalization parameter adjustment device, which is applied to an autonomous driving vehicle, and includes:

[0012] A judgment module, used to judge whether the camera data stream outputs a normal image under the current equalization parameters after the camera is initialized;

[0013] a calculation module, configured to, if yes, obtain the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculate the effective frame rate of each preset time period based on the valid frame number and the total frame number;

[0014] The adjustment module is configured to adjust the current equalization parameters based on the change trend of each of the effective frame rates.

[0015] Optionally, in a first implementation of the second aspect of the present invention, the judgment module includes:

[0016] A verification unit, configured to receive a camera data stream from the camera based on current equalization parameters after initializing the camera; verify the camera data stream based on a format and integrity of the camera data stream to obtain a verification result;

[0017] An image judgment unit is used to judge whether the camera data stream outputs a normal image under the current equalization parameters based on the verification result.

[0018] Optionally, in a second implementation of the second aspect of the present invention, the judgment module further includes:

[0019] The query unit is used to obtain the balancing gear corresponding to the communication link and configuration parameters of the camera on the autonomous driving vehicle, and determine the balancing parameters corresponding to each balancing gear; query whether the camera system has received the status of the balancing gear adjustment flag; when the status is set, control the communication link and configuration parameters of the corresponding camera to be adjusted to the corresponding balancing gear based on the balancing gear adjustment flag, and obtain the current balancing parameters of the camera based on the correspondence between the balancing gear and the balancing parameters.

[0020] Optionally, in a third implementation of the second aspect of the present invention, the calculation module includes:

[0021] a first counting unit, configured to obtain raw image data generated by the camera within a plurality of consecutive preset time periods, and count the total number of frames of the raw image data;

[0022] a feature analysis unit, configured to perform feature analysis on the original image data to obtain image features of each original image, and determine whether each original image is a valid image based on each image feature, wherein the image features include a timestamp and verification information;

[0023] The second statistical unit is used to count the number of valid images in each preset time period to obtain the valid frame number; calculate the ratio of the valid frame number to the total frame number to obtain the effective frame rate of the camera in each preset time period.

[0024] Optionally, in a fourth implementation of the second aspect of the present invention, the adjustment module includes:

[0025] a sorting unit, configured to sort the effective frame rates based on a time sequence of preset time periods corresponding to the effective frame rates to obtain an effective frame rate sequence; and determine a change trend of the effective frame rate according to a value of each effective frame rate in the effective frame rate sequence;

[0026] The control unit is used to control the balance gear adjustment flag to be set when the change trend is continuously decreasing, and adjust the current balance parameters of the camera based on the balance gear adjustment flag.

[0027] Optionally, in a fifth implementation of the second aspect of the present invention, the control unit is specifically used to: when the camera is powered on, adjust the balance gear of the communication link of the camera based on the balance gear adjustment flag; or, when the camera is powered on, adjust the balance gear of the configuration parameters of the camera based on the balance gear adjustment flag.

[0028] Optionally, in a sixth implementation of the second aspect of the present invention, the adjustment module further includes:

[0029] A confirmation unit is used to obtain the target camera data stream, target effective frame number and target total frame rate generated by the camera based on the adjusted equalization parameters, and calculate the target effective frame rate of the camera based on the adjusted equalization parameters; determine whether the target effective frame rate is within a preset fault tolerance range; if so, determine that the adjusted equalization parameters are the target equalization parameters.

[0030] The third aspect of the present invention provides a camera equalization parameter adjustment device, which includes a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory to enable the camera equalization parameter adjustment device to execute the camera equalization parameter adjustment method as described above.

[0031] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, implement the above-mentioned camera equalization parameter adjustment method.

[0032] In the technical solution provided by the present invention, after the camera is initialized, it is determined whether the camera data stream outputs a normal image under the current equalization parameters. If so, the valid frame number and total frame number of the original image data generated by the camera within multiple consecutive preset time periods are obtained, and the effective frame rate of each preset time period is calculated based on the valid frame number and total frame number. The current equalization parameters are adjusted based on the changing trend of each effective frame rate. This solution dynamically adjusts the camera's transmission link and the camera itself by using the final image valid frame number as the basis for adjusting the equalization adjustment gear. This compensates for transmission losses caused by the physical characteristics of the transmission line, extends the service life of the transmission link, improves the accuracy of camera data transmission, and reduces the cost of adjusting the equalization parameters of the camera in the autonomous vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a first embodiment of a method for adjusting camera equalization parameters provided by an embodiment of the present invention;

[0034] Figure 2 A schematic diagram of a second embodiment of a method for adjusting camera equalization parameters provided by an embodiment of the present invention;

[0035] Figure 3 A schematic flow chart of a method for adjusting camera equalization parameters provided by an embodiment of the present invention;

[0036] Figure 4 A schematic structural diagram of a camera equalization parameter adjustment device provided by an embodiment of the present invention;

[0037] Figure 5Another structural diagram of the device for adjusting the equalization parameters of a camera provided by an embodiment of the present invention;

[0038] Figure 6 A schematic diagram of the structure of a camera equalization parameter adjustment device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] With respect to the existing camera equalization parameter adjustment method, the present application improves the efficiency of camera equalization parameter adjustment.

[0040] The terms "first," "second," "third," "fourth," and the like (if any) in the description and claims of the present invention and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, apparatus, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0041] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 A schematic diagram of a first embodiment of a method for adjusting camera equalization parameters provided by an embodiment of the present invention, the method specifically comprising the following steps:

[0042] 101. After the camera is initialized, determine whether the camera data stream outputs a normal image under the current equalization parameters.

[0043] The cameras on autonomous vehicles are initialized and set up at the factory. The initialization steps include: correctly connecting the camera to the autonomous vehicle's hardware system, checking the camera's power supply, installing the camera's required driver on the autonomous vehicle's computer system, setting the camera's configuration parameters (including resolution, frame rate, exposure time, white balance, color correction, etc.) through the camera configuration software, calibrating the camera and performing joint calibration with other vehicle sensors (such as radar and lidar), and finally integrating the camera into the autonomous vehicle's software system to achieve seamless collaboration with other sensors and algorithms. After camera initialization, the camera acquisition system is initialized to ensure that the camera acquisition system can receive the data generated by the camera, determine the camera's current balance gear, and determine whether the camera outputs a normal image based on the camera data stream generated by the camera.

[0044] The initialization described in this solution means that after the camera is initialized, it can transmit the collected image data to the application layer through the communication link based on the communication link. And this solution can configure different balancing gears for different camera links. Specifically, first ensure that the camera and its related hardware have been correctly installed and connected to the autonomous driving vehicle or intelligent driving system, and ensure that the power supply is stable. Based on a suitable calibration environment, initialize the camera parameters, including exposure time, gain, etc., and calculate and adjust the camera's balancing parameters, including color balance, brightness, contrast, etc. according to the preset calibration process to determine the camera's initial balancing parameters. Read and load the camera's basic configuration information, including default balancing parameters, etc., check, identify, and read the new balancing gear configuration, and apply the new balancing parameters to the camera, overwriting or updating the original balancing parameters.

[0045] 102. If yes, obtain the valid frame number and the total frame number of the original image data generated by the camera in a plurality of consecutive preset time periods, and calculate the effective frame rate of each preset time period based on the valid frame number and the total frame number.

[0046] Set a series of continuous preset time periods, such as every day. During each preset time period, collect raw image data from the camera. The raw image data is a continuous sequence of image frames. The raw image data in each time period is parsed to extract the information of each image frame. Apply the preset valid frame judgment standard to screen each image frame, and mark the frames that meet the conditions as valid frames. For each preset time period, count the number of valid frames and the total number of frames respectively. The valid frame number refers to the number of image frames marked as valid frames in the period, and the total number of frames is the number of all image frames collected in the period. Use the valid frame number and the total number of frames to calculate the effective frame rate of each preset time period.

[0047] 103. Adjust current equalization parameters based on the change trend of each effective frame rate.

[0048] Adjusting the current balancing parameters is to adjust the balancing gear corresponding to the balancing parameters. For adjusting the balancing gear, this embodiment provides a tentative adjustment of the balancing gear based on the state of the balancing gear adjustment flag. The states of the balancing gear adjustment flag include a flag set and a flag not set. The balancing gear includes the balancing gear of the communication link and the balancing gear of the camera. The balancing gear of the communication link is provided by the link manufacturer and corresponds to the balancing parameters. The balancing gear of the camera corresponds to multiple configuration parameters of the camera itself. Specifically, when the autonomous driving vehicle detects the position of the balancing gear adjustment flag, it generates a balancing gear adjustment instruction, and adjusts the configuration parameters of the camera and / or the balancing gear of the communication link based on the balancing adjustment instruction.

[0049] It is understandable that the adjustment object of the camera balance parameter adjustment method recorded in this solution is the communication link of each camera and / or the configuration parameters of the camera itself. Regarding the communication link, the Gigabit Multimedia Serial Link (GMSL1) used in autonomous vehicles does not provide AEQ (Automatic Equalization) technology. However, the AEQ technology provided by GMS L2 chips does not work correctly on the compatible GMSL1 communication protocol. Furthermore, the automatic equalization function provided by chip manufacturers suffers from inaccurate automatic detection. Therefore, when cameras on autonomous vehicles use GMSL1, the quality of the final image transmitted by the camera and received by the application layer is used as the basis for adjusting the equalization parameters, thereby performing long-term maintenance on the camera and communication link. This long-term maintenance refers to the difference in the duration of the camera equalization parameter adjustment method described in this solution from the existing chip-level equalization gear adjustment method. This is manifested in inconsistent adjustment judgment durations and specific adjustment times. This solution uses the vehicle's driving process as the judgment process, which could be an hour or a day, meaning the data collection process spans a large time span. This solution uses the camera power-on time as the specific adjustment time, meaning the adjustment time is not arbitrary. In this solution, the correspondence between the balancing gear and the balancing parameter is obtained from the chip layer of the transmission link. The adjustment of the balancing gear can be adjusted independently for a single camera and the corresponding communication link.

[0050] This solution targets the camera transmission link of GMSL1 and adjusts the camera's balancing gear by judging the quality of the final image. Specifically, after confirming that the camera can transmit images, the balancing parameters are adjusted based on the changing trend of the effective frame rate of the transmitted image. That is, the final effective frame number of the image is used as the basis for adjusting the balancing adjustment gear, and the degradation trend of the effective frame rate is used as the basis for adjustment. The camera's transmission link and the camera itself are dynamically adjusted, and the balancing parameters of the camera's high-speed link are dynamically adjusted over a long period of time. This is proactive and unaffected by chip compatibility.

[0051] See also Figure 2 A second embodiment of a method for adjusting camera equalization parameters provided by an embodiment of the present invention is shown in FIG. , wherein the method specifically includes the following steps:

[0052] 201. Query whether the camera system has received the status of the balance gear adjustment flag.

[0053] After the camera establishes a communication connection with the autonomous driving vehicle, a query request is constructed according to the camera's communication protocol. The request should include information for querying the status of the balanced gear adjustment flag, including a specific command code, parameter or identifier. After sending the query request, a response containing the status information of the balanced gear adjustment flag is received. Furthermore, the flag status can be checked to determine whether the camera system has received the balanced gear adjustment flag. The flag can be binary, such as 0 for not received and 1 for received.

[0054] 202. When the state is set, the communication link and configuration parameters of the corresponding camera are controlled to be adjusted to the corresponding balancing gear based on the balancing gear adjustment flag, and the current balancing parameters of the camera are obtained based on the corresponding relationship between the balancing gear and the balancing parameters.

[0055] When a vehicle or intelligent driving system is launched, the system calibration process configures the camera link's balancing parameters for the first time. During the initialization of the camera acquisition system, a check is performed to see if a new balancing gear configuration has taken effect. If so, the new parameters are imported; otherwise, the original balancing parameters are used. At this point, the vehicle is powered on, the camera initializes, and gear adjustment begins. The system checks to see if the balancing gear adjustment flag on the vehicle is set. If so, the balancing gear of the autonomous vehicle is adjusted directly based on the flag.

[0056] The configuration of the communication link includes the transmission speed of the link and the connection status of the link, and the configuration parameters include the image acquisition parameters of the camera.

[0057] 203. Receive a camera data stream based on the current equalization parameter of the camera, and verify the camera data stream based on the format and integrity of the camera data stream to obtain a verification result.

[0058] The system checks whether the camera data stream outputs images normally under the current gear parameters. If the camera cannot output images normally, it needs to readjust the balance gear or roll back to the previous gear. If all gears cannot output images normally, it prompts for maintenance. The verification results include format verification results and integrity verification results.

[0059] Based on the camera's communication protocol (such as RTSP, RTMP, or HTTP), the corresponding library is used to receive the camera's data stream based on the current equalization parameters. The camera data stream includes video frames, audio stream, and metadata. The camera data stream is parsed according to the data stream format (such as H.264, H.265, or MJPEG). The appropriate decoding library is used to parse the video frames and extract each frame. After receiving the camera data stream, the format is checked to ensure that it matches the expected format, generating a format verification result. Format verification includes checking the encoding format, resolution, and frame rate of the camera data stream. A cyclic redundancy check (CRC) or other error detection mechanism is used to verify the integrity of each frame. If the camera data stream is transmitted using a transport layer protocol (such as TCP), the protocol's inherent verification mechanism is used to verify the integrity of the camera data stream to determine whether the data packets are transmitted completely, generating an integrity verification result. The format and integrity verification results are used to generate a verification result for the camera data stream.

[0060] 204. Determine whether the camera data stream outputs a normal image under the current equalization parameters based on the verification result.

[0061] When the verification result is that the format verification result conforms to the preset format and the integrity verification result is that the data stream is complete, it is confirmed that the camera data stream outputs a normal image under the current equalization parameters. At this time, the camera enters normal operation and the vehicle drives normally.

[0062] 205. Obtain raw image data generated by the camera within a plurality of consecutive preset time periods, perform feature analysis on the raw image data, and determine whether each raw image is a valid image.

[0063] Obtain raw image data generated by the camera within multiple consecutive preset time periods, count the total number of frames of the raw image data, perform feature analysis on the raw image data to obtain image features of each raw image, and determine whether each raw image is a valid image based on each image feature, wherein the image features include a timestamp and verification information; if so, count the number of valid images within each preset time period to obtain the valid frame number, wherein the image features include a timestamp and verification information.

[0064] To determine a valid frame, first extract timestamp information from the image data. The timestamp is automatically added to the original image data when it is generated or captured by the camera and is used to identify the time attribute of the image. The extracted timestamp format and time range are further checked to ensure that they are legal and valid. If the timestamp is invalid or does not meet expectations, the image is recaptured or other error reports are generated. Verification information is extracted from each frame of the original image data. The verification information is used to verify the integrity and authenticity of the image and includes a hash value, digital signature, or other verification code. The extracted verification information is verified using a preset verification algorithm to ensure that the correctness of the extracted verification information is correct. If the verification information fails to verify, it is confirmed that the original image data of the current frame has been tampered with or damaged. Combined with the verification results of the timestamp and verification information, a comprehensive judgment is made as to whether the original image is a valid frame. If the timestamp is valid and the image verification information passes verification, the original image is considered a valid frame. The verification results of each image, including the verification status of the timestamp and verification information, are recorded. More preferably, the original image data confirmed as valid frames are marked with the mark "valid frame". By counting all the original image data marked as valid frames within a preset time period, the number of valid frames within the preset time period is obtained. In practical applications, the verification information is a CRC check code.

[0065] 206. Count the number of valid images and the total number of frames of the original image data in each preset time period, calculate the ratio of the valid frame number to the total frame number, and obtain the effective frame rate of the camera in each preset time period.

[0066] During the driving process of the vehicle, the system rolls and counts the number of effective frames of the camera within a specified time period, and obtains the effective frame rate by the ratio of the effective frame number to the total frame number within the time period. In this solution, the effective frame rate = (effective frame number / total frame number) * 100%, that is, the effective frame rate is the percentage of the effective frame number to the total frame number. The original image data generated by the camera within the preset time period includes several frames. The number of frame-based images in the original image data is counted to obtain the total frame number. Each frame image in the total frame number is judged to confirm whether it is a valid image. If so, the frame image is confirmed to be a valid frame, that is, the current frame image confirmed in the original image data is a valid image, and the valid image is a valid frame. The number of valid images is counted to obtain the number of valid frames, that is, the valid frame number described in this embodiment.

[0067] 207. Determine a change trend of the effective frame rate based on the value of each effective frame rate in the effective frame rate sequence.

[0068] The effective frame rates are sorted based on the time sequence of the preset time periods corresponding to each effective frame rate to obtain an effective frame rate sequence; the change trend of the effective frame rate is determined according to the values ​​of each effective frame rate in the effective frame rate sequence; when the change trend is continuously declining, the balance gear adjustment flag position is controlled, and the current balance parameters of the camera are adjusted based on the balance gear adjustment flag position.

[0069] In this embodiment, the effective frame rate data is preprocessed, including removing outliers and filling missing values. For adjacent data points in the effective frame rate sequence, the rate of change between them is calculated by calculating the difference or percentage change between adjacent frame rates. Based on the calculated rate of change, the changing trend of the effective frame rate is analyzed. If the rate of change is mostly positive, it indicates that the frame rate is increasing; if the rate of change is mostly negative, it indicates that the frame rate is decreasing; if the rate of change is close to zero, it indicates that the frame rate is relatively stable. Furthermore, statistical methods can be used to quantify the changing trend. For example, statistical quantities such as the mean, standard deviation, and median of the effective frame rate sequence can be calculated to understand the overall distribution and fluctuation of the frame rate. Trend line fitting can be performed. Linear regression or other methods can be used to fit the changing trend line of the frame rate sequence. Thresholds and judgment conditions can be set. When the rate of change of multiple consecutive data points is lower than the threshold, it is judged that the frame rate is trending downward.

[0070] Compare the camera's effective frame rate with the threshold set by the system. If the effective frame rate shows a continuous downward trend, set the link balancing parameter dynamic adjustment flag. Adjustments will be made during the next system startup without affecting the current driving status. If the effective frame rate remains within the normal range, maintain the current balancing gear.

[0071] In actual applications, the effective frame rates corresponding to the preset time periods are sorted based on their temporal order. For example, the effective frame rate corresponding to the first time period is 95%, the effective frame rate corresponding to the second time period is 92%, the effective frame rate corresponding to the third time period is 90%, and the effective frame rate corresponding to the fourth time period is 89%. The effective frame rate change trend is determined based on the numerical changes of each effective frame rate in the effective frame rate sequence, and it is confirmed that the change trend of the effective frame rate sequence is continuously decreasing. The change trend of the effective frame rate includes continuously decreasing, fluctuating, and remaining unchanged.

[0072] 208. When the change trend is continuously decreasing, control the balance gear adjustment flag position, and adjust the current balance parameters of the camera based on the balance gear adjustment flag position.

[0073] When a continuous downward trend in performance is identified, the control logic will trigger an operation to set the balance gear adjustment flag. The balance gear adjustment flag is a status indicator used to indicate that the balance gear is to be adjusted. The setting operation can be completed through software instructions or hardware signals. After the balance gear adjustment flag is set, the balance gear of the camera is adjusted according to a preset algorithm or rule. When the balance gear is adjusted, different balance gears correspond to different balance parameters. The specific balance gear adjustment involves increasing or decreasing the amplitude of pre-emphasis, adjusting the coefficient of the equalization filter, etc., to compensate for the attenuation and distortion of the signal during transmission. In one feasible method, the current balance parameters of the camera are adjusted based on the balance gear adjustment flag. When the flag position is queried, a tentative adjustment is performed based on the current balance gear. The tentative adjustment is to perform a gear elimination adjustment back and forth based on the current balance gear. Specifically, the balance gear is raised or lowered by one gear to achieve the adjustment of the balance gear. Furthermore, since the signal quality of camera data when it is transmitted in the communication link cannot be obtained at the application layer, that is, the application layer cannot determine the direction of camera degradation, when adjusting the balance level of the communication link, it can only be tentatively adjusted back and forth based on the image quality.

[0074] 209. Calculate a target effective frame rate of the camera based on the adjusted equalization parameters, and when the target effective frame rate is within a preset error tolerance range, determine the adjusted equalization parameters as target equalization parameters.

[0075] According to the requirements of the camera system and the actual application scenario, set the fault tolerance range of the effective frame rate. The fault tolerance range is a percentage based on the maximum allowable frame rate deviation, or a specific frame rate range. After adjusting the equalization parameters, let the camera run in the actual environment for a period of time to collect sufficient image data, calculate the effective frame rate of the camera during this period, and compare the effective frame rate with the fault tolerance range. If the effective frame rate is within the fault tolerance range, confirm that the adjusted equalization parameters are the target equalization parameters. If the effective frame rate is not within the fault tolerance range, it is necessary to readjust the equalization parameters and repeat the above steps until the target equalization parameters are determined.

[0076] See also Figure 3, a flow chart of a camera balance parameter adjustment method provided by an embodiment of the present invention, wherein the camera on the autonomous driving vehicle is factory calibrated and the initial link balance configuration gear parameters are written according to the characteristics of the communication link, and the balance parameters corresponding to each balance gear are determined. After the autonomous driving vehicle is started and the camera is powered on, the camera acquisition system is initialized and configured to confirm that the camera can collect camera data and can transmit the camera data through the communication link, that is, to ensure that the application layer can receive the image data generated by the camera, and query the current balance gear configuration of the camera, check the current balance parameters of the camera, and query the balance gear adjustment flag of the camera. When the flag is set, the new balance gear configuration is imported, and the initialization of the camera is completed through the above steps. After initialization, the camera data stream generated by the camera is received and tested to determine whether the camera data stream is normal. If normal, the camera is confirmed to be operating normally and the vehicle is driving normally. During vehicle operation, a preset time period is determined. Within a specified time length of the preset time period, valid frames are determined based on the timestamp and verification information of each image frame of the raw image data. The number of valid frames and the total number of frames of the camera raw image data are collected. It is also determined whether the proportion of valid frames of the camera shows a trend of gradual degradation within a specified number of collections within a time period with a temporal relationship. Degradation refers to a gradual decrease in the proportion of valid frames in the raw image data generated by the camera. Therefore, for the collection of raw image data generated by the camera, it is necessary to collect multiple raw image data in a chronological order. When no degradation trend is shown, it is confirmed that the balancing parameters of the camera itself and the communication link corresponding to the camera meet the transmission requirements of the camera and the vehicle is driving normally. When a degradation trend is shown, the link balancing parameter dynamic adjustment flag is set, and after the vehicle stops, the balancing gear adjustment process is initiated to control the balancing gear adjustment to increase or decrease.

[0077] This solution uses the final effective frame number of the image as the basis for adjusting the equalization adjustment gear, and uses the degradation trend of the effective frame rate as the adjustment basis to dynamically adjust the camera's transmission link and the camera itself. Each camera channel can be independently adjusted according to the long-term effective frame rate. It can be applied to long-term dynamic adjustment methods and is not affected by chip technology compatibility.

[0078] The above describes the method for adjusting the equalization parameters of the camera in the embodiment of the present invention. The following describes in detail the device for adjusting the equalization parameters of the camera in the embodiment of the present invention from the perspective of modular functional entities. Figure 4 , a structural diagram of a camera equalization parameter adjustment device provided by an embodiment of the present invention, comprising:

[0079] A determination module 410 is configured to determine whether the camera data stream outputs a normal image under current equalization parameters after the camera is initialized;

[0080] a calculation module 420 configured to, if yes, obtain the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculate the effective frame rate of each preset time period based on the valid frame number and the total frame number;

[0081] The adjustment module 430 is configured to adjust the current equalization parameters based on the change trend of each effective frame rate.

[0082] This solution uses the final valid frame number of the image as the basis for adjusting the balance adjustment gear, and uses the trend of error frames gradually appearing according to the degradation of the effective frame rate as the basis for adjustment. It is proactive and can be applied to long-term system aging. In addition, each camera channel can be independently adjusted according to the long-term effective frame rate, allowing long-term dynamic adjustment.

[0083] See also Figure 5 , another structural diagram of the camera equalization parameter adjustment device provided by an embodiment of the present invention includes:

[0084] A determination module 510 is configured to determine whether the camera data stream outputs a normal image under current equalization parameters after the camera is initialized;

[0085] a calculation module 520 configured to, if yes, obtain the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculate the effective frame rate of each preset time period based on the valid frame number and the total frame number;

[0086] The adjustment module 530 is configured to adjust the current equalization parameters based on the change trend of each effective frame rate.

[0087] In this embodiment, the determination module 510 includes:

[0088] The verification unit 512 is configured to receive a camera data stream from the camera based on the current equalization parameters after the camera is initialized; verify the camera data stream based on the format and integrity of the camera data stream to obtain a verification result;

[0089] The image determination unit 513 is configured to determine, based on the verification result, whether the camera data stream outputs a normal image under the current equalization parameters.

[0090] In this embodiment, the determining module 510 further includes:

[0091] The query unit 511 is used to obtain the balancing gear corresponding to the communication link and configuration parameters of the camera on the autonomous driving vehicle, and determine the balancing parameters corresponding to each balancing gear; query whether the camera system has received the status of the balancing gear adjustment flag; when the status is set, control the communication link and configuration parameters of the corresponding camera to be adjusted to the corresponding balancing gear based on the balancing gear adjustment flag, and obtain the current balancing parameters of the camera based on the correspondence between the balancing gear and the balancing parameters.

[0092] In this embodiment, the calculation module 520 includes:

[0093] A first counting unit 521 is configured to obtain raw image data generated by the camera within a plurality of consecutive preset time periods and to count the total number of frames of the raw image data;

[0094] a feature analysis unit 522 configured to perform feature analysis on the original image data to obtain image features of each original image, and determine whether each original image is a valid image based on the image features, wherein the image features include a timestamp and verification information;

[0095] The second statistical unit 523 is used to count the number of valid images in each preset time period to obtain the valid frame number; calculate the ratio of the valid frame number to the total frame number to obtain the effective frame rate of the camera in each preset time period.

[0096] In this embodiment, the adjustment module 530 includes:

[0097] The sorting unit 531 is configured to sort the effective frame rates based on the time sequence of the preset time periods corresponding to the effective frame rates to obtain an effective frame rate sequence; and determine a change trend of the effective frame rate according to the value of each effective frame rate in the effective frame rate sequence;

[0098] The control unit 532 is configured to control the balancing gear adjustment flag to be set when the change trend is continuously decreasing, and adjust the current balancing parameters of the camera based on the balancing gear adjustment flag.

[0099] In this embodiment, the control unit 532 is specifically used to: when the camera is powered on, adjust the balance gear of the communication link of the camera based on the balance gear adjustment flag; or, when the camera is powered on, adjust the balance gear of the configuration parameters of the camera based on the balance gear adjustment flag.

[0100] In this embodiment, the adjustment module 530 further includes:

[0101] The confirmation unit 533 is used to obtain the target camera data stream, target effective frame number and target total frame rate generated by the camera based on the adjusted equalization parameters, and calculate the target effective frame rate of the camera based on the adjusted equalization parameters; determine whether the target effective frame rate is within a preset fault tolerance range; if so, determine that the adjusted equalization parameters are the target equalization parameters.

[0102] This solution dynamically adjusts the camera's transmission link and the camera itself, compensating for transmission losses caused by the physical characteristics of the transmission line, extending the service life of the transmission link, improving the accuracy of camera data transmission, and reducing the cost of adjusting the camera's equalization parameters in autonomous vehicles.

[0103] above Figure 4-5 The equalization parameter adjustment device of the camera in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The equalization parameter adjustment device of the camera in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0104] See also Figure 6 As shown, the camera equalization parameter adjustment device includes a processor 600 and a memory 601, the memory 601 stores machine executable instructions that can be executed by the processor 600, and the processor 600 executes the machine executable instructions to implement the above-mentioned camera equalization parameter adjustment method.

[0105] Further, Figure 6 The camera equalization parameter adjustment device shown further includes a bus 602 and a communication interface 603 , and the processor 600 , the communication interface 603 and the memory 601 are connected via the bus 602 .

[0106] The memory 601 may include a high-speed random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 603 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 602 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0107] The processor 600 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 600. The above-mentioned processor 600 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 601, and processor 600 reads information in memory 601 and, in conjunction with its hardware, completes the method steps of the aforementioned embodiment.

[0108] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the various steps of the camera equalization parameter adjustment method provided in the above embodiments.

[0109] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0111] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A camera equalization parameter adjustment method, applied to an autonomous driving vehicle, characterized in that: The camera's equalization parameter adjustment method includes: After the camera is initialized, it is determined whether the camera data stream outputs a normal image under the current equalization parameters; If so, obtaining the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculating the effective frame rate of each preset time period based on the valid frame number and the total frame number; The current equalization parameters are adjusted based on the variation trends of the effective frame rates.

2. The camera equalization parameter adjustment method according to claim 1, characterized in that: After the camera is initialized, before determining whether the camera data stream outputs a normal image under the current equalization parameters, the method further includes: Obtaining the balancing gear corresponding to the communication link and configuration parameters of the camera on the autonomous driving vehicle, and determining the balancing parameters corresponding to each balancing gear; Check whether the camera system has received the status of the balance gear adjustment flag; When the state is the set state, the communication link and configuration parameters of the corresponding camera are controlled to be adjusted to the corresponding balancing gear based on the balancing gear adjustment flag, and the current balancing parameters of the camera are obtained based on the corresponding relationship between the balancing gear and the balancing parameters.

3. The camera equalization parameter adjustment method according to claim 1, characterized in that: After the camera is initialized, determining whether the camera data stream outputs a normal image under the current equalization parameters includes: After the camera is initialized, a camera data stream based on the current equalization parameters is received; Verifying the camera data stream based on the format and integrity of the camera data stream to obtain a verification result; Based on the verification result, it is determined whether the camera data stream outputs a normal image under the current equalization parameters.

4. The camera equalization parameter adjustment method according to claim 1, characterized in that: The obtaining of the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculating the effective frame rate of each preset time period based on the valid frame number and the total frame number, comprises: Acquire raw image data generated by the camera within a plurality of consecutive preset time periods, and count the total number of frames of the raw image data; Performing feature analysis on the original image data to obtain image features of each original image, and judging whether each original image is a valid image based on each image feature, wherein the image features include a timestamp and verification information; If yes, then count the number of valid images in each preset time period to obtain the valid frame number; The ratio of the effective frame number to the total frame number is calculated to obtain the effective frame rate of the camera in each preset time period.

5. The camera equalization parameter adjustment method according to claim 1, characterized in that: The adjusting the current equalization parameter based on the change trend of each effective frame rate includes: Sorting the effective frame rates based on the time sequence of the preset time periods corresponding to the effective frame rates to obtain an effective frame rate sequence; Determining a change trend of the effective frame rate according to the values ​​of each effective frame rate in the effective frame rate sequence; When the change trend is a continuous decrease, the balance gear adjustment flag is controlled to be set, and the current balance parameters of the camera are adjusted based on the balance gear adjustment flag.

6. The camera equalization parameter adjustment method according to claim 5, characterized in that: The adjusting the current equalization parameters of the camera based on the equalization gear adjustment flag includes: When the camera is powered on, adjusting the balance gear of the communication link of the camera based on the balance gear adjustment flag; Alternatively, when the camera is powered on, the balancing gear of the configuration parameters of the camera is adjusted based on the balancing gear adjustment flag.

7. The camera equalization parameter adjustment method according to claim 1, characterized in that: After the current equalization parameter is adjusted based on the change trend of each effective frame rate, the method further comprises: Obtaining a target camera data stream, a target effective frame number, and a target total frame rate generated by the camera based on the adjusted equalization parameters, and calculating a target effective frame rate of the camera based on the adjusted equalization parameters; Determining whether the target effective frame rate is within a preset fault tolerance range; If so, the adjusted equalization parameters are determined as target equalization parameters.

8. A camera equalization parameter adjustment device, applied to an autonomous driving vehicle, characterized in that: The camera's equalization parameter adjustment device comprises: A judgment module, used to judge whether the camera data stream outputs a normal image under the current equalization parameters after the camera is initialized; A calculation module, for obtaining the valid frame number and the total frame number of the raw image data generated by the camera in a plurality of consecutive preset time periods, and calculating the effective frame rate of each preset time period based on the valid frame number and the total frame number; The adjustment module is used to adjust the current equalization parameters based on the change trend of each effective frame rate.

9. A camera equalization parameter adjustment device, characterized in that: The camera's equalization parameter adjustment device includes a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the camera's equalization parameter adjustment device executes the camera's equalization parameter adjustment method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the equalization parameter adjustment method of the camera as described in any one of claims 1 to 7 is implemented.