Image signal processor debugging method, device and equipment, storage medium and vehicle
By automatically adjusting the parameters of the image signal processor, the problem of low debugging efficiency of the vehicle image signal processor is solved, automated debugging is realized, and costs and time are reduced.
Patent Information
- Application Number
- CN202310189073.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
The debugging of the vehicle image signal processor requires a lot of manual parameter adjustment, which results in high time and labor costs, low efficiency, and requires recalibration and testing every time the camera is replaced.
By collecting the original image data and inputting it into the image signal processor, it is judged whether the processed image index is within the set range, and the parameters are adjusted according to the deviation until the index is within the range to achieve automatic debugging.
It reduces time and labor costs, improves debugging efficiency, reduces calibration and testing time when replacing cameras, and realizes automated debugging.
Smart Images

Figure CN118540421A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automation technology, and in particular to an image signal processor debugging method, device, equipment, storage medium and vehicle. Background Art
[0002] An in-vehicle image signal processor (ISP) is a dedicated in-vehicle image processor that converts raw image data obtained from the camera's image sensor into an image that meets the requirements of a specific application or use case.
[0003] Due to the complexity of image conversion and vehicle usage scenarios, the vehicle's ISP usually has many tuning parameters. At present, the original images output by different cameras will have different differences, resulting in the need to re-calibrate and test the vehicle every time a camera is replaced, which includes the adjustment of the parameters in the ISP; these parameters are usually adjusted manually by experts, which requires a lot of time and scenes for testing and optimization. In addition, it mainly relies on human observation and manual debugging of ISP parameters, so it takes a lot of time and manpower costs, high debugging costs and low efficiency. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides an image signal processor debugging method, device, equipment, storage medium and vehicle.
[0005] In a first aspect, an embodiment of the present disclosure provides an image signal processor debugging method, comprising:
[0006] Use the current camera to collect raw image data;
[0007] Inputting the original image data into an image signal processor, and outputting a processed image through the image signal processor;
[0008] Determining whether the image index in the processed image is within a set range;
[0009] If not, the parameters of the image signal processor corresponding to the image index are adjusted according to the deviation relationship between the image index and the set range. After the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly are executed until the image index in the processed image is within the set range and the debugging is completed.
[0010] In some embodiments, the collecting raw image data using the current camera includes:
[0011] Obtain the original image data of the preset test site taken by the current camera;
[0012] The step of inputting the original image data into an image signal processor and outputting a processed image through the image signal processor comprises:
[0013] The original image data of the preset test site is input into an image signal processor, and the processed image of the preset test site is output by the image signal processor.
[0014] In some embodiments, before collecting raw image data using the current camera, the method further includes:
[0015] Get the setting range of the image index.
[0016] In some embodiments, obtaining the setting range of the image indicator includes:
[0017] Obtain standard image data of a preset test site;
[0018] The standard image data is processed by a pre-adjusted image signal processor to obtain a standard processed image of the preset test site;
[0019] The set range of the image index is extracted from the standard processed image.
[0020] In some embodiments, determining whether the image index in the processed image is within a set range includes:
[0021] extracting a value of an image index from the processed image;
[0022] The value of the image indicator is compared with the setting range of the image indicator to determine the deviation relationship between the value of the image indicator and the setting range of the image indicator.
[0023] In some embodiments, the image indicator includes at least one of the following:
[0024] Black level, signal-to-noise ratio, automatic exposure, lens shading correction, automatic white balance, color correction matrix, gamma, chromatic aberration correction, field of view, high dynamic range, distortion, image clarity, contrast.
[0025] In some embodiments, after the debugging is completed, the method further includes:
[0026] Obtaining a processed target image of a preset test site based on the debugged image signal processor, and evaluating the processed target image of the preset test site;
[0027] If the target processed image of the preset test site meets the evaluation conditions, it is determined that the preliminary debugging of the image signal processor is completed.
[0028] In some embodiments, after the debugging is completed, the method further includes:
[0029] Carry out road test verification on the image signal processor after debugging;
[0030] Performing a virtual scene test and verification on the debugged image signal processor;
[0031] If the image signal processor after debugging passes the road test verification and the virtual scene test verification, it is determined that the image signal processor after debugging meets the acceptance criteria;
[0032] If the image signal processor after debugging fails to pass the road test verification or fails to pass the virtual scene test verification, the image signal processor continues to be debugged.
[0033] In a second aspect, an embodiment of the present disclosure provides an image signal processor debugging device, including:
[0034] The acquisition module is used to acquire raw image data using the current camera;
[0035] An obtaining module, used for inputting the original image data into an image signal processor, and outputting a processed image through the image signal processor;
[0036] A judging module, used to judge whether the image index in the processed image is within a set range;
[0037] The debugging module is used to adjust the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range when the image index in the processed image is not within the set range. After the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor and adjusting the parameters of the image signal processor are executed accordingly, until the image index in the processed image is within the set range and the debugging is completed.
[0038] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0039] Memory;
[0040] Processor; and
[0041] Computer programs;
[0042] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0043] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method as described in the first aspect.
[0044] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the image signal processor debugging method as described above is implemented.
[0045] In a sixth aspect, an embodiment of the present disclosure further provides a vehicle, including:
[0046] Memory;
[0047] Processor; and
[0048] Computer programs;
[0049] The computer program is stored in the memory and is configured to be executed by the processor to implement the image signal processor debugging method as described above.
[0050] The debugging method, device, equipment, storage medium and vehicle of the image signal processor provided by the embodiments of the present disclosure collect original image data by using the current camera, input the original image data into the image signal processor, output the processed image through the image signal processor, judge whether the image index in the processed image is within the set range, if not, adjust the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the index in the processed image and the set range, and after the adjustment, perform the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor and adjusting the parameters of the image signal processor accordingly, until the image index in the processed image is within the set range and the debugging ends. Compared with the prior art, the present disclosure can realize automatic debugging of the image signal processor because the parameters of the image signal processor corresponding to the index in the processed image are adjusted according to the deviation relationship between the index in the processed image and the set range, which solves the problem of manually debugging the image signal processor in the prior art, reduces the time cost and labor cost, and improves the debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0053] Figure 1 A flowchart of an image signal processor debugging method provided by an embodiment of the present disclosure;
[0054] Figure 2 A flowchart of an image signal processor debugging method provided by another embodiment of the present disclosure;
[0055] Figure 3 A schematic diagram of automatic exposure adjustment provided by an embodiment of the present disclosure;
[0056] Figure 4 A schematic diagram of adjusting the black level provided in an embodiment of the present disclosure;
[0057] Figure 5 A schematic diagram of adjusting lens shading correction provided by an embodiment of the present disclosure;
[0058] Figure 6 A flowchart of an image signal processor debugging method provided by another embodiment of the present disclosure;
[0059] Figure 7 A schematic diagram of the structure of an image signal processor debugging device provided by an embodiment of the present disclosure;
[0060] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0063] The embodiment of the present disclosure provides an image signal processor debugging method, which is introduced below in conjunction with a specific embodiment.
[0064] Figure 1A flow chart of the image signal processor debugging method provided in the embodiment of the present disclosure. The method can be applied to a vehicle-mounted terminal, and the method can be applied to the scenario of debugging a vehicle-mounted image signal processor, and the image signal processor can be debugged automatically. The method solves the problem of the prior art that the image signal processor needs to be debugged manually, reduces the time cost and manpower cost, and improves the debugging efficiency. It can be understood that the image signal processor debugging method provided in the embodiment of the present disclosure can also be applied in other scenarios.
[0065] Below Figure 1 The image signal processor debugging method shown in the figure is introduced, and the specific steps of the method are as follows:
[0066] S101, using the current camera to collect original image data.
[0067] The current camera is installed on the vehicle, and the on-board image signal processor does not have a camera that is fully adapted to it. The on-board terminal can use the current camera to collect raw image data, and the raw image data may include one or more image data taken by the current camera at one or more preset test sites. In some optional implementations, the current camera is installed on the vehicle, the vehicle is parked in the preset test site, the current camera takes pictures at the preset test site, and the image sensor of the current camera outputs the raw image data, and the on-board terminal obtains the raw image data collected by the current camera.
[0068] S102: Input the original image data into an image signal processor, and output a processed image through the image signal processor.
[0069] The vehicle terminal inputs the raw image data into an image signal processor, which generates a processed image based on the raw image data. An image signal processor is a dedicated vehicle image processor that can convert the raw data obtained from the camera into image data that meets the requirements of a specific application or use case.
[0070] S103, determining whether the image index in the processed image is within a set range, if not, executing S104, if yes, ending.
[0071] After obtaining the processed image, the vehicle terminal determines whether the image index in the processed image is within the set range. If the image index in the processed image is within the set range, the process ends, indicating that the parameters of the image signal processor corresponding to the image index meet the requirements; if the image index is not within the set range, S104 is executed.
[0072] In some embodiments, the image indicators include at least one of the following: black level, signal-to-noise ratio, automatic exposure, lens shading correction, automatic white balance, color correction matrix, grayscale coefficient, chromatic aberration correction, field of view, high dynamic range, distortion, image clarity, and contrast.
[0073] S104. According to the deviation relationship between the image index and the set range, adjust the parameters of the image signal processor corresponding to the image index and then execute step S102.
[0074] If the image index in the processed image is not within the set range, the vehicle terminal adjusts the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range. After the adjustment, since the parameters of the image signal processor have been adjusted, the original image data can be input into the image signal processor, the processed image is output through the image signal processor, and it is judged whether the image index in the processed image is within the set range, until the image index in the processed image is within the set range, and the debugging ends. For example, when the image index is the automatic exposure, if it is judged that the automatic exposure in the processed image is not within the set range, the vehicle terminal adjusts the parameters of the image signal processor corresponding to the automatic exposure according to the deviation relationship between the automatic exposure and the set range. After adjusting the parameters in the image signal processor, the original image data is input into the image signal processor, and the processed image is output again through the image signal processor to judge whether the current automatic exposure is within the set range. If the current automatic exposure is still not within the set range, the above process is repeated until the automatic exposure in the processed image is within the set range, and the debugging ends. The methods and principles of the debugging process for other indicators are similar to those for automatic exposure, so they will not be elaborated here.
[0075] There are many ways to adjust the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range. Here, the adjustment can be made according to the preset adjustment steps. The preset adjustment steps can be: using the numerical value of the image index to subtract the middle number of the set range to obtain the index difference, and obtaining the required parameter adjustment value according to the preset relationship between the index difference and the parameter adjustment value (such as a numerical comparison table, a relationship function, etc.), adding the parameter adjustment value to the current parameter in the image signal processor to obtain the adjusted parameter, and adjusting it; here, the method of adjusting the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range is not limited.
[0076] The disclosed embodiment uses the current camera to collect raw image data, inputs the raw image data into an image signal processor, outputs a processed image through the image signal processor, determines whether the image index in the processed image is within a set range, and if not, adjusts the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the index in the processed image and the set range, and after the adjustment, performs the steps of inputting the raw image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly, until the image index in the processed image is within the set range and the debugging ends. Compared with the prior art, the disclosed embodiment adjusts the parameters of the image signal processor corresponding to the index in the processed image according to the deviation relationship between the index in the processed image and the set range, so as to realize automatic debugging of the image signal processor, solve the problem of the prior art that the image signal processor needs to be debugged manually, reduce the time cost and labor cost, and improve the debugging efficiency.
[0077] Figure 2 A flowchart of an image signal processor debugging method provided by another embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the method includes the following steps:
[0078] S201: Obtain a setting range of the image index.
[0079] In some embodiments, the setting range of the image index is a specific numerical range that makes the processed image meet the set requirements, which can be a single value or a set of values. In some embodiments, the setting range of the image index is a range previously obtained by the user based on the numerical value of the image index in the processed image output by the debugged image signal processor, which can be pre-stored in the vehicle terminal, and the vehicle terminal can obtain the setting range of the image index.
[0080] In some embodiments, S201 includes S2011, S2012, and S2013:
[0081] S2011. Obtain standard image data of a preset test site.
[0082] The standard image data may be image data collected by an old camera or may be standard image data pre-stored in a vehicle-mounted terminal, and the vehicle-mounted terminal obtains standard image data of a preset test site. The old camera is a camera installed on a vehicle and the vehicle-mounted image signal processor has been adapted to it.
[0083] S2012: Obtain a standard processed image of the preset test site by processing the standard image data through a pre-adjusted image signal processor.
[0084] After acquiring the standard image data of the preset test site, the vehicle terminal uses the pre-adjusted image signal processor to obtain a standard processed image of the preset test site. The pre-adjusted image signal processor can convert the standard image data into a processed image that meets the requirements, that is, a standard processed image.
[0085] S2013: extracting a setting range of the image index from the standard processed image.
[0086] Furthermore, the vehicle terminal can extract the setting range of the index to be debugged of the image signal processor from the standard processed image, for example, extracting the setting range of image indexes such as black level, signal-to-noise ratio, automatic exposure, lens shading correction, and automatic white balance.
[0087] S202: Acquire original image data of a preset test site captured by a current camera.
[0088] The vehicle-mounted terminal obtains the original image data of the preset test site taken by the current camera. The preset test site can be a standard test site. Specific indicators correspond to a specific standard test site. The original image data is a picture of the preset test site taken by the current camera.
[0089] The current camera refers to a camera installed on a vehicle and to which the image signal processor is not fully adapted.
[0090] S203: inputting the original image data of the preset test site into an image signal processor, and outputting a processed image of the preset test site through the image signal processor.
[0091] After the vehicle-mounted terminal acquires the raw image data, the raw image data of the preset test site is input into the image signal processor, and the image signal processor to be debugged outputs the processed image of the preset test site. The image signal processor can convert the raw data obtained from the image sensor of the camera into image data that meets the requirements of a specific application or use case.
[0092] S204: extracting the value of the image index from the processed image.
[0093] After obtaining the processed image of the preset test site, the vehicle terminal extracts the values of image indicators from the processed image, for example, extracts the values of indicators such as black level, signal-to-noise ratio, automatic exposure, lens shading correction, and automatic white balance.
[0094] S205: Compare the value of the image indicator with the setting range of the image indicator to determine the deviation relationship between the value of the image indicator and the setting range of the image indicator.
[0095] The vehicle-mounted terminal compares the numerical value of the image index with the setting range of the image index respectively, and determines the deviation relationship between the numerical value of the image index and the setting range of the image.
[0096] S206: Adjust the parameters of the image signal processor corresponding to the image indicator to be debugged according to the deviation relationship between the value of the image indicator and the setting range of the image indicator.
[0097] The vehicle terminal adjusts the parameters of the image signal processor corresponding to the image indicator according to the deviation relationship between the value of the image indicator and the setting range of the image indicator, so that the value of the image indicator conforms to the setting range of the image indicator.
[0098] S207 , obtaining a processed target image of the preset test site based on the image signal processor after debugging, and evaluating the processed target image of the preset test site.
[0099] After debugging is completed, the vehicle terminal obtains the target processed image of the preset test site based on the image signal processor after debugging, and evaluates the target processed image of the preset test site. The essence of this step is to make a preliminary evaluation of the debugging effect of the image signal processor. For example, an evaluation algorithm or evaluation software (for example, imatest software) can be used to evaluate the target processed image of the preset test site, for example, from the aspects of image clarity, color saturation, brightness, etc.
[0100] S208. If the processed target image of the preset test site meets the evaluation conditions, it is determined that the initial debugging of the image signal processor is completed; if the processed target image of the preset test site does not meet the evaluation conditions, S203 is executed.
[0101] When the processed target image of the preset test site meets the evaluation conditions, the vehicle terminal determines that the initial debugging of the image signal processor is completed. For example, when the clarity of the image in the processed target image meets the corresponding evaluation conditions, the color saturation meets the corresponding evaluation conditions, and the brightness meets the corresponding evaluation conditions, the vehicle terminal determines that the initial debugging of the image signal processor is completed; if the conditions are not met, S203 is executed, that is, the steps of outputting the processed image by the image signal processor and adjusting the parameters of the image signal processor are repeated until the image indicators in the processed image meet the evaluation conditions and the debugging is completed.
[0102] The following is an explanation of some embodiments of image indicators, but does not limit the specific scope of the image indicators.
[0103] In one embodiment, if the image index is automatic exposure, the current camera is used to shoot an image in a preset first scene, and the shot image is converted into a processed image through an image signal processor, and it is determined whether the exposure of the processed image meets the set range of exposure; if it meets the set range, the debugging is terminated; if it is necessary to judge multiple image indicators and adjust the parameters of the corresponding image signal processor, it can be done in sequence. After judging that the exposure meets the set range of exposure, it is determined whether the contrast of the processed image meets the set range of contrast; if it meets the set range, the automatic exposure debugging is completed, otherwise the debugging continues.
[0104] For example, the image indicator is the automatic exposure, such as Figure 3 As shown, the parameters of the first scene are set: ambient brightness, gain value (Gain), register value (AE-comp), grayscale coefficient (Gamma), etc. Then, the current camera is used to shoot an image under the preset first scene, and the shot image is converted into a processed image through an image signal processor, and the gray block brightness of the processed image is analyzed to determine whether the exposure of the image meets the set range of exposure. If the exposure of the image does not meet the set range of exposure, the parameters of the image signal processor corresponding to the exposure are further debugged according to the deviation relationship between the exposure value and the exposure setting range; if the exposure of the image meets the exposure setting range, it is determined whether the contrast of the image meets the contrast setting range; if the contrast of the image meets the contrast setting range, the automatic exposure debugging is completed, and if the contrast of the image does not meet the contrast setting range, the parameters of the image signal processor corresponding to the contrast are further debugged according to the deviation relationship between the contrast value and the contrast setting range.
[0105] In another embodiment, if the image indicator is a black level, the current camera is used to capture an image under a preset second scene to determine whether the black coefficient of the image satisfies a set range of the black coefficient; if so, it is determined whether the full temperature coefficient of the image satisfies a set range of the full temperature coefficient; if so, the black level debugging is completed, otherwise the debugging continues.
[0106] For example, to evaluate the black level, the black level corresponds to two image indicators, the black coefficient and the full temperature coefficient, such as Figure 4As shown, set the parameters of the second scene: ambient brightness, ambient temperature, etc. Then take an image under the preset second scene, analyze the noise and bright spots in the image, and judge whether the blackness coefficient of the image (in a completely dark environment) meets the setting range of the blackness coefficient. If the blackness coefficient of the image does not meet the setting range of the blackness coefficient, the parameters of the image signal processor corresponding to the blackness coefficient are further debugged according to the deviation relationship between the value of the blackness coefficient and the setting range of the blackness coefficient; if the blackness coefficient of the image meets the setting range of the blackness coefficient, judge whether the full temperature coefficient of the image (in an environment of -40℃~85℃) meets the setting range of the full temperature coefficient; if the full temperature coefficient of the image also meets the setting range of the full temperature coefficient, the blackness level debugging is completed, and if the full temperature coefficient of the image does not meet the setting range of the full temperature coefficient, the parameters of the image signal processor corresponding to the full temperature coefficient are further debugged according to the deviation relationship between the value of the full temperature coefficient and the setting range of the full temperature coefficient.
[0107] In another embodiment, if the image indicator is lens shading correction, an image is captured under a preset third scene, the brightness values of the central area and each edge area of the image are calculated, and it is determined whether the difference between the brightness value of the central area of the image and the brightness value of each edge area satisfies a set range of the brightness difference; if so, the lens shading correction debugging is completed, otherwise the brightness compensation step value is adjusted.
[0108] For example, the image indicator is lens shading correction, such as Figure 5 As shown, the parameters of the third scene are set: ambient brightness, ambient light source, test scene, etc. Then, an image is captured under the preset third scene, the brightness values of the central area and each edge area of the image are calculated, and it is determined whether the difference between the brightness value of the central area of the image and the brightness value of each edge area meets the set range of the brightness difference. If the difference between the brightness value of the central area of the image and the brightness value of each edge area meets the set range of the brightness difference, the lens shading correction debugging is completed. If the difference between the brightness value of the central area of the image and the brightness value of each edge area does not meet the set range of the brightness difference, the parameters of the image signal processor corresponding to the brightness difference are further debugged according to the deviation relationship between the value of the brightness difference and the set range of the brightness difference, that is, the brightness compensation step value is adjusted.
[0109] The disclosed embodiment obtains the setting range of the image index, obtains the original image data of the preset test site captured by the current camera, inputs the original image data of the preset test site into the image signal processor, outputs the processed image of the preset test site through the image signal processor, and extracts the value of the image index from the processed image. Further, the value of the image index is compared with the setting range of the image index to determine the deviation relationship between the value of the image index and the setting range of the image index, and the parameters of the image signal processor corresponding to the image index are adjusted according to the deviation relationship between the value of the image index and the setting range of the image index. Then, based on the image signal processor after debugging, the target processed image of the preset test site is obtained, and the target processed image of the preset test site is evaluated. If the target processed image of the preset test site meets the evaluation conditions, it is determined that the initial debugging of the image signal processor is completed. Since the value of the image indicator is compared with the setting range of the image indicator, the deviation relationship between the value of the image indicator and the setting range of the image indicator is determined, and according to the deviation relationship between the value of the image indicator and the setting range of the image indicator, the parameters of the image signal processor corresponding to the image indicator are adjusted so that the value of the image indicator conforms to the setting range of the image indicator, the image signal processor can be automatically debugged, which solves the problem of manual debugging of the image signal processor in the prior art, reduces time and labor costs, and improves debugging efficiency. The present invention reduces the time for debugging the ISP of the camera, and only requires detailed extraction and setting of various important parameters that meet the algorithm, and subsequent iterative replacement of the camera can be completed in a short time.
[0110] Figure 6 A flowchart of an image signal processor debugging method provided by another embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the method includes the following steps:
[0111] S301, using the current camera to collect original image data.
[0112] Specifically, the implementation process and principle of S301 and S101 are the same, and will not be repeated here.
[0113] S302: Input the original image data into an image signal processor, and output a processed image through the image signal processor.
[0114] Specifically, the implementation process and principle of S302 and S102 are the same, and will not be repeated here.
[0115] S303: Determine whether the image index in the processed image is within a set range.
[0116] Specifically, the implementation process and principle of S303 and S103 are the same, and will not be repeated here.
[0117] S304. If not, then according to the deviation relationship between the indicator in the processed image and the set range, the parameters of the image signal processor corresponding to the indicator in the processed image are adjusted, and after the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly are executed until the image indicator in the processed image is within the set range and the debugging is completed.
[0118] Specifically, the implementation process and principle of S304 and S104 are the same, and will not be repeated here.
[0119] S305: Perform road test verification on the debugged image signal processor.
[0120] After the image signal processor is debugged, the vehicle terminal conducts road test verification on the debugged image signal processor. Verifying the debugging effect through road testing realizes post-verification, reduces supply chain risks, and shortens verification time.
[0121] S306: Perform a virtual scene test and verification on the debugged image signal processor.
[0122] Furthermore, the vehicle-mounted terminal performs a virtual scene test to verify the image signal processor that has completed debugging, and verifies the debugging effect by means of the virtual scene test, thereby achieving post-verification, reducing the risk of the supply chain, and shortening the verification time.
[0123] S307: If the debugged image signal processor passes the road test verification and the virtual scene test verification, it is determined that the debugged image signal processor meets the acceptance criteria.
[0124] When the debugged image signal processor passes the road test verification and the virtual scene test verification, the vehicle-mounted terminal determines that the debugged image signal processor meets the acceptance criteria.
[0125] S308: If the debugged image signal processor fails to pass the road test verification or the virtual scene test verification, continue to debug the image signal processor.
[0126] When the debugged image signal processor fails to pass the road test verification, or the debugged image signal processor fails to pass the virtual scene test verification, the vehicle terminal continues to debug the image signal processor.
[0127] The embodiment of the present disclosure uses the current camera to collect raw image data, inputs the raw image data into an image signal processor, outputs a processed image through the image signal processor, determines whether the image index in the processed image is within a set range, and if not, adjusts the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index in the processed image and the set range, and after the adjustment, performs the steps of inputting the raw image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly, until the index in the processed image is within the set range and the debugging is completed. Compared with the prior art, the present disclosure adjusts the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index in the processed image and the set range. Further, the image signal processor after debugging is verified by road test, and the image signal processor after debugging is verified by virtual scene test. If the image signal processor after debugging passes the road test verification and the virtual scene test verification, it is determined that the image signal processor after debugging meets the acceptance criteria; if the image signal processor after debugging fails to pass the road test verification or the virtual scene test verification, the image signal processor continues to be debugged. Compared with the prior art, the present disclosure adjusts the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index in the processed image and the set range, so as to realize automatic debugging of the image signal processor, solve the problem of the prior art that the image signal processor needs to be debugged manually, reduce the time cost and manpower cost, and improve the debugging efficiency. In addition, after the debugging is completed, the present disclosure verifies the debugging effect by means of road testing and virtual scene testing, realizes the later verification, reduces the large amount of debugging and testing work caused by the back-end algorithm due to the sensor change, reduces the risk of the supply chain, and reduces the development time.
[0128] Figure 7 The image signal processor debugging device provided in the embodiment of the present disclosure is a schematic diagram of the structure. The image signal processor debugging device may be the vehicle-mounted terminal as described in the above embodiment, or the image signal processor debugging device may be a component or assembly in the vehicle-mounted terminal. The image signal processor debugging device provided in the embodiment of the present disclosure may execute the processing flow provided in the image signal processor debugging method embodiment, such as Figure 7As shown, the image signal processor debugging device 70 includes: an acquisition module 71, an acquisition module 72, a judgment module 73, and a debugging module 74; wherein the acquisition module 71 is used to use the current camera to acquire original image data; the acquisition module 72 is used to input the original image data into the image signal processor, and output the processed image through the image signal processor; the judgment module 73 is used to judge whether the image index in the processed image is within a set range; the debugging module 74 is used to adjust the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range when the image index in the processed image is not within the set range, and after the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly are executed, until the image index in the processed image is within the set range and the debugging ends.
[0129] Optionally, when the acquisition module 71 uses the current camera to acquire the original image data, it is specifically used to: obtain the original image data of the preset test site captured by the current camera;
[0130] The obtaining module 72 inputs the original image data into the image signal processor, and when the image signal processor outputs the processed image, it is specifically used to: input the original image data of the preset test site into the image signal processor, and output the processed image of the preset test site through the image signal processor.
[0131] Optionally, before the current camera is used to collect raw image data, the device further includes: an acquisition module 75; the acquisition module 75 is used to acquire a set range of the image index.
[0132] Optionally, when the acquisition module 75 acquires the set range of the image indicator, it is specifically used to: acquire standard image data of a preset test site; obtain a standard processed image of the preset test site through a pre-adjusted image signal processor using the standard image data; and extract the set range of the image indicator from the standard processed image.
[0133] Optionally, when the judgment module 73 judges whether the image indicator in the processed image is within the set range, it is specifically used to: extract the value of the image indicator from the processed image; compare the value of the image indicator with the set range of the image indicator, and determine the deviation relationship between the value of the image indicator and the set range of the image indicator.
[0134] Optionally, the image indicators include at least one of the following: black level, signal-to-noise ratio, automatic exposure, lens shading correction, automatic white balance, color correction matrix, grayscale coefficient, chromatic aberration correction, field of view, high dynamic range, distortion, image clarity, and contrast.
[0135] Optionally, after the debugging is completed, the device also includes: an evaluation module 76; the evaluation module 76 is used to obtain a target processed image of a preset test site based on the image signal processor after debugging, and evaluate the target processed image of the preset test site; if the target processed image of the preset test site meets the evaluation conditions, it is determined that the preliminary debugging of the image signal processor is completed.
[0136] Optionally, the device also includes: a first verification module 77 and a second verification module 78; wherein the first verification module 77 is used to perform a road test verification on the image signal processor that has been debugged; the second verification module 78 is used to perform a virtual scene test verification on the image signal processor that has been debugged; the debugging module 74 is also used to: if the image signal processor that has been initially debugged passes the road test verification and the virtual scene test verification, then determine that the image signal processor that has been initially debugged meets the acceptance criteria; if the image signal processor that has been initially debugged fails to pass the road test verification or the virtual scene test verification, then continue to debug the image signal processor.
[0137] Figure 7 The image signal processor debugging device of the illustrated embodiment can be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar and will not be described in detail here.
[0138] Figure 8 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 8 , which shows a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0139] like Figure 8As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603 to implement the image signal processor debugging method of the embodiment described in the present disclosure. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0140] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0141] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the image signal processor debugging method as described above. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0142] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0143] In addition, an embodiment of the present disclosure further provides a vehicle, comprising: a memory; a processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the image signal processor debugging method as described above.
[0144] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0145] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0146] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0147] Use the current camera to collect raw image data;
[0148] Inputting the original image data into an image signal processor, and outputting a processed image through the image signal processor;
[0149] Determining whether the image index in the processed image is within a set range;
[0150] If not, the parameters of the image signal processor corresponding to the image index are adjusted according to the deviation relationship between the image index and the set range. After the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly are executed until the image index in the processed image is within the set range and the debugging is completed.
[0151] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0152] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0153] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0154] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0155] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0156] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0157] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0158] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0159] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for debugging an image signal processor, characterized in that: include: Use the current camera to collect raw image data; Inputting the original image data into an image signal processor, and outputting a processed image through the image signal processor; Determining whether the image index in the processed image is within a set range; If not, the parameters of the image signal processor corresponding to the image index are adjusted according to the deviation relationship between the image index and the set range. After the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor, and adjusting the parameters of the image signal processor accordingly are executed until the image index in the processed image is within the set range and the debugging is completed.
2. The method according to claim 1, characterized in that The method of collecting raw image data using the current camera includes: Obtain the original image data of the preset test site taken by the current camera; The step of inputting the original image data into an image signal processor and outputting a processed image through the image signal processor comprises: The original image data of the preset test site is input into an image signal processor, and the processed image of the preset test site is output by the image signal processor.
3. The method according to claim 1, characterized in that Before collecting the original image data using the current camera, the method further includes: Get the setting range of the image index.
4. The method according to claim 3, characterized in that The obtaining of the setting range of the image index includes: Obtain standard image data of a preset test site; The standard image data is processed by a pre-adjusted image signal processor to obtain a standard processed image of the preset test site; The set range of the image index is extracted from the standard processed image.
5. The method according to claim 3, characterized in that: The determining whether the image index in the processed image is within a set range includes: extracting a value of an image index from the processed image; The value of the image indicator is compared with the setting range of the image indicator to determine the deviation relationship between the value of the image indicator and the setting range of the image indicator.
6. The method according to any one of claims 1 to 5, characterized in that: The image indicators include at least one of the following: Black level, signal-to-noise ratio, automatic exposure, lens shading correction, automatic white balance, color correction matrix, gamma, chromatic aberration correction, field of view, high dynamic range, distortion, image clarity, contrast.
7. The method according to claim 1, characterized in that After the debugging is completed, the method further includes: Obtaining a processed target image of a preset test site based on the debugged image signal processor, and evaluating the processed target image of the preset test site; If the target processed image of the preset test site meets the evaluation conditions, it is determined that the preliminary debugging of the image signal processor is completed.
8. The method according to claim 1, characterized in that After the debugging is completed, the method further includes: Carry out road test verification on the image signal processor after debugging; Performing a virtual scene test and verification on the debugged image signal processor; If the image signal processor after debugging passes the road test verification and the virtual scene test verification, it is determined that the image signal processor after debugging meets the acceptance criteria; If the image signal processor after debugging fails to pass the road test verification or fails to pass the virtual scene test verification, the image signal processor continues to be debugged.
9. An image signal processor debugging device, characterized in that: include: The acquisition module is used to acquire raw image data using the current camera; An obtaining module, used for inputting the original image data into an image signal processor, and outputting a processed image through the image signal processor; A judging module, used to judge whether the image index in the processed image is within a set range; The debugging module is used to adjust the parameters of the image signal processor corresponding to the image index according to the deviation relationship between the image index and the set range when the image index in the processed image is not within the set range. After the adjustment, the steps of inputting the original image data into the image signal processor, outputting the processed image through the image signal processor and adjusting the parameters of the image signal processor are executed accordingly, until the image index in the processed image is within the set range and the debugging is completed.
10. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A vehicle, characterized in that: It comprises the image signal processor debugging device as claimed in claim 9.
