CN114007009A - Electronic device and image processing method - Google Patents

Electronic device and image processing method Download PDF

Info

Publication number
CN114007009A
CN114007009A CN202010682841.0A CN202010682841A CN114007009A CN 114007009 A CN114007009 A CN 114007009A CN 202010682841 A CN202010682841 A CN 202010682841A CN 114007009 A CN114007009 A CN 114007009A
Authority
CN
China
Prior art keywords
state information
image
image data
processor
image signal
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.)
Granted
Application number
CN202010682841.0A
Other languages
Chinese (zh)
Other versions
CN114007009B (en
Inventor
杨平平
方攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010682841.0A priority Critical patent/CN114007009B/en
Publication of CN114007009A publication Critical patent/CN114007009A/en
Application granted granted Critical
Publication of CN114007009B publication Critical patent/CN114007009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/665Control of cameras or camera modules involving internal camera communication with the image sensor, e.g. synchronising or multiplexing SSIS control signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application provides electronic equipment and an image processing method, wherein an image signal pre-processor is additionally arranged, the image signal pre-processor is used for carrying out state information statistics on original image data acquired by an image sensor to correspondingly obtain first state information, and the image signal pre-processor is used for carrying out pre-processing on the original image data to obtain pre-processed image data; then, the image signal processor carries out statistics of state information on the pre-processed image data again to correspondingly obtain second state information; and finally, the application processor fuses the first state information counted by the image signal preprocessor and the second state information counted by the image signal processor to obtain target state information, and the image acquisition parameters of the image sensor are updated by using the target state information. Therefore, the purpose of improving the accuracy of the automatic configuration of the image acquisition parameters of the electronic equipment can be achieved.

Description

电子设备和图像处理方法Electronic device and image processing method

技术领域technical field

本申请涉及图像处理技术领域,特别涉及一种电子设备和图像处理方法。The present application relates to the technical field of image processing, and in particular, to an electronic device and an image processing method.

背景技术Background technique

目前,拍摄功能的好坏已经成为衡量一台电子设备(比如智能手机、平板电脑等)性能的关键。为了简化用户操作,电子设备通常自动对图像数据的图像采集参数(比如曝光参数,对焦参数等)进行自动配置。然而,在相关技术中,电子设备自动配置图像采集参数的准确度较差。At present, the quality of the shooting function has become the key to measure the performance of an electronic device (such as a smartphone, tablet computer, etc.). In order to simplify the user's operation, the electronic device usually automatically configures the image acquisition parameters (such as exposure parameters, focus parameters, etc.) of the image data. However, in the related art, the accuracy of the automatic configuration of the image acquisition parameters by the electronic device is poor.

发明内容SUMMARY OF THE INVENTION

本申请提供一种电子设备和图像处理方法,可以提升电子设备自动配置图像采集参数的准确度。The present application provides an electronic device and an image processing method, which can improve the accuracy of the electronic device's automatic configuration of image acquisition parameters.

本申请公开一种电子设备,包括:The present application discloses an electronic device, comprising:

图像传感器,用于按照配置的图像采集参数采集图像数据;an image sensor, used to collect image data according to the configured image acquisition parameters;

图像信号前处理器,用于统计所述图像数据中用于更新所述图像传感器的图像采集参数的状态信息,得到第一状态信息,并对所述图像数据进行前处理,得到前处理图像数据;An image signal pre-processor, configured to count state information in the image data for updating the image acquisition parameters of the image sensor, obtain first state information, and perform pre-processing on the image data to obtain pre-processed image data ;

图像信号处理器,用于统计所述前处理图像数据中用于更新所述图像传感器的图像采集参数的状态信息,得到第二状态信息;an image signal processor, configured to count state information in the pre-processed image data for updating the image acquisition parameters of the image sensor to obtain second state information;

应用处理器,用于融合所述第一状态信息和所述第二状态信息得到目标状态信息,并根据所述目标状态信息更新所述图像传感器的图像采集参数。An application processor, configured to fuse the first state information and the second state information to obtain target state information, and update image acquisition parameters of the image sensor according to the target state information.

本申请实施例还公开一种图像处理方法,适用于电子设备,所述电子设备包括图像传感器、图像信号前处理器、图像信号处理器以及应用处理器,所述图像处理方法包括:The embodiment of the present application also discloses an image processing method, which is suitable for electronic equipment, where the electronic equipment includes an image sensor, an image signal preprocessor, an image signal processor, and an application processor, and the image processing method includes:

通过所述图像传感器按照配置的图像采集参数采集图像数据;Collect image data by the image sensor according to the configured image acquisition parameters;

通过所述图像信号前处理器统计所述图像数据中用于更新所述图像传感器的图像采集参数的状态信息,得到第一状态信息,并对所述图像数据进行前处理,得到前处理图像数据;The image signal pre-processor counts the state information in the image data for updating the image acquisition parameters of the image sensor to obtain first state information, and pre-processes the image data to obtain pre-processed image data ;

通过所述图像信号处理器统计所述前处理图像数据中用于更新所述图像传感器的图像采集参数的状态信息,得到第二状态信息;Obtain second state information by counting the state information in the pre-processed image data for updating the image acquisition parameters of the image sensor by the image signal processor;

通过所述应用处理器融合所述第一状态信息和所述第二状态信息得到目标状态信息,并根据所述目标状态信息更新所述图像传感器的图像采集参数。The application processor fuses the first state information and the second state information to obtain target state information, and updates the image acquisition parameters of the image sensor according to the target state information.

本申请实施例中,额外增加了图像信号前处理器,通过图像信号前处理器对图像传感器采集的原始图像数据进行状态信息的统计,相应得到第一状态信息,并由图像信号前处理器对原始图像数据进行前处理,得到前处理图像数据;然后再由图像信号处理器对前处理图像数据再次进行状态信息的统计,相应得到第二状态信息;最后由应用处理器对图像信号前处理器统计的第一状态信息和图像信号处理器统计的第二状态信息进行融合,得到目标状态信息,并利用该目标状态信息更新图像传感器的图像采集参数。由此,能够达到提高电子设备自动配置图像采集参数准确度的目的。In the embodiment of the present application, an image signal pre-processor is additionally added, and the image signal pre-processor performs state information statistics on the raw image data collected by the image sensor, correspondingly obtains the first state information, and the image signal pre-processor analyzes the state information. The original image data is pre-processed to obtain pre-processed image data; then the image signal processor performs state information statistics on the pre-processed image data again, and correspondingly obtains second state information; finally, the application processor performs pre-processing on the image signal. The first state information of the statistics and the second state information of the image signal processor are fused to obtain the target state information, and the image acquisition parameters of the image sensor are updated by using the target state information. In this way, the purpose of improving the accuracy of automatically configuring the image acquisition parameters of the electronic device can be achieved.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments.

图1为本申请实施例提供的电子设备的第一种结构示意图。FIG. 1 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application.

图2为图1中图像信号前处理器的结构示意图。FIG. 2 is a schematic structural diagram of the image signal pre-processor in FIG. 1 .

图3为本申请实施例中涉及的数据流向示意图。FIG. 3 is a schematic diagram of a data flow involved in an embodiment of the present application.

图4为本申请实施例提供的电子设备的第二种结构示意图。FIG. 4 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.

图5为图4中图像信号前处理器和应用处理器的连接示意图。FIG. 5 is a schematic diagram of the connection between the image signal pre-processor and the application processor in FIG. 4 .

图6为本申请实施例提供的图像处理方法的流程示意图。FIG. 6 is a schematic flowchart of an image processing method provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供的技术方案可以应用于各种需要进行数据通信的场景,本申请实施例对此并不限定。The technical solutions provided in the embodiments of the present application can be applied to various scenarios where data communication is required, which is not limited in the embodiments of the present application.

请参照图1,图1为本申请实施例提供的电子设备100的第一种结构示意图。该电子设备100比如,智能手机、平板电脑、掌上电脑、笔记本电脑等移动电子设备,或者台式电脑、服务器等非移动电子设备,其包括图像传感器110、图像信号前处理器120、图像信号处理器130以及应用处理器140。Please refer to FIG. 1 , which is a schematic diagram of a first structure of an electronic device 100 according to an embodiment of the present application. The electronic device 100 is, for example, a mobile electronic device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, etc., or a non-mobile electronic device such as a desktop computer and a server, which includes an image sensor 110, an image signal preprocessor 120, and an image signal processor. 130 and an application processor 140.

图像传感器110或称感光元件,是一种将光信号转换成电信号的器件,与光敏二极管、光敏三极管等“点”光源的光敏元件相比,图像传感器110将其感受到的光像分成多个小单元,进而转换为可用的电信号,得到原始的图像数据。应当说明的是,本申请实施例中对图像传感器110的类型不做限制,可以为互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)图像传感器,也可以为电荷藕合器件(Charge CoupledDevice,CCD)图像传感器等。The image sensor 110, or photosensitive element, is a device that converts optical signals into electrical signals. Compared with the photosensitive elements of "point" light sources such as photodiodes and phototransistors, the image sensor 110 divides the light image it feels into many parts. A small unit is then converted into a usable electrical signal to obtain the original image data. It should be noted that the type of the image sensor 110 is not limited in the embodiments of the present application, and it may be a complementary metal-oxide-semiconductor (CMOS) image sensor, or a charge-coupled device (Charge Coupled Device) , CCD) image sensor, etc.

图像信号处理器130能够对图像传感器110采集的图像数据进行处理,提升图像数据的质量。比如,图像信号处理器130能够对图像数据做白平衡校正、强光抑制、背光补偿、色彩增强、镜头阴影校正等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The image signal processor 130 can process the image data collected by the image sensor 110 to improve the quality of the image data. For example, the image signal processor 130 can perform optimization processing methods such as white balance correction, strong light suppression, backlight compensation, color enhancement, lens shadow correction, etc. on the image data. Of course, optimization processing methods not listed in this application may also be included.

图像信号前处理器120相较于图像信号处理器130,其在图像信号处理器130对图像数据进行处理之前进行一些差异化处理,可以看做是图像信号处理器130进行处理之前的预处理,比如坏点校正处理、时域降噪处理、3D降噪处理、线性化处理以及黑电平校正处理等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。Compared with the image signal processor 130, the image signal preprocessor 120 performs some differentiated processing before the image signal processor 130 processes the image data, which can be regarded as the preprocessing before the image signal processor 130 performs processing. For example, optimization processing methods such as dead pixel correction processing, time-domain noise reduction processing, 3D noise reduction processing, linearization processing, and black level correction processing, of course, may also include optimization processing methods not listed in this application.

应用处理器140为通用的处理器,比如基于ARM架构设计的处理器。。The application processor 140 is a general-purpose processor, such as a processor designed based on the ARM architecture. .

在本申请实施例中,图像传感器110与图像信号前处理器120连接,用于按照配置的图像采集参数采集图像数据,并将采集到的图像数据传输给图像信号前处理器120。应当说明的是,图像传感器110采集到的图像数据为RAW格式的图像数据,并将采集到的原始RAW格式的图像数据传输给图像信号前处理器120。In this embodiment of the present application, the image sensor 110 is connected to the image signal pre-processor 120 for collecting image data according to the configured image acquisition parameters, and transmitting the collected image data to the image signal pre-processor 120 . It should be noted that the image data collected by the image sensor 110 is image data in RAW format, and the collected image data in original RAW format is transmitted to the image signal pre-processor 120 .

其中,图像采集参数包括但不限于曝光参数、对焦参数以及白平衡参数等。比如,在开始进行图像数据的采集之前,应用处理器140会将初始的曝光参数配置到图像传感器110,使得图像传感器110按照初始的曝光参数采集图像数据,并将采集到的图像数据传输给图像信号前处理器120。The image acquisition parameters include, but are not limited to, exposure parameters, focus parameters, and white balance parameters. For example, before starting to collect image data, the application processor 140 will configure initial exposure parameters to the image sensor 110, so that the image sensor 110 collects image data according to the initial exposure parameters, and transmits the collected image data to the image sensor 110. Signal preprocessor 120 .

应当说明的是,本申请实施例中对图像信号前处理器120和图像传感器110的连接方式不做具体限定,比如,图像信号前处理器120与图像传感器110之间通过MIPI(MobileIndustry Processor Interface,移动行业处理器接口)连接。It should be noted that the connection mode between the image signal pre-processor 120 and the image sensor 110 is not specifically limited in the embodiments of the present application. For example, the MIPI (Mobile Industry Processor Interface, Mobile Industry Processor Interface) connection.

其中,图像传感器110在向图像信号前处理器120传输图像数据时,将图像数据封装为多个图像数据包,以图像数据包的形式传输至图像信号前处理器。示例性的,图像数据包包括包头字段、包尾字段以及数据字段,其中,包头字段和包尾字段用于填充一些必要的控制信息,比如同步信息、地址信息、差错控制信息等,数据字段则用于填充实际的图像内容。Wherein, when the image sensor 110 transmits image data to the image signal pre-processor 120, the image data is encapsulated into a plurality of image data packets, and transmitted to the image signal pre-processor in the form of image data packets. Exemplarily, the image data packet includes a header field, a trailer field and a data field, wherein the header field and the trailer field are used to fill in some necessary control information, such as synchronization information, address information, error control information, etc., and the data field is Used to populate the actual image content.

另一方面,图像信号前处理器120对来自于图像传感器110的图像数据进行接收。此外,图像信号前处理器120还与图像信号处理器130连接,其中,本申请实施例中对图像信号处理器130与图像信号前处理器120的连接方式不做具体限定,比如,图像信号处理器130与图像信号前处理器120之间也可以通过MIPI连接。On the other hand, the image signal preprocessor 120 receives image data from the image sensor 110 . In addition, the image signal pre-processor 120 is also connected to the image signal processor 130, wherein the connection mode of the image signal processor 130 and the image signal pre-processor 120 is not specifically limited in the embodiment of the present application, for example, the image signal processing The connection between the processor 130 and the image signal pre-processor 120 may also be through MIPI.

其中,图像信号前处理器120在接收到来自图像传感器110传输的图像数据后,利用该图像数据统计出应用处理器140更新图像传感器110的图像采集参数所需的状态信息,包括但不限于亮度信息、清晰度信息以及对比度信息等,并将利用前述图像数据统计出的状态信息记为第一状态信息。此外,图像信号前处理器120还按照配置的前处理策略,对来自于图像传感器110的图像数据进行前处理,提升图像数据的图像质量,相应得到前处理图像数据。应当说明的是,图像信号前处理器120对图像数据进行的前处理并不会改变图像数据的格式,即前处理得到的前处理图像数据仍然为RAW格式。Wherein, after receiving the image data transmitted from the image sensor 110, the image signal pre-processor 120 uses the image data to count the state information required by the application processor 140 to update the image acquisition parameters of the image sensor 110, including but not limited to brightness information, sharpness information, contrast information, etc., and the state information calculated by using the aforementioned image data is recorded as the first state information. In addition, the image signal pre-processor 120 also pre-processes the image data from the image sensor 110 according to the configured pre-processing strategy, improves the image quality of the image data, and obtains the pre-processed image data accordingly. It should be noted that the preprocessing performed by the image signal preprocessor 120 on the image data does not change the format of the image data, that is, the preprocessed image data obtained by the preprocessing is still in the RAW format.

在完成对图像数据的前处理并得到前处理图像数据之后,图像信号前处理器120将前处理图像数据传输给图像信号处理器130。After completing the pre-processing of the image data and obtaining the pre-processed image data, the image signal pre-processor 120 transmits the pre-processed image data to the image signal processor 130 .

图像信号处理器130在接收到来自于图像信号前处理器120的前处理图像数据后,利用该前处理图像数据统计出应用处理器140更新图像传感器110的图像采集参数所需的状态信息,包括但不限于亮度信息、清晰度信息以及对比度信息等,并将利用前处理图像数据统计出的状态信息记为第二状态信息。After receiving the pre-processed image data from the image signal pre-processor 120, the image signal processor 130 uses the pre-processed image data to count the state information required by the application processor 140 to update the image acquisition parameters of the image sensor 110, including: However, it is not limited to brightness information, sharpness information, contrast information, etc., and the state information calculated by using the pre-processed image data is recorded as the second state information.

此外,对于第一状态信息,图像信号前处理器120可以直接将第一状态信息传输至应用处理器140,或者经由图像信号处理器130传输至应用处理器140。In addition, for the first state information, the image signal pre-processor 120 may directly transmit the first state information to the application processor 140 , or transmit the first state information to the application processor 140 via the image signal processor 130 .

在图像信号前处理器120统计得到第一状态信息,图像信号处理器130统计得到第二状态信息之后,应用处理器140进一步按照配置的融合策略,相应融合第一状态信息和第二状态信息得到一个新的状态信息,记为目标状态信息。可以看出,该目标状态信息在一定程度上携带图像数据前处理前后的状态信息,能够更准确的反映针对实际拍摄场景的拍摄状态,利用该目标状态信息所计算得到的图像采集参数将更准确。相应的,应用处理器140按照配置的图像采集参数运算算法(比如自动曝光算法、自动白平衡算法、自动对焦算法等),利用融合得到的目标状态信息计算得到一个新的图像采集参数。After the image signal preprocessor 120 statistically obtains the first state information, and the image signal processor 130 obtains the second state information through statistics, the application processor 140 further fuses the first state information and the second state information correspondingly according to the configured fusion strategy to obtain A new state information, recorded as the target state information. It can be seen that the target status information carries the status information before and after image data preprocessing to a certain extent, which can more accurately reflect the shooting status of the actual shooting scene, and the image acquisition parameters calculated by using the target status information will be more accurate. . Correspondingly, the application processor 140 calculates a new image acquisition parameter by using the target state information obtained by fusion according to the configured image acquisition parameter calculation algorithm (eg, automatic exposure algorithm, automatic white balance algorithm, autofocus algorithm, etc.).

此外,应用处理器140还与图像传感器110连接,控制图像传感器110开始采集图像数据和结束采集图像数据。在计算得到新的图像采集参数之后,应用处理器即将图像传感器110的图像采集参数更新为新计算得到的图像采集参数。如此循环,通过对图像传感器110的图像采集参数进行不断更新,直至图像传感器110的图像采集参数收敛,获得最佳的图像采集效果。In addition, the application processor 140 is also connected with the image sensor 110, and controls the image sensor 110 to start collecting image data and end collecting image data. After the new image acquisition parameters are calculated, the application processor updates the image acquisition parameters of the image sensor 110 to the newly calculated image acquisition parameters. In this cycle, by continuously updating the image acquisition parameters of the image sensor 110 until the image acquisition parameters of the image sensor 110 converge, the best image acquisition effect is obtained.

应当说明的是,本申请实施例中对于应用处理器140和图像传感器110之间的连接方式不做具体限定,可由本领域普通技术人员根据实际情况进行配置,比如,本申请实施例中,应用处理器140和图像传感器110之间通过I2C总线连接。It should be noted that the connection mode between the application processor 140 and the image sensor 110 is not specifically limited in the embodiment of the present application, and can be configured by those of ordinary skill in the art according to the actual situation. For example, in the embodiment of the present application, the application The processor 140 and the image sensor 110 are connected through an I2C bus.

相比于相关技术,本申请额外增加了图像信号前处理器120,通过图像信号前处理器120对图像传感器110采集的原始图像数据进行状态信息的统计,相应得到第一状态信息,并由图像信号前处理器120对原始图像数据进行前处理,得到前处理图像数据;然后再由图像信号处理器130对前处理图像数据进行状态信息的统计,相应得到第二状态信息;最后由应用处理器140对图像信号前处理器120统计的第一状态信息和图像信号处理器130统计的第二状态信息进行融合,得到目标状态信息,并利用该目标状态信息更新图像传感器的图像采集参数。由此,能够达到提高电子设备自动配置图像采集参数准确度的目的。Compared with the related art, the present application additionally adds an image signal pre-processor 120, and the image signal pre-processor 120 performs state information statistics on the raw image data collected by the image sensor 110, correspondingly obtains the first state information, and uses the image signal The signal pre-processor 120 pre-processes the original image data to obtain the pre-processed image data; then the image signal processor 130 performs state information statistics on the pre-processed image data, and correspondingly obtains the second state information; finally, the application processor 140 fuses the first state information counted by the image signal preprocessor 120 and the second state information counted by the image signal processor 130 to obtain target state information, and uses the target state information to update image acquisition parameters of the image sensor. In this way, the purpose of improving the accuracy of automatically configuring the image acquisition parameters of the electronic device can be achieved.

可选地,请参照图2,图像信号前处理器120包括:Optionally, please refer to FIG. 2 , the image signal pre-processor 120 includes:

图像信号处理单元1201,用于统计图像数据的第一状态信息;以及an image signal processing unit 1201, configured to count the first state information of the image data; and

对图像数据进行第一次前处理;Perform the first preprocessing on the image data;

神经网络处理单元1202,用于对第一次前处理后的图像数据进行第二次前处理,得到前处理图像数据。The neural network processing unit 1202 is configured to perform a second preprocessing on the image data after the first preprocessing to obtain preprocessing image data.

其中,第一图像信号处理单元1201与图像传感器110连接,用于对来自于图像传感器110的图像数据进行状态信息的统计,相应得到第一状态信息。此外,图像信号前处理单元120还用于按照配置的前处理策略,对前述图像数据进行第一次前处理。应当说明的是,本申请实施例中对于图像信号处理单元1201所进行的第一次前处理不做具体限制,包括但不限于坏点校正处理、时域降噪处理、3D降噪处理、线性化处理以及黑电平校正处理等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The first image signal processing unit 1201 is connected to the image sensor 110, and is used for performing statistics on the state information of the image data from the image sensor 110, and correspondingly obtaining the first state information. In addition, the image signal preprocessing unit 120 is further configured to perform the first preprocessing on the aforementioned image data according to the configured preprocessing strategy. It should be noted that the first preprocessing performed by the image signal processing unit 1201 is not specifically limited in the embodiments of the present application, including but not limited to dead pixel correction processing, temporal noise reduction processing, 3D noise reduction processing, linear optimization processing methods, such as processing and black level correction processing, of course, may also include optimization processing methods not listed in this application.

神经网络处理单元1202用于对第一次前处理后的图像数据进行第二次前处理,得到前处理图像数据。其中,神经网络处理单元1202固化有多种神经网络算法(比如,基于神经网络的视频夜景算法、视频HDR算法、视频虚化算法、视频降噪算法以及视频超分算法等),在第一图像信号处理单元1201完成对图像数据的第一前处理之后,神经网络处理单元1202按照配置的前处理策略,调用对应的神经网络算法对第一次前处理后的图像数据进行第二次前处理,得到前处理图像数据。The neural network processing unit 1202 is configured to perform a second preprocessing on the image data after the first preprocessing to obtain preprocessing image data. Among them, the neural network processing unit 1202 is solidified with a variety of neural network algorithms (for example, video night scene algorithm based on neural network, video HDR algorithm, video blur algorithm, video noise reduction algorithm and video super-resolution algorithm, etc.), in the first image After the signal processing unit 1201 completes the first pre-processing of the image data, the neural network processing unit 1202 calls the corresponding neural network algorithm to perform the second pre-processing on the image data after the first pre-processing according to the configured pre-processing strategy, Get pre-processed image data.

通俗的说,图像信号处理单元1201采用非AI的图像优化方式对图像数据进行初步的优化处理,然后再由神经网络处理单元1202采用AI的图像优化方式对初步优化后的图像数据进一步优化。In layman's terms, the image signal processing unit 1201 uses the non-AI image optimization method to perform preliminary optimization processing on the image data, and then the neural network processing unit 1202 uses the AI image optimization method to further optimize the image data after the preliminary optimization.

可选地,在一实施例中,应用处理器140用于:Optionally, in one embodiment, the application processor 140 is configured to:

获取对应第一状态信息的第一权重值,以及获取对应第二状态信息的第二权重值;obtaining a first weight value corresponding to the first state information, and obtaining a second weight value corresponding to the second state information;

根据第一状态信息、第一权重值、第二状态信息以及第二权重值进行加权求和,得到目标状态信息。Weighted summation is performed according to the first state information, the first weight value, the second state information and the second weight value to obtain the target state information.

本申请进一步提供一种可选地第一状态信息和第二状态信息的融合策略。其中,应用处理器140采用加权求和的方式对第一状态信息和第二状态信息进行融合,将加权结果作为融合得到的目标状态信息,可以表示为:The present application further provides an optional fusion strategy of the first state information and the second state information. The application processor 140 fuses the first state information and the second state information by means of weighted summation, and uses the weighted result as the target state information obtained by fusion, which can be expressed as:

S’=a*S1+b*S2S'=a*S 1 +b*S 2 ;

其中,S’表示融合得到的目标状态信息,S1表示第一状态信息,S2表示第二状态信息,a表示分配给第一状态信息的权重,b表示分配给第二状态信息的权重。Wherein, S' represents the target state information obtained by fusion, S 1 represents the first state information, S 2 represents the second state information, a represents the weight assigned to the first state information, and b represents the weight assigned to the second state information.

应当说明的是,本申请实施例中对于第一状态信息和第二状态信息的权重配置方式不做具体限定,可由本领域普通技术人员根据实际需要进行配置。比如,可以为第二状态信息和第一状态信息配置静态权重,即预先为第二状态信息和第一状态信息分配固定不变的权重,也可以为第二状态信息和第一状态信息配置动态权重,即第二状态信息和第一状态信息根据某指定条件动态变化。It should be noted that the weight configuration manner of the first state information and the second state information is not specifically limited in the embodiments of the present application, and can be configured by those of ordinary skill in the art according to actual needs. For example, a static weight may be configured for the second state information and the first state information, that is, a fixed weight may be assigned to the second state information and the first state information in advance, or a dynamic weight may be configured for the second state information and the first state information The weight, that is, the second state information and the first state information, changes dynamically according to a specified condition.

比如,可以将第一状态信息的权重配置为0.9,将第二状态信息的权重配置为0.1;For example, the weight of the first state information may be configured as 0.9, and the weight of the second state information may be configured as 0.1;

又比如,可以根据图像信号前处理器所进行的前处理来动态分配第一状态信息和第二状态信息的权重,其中,前述图像数据在前处理前后的图像差异越大,配置第一状态信息的权重越大,配置第二状态信息的权重越小;前述图像数据在前处理前后的图像差异越小,配置第一状态信息权重越小,配置第二状态信息的权重越大。For another example, the weights of the first state information and the second state information can be dynamically allocated according to the preprocessing performed by the image signal preprocessor, wherein, the greater the image difference between the aforementioned image data before and after the preprocessing, the configuration of the first state information. The larger the weight of , the smaller the weight of configuring the second state information; the smaller the image difference before and after the pre-processing of the image data, the smaller the weight of configuring the first state information, and the greater the weight of configuring the second state information.

应当说明的是,第一状态信息和第二状态信息包括多个不同维度的状态信息,应用处理器140按照本申请提供的以上融合策略,在各维度分别进行状态信息的融合,比如,第一状态信息中的亮度和第二状态信息中的亮度融合,第一状态信息中的清晰度和第二状态信息中的清晰度融合等。It should be noted that the first state information and the second state information include multiple state information of different dimensions, and the application processor 140 fuses the state information in each dimension according to the above fusion strategy provided in this application. The brightness in the state information is fused with the brightness in the second state information, the sharpness in the first state information and the sharpness in the second state information are fused, and so on.

可选地,在一实施例中,图像信号前处理器120还用于将第一状态信息以及前处理图像数据传输至图像信号处理器130;Optionally, in an embodiment, the image signal pre-processor 120 is further configured to transmit the first state information and the pre-processed image data to the image signal processor 130;

图像信号处理器130还用于对前处理图像数据进行后处理,得到后处理图像数据;以及The image signal processor 130 is further configured to perform post-processing on the pre-processed image data to obtain post-processed image data; and

将后处理图像数据、第一状态信息、第二状态信息以及第一指示信息发送至应用处理器140Send the post-processed image data, the first state information, the second state information, and the first indication information to the application processor 140

应用处理器140还用于根据第一指示信息融合第一状态信息和第二状态信息得到目标状态信息。The application processor 140 is further configured to obtain target state information by fusing the first state information and the second state information according to the first indication information.

请参照图3,本申请实施例中,图像信号前处理器120在统计得到来自于图像传感器110的图像数据的第一状态信息,并对前述图像数据进行前处理,得到前处理图像数据之后,将第一状态信息以及前处理图像数据传输至图像信号处理器130。比如,图像信号前处理器120基于其与图像信号处理器130之间的MIPI接口,将统计得到的第一状态信息和前处理得到的前处理图像数据传输至图像信号处理器130。Referring to FIG. 3 , in the embodiment of the present application, the image signal pre-processor 120 obtains the first state information of the image data from the image sensor 110 according to statistics, and pre-processes the aforementioned image data, and after obtaining the pre-processed image data, The first state information and the pre-processed image data are transmitted to the image signal processor 130 . For example, the image signal pre-processor 120 transmits the first state information obtained by statistics and the pre-processed image data obtained by the pre-processing to the image signal processor 130 based on the MIPI interface between it and the image signal processor 130 .

图像信号处理器130在接收到来自于图像信号前处理器120的第一状态信息以及前处理图像数据之后,除了对前处理图像数据进行状态统计得到第二状态信息之外,还对前处理图像数据进行后处理,得到后处理图像数据。After the image signal processor 130 receives the first state information from the image signal pre-processor 120 and the pre-processed image data, in addition to performing state statistics on the pre-processed image data to obtain the second state information, the image signal processor 130 also performs state statistics on the pre-processed image data. The data is post-processed to obtain post-processed image data.

其中,本申请实施例对于图像信号处理器130所进行的后处理不做具体限定,以与图像信号前处理器120的前处理差异化为约束(即图像信号前处理器120执行过同一优化处理,图像信号处理器130不再执行),可由本领域普通技术人员根据实际需要进行配置。比如,图像信号处理器130进行的后处理比如强光抑制、背光补偿、色彩增强、镜头阴影校正等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The embodiments of the present application do not specifically limit the post-processing performed by the image signal processor 130, and the difference from the pre-processing performed by the image signal pre-processor 120 is a constraint (that is, the image signal pre-processor 120 has performed the same optimization process. , the image signal processor 130 is no longer executed), which can be configured by those of ordinary skill in the art according to actual needs. For example, post-processing performed by the image signal processor 130, such as optimized processing methods such as strong light suppression, backlight compensation, color enhancement, and lens shadow correction, may, of course, also include optimized processing methods not listed in this application.

图像信号处理器130在完成对前处理图像数据的后处理,相应得到后处理图像数据,并统计得到第二状态信息之后,生成第一指示信息,将后处理图像数据、第一状态信息、第二状态信息以及第一指示信息发送至应用处理器140。After the image signal processor 130 completes the post-processing of the pre-processed image data, correspondingly obtains the post-processed image data, and obtains the second state information by statistics, the image signal processor 130 generates the first indication information, and combines the post-processed image data, the first state information, and the second state information. The second state information and the first indication information are sent to the application processor 140 .

相应的,应用处理器140根据第一指示融合第一状态信息和第二状态信息得到目标状态信息。Correspondingly, the application processor 140 obtains the target state information by fusing the first state information and the second state information according to the first instruction.

可选地,在一实施例,应用处理器140还用于:Optionally, in an embodiment, the application processor 140 is further configured to:

当后处理图像数据为动态图像数据时,预览后处理图像数据和/或根据后处理图像数据进行视频编码;或者,When the post-processed image data is dynamic image data, preview the post-processed image data and/or perform video encoding according to the post-processed image data; or,

当后处理图像数据为静态图像时,根据后处理图像数据进行图像编码。When the post-processed image data is a still image, image coding is performed according to the post-processed image data.

应当说明的是,图像类型并不随着对图像数据的处理而改变,即,原始的图像数据为静态图像,则相应处理得到的前处理图像数据/后处理图像数据也为静态图像,原始的图像数据为动态图像,则相应处理得到的前处理图像数据/后处理图像数据也为动态图像。其中,静态图像比如实时拍摄的单帧图像,动态图像比如预览时采集的图像序列中的一帧图像,录像时采集的图像序列中的一帧图像。It should be noted that the image type does not change with the processing of the image data, that is, if the original image data is a static image, the pre-processed image data/post-processed image data obtained by the corresponding processing is also a static image, and the original image If the data is a dynamic image, the pre-processed image data/post-processed image data obtained by corresponding processing is also a dynamic image. Among them, the static image is such as a single frame of image captured in real time, the dynamic image is such as one frame of image in the image sequence collected during preview, and one frame of image in the image sequence collected during video recording.

可选地,在一实施例中,图像信号前处理器120还用于在当前的传输模式被配置为第一传输模式时,将第一状态信息以及前处理图像数据传输至图像信号处理器130。Optionally, in an embodiment, the image signal pre-processor 120 is further configured to transmit the first state information and the pre-processed image data to the image signal processor 130 when the current transmission mode is configured as the first transmission mode .

应当说明的是,本申请实施例中提供有两种可选的传输模式,分别为第一传输模式和第二传输模式。It should be noted that two optional transmission modes are provided in this embodiment of the present application, which are a first transmission mode and a second transmission mode, respectively.

其中,图像信号前处理器120在当前的传输模式被配置为第一传输模式(或称同步传输模式),将第一状态信息以及前处理图像数据传输至图像信号处理器130,经由图像信号处理器130将第一状态信息传输至应用处理器140,此外,图形信号处理器130还将对前处理图像数据后处理的后处理图像数据、对后处理图像数据统计得到的第二状态信息以及生成的第一指示信息随同第一状态信息传输至应用处理器140,具体可参照以上实施例中的相关描述,此处不再赘述。The image signal pre-processor 120 is configured as the first transmission mode (or synchronous transmission mode) in the current transmission mode, and transmits the first state information and the pre-processed image data to the image signal processor 130, and processes the image signal through the image signal processor 130. The processor 130 transmits the first state information to the application processor 140. In addition, the graphics signal processor 130 will also perform post-processing image data post-processing on the pre-processed image data, and second state information obtained from statistics on the post-processing image data. The first indication information is transmitted to the application processor 140 along with the first state information. For details, reference may be made to the relevant descriptions in the above embodiments, which will not be repeated here.

可选地,在一实施例中,图像信号前处理器120还用于在当前的传输模式被配置为第二传输模式时,发送第一状态信息以及第二指示信息至应用处理器140;Optionally, in an embodiment, the image signal preprocessor 120 is further configured to send the first state information and the second indication information to the application processor 140 when the current transmission mode is configured as the second transmission mode;

应用处理器140还用于根据第二指示信息融合第一状态信息和第二状态信息得到目标状态信息。The application processor 140 is further configured to obtain target state information by fusing the first state information and the second state information according to the second indication information.

请参照图4,本申请实施例中图像信号前处理器120还与应用处理器140连接,图像信号前处理器120在当前的传输模式被配置为第二传输模式时,将第一状态信息直接传输至应用处理器140。Referring to FIG. 4 , in this embodiment of the present application, the image signal pre-processor 120 is also connected to the application processor 140. When the current transmission mode is configured as the second transmission mode, the image signal pre-processor 120 directly converts the first state information to transmitted to the application processor 140 .

另一方面,图像信号前处理器120还将对前述图像数据进行前处理所得到的前处理图像数据传输至图像信号处理器130。相应的,图像信号处理器130除了对前处理图像数据进行状态统计得到第二状态信息之外,还对前处理图像数据进行后处理,得到后处理图像数据。On the other hand, the image signal pre-processor 120 also transmits the pre-processed image data obtained by pre-processing the aforementioned image data to the image signal processor 130 . Correspondingly, in addition to performing state statistics on the pre-processed image data to obtain the second state information, the image signal processor 130 also performs post-processing on the pre-processed image data to obtain post-processed image data.

其中,本申请实施例对于图像信号处理器130所进行的后处理不做具体限定,以与图像信号前处理器120的前处理差异化为约束(即图像信号前处理器120执行过同一优化处理,图像信号处理器130不再执行),可由本领域普通技术人员根据实际需要进行配置。比如,图像信号处理器130进行的后处理比如强光抑制、背光补偿、色彩增强、镜头阴影校正等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The embodiments of the present application do not specifically limit the post-processing performed by the image signal processor 130, and the difference from the pre-processing performed by the image signal pre-processor 120 is a constraint (that is, the image signal pre-processor 120 has performed the same optimization process. , the image signal processor 130 is no longer executed), which can be configured by those of ordinary skill in the art according to actual needs. For example, post-processing performed by the image signal processor 130, such as optimized processing methods such as strong light suppression, backlight compensation, color enhancement, and lens shadow correction, may, of course, also include optimized processing methods not listed in this application.

图像信号处理器130在完成对前处理图像数据的后处理,相应得到后处理图像数据,并统计得到第二状态信息之后,将后处理图像数据、第二状态信息发送至应用处理器140。The image signal processor 130 sends the post-processed image data and the second state information to the application processor 140 after completing the post-processing of the pre-processed image data, correspondingly obtaining the post-processed image data, and statistically obtaining the second state information.

应用处理器140还用于根据第二指示信息融合第一状态信息和第二状态信息得到目标状态信息。The application processor 140 is further configured to obtain target state information by fusing the first state information and the second state information according to the second indication information.

可选地,请参照图5,图像信号前处理器120和应用处理器140之间建立第一连接和第二连接,图像信号前处理器120还用于通过第一连接将第一状态信息发送至应用处理器140,以及通过第二连接将第二指示信息发送至应用处理器140。Optionally, please refer to FIG. 5 , a first connection and a second connection are established between the image signal pre-processor 120 and the application processor 140, and the image signal pre-processor 120 is further configured to send the first state information through the first connection. to the application processor 140, and send the second indication information to the application processor 140 through the second connection.

比如,图像信号前处理120和应用处理器140之间通过串行外设接口(SerialPeripheral Interface,SPI)建立第一连接,通过通用输入输出(General-purpose input/output,GPIO)接口建立第二连接。For example, a first connection is established between the image signal pre-processing 120 and the application processor 140 through a serial peripheral interface (Serial Peripheral Interface, SPI), and a second connection is established through a general-purpose input/output (General-purpose input/output, GPIO) interface .

可选地,在一实施例中,图像信号前处理器120还用于:Optionally, in an embodiment, the image signal pre-processor 120 is further configured to:

根据历史图像数据进行分析,得到分析结果;Analyze according to historical image data to obtain analysis results;

根据分析结果配置传输模式为第一模式或第二模式。Configure the transmission mode as the first mode or the second mode according to the analysis result.

其中,历史图像数据为前述图像数据之前采集的图像数据。图像信号前处理器120根据前述图像数据之前获取到的历史图像数据,按照配置的分析策略对历史图像数据进行分析,得到分析结果,然后根据分析结果配置传输模式为第一模式和第二模式。The historical image data is image data collected before the aforementioned image data. The image signal pre-processor 120 analyzes the historical image data according to the configured analysis strategy according to the historical image data obtained before the aforementioned image data, obtains the analysis result, and then configures the transmission mode as the first mode and the second mode according to the analysis result.

示例性的,历史图像数据为图像传感器110在采集前述图像数据之前采集的图像数据,由于前述历史图像数据和前述图像数据连续采集,前述历史图像数据和前述图像数据的图像内容基本相同。图像信号前处理器120获取到预设个数的历史图像数据的前处理时长,根据预设个数的前处理时长预测得到图像数据的前处理时长,并判断前述图像数据的前处理时长是否达到预设时长,若达到预设时长,则配置传输模式为第二模式,若未达到预设时长,则配置传输模式为第一模式。其中,预设时长可由本领域普通技术人员根据实际需要取经验值。Exemplarily, the historical image data is image data collected by the image sensor 110 before collecting the aforementioned image data. Since the aforementioned historical image data and the aforementioned image data are continuously collected, the aforementioned historical image data and the aforementioned image data have substantially the same image content. The image signal pre-processor 120 obtains the pre-processing duration of a preset number of historical image data, predicts the pre-processing duration of the image data according to the pre-processing duration of the preset number, and determines whether the pre-processing duration of the aforementioned image data reaches The preset duration, if the preset duration is reached, the transmission mode is configured as the second mode, and if the preset duration is not reached, the transmission mode is configured as the first mode. Wherein, the preset duration can be an empirical value obtained by those of ordinary skill in the art according to actual needs.

比如,在根据预设个数的前处理时长预测得到图像数据的前处理时长时,图像信号前处理器120可以求取预设个数的前处理时长的平均处理时长,作为前述图像数据的前处理时长。For example, when the preprocessing duration of the image data is predicted and obtained according to the preset number of preprocessing durations, the image signal preprocessor 120 may obtain the average processing duration of the preset number of preprocessing durations as the preprocessing duration of the aforementioned image data. Processing time.

又比如,在根据预设个数的前处理时长预测得到图像数据的前处理时长时,图像信号前处理器120可以对预设个数的前处理时长进行加权求和,将得到加权和值作为前述图像数据的前处理时长,其中,对于前述预设个数的前处理时长,若其对应的历史图像数据相较于前述图像数据越早采集,则其权重越小。For another example, when the pre-processing duration of the image data is predicted and obtained according to the pre-processing duration of the preset number, the image signal pre-processor 120 may perform a weighted sum on the pre-processing duration of the preset number, and use the weighted sum as the obtained weighted sum. The preprocessing duration of the aforementioned image data, wherein, for the aforementioned preset number of preprocessing durations, if the corresponding historical image data is collected earlier than the aforementioned image data, the weight is smaller.

可选地,在一实施例中,图像传感器110为多个,应用处理器140还用于同步更新每一图像传感器110的图像采集参数。Optionally, in an embodiment, there are multiple image sensors 110 , and the application processor 140 is further configured to update the image acquisition parameters of each image sensor 110 synchronously.

本申请实施例中,对于每一图像传感器110,按照以上任一实施例中所提供的图像采集参数的计算方式,相应进行得到新的图像采集参数,然后按照每一图像传感器110新的的图像采集参数,同步更新每一图像传感器的图像采集参数。In the embodiment of the present application, for each image sensor 110, new image acquisition parameters are obtained according to the calculation method of the image acquisition parameters provided in any of the above embodiments, and then new image acquisition parameters are obtained according to the new image of each image sensor 110. Acquisition parameters, synchronously update the image acquisition parameters of each image sensor.

本申请还提供一种图像处理方法,应用于本申请提供的电子设备,请结合参照图6和图1,该图像处理方法的流程可以为:The present application also provides an image processing method, which is applied to the electronic equipment provided by the present application. Please refer to FIG. 6 and FIG. 1 in combination. The flow of the image processing method can be as follows:

在201中,通过图像传感器110按照配置的图像采集参数采集图像数据;In 201, image data is collected by the image sensor 110 according to the configured image collection parameters;

在202中,通过图像信号前处理器120统计图像数据中用于更新图像传感器110的图像采集参数的状态信息,得到第一状态信息,并对图像数据进行前处理,得到前处理图像数据;In 202, the image signal pre-processor 120 counts the state information in the image data for updating the image acquisition parameters of the image sensor 110 to obtain first state information, and pre-processes the image data to obtain pre-processed image data;

在203中,通过图像信号处理器130统计前处理图像数据中用于更新图像传感器110的图像采集参数的状态信息,得到第二状态信息;In 203, the image signal processor 130 counts the state information used to update the image acquisition parameters of the image sensor 110 in the pre-processed image data to obtain second state information;

在204中,通过应用处理器140融合第一状态信息和第二状态信息得到目标状态信息,并根据目标状态信息更新图像传感器110的图像采集参数。In 204, target state information is obtained by fusing the first state information and the second state information by the application processor 140, and the image acquisition parameters of the image sensor 110 are updated according to the target state information.

在本申请实施例中,图像传感器110与图像信号前处理器120连接,用于按照配置的图像采集参数采集图像数据,并将采集到的图像数据传输给图像信号前处理器120。应当说明的是,图像传感器110采集到的图像数据为RAW格式的图像数据,并将采集到的原始RAW格式的图像数据传输给图像信号前处理器120。In this embodiment of the present application, the image sensor 110 is connected to the image signal pre-processor 120 for collecting image data according to the configured image acquisition parameters, and transmitting the collected image data to the image signal pre-processor 120 . It should be noted that the image data collected by the image sensor 110 is image data in RAW format, and the collected image data in original RAW format is transmitted to the image signal pre-processor 120 .

其中,图像采集参数包括但不限于曝光参数、对焦参数以及白平衡参数等。比如,在开始进行图像数据的采集之前,应用处理器140会将初始的曝光参数配置到图像传感器110,使得图像传感器110按照初始的曝光参数采集图像数据,并将采集到的图像数据传输给图像信号前处理器120。The image acquisition parameters include, but are not limited to, exposure parameters, focus parameters, and white balance parameters. For example, before starting to collect image data, the application processor 140 will configure initial exposure parameters to the image sensor 110, so that the image sensor 110 collects image data according to the initial exposure parameters, and transmits the collected image data to the image sensor 110. Signal preprocessor 120 .

应当说明的是,本申请实施例中对图像信号前处理器120和图像传感器110的连接方式不做具体限定,比如,图像信号前处理器120与图像传感器110之间通过MIPI(MobileIndustry Processor Interface,移动行业处理器接口)连接。It should be noted that the connection mode between the image signal pre-processor 120 and the image sensor 110 is not specifically limited in the embodiments of the present application. For example, the MIPI (Mobile Industry Processor Interface, Mobile Industry Processor Interface) connection.

其中,图像传感器110在向图像信号前处理器120传输图像数据时,将图像数据封装为多个图像数据包,以图像数据包的形式传输至图像信号前处理器。示例性的,图像数据包包括包头字段、包尾字段以及数据字段,其中,包头字段和包尾字段用于填充一些必要的控制信息,比如同步信息、地址信息、差错控制信息等,数据字段则用于填充实际的图像内容。Wherein, when the image sensor 110 transmits image data to the image signal pre-processor 120, the image data is encapsulated into a plurality of image data packets, and transmitted to the image signal pre-processor in the form of image data packets. Exemplarily, the image data packet includes a header field, a trailer field and a data field, wherein the header field and the trailer field are used to fill in some necessary control information, such as synchronization information, address information, error control information, etc., and the data field is Used to populate the actual image content.

另一方面,图像信号前处理器120对来自于图像传感器110的图像数据进行接收。此外,图像信号前处理器120还与图像信号处理器130连接,其中,本申请实施例中对图像信号处理器130与图像信号前处理器120的连接方式不做具体限定,比如,图像信号处理器130与图像信号前处理器120之间也可以通过MIPI连接。On the other hand, the image signal preprocessor 120 receives image data from the image sensor 110 . In addition, the image signal pre-processor 120 is also connected to the image signal processor 130, wherein the connection mode of the image signal processor 130 and the image signal pre-processor 120 is not specifically limited in the embodiment of the present application, for example, the image signal processing The connection between the processor 130 and the image signal pre-processor 120 may also be through MIPI.

其中,图像信号前处理器120在接收到来自图像传感器110传输的图像数据后,利用该图像数据统计出应用处理器140更新图像传感器110的图像采集参数所需的状态信息,包括但不限于亮度信息、清晰度信息以及对比度信息等,并将利用前述图像数据统计出的状态信息记为第一状态信息。此外,图像信号前处理器120还按照配置的前处理策略,对来自于图像传感器110的图像数据进行前处理,提升图像数据的图像质量,相应得到前处理图像数据。应当说明的是,图像信号前处理器120对图像数据进行的前处理并不会改变图像数据的格式,即前处理得到的前处理图像数据仍然为RAW格式。Wherein, after receiving the image data transmitted from the image sensor 110, the image signal pre-processor 120 uses the image data to count the state information required by the application processor 140 to update the image acquisition parameters of the image sensor 110, including but not limited to brightness information, sharpness information, contrast information, etc., and the state information calculated by using the aforementioned image data is recorded as the first state information. In addition, the image signal pre-processor 120 also pre-processes the image data from the image sensor 110 according to the configured pre-processing strategy, improves the image quality of the image data, and obtains the pre-processed image data accordingly. It should be noted that the preprocessing performed by the image signal preprocessor 120 on the image data does not change the format of the image data, that is, the preprocessed image data obtained by the preprocessing is still in the RAW format.

在完成对图像数据的前处理并得到前处理图像数据之后,图像信号前处理器120将前处理图像数据传输给图像信号处理器130。After completing the pre-processing of the image data and obtaining the pre-processed image data, the image signal pre-processor 120 transmits the pre-processed image data to the image signal processor 130 .

图像信号处理器130在接收到来自于图像信号前处理器120的前处理图像数据后,利用该前处理图像数据统计出应用处理器140更新图像传感器110的图像采集参数所需的状态信息,包括但不限于亮度信息、清晰度信息以及对比度信息等,并将利用前处理图像数据统计出的状态信息记为第二状态信息。After receiving the pre-processed image data from the image signal pre-processor 120, the image signal processor 130 uses the pre-processed image data to count the state information required by the application processor 140 to update the image acquisition parameters of the image sensor 110, including: However, it is not limited to brightness information, sharpness information, contrast information, etc., and the state information calculated by using the pre-processed image data is recorded as the second state information.

此外,对于第一状态信息,图像信号前处理器120可以直接将第一状态信息传输至应用处理器140,或者经由图像信号处理器130传输至应用处理器140。In addition, for the first state information, the image signal pre-processor 120 may directly transmit the first state information to the application processor 140 , or transmit the first state information to the application processor 140 via the image signal processor 130 .

在图像信号前处理器120统计得到第一状态信息,图像信号处理器130统计得到第二状态信息之后,应用处理器140进一步按照配置的融合策略,相应融合第一状态信息和第二状态信息得到一个新的状态信息,记为目标状态信息。可以看出,该目标状态信息在一定程度上携带图像数据前处理前后的状态信息,能够更准确的反映针对实际拍摄场景的拍摄状态,利用该目标状态信息所计算得到的图像采集参数将更准确。相应的,应用处理器140按照配置的图像采集参数运算算法(比如自动曝光算法、自动白平衡算法、自动对焦算法等),利用融合得到的目标状态信息计算得到一个新的图像采集参数。After the image signal preprocessor 120 statistically obtains the first state information, and the image signal processor 130 obtains the second state information through statistics, the application processor 140 further fuses the first state information and the second state information correspondingly according to the configured fusion strategy to obtain A new state information, recorded as the target state information. It can be seen that the target status information carries the status information before and after image data preprocessing to a certain extent, which can more accurately reflect the shooting status of the actual shooting scene, and the image acquisition parameters calculated by using the target status information will be more accurate. . Correspondingly, the application processor 140 calculates a new image acquisition parameter by using the target state information obtained by fusion according to the configured image acquisition parameter calculation algorithm (eg, automatic exposure algorithm, automatic white balance algorithm, autofocus algorithm, etc.).

此外,应用处理器140还与图像传感器110连接,控制图像传感器110开始采集图像数据和结束采集图像数据。在计算得到新的图像采集参数之后,应用处理器即将图像传感器110的图像采集参数更新为新计算得到的图像采集参数。如此循环,通过对图像传感器110的图像采集参数进行不断更新,直至图像传感器110的图像采集参数收敛,获得最佳的图像采集效果。In addition, the application processor 140 is also connected with the image sensor 110, and controls the image sensor 110 to start collecting image data and end collecting image data. After the new image acquisition parameters are calculated, the application processor updates the image acquisition parameters of the image sensor 110 to the newly calculated image acquisition parameters. In this cycle, by continuously updating the image acquisition parameters of the image sensor 110 until the image acquisition parameters of the image sensor 110 converge, the best image acquisition effect is obtained.

应当说明的是,本申请实施例中对于应用处理器140和图像传感器110之间的连接方式不做具体限定,可由本领域普通技术人员根据实际情况进行配置,比如,本申请实施例中,应用处理器140和图像传感器110之间通过I2C总线连接。It should be noted that the connection mode between the application processor 140 and the image sensor 110 is not specifically limited in the embodiment of the present application, and can be configured by those of ordinary skill in the art according to the actual situation. For example, in the embodiment of the present application, the application The processor 140 and the image sensor 110 are connected through an I2C bus.

可选地,在一实施例中,通过应用处理器140融合第一状态信息和第二状态信息得到目标状态信息,包括:Optionally, in an embodiment, the target state information is obtained by fusing the first state information and the second state information by the application processor 140, including:

通过应用处理器140获取对应第一状态信息的第一权重值,以及获取对应第二状态信息的第二权重值;Obtain a first weight value corresponding to the first state information, and obtain a second weight value corresponding to the second state information through the application processor 140;

通过应用处理器140根据第一状态信息、第一权重值、第二状态信息以及第二权重值进行加权求和,得到目标状态信息。The target state information is obtained by the application processor 140 performing weighted summation according to the first state information, the first weight value, the second state information and the second weight value.

本申请进一步提供一种可选地第一状态信息和第二状态信息的融合策略。其中,应用处理器140采用加权求和的方式对第一状态信息和第二状态信息进行融合,将加权结果作为融合得到的目标状态信息,可以表示为:The present application further provides an optional fusion strategy of the first state information and the second state information. The application processor 140 fuses the first state information and the second state information by means of weighted summation, and uses the weighted result as the target state information obtained by fusion, which can be expressed as:

S’=a*S1+b*S2S'=a*S 1 +b*S 2 ;

其中,S’表示融合得到的目标状态信息,S1表示第一状态信息,S2表示第二状态信息,a表示分配给第一状态信息的权重,b表示分配给第二状态信息的权重。Wherein, S' represents the target state information obtained by fusion, S 1 represents the first state information, S 2 represents the second state information, a represents the weight assigned to the first state information, and b represents the weight assigned to the second state information.

应当说明的是,本申请实施例中对于第一状态信息和第二状态信息的权重配置方式不做具体限定,可由本领域普通技术人员根据实际需要进行配置。比如,可以为第二状态信息和第一状态信息配置静态权重,即预先为第二状态信息和第一状态信息分配固定不变的权重,也可以为第二状态信息和第一状态信息配置动态权重,即第二状态信息和第一状态信息根据某指定条件动态变化。It should be noted that the weight configuration manner of the first state information and the second state information is not specifically limited in the embodiments of the present application, and can be configured by those of ordinary skill in the art according to actual needs. For example, a static weight may be configured for the second state information and the first state information, that is, a fixed weight may be assigned to the second state information and the first state information in advance, or a dynamic weight may be configured for the second state information and the first state information The weight, that is, the second state information and the first state information, changes dynamically according to a specified condition.

比如,可以将第一状态信息的权重配置为0.9,将第二状态信息的权重配置为0.1;For example, the weight of the first state information may be configured as 0.9, and the weight of the second state information may be configured as 0.1;

又比如,可以根据图像信号前处理器所进行的前处理来动态分配第一状态信息和第二状态信息的权重,其中,前述图像数据在前处理前后的图像差异越大,配置第一状态信息的权重越大,配置第二状态信息的权重越小;前述图像数据在前处理前后的图像差异越小,配置第一状态信息权重越小,配置第二状态信息的权重越大。For another example, the weights of the first state information and the second state information can be dynamically allocated according to the preprocessing performed by the image signal preprocessor, wherein, the greater the image difference between the aforementioned image data before and after the preprocessing, the configuration of the first state information. The larger the weight of , the smaller the weight of configuring the second state information; the smaller the image difference before and after the pre-processing of the image data, the smaller the weight of configuring the first state information, and the greater the weight of configuring the second state information.

应当说明的是,第一状态信息和第二状态信息包括多个不同维度的状态信息,应用处理器140按照本申请提供的以上融合策略,在各维度分别进行状态信息的融合,比如,第一状态信息中的亮度和第二状态信息中的亮度融合,第一状态信息中的清晰度和第二状态信息中的清晰度融合等。It should be noted that the first state information and the second state information include multiple state information of different dimensions, and the application processor 140 fuses the state information in each dimension according to the above fusion strategy provided in this application. The brightness in the state information is fused with the brightness in the second state information, the sharpness in the first state information and the sharpness in the second state information are fused, and so on.

可选地,在一实施例中,本申请提供的图像处理方法还包括:Optionally, in an embodiment, the image processing method provided by this application further includes:

通过图像信号前处理器120将第一状态信息以及前处理图像数据传输至图像信号处理器130;The first state information and the pre-processed image data are transmitted to the image signal processor 130 through the image signal pre-processor 120;

通过图像信号处理器130对前处理图像数据进行后处理,得到后处理图像数据;Perform post-processing on the pre-processed image data by the image signal processor 130 to obtain post-processed image data;

通过图像信号处理器130将后处理图像数据、第一状态信息、第二状态信息以及第一指示信息发送至应用处理器140;Send the post-processed image data, the first state information, the second state information and the first indication information to the application processor 140 through the image signal processor 130;

通过应用处理器140根据第一指示信息融合第一状态信息和第二状态信息得到目标状态信息。The target state information is obtained by fusing the first state information and the second state information according to the first indication information by the application processor 140 .

请参照图3,本申请实施例中,图像信号前处理器120在统计得到来自于图像传感器110的图像数据的第一状态信息,并对前述图像数据进行前处理,得到前处理图像数据之后,将第一状态信息以及前处理图像数据传输至图像信号处理器130。比如,图像信号前处理器120基于其与图像信号处理器130之间的MIPI接口,将统计得到的第一状态信息和前处理得到的前处理图像数据传输至图像信号处理器130。Referring to FIG. 3 , in the embodiment of the present application, the image signal pre-processor 120 obtains the first state information of the image data from the image sensor 110 according to statistics, and pre-processes the aforementioned image data, and after obtaining the pre-processed image data, The first state information and the pre-processed image data are transmitted to the image signal processor 130 . For example, the image signal pre-processor 120 transmits the first state information obtained by statistics and the pre-processed image data obtained by the pre-processing to the image signal processor 130 based on the MIPI interface between it and the image signal processor 130 .

图像信号处理器130在接收到来自于图像信号前处理器120的第一状态信息以及前处理图像数据之后,除了对前处理图像数据进行状态统计得到第二状态信息之外,还对前处理图像数据进行后处理,得到后处理图像数据。After the image signal processor 130 receives the first state information from the image signal pre-processor 120 and the pre-processed image data, in addition to performing state statistics on the pre-processed image data to obtain the second state information, the image signal processor 130 also performs state statistics on the pre-processed image data. The data is post-processed to obtain post-processed image data.

其中,本申请实施例对于图像信号处理器130所进行的后处理不做具体限定,以与图像信号前处理器120的前处理差异化为约束(即图像信号前处理器120执行过同一优化处理,图像信号处理器130不再执行),可由本领域普通技术人员根据实际需要进行配置。比如,图像信号处理器130进行的后处理比如强光抑制、背光补偿、色彩增强、镜头阴影校正等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The embodiments of the present application do not specifically limit the post-processing performed by the image signal processor 130, and the difference from the pre-processing performed by the image signal pre-processor 120 is a constraint (that is, the image signal pre-processor 120 has performed the same optimization process. , the image signal processor 130 is no longer executed), which can be configured by those of ordinary skill in the art according to actual needs. For example, post-processing performed by the image signal processor 130, such as optimized processing methods such as strong light suppression, backlight compensation, color enhancement, and lens shadow correction, may, of course, also include optimized processing methods not listed in this application.

图像信号处理器130在完成对前处理图像数据的后处理,相应得到后处理图像数据,并统计得到第二状态信息之后,生成第一指示信息,将后处理图像数据、第一状态信息、第二状态信息以及第一指示信息发送至应用处理器140。After the image signal processor 130 completes the post-processing of the pre-processed image data, correspondingly obtains the post-processed image data, and obtains the second state information by statistics, the image signal processor 130 generates the first indication information, and combines the post-processed image data, the first state information, and the second state information. The second state information and the first indication information are sent to the application processor 140 .

相应的,应用处理器140根据第一指示融合第一状态信息和第二状态信息得到目标状态信息。Correspondingly, the application processor 140 obtains the target state information by fusing the first state information and the second state information according to the first instruction.

可选地,在一实施例中,本申请提供的图像处理方法还包括:Optionally, in an embodiment, the image processing method provided by this application further includes:

当后处理图像数据为动态图像数据时,通过应用处理器140预览后处理图像数据和/或根据后处理图像数据进行视频编码;或者,When the post-processed image data is dynamic image data, preview the post-processed image data through the application processor 140 and/or perform video encoding according to the post-processed image data; or,

当后处理图像数据为静态图像时,通过应用处理器140根据后处理图像数据进行图像编码。When the post-processed image data is a still image, the application processor 140 performs image coding according to the post-processed image data.

应当说明的是,图像类型并不随着对图像数据的处理而改变,即,原始的图像数据为静态图像,则相应处理得到的前处理图像数据/后处理图像数据也为静态图像,原始的图像数据为动态图像,则相应处理得到的前处理图像数据/后处理图像数据也为动态图像。其中,静态图像比如实时拍摄的单帧图像,动态图像比如预览时采集的图像序列中的一帧图像,录像时采集的图像序列中的一帧图像。It should be noted that the image type does not change with the processing of the image data, that is, if the original image data is a static image, the pre-processed image data/post-processed image data obtained by the corresponding processing is also a static image, and the original image If the data is a dynamic image, the pre-processed image data/post-processed image data obtained by corresponding processing is also a dynamic image. Among them, the static image is such as a single frame of image captured in real time, the dynamic image is such as one frame of image in the image sequence collected during preview, and one frame of image in the image sequence collected during video recording.

可选地,在一实施例中,通过图像信号前处理器120将第一状态信息以及前处理图像数据传输至图像信号处理器130,包括:Optionally, in an embodiment, the first state information and the pre-processed image data are transmitted to the image signal processor 130 through the image signal pre-processor 120, including:

在当前的传输模式被配置为第一传输模式时,通过图像信号前处理器120将第一状态信息以及前处理图像数据传输至图像信号处理器130。When the current transmission mode is configured as the first transmission mode, the first state information and the pre-processed image data are transmitted to the image signal processor 130 through the image signal pre-processor 120 .

应当说明的是,本申请实施例中提供有两种可选的传输模式,分别为第一传输模式和第二传输模式。It should be noted that two optional transmission modes are provided in this embodiment of the present application, which are a first transmission mode and a second transmission mode, respectively.

其中,图像信号前处理器120在当前的传输模式被配置为第一传输模式(或称同步传输模式),将第一状态信息以及前处理图像数据传输至图像信号处理器130,经由图像信号处理器130将第一状态信息传输至应用处理器140,此外,图形信号处理器130还将对前处理图像数据后处理的后处理图像数据、对后处理图像数据统计得到的第二状态信息以及生成的第一指示信息随同第一状态信息传输至应用处理器140,具体可参照以上实施例中的相关描述,此处不再赘述。The image signal pre-processor 120 is configured as the first transmission mode (or synchronous transmission mode) in the current transmission mode, and transmits the first state information and the pre-processed image data to the image signal processor 130, and processes the image signal through the image signal processor 130. The processor 130 transmits the first state information to the application processor 140. In addition, the graphics signal processor 130 will also perform post-processing image data post-processing on the pre-processed image data, and second state information obtained from statistics on the post-processing image data. The first indication information is transmitted to the application processor 140 along with the first state information. For details, reference may be made to the relevant descriptions in the above embodiments, which will not be repeated here.

可选地,在一实施例中,本申请提供的图像处理方法还包括:Optionally, in an embodiment, the image processing method provided by this application further includes:

在当前的传输模式被配置为第二传输模式时,通过图像信号前处理器120发送第一状态信息以及第二指示信息至应用处理器140;When the current transmission mode is configured as the second transmission mode, send the first state information and the second indication information to the application processor 140 through the image signal preprocessor 120;

通过应用处理器140根据第二指示信息融合第一状态信息和第二状态信息得到目标状态信息。The target state information is obtained by fusing the first state information and the second state information according to the second indication information by the application processor 140 .

请参照图4,本申请实施例中图像信号前处理器120还与应用处理器140连接,图像信号前处理器120在当前的传输模式被配置为第二传输模式时,将第一状态信息直接传输至应用处理器140。Referring to FIG. 4 , in this embodiment of the present application, the image signal pre-processor 120 is also connected to the application processor 140. When the current transmission mode is configured as the second transmission mode, the image signal pre-processor 120 directly converts the first state information to transmitted to the application processor 140 .

另一方面,图像信号前处理器120还将对前述图像数据进行前处理所得到的前处理图像数据传输至图像信号处理器130。相应的,图像信号处理器130除了对前处理图像数据进行状态统计得到第二状态信息之外,还对前处理图像数据进行后处理,得到后处理图像数据。On the other hand, the image signal pre-processor 120 also transmits the pre-processed image data obtained by pre-processing the aforementioned image data to the image signal processor 130 . Correspondingly, in addition to performing state statistics on the pre-processed image data to obtain the second state information, the image signal processor 130 also performs post-processing on the pre-processed image data to obtain post-processed image data.

其中,本申请实施例对于图像信号处理器130所进行的后处理不做具体限定,以与图像信号前处理器120的前处理差异化为约束(即图像信号前处理器120执行过同一优化处理,图像信号处理器130不再执行),可由本领域普通技术人员根据实际需要进行配置。比如,图像信号处理器130进行的后处理比如强光抑制、背光补偿、色彩增强、镜头阴影校正等优化处理方式,当然,还可以包括本申请所未列出的优化处理方式。The embodiments of the present application do not specifically limit the post-processing performed by the image signal processor 130, and the difference from the pre-processing performed by the image signal pre-processor 120 is a constraint (that is, the image signal pre-processor 120 has performed the same optimization process. , the image signal processor 130 is no longer executed), which can be configured by those of ordinary skill in the art according to actual needs. For example, post-processing performed by the image signal processor 130, such as optimized processing methods such as strong light suppression, backlight compensation, color enhancement, and lens shadow correction, may, of course, also include optimized processing methods not listed in this application.

图像信号处理器130在完成对前处理图像数据的后处理,相应得到后处理图像数据,并统计得到第二状态信息之后,将后处理图像数据、第二状态信息发送至应用处理器140。The image signal processor 130 sends the post-processed image data and the second state information to the application processor 140 after completing the post-processing of the pre-processed image data, correspondingly obtaining the post-processed image data, and statistically obtaining the second state information.

应用处理器140还用于根据第二指示信息融合第一状态信息和第二状态信息得到目标状态信息。The application processor 140 is further configured to obtain target state information by fusing the first state information and the second state information according to the second indication information.

可选地,在一实施例中,本申请提供的图像处理方法还包括:Optionally, in an embodiment, the image processing method provided by this application further includes:

根据历史图像数据进行分析,得到分析结果;Analyze according to historical image data to obtain analysis results;

根据分析结果配置传输模式为第一模式或第二模式。Configure the transmission mode as the first mode or the second mode according to the analysis result.

其中,历史图像数据为前述图像数据之前采集的图像数据。图像信号前处理器120根据前述图像数据之前获取到的历史图像数据,按照配置的分析策略对历史图像数据进行分析,得到分析结果,然后根据分析结果配置传输模式为第一模式和第二模式。The historical image data is image data collected before the aforementioned image data. The image signal preprocessor 120 analyzes the historical image data according to the configured analysis strategy according to the historical image data obtained before the aforementioned image data, obtains the analysis result, and then configures the transmission mode as the first mode and the second mode according to the analysis result.

示例性的,历史图像数据为图像传感器110在采集前述图像数据之前采集的图像数据,由于前述历史图像数据和前述图像数据连续采集,前述历史图像数据和前述图像数据的图像内容基本相同。图像信号前处理器120获取到预设个数的历史图像数据的前处理时长,根据预设个数的前处理时长预测得到图像数据的前处理时长,并判断前述图像数据的前处理时长是否达到预设时长,若达到预设时长,则配置传输模式为第二模式,若未达到预设时长,则配置传输模式为第一模式。其中,预设时长可由本领域普通技术人员根据实际需要取经验值。Exemplarily, the historical image data is image data collected by the image sensor 110 before collecting the aforementioned image data. Since the aforementioned historical image data and the aforementioned image data are continuously collected, the aforementioned historical image data and the aforementioned image data have substantially the same image content. The image signal pre-processor 120 obtains the pre-processing duration of a preset number of historical image data, predicts the pre-processing duration of the image data according to the pre-processing duration of the preset number, and determines whether the pre-processing duration of the aforementioned image data reaches The preset duration, if the preset duration is reached, the transmission mode is configured as the second mode, and if the preset duration is not reached, the transmission mode is configured as the first mode. Wherein, the preset duration can be an empirical value obtained by those of ordinary skill in the art according to actual needs.

比如,在根据预设个数的前处理时长预测得到图像数据的前处理时长时,图像信号前处理器120可以求取预设个数的前处理时长的平均处理时长,作为前述图像数据的前处理时长。For example, when the preprocessing duration of the image data is predicted and obtained according to the preset number of preprocessing durations, the image signal preprocessor 120 may obtain the average processing duration of the preset number of preprocessing durations as the preprocessing duration of the aforementioned image data. Processing time.

又比如,在根据预设个数的前处理时长预测得到图像数据的前处理时长时,图像信号前处理器120可以对预设个数的前处理时长进行加权求和,将得到加权和值作为前述图像数据的前处理时长,其中,对于前述预设个数的前处理时长,若其对应的历史图像数据相较于前述图像数据越早采集,则其权重越小。For another example, when the pre-processing duration of the image data is predicted and obtained according to the pre-processing duration of the preset number, the image signal pre-processor 120 may perform a weighted sum on the pre-processing duration of the preset number, and use the weighted sum as the obtained weighted sum. The preprocessing duration of the aforementioned image data, wherein, for the aforementioned preset number of preprocessing durations, if the corresponding historical image data is collected earlier than the aforementioned image data, the weight is smaller.

可选地,在一实施例中,图像传感器110为多个,本申请提供的图像处理方法还包括:Optionally, in an embodiment, there are multiple image sensors 110, and the image processing method provided by this application further includes:

通过应用处理器140同步更新每一图像传感器110的图像采集参数。The image acquisition parameters of each image sensor 110 are synchronously updated by the application processor 140 .

本申请实施例中,对于每一图像传感器110,按照以上任一实施例中所提供的图像采集参数的计算方式,相应进行得到新的图像采集参数,然后按照每一图像传感器110新的的图像采集参数,同步更新每一图像传感器的图像采集参数。In the embodiment of the present application, for each image sensor 110, new image acquisition parameters are obtained according to the calculation method of the image acquisition parameters provided in any of the above embodiments, and then new image acquisition parameters are obtained according to the new image of each image sensor 110. Acquisition parameters, synchronously update the image acquisition parameters of each image sensor.

以上对本申请实施例提供的电子设备和图像处理方法进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请。同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The electronic device and the image processing method provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described herein by using specific examples, and the descriptions of the above embodiments are only used to help the understanding of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. To sum up, the content of this specification should not be construed as a limitation to the present application.

Claims (10)

1. An electronic device, comprising:
the image sensor is used for acquiring image data according to the configured image acquisition parameters;
the image signal preprocessor is used for counting state information used for updating image acquisition parameters of the image sensor in the image data to obtain first state information, and preprocessing the image data to obtain preprocessed image data;
the image signal processor is used for counting state information used for updating the image acquisition parameters of the image sensor in the pre-processing image data to obtain second state information;
and the application processor is used for fusing the first state information and the second state information to obtain target state information and updating the image acquisition parameters of the image sensor according to the target state information.
2. The electronic device of claim 1, wherein the application processor is configured to:
acquiring a first weight value corresponding to the first state information and acquiring a second weight value corresponding to the second state information;
and carrying out weighted summation according to the first state information, the first weight value, the second state information and the second weight value to obtain the target state information.
3. The electronic device of claim 1, wherein the image signal pre-processor is further configured to transmit the first state information and the pre-processed image data to the image signal processor;
the image signal processor is also used for carrying out post-processing on the pre-processed image data to obtain post-processed image data; and
sending the post-processing image data, the first state information, the second state information and first indication information to the application processor;
the application processor is further configured to obtain the target state information by fusing the first state information and the second state information according to the first indication information.
4. The electronic device of claim 3, wherein the image signal pre-processor is further configured to transmit the first status information and the pre-processed image data to the image signal processor when a current transmission mode is configured as a first transmission mode.
5. The electronic device of claim 4, wherein the image signal pre-processor is further configured to send the first status information and second indication information to the application processor when a current transmission mode is configured as a second transmission mode;
the application processor is further configured to obtain the target state information by fusing the first state information and the second state information according to the second indication information.
6. The electronic device of claim 4 or 5, wherein the image signal pre-processor is further configured to:
analyzing according to the historical image data to obtain an analysis result;
and configuring the transmission mode to be a first mode or a second mode according to the analysis result.
7. The electronic device of any of claims 1-5, wherein the image sensor is multiple, and wherein the application processor is further configured to update image acquisition parameters of each image sensor synchronously.
8. An image processing method applied to an electronic device, wherein the electronic device comprises an image sensor, an image signal pre-processor, an image signal processor and an application processor, the image processing method comprising:
acquiring image data through the image sensor according to the configured image acquisition parameters;
counting state information used for updating image acquisition parameters of the image sensor in the image data through the image signal preprocessor to obtain first state information, and preprocessing the image data to obtain preprocessed image data;
counting state information used for updating image acquisition parameters of the image sensor in the pre-processing image data through the image signal processor to obtain second state information;
and fusing the first state information and the second state information through the application processor to obtain target state information, and updating the image acquisition parameters of the image sensor according to the target state information.
9. The image processing method according to claim 8, further comprising:
transmitting the first state information and the pre-processed image data to the image signal processor through the image signal pre-processor when a current transmission mode is configured as a first transmission mode;
post-processing the pre-processed image data through the image signal processor to obtain post-processed image data; and sending the post-processing image data, the first state information, the second state information and first indication information to the application processor;
and fusing the first state information and the second state information according to the first indication information through the application processor to obtain the target state information.
10. The image processing method according to claim 8, further comprising:
transmitting the first state information and second indication information to the application processor through the image signal pre-processor when the current transmission mode is configured as a second transmission mode;
and fusing the first state information and the second state information according to the second indication information through the application processor to obtain the target state information.
CN202010682841.0A 2020-07-15 2020-07-15 Electronic device and image processing method Active CN114007009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010682841.0A CN114007009B (en) 2020-07-15 2020-07-15 Electronic device and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010682841.0A CN114007009B (en) 2020-07-15 2020-07-15 Electronic device and image processing method

Publications (2)

Publication Number Publication Date
CN114007009A true CN114007009A (en) 2022-02-01
CN114007009B CN114007009B (en) 2023-08-18

Family

ID=79920183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010682841.0A Active CN114007009B (en) 2020-07-15 2020-07-15 Electronic device and image processing method

Country Status (1)

Country Link
CN (1) CN114007009B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140307117A1 (en) * 2013-04-15 2014-10-16 Htc Corporation Automatic exposure control for sequential images
CN107147837A (en) * 2017-06-30 2017-09-08 维沃移动通信有限公司 A shooting parameter setting method and mobile terminal
CN108370414A (en) * 2016-10-29 2018-08-03 华为技术有限公司 A kind of image pickup method and terminal
WO2019056242A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Camera photographing parameter setting method for smart terminal, setting device, and smart terminal
CN110022420A (en) * 2019-03-13 2019-07-16 华中科技大学 A kind of image scanning system based on CIS, method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140307117A1 (en) * 2013-04-15 2014-10-16 Htc Corporation Automatic exposure control for sequential images
CN108370414A (en) * 2016-10-29 2018-08-03 华为技术有限公司 A kind of image pickup method and terminal
CN107147837A (en) * 2017-06-30 2017-09-08 维沃移动通信有限公司 A shooting parameter setting method and mobile terminal
WO2019056242A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Camera photographing parameter setting method for smart terminal, setting device, and smart terminal
CN110022420A (en) * 2019-03-13 2019-07-16 华中科技大学 A kind of image scanning system based on CIS, method and storage medium

Also Published As

Publication number Publication date
CN114007009B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN108391035B (en) A shooting method, device and equipment
EP4033750B1 (en) Method and device for processing image, and storage medium
CN112822371B (en) Image processing chip, application processing chip, data statistical system and method
EP2141654A1 (en) System and method for efficiently performing image processing operations
CN110290325A (en) Image processing method, device, storage medium and electronic device
KR20140080815A (en) Photographing apparatus, method for controlling the same, and computer-readable storage medium
JP2021136461A (en) Imaging equipment, control methods, programs and storage media
CN116634279A (en) Image processing method, device, electronic equipment and storage medium
EP4492806A1 (en) Exposure photographing method and apparatus, device, storage medium, and program product
CN110753182A (en) Adjusting method and apparatus of image forming apparatus
JP4499908B2 (en) Electronic camera system, electronic camera, server computer, and photographing condition correction method
CN113705553B (en) Visual task execution method, device, electronic equipment, storage medium and system
JP2020072469A (en) Information processing apparatus, control method and program of the same, and imaging system
US9807311B2 (en) Imaging apparatus, video data transmitting apparatus, video data transmitting and receiving system, image processing method, and program
CN114007009A (en) Electronic device and image processing method
CN113747145B (en) Image processing circuit, electronic apparatus, and image processing method
CN113744125A (en) Image processing method, storage medium, and electronic device
WO2024078032A1 (en) Signal processing method and apparatus, device, storage medium, and computer program
CN113766142B (en) Image processing apparatus, image signal preprocessing module, device, and processing method
CN113873142A (en) Multimedia processing chip, electronic device and dynamic image processing method
CN113792708B (en) ARM-based remote target clear imaging system and method
CN113923341A (en) Electronic equipment
CN113781288A (en) Electronic device and image processing method
CN116095454A (en) An image processing method and electronic device
CN113763255A (en) Image processing method, image processing device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant