Image quality tuning method, device, electronic device and medium

By determining the target platform tuning process and shooting reference parameters according to the chip platform type in the cloud debugging system, and performing image quality tuning, the problem of high learning costs and manpower investment caused by differences in different platforms is solved, and efficient image quality optimization is achieved. .

CN114022367BActive Publication Date: 2024-10-29DALIAN THUNDER SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111154585.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-29
Estimated Expiration
2041-09-29

Smart Images

  • Figure CN114022367B_ABST
    Figure CN114022367B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides an image quality tuning method, device, electronic device and readable storage medium, the method comprising: determining the chip platform type currently used for image quality tuning, and determining the image effect parameter information required to be achieved after the image is adjusted; selecting a target platform tuning process corresponding to the chip platform type from the preset platform tuning process, and determining the shooting reference parameter information corresponding to the chip platform type; based on the image effect parameter information, performing image quality tuning according to the target platform tuning process and the shooting reference parameter information. According to the embodiment of the present invention, the user does not need to learn the knowledge system for image quality tuning of any chip platform, and can obtain the corresponding image quality tuning results by taking a photo and uploading it according to the feedback information in the cloud debugging system, which can greatly reduce the problem of high learning cost caused by chip platform differentiation and improve the efficiency of image quality tuning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image quality tuning method, an image quality tuning device, an electronic device and a computer-readable storage medium. Background Art

[0002] The visual technology of the intelligent IoT industry is developing rapidly. Relying on wide-angle lenses, cameras, surround monitoring, and visual equipment can achieve the goal of high information volume and low hardware investment. In 2021, the demand for cameras in the IOT (Internet of Things) industry will be in the billions.

[0003] Current camera products still have certain quality problems, including: module problems (distortion, chromatic aberration, blur, spots, etc.), sensor problems (noise, color, bad pixels, etc.), restoration, installation accuracy (angle of view difference, visual axis deviation, tilt deviation, etc.). Module and sensor problems can be corrected by image quality tuning. Image quality tuning (Image Quality Tuning) refers to optimizing camera performance by adjusting system software, hardware, and optical parameters according to the application requirements of the camera. However, for different processing chips, the tools, processes, and module groups for adjusting image quality are different, and there are large differences. For example, the HiSilicon platform has an independent module 3DNR for denoising, while the Qualcomm platform does not have this module. The differences between different platforms make the platforms relatively independent.

[0004] When tuning independent differentiated platforms, staff need to learn the tuning process of different platforms. Since the potential possibilities of tuning for the platform are unknown, there will be non-convergence due to unknown goals during the tuning process, that is, constantly adjusting relevant parameters, and then continuously shooting and testing, and finally reaching a subjectively relatively recognized result as the optimal state of tuning through multiple iterations. That is, the existing platform differentiation problem has caused high learning costs and large manpower investment in tuning work. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide an image quality optimization method and a corresponding image quality optimization device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] An embodiment of the present invention discloses an image quality tuning method, which is applied to a cloud debugging system. The method includes:

[0007] Determine the type of chip platform currently used for image quality tuning, and determine the image effect parameter information required to be achieved after the image is adjusted;

[0008] Selecting a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determining the shooting reference parameter information corresponding to the chip platform type;

[0009] Based on the image effect parameter information, image quality tuning is performed according to the target platform tuning process and the shooting reference parameter information.

[0010] Optionally, the performing image quality tuning based on the image effect parameter information and according to the target platform tuning process and the shooting reference parameter information includes:

[0011] Determining an imaging device currently used for image quality tuning, and determining a comparison imaging device for the imaging device;

[0012] Acquire a captured image obtained by capturing an image using the comparison imaging device according to the capturing process in the target platform tuning process and the capturing reference parameter information;

[0013] Performing image quality optimization on the captured image to obtain corresponding image quality optimization parameter information; the image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information;

[0014] The image quality optimization parameter information is parameter compiled based on the chip platform type.

[0015] Optionally, the performing image quality tuning on the captured image to obtain corresponding image quality optimization parameter information includes:

[0016] Performing image quality evaluation on the captured image based on automatic segmentation;

[0017] After the evaluation is passed, the captured image is subjected to image optimization processing based on a preset degradation model to obtain the corresponding image quality optimization parameter information.

[0018] Optionally, the preset platform tuning process is generated in the following manner:

[0019] Determine the necessary parameter information required to be input for image tuning; wherein the necessary parameter information is determined according to the operating instructions document of the chip platform; the necessary parameter information includes at least one of the execution order of each tuning module, the type of image test card and shooting precautions;

[0020] Generating an initial platform tuning process for the chip platform based on the necessary parameter information;

[0021] The image tuning project data corresponding to the chip platform is obtained, and the initial platform tuning process is adjusted according to the image tuning project data to generate the corresponding preset platform tuning process.

[0022] Optionally, adjusting the initial platform tuning process according to the image tuning project data includes:

[0023] From the image tuning project data, the newly added modules in the platform tuning process corresponding to each project, the shooting charts and shooting conditions used are taken as statistical objects in units of projects, and the distribution probability of each statistical object in all projects is calculated;

[0024] If the distribution probability is greater than the preset confidence probability, the statistical object corresponding to the distribution probability is determined, and the adjustment object corresponding to the statistical object is updated in the initial platform tuning process.

[0025] Optionally, the adjusting the initial platform tuning process according to the image tuning project data further includes:

[0026] If the distribution probability is not greater than the preset confidence probability, determining a reference project matching the current project from the multiple projects of the image tuning project data;

[0027] The initial platform tuning process is adjusted according to the platform tuning process of the reference project.

[0028] Optionally, the determining the shooting reference parameter information corresponding to the chip platform type includes:

[0029] Determine the digital imaging combination type of the imaging device; the digital imaging combination type is composed of a chip platform type, an image signal processing unit type, an imaging unit type and a lens type;

[0030] It is determined whether the number of image tuning items corresponding to the digital imaging combination type is greater than a preset number threshold, and the shooting reference parameter information is determined according to the determination result.

[0031] Optionally, determining the shooting reference parameter information according to the judgment result includes:

[0032] If the number is greater than the preset number threshold, a corresponding codec network model is obtained; wherein the codec network model is trained by taking the historical shooting parameter information of the image tuning project as output and the historical image effect parameter information of the image tuning project as input;

[0033] Inputting the image effect parameter information into the codec network model, and outputting the corresponding shooting reference parameter information;

[0034] If the number is not greater than the preset number threshold, the shooting parameter information in the development code package corresponding to the digital imaging combination type is used as the shooting reference parameter information.

[0035] Optionally, the determining of the comparison imaging device of the imaging device includes:

[0036] If the cloud debugging system has an image tuning project with the same digital imaging combination type as the imaging device, the imaging device of the image tuning project is used as a candidate comparison imaging device;

[0037] If the cloud debugging system does not have an image tuning project of the same digital imaging combination type as the imaging device, then the resolution of the imaging unit adopted by the current image tuning project is compared with the resolution of the imaging unit adopted by the previous image tuning project, and the imaging device of the image tuning project with the least resolution difference is used as the candidate comparison imaging device;

[0038] Determining an image quality evaluation result of the candidate comparison imaging device;

[0039] The evaluation results are sorted, and the ranking of the image quality loss of each candidate comparison imaging device is calculated, the candidate comparison imaging device with the last ranking is used as the best comparison imaging device, and the candidate comparison imaging device with the middle ranking is used as the benchmark comparison imaging device.

[0040] Optionally, before performing image quality assessment on the captured image based on automatic segmentation, the method further includes:

[0041] Determining whether there is any irregularity in the process of acquiring the captured image;

[0042] If it exists, the operation of giving feedback on the shooting problem is performed;

[0043] If not present, an image quality assessment operation based on automatic segmentation is performed on the captured image.

[0044] Optionally, the determining whether there is any irregular shooting in the process of acquiring the captured image includes:

[0045] Performing grayscale processing on the captured image to obtain a grayscale image corresponding to the captured image;

[0046] Performing wide dynamic range stretching on the grayscale image to obtain an enhanced grayscale image;

[0047] Determine an image template, and determine an image region matching the image template in the enhanced grayscale image based on the MMSER method;

[0048] Based on the image area, it is determined whether there is any shooting irregularity in the process of acquiring the captured image.

[0049] Optionally, the performing image quality assessment on the captured image based on automatic segmentation includes:

[0050] The captured image is segmented based on a preset segmentation model to obtain a corresponding segmentation result; wherein the preset segmentation model is obtained by establishing an image group using an objective picture card scene, a subjective image scene and a corresponding labeled image, and performing segmentation training on the image group;

[0051] Correcting the image segmentation area of ​​the captured image according to the segmentation result;

[0052] For the same group of captured images, the captured images in the same area are calculated based on the objective parameters, and the calculation results are compared one by one with the objective parameters of the captured images taken by the corresponding best comparison imaging device;

[0053] Image quality evaluation is performed based on the comparison results.

[0054] Optionally, the performing image optimization processing on the captured image based on a preset degradation model includes:

[0055] Performing color optimization processing on the captured image;

[0056] Performing Wiener filter optimization processing on the captured image;

[0057] The captured image is subjected to noise optimization processing.

[0058] Optionally, the compiling the image quality optimization parameter information based on the chip platform type includes:

[0059] Based on the chip platform type, the image quality optimization parameter information is parameter compiled in a column vector manner.

[0060] The embodiment of the present invention further discloses an image quality tuning device, which is applied to a cloud debugging system. The device includes:

[0061] The first determination module is used to determine the type of chip platform currently used for image quality tuning, and to determine the image effect parameter information required to be achieved after the image is adjusted;

[0062] A second determination module is used to select a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determine the shooting reference parameter information corresponding to the chip platform type;

[0063] The tuning module is used to perform image quality tuning based on the image effect parameter information in accordance with the target platform tuning process and the shooting reference parameter information.

[0064] Optionally, the tuning module includes:

[0065] A first determination submodule is used to determine an imaging device currently used for image quality tuning, and to determine a comparison imaging device for the imaging device;

[0066] An acquisition submodule, used to acquire a captured image obtained by using the comparison imaging device to capture an image according to the capture process in the target platform tuning process and the capture reference parameter information;

[0067] An optimization submodule, used to optimize the image quality of the captured image to obtain corresponding image quality optimization parameter information; the image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information;

[0068] A compiling submodule is used to compile the image quality optimization parameter information based on the chip platform type.

[0069] Optionally, the tuning submodule includes:

[0070] An evaluation unit, used for performing image quality evaluation on the captured image based on automatic segmentation;

[0071] The optimization unit is used to perform image optimization processing on the captured image based on a preset degradation model after the evaluation is passed, so as to obtain the corresponding image quality optimization parameter information.

[0072] Optionally, the preset platform tuning process is generated in the following manner, and the device further includes:

[0073] A third determination module is used to determine the necessary parameter information required to be input for image tuning; wherein the necessary parameter information is determined according to the operation instruction document of the chip platform; the necessary parameter information includes at least one of the execution order of each tuning module, the type of image test card and shooting precautions;

[0074] A generation module, used to generate an initial platform tuning process for the chip platform based on the necessary parameter information;

[0075] The adjustment module is used to obtain the image tuning project data corresponding to the chip platform, and adjust the initial platform tuning process according to the image tuning project data to generate the corresponding preset platform tuning process.

[0076] Optionally, the adjustment module includes:

[0077] A calculation submodule is used to calculate the distribution probability of each statistical object in all projects by taking the newly added modules in the platform tuning process corresponding to each project, the shooting card and the shooting conditions used in the image tuning project data as statistical objects in units of projects;

[0078] The updating submodule is used to determine the statistical object corresponding to the distribution probability if the distribution probability is greater than a preset confidence probability, and to update the adjustment object corresponding to the statistical object in the initial platform tuning process.

[0079] Optionally, the adjustment module further includes:

[0080] A selection submodule, configured to determine a reference project matching the current project from a plurality of projects in the image tuning project data if the distribution probability is not greater than the preset confidence probability;

[0081] The adjustment submodule is used to adjust the initial platform tuning process according to the platform tuning process of the reference project.

[0082] Optionally, the second determining module includes:

[0083] A second determination submodule is used to determine the digital imaging combination type of the imaging device; the digital imaging combination type is composed of a chip platform type, an image signal processing unit type, an imaging unit type and a lens type;

[0084] The judging submodule is used to judge whether the number of image tuning items corresponding to the digital imaging combination type is greater than a preset number threshold, and determine the shooting reference parameter information according to the judgment result.

[0085] Optionally, the judgment submodule includes:

[0086] an acquisition unit, configured to acquire a corresponding codec network model if the number is greater than the preset number threshold; wherein the codec network model is obtained by training by taking the historical shooting parameter information of the image tuning project as output and the historical image effect parameter information of the image tuning project as input;

[0087] An input-output unit, used to input the image effect parameter information into the codec network model and output the corresponding shooting reference parameter information;

[0088] The first determining unit is configured to adopt the shooting parameter information in the development code package corresponding to the digital imaging combination type as the shooting reference parameter information if the number is not greater than the preset number threshold.

[0089] Optionally, the first determining submodule includes:

[0090] A second determining unit is configured to, if the cloud debugging system has an image tuning project of the same digital imaging combination type as the imaging device, use the imaging device of the image tuning project as a candidate comparison imaging device;

[0091] a third determining unit, configured to compare the resolution of the imaging unit adopted by the current image tuning project with the resolution of the imaging unit adopted by the previous image tuning project if the cloud debugging system does not have an image tuning project of the same digital imaging combination type as the imaging device, and use the imaging device of the image tuning project with the least resolution difference as the candidate comparison imaging device;

[0092] A fourth determining unit, configured to determine an image quality evaluation result of the candidate comparison imaging device;

[0093] The fifth determining unit is used to sort the evaluation results and calculate the ranking of the image quality loss of each candidate comparison imaging device, and take the candidate comparison imaging device with the last ranking as the best comparison imaging device, and take the candidate comparison imaging device with the middle ranking as the benchmark comparison imaging device.

[0094] Optionally, the tuning submodule further includes:

[0095] A judging unit, used to judge whether there is any irregular shooting in the process of acquiring the captured image;

[0096] A first execution unit, configured to execute an operation of feeding back the shooting problem if any;

[0097] The second execution unit is configured to, if not present, execute an image quality assessment operation based on automatic segmentation on the captured image.

[0098] Optionally, the judging unit includes:

[0099] A grayscale processing subunit, used for performing grayscale processing on the captured image to obtain a grayscale image corresponding to the captured image;

[0100] A stretching subunit, used for performing wide dynamic range stretching on the grayscale image to obtain an enhanced grayscale image;

[0101] A determination subunit, used to determine an image template, and determine an image region matching the image template in the enhanced grayscale image based on an MMSER method;

[0102] The judging subunit is used to judge whether there is any irregular shooting in the process of acquiring the captured image based on the image area.

[0103] Optionally, the evaluation unit includes:

[0104] A segmentation subunit, configured to segment the captured image based on a preset segmentation model to obtain a corresponding segmentation result; wherein the preset segmentation model is obtained by establishing an image group using an objective picture card scene, a subjective image scene and a corresponding labeling map, and performing segmentation training on the image group;

[0105] A correction subunit, used for correcting the image segmentation area of ​​the captured image according to the segmentation result;

[0106] A comparison subunit, for calculating the objective parameters for the images in the same area of ​​the same group of images, and comparing the calculation results with the objective parameters of the images taken by the corresponding best comparison imaging device one by one;

[0107] The evaluation subunit is used to evaluate the image quality according to the comparison result.

[0108] Optionally, the tuning unit includes:

[0109] A first tuning subunit, configured to perform color optimization processing on the captured image;

[0110] A second tuning subunit, used for performing Wiener filter optimization processing on the captured image;

[0111] The third tuning subunit is used to perform noise optimization processing on the captured image.

[0112] Optionally, the compiling submodule includes:

[0113] A compiling unit is used to compile the image quality optimization parameter information in a column vector manner based on the chip platform type.

[0114] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above-mentioned image quality tuning method when executed by the processor.

[0115] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the image quality tuning method described above are implemented.

[0116] The embodiments of the present invention include the following advantages:

[0117] In an embodiment of the present invention, the cloud debugging system can determine the target platform tuning process according to the chip platform type, and perform image quality tuning according to the target platform tuning process. By adopting the above method, the user does not need to learn the knowledge system of image quality tuning for any chip platform. He can obtain the corresponding image quality tuning results by taking a photo and uploading it according to the feedback information in the cloud debugging system, which can greatly reduce the high learning cost caused by chip platform differentiation and improve the efficiency of image quality tuning. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] Figure 1 is a flowchart of a method for optimizing image quality provided by an embodiment of the present invention;

[0119] Figure 2 It is a schematic diagram of the architecture of a cloud debugging system according to an embodiment of the present invention;

[0120] Figure 3 is a flowchart of another method for optimizing image quality provided by an embodiment of the present invention;

[0121] Figure 4 It is a subjective scene graph and a corresponding labeled graph;

[0122] Figure 5 It is a structural block diagram of an image quality adjustment device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0123] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0124] Camera Tuning refers to the process of tuning the camera's image quality through chip platform tools. Tuning chip platform refers to a collection of integrated circuits with an independent computing control unit (CPU), supporting system-on-chip (SOC) development, and capable of supporting software and hardware expansion (such as graphics card, storage, video acquisition, etc.). Comparator refers to a camera whose image and video quality are considered to meet the standards. Tuning module refers to a relatively concentrated collection of functions that support Tuning in the imaging processing unit (ISP). Exposure Table represents the corresponding relationship between the shutter speed and f-value combination of the camera and the actual automatic exposure state.

[0125] The visual technology of the intelligent IoT industry is developing rapidly. Relying on wide-angle lenses and cameras, surround monitoring and visual equipment can achieve the goal of high information volume and low hardware investment. In 2021, the demand for cameras in the IoT industry will be in the billions.

[0126] Product quality issues greatly restrict the camera supply cycle, including: module problems (distortion, chromatic aberration, blur, spots, etc.), sensor problems (noise, color, bad pixels, etc.), restoration, installation accuracy (angle difference, visual axis deviation, tilt deviation, etc.). Module and sensor problems can be corrected through CameraTuning, but for different processing chips, the tools, processes, and module groups for adjusting image quality are different, and even have large differences. For example: There is an independent module 3DNR for denoising on the HiSilicon platform, but it does not exist on the Qualcomm platform. The differences between different platforms make the platforms relatively independent.

[0127] When performing tuning work for such an independently differentiated chip platform, CameraTuning staff need to learn the tuning processes of different platforms. Since the potential possibilities of tuning for this platform are unknown, non-convergence may occur during the tuning process due to unknown targets. That is, relevant parameters must be continuously adjusted, and then shooting tests must be continuously performed. Finally, a subjectively relatively recognized result is reached through multiple iterations as the optimal tuning state.

[0128] Currently, the differences between different chip platforms are still solved by human mode. The current process of implementing tuning between different chip platforms is:

[0129] 1. Learn how to use platform tools;

[0130] 2. Experimental attempts at platform tools;

[0131] 3. Summary and accumulation of problems;

[0132] 4. Implementation of real Tuning tasks, including:

[0133] a) Compile parameters based on the platform's default imaging quality; b) Take special scene images based on the compiled results and export data; the compiled results refer to tuning parameters that are adapted to the current platform; c) Import data into the platform tool for initial tuning; d) Adjust tuning parameters based on the subjective and objective quality differences between the images taken with the comparison device; e) Compile parameters based on the platform compiler; f) Repeat steps b) to e) until the quality is subjectively considered to be basically the same.

[0134] 5. The platform compiler compiles the final tuning parameters and completes tuning.

[0135] From the above, we can see that for a typical tuning task, the manpower cost of learning the platform is calculated on a monthly basis, and the complete shooting, tuning, and evaluation process during implementation is also calculated on a monthly basis. If there are other special scenarios, the manpower cost of learning and tuning will be even higher.

[0136] There is no tuning solution for platform differentiation, but there are many optimization solutions for the tuning implementation process, such as automatic quality evaluation system and automatic shooting system. Although these solutions can reduce tuning manpower input and improve efficiency, this efficiency improvement has little effect on the learning cost caused by platform differentiation.

[0137] In summary, the learning cost caused by platform differentiation is too high, resulting in excessive manpower investment. Due to the lack of matching between the platform's operating instructions and the platform tool version, the accumulated experience is unable to handle various tuning problems, and the problem handling caused by the differences between platforms is more difficult. There are many problems with the tool software currently provided by the platform, and it is difficult to rely on the platform manufacturer to solve the problems in a short time, which greatly affects the tuning efficiency.

[0138] One of the core concepts of the embodiments of the present invention is that the cloud debugging system can determine the target platform tuning process according to the chip platform type, and perform image quality tuning according to the target platform tuning process. By adopting the above method, users do not need to learn the knowledge system of image quality tuning for any chip platform. They can obtain the corresponding image quality tuning results by taking photos and uploading them according to the feedback information in the cloud debugging system, which can greatly reduce the high learning cost caused by chip platform differentiation and improve the efficiency of image quality tuning.

[0139] Reference Figure 1 , shows a flowchart of a method for optimizing image quality provided by an embodiment of the present invention, which is applied to a cloud debugging system and may specifically include the following steps:

[0140] Step 101, determining the type of chip platform currently used for image quality tuning, and determining image effect parameter information required to be achieved after image adjustment.

[0141] In the embodiment of the present invention, image quality tuning for different chip platform types, that is, Camera Tuning, can be performed in the cloud debugging system.

[0142] Reference Figure 2 The figure is a schematic diagram of the architecture of a cloud debugging system according to an embodiment of the present invention. The cloud debugging system includes 6 key functional modules, including a platform differentiation compatibility module, an integrated automatic tuning tool module, an integrated automatic evaluation module, a tuning data cloud compilation module, a tuning data cloud storage, management and mining module, and a basic interaction and communication module.

[0143] The chip platform type currently used for image quality tuning can be determined, as well as the image effect parameter information required to be achieved after the image is adjusted. In one example, after the user logs in to the cloud debugging system, the chip platform type currently used for image quality tuning can be selected from the multiple chip platform types provided by the cloud debugging system, and the image effect parameter information to be achieved can be input in the cloud debugging system. Among them, the image effect parameter information includes clarity, noise level, exposure curve, etc. The process of determining the chip platform type and image effect parameter information can be performed in the interaction and communication module.

[0144] Step 102 : Select a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determine the shooting reference parameter information corresponding to the chip platform type.

[0145] In an embodiment of the present invention, the chip platform type and the platform tuning process correspond one-to-one, and the cloud debugging system pre-stores the correspondence between the chip platform type and the platform tuning process. In addition, the chip platform type and the shooting reference parameter information correspond one-to-one, and the cloud debugging system also pre-stores the correspondence between the chip platform type and the corresponding shooting reference parameter information. After the chip platform type is determined, the target platform tuning process corresponding to the selected chip platform type can be selected from the preset platform tuning process, and the shooting reference parameter information corresponding to the chip platform type can be determined. When providing the target platform tuning process, the cloud debugging system can also provide the corresponding target platform tuning process operation instructions.

[0146] Step 103: Based on the image effect parameter information, image quality is optimized according to the target platform optimization process and the shooting reference parameter information.

[0147] In the embodiment of the present invention, image quality optimization may be performed based on the above-mentioned image effect parameter information according to the target platform optimization process and the shooting reference parameter information.

[0148] In summary, in the embodiment of the present invention, the cloud debugging system can determine the target platform tuning process according to the chip platform type, and perform image quality tuning according to the target platform tuning process. By adopting the above method, the user does not need to learn the knowledge system of image quality tuning for any chip platform. He can obtain the corresponding image quality tuning results by taking a photo and uploading it according to the feedback information in the cloud debugging system, which can greatly reduce the high learning cost caused by chip platform differentiation and improve the efficiency of image quality tuning.

[0149] Reference Figure 3 , shows a flowchart of another method for optimizing image quality provided by an embodiment of the present invention, which is applied to a cloud debugging system and may specifically include the following steps:

[0150] Step 301, determining the type of chip platform currently used for image quality tuning, and determining image effect parameter information required to be achieved after image adjustment.

[0151] In an embodiment of the present invention, image quality tuning for different chip platform types can be performed in a cloud debugging system. In response to user operations, the chip platform type currently used for image quality tuning can be determined, as well as image effect parameter information required to be achieved after image adjustment.

[0152] Step 302 : Select a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determine the shooting reference parameter information corresponding to the chip platform type.

[0153] In the embodiment of the present invention, the cloud debugging system pre-stores the correspondence between the chip platform type and the platform tuning process, and the cloud debugging system also pre-stores the correspondence between the chip platform type and the corresponding shooting reference parameter information. The target platform tuning process corresponding to the selected chip platform type can be selected from the preset platform tuning processes, and the shooting reference parameter information corresponding to the chip platform type can be determined.

[0154] In an optional embodiment, the preset platform tuning process may be generated in the following manner:

[0155] Determine the necessary parameter information required to be input for image tuning; generate an initial platform tuning process for the chip platform based on the necessary parameter information; obtain image tuning project data corresponding to the chip platform, and adjust the initial platform tuning process according to the image tuning project data to generate the corresponding preset platform tuning process.

[0156] The necessary parameter information is determined according to the operating instructions of the chip platform; the necessary parameter information includes at least one of the execution order of each tuning module, the type of image test card and shooting precautions.

[0157] In an embodiment of the present invention, the corresponding initial platform tuning process for image tuning can be determined based on the operation instruction documents on image tuning provided by different chip platforms, wherein the initial platform tuning process includes necessary parameter information required to be input for image tuning. In one example, the necessary parameter information may include the execution order of each tuning module, the type of image test card, and shooting precautions, etc.

[0158] The execution order of each tuning module refers to the calling order of the tuning modules that support ISP on any platform. Different tuning modules are interdependent. Image quality tuning should be performed in a certain order, otherwise the tuning results will diverge and good tuning results cannot be obtained. For example, the general tuning order is: automatic exposure -> black level -> shading -> coarse denoising -> gamma adjustment -> color adjustment -> sharpening adjustment -> other special module adjustments.

[0159] Image test chart types refer to the types of photographic charts. Typical charts used for tuning include: gray card, 24-color chart, ISO12233 chart, transmittance 20-step, 36-step chart, etc.

[0160] Shooting precautions can be imaging items that need to be set during the shooting process, for a certain module in the shooting sequence, when shooting a certain picture card, such as exposure value, EV value, aperture value, etc.; it can also be shooting picture card requirements, such as the area occupied by the frame, shooting inclination, etc.; in addition, it can also be the color temperature and light intensity of the shooting light source that need attention; finally, it can also be the shooting image format, saving method, etc.

[0161] In the embodiment of the present invention, by accumulating project data of image optimization projects of the same or similar chip platforms, the initial platform optimization process of the corresponding chip platform can be adjusted.

[0162] The initial platform tuning process is adjusted according to the image tuning project data, including:

[0163] From the image tuning project data, the newly added modules in the platform tuning process corresponding to each project, the adopted shooting cards and shooting conditions are taken as statistical objects in units of projects, and the distribution probability of each statistical object in all projects is calculated; if the distribution probability is greater than the preset confidence probability, the statistical object corresponding to the distribution probability is determined, and the adjustment object corresponding to the statistical object is updated in the initial platform tuning process. If the distribution probability is not greater than the preset confidence probability, a reference project matching the current project is determined from multiple projects of the image tuning project data; and the initial platform tuning process is adjusted according to the platform tuning process of the reference project.

[0164] In the embodiment of the present invention, the initial platform tuning process is adjusted, and the adjustment content may include: newly added modules, shooting cards and shooting conditions. Among them, newly added modules are modules added during the image tuning process; shooting cards are shooting card requirements used by the product / platform for image tuning, such as color temperature requirements for shooting cards; shooting conditions may be lighting conditions, recommended exposure tables, etc.

[0165] From the accumulated image tuning project data, the newly added modules, shooting cards and shooting conditions in the platform tuning process of each project are counted, and the distribution probability of the statistical object in all projects is calculated. If the distribution probability is greater than the confidence probability (for example, 80%), the adjustment object corresponding to the statistical object can be updated in the initial platform tuning process corresponding to the chip platform. For example, the 20-order transmission grayscale card under the conditions of 1000lux and 5000k color temperature will not be shot in the initial platform tuning process, but in the actual data statistics, 80% of the projects use the above shooting method, so it can be recommended to add the corresponding shooting card scene in the current initial platform tuning process. In actual applications, even if the chip platform is the same, but there are differences in the product direction of the application, such as indoor monitoring cameras do not need to consider special outdoor weather conditions, but outdoor monitoring cameras of the same model and platform are relatively more complicated. In addition, the combination of CCD+lens may also cause differences. The difference between the actual process and the implementation process just shows that the provided default process may be incomplete. Therefore, the image tuning project data can be used to automatically enhance the initial platform tuning process.

[0166] For the case where the distribution probability is not greater than the confidence probability, a reference project matching the current project can be determined from multiple projects in the image tuning project data, and the differences in key indicators between the two projects can be compared. The specific comparison method can use Euclidean distance (indicator items less than 3 dimensions) or correlation coefficient (high-dimensional indicator items, often quality curves). Assuming that the difference is very small, such as the distance is less than 0.0001 or the absolute value of the correlation coefficient is higher than 0.8, it is considered that the initial platform tuning process can be adjusted according to the platform tuning process of the reference project, such as adding a corresponding tuning module; otherwise, it is considered that the correlation is low and there is no need to adjust the initial platform tuning process, for example, there is no need to add the tuning module.

[0167] For step 302, the following steps may be performed:

[0168] Sub-step S11, determining the digital imaging combination type of the imaging device.

[0169] Sub-step S12, determining whether the number of image tuning items corresponding to the digital imaging combination type is greater than a preset number threshold, and determining the shooting reference parameter information according to the determination result.

[0170] In an embodiment of the present invention, to determine the shooting reference parameter information corresponding to the chip platform type, the digital imaging combination type of the imaging device can be determined first, and the shooting reference parameter information can be determined according to the digital imaging combination type. The shooting reference parameter information may include an exposure table. The digital imaging combination type is composed of a chip platform type, an image signal processing unit type (ISP), an imaging unit type (Sensor), and a lens type.

[0171] The cloud debugging system stores previously processed image tuning projects, and can determine the number of image tuning projects with the same digital imaging combination type as the current image tuning project, and judge whether the number is greater than a preset number threshold, and determine the shooting reference parameter information of the current image tuning project based on the judgment result.

[0172] For sub-step S12, the following steps may be performed:

[0173] If the number is greater than the preset number threshold, the corresponding codec network model is obtained; the image effect parameter information is input into the codec network model, and the corresponding shooting reference parameter information is output; if the number is not greater than the preset number threshold, the shooting parameter information in the development code package corresponding to the digital imaging combination type is used as the shooting reference parameter information.

[0174] The above-mentioned codec network model is obtained by training by taking the historical shooting parameter information of the image tuning project as output and taking the historical image effect parameter information of the image tuning project as input.

[0175] In an embodiment of the present invention, for a chip platform and a sensor combination (digital imaging combination): chip platform + ISP processor + Sensor (imaging unit) + lens, it is possible to query in the database of the cloud debugging system whether there is shooting reference parameter information corresponding to the digital imaging combination.

[0176] If it exists, the number of currently accumulated projects with the same digital imaging combination type can be determined, and when the number of projects is large enough (for example, more than 30), the historical shooting parameter information of the final tuning completed in the accumulated projects is used as output, and the historical image effect parameter information is used as input. By building a codec network, the codec network model can be trained, and then the image effect parameter information of the current project is used as input. The shooting reference parameter information can be obtained using the codec model. When the number of accumulated projects is insufficient, it can be considered that the current data accumulation is insufficient to provide quantitative conditions, and the shooting reference parameters in the development code package are used.

[0177] If it does not exist, it can be considered that the code under the chip platform type in the cloud debugging system is incomplete, and a notification can be sent to the user to upload a development code package of this type (generally provided by the platform developer).

[0178] The updated shooting reference parameter information can be compiled through the cloud compilation module in the cloud debugging system to generate the compilation results used for shooting. It should be noted that the cloud compilation module has multiple compilers, and the compilers correspond to the chip platform types. The compilers and camera development code packages can be uploaded to the cloud debugging system together.

[0179] Step 303: determine the imaging device currently used for image quality adjustment, and determine a comparison imaging device for the imaging device.

[0180] In the embodiment of the present invention, the imaging device currently used for image quality tuning may be determined, and the screening of the imaging devices for comparison may be performed based on a web crawler and data mining.

[0181] For step 303, the following steps may be performed:

[0182] Sub-step S21: If the cloud debugging system has an image tuning project of the same digital imaging combination type as the imaging device, the imaging device of the image tuning project is used as a candidate comparison imaging device.

[0183] Sub-step S22, if the cloud debugging system does not have an image tuning project with the same digital imaging combination type as the imaging device, the resolution of the imaging unit adopted by the current image tuning project is compared with the resolution of the imaging unit adopted by the previous image tuning project, and the imaging device of the image tuning project with the least resolution difference is used as the candidate comparison imaging device.

[0184] Sub-step S23, determining the image quality evaluation result of the candidate comparison imaging device.

[0185] Sub-step S24, sorting the evaluation results, and calculating the ranking of image quality loss of each candidate comparison imaging device, taking the last ranked candidate comparison imaging device as the best comparison imaging device, and taking the middle ranked candidate comparison imaging device as the benchmark comparison imaging device.

[0186] When a Tuning project with the same digital imaging combination is stored in the cloud debugging system, the imaging device of the project can be used as a candidate for comparison imaging device. In addition, in an optional embodiment, the following can be determined for all Tuning projects with the same digital imaging combination: the final evaluation results of the imaging device, and the image quality evaluation results of the related comparison imaging devices, which are sorted by the evaluation results such as geometric distortion rate, noise, detail loss, and color deviation, and then the comprehensive ranking of the imaging quality loss of each imaging device is calculated. The calculation method is shown in Formula 1. Finally, the imaging device with the lowest comprehensive ranking is selected as the golden comparison imaging device, and the imaging device ranked in the middle is selected as the benchmark comparison imaging device to complete the screening of the comparison imaging devices.

[0187]

[0188] Among them, score represents the comprehensive score; α represents the geometric distortion rate; σ represents the noise; η represents the detail loss; ΔC mean Indicates the average color cast.

[0189] When the cloud debugging system does not have a Tuning project with the same digital imaging combination, you can select the project closest to the sensor resolution or frame rate from all projects. The specific method is to calculate the difference between the resolution and frame rate, and use the imaging devices involved in the project with a difference of 0 as candidate comparison imaging devices. Find the image quality evaluation results of the candidate comparison imaging devices, sort them by the evaluation results such as geometric distortion rate, noise, detail loss, and average color deviation, and then calculate the comprehensive ranking of the imaging quality loss of each imaging device. The calculation method is shown in Formula 1. Finally, the imaging device with the lowest comprehensive ranking is selected as the golden comparison imaging device, that is, the shooting device with the highest imaging quality. The one ranked in the middle is used as the benchmark comparison imaging device, that is, the shooting device with a relatively average imaging quality, and the screening of the comparison imaging devices is completed.

[0190] In another optional embodiment, when the storage of the Tuning project for the digital imaging combination in the cloud debugging system is empty, a web crawler can be used to search for imaging terminal devices with the same resolution as the imaging device to be tuned, including but not limited to mobile phones, IOT-specific devices, customized products, etc., and analyze the captured device information. The analysis method is to match the sensor information of the current imaging device with the keywords in the captured device information, and calculate the second-order norm of the attribute values ​​with the same keywords. For example, if the keyword is resolution, the resolution of the terminal device is h1×w1, and the resolution of the current imaging device to be tuned is h2×w2, then the second-order norm of the keyword resolution is Ignore the calculation of non-numeric attributes, then calculate the second-order norm values ​​and average values ​​of all numeric keywords, and sort the captured terminal devices and the imaging devices to be tuned in ascending order based on the average value. Select the terminal devices with the top T average values ​​(T is recommended to be greater than 4) and complete attribute information (price, manufacturer, size, specifications, etc.) as candidate comparison imaging devices; based on the detailed information of the T terminal devices, sort them from small to large according to the amount of mined information, select the terminal device with the information amount ranking in the middle as the benchmark comparison imaging device, and the terminal device with the most information as the golden comparison imaging device.

[0191] Step 304 , obtaining a captured image by using the comparison imaging device to perform image capture according to the capture process in the target platform tuning process and the capture reference parameter information.

[0192] In the embodiment of the present invention, after the comparison imaging device is determined, the comparison imaging device can be used to perform image capture according to the capture process and capture reference parameter information in the target platform tuning process.

[0193] Users can take pictures according to the provided comparison imaging equipment and shooting process. In one example, the model of the comparison imaging equipment provided in the cloud debugging system can provide users with selection suggestions for the comparison imaging equipment, and then assist in providing the shooting process. The staff is required to cooperate in shooting according to the shooting process, and the corresponding captured images and related data must be named according to the shooting process requirements. The cloud debugging system obtains the captured images uploaded by the user.

[0194] Step 305: optimize the image quality of the captured image to obtain corresponding image quality optimization parameter information.

[0195] The image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information.

[0196] In the embodiment of the present invention, image quality optimization is performed on the acquired captured image to obtain image quality optimization parameter information that meets the image effect requirement corresponding to the image effect parameter information.

[0197] For step 305, the following steps may be performed:

[0198] Sub-step S31, performing image quality assessment on the captured image based on automatic segmentation.

[0199] After the captured image is recognized, the image quality can be evaluated.

[0200] In an optional embodiment, the target platform tuning process has constraints on the uploaded captured images, and it is necessary to first determine whether the uploaded captured images are abnormal data, and if they are abnormal data, corresponding interactive corrections need to be performed.

[0201] In one example, the naming format of the captured images may be determined. For the captured images uploaded according to the shooting process, a one-to-one check may be performed according to the data naming rules to determine whether there is a captured image naming that is inconsistent with the shooting process requirements. If so, the captured image is considered to be non-standard, and the number of non-standard data F may be recorded. In the case that there is no non-standard captured image, F is 0.

[0202] In addition, the content of the captured image can also be judged. Before the image quality assessment based on automatic segmentation of the captured image is performed, the method further includes:

[0203] Determine whether there is any irregular shooting in the process of acquiring the captured image; if so, perform an operation of feeding back the shooting problem; if not, perform an operation of evaluating the image quality based on automatic segmentation on the captured image.

[0204] The determining whether there is any irregular shooting in the process of acquiring the captured image includes:

[0205] The captured image is gray-scaled to obtain a gray-scale image corresponding to the captured image; the gray-scale image is stretched with wide dynamic range to obtain an enhanced gray-scale image; an image template is determined, and an image region matching the image template is determined in the enhanced gray-scale image based on the MMSER method; based on the image region, it is determined whether there is any irregular shooting in the process of acquiring the captured image.

[0206] In the embodiment of the present invention, the captured image can be grayed to obtain a grayscale image f corresponding to the scene of the captured image; the grayscale image is stretched by wide dynamic range, specifically, firstly, a normalized grayscale histogram of the captured image is counted, then the integral of the statistical histogram is calculated to obtain an integral histogram, and the grayscale value g whose integral histogram value is closest to the grayscale lower limit (for example, the integral value is 0.05) and the grayscale upper limit (for example, 0.95) is found. min and g max , the grayscale f(x, y) at the row y∈[1, h2] and the column x∈[1, w2] is adjusted according to Formula 2 to obtain the enhanced grayscale f′(x, y).

[0207]

[0208] Among them, g min Indicates that the integral histogram value is closest to the lower limit of the grayscale; g max Indicates that the integral histogram value is closest to the upper limit of the grayscale. The resolution of the imaging device currently used for image quality optimization is h2×w2, y∈[1,h2] represents the row; x∈[1,w2] represents the column; the grayscale f(x,y) is the grayscale value at the row y∈[1,h2] and the column x∈[1,w2]; the enhanced grayscale is f′(x,y).

[0209] The standard captured image card is used as the image template, and the image area S matching the template is determined in the enhanced grayscale image based on the MMSER method; assuming that the image area S occupies the area S of the entire captured image t =h2×w2 ratio is too different from the requirements in the shooting process, such as S / S t >0.2, it can be considered that there is an irregular shooting situation, F = F + 1, and the judgment is completed; otherwise, based on the convex hull coordinates of the matched image area, the bounding rectangle of the matched image area is calculated, assuming that the area of ​​the bounding rectangle is S q , if S / S qIf the ratio is too small, for example, less than 0.9, it can be considered that the shooting is not standardized, F = F + 1, and the judgment is completed; otherwise, it can be considered that the shooting is standardized. Determine whether F is greater than 0. If it is greater than 0, feedback is given to the user, and prompts which images have problems and what the specific problems are, such as irregular shooting caused by the area ratio not meeting the standard.

[0210] After determining that the captured image meets the requirements, a quality assessment of the captured image may be performed. For sub-step S31, the following steps may be performed:

[0211] The captured images are segmented based on a preset segmentation model to obtain corresponding segmentation results; the image segmentation area of ​​the captured images is corrected according to the segmentation results; for the same group of captured images, the captured images in the same area are calculated based on objective parameters, and the calculation results are compared one by one with the objective parameters of the captured images taken by the corresponding best comparison imaging device; and image quality evaluation is performed according to the comparison results.

[0212] The preset segmentation model is obtained by establishing an image group using an objective picture card scene, a subjective image scene and a corresponding labeled image, and performing segmentation training on the image group.

[0213] In the embodiment of the present invention, a segmentation model can be established, and the captured images can be segmented based on the segmentation model, and the segmentation results can be corrected. For the same group of captured images, objective parameters can be calculated for the captured images in the same area, which can be used to compare the objective parameters of the captured images taken by the best comparison imaging device to evaluate the image quality.

[0214] The specific methods can be:

[0215] 1. Prepare multiple sets of objective scene cards, subjective scene images and corresponding labeled images, refer to Figure 4 As shown, it is a subjective scene graph and the corresponding label graph ( Figure 4 (a) is the subjective scene map, and (b) is the corresponding labeled map). The objective map scene must include typical map cards, such as 24-color maps, SFRPlus maps, dot maps, etc. The subjective image scene should cover different color temperatures and lighting conditions as much as possible, such as the color temperature range of 2300K to 10000K, and the lighting from 51ux to 10000lux. The size of the labeled map is consistent with the original image size, and the grayscale value of each pixel represents the classification label of the same position in the original image. The labels of the same area or attribute are consistent. For example, the blue sky in the subjective scene image is defined as grayscale 1 in the labeled map, and the road scene is defined as grayscale 2 in the labeled map. There should be enough image groups consisting of the original image and the corresponding labeled map, such as more than 10,000 groups, and the differences between scenes should be as large as possible, such as the map, color temperature, and lighting conditions cannot be completely consistent.

[0216] 2. Perform pixel2pixel segmentation training on the image group. Considering that high-resolution images are difficult to train, and the current deep learning segmentation method generally uses downsampling to process high-resolution images, the accuracy is insufficient. Therefore, while downsampling the input image group data, multiple groups (for example, more than 10 groups) of low-resolution image groups are generated for the high-resolution image group by random interception. The specific method is:

[0217] (1) Assuming that the image width is W and the height is H, a starting point is randomly selected in the integer range [1, W] and [1, H] according to a uniform distribution pattern as the starting point position (x s ,y s );

[0218] (2) Assume that the width of the training network input layer is w in , height h in ,exist or In the real number domain, according to the uniform distribution mode, randomly select the width or height of the cutting ratio ω, calculate according to the width, and then calculate the width of the cutting And the corresponding height

[0219] (3) Determine whether the cutting width and height exceed the boundary of the image on the basis of a fixed starting point, that is, whether x s +w c -1≥W, or y s +h c -1≥H; if satisfied, the adjustment method is x s =Ww c +1, or y s =Hh c +1;

[0220] (4) Repeat steps (1) to (3) until the required number of groups is sufficient, for example, 10 groups.

[0221] 3. Train the generated image group to obtain the corresponding segmentation model; generally, under the normal training mode, the training loss is gradually reduced;

[0222] 4. When providing images of the comparison imaging device, segment the captured images based on the trained segmentation model, and compare the partial segmentation results with the overall segmentation results. For repeated positions but containing multiple classification results, the voting method can be considered to correct the image area segmentation of the original image;

[0223] 5. For any group of images, multiple objective parameters are calculated for images in the same area. The objective parameters include: frequency domain information entropy, smoothness, noise level, and distribution in Lab space;

[0224] 6. For the statistical results, calculate the respective binorms of the objective parameters of the images taken by the corresponding golden comparison imaging device one by one as the quality difference of all items, and then calculate the average quality difference of all items. The smaller the value, the closer the objective parameter value of the imaging device currently performing image quality adjustment is to the golden comparison imaging device, otherwise it is considered that the quality difference is larger.

[0225] Sub-step S32, after the evaluation is passed, performing image optimization processing based on a preset degradation model on the captured image to obtain the corresponding image quality optimization parameter information.

[0226] In the embodiment of the present invention, after the evaluation is passed, the captured image can be subjected to image quality optimization processing based on a preset degradation model.

[0227] For sub-step S32, the following steps may be performed:

[0228] The captured image is subjected to color optimization processing; the captured image is subjected to Wiener filter optimization processing; the captured image is subjected to noise optimization processing.

[0229] For color optimization processing, it can include:

[0230] For the captured image, the light signal L(x, y) at the coordinate position (x, y), x∈[1, H], y∈[1, W], the image generated by the imaging device after capturing the signal is f(x, y, c), c∈{1, 2, 3} (generally, the image is divided into three channels of R, G, and B, and 1, 2, 3 are used to represent it). The overall imaging model can refer to Formula 3:

[0231]

[0232] Among them, g(x, y, c) represents the grayscale value before color adjustment, K(x, y, c)∈0,1 represents the photoelectric conversion coefficient table, which replaces the gamma or lut transformation, psf is a low-pass filter, represents the detail loss function, T(·) represents the distortion function, n(x, y, c) represents random noise, b represents a fixed bias, and M represents the color conversion matrix.

[0233] We can first solve T(·). Specifically, we provide the geometric distortion evaluation chart results taken by the golden comparison imaging device and the current imaging device according to the shooting requirements, calculate the optical distortion equation of the standard chart, and complete the geometric distortion removal according to the parameters of the equation.

[0234] Then solve the photoelectric conversion coefficient table. The specific method is to use golden to compare different scene images taken by the imaging device and the current imaging device, perform histogram matching of different channels, and obtain the adjustment value corresponding to each grayscale. That is, under the condition of providing any grayscale, its adjustment value can be found through the histogram matching result, and then the grayscale T[L(x, y)] is input to find the matching conversion coefficient as K(x, y, c);

[0235] Solve the color conversion matrix. The specific method is to solve the transformation matrix of the scene image captured by the golden comparison imaging device and the current imaging device:

[0236] (1) Arrange all grayscale images of the same scene captured by the two imaging devices into a 3-row H×W matrix in the column direction. The color matrix of the golden comparison imaging device is C r , the color matrix of the current imaging device is C t , construct the objective function, as shown in Formula 4:

[0237]

[0238] Here, R(·) represents the correlation function, λ∈0.5, 1 represents the constraint value.

[0239] (2) respectively ||MC t -C r || The conversion element m i (i∈[1,9]) find the partial derivative, set each partial derivative result to 0, and get a set of 9-variable linear equations, which can be solved to get the transformation matrix;

[0240] (3) For the solved matrix, calculate |R(MC t , C t )|, assuming that R(MC t , C t )≥λ, the transformation matrix solution is considered to be completed; otherwise, the relaxation formula 4||MC t -C r || is|| MC t -C r ||≥Δr, Δr=||MC r -C r ||; Δr refers to the transformation difference constraint;

[0241] (4) Repeat (2)-(3) until the transformation matrix is ​​solved or a certain number of iterations is reached, such as more than 100 iterations, and the last transformation matrix is ​​taken as the final result.

[0242] For Wiener filter optimization processing, a blind loss function can be used, including:

[0243] The blind loss function estimation method is used to estimate the system transfer function (psf) of the current imaging device at different scales (i.e., different chart distances and special requirement scenes). Then, the Wiener filter can be used to sharpen the captured image.

[0244] For noise optimization processing, it can include:

[0245] Based on the special shooting chart and the principle of wavelet transform, the noise level of the images taken by the current imaging device and the golden comparison imaging device in different scenes is calculated. Assume that σ and σ are r , and then construct Gaussian low-pass filters of different scales (generally using original size, 1 / 4 size and 1 / 16 size images), for a certain scale:

[0246] (1) Based on the specified noise level interval σ, taking [0.5σ, 1.5σ] as an example, the starting noise σ s =0.5σ, with a fixed step size t (for example t = 0.05σ);

[0247] (2) According to formula 5, the filter window size is w lp Gaussian low-pass filter, and ensure that the window is an odd number;

[0248]

[0249] Among them, the filter window size is w lp , initial noise σ s =0.5σ, the value of b1 is 0 or 1, represents rounding towards 0, and mod(·) represents the remainder.

[0250] (3) Based on the provided filter, the image captured by the current imaging device is filtered and denoised to obtain a denoised image f n , based on wavelet transform, estimate f n The noise level σ n , assuming |σ n -σ r | is larger, for example: |σ n -σ r |>0.1, the filter is considered unsuitable, and the current filter difference value |σ is recorded. n -σ r |With σ s value, execute step (4); otherwise, execute step (5);

[0251] (4)σ s =σ s +t, judge σs Is it greater than the upper limit of the interval, such as 1.5σ? If so, select the record with the smallest difference value |σ n -σ r |The corresponding σ s is the optimal value, if not, proceed to step (2);

[0252] (5) Considering that the image effect requirements corresponding to the image effect parameter information are currently met, the current filtering parameter σ is selected s And the corresponding filter window size w lp is the current optimal denoising filter parameter.

[0253] Step 306: compile the image quality optimization parameter information based on the chip platform type.

[0254] In an embodiment of the present invention, after performing image optimization processing on the captured image, image quality optimization parameter information that meets the image effect requirements corresponding to the image effect parameter information can be obtained. The image quality optimization parameter information may include the above-mentioned color conversion matrix, system transfer function, optimal denoising filter parameters, etc. After determining the image quality optimization parameter information, it can be compiled based on the chip platform type.

[0255] For step 306, the following steps may be performed:

[0256] Sub-step S41 , based on the chip platform type, parameter compilation is performed on the image quality optimization parameter information in a column vector manner.

[0257] In an embodiment of the present invention, the image quality optimization parameter information may be compiled by using a column vector and constructing an auto-encoding model. Specifically, the following method may be used:

[0258] 1. For the image quality optimization parameter information of any chip platform, based on the captured image data taken as required and the original compiled parameters accumulated when taking the image (such as typical configuration parameters adjusted or default values, parameters adjusted by curves or default parameters, etc.), the image quality optimization parameter information of different platforms is arranged as column vectors. For example, there are N1 related parameters of module 1, and these parameters are arranged in the column direction. Then there are N2 related parameters of module 2, which are arranged behind the data of module 1, and so on until all the parameters of all modules of the platform are arranged. The module definitions belonging to the same chip platform must be consistent. The parameters of each chip platform are generally saved in the development code package; each project of each platform can generate a column vector related to the project. Assuming that the length of the column vector of any platform is D and there are P projects under the same platform, the column vectors of all platforms can form a matrix y with D rows and P columns. out ,The vector sizes are different on different platforms;

[0259] 2. Based on the method in the above degradation model, find T(·) in the same platform and corresponding project, the histogram matching transformation curve, that is, the corresponding reference value of K(x, y, c), the color conversion matrix M, the system transfer function psf, and the filter window size w lp The Gaussian low-pass filter lp is used. All data obtained from the degradation model are arranged in the following order according to the column vector mode: T(·) distortion parameters (up to 8) occupy 9 rows, and the insufficient ones are filled with 0. Then the gamma / lut curve occupies 3*256 lengths, arranged according to the color channels red, green, and blue. The color conversion matrix occupies 9 rows, which is consistent with the data volume of the conversion matrix. The system transfer function occupies 121 rows in the column direction. The insufficient transfer function size is filled with 0. The filter parameters of different scales (taking 3 scales as an example) are taken. The filter of each scale occupies 121 rows, and the insufficient ones are filled with 0. In this way, the Tuning reference vector data under this platform and this project is obtained, and the vector length is 1270 dimensions.

[0260] 3. Sort the vector data in all projects on the same platform by row to form input x in (Generally, the number of inputs for each platform should be as high as possible, such as more than 10 groups. When the number is small, you can consider providing multiple sets of tuning parameters and scenario results on the demand side.) Assume that the dimension of the agreed degradation model is D e (e.g., 1270 dimensions) and there are P projects on the same platform, then x in The dimension is D e Row P Column;

[0261] 4. x in is the input, y out For output, an autoencoder model is constructed, and autoencoder training is performed to obtain the autoencoder conversion network of the corresponding platform; it can be considered that the platform-differentiated parameters can be eliminated through a unified degradation model and adapted through the autoencoder network;

[0262] 5. Based on the image quality optimization parameter information, arrange it according to the mode of step 3 to become the input x of the current platform sample , based on the encoding training model of the platform, the output decoding is performed, and the decoding parameter y is obtained sample That is, the original compilation parameters of the platform.

[0263] 6. Based on y sample As well as the arrangement of step 1, modify the compilation parameters of the corresponding platform, and call the compiler of different platform + sensor combinations (digital imaging combination) to complete parameter compilation;

[0264] 7. The user subjectively determines whether fine-tuning is needed by actually shooting the image. If fine-tuning is needed, the relevant shooting scene images of the imaging device are adjusted and replaced with the subjectively approved result images, and the image quality assessment and image optimization processing steps are re-executed until subjective approval is achieved. If fine-tuning is not needed, the image quality adjustment in the cloud is completed.

[0265] In summary, in an embodiment of the present invention, the cloud debugging system can determine the target platform tuning process according to the chip platform type, and perform image quality tuning according to the target platform tuning process. By adopting the above method, the user does not need to learn any knowledge system for image quality tuning of the chip platform. By taking a photo and uploading it according to the feedback information in the cloud debugging system, the corresponding image quality tuning result can be obtained, which can greatly reduce the high learning cost caused by the differentiation of chip platforms and improve the efficiency of image quality tuning. In the process of image quality tuning in the cloud debugging system, the user does not need to learn any knowledge system of chip platform Tuning. He only needs to take a photo and upload it according to the requirements of the platform tuning process to obtain the Tuning result, and then complete the fine-tuning of the result by changing the subjective tendency. This solution can eliminate the learning cost caused by platform differentiation and improve the Tuning efficiency by constructing an integrated system of evaluation, Tuning and shooting, and by means of a unified degradation model. This solution can provide various statistical data that the chip platform cannot provide by quantifying and accumulating Tuning project data based on mining and crawler technology, making the Tuning process more reasonable and making the Tuning process lawful. Since most chip platforms use AI mode, after accumulating a certain amount of project data, they can complete shooting inspection, tuning and evaluation without relying on platform tuning tools, which greatly improves the stability and reference of tuning.

[0266] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0267] Reference Figure 5 , shows a structural block diagram of an image quality tuning device provided by an embodiment of the present invention, which is applied to a cloud debugging system and may specifically include the following modules:

[0268] The first determination module 501 is used to determine the type of chip platform currently used for image quality tuning, and to determine the image effect parameter information required to be achieved after the image is adjusted;

[0269] A second determination module 502 is used to select a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determine the shooting reference parameter information corresponding to the chip platform type;

[0270] The tuning module 503 is used to perform image quality tuning based on the image effect parameter information, according to the target platform tuning process and the shooting reference parameter information.

[0271] In an embodiment of the present invention, the tuning module includes:

[0272] A first determination submodule is used to determine an imaging device currently used for image quality tuning, and to determine a comparison imaging device for the imaging device;

[0273] An acquisition submodule, used to acquire a captured image obtained by using the comparison imaging device to capture an image according to the capture process in the target platform tuning process and the capture reference parameter information;

[0274] An optimization submodule, used to optimize the image quality of the captured image to obtain corresponding image quality optimization parameter information; the image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information;

[0275] A compiling submodule is used to compile the image quality optimization parameter information based on the chip platform type.

[0276] In an embodiment of the present invention, the tuning submodule includes:

[0277] An evaluation unit, used for performing image quality evaluation on the captured image based on automatic segmentation;

[0278] The optimization unit is used to perform image optimization processing on the captured image based on a preset degradation model after the evaluation is passed, so as to obtain the corresponding image quality optimization parameter information.

[0279] In an embodiment of the present invention, the preset platform tuning process is generated in the following manner, and the device further includes:

[0280] A third determination module is used to determine the necessary parameter information required to be input for image tuning; wherein the necessary parameter information is determined according to the operation instruction document of the chip platform; the necessary parameter information includes at least one of the execution order of each tuning module, the type of image test card and shooting precautions;

[0281] A generation module, used to generate an initial platform tuning process for the chip platform based on the necessary parameter information;

[0282] The adjustment module is used to obtain the image tuning project data corresponding to the chip platform, and adjust the initial platform tuning process according to the image tuning project data to generate the corresponding preset platform tuning process.

[0283] In an embodiment of the present invention, the adjustment module includes:

[0284] A calculation submodule is used to calculate the distribution probability of each statistical object in all projects by taking the newly added modules in the platform tuning process corresponding to each project, the shooting card and the shooting conditions used in the image tuning project data as statistical objects in units of projects;

[0285] The updating submodule is used to determine the statistical object corresponding to the distribution probability if the distribution probability is greater than a preset confidence probability, and to update the adjustment object corresponding to the statistical object in the initial platform tuning process.

[0286] In the embodiment of the present invention, the adjustment module further includes:

[0287] A selection submodule, configured to determine a reference project matching the current project from a plurality of projects in the image tuning project data if the distribution probability is not greater than the preset confidence probability;

[0288] The adjustment submodule is used to adjust the initial platform tuning process according to the platform tuning process of the reference project.

[0289] In this embodiment of the present invention, the second determining module includes:

[0290] A second determination submodule is used to determine the digital imaging combination type of the imaging device; the digital imaging combination type is composed of a chip platform type, an image signal processing unit type, an imaging unit type and a lens type;

[0291] The judging submodule is used to judge whether the number of image tuning items corresponding to the digital imaging combination type is greater than a preset number threshold, and determine the shooting reference parameter information according to the judgment result.

[0292] In the embodiment of the present invention, the judgment submodule includes:

[0293] an acquisition unit, configured to acquire a corresponding codec network model if the number is greater than the preset number threshold; wherein the codec network model is obtained by training by taking the historical shooting parameter information of the image tuning project as output and the historical image effect parameter information of the image tuning project as input;

[0294] An input-output unit, used to input the image effect parameter information into the codec network model and output the corresponding shooting reference parameter information;

[0295] The first determining unit is configured to adopt the shooting parameter information in the development code package corresponding to the digital imaging combination type as the shooting reference parameter information if the number is not greater than the preset number threshold.

[0296] In this embodiment of the present invention, the first determining submodule includes:

[0297] A second determining unit is configured to, if the cloud debugging system has an image tuning project of the same digital imaging combination type as the imaging device, use the imaging device of the image tuning project as a candidate comparison imaging device;

[0298] a third determining unit, configured to compare the resolution of the imaging unit adopted by the current image tuning project with the resolution of the imaging unit adopted by the previous image tuning project if the cloud debugging system does not have an image tuning project of the same digital imaging combination type as the imaging device, and use the imaging device of the image tuning project with the least resolution difference as the candidate comparison imaging device;

[0299] A fourth determining unit, configured to determine an image quality evaluation result of the candidate comparison imaging device;

[0300] The fifth determining unit is used to sort the evaluation results and calculate the ranking of the image quality loss of each candidate comparison imaging device, and take the candidate comparison imaging device with the last ranking as the best comparison imaging device, and take the candidate comparison imaging device with the middle ranking as the benchmark comparison imaging device.

[0301] In the embodiment of the present invention, the tuning submodule further includes:

[0302] A judging unit, used to judge whether there is any irregular shooting in the process of acquiring the captured image;

[0303] A first execution unit, configured to execute an operation of feeding back the shooting problem if any;

[0304] The second execution unit is configured to, if not present, execute an image quality assessment operation based on automatic segmentation on the captured image.

[0305] In an embodiment of the present invention, the judging unit includes:

[0306] A grayscale processing subunit, used for performing grayscale processing on the captured image to obtain a grayscale image corresponding to the captured image;

[0307] A stretching subunit, used for performing wide dynamic range stretching on the grayscale image to obtain an enhanced grayscale image;

[0308] A determination subunit, used to determine an image template, and determine an image region matching the image template in the enhanced grayscale image based on an MMSER method;

[0309] The judging subunit is used to judge whether there is any irregular shooting in the process of acquiring the captured image based on the image area.

[0310] In an embodiment of the present invention, the evaluation unit includes:

[0311] A segmentation subunit, configured to segment the captured image based on a preset segmentation model to obtain a corresponding segmentation result; wherein the preset segmentation model is obtained by establishing an image group using an objective picture card scene, a subjective image scene and a corresponding labeling map, and performing segmentation training on the image group;

[0312] A correction subunit, used for correcting the image segmentation area of ​​the captured image according to the segmentation result;

[0313] A comparison subunit, for calculating the objective parameters for the images in the same area of ​​the same group of images, and comparing the calculation results with the objective parameters of the images taken by the corresponding best comparison imaging device one by one;

[0314] The evaluation subunit is used to evaluate the image quality according to the comparison result.

[0315] In an embodiment of the present invention, the tuning unit includes:

[0316] A first tuning subunit, configured to perform color optimization processing on the captured image;

[0317] A second tuning subunit, used for performing Wiener filter optimization processing on the captured image;

[0318] The third tuning subunit is used to perform noise optimization processing on the captured image.

[0319] In the embodiment of the present invention, the compiling submodule includes:

[0320] A compiling unit is used to compile the image quality optimization parameter information in a column vector manner based on the chip platform type.

[0321] In summary, in the embodiment of the present invention, the cloud debugging system can determine the target platform tuning process according to the chip platform type, and perform image quality tuning according to the target platform tuning process. By adopting the above method, the user does not need to learn the knowledge system of image quality tuning for any chip platform. He can obtain the corresponding image quality tuning results by taking a photo and uploading it according to the feedback information in the cloud debugging system, which can greatly reduce the high learning cost caused by chip platform differentiation and improve the efficiency of image quality tuning.

[0322] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0323] An embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each process of the above-mentioned image quality adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0324] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned image quality adjustment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0325] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0326] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0327] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0328] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0329] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0330] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0331] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0332] The above is a detailed introduction to an image quality adjustment method and an image quality adjustment device, an electronic device and a computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for optimizing image quality, characterized in that: Applied to a cloud debugging system, the method includes: Determine the type of chip platform currently used for image quality tuning, and determine the image effect parameter information required to be achieved after the image is adjusted; Selecting a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determining the shooting reference parameter information corresponding to the chip platform type; Based on the image effect parameter information, image quality tuning is performed according to the target platform tuning process and the shooting reference parameter information; The step of performing image quality tuning based on the image effect parameter information and in accordance with the target platform tuning process and the shooting reference parameter information includes: Determining an imaging device currently used for image quality tuning, and determining a comparison imaging device for the imaging device; Acquire a captured image obtained by capturing an image using the comparison imaging device according to the capturing process in the target platform tuning process and the capturing reference parameter information; Performing image quality optimization on the captured image to obtain corresponding image quality optimization parameter information; the image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information; The image quality optimization parameter information is parameter compiled based on the chip platform type.

2. The method according to claim 1, characterized in that The step of optimizing the image quality of the captured image to obtain corresponding image quality optimization parameter information includes: Performing image quality evaluation on the captured image based on automatic segmentation; After the evaluation is passed, the captured image is subjected to image optimization processing based on a preset degradation model to obtain the corresponding image quality optimization parameter information.

3. The method according to claim 1, characterized in that The preset platform tuning process is generated in the following manner: Determine the necessary parameter information required to be input for image tuning; wherein the necessary parameter information is determined according to the operating instructions document of the chip platform; the necessary parameter information includes at least one of the execution order of each tuning module, the type of image test card and shooting precautions; Generating an initial platform tuning process for the chip platform based on the necessary parameter information; The image tuning project data corresponding to the chip platform is obtained, and the initial platform tuning process is adjusted according to the image tuning project data to generate the corresponding preset platform tuning process.

4. The method according to claim 3, characterized in that The adjusting the initial platform tuning process according to the image tuning project data includes: From the image tuning project data, the newly added modules in the platform tuning process corresponding to each project, the shooting cards and shooting conditions used are taken as statistical objects in units of projects, and the distribution probability of each statistical object in all projects is calculated; If the distribution probability is greater than the preset confidence probability, the statistical object corresponding to the distribution probability is determined, and the adjustment object corresponding to the statistical object is updated in the initial platform tuning process.

5. The method according to claim 4, characterized in that The adjusting the initial platform tuning process according to the image tuning project data further includes: If the distribution probability is not greater than the preset confidence probability, determining a reference project matching the current project from the multiple projects of the image tuning project data; The initial platform tuning process is adjusted according to the platform tuning process of the reference project.

6. The method according to claim 1, characterized in that The determining the shooting reference parameter information corresponding to the chip platform type includes: Determine the digital imaging combination type of the imaging device; the digital imaging combination type is composed of a chip platform type, an image signal processing unit type, an imaging unit type and a lens type; It is determined whether the number of image tuning items corresponding to the digital imaging combination type is greater than a preset number threshold, and the shooting reference parameter information is determined according to the determination result.

7. The method according to claim 6, characterized in that The determining the shooting reference parameter information according to the judgment result includes: If the number is greater than the preset number threshold, a corresponding codec network model is obtained; wherein the codec network model is trained by taking the historical shooting parameter information of the image tuning project as output and the historical image effect parameter information of the image tuning project as input; Inputting the image effect parameter information into the codec network model, and outputting the corresponding shooting reference parameter information; If the number is not greater than the preset number threshold, the shooting parameter information in the development code package corresponding to the digital imaging combination type is used as the shooting reference parameter information.

8. The method according to claim 1, characterized in that The determining of the comparison imaging device of the imaging device comprises: If the cloud debugging system has an image tuning project with the same digital imaging combination type as the imaging device, the imaging device of the image tuning project is used as a candidate comparison imaging device; If the cloud debugging system does not have an image tuning project of the same digital imaging combination type as the imaging device, then the resolution of the imaging unit adopted by the current image tuning project is compared with the resolution of the imaging unit adopted by the previous image tuning project, and the imaging device of the image tuning project with the least resolution difference is used as the candidate comparison imaging device; Determining an image quality evaluation result of the candidate comparison imaging device; The evaluation results are sorted, and the ranking of the image quality loss of each candidate comparison imaging device is calculated, the candidate comparison imaging device with the last ranking is used as the best comparison imaging device, and the candidate comparison imaging device with the middle ranking is used as the benchmark comparison imaging device.

9. The method according to claim 2, characterized in that: Before the image quality evaluation based on automatic segmentation is performed on the captured image, the method further includes: Determining whether there is any irregularity in the process of acquiring the captured image; If it exists, the operation of giving feedback on the shooting problem is performed; If not present, an image quality assessment operation based on automatic segmentation is performed on the captured image.

10. The method according to claim 9, characterized in that The determining whether there is any irregular shooting in the process of acquiring the captured image includes: Performing grayscale processing on the captured image to obtain a grayscale image corresponding to the captured image; Performing wide dynamic range stretching on the grayscale image to obtain an enhanced grayscale image; Determine an image template, and determine an image region matching the image template in the enhanced grayscale image based on the MMSER method; Based on the image area, it is determined whether there is any shooting irregularity in the process of acquiring the captured image.

11. The method according to claim 2, characterized in that The performing image quality assessment on the captured image based on automatic segmentation comprises: The captured image is segmented based on a preset segmentation model to obtain a corresponding segmentation result; wherein the preset segmentation model is obtained by establishing an image group using an objective picture card scene, a subjective image scene and a corresponding labeled image, and performing segmentation training on the image group; Correcting the image segmentation area of ​​the captured image according to the segmentation result; For the same group of captured images, the captured images in the same area are calculated based on the objective parameters, and the calculation results are compared one by one with the objective parameters of the captured images taken by the corresponding best comparison imaging device; Image quality evaluation is performed based on the comparison results.

12. The method according to claim 2, characterized in that: The performing image optimization processing on the captured image based on a preset degradation model includes: Performing color optimization processing on the captured image; Performing Wiener filter optimization processing on the captured image; The captured image is subjected to noise optimization processing.

13. The method according to claim 1, characterized in that The compiling the image quality optimization parameter information based on the chip platform type includes: Based on the chip platform type, the image quality optimization parameter information is parameter compiled in a column vector manner.

14. An image quality tuning device, characterized in that: Applied to a cloud debugging system, the device comprises: The first determination module is used to determine the type of chip platform currently used for image quality tuning, and to determine the image effect parameter information required to be achieved after the image is adjusted; A second determination module is used to select a target platform tuning process corresponding to the chip platform type from preset platform tuning processes, and determine the shooting reference parameter information corresponding to the chip platform type; An optimization module, configured to optimize the image quality based on the image effect parameter information, in accordance with the target platform optimization process and the shooting reference parameter information; Wherein, the tuning module includes: A first determination submodule is used to determine an imaging device currently used for image quality tuning, and to determine a comparison imaging device for the imaging device; An acquisition submodule, used to acquire a captured image obtained by using the comparison imaging device to capture an image according to the capture process in the target platform tuning process and the capture reference parameter information; An optimization submodule, used to optimize the image quality of the captured image to obtain corresponding image quality optimization parameter information; the image quality optimization parameter information can enable the captured image after image optimization processing to achieve the image effect corresponding to the image effect parameter information; A compiling submodule is used to compile the image quality optimization parameter information based on the chip platform type.

15. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of an image quality tuning method as described in any one of claims 1 to 13 are implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of an image quality tuning method as described in any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Photographing effect automatic optimization method and device, storage medium and terminal equipment

    CN110266946A

  • Image optimization method, image optimization device, storage medium and electronic equipment

    CN112348738A