Data processing method, apparatus, device, and storage medium
By combining the path color information of the image acquisition device and the aberration information of the camera, and using a neural network model to perform image aberration correction, noise reduction and de-mosaic, the aberration problem introduced by the optical lens is solved, and the image clarity and imaging quality are improved.
Patent Information
- Application Number
- PCT/CN2026/077860
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-19
- Filing Date
- 2026-02-09
- Publication Date
- 2026-11-26
AI Technical Summary
In existing technologies, aberrations introduced by optical lenses cause blurring and color aberration in RAW domain images, which are difficult to effectively correct through joint denoising and de-mosaic methods, affecting image sharpness and imaging quality.
By using path color information and/or camera aberration information based on image acquisition devices, combined with a pre-trained neural network model, image aberration correction, image denoising, and image de-mosaic can be achieved, thereby improving the accuracy of aberration correction.
By synchronously processing the path color information of the image acquisition device and the camera aberration information, noise residue and false color artifacts are reduced, thereby improving the accuracy of aberration correction and the quality of image processing.
Smart Images

Figure CN2026077860_26112026_PF_FP_ABST
Abstract
Description
A data processing method, apparatus, device, and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202510651141.8, filed with the State Intellectual Property Office of China on May 19, 2025, entitled "A Data Processing Method, Apparatus, Device and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, specifically to a data processing method, apparatus, device, and storage medium. Background Technology
[0003] Due to limitations imposed by optical lenses and the wave properties of light, actual optical systems differ from ideal imaging systems in that they exhibit aberrations. Even if the image acquisition device remains stationary and accurately focuses during shooting, the raw RAW image obtained through the optical lens will still contain blur and chromatic aberration, reducing image sharpness. The aberrations introduced by the optical lens, after processing by the image signal processor (ISP), can easily produce false color artifacts, typically manifesting as bright purple fringing and bright green fringing, severely impacting image quality and user experience.
[0004] In existing technologies, RAW domain denoising and demosaic algorithms are combined into one module, called the joint-denoise-demosaic (JDD) method, which is used to improve the basic image quality of ISP. However, due to the aberration factor introduced by the lens module, the image after RAW domain processing still has problems such as noise residue and interpolation errors, making it difficult to accurately complete aberration correction. Summary of the Invention
[0005] This application provides a data processing method, apparatus, device, and storage medium to achieve image denoising and de-mosaicing, as well as image aberration correction, and to improve the accuracy of aberration correction.
[0006] To achieve the above objectives, this application provides the following technical solution:
[0007] The first aspect of this application provides a data processing method, which includes: acquiring an image to be processed, the image to be processed including an image obtained by an image acquisition device; acquiring path color information and / or camera aberration information of the image acquisition device; and performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or camera aberration information to obtain a processed image.
[0008] The data processing method provided in this application embodiment can be applied to image acquisition devices as part of the image imaging basic module in the image signal processor (ISP) path. It can also be applied to image editing software as a post-processing tool to achieve image denoising and image de-mosaicing, and to achieve aberration correction.
[0009] The image to be processed is a RAW image, which includes the raw data of the light source signal captured by the image sensor and converted into a digital signal. In this embodiment, the number of images to be processed is not limited, and the images to be processed can be single-frame image data or multi-frame image data.
[0010] The path color information is provided by the color transformation modules in the image signal processor (ISP) path. These modules perform color transformations (e.g., white balance, corner shading correction, etc.) on the denoised and de-mosaiced results, generating estimated parameters or intermediate results, which serve as the path color information. Optionally, the path color information may include at least one of the following: RGB three-channel gain values related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM). This application does not limit the specific type of path color information; those skilled in the art can make selections based on the image acquisition device and specific image processing requirements.
[0011] The camera aberration information reflects the optical characteristics of the image acquisition device, including pre-estimated data obtained from camera calibration data and information that can be calculated online by modules in the ISP path. Optionally, the camera aberration information may include at least one of the following: pre-calibrated point spread function (PSF), optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial. This application does not limit the specific type of camera aberration information; those skilled in the art can make the selection based on the actual situation of the image acquisition device and specific image processing requirements.
[0012] In this embodiment, image processing can be performed using only the path color information, or only the camera aberration information, or a combination of path color information and camera aberration information can be used to perform image processing collaboratively.
[0013] In the above implementation scheme, a scheme for joint image aberration correction and image denoising and de-mosaic is provided. Based on the path color information of the image acquisition device and / or the camera aberration information, image aberration correction, image denoising and image de-mosaic are realized simultaneously. This reduces the impact of noise residue, interpolation errors, false textures and other factors that may exist in the joint denoising and de-mosaic methods on the aberration removal effect, reduces the false color artifact problem caused by aberration factors, and improves the accuracy of aberration correction.
[0014] In one possible implementation of the first aspect of this application, image aberration correction, image denoising, and image de-mosaic are performed on the image to be processed based on the path color information and / or camera aberration information to obtain the processed image, including: inputting the path color information and / or camera aberration information and the image to be processed into an image processing model to obtain the processed image, wherein the image processing model is a pre-trained neural network model.
[0015] Specifically, the pre-trained neural network model is a convolutional neural network (CNN).
[0016] It is understood that in the embodiments of this application, image processing can be performed using only path color information, only camera aberration information, or a combination of both. In practical applications, the information used for training the neural network model corresponds to the image processing scenario, depending on the scenario using different information. For example, in a scenario where only path color information is used for image processing, the neural network model is trained using path color information as input; in a scenario where only camera aberration information is used for image processing, the neural network model is trained using camera aberration information as input; and in a scenario where both path color information and camera aberration information are used for image processing, the neural network model is trained using both path color information and camera aberration information as input.
[0017] It should be noted that, regardless of the information used for image processing, the neural network model is a pre-trained model designed to simultaneously perform image aberration correction, image denoising, and image desacrifice. This reduces the impact of noise residue, interpolation errors, and pseudo-textures that may exist in the joint denoising and desacrifice methods on the aberration removal effect, reduces the problem of false color artifacts caused by aberration factors, and improves the accuracy of aberration correction.
[0018] In the above implementation scheme, the image to be processed is processed based on the pre-trained neural network model combined with the path color information and / or camera aberration information. The neural network supports the simultaneous completion of multiple tasks such as image denoising, de-mosaicing, and aberration correction. Furthermore, since the neural network can automatically extract low-level to high-level features of the image through multi-layer convolution operations, it can accurately capture the essential information of the image in denoising, de-mosaicing, and aberration correction by utilizing hierarchical representation capabilities. This provides high-quality image processing capabilities, realizes image denoising and de-mosaicing, completes image aberration correction, and improves the accuracy of aberration correction.
[0019] In one possible implementation of the first aspect of this application, image aberration correction, image denoising, and image de-mosaic are performed on the image to be processed based on path color information and / or camera aberration information to obtain a processed image, including: performing aberration correction on the image to be processed based on camera aberration information to obtain a processed image; or performing color difference compensation on the image to be processed based on path color information to obtain a processed image; or performing aberration correction on the processed image based on camera aberration information to obtain aberration-corrected image features; and performing color difference compensation on the aberration-corrected image features based on path color information to obtain a processed image.
[0020] Specifically, in scenarios where image processing is performed using only path color information, the neural network model uses the image to be processed and path color information as input and outputs the processed image; in scenarios where image processing is performed using only camera aberration information, the neural network model uses the image to be processed and camera aberration information as input and outputs the processed image; in scenarios where image processing is performed in conjunction with path color information and camera aberration information, the neural network model uses the image to be processed, path color information, and camera aberration information as input and outputs the processed image.
[0021] In the above implementation scheme, image aberration correction, image denoising, and image de-mosaic are achieved simultaneously based on the path color information of the image acquisition device and / or the camera aberration information. This reduces the impact of noise residue, interpolation errors, pseudo-textures, and other factors that may exist in the joint denoising and de-mosaic methods on the aberration removal effect, reduces the problem of false color artifacts caused by aberration factors, and improves the accuracy of aberration correction.
[0022] In one possible implementation of the first aspect of this application, the method further includes: preprocessing the image to be processed based on path color information to obtain preprocessed image features; performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on path color information and / or camera aberration information to obtain a processed image, specifically including: performing aberration correction on the preprocessed image features based on camera aberration information to obtain a processed image; or, performing color difference compensation on the preprocessed image features based on path color information to obtain a processed image; or, performing aberration correction on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features; and performing color difference compensation on the aberration-corrected image features based on path color information to obtain a processed image.
[0023] In the above implementation scheme, the image to be processed is preprocessed using the path color information, and the image features in the image to be processed are optimized and adjusted so that the subsequent image processing steps can be carried out based on the optimized and adjusted image features. This helps to reduce the difficulty of subsequent image processing and improve the quality of subsequent image processing.
[0024] In one possible implementation of the first aspect of this application, the image to be processed is preprocessed based on the path color information to obtain preprocessed image features, including: obtaining color difference information based on the image to be processed and the path color information, wherein the color difference information includes information extracted based on the image to be processed and the path color information, or color difference features characterizing the color difference features present in the image to be processed after path color processing by the image acquisition device, wherein the color difference features include color difference location information and / or color difference degree information; and optimizing the feature distribution of the image to be processed based on the color difference information to obtain preprocessed image features.
[0025] In the above implementation scheme, the image to be processed is preprocessed using the path color information. First, color difference information is extracted based on the image to be processed and the path color information. This color difference information can be abstract information extracted by a neural network model, or it can be color difference location information and / or color difference degree information extracted by a neural network model that characterizes the color difference position and / or color difference degree information of the image to be processed after the path color processing of the image acquisition device. Finally, the feature distribution of the image to be processed is optimized using this color difference information. For example, the optimization processing can include feature distribution adjustment and normalization distribution adjustment, etc., which are not limited in this embodiment. In this embodiment, optimizing the feature distribution of the image to be processed using the path color information first helps to reduce the difficulty of subsequent image processing and improve the quality of subsequent image processing.
[0026] In one possible implementation of the first aspect of this application, aberration correction is performed on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features, including: obtaining aberration correction guidance information based on the preprocessed image features and camera aberration information; and performing aberration correction on the preprocessed image features based on the aberration correction guidance information to obtain aberration-corrected image features.
[0027] In the above implementation scheme, aberration correction guidance information is first obtained using camera aberration information and preprocessed image features. It should be understood that aberration correction guidance information includes information for instructing how to perform aberration correction, so that aberration correction can be performed on the preprocessed image features through aberration correction guidance information.
[0028] It should be noted that the above embodiments illustrate aberration correction based on preprocessed image features. Since the preprocessing step is optional, when no preprocessing is performed in the embodiments, image processing operations can be directly performed on the image to be processed. This application does not impose any limitations on the embodiments.
[0029] In one possible implementation of the first aspect of this application, obtaining aberration correction guidance information based on preprocessed image features and camera aberration information includes: obtaining first image features based on preprocessed image features; obtaining aberration features based on camera aberration information; performing feature extraction based on the first image features and aberration features to obtain aberration correction guidance information, wherein the aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0030] In the above implementation scheme, a neural network model is used to extract features from the preprocessed image features and camera aberration information to obtain first image features and aberration features. Then, the first image features and aberration features are input into the neural network model to extract aberration correction guidance information. This aberration correction guidance information is used to indicate the degree of aberration in the image to be processed. This embodiment of the application utilizes camera aberration information and a neural network model to model and obtain aberration correction guidance information that characterizes the degree of aberration in the image to be processed, providing a foundation for subsequent aberration correction processing steps.
[0031] In one possible implementation of the first aspect of this application, aberration correction is performed on the preprocessed image features based on aberration correction guidance information to obtain aberration-corrected image features. This includes: estimating parameters of the aberration correction guidance information to obtain target correction parameters, wherein the target correction parameters include information extracted based on the aberration correction guidance information, or target aberration features of the image to be processed, wherein the target aberration features include the aberration correction intensity of the image to be processed at different spatial locations, and / or the aberration correction direction of the image to be processed at different spatial locations; and performing aberration correction on the preprocessed image features using the target correction parameters to obtain aberration-corrected image features.
[0032] In the above implementation scheme, a neural network model is used to estimate the parameters of the aberration correction guidance information to obtain the target correction parameters. These target correction parameters can be abstract information extracted by the neural network model, or they can be target aberration features extracted by the neural network model, including the aberration correction intensity and / or the aberration correction direction of the image to be processed at different spatial locations. Finally, the target correction parameters are used to correct the aberrations of the preprocessed image features. For example, the target correction parameters are used to identify the artifact regions corresponding to the preprocessed image features, and feature updates are performed based on the target correction parameters to output the aberration-corrected image, thereby achieving aberration correction of the image to be processed.
[0033] In one possible implementation of the first aspect of this application, color difference compensation is performed on the aberration-corrected image features based on the path color information to obtain a processed image, including: predicting a color difference compensation value based on the aberration-corrected image features and the path color information to obtain a color difference compensation value; obtaining a second image feature based on the aberration-corrected image features; and performing color difference compensation on the second image feature using the color difference compensation value to obtain a processed image.
[0034] In the above implementation scheme, the aberration-corrected image features and channel color information are input into the neural network model to predict the color difference compensation value. The color difference compensation value can be the compensation value for the three-channel color difference. The neural network model is then used to extract features from the aberration-corrected image features to obtain the second image features. Finally, the color difference compensation value is applied to the second image features, thereby completing the image processing flow.
[0035] Secondly, embodiments of this application also provide a data processing apparatus, which includes: an acquisition module for acquiring an image to be processed, the image to be processed including an image obtained by an image acquisition device; the acquisition module is further configured to acquire path color information and / or camera aberration information of the image acquisition device; and a processing module for performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or camera aberration information to obtain a processed image.
[0036] In one possible implementation of the second aspect of this application, the processing module is specifically used to: input the path color information and / or camera aberration information and the image to be processed into an image processing model to obtain a processed image, wherein the image processing model is a pre-trained neural network model.
[0037] In one possible implementation of the second aspect of this application, the processing module includes: an aberration correction submodule, used to perform aberration correction on the image to be processed based on camera aberration information to obtain a processed image; or, a chromatic aberration compensation submodule, used to perform chromatic aberration compensation on the image to be processed based on path color information to obtain a processed image; or, an aberration correction submodule, used to perform aberration correction on the image to be processed based on camera aberration information to obtain aberration-corrected image features; and a chromatic aberration compensation submodule, used to perform chromatic aberration compensation on the aberration-corrected image features based on path color information to obtain a processed image.
[0038] In one possible implementation of the second aspect of this application, the processing module further includes: a preprocessing submodule, used to preprocess the image to be processed based on the path color information to obtain preprocessed image features; an aberration correction submodule, specifically used to perform aberration correction on the preprocessed image features based on camera aberration information to obtain a processed image; or, a chromatic aberration compensation submodule, specifically used to perform chromatic aberration compensation on the preprocessed image features based on the path color information to obtain a processed image; or, an aberration correction submodule, specifically used to perform aberration correction on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features; and a chromatic aberration compensation submodule, specifically used to perform chromatic aberration compensation on the aberration-corrected image features based on the path color information to obtain a processed image.
[0039] In one possible implementation of the second aspect of this application, the preprocessing submodule is specifically used for: obtaining color difference information based on the image to be processed and the channel color information, the color difference information including information extracted based on the image to be processed and the channel color information, or characterizing the color difference features of the image to be processed after channel color processing by the image acquisition device, the color difference features including color difference location information and / or color difference degree information; optimizing the feature distribution of the image to be processed based on the color difference information to obtain the preprocessed image features.
[0040] In one possible implementation of the second aspect of this application, the aberration correction submodule is specifically used for: obtaining aberration correction guidance information based on preprocessed image features and camera aberration information; and performing aberration correction on the preprocessed image features based on the aberration correction guidance information to obtain aberration-corrected image features.
[0041] In one possible implementation of the second aspect of this application, obtaining aberration correction guidance information based on preprocessed image features and camera aberration information includes: obtaining first image features based on preprocessed image features; obtaining aberration features based on camera aberration information; performing feature extraction based on the first image features and aberration features to obtain aberration correction guidance information, wherein the aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0042] In one possible implementation of the second aspect of this application, aberration correction is performed on the preprocessed image features based on aberration correction guidance information to obtain aberration-corrected image features. This includes: estimating parameters of the aberration correction guidance information to obtain target correction parameters, wherein the target correction parameters include information extracted based on the aberration correction guidance information, or target aberration features of the image to be processed, wherein the target aberration features include the aberration correction intensity of the image to be processed at different spatial locations, and / or the aberration correction direction of the image to be processed at different spatial locations; and performing aberration correction on the preprocessed image features using the target correction parameters to obtain aberration-corrected image features.
[0043] In one possible implementation of the second aspect of this application, the color difference compensation submodule is specifically used for: predicting the color difference compensation value based on the aberration-corrected image features and the path color information to obtain the color difference compensation value; obtaining the second image features based on the aberration-corrected image features; and performing color difference compensation on the second image features using the color difference compensation value to obtain the processed image.
[0044] In one possible implementation of the second aspect of this application, the camera aberration information includes at least one of the following: pre-calibrated point spread function (PSF) information, optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial.
[0045] In one possible implementation of the second aspect of this application, the channel color information includes at least one of the following: RGB three-channel gain value information related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM).
[0046] In the second aspect of this application, the constituent modules of the data processing apparatus can also perform the steps described in the first aspect and various possible implementations, as detailed in the foregoing description of the first aspect and various possible implementations.
[0047] Thirdly, embodiments of this application provide a server that may include a memory and a processor, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the server performs the method of the first aspect of the embodiments of this application or any possible implementation of the first aspect.
[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect above.
[0049] Fifthly, embodiments of this application provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the method described in the first aspect above.
[0050] In a sixth aspect, embodiments of this application provide a communication device, which may include entities such as terminal devices or chips. The communication device includes: a processor and a memory; the memory is used to store instructions; the processor is used to execute the instructions in the memory, causing the communication device to perform the method as described in any one of the preceding first aspects.
[0051] In a seventh aspect, this application provides a chip system including a processor for supporting a data processing apparatus in implementing the functions involved in the above aspects, such as transmitting or processing data and / or information involved in the above methods.
[0052] In one possible design, the processor is coupled to the memory via an interface.
[0053] In one possible design, the chip system further includes a memory for storing program instructions and data necessary for the data processing device. The chip system may consist of chips or may include chips and other discrete components.
[0054] Eighthly, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the method in the first aspect or any possible implementation of the first aspect.
[0055] Each of the third to eighth aspects corresponds to the first aspect and any one of the implementations of the first aspect, respectively. The technical effects corresponding to any one of the third and eighth aspects can be found in the technical effects corresponding to the first aspect and any one of the implementations of the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0056] Figure 1 is a schematic diagram of an artificial intelligence main framework applied in this application;
[0057] Figure 2a is a schematic diagram of a data processing system architecture provided in this application;
[0058] Figure 2b is a schematic diagram of another data processing system architecture provided in this application;
[0059] Figure 2c is a schematic diagram of the data processing equipment provided in this application;
[0060] Figure 3 is a flowchart illustrating a data processing method provided in this application;
[0061] Figure 4 is a flowchart illustrating another data processing method provided in this application;
[0062] Figure 5 is a flowchart illustrating another data processing method provided in this application;
[0063] Figure 6 is a schematic diagram of the structure of a neural network model provided in this application;
[0064] Figure 7 is a schematic diagram of an aberration correction module structure guided by path color information provided in this application;
[0065] Figure 8 is a schematic diagram of the structure of an aberration correction module guided by path color information on the input side provided in this application;
[0066] Figure 9 is a schematic diagram of the structure of an aberration correction module guided by camera aberration information provided in this application;
[0067] Figure 10 is a schematic diagram of the structure of an aberration information extraction submodule provided in this application;
[0068] Figure 11 is a schematic diagram of an aberration correction submodule provided in this application;
[0069] Figure 12 is a schematic diagram of the structure of an aberration correction module guided by the path color information on the output side provided in this application;
[0070] Figure 13 is a schematic diagram of the structure of a data processing device provided in this application;
[0071] Figure 14 is a schematic diagram of the structure of a data processing device provided in this application. Detailed Implementation
[0072] This application provides a data processing method, apparatus, device, and storage medium to achieve image denoising and de-mosaicing, as well as image aberration correction, and improve the accuracy of aberration correction.
[0073] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0074] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
[0075] First, the overall workflow of an artificial intelligence system is described, as shown in Figure 1. Figure 1 is a structural diagram of the main framework of artificial intelligence. The framework is then elaborated on from two dimensions: the "Intelligent Information Chain" (horizontal axis) and the "IT Value Chain" (vertical axis). The "Intelligent Information Chain" reflects a series of processes from data acquisition to processing. For example, it could be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, and intelligent execution and output. In this process, data undergoes a condensation process of "data—information—knowledge—wisdom." The "IT Value Chain" reflects the value that artificial intelligence brings to the information technology industry, from the underlying infrastructure of human intelligence and information (provided and processed by technology) to the industrial ecosystem of the system.
[0076] (1) Infrastructure
[0077] Infrastructure provides computing power to support artificial intelligence systems, enabling communication with the external world and providing support through a basic platform. This communication occurs through sensors; computing power is provided by intelligent chips, such as hardware acceleration chips (CPUs, NPUs, GPUs, ASICs, or FPGAs); the basic platform includes distributed computing frameworks and related platform guarantees and support, which may include cloud storage and computing, interconnected networks, etc. For example, sensors communicate with the outside world to acquire data, which is then provided to intelligent chips in the distributed computing system provided by the basic platform for computation.
[0078] (2) Data
[0079] The data at the next layer of infrastructure is used to represent the data sources in the field of artificial intelligence. The data involves graphics, images, voice, text, and IoT data from traditional devices, including business data from existing systems and sensor data such as force, displacement, liquid level, temperature, and humidity.
[0080] (3) Data processing
[0081] Data processing typically includes methods such as data training, machine learning, deep learning, search, reasoning, and decision-making.
[0082] Among them, machine learning and deep learning can perform intelligent information modeling, extraction, preprocessing, and training of data by symbolizing and formalizing it.
[0083] Reasoning refers to the process in which, in a computer or intelligent system, the machine thinks and solves problems by simulating human intelligent reasoning, based on reasoning control strategies and using formalized information. Typical functions include search and matching.
[0084] Decision-making refers to the process of making decisions based on intelligent information after reasoning, and it typically provides functions such as classification, sorting, and prediction.
[0085] (4) General ability
[0086] After the data processing mentioned above, the results of the data processing can be used to form some general capabilities, such as algorithms or a general system, for example, translation, text analysis, computer vision processing, speech recognition, image recognition, etc.
[0087] (5) Smart Products and Industry Applications
[0088] Intelligent products and industry applications refer to products and applications of artificial intelligence systems in various fields. They are the encapsulation of overall artificial intelligence solutions, productizing intelligent information decision-making and realizing practical applications. Their application areas mainly include: intelligent terminals, intelligent transportation, intelligent healthcare, autonomous driving, and safe cities.
[0089] The following sections will introduce several application scenarios for this application.
[0090] Figure 2a is a schematic diagram of a data processing system provided in an embodiment of this application. The data processing system includes user equipment and data processing equipment. The user equipment includes smart terminals such as mobile phones, personal computers, or information processing centers. The user equipment is the initiator of image processing; as the initiator of image processing requests, requests are typically initiated by the user through the user equipment.
[0091] The aforementioned data processing equipment can be devices or servers with data processing capabilities, such as cloud servers, network servers, application servers, and management servers. The data processing equipment receives image processing requests from smart terminals through an interactive interface, and then performs image processing methods such as machine learning, deep learning, search, reasoning, and decision-making through a storage device and a data processing processor. The storage device in the data processing equipment can be a general term, including local storage and a database storing historical data. The database can be located on the data processing equipment or on other network servers.
[0092] In the image processing system shown in Figure 2a, the user equipment can receive user instructions. For example, the user equipment can acquire one or more images input / selected by the user, and then send a request to the data processing device, causing the data processing device to perform image processing on the images acquired by the user equipment, thereby obtaining the corresponding processing result for the image. For instance, the user equipment can acquire an image to be processed input by the user, and then send an image processing request to the data processing device, causing the data processing device to perform image processing applications on the image (e.g., image denoising and demosaicing, aberration correction, etc.), thereby obtaining the processed image.
[0093] In Figure 2a, the data processing device can execute the data processing method of the embodiments of this application.
[0094] Figure 2b is another structural schematic diagram of the data processing system provided in the embodiment of this application. In Figure 2b, the user equipment directly serves as the data processing device. The user equipment can directly obtain input from the user and process it directly by the hardware of the user equipment itself. The specific process is similar to that in Figure 2a, and can be referred to the above description, which will not be repeated here.
[0095] In the data processing system shown in Figure 2b, the user equipment can receive instructions from the user. For example, the user equipment can acquire one or more images to be processed selected by the user in the user equipment, and then the user equipment itself performs image processing applications on the image (e.g., image denoising and demosaicing, aberration correction, etc.) to obtain the corresponding processing result for the image.
[0096] In Figure 2b, the user equipment itself can execute the image processing method of the embodiments of this application.
[0097] Figure 2c is a schematic diagram of a data processing device provided in an embodiment of this application.
[0098] The user equipment in Figures 2a and 2b can be local device 301 or local device 302 in Figure 2c. The data processing device in Figure 2a can be execution device 210 in Figure 2c. The data storage system 250 can store the data to be processed by the execution device 210. The data storage system 250 can be integrated on the execution device 210 or set up on the cloud or other network servers.
[0099] The processors in Figures 2a and 2b can perform data training / machine learning / deep learning using neural network models or other models (e.g., support vector machine-based models), and then use the models trained or learned from the data to execute data processing methods, thereby obtaining the corresponding processing results.
[0100] The data processing method provided in this application can be executed on a server or on a terminal device. The terminal device can be a mobile phone, tablet personal computer (TPC), media player, smart TV, laptop computer (LC), personal digital assistant (PDA), personal computer (PC), camera, camcorder, smartwatch, wearable device (WD), or autonomous vehicle, etc., and this application does not limit the specific device to this one.
[0101] This application relates to applications of neural network learning. To better understand the solutions of this application, the relevant terms and concepts that may be involved in this application will be introduced below.
[0102] (1) Neural Network
[0103] A neural network can be composed of neural units, which can be operational units that take xs and an intercept of 1 as inputs, and whose output can be:
[0104] Where s = 1, 2, ..., n, where n is a natural number greater than 1, Ws is the weight of xs, and b is the bias of the neural unit. f is the activation function of the neural unit, used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of this activation function can be used as the input of the next convolutional layer. The activation function can be the sigmoid function. A neural network is a network formed by connecting many of the above-mentioned individual neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the predicted label of the local receptive field, which can be a region composed of several neural units.
[0105] The work of each layer in a neural network can be described by the mathematical expression y = a(Wx + b). From a physical perspective, the work of each layer in a neural network can be understood as transforming the input space (the set of input vectors) to the output space (i.e., from the row space to the column space of a matrix) through five operations on the input space. These five operations include: 1. Dimensionality increase / decrease; 2. Magnification / scaling; 3. Rotation; 4. Translation; 5. "Bending". Operations 1, 2, and 3 are performed by Wx, operation 4 by +b, and operation 5 by a(). The term "space" is used here because the objects being classified are not individual things, but a class of things, and space refers to the set of all individuals of this class of things. Here, W is the weight vector, and each value in this vector represents the weight value of a neuron in that layer of the neural network. This vector W determines the spatial transformation from the input space to the output space mentioned above; that is, the weights W of each layer control how the space is transformed. The purpose of training a neural network is to ultimately obtain the weight matrix of all layers of the trained neural network (a weight matrix formed by the vectors W of many layers). Therefore, the training process of a neural network is essentially about learning how to control the transformation space, and more specifically, learning the weight matrix.
[0106] Because we want the output of the neural network to be as close as possible to the actual predicted value, we can compare the current network's prediction with the desired target value, and then update the weight vector of each layer of the neural network based on the difference between the two (of course, there is usually an initialization process before the first update, that is, pre-configuring the parameters of each layer in the neural network). For example, if the network's prediction is too high, the weight vector is adjusted to make it predict lower, and this adjustment is continued until the neural network can predict the actual target value. Therefore, it is necessary to predefine "how to compare the difference between the predicted value and the target value," which is the loss function or objective function. These are important equations used to measure the difference between the predicted value and the target value. Taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference, so training the neural network becomes the process of minimizing this loss as much as possible.
[0107] (2) Backpropagation algorithm
[0108] Neural networks can employ backpropagation (BP) to correct the parameters of the initial neural network model during training, thereby reducing the reconstruction error loss. Specifically, forward propagation of the input signal to the output generates error loss; this error loss information is then propagated back to update the parameters of the initial neural network model, leading to convergence of the error loss. The backpropagation algorithm is an error-loss-driven backpropagation process aimed at obtaining the optimal parameters of the neural network model, such as the weight matrix.
[0109] (3) RAW images
[0110] RAW images are data processed from the image sensors of digital cameras, scanners, or film scanners. They include raw data that has been converted into digital signals by complementary metal-oxide-semiconductor (CMOS) sensors or charge-coupled device (CCD) image sensors.
[0111] (4) Image denoising (NR)
[0112] Noise interference can be introduced during both image acquisition and image signal transmission. For example, during image acquisition, various noises can be introduced due to the sensor material properties, operating environment, electronic components, and circuit structure, such as thermal noise caused by resistance, channel thermal noise from field-effect transistors, photon noise, and dark current noise. Similarly, during image signal transmission, imperfections in the transmission medium and recording equipment often result in digital images being contaminated by various noises during transmission and recording. Therefore, image denoising is a crucial step in ensuring image quality.
[0113] Image denoising can be divided into traditional denoising schemes and deep learning denoising schemes. Traditional denoising schemes include hardware denoising, spatial domain filtering denoising, and temporal domain filtering denoising.
[0114] (5) Image de-mosaicing
[0115] The goal of the demosaic algorithm is to reconstruct a full-color image from the incomplete samples output from the color channels of the color filter array (CFA), that is, to reconstruct the complete RGB three primary color combination of each pixel. It is also known as the color filter array interpolation method (CFA interpolation) or color reconstruction method.
[0116] Demosaic algorithms are divided into traditional algorithms and deep learning algorithms. Traditional algorithms include basic interpolation, edge detection, residual interpolation, and frequency domain analysis. Deep learning algorithms are further divided into independent demosaic algorithms and joint demosaic algorithms. Joint demosaic algorithms include joint-denoise-demosaic (JDD). RAW domain image denoising and demosaic are fundamental modules in image signal processors (ISPs) and are crucial for ensuring the basic noise clarity of ISP imaging. The joint-denoise-demosaic algorithm JDD is generally implemented based on neural network algorithms.
[0117] (6) Image aberrations
[0118] Also known as chromatic aberration, it refers to the discrepancy between the results obtained from non-paraxial ray tracing and paraxial ray tracing in actual optical systems due to limitations of optical lenses and the wave properties of light. This deviation from the ideal state of Gaussian optics (first-order approximation theory or paraxial rays) means that even with no motion and perfect focus during shooting, the optical lens will still introduce blur and chromatic aberration into the RAW image, reducing image sharpness and producing false color artifacts at high contrast boundaries.
[0119] As described in the background section, existing technologies combine RAW domain denoising and de-mosaic algorithms into a single module to improve the basic imaging quality of the image signal processor (ISP). However, due to the unavoidable introduction of aberrations by the lens module, the image processed in the RAW domain still suffers from noise residue and interpolation errors, making it difficult to accurately correct aberrations. To achieve image denoising and de-mosaicing, as well as complete image aberration correction and improve the accuracy of aberration correction, this application provides a data processing method. Figure 3 is a flowchart illustrating the data processing method provided in this application. As shown in Figure 3, the method includes:
[0120] Step 301: Acquire the image to be processed, which includes the image obtained by the image acquisition device.
[0121] The image to be processed is a RAW image, which includes the raw data of the light source signal captured by the image sensor and converted into a digital signal. In this embodiment, the number of images to be processed is not limited, and the images to be processed can be single-frame image data or multi-frame image data.
[0122] It is understood that when multiple frames of image data are input, the data processing method provided in this application embodiment can be applied to the processing of video data. The data of the previous frame image can be used as historical frame data input. Based on the color differences between multiple frames, the aberration correction and false color artifact removal effects of the video data are improved.
[0123] Step 302: Obtain the path color information and / or camera aberration information of the image acquisition device.
[0124] The path color information is provided by the color transformation modules of the image signal processor (ISP). These modules perform color transformations (e.g., white balance, corner shading correction, etc.) on the denoised and de-mosaiced results, generating estimated parameters or intermediate results, which serve as the path color information. Optionally, the path color information may include at least one of the following: RGB three-channel gain values related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM). This application does not limit the specific type of path color information; those skilled in the art can make selections based on the image acquisition device and specific image processing requirements.
[0125] It should be understood that during the color restoration process, the ISP path will use related modules to predict parameters that reflect the color of the current shooting scene. These parameters will be applied to the image after RAW domain processing to obtain the final RGB image.
[0126] The camera aberration information reflects the optical characteristics of the image acquisition device, including pre-estimated data using camera calibration data and information calculated online by modules in the ISP path. Optionally, the camera aberration information may include at least one of the following: pre-calibrated point spread function (PSF) information, optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial. This application does not limit the specific type of camera aberration information; those skilled in the art can make the selection based on the actual situation of the image acquisition device and specific image processing requirements.
[0127] Step 303: Based on the path color information and / or camera aberration information, perform image aberration correction, image denoising, and image de-mosaic on the image to be processed to obtain the processed image.
[0128] In this embodiment, the image processing performed on the image to be processed includes image aberration correction, image denoising, and image de-mosaic. Therefore, compared to the scheme that first uses the combined denoising and de-mosaic JDD method to denoise and de-mosaic the image, and then performs aberration correction (i.e., image denoising and de-mosaic and aberration correction are performed independently), the combined image aberration correction and image denoising and de-mosaic scheme provided in this embodiment synchronously achieves image aberration correction, image denoising, and image de-mosaic based on the path color information of the image acquisition device and / or camera aberration information. This reduces the impact of noise residue, interpolation errors, and pseudo-textures that may exist in the combined denoising and de-mosaic method on the aberration removal effect, reduces the problem of false color artifacts caused by aberration factors, and improves the accuracy of aberration correction.
[0129] In this embodiment, image processing can be performed using only the path color information, or only the camera aberration information, or a combination of path color information and camera aberration information can be used to perform image processing collaboratively.
[0130] Specifically, the image processing involved in step 303 above can be implemented by an image processing model, which is a pre-trained neural network model.
[0131] Specifically, the pre-trained neural network model is a convolutional neural network (CNN).
[0132] It is understood that in the embodiments of this application, image processing can be performed using only path color information, only camera aberration information, or a combination of both. In practical applications, the information used for training the neural network model corresponds to the image processing scenario, depending on the scenario using different information. For example, in a scenario where only path color information is used for image processing, the neural network model is trained using path color information as input; in a scenario where only camera aberration information is used for image processing, the neural network model is trained using camera aberration information as input; and in a scenario where both path color information and camera aberration information are used for image processing, the neural network model is trained using both path color information and camera aberration information as input.
[0133] It should be noted that, regardless of the information used for image processing, the neural network model is a pre-trained model designed to simultaneously perform image aberration correction, image denoising, and image desacrifice. This reduces the impact of noise residue, interpolation errors, and pseudo-textures that may exist in the joint denoising and desacrifice methods on the aberration removal effect, reduces the problem of false color artifacts caused by aberration factors, and improves the accuracy of aberration correction.
[0134] In the above implementation scheme, the image to be processed is processed based on the pre-trained neural network model combined with the path color information and / or camera aberration information. The neural network supports the simultaneous completion of multiple tasks such as image denoising, de-mosaicing, and aberration correction. Furthermore, since the neural network can automatically extract low-level to high-level features of the image through multi-layer convolution operations, it can accurately capture the essential information of the image in denoising, de-mosaicing, and aberration correction by utilizing hierarchical representation capabilities. This provides high-quality image processing capabilities, realizes image denoising and de-mosaicing, completes image aberration correction, and improves the accuracy of aberration correction.
[0135] Figure 4 is a flowchart illustrating another data processing method provided in this application embodiment. It should be noted that the line segments connecting the path color information and camera aberration information to the pre-trained neural network model in Figure 4 are dashed lines, indicating that the path color information and camera aberration information are optional input information. For example, only the path color information, only the camera aberration information, or both can be input into the neural network model. Correspondingly, the neural network model is trained based on different input information. The description of the pre-trained neural network model can be found in the description of the foregoing embodiments.
[0136] In this embodiment, the path color information and / or camera aberration information and the image to be processed are input into a pre-trained neural network model. The neural network model performs image denoising, image de-mosaicing and aberration correction on the image to be processed to obtain the processed image.
[0137] In one alternative implementation, step 303 specifically includes the following steps:
[0138] The image to be processed is corrected based on camera aberration information to obtain the processed image; or, the image to be processed is compensated for color difference based on path color information to obtain the processed image; or, the image to be processed is corrected based on camera aberration information to obtain aberration-corrected image features; and the aberration-corrected image features are compensated for color difference based on path color information to obtain the processed image.
[0139] Specifically, in scenarios where image processing is performed using only path color information, the neural network model uses the image to be processed and path color information as input and outputs the processed image; in scenarios where image processing is performed using only camera aberration information, the neural network model uses the image to be processed and camera aberration information as input and outputs the processed image; in scenarios where image processing is performed in conjunction with path color information and camera aberration information, the neural network model uses the image to be processed, path color information, and camera aberration information as input and outputs the processed image.
[0140] In this embodiment, image aberration correction, image denoising, and image de-mosaic are synchronously achieved based on the path color information of the image acquisition device and / or the camera aberration information. This reduces the impact of noise residue, interpolation errors, pseudo-textures, and other factors that may exist in the joint denoising and de-mosaic methods on the aberration removal effect, reduces the problem of false color artifacts caused by aberration factors, and improves the accuracy of aberration correction.
[0141] In one optional implementation, the data processing method provided in this application embodiment further includes: preprocessing the image to be processed based on the path color information to obtain preprocessed image features;
[0142] Based on this, step 303 above specifically includes the following steps:
[0143] The preprocessed image features are corrected based on camera aberration information to obtain the processed image; or, the preprocessed image features are compensated for color difference based on path color information to obtain the processed image; or, the preprocessed image features are corrected based on camera aberration information to obtain the aberration-corrected image features; and the aberration-corrected image features are compensated for color difference based on path color information to obtain the processed image.
[0144] This application embodiment utilizes path color information to preprocess the image to be processed, and optimizes and adjusts the image features in the image to be processed, so that subsequent image processing steps can be carried out based on the optimized and adjusted image features, which helps to reduce the difficulty of subsequent image processing and improve the quality of subsequent image processing.
[0145] Based on Figure 4, Figure 5 is a flowchart illustrating another data processing method provided by an embodiment of this application. In Figure 5, the pre-trained neural network model is further elaborated. The neural network model provided by this embodiment may include a first image processing module guided by path color information, a second image processing module guided by camera aberration information, and a third image processing module guided by path color information.
[0146] Optionally, the first image processing module guided by path color information is used to preprocess the image to be processed based on path color information in the above embodiments to obtain preprocessed image features. The second image processing module guided by camera aberration information is used to perform aberration correction on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features. The third image processing module guided by path color information is used to perform color difference compensation on the aberration-corrected image features based on path color information to obtain the processed image.
[0147] Based on Figure 5, Figure 6 shows a schematic diagram of the structure of a neural network model provided in an embodiment of this application.
[0148] The first image processing module guided by path color information and the third image processing module guided by path color information respectively include at least one image restoration network basic module and at least one path color-guided aberration correction module, which are used to receive input image feature information and path color information, cascade to complete image processing, gradually complete image denoising, de-mosaicing and aberration correction, and output the processed image features.
[0149] The second image processing module guided by camera aberration information includes at least one image restoration network basic module and at least one camera aberration-guided aberration correction module. It accepts the input of the preceding module and camera aberration information, cascades to complete image processing, and gradually completes image denoising, de-mosaicing and aberration correction, and outputs the processed image features.
[0150] The image restoration network basic module is used to extract features from the input image, output the features to be corrected, and receive the corrected features to restore the input image.
[0151] It should be noted that the embodiments of this application do not limit the dimensions of image features, camera aberration features, and path color information in the feature extraction and operation process. Technicians can make choices based on actual image processing needs. For example, the dimension of the extracted image features is equal to the dimension of the original image to be processed, or the dimension of the extracted image features is less than the dimension of the original image to be processed, or the dimension of the extracted image features is greater than the dimension of the original image to be processed.
[0152] It should be understood that the embodiments of this application achieve simultaneous processing of image denoising, de-mosaicing, and aberration correction through a neural network model constructed from an image restoration network basic module, a path color-guided aberration correction module, and a camera aberration-guided aberration correction module.
[0153] It should be noted that the image processing module corresponding to the neural network model provided in the above embodiments is only an example. The results of the corresponding module will vary depending on the specific image processing scenario. For instance, in a scenario where image processing is performed using only path color information, the neural network model may only include a third image processing module guided by path color information; in a scenario where image processing is performed using only camera aberration information, the neural network model may only include a second image processing module guided by camera aberration information; in a scenario where image processing is performed collaboratively using both path color information and camera aberration information, the neural network model may include a second image processing module guided by camera aberration information and a third image processing module guided by path color information; and in a scenario where image processing is performed collaboratively using both path color information and camera aberration information based on image preprocessing, the neural network model may include a first image processing module guided by path color information, a second image processing module guided by camera aberration information, and a third image processing module guided by path color information.
[0154] In one optional implementation, the image to be processed is preprocessed based on the path color information to obtain preprocessed image features, including: obtaining color difference information based on the image to be processed and the path color information, the color difference information including information extracted based on the image to be processed and the path color information, or color difference features characterizing the image to be processed after path color processing by the image acquisition device, the color difference features including color difference location information and / or color difference degree information; optimizing the feature distribution of the image to be processed based on the color difference information to obtain preprocessed image features.
[0155] Specifically, the preprocessing of the image to be processed using path color information includes: firstly, extracting color difference information based on the image to be processed and path color information. This color difference information can be abstract information extracted by a neural network model, or it can be color difference location information and / or color difference degree information extracted by a neural network model that characterizes the color difference position and / or color difference degree information of the image to be processed after path color processing by the image acquisition device. Finally, optimizing the feature distribution of the image to be processed using this color difference information, for example, the optimization process can include feature distribution adjustment and normalization distribution adjustment, etc., which are not limited in this embodiment. In this embodiment, optimizing the feature distribution of the image to be processed using path color information helps to reduce the difficulty of subsequent image processing and improve the quality of subsequent image processing.
[0156] Based on Figure 6, Figure 7 shows a schematic diagram of an aberration correction module structure guided by path color information, which mainly includes a color difference information extraction submodule and a color difference optimization submodule. The aberration correction module guided by path color information performs aberration correction on the input and output sides of the neural network model. The module input is path color information and input image features, and the output is the corrected feature map.
[0157] Specifically, the color difference information extraction submodule extracts color difference information based on the path color information and the input image features, and the color difference optimization submodule optimizes and updates the input image features based on the color difference information to obtain the updated image features.
[0158] The input image features are the features to be corrected obtained by feature extraction from the image to be processed through the basic module of the image restoration network.
[0159] The explanation of the pathway color information is the same as the relevant explanation in the previous embodiment, and will not be repeated here.
[0160] It should be understood that the aberration correction module guided by path color information may have different structures at different positions in the neural network model. For example, the first image processing module guided by path color information is mainly used to preprocess the image to be processed on the input side of the entire neural network model, while on the output side of the entire neural network model, it is mainly used to correct the path color parameters of the input image features to improve the color processing accuracy of the neural network model.
[0161] Based on Figure 7, Figure 8 shows a schematic diagram of an aberration correction module guided by input-side path color information. This aberration correction module guided by path color information belongs to the first image processing module guided by path color information.
[0162] As an aberration correction module guided by the input-side path color information, the color difference information extraction submodule and the color difference optimization submodule are constructed from the basic layers of a neural network model, including the input layer, hidden layer, and convolutional layer. The color difference information extraction submodule extracts color difference information based on the features of the image to be processed and the path color information. This color difference information can be abstract information extracted by the neural network model, or it can be color difference location information and / or color difference degree information extracted by the neural network model that can characterize the color difference position information and / or color difference degree information of the image to be processed after the path color processing of the image acquisition device. Finally, the color difference optimization submodule uses this color difference information to optimize the feature distribution of the image to be processed, and obtains updated image features.
[0163] It should be noted that the aberration correction module, guided by the input path color information, can input features of the image to be processed from a single frame or multiple frames after extraction by the image restoration network's basic module. Figure 8 illustrates this with multiple frames as input, but this does not constitute a limitation of the embodiments of this application. It should be understood that, when multiple frames are used as input, the color difference information extracted by the color difference information extraction submodule can also include the difference information of different image frames after path color operations. Based on this difference information, the color difference optimization submodule can more accurately perform color processing on the image in scenarios with multiple frame image inputs.
[0164] In one optional implementation, aberration correction is performed on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features, including: obtaining aberration correction guidance information based on the preprocessed image features and camera aberration information; and performing aberration correction on the preprocessed image features based on the aberration correction guidance information to obtain aberration-corrected image features.
[0165] In the above implementation scheme, aberration correction guidance information is first obtained using camera aberration information and preprocessed image features. It should be understood that aberration correction guidance information includes information for instructing how to perform aberration correction, so that aberration correction can be performed on the preprocessed image features through aberration correction guidance information.
[0166] It should be noted that the above embodiments illustrate aberration correction based on preprocessed image features. Since the preprocessing step is optional, when no preprocessing is performed in the embodiments, image processing operations can be directly performed on the image to be processed. This application does not impose any limitations on the embodiments.
[0167] In one optional implementation, aberration correction guidance information is obtained based on preprocessed image features and camera aberration information, including: obtaining first image features based on preprocessed image features; obtaining aberration features based on camera aberration information; performing feature extraction based on the first image features and aberration features to obtain aberration correction guidance information, wherein the aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0168] In the above implementation scheme, a neural network model is used to extract features from the preprocessed image features and camera aberration information to obtain first image features and aberration features. Then, the first image features and aberration features are input into the neural network model to extract aberration correction guidance information. This aberration correction guidance information is used to indicate the degree of aberration in the image to be processed. This embodiment of the application utilizes camera aberration information and a neural network model to model and obtain aberration correction guidance information that characterizes the degree of aberration in the image to be processed, providing a foundation for subsequent aberration correction processing steps.
[0169] Based on Figure 6, Figure 9 shows a schematic diagram of a camera aberration information-guided aberration correction module, which mainly includes an aberration information extraction submodule and an aberration correction submodule. The camera aberration information-guided aberration correction module uses the preprocessed image features output by the aberration correction module guided by the input path color information, and further performs aberration correction based on the preprocessed image features combined with camera aberration information.
[0170] Specifically, the aberration information extraction submodule extracts aberration correction guidance information based on camera aberration information and input image features. The aberration correction submodule then performs aberration correction on the input image features based on the aberration correction guidance information to obtain the corrected image features.
[0171] The input image features are image features obtained by the aberration correction module guided by the path color information on the input side.
[0172] It should be noted that in scenarios where only camera aberration information is used for image processing, i.e., when there is no aberration correction module guided by the input path color information, the input image features are the features to be corrected obtained by feature extraction of the image to be processed through the basic module of the image restoration network.
[0173] The explanation of camera aberration information is the same as that in the previous embodiments, and will not be repeated here.
[0174] In one optional implementation, aberration correction guidance information is obtained based on preprocessed image features and camera aberration information, including: obtaining first image features based on preprocessed image features; obtaining aberration features based on camera aberration information; performing feature extraction based on the first image features and aberration features to obtain aberration correction guidance information, wherein the aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0175] Specifically, in this embodiment, a neural network model is used to extract features from the preprocessed image features and camera aberration information to obtain first image features and aberration features. Then, the first image features and aberration features are input into the neural network model to extract aberration correction guidance information. This aberration correction guidance information is used to indicate the degree of aberration in the image to be processed. This embodiment utilizes camera aberration information and a neural network model to model and obtain aberration correction guidance information that characterizes the degree of aberration in the image to be processed, providing a foundation for subsequent aberration correction processing steps.
[0176] Based on Figure 9, Figure 10 shows a schematic diagram of an aberration information extraction submodule. This submodule primarily uses camera aberration information to model the severity of aberrations through a neural network, guiding subsequent aberration correction by the neural network.
[0177] Specifically, a neural network is constructed from the basic layers of a neural network model, including an input layer, hidden layers, and convolutional layers, to extract and construct features from camera aberration information and input image features, thereby obtaining aberration features and first image features. Then, aberration correction guidance information is further extracted based on the aberration features and first image features. The aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0178] In one optional implementation, aberration correction is performed on the preprocessed image features based on aberration correction guidance information to obtain aberration-corrected image features. This includes: estimating parameters of the aberration correction guidance information to obtain target correction parameters, which include information extracted based on the aberration correction guidance information or target aberration features of the image to be processed. The target aberration features include the aberration correction intensity of the image to be processed at different spatial locations and / or the aberration correction direction of the image to be processed at different spatial locations; and using the target correction parameters to perform aberration correction on the preprocessed image features to obtain aberration-corrected image features.
[0179] Specifically, in this embodiment, a neural network model is used to estimate the parameters of the aberration correction guidance information to obtain target correction parameters. These target correction parameters can be abstract information extracted by the neural network model, or they can be target aberration features extracted by the neural network model, including the aberration correction intensity and / or the aberration correction direction of the image to be processed at different spatial locations. Finally, the target correction parameters are used to correct the aberrations in the preprocessed image features. For example, the target correction parameters are used to identify artifact regions corresponding to the preprocessed image features, and feature updates are performed based on the target correction parameters to output the aberration-corrected image, thereby achieving aberration correction of the image to be processed.
[0180] Based on Figure 9, Figure 11 shows a schematic diagram of an aberration correction submodule. The aberration correction submodule mainly estimates prior correction parameters based on the extracted aberration correction guidance information, which are used to guide the model in predicting the correction of artifact regions, thereby achieving aberration correction.
[0181] Specifically, the neural network, constructed from the basic layers of the neural network model including the input layer, hidden layer, and convolutional layer, extracts features from the phase correction guidance information to obtain the target correction parameters. Then, the neural network model can further perform aberration correction on the preprocessed image features based on the target correction parameters.
[0182] The input image features for the aberration correction submodule are the preprocessed image features.
[0183] In one optional implementation, color difference compensation is performed on the aberration-corrected image features based on the path color information to obtain a processed image, including: predicting color difference compensation values based on the aberration-corrected image features and the path color information to obtain color difference compensation values; obtaining second image features based on the aberration-corrected image features; and performing color difference compensation on the second image features using the color difference compensation values to obtain the processed image.
[0184] Specifically, in this embodiment, the aberration-corrected image features and channel color information are input into a neural network model to predict a color difference compensation value. This color difference compensation value can be a compensation value for the color difference of the three channels. The neural network model is then used to extract features from the aberration-corrected image features to obtain a second image feature. Finally, the color difference compensation value is applied to the second image feature, thereby completing the image processing flow.
[0185] Based on Figure 7, Figure 12 shows a schematic diagram of an aberration correction module guided by path color information on the output side. This aberration correction module guided by path color information belongs to the third image processing module guided by path color information.
[0186] As an aberration correction module guided by the path color information on the output side, the color difference information extraction submodule predicts the color difference compensation value based on the input image features and path color information. This color difference compensation value can be the compensation value for the three-channel color difference. The neural network is constructed by the basic layers of the neural network model, including the input layer, hidden layer, and convolutional layer, to extract and construct features from the input image features to obtain the second image features. The color difference optimization submodule is used to perform color difference compensation processing on the second image features based on the color difference compensation value to obtain the processed image.
[0187] Among them, the aberration correction module guided by the path color information on the output side corresponds to the input image features of the aberration-corrected image features.
[0188] It should be understood that when image processing is performed using only color path information, i.e., when camera aberration information is not available...
[0189] It should be noted that in scenarios where image processing is performed using only color path information, i.e., when there is no aberration correction module guided by camera aberration information, the input image features are the preprocessed image features output by the aberration correction module guided by the color path information on the input side. In addition, when there is no image feature preprocessing operation, i.e., when there is no aberration correction module guided by the color path information on the input side, the input image features are the features to be corrected obtained by feature extraction of the image to be processed by the basic module of the image restoration network.
[0190] The above is a detailed description of the data processing method provided in the embodiments of this application. The data processing apparatus provided in the embodiments of this application will be described below.
[0191] Figure 13 is a schematic diagram of a data processing device 1300 provided in an embodiment of this application. The device includes: an acquisition module 1301 and a processing module 1302; wherein...
[0192] The acquisition module is used to acquire the image to be processed, which includes images obtained by the image acquisition device;
[0193] The acquisition module is also used to acquire path color information and / or camera aberration information of the image acquisition device;
[0194] The processing module is used to perform image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or camera aberration information, so as to obtain the processed image.
[0195] In one possible implementation, the processing module is specifically used to: input the path color information and / or camera aberration information and the image to be processed into the image processing model to obtain the processed image, wherein the image processing model is a pre-trained neural network model.
[0196] In one possible implementation, the processing module includes: an aberration correction submodule, used to perform aberration correction on the image to be processed based on camera aberration information to obtain a processed image; or, a chromatic aberration compensation submodule, used to perform chromatic aberration compensation on the image to be processed based on channel color information to obtain a processed image; or, an aberration correction submodule, used to perform aberration correction on the image to be processed based on camera aberration information to obtain aberration-corrected image features; and a chromatic aberration compensation submodule, used to perform chromatic aberration compensation on the aberration-corrected image features based on channel color information to obtain a processed image.
[0197] In one possible implementation, the processing module further includes: a preprocessing submodule, used to preprocess the image to be processed based on the path color information to obtain preprocessed image features; an aberration correction submodule, specifically used to perform aberration correction on the preprocessed image features based on camera aberration information to obtain a processed image; or, a chromatic aberration compensation submodule, specifically used to perform chromatic aberration compensation on the preprocessed image features based on the path color information to obtain a processed image; or, an aberration correction submodule, specifically used to perform aberration correction on the preprocessed image features based on camera aberration information to obtain aberration-corrected image features; and a chromatic aberration compensation submodule, specifically used to perform chromatic aberration compensation on the aberration-corrected image features based on the path color information to obtain a processed image.
[0198] In one possible implementation, the preprocessing submodule is specifically used for: obtaining color difference information based on the image to be processed and the path color information, the color difference information including information extracted based on the image to be processed and the path color information, or characterizing the color difference features of the image to be processed after the path color processing by the image acquisition device, the color difference features including color difference location information and / or color difference degree information; optimizing the feature distribution of the image to be processed based on the color difference information to obtain the preprocessed image features.
[0199] In one possible implementation, the aberration correction submodule is specifically used for: obtaining aberration correction guidance information based on preprocessed image features and camera aberration information; and performing aberration correction on the preprocessed image features based on the aberration correction guidance information to obtain aberration-corrected image features.
[0200] In one possible implementation, aberration correction guidance information is obtained based on preprocessed image features and camera aberration information, including: obtaining first image features based on preprocessed image features; obtaining aberration features based on camera aberration information; performing feature extraction based on the first image features and aberration features to obtain aberration correction guidance information, wherein the aberration correction guidance information is used to indicate the degree of aberration in the image to be processed.
[0201] In one possible implementation, aberration correction is performed on the preprocessed image features based on aberration correction guidance information to obtain aberration-corrected image features. This includes: estimating parameters of the aberration correction guidance information to obtain target correction parameters, which include information extracted based on the aberration correction guidance information or target aberration features of the image to be processed. The target aberration features include the aberration correction intensity of the image to be processed at different spatial locations, and / or the aberration correction direction of the image to be processed at different spatial locations; and using the target correction parameters to perform aberration correction on the preprocessed image features to obtain aberration-corrected image features.
[0202] In one possible implementation, the color difference compensation submodule is specifically used for: predicting the color difference compensation value based on the aberration-corrected image features and the path color information to obtain the color difference compensation value; obtaining the second image features based on the aberration-corrected image features; and performing color difference compensation on the second image features using the color difference compensation value to obtain the processed image.
[0203] In one possible implementation, the camera aberration information includes at least one of the following: pre-calibrated point spread function (PSF) information, optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial.
[0204] In one possible implementation, the channel color information includes at least one of the following: RGB three-channel gain value information related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM).
[0205] It should be noted that the information interaction and execution process between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of this application, and the resulting technical effects are the same as those of the method embodiment of this application. For details, please refer to the description in the method embodiment shown above in the embodiment of this application, and it will not be repeated here.
[0206] This application also relates to a data processing device. Figure 14 is a schematic diagram of the data processing device provided in this application embodiment. As shown in Figure 14, the data processing device 700 can specifically be a mobile phone, tablet, laptop, smart wearable device, server, etc., and is not limited here. The data processing device 700 can execute the data processing methods described in the above embodiments. Specifically, the data processing device 700 includes: a receiver 701, a transmitter 702, a processor 703, and a memory 704 (the number of processors 703 in the data processing device 700 can be one or more; Figure 14 shows one processor as an example). The processor 703 may include an application processor 7031 and a communication processor 7032. In some embodiments of this application, the receiver 701, transmitter 702, processor 703, and memory 704 can be connected via a bus or other means.
[0207] Memory 704 may include read-only memory and random access memory, and provides instructions and data to processor 703. A portion of memory 704 may also include non-volatile random access memory (NVRAM). Memory 704 stores processor and operation instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof, wherein the operation instructions may include various operation instructions for implementing various operations.
[0208] Processor 703 controls the operation of the data processing device. In specific applications, the various components of the data processing device are coupled together through a bus system. This bus system includes not only the data bus but also power buses, control buses, and status signal buses. However, for clarity, all buses are referred to as the bus system in the diagram.
[0209] The methods disclosed in the embodiments of this application can be applied to processor 703, or implemented by processor 703. Processor 703 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuits in the hardware of processor 703 or by instructions in software form. Processor 703 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor, or a microcontroller, and may further include application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Processor 703 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 704, and processor 703 reads the information from memory 704 and, in conjunction with its hardware, completes the steps of the above method.
[0210] Receiver 701 can be used to receive input digital or character information, and to generate signal inputs related to the settings and function control of the data processing device. Transmitter 702 can be used to output digital or character information through the first interface; transmitter 702 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; transmitter 702 may also include a display device such as a display screen.
[0211] This application also relates to a computer storage medium storing a program for signal processing, which, when run on a computer, causes the computer to perform steps as performed by the aforementioned execution device, or causes the computer to perform steps as performed by the aforementioned training device.
[0212] This application also relates to a computer program product that stores instructions that, when executed by a computer, cause the computer to perform steps as performed by the aforementioned execution device, or to perform steps as performed by the aforementioned training device.
[0213] The execution device or terminal device provided in this application embodiment can specifically be a chip, which includes a processing unit and a communication unit. The processing unit can be, for example, a processor, and the communication unit can be, for example, an input / output interface, pins, or circuits. The processing unit can execute computer execution instructions stored in the storage unit to cause the chip within the execution device to execute the data processing method described in the above embodiments. Optionally, the storage unit can be a storage unit within the chip, such as a register or cache. Alternatively, the storage unit can be a storage unit located outside the chip within the wireless access device, such as a read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, such as random access memory (RAM).
[0214] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0215] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0216] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0217] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A data processing method, characterized in that, The method includes: Acquire an image to be processed, which includes an image obtained by an image acquisition device; Obtain the path color information and / or camera aberration information of the image acquisition device; Based on the path color information and / or the camera aberration information, image aberration correction, image denoising, and image de-mosaic are performed on the image to be processed to obtain the processed image.
2. The method according to claim 1, characterized in that, The process of performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or the camera aberration information to obtain the processed image includes: The path color information and / or the camera aberration information, along with the image to be processed, are input into an image processing model to obtain the processed image, wherein the image processing model is a pre-trained neural network model.
3. The method according to claim 1 or 2, characterized in that, The process of performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or the camera aberration information to obtain the processed image includes: Based on the camera aberration information, aberration correction is performed on the image to be processed to obtain the processed image; or... Color difference compensation is performed on the image to be processed based on the path color information to obtain the processed image; or... Based on the camera aberration information, the image to be processed is aberration corrected to obtain aberration-corrected image features. Based on the path color information, color difference compensation is performed on the aberration-corrected image features to obtain the processed image.
4. The method according to claim 3, characterized in that, The method further includes: The image to be processed is preprocessed based on the path color information to obtain the preprocessed image features; The process of performing image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or the camera aberration information to obtain the processed image specifically includes: Based on the camera aberration information, aberration correction is performed on the preprocessed image features to obtain the processed image; or... Color difference compensation is performed on the preprocessed image features based on the path color information to obtain the processed image; or... Based on the camera aberration information, the preprocessed image features are aberration corrected to obtain aberration corrected image features. Based on the path color information, color difference compensation is performed on the aberration-corrected image features to obtain the processed image.
5. The method according to claim 4, characterized in that, The preprocessing of the image to be processed based on the path color information to obtain preprocessed image features includes: Color difference information is obtained based on the image to be processed and the channel color information. The color difference information includes information extracted based on the image to be processed and the channel color information, or color difference features that characterize the image to be processed after the channel color processing is performed by the image acquisition device. The color difference features include color difference location information and / or color difference degree information. The feature distribution of the image to be processed is optimized based on the color difference information to obtain the preprocessed image features.
6. The method according to claim 4 or 5, characterized in that, The step of correcting the aberrations of the preprocessed image features based on the camera aberration information to obtain aberration-corrected image features includes: Based on the preprocessed image features and the camera aberration information, aberration correction guidance information is obtained; Based on the aberration correction guidance information, aberration correction is performed on the preprocessed image features to obtain the aberration-corrected image features.
7. The method according to claim 6, characterized in that, The step of obtaining aberration correction guidance information based on the preprocessed image features and the camera aberration information includes: The first image feature is obtained based on the preprocessed image features; Aberration features are obtained based on the camera aberration information; Feature extraction is performed based on the first image features and the aberration features to obtain the aberration correction guidance information, which is used to indicate the degree of aberration in the image to be processed.
8. The method according to claim 6 or 7, characterized in that, The step of correcting aberrations in the preprocessed image features based on the aberration correction guidance information to obtain the aberration-corrected image features includes: The aberration correction guidance information is used to perform parameter estimation to obtain target correction parameters. The target correction parameters include information extracted based on the aberration correction guidance information, or target aberration features of the image to be processed. The target aberration features include the aberration correction intensity of the image to be processed at different spatial locations, and / or the aberration correction direction of the image to be processed at different spatial locations. The aberrations of the preprocessed image features are corrected using the target correction parameters to obtain the aberration-corrected image features.
9. The method according to any one of claims 3 to 7, characterized in that, The step of performing color difference compensation on the aberration-corrected image features based on the path color information to obtain the processed image includes: Based on the aberration-corrected image features and the path color information, the color difference compensation value is predicted to obtain the color difference compensation value. The second image feature is obtained based on the aberration-corrected image feature; The color difference compensation value is used to perform color difference compensation on the second image features to obtain the processed image.
10. The method according to any one of claims 1 to 8, characterized in that, The camera aberration information includes at least one of the following: pre-calibrated point spread function (PSF) information, optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial.
11. The method according to any one of claims 1 to 9, characterized in that, The channel color information includes at least one of the following: RGB three-channel gain value information related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM).
12. A data processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire an image to be processed, which includes an image obtained by an image acquisition device; The acquisition module is also used to acquire the path color information and / or camera aberration information of the image acquisition device; The processing module is used to perform image aberration correction, image denoising, and image de-mosaic on the image to be processed based on the path color information and / or the camera aberration information to obtain the processed image.
13. The apparatus according to claim 12, characterized in that, The processing module is specifically used to: input the path color information and / or the camera aberration information and the image to be processed into an image processing model to obtain the processed image, wherein the image processing model is a pre-trained neural network model.
14. The apparatus according to claim 12 or 13, characterized in that, The processing module includes: An aberration correction submodule is used to correct aberrations in the image to be processed based on the camera aberration information to obtain the processed image; or, a chromatic aberration compensation submodule is used to compensate for chromatic aberrations in the image to be processed based on the path color information to obtain the processed image; or... The aberration correction submodule is used to perform aberration correction on the image to be processed based on the camera aberration information to obtain aberration-corrected image features. The color difference compensation submodule is used to perform color difference compensation on the aberration-corrected image features based on the path color information to obtain the processed image.
15. The apparatus according to claim 14, characterized in that, The processing module further includes: The preprocessing submodule is used to preprocess the image to be processed based on the path color information to obtain preprocessed image features; The aberration correction submodule is specifically used to perform aberration correction on the preprocessed image features based on the camera aberration information to obtain the processed image; or... The color difference compensation submodule is specifically used to perform color difference compensation on the preprocessed image features based on the channel color information to obtain the processed image; or... The aberration correction submodule is specifically used to perform aberration correction on the preprocessed image features based on the camera aberration information to obtain aberration-corrected image features. The color difference compensation submodule is specifically used to perform color difference compensation on the aberration-corrected image features based on the path color information to obtain the processed image.
16. The apparatus according to claim 15, characterized in that, The preprocessing submodule is specifically used for: Color difference information is obtained based on the image to be processed and the channel color information. The color difference information includes information extracted based on the image to be processed and the channel color information, or color difference features that characterize the image to be processed after the channel color processing is performed by the image acquisition device. The color difference features include color difference location information and / or color difference degree information. The feature distribution of the image to be processed is optimized based on the color difference information to obtain the preprocessed image features.
17. The apparatus according to claim 15 or 16, characterized in that, The aberration correction submodule is specifically used for: Based on the preprocessed image features and the camera aberration information, aberration correction guidance information is obtained; Based on the aberration correction guidance information, aberration correction is performed on the preprocessed image features to obtain the aberration-corrected image features.
18. The apparatus according to claim 17, characterized in that, The step of obtaining aberration correction guidance information based on the preprocessed image features and the camera aberration information includes: The first image feature is obtained based on the preprocessed image features; Aberration features are obtained based on the camera aberration information; Feature extraction is performed based on the first image features and the aberration features to obtain the aberration correction guidance information, which is used to indicate the degree of aberration in the image to be processed.
19. The method according to claim 17 or 18, characterized in that, The step of correcting aberrations in the preprocessed image features based on the aberration correction guidance information to obtain the aberration-corrected image features includes: The aberration correction guidance information is used to perform parameter estimation to obtain target correction parameters. The target correction parameters include information extracted based on the aberration correction guidance information, or target aberration features of the image to be processed. The target aberration features include the aberration correction intensity of the image to be processed at different spatial locations, and / or the aberration correction direction of the image to be processed at different spatial locations. The aberrations of the preprocessed image features are corrected using the target correction parameters to obtain the aberration-corrected image features.
20. The method according to any one of claims 15 to 19, characterized in that, The color difference compensation submodule is specifically used for: Based on the aberration-corrected image features and the path color information, the color difference compensation value is predicted to obtain the color difference compensation value. The second image feature is obtained based on the aberration-corrected image feature; The color difference compensation value is used to perform color difference compensation on the second image features to obtain the processed image.
21. The apparatus according to any one of claims 12 to 20, characterized in that, The camera aberration information includes at least one of the following: pre-calibrated point spread function (PSF) information, optical transfer function (OTF), modulation transfer function (MTF), phase transfer function (PTF), line spread function (LSF), edge spread function (ESF), and Zernike polynomial.
22. The apparatus according to any one of claims 12 to 21, characterized in that, The channel color information includes at least one of the following: RGB three-channel gain value information related to automatic white balance (AWB), lens shading correction (LSC) gain map information, and color correction matrix (CCM).
23. A server, characterized in that, The server includes: Memory is used to store computer programs or computer instructions; A processor for executing a computer program or computer instructions stored in the memory, causing the server to perform the method as described in any one of claims 1 to 11.
24. A computer-readable storage medium for storing a computer program, which, when executed, performs the method according to any one of claims 1 to 11.
25. A computer program product comprising instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1 to 11.
26. A chip, the chip comprising a processor and a data interface, the processor reading instructions stored in a memory through the data interface to execute the method as described in any one of claims 1 to 11.
