WO2022226732A1 - 电子装置和电子装置的图像处理方法 - Google Patents
电子装置和电子装置的图像处理方法 Download PDFInfo
- Publication number
- WO2022226732A1 WO2022226732A1 PCT/CN2021/089980 CN2021089980W WO2022226732A1 WO 2022226732 A1 WO2022226732 A1 WO 2022226732A1 CN 2021089980 W CN2021089980 W CN 2021089980W WO 2022226732 A1 WO2022226732 A1 WO 2022226732A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- image processing
- image signal
- processor
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/60—Image enhancement or restoration using machine learning, e.g. neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4015—Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/60—Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20004—Adaptive image processing
- G06T2207/20008—Globally adaptive
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
Definitions
- the embodiments of the present application relate to the field of electronic technologies, and in particular, to an electronic device and an image processing method for the electronic device.
- smart terminals have integrated more and more functions. Thanks to the development of image processing technology, more and more users like to use smart terminal devices to take photos, record videos, and make video calls.
- the industry has proposed a traditional image processing algorithm and artificial intelligence (AI, Artificial Intelligence) Algorithms are combined to perform image processing techniques.
- AI Artificial Intelligence
- the same network model is usually used to process image signals collected in various scenarios, which increases the complexity of the model structure and the complexity of the model training process.
- this network model is difficult to deploy and implement in the terminal device. Therefore, the conventional technology has not solved the problem that the image processing effect of the conventional ISP is not good in the terminal device.
- the electronic device and the image processing method for the electronic device provided by the present application can improve the image processing effect.
- the present application adopts the following technical solutions.
- an embodiment of the present application provides an electronic device, the electronic device includes: an artificial intelligence AI processor, configured to select a first image processing model from a plurality of image processing models based on scene information, and use the first image processing model.
- An image processing model performs first image signal processing on a first image signal to obtain a second image signal, the first image signal is obtained based on first image data output by an image sensor, and the scene information reflects the Feature classification of the first image signal; an image signal processor ISP, configured to perform second image signal processing on the second image signal to obtain a first image processing result.
- the AI processor can reduce the complexity of the structure of each image processing model by running multiple image processing models to process image data collected in multiple scenarios. For example, each image processing model can use fewer convolutional layers. It can be realized with a smaller number of nodes, making the image processing model easier to deploy and run in terminal devices; because the complexity of the image processing model structure is reduced, the running speed of the AI processor, that is, the image processing speed, can be improved; in addition , since each image processing model is dedicated to processing image data in one scene, compared with using the same image processing model to process image data collected from multiple scenes, the image processing effect can also be improved.
- the first image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction or gamma correction.
- the scene information includes at least one item of first ambient light brightness information and first motion state information of the electronic device.
- the AI processor is further configured to: when the first motion state information is used to instruct the electronic device to move at a speed lower than a preset threshold, based on the image signal of the previous frame and the The image processing result of the image signal of the previous frame is used to process the first image signal.
- the ISP is configured to: select a first parameter from multiple sets of parameters of an image processing algorithm based on the scene information; obtain an updated image processing algorithm based on the first parameter; The second image signal processing is performed on the second image signal using the updated image processing algorithm.
- the second image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction, gamma correction, and chromatic aberration correction Or RGB to YUV domain.
- the ISP is further configured to: receive the first image data from the image sensor, and perform third image signal processing on the first image data to obtain the first image Signal.
- the ISP is further configured to: perform the third image signal processing on the first image data by using the updated image processing algorithm.
- the electronic device further includes: a controller, configured to generate the scene information based on data collected by at least one sensor, where the at least one sensor includes at least one of the following: an acceleration sensor, a gravity sensor sensor and the image sensor.
- the third image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction or gamma correction.
- the multiple image processing models are obtained by training based on multiple training sample sets corresponding to multiple scenarios, wherein each training sample set in the multiple training sample sets includes A preprocessing image signal generated by processing sample image data collected in a corresponding scene, and a reference image signal generated by processing the sample image data.
- an embodiment of the present application provides an image processing method for an electronic device, the image processing method comprising: controlling an artificial intelligence AI processor to select a first image processing model from multiple image processing models based on scene information, and using the The first image processing model performs first image signal processing on the first image signal to obtain a second image signal, the first image signal is obtained based on the first image data output by the image sensor, and the scene information reflects Classification of the features of the first image signal; controlling the image signal processor ISP to perform second image signal processing on the second image signal to obtain a first image processing result.
- controlling the image signal processor ISP to perform second image signal processing on the second image signal to obtain an image processing result includes: based on the scene information, controlling The ISP selects a first parameter from a plurality of sets of parameters for running the image processing algorithm; controls the ISP to obtain an updated image processing algorithm based on the first parameter; controls the ISP to use the updated image A processing algorithm performs the second image signal processing on the second image signal.
- an embodiment of the present application provides an image processing apparatus, the image processing apparatus includes: an AI processing module, configured to select a first image processing model from a plurality of image processing models, and use the first image processing model to The first image signal performs first image signal processing to obtain a second image signal, the first image signal is obtained based on the first image data output by the image sensor, and the scene information reflects the first image signal.
- an AI processing module configured to select a first image processing model from a plurality of image processing models, and use the first image processing model to The first image signal performs first image signal processing to obtain a second image signal, the first image signal is obtained based on the first image data output by the image sensor, and the scene information reflects the first image signal.
- Feature classification an image signal processing module configured to perform second image signal processing on the second image signal to obtain a first image processing result.
- the scene information includes at least one item of first ambient light brightness information and first motion state information of the electronic device.
- the image signal processing module is configured to: based on the scene information, select a first parameter from a plurality of sets of parameters for running an image processing algorithm; and obtain an update based on the first parameter The updated image processing algorithm is used; the second image signal processing is performed on the second image signal by using the updated image processing algorithm.
- the AI processing module is further configured to: when the first motion state information is used to instruct the electronic device to move at a speed lower than a preset threshold, based on the image signal of the previous frame and the The image processing result of the image signal of the previous frame is used to process the first image signal.
- the first image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction or gamma correction.
- the second image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction, gamma correction, and chromatic aberration correction Or RGB to YUV domain.
- the multiple image processing models are obtained by training based on multiple training sample sets corresponding to multiple scenarios, wherein each training sample set in the multiple training sample sets includes A preprocessing image signal generated by processing sample image data collected in a corresponding scene, and a reference image signal generated by processing the sample image data.
- an embodiment of the present application provides an electronic device, the electronic device includes a memory and at least one processor, where the memory is used to store a computer program, and the at least one processor is configured to call the memory to store All or part of the computer program of the above-mentioned second aspect executes the method.
- the at least one processor includes the AI processor and an ISP.
- the electronic device further includes the image sensor.
- an embodiment of the present application provides a system-on-chip, the system-on-chip includes at least one processor and an interface circuit, and the interface circuit is used to obtain a computer program from outside the system-on-chip; the computer program is described by the When executed by at least one processor, it is used to implement the method described in the second aspect.
- the at least one processor includes the AI processor and an ISP.
- an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by at least one processor, is used to implement the second aspect.
- the at least one processor includes the AI processor and an ISP.
- an embodiment of the present application provides a computer program product, which is used to implement the method described in the second aspect above when the computer program product is executed by at least one processor.
- the at least one processor includes the AI processor and an ISP.
- FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 3 is another schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 4 is another schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 5 is another schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 6 is another schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 7 is a schematic flowchart of a training method for an image processing model run in an AI processor provided by an embodiment of the present application
- FIG. 8 is a schematic flowchart of an image processing method provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
- references herein to "first,” or “second,” and similar terms do not denote any order, quantity, or importance, but are merely used to distinguish the different parts. Likewise, words such as “a” or “an” do not denote a quantitative limitation, but rather denote the presence of at least one. Words like “coupled” are not limited to physical or mechanical direct connections, but may include electrical connections, whether direct or indirect, equivalent to communication in a broad sense.
- words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
- the meaning of "plurality” refers to two or more. For example, a plurality of processors refers to two or more processors.
- the electronic device provided by the embodiments of the present application may be an electronic device or a module, chip, chip set, circuit board or component integrated in the electronic device.
- the electronic device may be a user equipment (User Equipment, UE), such as various types of devices such as a mobile phone, a tablet computer, a smart screen, or an image capturing device.
- UE User Equipment
- the electronic device may be provided with an image sensor for collecting image data.
- the electronic device can also be installed with various software applications, such as camera applications, video calling applications, or online video shooting applications, which are used to drive the image sensor to capture images, and the user can use the image sensor to take photos by starting the above various applications. or video. Users can also personalize various image beautification settings through this type of application.
- video calling applications users can select the picture presented to the screen during a video call (such as the presented facial avatar, or the presented background). screen) for automatic adjustment (such as "one-click beautification").
- the image processing service supported by the above-mentioned various applications in the electronic device can trigger the electronic device to process the image data collected by the image sensor, thereby The processed image is presented on the screen of the electronic device to achieve the effect of image beautification.
- the image beautification may include, but is not limited to: improving the brightness of a part of the image or the entire frame, changing the display color of the image, skinning the facial objects presented in the image, adjusting the saturation of the image, adjusting the exposure of the image, adjusting the sharpness of the image, Adjust screen highlights, adjust screen contrast, adjust screen sharpness, or adjust screen clarity, etc.
- the image processing described in this embodiment of the present application may include, but is not limited to, noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction, gamma correction, or red-green-blue (RGB) conversion to YUV ( YCrCb) domain, so as to achieve the above image beautification effect.
- the image displayed on the screen of the electronic device used by user A and the image displayed on the screen of the electronic device used by user B are
- the image of user A on the screen of the electronic device can be an image processed by the electronic device described in the embodiments of the present application, and the processed image will be presented until user A terminates the video call with user B or user A closes the Image processing services.
- FIG. 1 shows a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may specifically be a chip or a chip set or a circuit board equipped with a chip or a chip set, or an electronic device including the circuit board, but it is not used to limit the embodiment.
- the specific electronic device is as described above, which is omitted here.
- the chip or chip set or the circuit board equipped with the chip or chip set can be driven by software.
- the electronic device 100 includes one or more processors, such as an AI processor 101 and an ISP 102 .
- the one or more processors can be integrated in one or more chips, and the one or more chips can be regarded as a chipset, when one or more processors are integrated in the same chip
- the chip is also called a system on a chip (SOC).
- the electronic device 100 also includes one or more other components, such as a memory 104 and an image sensor 105 .
- the memory 104 may be located in the same system-on-chip as the AI processor 101 and the ISP 102 in the electronic device 100 , that is, the memory 104 is integrated in the SOC as shown in FIG. 1 above.
- the AI processor 101 shown in FIG. 1 may include a special neural processor such as a neural network processor (Neural-network Processing Unit, NPU), including but not limited to a convolutional neural network processor, a tensor processor, or a neural processing unit. engine.
- the AI processor can be used alone as a component or integrated in other digital logic devices, including but not limited to: CPU (Central Processing Unit, Central Processing Unit), GPU (Graphics Processing Unit, Graphics Processing Unit) or DSP ( Digital Signal Processor, Digital Signal Processing).
- the CPU, GPU and DSP are all processors within a system-on-chip.
- the AI processor 101 can run multiple image processing models, where the multiple image processing models are used to perform image processing operations in various scenarios.
- One of the image processing models is used to perform image processing operations in one of the scenarios.
- various scenarios include scenes with high external ambient light and scenes with low external ambient light
- the AI processor 101 can run two image processor models, one of which is used to execute a high ambient light scene
- the image processing operations under the image processing model are used to perform image processing operations in low ambient light scenes.
- the foregoing multiple scenarios may be divided based on preset scenario information.
- the scene information may include, but is not limited to, at least one of the following: ambient light brightness information and motion state information of the electronic device.
- the scene information reflects the feature classification of the image signal to be processed by the AI processor.
- the scene information may include ambient light brightness information and motion state information of the electronic device.
- the features of the image signal may include, but are not limited to, noise features, shadow features, white balance features, and the like.
- the feature classification includes motion features and ambient light brightness features, such as low ambient light brightness and high ambient light brightness, or a high-speed motion state and a low-speed motion state. This feature classification can be used to indicate the size of noise in the image signal, or the size of shadows in the image signal, and the like.
- the feature categories of the image signal corresponding to the collected image data are different.
- the AI processor can know the characteristics of the image signal corresponding to the image data through the scene information. Thus, the AI processor 101 can run one of the image processing models to perform image processing based on the scene information.
- Each of the above-mentioned multiple image processing models may perform one or more image processing processes.
- the one or more image processing procedures may include, but are not limited to, noise reduction, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction, gamma correction, or RGB to YUV domain conversion.
- Each image processing model is trained using machine learning methods based on sample image data collected in the corresponding scene. For the training method of the image processing model, refer specifically to the embodiment shown in FIG. 7 . It should be noted that the multiple image processing models run in the AI processor 101 are all used to perform the same image processing operation. For example, a plurality of image processing models executed in the AI processor 101 are used to perform denoising image processing operations.
- the level of noise reduction performed by each image processing model is different. For example, in the high ambient light scene, the noise of the image signal is low, and the noise reduction level performed by the image processing model corresponding to the high ambient light scene is weak; in the low ambient light scene, the noise of the image signal is high, which is different from the low ambient light level.
- the level of noise reduction performed by the image processing model corresponding to the brightness scene is stronger.
- the AI processor 101 can reduce the complexity of each image processing model by running multiple image processing models to process image data collected in multiple scenarios. For example, each image processing model can use Fewer convolution layers and a smaller number of nodes can be implemented, thereby improving the running speed of the AI processor 101, that is, the image processing speed.
- each image processing model is dedicated to processing image data in one scene, the image processing effect can be improved compared with using the same image processing model to process image data collected from multiple scenes.
- the motion state of the electronic device may be divided into multiple motion state intervals according to the order of the motion speed of the electronic device from high to low, for example, the motion state of the electronic device is divided into the first motion state to the fifth motion state Five exercise state intervals.
- the ambient light brightness can be divided into multiple brightness intervals in the order of ambient light brightness from low brightness to high brightness, for example, the ambient light brightness is divided into five brightness intervals from the first brightness to the fifth brightness. Then, any combination of the motion state interval and the brightness interval is performed to obtain various combinations of the motion state and the brightness.
- the motion state of the electronic device is divided into two types: high-speed motion state and low-speed motion state (wherein the stationary state can be divided into low-speed motion state), and the ambient light brightness is divided into two types: low ambient light brightness and high ambient light brightness.
- the motion state of the electronic device is divided into a low-speed motion state and a high-speed motion state
- the ambient light intensity is divided into a low ambient light intensity and a high ambient light intensity
- the AI processor 101 can run four image processing models.
- the image processing model 01 is used to perform image processing operations on the image data collected in the low-speed motion state and the low ambient brightness scene; the image processing model 02 is used to perform image processing on the image data collected in the low-speed motion state and the high ambient brightness scene. Processing operations; image processing model 03 is used to perform image processing operations on image data collected in high-speed motion and low ambient light scenarios; image processing model 04 is used for image data collected in high-speed motion states and high ambient light scenes. Perform image processing operations.
- the AI processor 101 runs one image processing model among the four image processing models to perform image processing based on the scene information. As an example, assuming that the scene information is used to indicate a high-speed motion state and high ambient light brightness, the AI processor 101 runs the image processing model 04 to process the image data.
- the image processing model corresponding to the low-speed motion state may be It is obtained by training the recurrent neural network based on the training samples.
- the AI processor when the AI processor runs the image processing model to process the image signal of the current frame, the AI processor can also process at least one of the image signal of the previous frame and the image processing result of the image signal of the previous frame , and the image signal of the current frame are input to the image processing model, and the image processing model can process the image signal of the current frame with reference to the image signal of the previous frame and the image processing result of the image signal of the previous frame.
- the scene information described in the embodiments of the present application may be delivered to the AI processor 101 by the controller running in the electronic device 100 .
- the AI processor 101 may pre-store a first mapping relationship table between the scene information and the storage address information of the image processing model. After obtaining the scene information, the AI processor 101 may query the first mapping relationship table to obtain the address information of the corresponding image processing model. Finally, the AI processor 101 can load the image processing model from the address indicated by the obtained address information.
- the above-mentioned first mapping relationship table may also be pre-stored in the controller, and after obtaining the scene information, the controller may directly issue the storage address information of the image processing model based on the first mapping relationship table to the AI processor 101.
- the ISP 102 as shown in FIG. 1 can set up multiple hardware modules or run software programs to process images.
- the ISP 102 executes multiple image processing processes by running image processing algorithms, and the multiple image processing processes may include, but are not limited to: tone mapping, contrast enhancement, edge enhancement, noise reduction, color correction, and the like.
- the values of some parameters are adjustable. For example, spatial domain Gaussian kernel parameters and pixel value domain Gaussian kernel parameters in image processing algorithms used to perform the noise reduction process.
- the ISP 102 may preset multiple sets of adjustable parameter values, and the multiple sets of adjustable parameter values correspond to image processing in multiple scenarios. The value of one set of adjustable parameters corresponds to the image processing in one of the scenarios.
- the multiple scenes may also be divided based on scene information.
- the scene information here is the same as the scene information used for setting the image processing model.
- the ISP 102 may select a set of adjustable parameter values based on the scene information, and update the corresponding part of the image processing algorithm based on the selected adjustable parameter values. For example, among the multiple image processing processes performed by ISP102, only the parameters of the image processing algorithm for noise reduction are adjustable, and the parameters of other image processing processes do not need to be adjusted. ISP102 can only update noise reduction based on the selected parameter values. image processing algorithms. Then use the updated image processing algorithm to process the image signal.
- the adjustable parameters in IPS102 Still taking the scene information including ambient light brightness information and the motion state information of electronic equipment, the motion state of electronic equipment including high-speed motion state and low-speed motion state, and the ambient light brightness including low brightness and high brightness as an example, for the adjustable parameters in IPS102 The correspondence between the value and the scene is described. Four sets of adjustable parameter values can be preset in ISP102.
- the value of the first set of adjustable parameters corresponds to the low-speed motion state and low-brightness scene
- the second group of adjustable parameter values corresponds to the low-speed motion state and high-brightness scene
- the third The value of the group of adjustable parameters corresponds to the high-speed motion state and the low-brightness scene
- the value of the fourth group of adjustable parameters corresponds to the high-speed motion state and the high-brightness scene.
- the ISP 102 adopts the values of the fourth group of adjustable parameters to update the relevant image processing algorithms that are run. Then, the image signal is processed using the updated image processing algorithm.
- the ISP 102 may pre-store a second mapping relationship table between the scene information and the value of the adjustable parameter. Based on the scene information, the ISP 102 may query the second mapping relationship table to obtain corresponding adjustable parameter values.
- the AI processor 101 and the ISP 102 may cooperate with each other to process image data collected in the same scene.
- the image data obtained from the image sensor 105 may undergo multiple image processing processes to generate a final image processing result, and the multiple image processing processes may include, but are not limited to: noise reduction, black level correction, shadow correction, White balance correction, demosaicing, chromatic aberration correction, Gamma correction or RGB to YUV conversion.
- the AI processor 101 can execute one or more of the above image processing processes by running the image processing model, that is, corresponding to the above one or more image processing operations, the ISP 102 can also execute the above image processing process by running the image processing algorithm one or more of the processes.
- the entire image processing flow includes a plurality of processing procedures and is assigned to the AI processor 101 and the ISP 102 as tasks.
- the AI processor 101 and the ISP 102 can perform different image processing processes, and the AI processor 101 and the ISP 102 can also perform the same image processing process.
- the image processing performed by the AI processor 101 can be used as an enhancement or supplement to the image processing process.
- the AI processor 101 and the ISP 102 perform the process of noise removal simultaneously, the ISP 102 is used to perform the primary noise removal, and the AI processor 101 is used to perform the secondary noise removal based on the primary noise removal by the ISP 102 .
- the ISP 102 and the AI processor 101 may communicate via an electronic circuit connection.
- the electronic line connection between the AI processor 101 and the ISP 102 is also called a physical connection or disconnection.
- the interrupted connection includes an interrupted signal processing hardware circuit for realizing the functions of transmitting and receiving the interrupted signal and a connection line for transmitting the signal, so as to realize the sending and receiving of the interrupting signal.
- Interrupt signal processing hardware circuits include, but are not limited to, conventional interrupt controller circuits. For the specific implementation scheme of the interrupt signal processing hardware circuit, reference may be made to the relevant description of the interrupt controller in the prior art, which will not be repeated here.
- the specific connection between the AI processor 101 and the ISP 102 and the specific implementation of the cooperation between the AI processor 101 and the ISP 102 to process the image refer to the relevant descriptions of the embodiments shown in FIG. 4 to FIG. 6 .
- the electronic device 100 further includes a controller 103, as shown in FIG. 3 .
- Controller 103 may be an integrated controller.
- the controller 103 may be various digital logic devices or circuits, including but not limited to: CPU, GPU, microcontroller, microprocessor or DSP, and so on.
- the controller 103 may be located in the same system-on-chip as the AI processor 101 and the ISP 102 in the electronic device 100 , that is, the controller 103 is integrated in the SOC as shown in FIG. 1 .
- the controller 103 may also be provided separately from the AI processor 101 , the ISP 102 and the memory 10 , which is not limited in this embodiment.
- the controller 103 and the AI processor 101 may also be integrated into the same logic operation device (eg, CPU), and the same logic operation device can implement the controller 103 and the AI processor 101 described in the embodiments of the present application. function performed.
- the controller 103 runs a software program or software plug-in to drive the controller 103 to obtain the above scene information, and then sends the obtained scene information to the AI processor 101 and the ISP 102 respectively.
- the scene information includes ambient light brightness information
- the ambient light brightness information may be generated by the controller 103 based on the sensitivity information of the image data, wherein the sensitivity information of the image data may be in the ISP 102
- the exposure compensation module is calculated by running the corresponding algorithm.
- the ambient light brightness information can be a bit signal.
- the controller 103 may be preset with multiple sensitivity intervals (eg, low sensitivity intervals and low sensitivity intervals), and the controller 103 may associate the obtained sensitivity information with the thresholds of the multiple sensitivity intervals. The values are compared, and a bit signal is generated based on the comparison result.
- the motion state information of the electronic device may be the acceleration data of the electronic device based on the controller 103 and the three-axis components (X-axis, Y-axis) of the electronic device and Z axis) data.
- the motion state information of the electronic device can be a bit signal.
- the controller 103 can also be preset with a plurality of motion speed intervals (for example, a low motion speed interval and a high motion speed interval).
- the controller 103 can generate motion state data based on the acceleration data and the three-axis component data, and then The motion state data is compared with the threshold values of multiple motion speed intervals, and a bit signal is generated based on the comparison result.
- the above acceleration data may be collected by an acceleration sensor, and the three-axis component data of the electronic device may be collected by a gravity sensor.
- the electronic device 100 may further include an acceleration sensor 106 and a gravity sensor 107, as shown in FIG. 3 .
- the scene information can use a two-bit signal, the first bit indicates the ambient light brightness, and the second bit indicates the motion state of the electronic device. For example, “00" indicates low ambient light level, low motion state; “01” indicates low ambient light level, high motion state; “10” indicates high ambient light level, low motion state; “11” indicates high ambient light level, High sports status. It should be noted that the number of bits used to indicate scene information shown in the embodiments of the present application is only illustrative, and the number of bits may include more bits or less. For example, when the brightness interval includes low brightness, medium brightness, and high brightness, the bits used to indicate the brightness may include three bits.
- an overlapping interval is set between every two adjacent numerical interval segments. Assuming that the scene information currently generated by the controller 103 falls within the overlapping interval, the controller 103 may refer to the scene information generated last time.
- the AI processor 101 can keep the currently running image processing model unchanged, and the ISP 102 can keep the currently running image The processing algorithm remains unchanged; if the difference between the currently generated scene information and the last generated scene information is greater than the preset threshold, the currently generated scene information can be resent to the AI processor 101 and the ISP 102, so that the AI The processor 101 changes the image processing model, and the ISP 102 changes the parameters of the image processing algorithm.
- the AI processor 101 by setting a coincident interval between every two adjacent numerical interval segments, it is possible to prevent frequent switching of the image processing model running in the AI processor 101, and improve the performance of the image processing model running in the AI processor 101. stability.
- the controller 103 may obtain scene information in real time or periodically.
- the scene information indicating the current scene is sent to the ISP 102 and the AI processor 101 respectively in time.
- the AI processor 101 replaces the running image processing model in time based on the currently received scene information, so as to run the replaced image processing model when performing image processing in the next image processing cycle.
- the ISP 102 can also change the parameters of the running image processing algorithm in time based on the currently received scene information, so as to run the image processing algorithm with the updated parameters when performing image processing in the next image processing cycle.
- the electronic device described in the embodiments of the present application can dynamically adjust the adopted image processing model and the parameters of the image processing algorithm run by the ISP 102 based on the scene information, so that the user can use the electronic device described in the embodiments of the present application.
- the scene is changed (for example, from a strong light area to a weak light area or the electronic device is converted from a static state to a moving state)
- the collected images are processed in a targeted manner to improve the image processing effect, which is conducive to improving user experience. .
- FIG. 4 shows a schematic structural diagram of the connection between the ISP 102 and the AI processor 101 provided by an embodiment of the present application through an electronic circuit.
- the ISP 102 may include multiple cascaded image processing modules, the multiple cascaded image processing modules include image processing module 01 , image processing module 02 , image processing module 03 . . .
- image processing module 01 is used to perform image processing of black level correction
- image processing module 02 is used to perform image processing of shading correction
- image processing module 03 is used to perform image processing of shading correction
- image processing module N+1 Used to perform RGB to YUV processing.
- any one of the above-mentioned multiple cascaded image processing modules may be provided with an output port and an input port, the output port is used to provide the AI processor 101 with the image signal A, and the input port For obtaining the image signal B from the AI processor 101, FIG. 4 schematically shows that the image processing module 02 is provided with an output port V po1 , and the image processing module 03 is provided with an input port V pi1 . Based on the structure shown in FIG.
- the electronic device 100 may also be provided with an on-chip RAM, and the on-chip RAM, the ISP 102 and the AI processor 101 are integrated into one chip in the electronic device 100 .
- Both the image signal provided by the AI processor 101 and the image signal provided by the AI processor 101 to the ISP 102 can be stored in the on-chip RAM.
- the on-chip RAM is also used to store intermediate data generated during the running of the AI processor 101 and weight data of each network node in the neural network run by the AI processor 101 .
- the on-chip RAM may be provided in the memory 104 as shown in FIG. 1 or FIG. 3 .
- the ISP 102 obtains image data from the image sensor 105, and the image data is processed by the image processing module 01 and the image processing module 02 in turn to perform shadow correction and white balance correction processing to generate an image signal A and store it in the on-chip RAM.
- the image processing module 02 stores the image signal A in the on-chip RAM and sends an interrupt signal Z1 to the AI processor 101 .
- the AI processor 101 acquires the image signal A from the on-chip RAM in response to the interrupt signal Z1.
- the AI processor 101 performs demosaic processing on the image signal A to generate the image signal B, and stores the image signal B in the on-chip RAM.
- the AI processor 101 stores the image signal B in the on-chip RAM and sends the above-mentioned interrupt signal Z2 to the image processing module 03 .
- the image processing module 03 reads the image signal B from the on-chip RAM in response to the interrupt signal Z2, and the image signal B passes through the image processing module 03..., the image processing module N and the image processing module N+1 in the ISP102 to perform chromatic aberration correction,...Gamma in turn After correction and RGB to YUV domain processing, the final image processing result is generated.
- more image processing modules may be included before the image processing module 01, so that the ISP 102 performs more image processing processes on the image data.
- the image processing process performed by the AI processor 101 is arranged between multiple image processing processes performed by the ISP 102 to replace or supplement some intermediate image processing processes performed by the ISP 102 .
- the AI processor 101 may directly acquire image data from the image sensor 105, and execute the front-end image processing process.
- the AI processor 101 can replace and supplement some image processing modules in the front end of the ISP 102 to perform corresponding image processing processes.
- the AI processor 101 can directly communicate with the image processing modules behind the ISP 102.
- FIG. 5 for the hardware structure of this implementation.
- the connection and interaction between the AI processor 101 and the ISP 102 shown in FIG. 5 are similar to the connection and interaction between the AI processor 101 and the ISP 102 shown in FIG. 4 .
- the relevant descriptions in the embodiment shown in FIG. 4 will not be repeated here.
- an interaction is performed between the AI processor 101 and the ISP 102, and the AI processor 101 performs one image processing process or performs multiple consecutive image processing processes to process image data or image signals. to be processed.
- the AI processor 101 may perform multiple discontinuous image processing processes, that is to say, the AI processor 101 and the ISP 102 may perform image processing alternately, so that both parties can jointly complete the image processing process to The processing result is obtained to replace the image processing process of the traditional ISP.
- the ISP 102 may also include more output ports and input ports. The following description takes the structure of the electronic device shown in FIG. 6 as an example. In FIG.
- the image processing module 02 and the image processing module 03 in the ISP102 are respectively provided with an output port V po1 and an output port V po2
- the image processing module 03 and the image processing module N are respectively provided with an input port V pi1 and an input port V pi2 .
- the output ports of each module are used to provide image signals to the AI processor, and the input ports of each module are used to obtain image signals from the AI processor.
- the image data collected by the image sensor 105 is processed by the image processing module 01 and the image processing module 02 to generate an image signal A, which is provided to the AI processor 101; the AI processor 101 processes the image signal A, generates an image signal B, and provides it to the image processing module 03; the image signal B is processed by the image processing module 03 to generate an image signal C, which is provided to the AI processor 101; the AI processor processes the image signal C to generate an image signal D and provides it to the image processing module N; the image signal D passes through the image processing module.
- the processing of N and image processing module N+1 generates the final image processing result.
- At least one first image processing model executes the first image processing operation
- at least one second image processing model executes the second image processing operation operate.
- the multiple first image processing models are used to process image data collected in different scenarios, and the first image processing operations performed by the multiple first image processing models are the same Image processing operations.
- the multiple second image processing models are used to process image data collected in different scenarios, and the second image processing operations performed by the multiple second image processing models are the same Image processing operations.
- the AI processor 101 can run two first image processing models and two second image processing models.
- one of the first image processing models is used to perform noise reduction processing on image data collected in high ambient light scenes
- the other first image processing model is used to perform noise reduction on image data collected in low ambient light scenes.
- one of the second image processing models is used to perform demosaic processing on image data collected in high ambient light scenarios
- the other first image processing model is used to perform demosaic processing on image data collected in low ambient light scenarios deal with.
- the electronic device further includes an off-chip memory 108, as shown in FIG. 3 .
- the off-chip memory 108 has a larger storage space, it can replace the on-chip RAM to store larger units of image data.
- the off-chip memory 108 may be used to store multiple frames of images, and the multiple frames of images may be the previous frame image, the previous two frames of images or the previous multi-frame images before the current image.
- the off-chip memory 108 may also be used to store the feature map of each frame of the above-mentioned multiple frames of images.
- the feature map is generated after the image processing model running in the AI processor 101 performs operations such as convolution and pooling on the image signal.
- the image signal of the previous frame of the current image signal or the characteristics of the image signal of the previous frame can also be obtained from the off-chip memory 108 and then use the image signal of the previous frame or the feature map of the image signal of the previous frame as reference data to process the current image signal.
- the AI processor 101 can also store the processed image signal in the off-chip memory 108 .
- the off-chip memory 108 may include random access memory (RAM), which may include volatile memory (eg, SRAM, DRAM, DDR (Double Data Rate SDRAM), or SDRAM, etc.) and non-volatile memory.
- the electronic device 100 may further include a communication unit (not shown in the figure), where the communication unit includes but is not limited to a short-range communication unit or a cellular communication unit.
- the short-range communication unit performs information exchange with a terminal located outside the mobile terminal for accessing the Internet by running a short-range wireless communication protocol.
- the short-range wireless communication protocol may include, but is not limited to, various protocols supported by radio frequency identification technology, Bluetooth communication technology protocols, or infrared communication protocols.
- the cellular communication unit is connected to the Internet by running the cellular wireless communication protocol and the wireless access network, so as to realize the information exchange between the mobile communication unit and the server supporting various applications in the Internet.
- the communication unit may be integrated in the same SOC with the AI processor 101 and the ISP 102 described in the above embodiments, or may be provided separately.
- the electronic device 100 may optionally include a bus, an input/output port I/O, a memory controller, and the like.
- the memory controller is used to control the memory 103 and the off-chip memory 108 .
- the bus, the input/output port I/O, and the storage controller, etc. can be integrated into the same SOC with the above-mentioned ISP 102 and AI processor 101 and the like. It should be understood that, in practical applications, the electronic device 100 may include more or less components than those shown in FIG. 1 or FIG. 3 , which is not limited in this embodiment of the present application.
- each image processing model of the multiple image processing models run in the AI processor is based on the sample image data collected in the corresponding scene, using machine learning After the network is trained, it is deployed in the electronic device.
- FIG. 7 shows a schematic flow 700 of the training method of the image processing model running in the AI processor. In conjunction with FIG. 7 , the training of the image processing model is described.
- Step 701 generating multiple training sample sets.
- the step of generating multiple training sample sets may include the following sub-steps: Step 7011 , generating a first model.
- the first model is an end-to-end model, which is generated at the offline end, and the first model can process image data collected from any scene.
- the first model can be obtained by training using traditional model training methods based on training samples.
- Step 7012 based on the divided scenes, collect sample image data in different scenes respectively.
- Step 7013 Input the collected sample image data into the first model respectively to generate reference image signals in different scenarios.
- Step 7014 based on the image processing flow executed by the AI processor, preprocess the sample image data to generate a preprocessed image signal to be input to the image processing model.
- each training sample set corresponds to the scene one by one, and each training sample set includes a preprocessing image signal generated by processing the sample image data collected in the scene, and processing the sample image data collected in the scene using the first model.
- the generated reference image signal is a preprocessing image signal generated by processing the sample image data collected in the scene, and processing the sample image data collected in the scene using the first model.
- the neural network may include, but is not limited to, a recurrent neural network, a convolutional neural network, or a deep neural network.
- a recurrent neural network for the scene where the electronic device is stationary or moving at a low speed, any one of the recurrent neural network, the convolutional neural network and the deep neural network can be trained to obtain the image processing model; for the scene where the electronic device is moving at a high speed, the training volume Integrate any of neural networks and deep neural networks to obtain image processing models.
- a recurrent neural network can be trained to obtain an image processing model.
- the neural network is a convolutional neural network as an example.
- the weight parameters of the network; the weight parameters of the neural network are iteratively adjusted by the back-propagation algorithm and the gradient descent algorithm; when the preset conditions are met, the parameters of the neural network are saved, and the neural network that meets the preset conditions is the image processing model.
- the above preset conditions may include at least one of the following: the loss value of the preset loss function is less than or equal to the preset threshold value and the number of times of iteratively adjusting the neural network is greater than or equal to the preset threshold value.
- the embodiments of the present application further provide an image processing method.
- the image processing method can be applied to the electronic device 100 as shown in any of FIG. 1 , FIG. 3 to FIG. 6 .
- the image processing method provided by the embodiment of the present application will be described below in conjunction with the electronic device 100 shown in FIG. 3 and FIG. Please continue to refer to FIG. 8 .
- FIG. 8 is a process 800 of the image processing method provided by the embodiment of the present application.
- the image processing method includes: Step 801 , the image sensor 105 collects image data, and the collected image data Provided to ISP102.
- Step 802 the controller 103 obtains the sensitivity information of the image data from the ISP 102, obtains the acceleration data of the electronic device from the acceleration sensor, and obtains the three-axis component data of the electronic device from the gravity sensor.
- Step 803 the controller 103 generates motion state data of the electronic device based on the acceleration data and the three-axis component data.
- Step 804 the controller 103 compares the sensitivity information with a plurality of preset sensitivity intervals, compares the motion state data with a plurality of preset motion speed intervals, and based on the comparison results, generates information including ambient light brightness and motion.
- the scene information of the status information is provided to the AI processor 101 and the ISP 102, respectively.
- the ambient light brightness information is used to indicate low ambient light brightness
- the motion state information is used to indicate low-speed motion of the electronic device.
- Step 805 the ISP 102 updates the parameters of the image processing algorithm based on the scene information.
- Step 806 using the updated image processing algorithm to process the image data to generate an image signal A.
- Step 807 based on the scene information, the AI processor 101 selects one image processing model from a plurality of image processing models to process the image signal A to generate the image signal B.
- the ISP 102 processes the image signal B to generate a final image processing result.
- step 804 may not need to provide the scene information to the ISP 102, and step 805 may also be omitted.
- the image processing method described in the embodiments of the present application is applied to the electronic device 100 as shown in FIG.
- step 808 is replaced by the ISP 102 processing the image signal B to generate the image signal C, after step 808 It also includes the steps of the AI processor 101 processing the image signal C to generate the image signal D, and the ISP 102 processing the image signal D to generate the final image processing result.
- the electronic device includes corresponding hardware and/or software modules for executing each function.
- the steps of each example described in conjunction with the embodiments disclosed herein can be implemented in hardware or in a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
- the above-mentioned one or more processors may be divided into functional modules according to the foregoing method examples. For example, different processors may be divided corresponding to each function, or two or more processors of functions may be integrated in in a processor module.
- the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
- FIG. 9 shows a possible schematic diagram of the apparatus 900 involved in the above-mentioned embodiment, and the above-mentioned apparatus can be further expanded.
- the apparatus 900 may include: an AI processing module 901 and an image signal processing module 902 .
- the AI processing module 901 is configured to select a first image processing model from a plurality of image processing models, and use the first image processing model to perform first image signal processing on the first image signal to obtain a second image signal,
- the first image signal is obtained based on the first image data output by the image sensor, and the scene information reflects the feature classification of the first image signal;
- the image signal processing module 902 is used for processing the second image signal A second image signal processing is performed to obtain a first image processing result.
- the scene information includes at least one item of first ambient light brightness information and first motion state information of the electronic device.
- the image signal processing module 902 is configured to: based on the scene information, select a first parameter from a plurality of sets of parameters for running the image processing algorithm; based on the first parameter, obtain The updated image processing algorithm; the second image signal processing is performed on the second image signal by using the updated image processing algorithm.
- the AI processing module 901 is further configured to: when in response to the first motion state information being used to instruct the electronic device to move at a speed lower than a preset threshold, based on the previous frame of image The first image signal is processed according to the image processing result of the signal and the image signal of the previous frame.
- the first image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction or gamma correction.
- the second image signal processing includes at least one of the following processing procedures: noise removal, black level correction, shadow correction, white balance correction, demosaicing, chromatic aberration correction, gamma correction, and chromatic aberration correction Or RGB to YUV domain.
- the multiple image processing models are obtained by training based on multiple training sample sets corresponding to multiple scenarios, wherein each training sample set in the multiple training sample sets includes A preprocessing image signal generated by processing sample image data collected in a corresponding scene, and a reference image signal generated by processing the sample image data.
- the image processing apparatus 900 provided in this embodiment is configured to execute the image processing method executed by the electronic apparatus 100, and can achieve the same effect as the above-mentioned implementation method or apparatus.
- each module corresponding to the above FIG. 9 may be implemented by software, hardware or a combination of the two.
- each module may be implemented in the form of software, corresponding to the corresponding processor corresponding to the module in FIG. 1 , for driving the corresponding processor to work.
- each module may include a corresponding processor and a corresponding driver software, that is, implemented in a combination of software or hardware. Therefore, the image processing apparatus 900 can be considered to logically include the apparatuses shown in FIG. 1 and FIG. 3 to FIG. 6 , and each module includes at least a driver software program of a corresponding function, which is not expanded in this embodiment.
- the image processing apparatus 900 may include at least one processor and a memory, with specific reference to FIG. 1 .
- at least one processor can call all or part of the computer program stored in the memory to control and manage the actions of the electronic device 100, for example, can be used to support the electronic device 100 to perform the steps performed by the above-mentioned modules.
- the memory may be used to support the execution of the electronic device 100 by storing program codes and data, and the like.
- At least one processor can implement or execute various exemplary logic modules described in conjunction with the present disclosure, which can be a combination of one or more microprocessors that implement computing functions, such as, but not limited to, those shown in FIG. 1 .
- the AI processor 101 and the image signal processor 102 are shown.
- the at least one processor may also include other programmable logic devices, transistor logic devices, or discrete hardware components, or the like.
- the memory in this embodiment may include, but is not limited to, the off-chip memory 108 or the memory 104 shown in FIG. 3 .
- This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the computer, the computer executes the above-mentioned relevant method steps to realize the image processing in the above-mentioned embodiments. method.
- This embodiment also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to realize the image processing method in the above-mentioned embodiment.
- the computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, for the beneficial effect that can be achieved, reference may be made to the corresponding method provided above. The beneficial effects will not be repeated here.
- each functional unit in each embodiment of the present application may be integrated into one product, or each unit may physically exist alone, or two or more units may be integrated into one product.
- each functional unit in each embodiment of the present application may be integrated into one product, or each unit may physically exist alone, or two or more units may be integrated into one product.
- FIG. 9 if the above modules are implemented in the form of software functional units and sold or used as independent products, they may be stored in a readable storage medium.
- the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application.
- aforementioned readable storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. that can store program codes. medium.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (12)
- 一种电子装置,其特征在于,包括:人工智能AI处理器,用于基于场景信息,从多个图像处理模型中选择第一图像处理模型,利用所述第一图像处理模型对第一图像信号执行第一图像信号处理,以得到第二图像信号,所述第一图像信号是基于图像传感器输出的第一图像数据获得的,所述场景信息反映了所述第一图像信号的特征分类;图像信号处理器ISP,用于对所述第二图像信号执行第二图像信号处理以得到第一图像处理结果。
- 根据权利要求1所述的电子装置,其特征在于,所述场景信息包括第一环境光亮度信息和所述电子装置的第一运动状态信息中的至少一项。
- 根据权利要求1或2所述的电子装置,其特征在于,所述ISP用于:基于所述场景信息,从图像处理算法的多组参数中选择第一参数;基于所述第一参数,获得更新后的图像处理算法;采用所述更新后的图像处理算法对所述第二图像信号执行所述第二图像信号处理。
- 根据权利要求1-3任一项所述电子装置,其特征在于,所述电子装置还包括:控制器,用于基于至少一个传感器采集的数据,生成所述场景信息,所述至少一个传感器包括以下至少一项:加速度传感器、重力传感器和所述图像传感器。
- 根据权利要求2所述的电子装置,其特征在于,所述AI处理器还用于:当所述第一运动状态信息用于指示电子设备以低于预设阈值的速度运动时,基于前一帧图像信号和所述前一帧图像信号的图像处理结果,利用所述第一图像处理模型处理所述第一图像信号。
- 根据权利要求1-5任一项所述的电子装置,其特征在于,所述第一图像信号处理包括如下至少一个处理过程:噪声消除、黑电平校正、阴影矫正、白平衡校正、去马赛克、色差校正或者伽马矫正。
- 根据权利要求1-6任一项所述的电子装置,其特征在于,所述第二图像信号处理包括如下至少一个处理过程:噪声消除、黑电平矫正、阴影矫正、白平衡校正、去马赛克、色差矫正、伽马矫正、色差校正或者RGB转YUV域。
- 根据权利要求1-7任一项所述的电子装置,其特征在于,所述多个图像处理模型,是基于与多种场景对应的多个训练样本集训练得到的,其中,所述多个训练样本集中的每一个训练样本集包括对相应场景下采集的样本图像数据进行处理所生成的预处理图像信号、以及对所述样本图像数据进行处理所生成的参考图像信号。
- 一种图像处理方法,其特征在于,所述方法包括:基于场景信息,控制人工智能AI处理器从多个图像处理模型中选择第一图像处理模型,利用所述第一图像处理模型对第一图像信号执行第一图像信号处理,以得到第二图像信号,所述第一图像信号是基于图像传感器输出的第一图像数据获得的,所述场景信息反映了所述第一图像信号的特征分类;控制图像信号处理器ISP对所述第二图像信号执行第二图像信号处理以得到第一图像处理结果。
- 根据权利要求9所述的图像处理方法,其特征在于,所述控制图像信号处理器ISP对所述第二图像信号执行第二图像信号处理以得到图像处理结果,包括:基于所述场景信息,控制所述ISP从图像处理算法的多组参数中选择第一参数;控制所述ISP基于所述第一参数,获得更新后的图像处理算法;控制所述ISP采用所述更新后的图像处理算法对所述第二图像信号执行所述第二图像信号处理。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,该计算机程序被至少一个处理器执行时用于实现如权利要求9或10所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品被至少一个处理器执行时用于实现如权利要求9或10所述的方法。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/089980 WO2022226732A1 (zh) | 2021-04-26 | 2021-04-26 | 电子装置和电子装置的图像处理方法 |
| EP21938223.1A EP4297397B1 (en) | 2021-04-26 | 2021-04-26 | Electronic apparatus, and image processing method of electronic apparatus |
| CN202180006443.XA CN115529850B (zh) | 2021-04-26 | 2021-04-26 | 电子装置和电子装置的图像处理方法 |
| US18/493,917 US20240054751A1 (en) | 2021-04-26 | 2023-10-25 | Electronic apparatus and image processing method of electronic apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/089980 WO2022226732A1 (zh) | 2021-04-26 | 2021-04-26 | 电子装置和电子装置的图像处理方法 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/493,917 Continuation US20240054751A1 (en) | 2021-04-26 | 2023-10-25 | Electronic apparatus and image processing method of electronic apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022226732A1 true WO2022226732A1 (zh) | 2022-11-03 |
Family
ID=83847613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/089980 Ceased WO2022226732A1 (zh) | 2021-04-26 | 2021-04-26 | 电子装置和电子装置的图像处理方法 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20240054751A1 (zh) |
| EP (1) | EP4297397B1 (zh) |
| CN (1) | CN115529850B (zh) |
| WO (1) | WO2022226732A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116501365B (zh) * | 2023-06-25 | 2023-11-24 | 快电动力(北京)新能源科技有限公司 | 基于算法平台的资源调用方法、装置及设备 |
| US20260073591A1 (en) * | 2024-09-06 | 2026-03-12 | Samsung Electronics Co., Ltd. | Lightness models for image visual enhancement |
| CN119648596A (zh) * | 2024-11-12 | 2025-03-18 | 广州创龙电子科技有限公司 | 一种基于OpenHarmony标准系统的MIPI摄像头图像信号处理系统及方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103295238A (zh) * | 2013-06-03 | 2013-09-11 | 南京信息工程大学 | 安卓平台上基于roi运动检测的视频实时定位方法 |
| CN109688351A (zh) * | 2017-10-13 | 2019-04-26 | 华为技术有限公司 | 一种图像信号处理方法、装置及设备 |
| CN110266946A (zh) * | 2019-06-25 | 2019-09-20 | 普联技术有限公司 | 一种拍照效果自动优化方法、装置、存储介质及终端设备 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7110455B2 (en) * | 2001-08-14 | 2006-09-19 | General Instrument Corporation | Noise reduction pre-processor for digital video using previously generated motion vectors and adaptive spatial filtering |
| US10970552B2 (en) * | 2017-09-28 | 2021-04-06 | Gopro, Inc. | Scene classification for image processing |
| KR102525159B1 (ko) * | 2018-03-19 | 2023-04-25 | 삼성전자주식회사 | 전자 장치, 전자 장치의 이미지 처리 방법 및 컴퓨터 판독 가능 매체 |
| CN112529775A (zh) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | 一种图像处理的方法和装置 |
| JP7458733B2 (ja) * | 2019-09-30 | 2024-04-01 | キヤノン株式会社 | 画像処理方法、画像処理装置、ロボットシステム、ロボットシステムを用いた物品の製造方法、検査方法、制御プログラム及び記録媒体 |
| EP4198869A4 (en) * | 2020-09-16 | 2023-12-06 | Huawei Technologies Co., Ltd. | ELECTRONIC DEVICE, AND IMAGE PROCESSING METHOD FOR ELECTRONIC DEVICE |
-
2021
- 2021-04-26 CN CN202180006443.XA patent/CN115529850B/zh active Active
- 2021-04-26 EP EP21938223.1A patent/EP4297397B1/en active Active
- 2021-04-26 WO PCT/CN2021/089980 patent/WO2022226732A1/zh not_active Ceased
-
2023
- 2023-10-25 US US18/493,917 patent/US20240054751A1/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103295238A (zh) * | 2013-06-03 | 2013-09-11 | 南京信息工程大学 | 安卓平台上基于roi运动检测的视频实时定位方法 |
| CN109688351A (zh) * | 2017-10-13 | 2019-04-26 | 华为技术有限公司 | 一种图像信号处理方法、装置及设备 |
| CN110266946A (zh) * | 2019-06-25 | 2019-09-20 | 普联技术有限公司 | 一种拍照效果自动优化方法、装置、存储介质及终端设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4297397A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4297397A4 (en) | 2024-04-03 |
| US20240054751A1 (en) | 2024-02-15 |
| EP4297397A1 (en) | 2023-12-27 |
| CN115529850B (zh) | 2025-09-09 |
| EP4297397B1 (en) | 2026-02-25 |
| CN115529850A (zh) | 2022-12-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220207680A1 (en) | Image Processing Method and Apparatus | |
| JP7266672B2 (ja) | 画像処理方法および画像処理装置、ならびにデバイス | |
| CN114514552B (zh) | 电子装置和电子装置的图像处理方法 | |
| US9451173B2 (en) | Electronic device and control method of the same | |
| KR20230098575A (ko) | 프레임 프로세싱 및/또는 캡처 명령 시스템들 및 기법들 | |
| US20240054751A1 (en) | Electronic apparatus and image processing method of electronic apparatus | |
| US20220301278A1 (en) | Image processing method and apparatus, storage medium, and electronic device | |
| CN116709042B (zh) | 一种图像处理方法和电子设备 | |
| WO2022151852A1 (zh) | 图像处理方法、装置、系统、电子设备以及存储介质 | |
| CN116012262A (zh) | 一种图像处理方法、模型训练方法及电子设备 | |
| CN116048323A (zh) | 图像处理方法及电子设备 | |
| CN120186483A (zh) | 图像处理方法、装置、电子设备、可读存储介质和程序产品 | |
| US20240338795A1 (en) | Image processing method and related device thereof | |
| CN115802153B (zh) | 图像拍摄方法、装置、计算机设备及存储介质 | |
| CN117014720A (zh) | 图像拍摄方法、装置、终端、存储介质及产品 | |
| CN108520036A (zh) | 图像的选取方法、装置、存储介质及电子设备 | |
| CN115118886A (zh) | 图像处理芯片、应用处理芯片、电子设备及图像处理方法 | |
| CN116233625A (zh) | 一种图像处理方法、电子设备及芯片 | |
| CN118574008B (zh) | 一种自动曝光方法、终端、存储介质及程序产品 | |
| RU2794062C2 (ru) | Устройство и способ обработки изображения и оборудование | |
| WO2025118960A1 (zh) | 一种图像处理装置、图像处理方法及电子设备 | |
| CN117479009A (zh) | 拍摄图像的方法、装置、终端、存储介质及程序产品 | |
| WO2025147888A1 (zh) | 图像处理方法和装置 | |
| CN117412185A (zh) | 图像生成方法、装置、电子设备和计算机可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21938223 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2021938223 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2021938223 Country of ref document: EP Effective date: 20230921 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 202180006443.X Country of ref document: CN |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2021938223 Country of ref document: EP |