Camera debugging method and device

By determining the target signal-to-noise ratio based on the gain and signal-to-noise ratio relationship of the debugged camera, and determining the target gain based on the relationship of the camera to be debugged, the use relationship between the target gain and noise reduction parameters is constructed, and the cumbersome debugging process in the existing technology is solved. The problem is that fast and accurate camera debugging effect is achieved.

CN114697470BActive Publication Date: 2025-02-07BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011566754.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-02-07
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

In the prior art, debugging the camera by adjusting the noise reduction parameters is cumbersome and time-consuming, making it difficult to quickly achieve the expected noise reduction effect.

Method used

By determining the target signal-to-noise ratio based on the corresponding relationship between the gain and the signal-to-noise ratio of the debugged camera; then, based on the corresponding relationship between the gain and the signal-to-noise ratio of the camera to be debugged, the target gain is determined, and the usage relationship between the target gain and the noise reduction parameters is constructed. , realize camera debugging.

Benefits of technology

This method completes the debugging of the camera by adjusting the gain, which is simpler to operate, faster to speed, and has higher accuracy in debugging results than the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697470B_ABST
    Figure CN114697470B_ABST
Patent Text Reader

Abstract

The present disclosure provides a camera debugging method and device. The method includes: in the case where the gain information and the adapted noise reduction parameters used in the first image processing mode are set for the debugged first camera, according to the corresponding relationship between the gain and the signal-to-noise ratio set for the first camera in the first image processing mode, determining the target signal-to-noise ratio corresponding to the gain in the gain information, according to the corresponding relationship between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged, determining the target gain corresponding to the target signal-to-noise ratio, and constructing the usage relationship between the target gain and the noise reduction parameters used in the second image processing mode for the second camera. The method completes the debugging of the camera by adjusting the gain. Compared with the method of adjusting the noise reduction parameters in the prior art, the method provided by the embodiment of the present disclosure has the advantages of simple operation, fast speed, and high accuracy of debugging results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer communication technology, and in particular to a camera debugging method and device. Background Art

[0002] For electronic devices equipped with cameras, the cameras installed on the electronic devices need to be debugged before the electronic devices leave the factory to ensure the shooting effect of the electronic devices.

[0003] After obtaining the original image captured by the camera, the electronic device uses the noise reduction parameters to perform noise reduction processing on the original image to improve the image quality. In the related art, the camera is debugged by adjusting the noise reduction parameters. However, there are many types of noise reduction parameters, and it takes a long time to achieve the expected noise reduction effect by adjusting the noise reduction parameters. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a camera debugging method and device.

[0005] According to a first aspect of an embodiment of the present disclosure, a camera debugging method is provided, the method comprising:

[0006] In a case where gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, determining a target signal-to-noise ratio corresponding to the gain in the gain information according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera;

[0007] Determining a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged;

[0008] A usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera is established.

[0009] Optionally, determining a target signal-to-noise ratio corresponding to the gain in the gain information according to a correspondence between a gain and a signal-to-noise ratio used in the first image processing mode set for the first camera includes:

[0010] After obtaining a first curve drawn for the first camera using the first image processing mode, the first curve using the signal-to-noise ratio as the abscissa and the gain as the ordinate, determining the target signal-to-noise ratio on the first curve corresponding to the gain in the gain information.

[0011] Optionally, the method further comprises:

[0012] Acquire original images captured by the first camera using the first image processing mode under different light sources, where the brightness of the different light sources is different;

[0013] Determining a signal-to-noise ratio of each original image captured using the first camera;

[0014] Determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the first camera under the light sources;

[0015] The first curve is drawn according to multiple sets of gains and signal-to-noise ratios determined for the first camera.

[0016] Optionally, determining the target gain corresponding to the target signal-to-noise ratio according to the correspondence between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged includes:

[0017] After obtaining a second curve drawn for the second camera using the second image processing mode, the second curve using the signal-to-noise ratio as the abscissa and the gain as the ordinate, the target gain corresponding to the target signal-to-noise ratio on the second curve is determined.

[0018] Optionally, the method further comprises:

[0019] Acquire original images captured by the second camera using the second image processing mode under different light sources, where the brightness of the different light sources is different;

[0020] Determining a signal-to-noise ratio of each original image captured using the second camera;

[0021] Determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the second camera under the light sources;

[0022] The second curve is drawn according to the multiple sets of gains and signal-to-noise ratios determined for the second camera.

[0023] Optionally, the gain information includes a gain interval, each endpoint of the gain interval is used to determine a target gain, and two target gains are used to determine a target gain interval; and constructing a usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera includes:

[0024] A usage relationship between the target gain range and the noise reduction parameter used in the second image processing mode for the second camera is established.

[0025] Optionally, a plurality of noise reduction parameters are set for the first image processing mode, each noise reduction parameter is provided with N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to a preset rule, an adaptive noise reduction parameter is set for each of the N gain intervals, and for different types of noise reduction parameters, the gain intervals with the same sorting are the same; the method further comprises:

[0026] After determining the target gain interval, when the ranking of the gain interval is M, and M is a positive integer less than or equal to N, determining a target noise reduction parameter adapted to the gain interval ranked as M for another noise reduction parameter included in the multiple noise reduction parameters;

[0027] For the another noise reduction parameter used by the second camera in the second image processing mode, a usage relationship between the target gain range and the target noise reduction parameter is established.

[0028] According to a second aspect of an embodiment of the present disclosure, a camera debugging device is provided, the device comprising:

[0029] a target signal-to-noise ratio determination module, configured to, when gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, determine a target signal-to-noise ratio corresponding to the gain in the gain information according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera;

[0030] A gain determination module, configured to determine a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged;

[0031] The usage relationship building module is configured to build a usage relationship between the target gain and the noise reduction parameter used by the second camera in the second image processing mode.

[0032] Optionally, the target signal-to-noise ratio determination module is configured to determine the target signal-to-noise ratio corresponding to the gain in the gain information on the first curve after obtaining a first curve drawn for the first camera using the first image processing mode, the first curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

[0033] Optionally, the device further comprises:

[0034] A first image acquisition module is configured to acquire original images captured by the first camera using the first image processing mode under different light sources, where the brightness of the different light sources is different;

[0035] a first image acquisition module, configured to determine a signal-to-noise ratio of each original image captured by the first camera;

[0036] A first information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to brightness of multiple sets of light sources and signal-to-noise ratios of original images captured by the first camera under the light sources;

[0037] The first curve drawing module is configured to draw the first curve according to multiple sets of gains and signal-to-noise ratios determined for the first camera.

[0038] Optionally, the gain determination module is configured to determine the target gain corresponding to the target signal-to-noise ratio on the second curve after obtaining a second curve drawn for the second camera using the second image processing mode, the second curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

[0039] Optionally, the device further comprises:

[0040] A second image acquisition module is configured to acquire original images captured by the second camera using the second image processing mode under different light sources, where the brightness of the different light sources is different;

[0041] a second image acquisition module, configured to determine a signal-to-noise ratio of each original image captured by the second camera;

[0042] A second information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the second camera under the light sources;

[0043] The second curve drawing module is configured to draw the second curve according to multiple sets of gains and signal-to-noise ratios determined for the second camera.

[0044] Optionally, the gain information includes a gain interval, each endpoint of the gain interval is used to determine one of the target gains, and two target gains are used to determine one target gain interval;

[0045] The usage relationship building module is configured to build a usage relationship between the target gain range and the noise reduction parameter used by the second camera in the second image processing mode.

[0046] Optionally, a plurality of noise reduction parameters are set for the first image processing mode, each noise reduction parameter is provided with N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to a preset rule, an adaptive noise reduction parameter is set for each of the N gain intervals, and for different types of noise reduction parameters, the gain intervals with the same sorting are the same; the device further comprises:

[0047] a parameter determination module configured to, after determining the target gain interval, determine a target noise reduction parameter adapted to the gain interval ranked as M for another noise reduction parameter included in the multiple noise reduction parameters when the gain interval is ranked as M and M is a positive integer less than or equal to N;

[0048] The relationship building module is configured to build a usage relationship between the target gain range and the target noise reduction parameter for the other noise reduction parameter used by the second camera in the second image processing mode.

[0049] According to a third aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the first aspects is implemented.

[0050] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0051] processor;

[0052] a memory for storing processor-executable instructions;

[0053] Wherein, the processor is configured to:

[0054] In a case where gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, determining a target signal-to-noise ratio corresponding to the gain in the gain information according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera;

[0055] Determining a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged;

[0056] A usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera is established.

[0057] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0058] The disclosed embodiment provides a novel camera debugging method, in which there is a debugged first camera and an undebugged second camera. When the gain information and the adapted noise reduction parameters used in the first image processing mode are set for the debugged first camera, the target signal-to-noise ratio corresponding to the gain in the gain information is determined according to the correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera, the target gain corresponding to the target signal-to-noise ratio is determined according to the correspondence between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged, and the usage relationship between the target gain and the noise reduction parameters used in the second image processing mode for the second camera is constructed. The method completes the debugging of the camera by adjusting the gain. Compared with the method of adjusting the noise reduction parameters in the prior art, the method provided by the disclosed embodiment has the advantages of simple operation, fast speed, and high accuracy of debugging results.

[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 is a flow chart of a camera debugging method according to an exemplary embodiment;

[0061] Figure 2 is a curve diagram shown according to an exemplary embodiment;

[0062] Figure 3 is an image processing code diagram used by a second camera in different modes according to an exemplary embodiment;

[0063] Figure 4 is an image shown according to an exemplary embodiment;

[0064] Figure 5 is another image shown according to an exemplary embodiment;

[0065] Figure 6 is a block diagram of a camera debugging device according to an exemplary embodiment;

[0066] Figure 7 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0068] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0069] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0070] For electronic devices equipped with cameras, the cameras installed on the electronic devices need to be debugged before the electronic devices leave the factory to ensure the shooting effect of the electronic devices.

[0071] For some cameras, the camera includes a photosensitive chip, and the photosensitive chip stores gain and noise reduction parameters. In the related art, the camera is debugged by adjusting the noise reduction parameters. In the embodiment of the present disclosure, the camera is debugged by adjusting the gain.

[0072] Figure 1 is a flow chart of a camera debugging method according to an exemplary embodiment. Figure 1 The methods shown include:

[0073] In step 101, when gain information and adapted noise reduction parameters used in a first image processing mode are set for a debugged first camera, a target signal-to-noise ratio corresponding to the gain in the gain information is determined according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera.

[0074] There are multiple image processing modes, for example, IDCG (Intra Dual Conversion Gain) mode, 4sum mode, and 4sum_LN2 mode, etc. Different image processing modes correspond to different image quality requirements and require different noise reduction intensities. The first camera may be provided with one or more image processing modes, and the gain information and adapted noise reduction parameters used in different image processing modes are set for the first camera. The first image processing mode may be any one of the modes in the above examples or other modes. For electronic devices shipped from the factory, when the first camera uses the first image processing mode for shooting, the gain information and adapted noise reduction parameters used in the first image processing mode set for the first camera are used for image processing.

[0075] For the original image captured by the camera, that is, the original image signal, analog gain is first used to amplify it, and then ADC is used to convert the amplified analog signal into a digital signal. In some scenarios, digital gain is also needed to amplify the digital signal. Based on this, the gain information in this step may include analog gain information, or the gain information may include analog gain information and digital gain information. For any one of the analog gain information and the digital gain information, only a single gain may be included, or a gain interval may be included, that is, two endpoints of a gain interval may be included.

[0076] After completing the debugging of the first camera, multiple sets of gain information and adapted noise reduction parameters used in the first image processing mode set for the first camera are obtained. In the case where the gain information includes only a single gain, an image that meets the quality requirements can be obtained by using the single gain and the adapted noise reduction parameters. In the case where the gain information includes a gain interval, that is, when the gain information includes two endpoints of a gain interval, an image that meets the quality requirements can be obtained by using the gains within the gain interval and the adapted noise reduction parameters.

[0077] Denoising parameters are used to reduce noise in images. There are many types of denoising parameters, such as abf, gic, anr, tf, hnr, and lenr.

[0078] Signal-to-noise ratio (also known as SNR) refers to the ratio of signal to noise in an electronic device or electronic system, and is used to measure the noise level of an image.

[0079] In one embodiment, a curve may be drawn for each first camera using each image processing mode, each curve having a signal-to-noise ratio as a horizontal coordinate and a gain as a vertical coordinate. A curve drawn for the first camera using the first image processing mode is referred to as a first curve.

[0080] The determination of the target signal-to-noise ratio corresponding to the gain in the gain information according to the correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera can be achieved in the following manner: after obtaining a first curve drawn for the first camera using the first image processing mode, determining the target signal-to-noise ratio on the first curve corresponding to the gain in the gain information.

[0081] When the gain information includes only a single gain, a target signal-to-noise ratio corresponding to the single gain on the first curve is determined. When the gain information includes two gains, a target signal-to-noise ratio corresponding to each gain on the first curve is determined to obtain two target signal-to-noise ratios.

[0082] In one embodiment, the first curve can be obtained by:

[0083] First, original images captured by a first camera using a first image processing mode under different light sources having different brightness are obtained; second, a signal-to-noise ratio of each original image captured by the first camera is determined; third, multiple sets of gains and signal-to-noise ratios are determined according to the brightness of multiple sets of light sources and the signal-to-noise ratios of the original images captured by the first camera under the light sources; finally, a first curve is drawn according to the multiple sets of gains and signal-to-noise ratios determined for the first camera.

[0084] The brightness of the light source reflects the size of the gain. The brightness of the light source is positively correlated with the gain, and the gain can be determined based on the brightness of the light source.

[0085] After the driving information of the first camera is set, only one curve can be drawn for the first camera using one image processing mode.

[0086] The signal-to-noise ratio of each original image may be determined by using methods in related technologies.

[0087] In step 102, a target gain corresponding to a target signal-to-noise ratio is determined according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged.

[0088] The second camera may be provided with one or more image processing modes. The second image processing mode is the same as the first image processing mode, or the second image processing mode is different from the first image processing mode.

[0089] When the number of target signal-to-noise ratios is one, the number of target gains is one. When the number of target signal-to-noise ratios is two, the number of target gains is two.

[0090] In one embodiment, a curve may be drawn for each second camera using each image processing mode, each curve having a signal-to-noise ratio as a horizontal coordinate and a gain as a vertical coordinate. A curve drawn for the second camera using the second image processing mode is referred to as a second curve.

[0091] The determination of the target gain corresponding to the target signal-to-noise ratio according to the correspondence between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged can be achieved in the following manner: after obtaining a second curve drawn for the second camera using the second image processing mode, determining the target gain corresponding to the target signal-to-noise ratio on the second curve.

[0092] In one embodiment, the second curve can be obtained by:

[0093] First, original images captured by a second camera using a second image processing mode under different light sources having different brightness are obtained; secondly, the signal-to-noise ratio of each original image captured by the second camera is determined; thirdly, multiple sets of gains and signal-to-noise ratios are determined based on the brightness of multiple sets of light sources and the signal-to-noise ratios of the original images captured by the second camera under the light sources; finally, a second curve is drawn based on the multiple sets of gains and signal-to-noise ratios determined for the second camera.

[0094] The brightness of the light source reflects the size of the gain. The brightness of the light source is positively correlated with the gain, and the gain can be determined based on the brightness of the light source.

[0095] After the driving information of the second camera is set, only one curve can be drawn for the second camera using one image processing mode.

[0096] In step 103, a usage relationship between a target gain and a noise reduction parameter used in a second image processing mode for a second camera is constructed.

[0097] A usage relationship is established for the second camera in different image processing modes, so that the second camera can obtain better shooting effects in different image processing modes.

[0098] In one embodiment, gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, the gain information includes a gain interval, each endpoint of the gain interval is used to determine a target gain, and two target gains are used to determine a target gain interval. Each target gain can be used as an endpoint of the target gain interval.

[0099] The construction of the usage relationship between the target gain and noise reduction parameters for the second camera in the second image processing mode in the previous embodiment can be achieved in the following way: constructing the usage relationship between the target gain range and noise reduction parameters for the second camera in the second image processing mode.

[0100] In one embodiment, multiple noise reduction parameters are set for the first image processing mode, each noise reduction parameter has N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to preset rules, and an adaptive noise reduction parameter is set for each of the N gain intervals. For different types of noise reduction parameters, the gain intervals with the same sorting are the same.

[0101] The N gain intervals may be sorted in order from small to large gain, or the N gain intervals may be sorted in order from large to small gain.

[0102] The greater the gain, the greater the noise, resulting in a stronger noise reduction strength. Using a higher noise reduction strength can reduce the noise in the image, but it will reduce the clarity of the image. Based on the above principles and factors such as image quality requirements, you can set an adaptive noise reduction parameter for each gain interval.

[0103] A plurality of noise reduction parameters are set for the first image processing mode. After the target gain interval is determined using the method in the previous embodiment, when the order of the gain information used in the first image processing mode set for the first camera is M, and M is a positive integer less than or equal to N, for another noise reduction parameter included in the plurality of noise reduction parameters, a target noise reduction parameter adapted to the gain interval ordered as M is determined, and for another noise reduction parameter used by the second camera in the second image processing mode, a usage relationship between the target gain interval and the target noise reduction parameter is constructed.

[0104] For example, two noise reduction parameters abf and gic are set for the first image processing mode. In step 101, the first camera sets the gain information and the adapted noise reduction parameters used in the first image processing mode. If the noise reduction parameter in step 101 belongs to the abf noise reduction parameter, then the other noise reduction parameter is gic.

[0105] By using the method in this embodiment, the gains used by other types of noise reduction parameters can be quickly determined, and the construction of the usage relationship for other types of noise reduction parameters can be quickly completed.

[0106] The following example introduces the camera debugging method provided by the embodiment of the present disclosure.

[0107] Four cameras are installed on the electronic device, wherein the first camera includes a GN2 photosensitive chip, the second camera includes an OV48C photosensitive chip, the third camera includes an IMX586 photosensitive chip, and the fourth camera includes an IMX350 photosensitive chip.

[0108] Figure 2 is a curve diagram shown according to an exemplary embodiment. Figure 2 The curve in has the signal-to-noise ratio as the horizontal axis and the gain as the vertical axis.

[0109] GN2_IDCG represents the first camera using IDCG mode. The GN2 type photosensitive chip in the first camera uses the gain and noise reduction parameters set for IDCG mode for image processing. The IDCG mode can be used as the default mode for the first camera.

[0110] GN2_4sum represents the first camera using 4sum mode. The GN2 type photosensitive chip in the first camera uses the gain and noise reduction parameters set for 4sum mode for image processing. You can use 4sum mode as a professional mode for the first camera.

[0111] GN2_4sum_LN2 represents the first camera using the GN2_4sum_LN2 mode. The GN2-type photosensitive chip in the first camera performs image processing using the gain and noise reduction parameters set for the GN2_4sum_LN2 mode. The 4sum_LN2 mode is another mode used by the first camera.

[0112] OV48C_4sum represents the second camera using 4sum mode. The OV48C photosensitive chip in the second camera uses the gain and noise reduction parameters set for 4sum mode for image processing. You can use 4sum mode as the default mode for the second camera.

[0113] IMX586 represents the third camera using 4SUM mode. The IMX586 type photosensitive chip in the third camera uses the gain and noise reduction parameters set for 4SUM mode for image processing. 4SUM mode can be used as the default mode for the third camera.

[0114] IMX350 represents the fourth camera using 4sum mode. The IMX350 type photosensitive chip in the fourth camera uses the gain and noise reduction parameters set for 4sum mode for image processing. 4sum mode can be used as the default mode for the fourth camera.

[0115] Figure 2Six curves are shown, each curve has the signal-to-noise ratio as the abscissa and the gain as the ordinate, and the precision of the abscissa is 0.1. Table 1 shows the corresponding relationship between the signal-to-noise ratio and the gain defined on the curve.

[0116] Only part of the data is shown in Table 1.

[0117]

[0118] In order to improve the accuracy of data division, the horizontal coordinate of the midpoint of the two adjacent horizontal coordinates on the horizontal axis can be determined, the two vertical coordinates corresponding to the two adjacent horizontal coordinates on the curve can be determined, the vertical coordinate of the midpoint of the two adjacent vertical coordinates can be determined, and the corresponding relationship between the determined horizontal coordinate and the vertical coordinate can be set, that is, the corresponding relationship between the signal-to-noise ratio and the gain can be set.

[0119] For example, if two adjacent horizontal coordinates are x1 and x2, the horizontal coordinate of the midpoint of the two adjacent horizontal coordinates is The two adjacent ordinates are y1 and y2, and the ordinate of the midpoint of the two adjacent ordinates is

[0120] Combining the corresponding relationship between the signal-to-noise ratio and the gain defined on the curve with the corresponding relationship between the signal-to-noise ratio and the gain determined using the above method improves the accuracy of the division of the signal-to-noise ratio and the gain, and ultimately improves the accuracy of the result obtained using the curve.

[0121] In this example, the second camera using the 4sum mode is a camera that has been debugged, and the first camera is a camera that has not been debugged.

[0122] Figure 3 1 is an image processing code diagram for use by a second camera in different modes according to an exemplary embodiment. Figure 3 In the code shown, the code on the left is written for the second camera using the 4sum mode, regarding the noise reduction parameter anr.

[0123] A curve is drawn for the second camera using the 4sum mode. For a gain in the code on the left, the signal-to-noise ratio corresponding to the gain (hereinafter referred to as the target signal-to-noise ratio) can be determined based on the correspondence between the signal-to-noise ratio and the gain defined on the curve and the correspondence between the signal-to-noise ratio and the gain determined using the above method.

[0124] A curve is drawn for the first camera using the IDCG mode. The target gain corresponding to the target signal-to-noise ratio can be determined based on the correspondence between the signal-to-noise ratio and the gain defined on the curve and the correspondence between the signal-to-noise ratio and the gain determined using the above method, and the gain in the code on the left is replaced by the target gain.

[0125] If the gain in the left code exists in the corresponding relationship used in combination, the signal-to-noise ratio corresponding to the gain is directly determined according to the corresponding relationship. If the gain in the left code does not exist in the corresponding relationship used in combination, the gain that exists in the corresponding relationship and is closest to the gain can be used for subsequent processing. Other applicable methods may also be used, and this example does not limit this.

[0126] Use the above method to complete the replacement of each gain in the left code, and limit the minimum gain to 1, to obtain the right code, which is the image processing code used by the second camera in IDCG mode.

[0127] The second camera is debugged using the camera debugging method in the related art, and the adjustment period is three months. The first camera after debugging is used to shoot, and the Figure 4 Image shown.

[0128] The camera debugging method provided in this embodiment can be used to debug the second camera, which can complete the camera debugging in a short time and greatly save the debugging time. Figure 5 Image shown.

[0129] Compared to Figure 4 , Figure 5 Although the clarity is slightly worse, the noise is slightly better. The overall effect of the two images is not much different. Figure 5 Basically, the state of packetization can be achieved.

[0130] When the camera is debugged using the debugging method provided in the related art, the probability of meeting the shipping standard is only 30%, while when the camera is debugged using the debugging method provided in this embodiment, the probability of meeting the shipping standard is as high as 70%. It can be seen from the comparison that the debugging method provided in this embodiment has higher accuracy.

[0131] The disclosed embodiment provides a novel camera debugging method, in which there is a debugged first camera and an undebugged second camera. When the gain information and the adapted noise reduction parameters used in the first image processing mode are set for the debugged first camera, the target signal-to-noise ratio corresponding to the gain in the gain information is determined according to the correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera, the target gain corresponding to the target signal-to-noise ratio is determined according to the correspondence between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged, and the usage relationship between the target gain and the noise reduction parameters used in the second image processing mode for the second camera is constructed. The method completes the debugging of the camera by adjusting the gain. Compared with the method of adjusting the noise reduction parameters in the prior art, the method provided by the disclosed embodiment has the advantages of simple operation, fast speed, and high accuracy of debugging results.

[0132] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.

[0133] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0134] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding electronic device embodiment.

[0135] Figure 6 is a block diagram of a camera debugging device according to an exemplary embodiment, the device comprising: a target signal-to-noise ratio determination module 21, a gain determination module 22 and a usage relationship construction module 23; wherein,

[0136] The target signal-to-noise ratio determination module 21 is configured to, when the gain information and the adapted noise reduction parameters used in the first image processing mode are set for the debugged first camera, determine the target signal-to-noise ratio corresponding to the gain in the gain information according to the correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera;

[0137] The gain determination module 22 is configured to determine a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged;

[0138] The usage relationship building module 23 is configured to build a usage relationship between the target gain and the noise reduction parameter used by the second camera in the second image processing mode.

[0139] In an optional embodiment, Figure 6 Based on the camera debugging device shown, the target signal-to-noise ratio determination module 21 is configured to determine the target signal-to-noise ratio corresponding to the gain in the gain information on the first curve after obtaining a first curve drawn for the first camera using the first image processing mode, the first curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

[0140] In an optional embodiment, the device may further include: a first image acquisition module, a first image acquisition module, a first information determination module and a first curve drawing module; wherein,

[0141] The first image acquisition module is configured to acquire original images captured by the first camera using the first image processing mode under different light sources, where the brightness of the different light sources is different;

[0142] The first image acquisition module is configured to determine a signal-to-noise ratio of each original image captured by the first camera;

[0143] The first information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the first camera under the light sources;

[0144] The first curve drawing module is configured to draw the first curve according to multiple sets of gains and signal-to-noise ratios determined for the first camera.

[0145] In an optional embodiment, the gain determination module 22 can be configured to determine the target gain corresponding to the target signal-to-noise ratio on the second curve after obtaining a second curve drawn for the second camera using the second image processing mode, the second curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

[0146] In an optional embodiment, the device may further include: a second image acquisition module, a second image acquisition module, a second information determination module and a second curve drawing module; wherein,

[0147] The second image acquisition module is configured to acquire original images captured by the second camera using the second image processing mode under different light sources, where the brightness of the different light sources is different;

[0148] The second image acquisition module is configured to determine a signal-to-noise ratio of each original image captured by the second camera;

[0149] The second information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the second camera under the light sources;

[0150] The second curve drawing module is configured to draw the second curve according to multiple sets of gains and signal-to-noise ratios determined for the second camera.

[0151] In an optional embodiment, Figure 6 Based on the camera debugging device shown, the gain information includes a gain interval, each endpoint of the gain interval is used to determine a target gain, and two target gains are used to determine a target gain interval;

[0152] The usage relationship building module 23 may be configured to build a usage relationship between the target gain range and the noise reduction parameter used by the second camera in the second image processing mode.

[0153] In an optional embodiment, a plurality of noise reduction parameters are set for the first image processing mode, each noise reduction parameter is provided with N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to a preset rule, an adaptive noise reduction parameter is set for each of the N gain intervals, and for different types of noise reduction parameters, the gain intervals with the same sorting are the same; the device may further include: a parameter determination module and a relationship construction module; wherein,

[0154] The parameter determination module is configured to, after determining the target gain interval, determine a target noise reduction parameter adapted to the gain interval ranked as M for another noise reduction parameter included in the multiple noise reduction parameters when the gain interval is ranked as M and M is a positive integer less than or equal to N;

[0155] The relationship building module is configured to build a usage relationship between the target gain range and the target noise reduction parameter for the other noise reduction parameter used by the second camera in the second image processing mode.

[0156] Figure 7 1 is a schematic diagram of the structure of an electronic device 1600 according to an exemplary embodiment. For example, the device 1600 may be a user device, which may specifically be a mobile phone, a computer, a digital broadcast electronic device, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, a smart glasses, a smart bracelet, a smart running shoe, etc.

[0157] Reference Figure 7 , the device 1600 may include one or more of the following components: a processing component 1602 , a memory 1604 , a power component 1606 , a multimedia component 1608 , an audio component 1610 , an input / output (I / O) interface 1612 , a sensor component 1614 , and a communication component 1616 .

[0158] The processing component 1602 generally controls the overall operation of the device 1600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1602 may include one or more modules to facilitate the interaction between the processing component 1602 and other components. For example, the processing component 1602 may include a multimedia module to facilitate the interaction between the multimedia component 1608 and the processing component 1602.

[0159] The memory 1604 is configured to store various types of data to support operations on the device 1600. Examples of such data include instructions for any application or method operating on the device 1600, contact data, phone book data, messages, pictures, videos, etc. The memory 1604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0160] The power supply component 1606 provides power to the various components of the device 1600. The power supply component 1606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1600.

[0161] The multimedia component 1608 includes a screen that provides an output interface between the above-mentioned device 1600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 1608 includes a front camera and / or a rear camera. When the device 1600 is in an operating mode, such as an adjustment mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0162] The audio component 1610 is configured to output and / or input audio signals. For example, the audio component 1610 includes a microphone (MIC), and when the device 1600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1604 or sent via the communication component 1616. In some embodiments, the audio component 1610 also includes a speaker for outputting audio signals.

[0163] I / O interface 1612 provides an interface between processing component 1602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0164] The sensor assembly 1614 includes one or more sensors for providing various aspects of status assessment for the device 1600. For example, the sensor assembly 1614 can detect the open / closed state of the device 1600, the relative positioning of the components, such as the display and keypad of the device 1600, the sensor assembly 1614 can also detect the position change of the device 1600 or a component of the device 1600, the presence or absence of user contact with the device 1600, the orientation or acceleration / deceleration of the device 1600, and the temperature change of the device 1600. The sensor assembly 1614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0165] The communication component 1616 is configured to facilitate wired or wireless communication between the device 1600 and other devices. The device 1600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the above-mentioned communication component 1616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0166] In an exemplary embodiment, the device 1600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0167] In an exemplary embodiment, a non-temporary computer-readable storage medium is also provided, such as a memory 1604 including instructions. When the instructions in the storage medium are executed by the processor 1620 of the device 1600, the device 1600 is enabled to execute a camera debugging method, the method comprising: in a case where gain information and adapted noise reduction parameters used in a first image processing mode are set for a first camera that has been debugged, determining a target signal-to-noise ratio corresponding to the gain in the gain information according to a correspondence between the gain and the signal-to-noise ratio set for the first camera in the first image processing mode; determining a target gain corresponding to the target signal-to-noise ratio according to a correspondence between the gain and the signal-to-noise ratio set for a second camera to be debugged in the second image processing mode; and constructing a usage relationship between the target gain and the noise reduction parameters used in the second image processing mode for the second camera.

[0168] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0169] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0170] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A camera debugging method, characterized in that: The method comprises: In a case where gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, a target signal-to-noise ratio corresponding to the gain in the gain information is determined according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera; the noise reduction parameter is a method for reducing noise in an image; Determining a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged; the first image processing mode and the second image processing mode are different image processing modes, and different image processing modes correspond to different image quality requirements and different required noise reduction intensities; A usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera is established.

2. The debugging method according to claim 1, characterized in that: The determining, according to the correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera, a target signal-to-noise ratio corresponding to the gain in the gain information includes: After obtaining a first curve drawn for the first camera using the first image processing mode, the first curve using the signal-to-noise ratio as the abscissa and the gain as the ordinate, determining the target signal-to-noise ratio on the first curve corresponding to the gain in the gain information.

3. The debugging method according to claim 2, characterized in that: The debugging method further comprises: Acquire original images captured by the first camera using the first image processing mode under different light sources, where the brightness of the different light sources is different; Determining a signal-to-noise ratio of each original image captured using the first camera; Determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the first camera under the light sources; The first curve is drawn according to multiple sets of gains and signal-to-noise ratios determined for the first camera.

4. The debugging method according to claim 2, characterized in that: The determining, according to the correspondence between the gain and the signal-to-noise ratio used in the second image processing mode set for the second camera to be debugged, a target gain corresponding to the target signal-to-noise ratio comprises: After obtaining a second curve drawn for the second camera using the second image processing mode, the second curve using the signal-to-noise ratio as the abscissa and the gain as the ordinate, the target gain corresponding to the target signal-to-noise ratio on the second curve is determined.

5. The debugging method according to claim 4, characterized in that: The debugging method further comprises: Acquire original images captured by the second camera using the second image processing mode under different light sources, where the brightness of the different light sources is different; Determining a signal-to-noise ratio of each original image captured using the second camera; Determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the second camera under the light sources; The second curve is drawn according to the multiple sets of gains and signal-to-noise ratios determined for the second camera.

6. The debugging method according to claim 1, characterized in that: The gain information includes a gain interval, each endpoint of the gain interval is used to determine one of the target gains, and two target gains are used to determine one target gain interval; The constructing a usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera includes: A usage relationship between the target gain range and the noise reduction parameter used in the second image processing mode for the second camera is established.

7. The debugging method according to claim 6, characterized in that: A plurality of noise reduction parameters are set for the first image processing mode, each noise reduction parameter is provided with N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to a preset rule, an adaptive noise reduction parameter is set for each gain interval in the N gain intervals, and for different types of noise reduction parameters, the gain intervals with the same sorting are the same; the debugging method further includes: After determining the target gain interval, when the ranking of the gain interval is M, and M is a positive integer less than or equal to N, determining a target noise reduction parameter adapted to the gain interval ranked as M for another noise reduction parameter included in the multiple noise reduction parameters; For the another noise reduction parameter used by the second camera in the second image processing mode, a usage relationship between the target gain range and the target noise reduction parameter is established.

8. A camera debugging device, characterized in that: The device comprises: a target signal-to-noise ratio determination module, configured to, when gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, determine a target signal-to-noise ratio corresponding to a gain in the gain information according to a correspondence between a gain and a signal-to-noise ratio used in the first image processing mode set for the first camera; the noise reduction parameter is a method for reducing noise in an image; a gain determination module configured to determine a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged; the first image processing mode and the second image processing mode are different image processing modes, and different image processing modes correspond to different image quality requirements and different required noise reduction intensities; The usage relationship building module is configured to build a usage relationship between the target gain and the noise reduction parameter used by the second camera in the second image processing mode.

9. The device according to claim 8, characterized in that: The target signal-to-noise ratio determination module is configured to determine the target signal-to-noise ratio corresponding to the gain in the gain information on the first curve after obtaining a first curve drawn for the first camera using the first image processing mode, the first curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

10. The device according to claim 9, characterized in that The device also includes: A first image acquisition module is configured to acquire original images captured by the first camera using the first image processing mode under different light sources, where the brightness of the different light sources is different; a first image acquisition module, configured to determine a signal-to-noise ratio of each original image captured by the first camera; A first information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to brightness of multiple sets of light sources and signal-to-noise ratios of original images captured by the first camera under the light sources; The first curve drawing module is configured to draw the first curve according to multiple sets of gains and signal-to-noise ratios determined for the first camera.

11. The device according to claim 9, characterized in that: The gain determination module is configured to determine the target gain corresponding to the target signal-to-noise ratio on the second curve after obtaining a second curve drawn for the second camera using the second image processing mode, the second curve having the signal-to-noise ratio as the horizontal coordinate and the gain as the vertical coordinate.

12. The device according to claim 11, characterized in that The device also includes: A second image acquisition module is configured to acquire original images captured by the second camera using the second image processing mode under different light sources, where the brightness of the different light sources is different; a second image acquisition module, configured to determine a signal-to-noise ratio of each original image captured by the second camera; A second information determination module is configured to determine multiple sets of gains and signal-to-noise ratios according to the brightness of multiple sets of light sources and the signal-to-noise ratio of the original image captured by the second camera under the light sources; The second curve drawing module is configured to draw the second curve according to multiple sets of gains and signal-to-noise ratios determined for the second camera.

13. The device according to claim 8, characterized in that The gain information includes a gain interval, each endpoint of the gain interval is used to determine one of the target gains, and two target gains are used to determine one target gain interval; The usage relationship building module is configured to build a usage relationship between the target gain range and the noise reduction parameter used by the second camera in the second image processing mode.

14. The device according to claim 13, characterized in that A plurality of noise reduction parameters are set for the first image processing mode, each noise reduction parameter is provided with N gain intervals, N is a positive integer greater than or equal to 2, the N gain intervals are sorted according to a preset rule, an adaptive noise reduction parameter is set for each gain interval in the N gain intervals, and for different types of noise reduction parameters, the gain intervals with the same sorting are the same; the device further comprises: a parameter determination module configured to, after determining the target gain interval, determine a target noise reduction parameter adapted to the gain interval ranked as M for another noise reduction parameter included in the multiple noise reduction parameters when the gain interval is ranked as M and M is a positive integer less than or equal to N; The relationship building module is configured to build a usage relationship between the target gain range and the target noise reduction parameter for the other noise reduction parameter used by the second camera in the second image processing mode.

15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the debugging method described in any one of claims 1 to 7 is implemented.

16. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: In a case where gain information and an adapted noise reduction parameter used in a first image processing mode are set for a debugged first camera, a target signal-to-noise ratio corresponding to the gain in the gain information is determined according to a correspondence between the gain and the signal-to-noise ratio used in the first image processing mode set for the first camera; the noise reduction parameter is a method for reducing noise in an image; Determining a target gain corresponding to the target signal-to-noise ratio according to a correspondence between a gain and a signal-to-noise ratio used in a second image processing mode set for a second camera to be debugged; the first image processing mode and the second image processing mode are different image processing modes, and different image processing modes correspond to different image quality requirements and different required noise reduction intensities; A usage relationship between the target gain and the noise reduction parameter used in the second image processing mode for the second camera is established.

Citation Information

Patent Citations

  • Image denoising method and system

    CN105913403A

  • Image noise reduction method and device, electronic equipment and storage medium

    CN110290289A