CN117278689A - Image processing method and electronic equipment - Google Patents

Image processing method and electronic equipment Download PDF

Info

Publication number
CN117278689A
CN117278689A CN202311269983.4A CN202311269983A CN117278689A CN 117278689 A CN117278689 A CN 117278689A CN 202311269983 A CN202311269983 A CN 202311269983A CN 117278689 A CN117278689 A CN 117278689A
Authority
CN
China
Prior art keywords
image
resolution
processor
image processor
processing
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.)
Pending
Application number
CN202311269983.4A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311269983.4A priority Critical patent/CN117278689A/en
Publication of CN117278689A publication Critical patent/CN117278689A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/40068Modification of image resolution, i.e. determining the values of picture elements at new relative positions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/23Reproducing arrangements
    • H04N1/2307Circuits or arrangements for the control thereof, e.g. using a programmed control device, according to a measured quantity
    • H04N1/2361Selecting a particular reproducing device from amongst a plurality of devices, e.g. high or low resolution devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/333Mode signalling or mode changing; Handshaking therefor
    • H04N1/33307Mode signalling or mode changing; Handshaking therefor prior to start of transmission, input or output of the picture signal only
    • H04N1/33315Mode signalling or mode changing; Handshaking therefor prior to start of transmission, input or output of the picture signal only reading or reproducing mode only, e.g. sheet size, resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/3871Composing, repositioning or otherwise geometrically modifying originals the composed originals being of different kinds, e.g. low- and high-resolution originals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种图像处理方法及电子设备,属于图像处理领域。所述方法应用于电子设备,所述电子设备包括第一图像处理器和第二图像处理器;所述方法包括:所述第一图像处理器对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;所述第一分辨率是电子设备支持的最大分辨率;所述第一图像处理器向所述第二图像处理器传输所述第一图像;所述第二图像处理器对所述第一图像进行效果处理获得第二图像;所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。

This application discloses an image processing method and electronic equipment, which belong to the field of image processing. The method is applied to an electronic device, and the electronic device includes a first image processor and a second image processor; the method includes: the first image processor performs a first process on the original image output by the image sensor to obtain A first image with a first resolution; the first resolution is a maximum resolution supported by the electronic device; the first image processor transmits the first image to the second image processor; the first image processor The second image processor performs effect processing on the first image to obtain a second image; the second image processor performs second processing on the second image to obtain a third image with a second resolution. The second resolution is the resolution selected by the user.

Description

图像处理方法及电子设备Image processing method and electronic equipment

技术领域Technical field

本申请属于图像处理技术领域,具体涉及一种图像处理方法及电子设备。The present application belongs to the field of image processing technology, and specifically relates to an image processing method and electronic equipment.

背景技术Background technique

随着移动电子设备的快速发展,用户对视频录像所支持分辨率的要求也越来越多。常见的录像分辨率有1280*720、1920*1080、3840*2160,以及其对应的电影画幅1280*528、1920*800、3840*1600。目前的技术方案是自带图像处理器,通过压缩或裁剪来实现对不同分辨率的支持。With the rapid development of mobile electronic devices, users have more and more requirements for the resolution supported by video recording. Common video resolutions are 1280*720, 1920*1080, 3840*2160, and their corresponding movie frames 1280*528, 1920*800, 3840*1600. The current technical solution is to have a built-in image processor to support different resolutions through compression or cropping.

自带图像处理器接收到图像传感器发来的原始图像后,首先根据用户选择的分辨率,将原始图像进行处理,获得用户需要的分辨率再进行后续的防抖、美颜、滤镜等图像算法处理。这将要求所有算法执行过程都必须支持多种分辨率的图像处理,导致所有图像算法的复杂度增大。After the built-in image processor receives the original image from the image sensor, it first processes the original image according to the resolution selected by the user, obtains the resolution required by the user, and then performs subsequent image stabilization, beautification, filters, etc. Algorithmic processing. This will require that all algorithm execution processes must support image processing at multiple resolutions, resulting in an increase in the complexity of all image algorithms.

发明内容Contents of the invention

本申请实施例的目的是提供一种图像处理方法及电子设备,用以解决现有的图像处理过程的复杂度较大的问题。The purpose of the embodiments of the present application is to provide an image processing method and electronic device to solve the problem of high complexity of the existing image processing process.

第一方面,本申请实施例提供了一种图像处理方法,应用于电子设备,所述电子设备包括第一图像处理器和第二图像处理器:In a first aspect, embodiments of the present application provide an image processing method, applied to an electronic device, where the electronic device includes a first image processor and a second image processor:

所述方法包括:The methods include:

所述第一图像处理器对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;所述第一分辨率是电子设备支持的最大分辨率;The first image processor performs first processing on the original image output by the image sensor to obtain a first image with a first resolution; the first resolution is the maximum resolution supported by the electronic device;

所述第一图像处理器向所述第二图像处理器传输所述第一图像;the first image processor transmits the first image to the second image processor;

所述第二图像处理器对所述第一图像进行效果处理获得第二图像;The second image processor performs effect processing on the first image to obtain a second image;

所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。The second image processor performs a second process on the second image to obtain a third image with a second resolution, where the second resolution is a resolution selected by the user.

第二方面,本申请实施例提供了一种电子设备,包括:In a second aspect, embodiments of the present application provide an electronic device, including:

第一图像处理器,用于对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;向所述第二图像处理器传输所述第一图像;所述第一分辨率是电子设备支持的最大分辨率;A first image processor, configured to perform first processing on the original image output by the image sensor to obtain a first image with a first resolution; transmit the first image to the second image processor; the first The resolution is the maximum resolution supported by the electronic device;

第二图像处理器,用于对所述第一图像进行效果处理获得第二图像;对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。a second image processor, configured to perform effect processing on the first image to obtain a second image; perform second processing on the second image to obtain a third image with a second resolution, the second resolution is the resolution selected by the user.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor. The program or instructions are When executed by the processor, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .

第五方面,本申请实施例还提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application further provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first step. methods described in this regard.

本申请的实施例,第一图像处理器对原始图像进行第一处理获得具有最大分辨率的第一图像;第二图像处理器对所述第一图像进行效果处理获得第二图像,该第二图像同样具有最大分辨率;第二图像处理器对第二图像进行第二处理,获得满足用户需求的第二分辨率的第三图像。因此,在第一图像处理器和第二图像处理器对于图像处理的过程中,只需要处理单一分辨率的图像,图像处理器内部的算法也只需要支持一种分辨率图像即可,通过分级处理最大分辨率图像,最后再调整为用户需求的图像分辨率的方法,简化了对不同分辨率图像的处理逻辑,简化了系统通路及算法的复杂度。In the embodiment of the present application, the first image processor performs first processing on the original image to obtain a first image with maximum resolution; the second image processor performs effect processing on the first image to obtain a second image, and the second image The image also has a maximum resolution; the second image processor performs a second process on the second image to obtain a third image with a second resolution that meets the user's needs. Therefore, in the image processing process of the first image processor and the second image processor, they only need to process images of a single resolution, and the algorithm inside the image processor only needs to support images of one resolution. The method of processing the maximum resolution image and finally adjusting it to the image resolution required by the user simplifies the processing logic of images with different resolutions and simplifies the complexity of system pathways and algorithms.

附图说明Description of the drawings

图1是本申请实施例的图像处理方法的流程示意图之一;Figure 1 is one of the flow diagrams of the image processing method according to the embodiment of the present application;

图2是本申请实施例的图像处理方法的流程示意图之二;Figure 2 is the second schematic flow chart of the image processing method according to the embodiment of the present application;

图3是本申请实施例的电子设备的结构示意图之一;Figure 3 is one of the structural schematic diagrams of an electronic device according to an embodiment of the present application;

图4表示本申请实施例的电子设备的结构示意图之二;Figure 4 shows the second structural schematic diagram of the electronic device according to the embodiment of the present application;

图5表示本申请实施例的电子设备的结构示意图之三。FIG. 5 shows the third structural schematic diagram of the electronic device according to the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first" and "second" features in the description and claims of this application may include one or more of these features, either explicitly or implicitly. In the description of the present invention, unless otherwise specified, "plurality" means two or more. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

如图1所示,本申请实施例提供一种图像处理方法,应用于电子设备,所述电子设备包括第一图像处理器和第二图像处理器;所述方法包括:As shown in Figure 1, an embodiment of the present application provides an image processing method, which is applied to an electronic device. The electronic device includes a first image processor and a second image processor; the method includes:

步骤101、所述第一图像处理器对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;所述第一分辨率是电子设备支持的最大分辨率;Step 101. The first image processor performs a first process on the original image output by the image sensor to obtain a first image with a first resolution; the first resolution is the maximum resolution supported by the electronic device;

步骤102、所述第一图像处理器向所述第二图像处理器传输所述第一图像;Step 102: The first image processor transmits the first image to the second image processor;

步骤103、所述第二图像处理器对所述第一图像进行效果处理获得第二图像;Step 103: The second image processor performs effect processing on the first image to obtain a second image;

步骤104、所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。Step 104: The second image processor performs a second process on the second image to obtain a third image with a second resolution, where the second resolution is the resolution selected by the user.

该实施例中,所述第一图像处理器可以是电子设备的主控芯片中的图像处理模块,所述第二图像处理器可以是电子设备的独立的图像处理芯片,所述图像处理芯片与所述主控芯片连接,实现本申请实施例的图像处理的过程。In this embodiment, the first image processor may be an image processing module in the main control chip of the electronic device, and the second image processor may be an independent image processing chip of the electronic device, and the image processing chip and The main control chip is connected to implement the image processing process of the embodiment of the present application.

所述第一图像处理器与电子设备的图像传感器连接,图像传感器根据当前场景,按照固定帧率生成连续原始图像流,并传输给所述第一图像处理器进行前端处理,所述前端处理例如:图像格式转换、将图像裁剪为支持的最大图像、电子防抖、人脸检测、空间对齐转换等。The first image processor is connected to an image sensor of the electronic device. The image sensor generates a continuous original image stream at a fixed frame rate according to the current scene and transmits it to the first image processor for front-end processing. The front-end processing is, for example, : Image format conversion, image cropping to the largest supported image, electronic image stabilization, face detection, spatial alignment conversion, etc.

所述第一图像处理器接收到图像传感器传输的原始图像后,对原始图像进行第一处理,所述第一处理可以是裁剪处理,即将所述原始图像裁剪为电子设备支持的最大分辨率图像,获得所述第一图像。所述第一图像处理器和所述第二图像处理器连接,所述第一图像处理器将具有最大分辨率的第一图像发送给所述第二图像处理器,所述第二图像处理器对所述第一图像进行效果处理,获得第二图像。其中,所述效果处理例如:虚化、降噪、美颜等处理,效果处理不会改变图像的分辨率。所述第二图像处理器对第二图像进行第二处理,获得满足用户需求的目标分辨率的第三图像。由于所述第二图像处理器接收到的第一图像的分辨率是第一分辨率,在进行效果处理以及第二处理时,都是基于一种分辨率的图像处理,因此外挂图像处理器的处理逻辑,相较于多种分辨率的图像处理过程更简单。对于外挂图像处理器,由于只需要处理单一分辨率的图像,其内部的算法也只需要支持一种分辨率图像即可,算法逻辑得到了简化。After receiving the original image transmitted by the image sensor, the first image processor performs first processing on the original image. The first processing may be a cropping process, that is, cropping the original image into a maximum resolution image supported by the electronic device. , obtain the first image. The first image processor is connected to the second image processor. The first image processor sends the first image with the maximum resolution to the second image processor. The second image processor Perform effect processing on the first image to obtain a second image. Among them, the effect processing includes blurring, noise reduction, beautification, etc. The effect processing will not change the resolution of the image. The second image processor performs second processing on the second image to obtain a third image with a target resolution that meets user requirements. Since the resolution of the first image received by the second image processor is the first resolution, the effect processing and the second processing are all based on image processing of one resolution. Therefore, the external image processor The processing logic is simpler than the image processing process of multiple resolutions. For external image processors, since they only need to process images of a single resolution, their internal algorithms only need to support images of one resolution, and the algorithm logic is simplified.

第一图像处理器与第二图像处理器实现了对图像的多级处理,且在处理过程中均只需要处理单一分辨率的图像,即只需支持最大分辨率的图像处理,极大地简化了系统通路及算法的复杂度。The first image processor and the second image processor implement multi-level processing of images, and during the processing process, they only need to process images of a single resolution, that is, they only need to support image processing of the maximum resolution, which greatly simplifies The complexity of system pathways and algorithms.

本申请的实施例,第一图像处理器对原始图像进行第一处理获得具有最大分辨率的第一图像;第二图像处理器对所述第一图像进行效果处理获得第二图像,该第二图像同样具有最大分辨率;第二图像处理器对第二图像进行第二处理,获得满足用户需求的第二分辨率的第三图像。因此,在第一图像处理器和第二图像处理器对于图像处理的过程中,只需要处理单一分辨率的图像,图像处理器内部的算法也只需要支持一种分辨率图像即可,通过分级处理最大分辨率图像,最后再调整为用户需求的图像分辨率的方法,简化了对不同分辨率图像的处理逻辑,简化了系统通路及算法的复杂度。In the embodiment of the present application, the first image processor performs first processing on the original image to obtain a first image with maximum resolution; the second image processor performs effect processing on the first image to obtain a second image, and the second image The image also has a maximum resolution; the second image processor performs a second process on the second image to obtain a third image with a second resolution that meets the user's needs. Therefore, in the image processing process of the first image processor and the second image processor, they only need to process images of a single resolution, and the algorithm inside the image processor only needs to support images of one resolution. The method of processing the maximum resolution image and finally adjusting it to the image resolution required by the user simplifies the processing logic of images with different resolutions and simplifies the complexity of system pathways and algorithms.

可选的,所述方法还包括:Optionally, the method also includes:

第一图像处理器对所述第一图像进行第三处理,向所述第二图像处理器传输所述第三处理后的第一图像;The first image processor performs third processing on the first image, and transmits the third processed first image to the second image processor;

其中,所述第三处理包括以下至少一项:Wherein, the third processing includes at least one of the following:

电子防抖(Electronic Image Stabilization,EIS);Electronic Image Stabilization (EIS);

人脸检测;Face Detection;

空间对齐转换(Spatial Alignment Transform,SAT)。Spatial Alignment Transform (SAT).

该实施例中,所述第一图像处理器获得具有最大分辨率的第一图像后,还可以对所述第一图像进行EIS、人脸检测、SAT等一项或者多项处理,这样第一图像处理器进行图像处理过程中的所有算法,只需要支持一种分辨率的图像处理,对于所有的分辨率要求场景以及电影画幅场景,所述第一图像处理器中的处理流程及算法都相同,因此该部分不需要单独定制化修改,极大地简化了系统通路及算法的复杂度。In this embodiment, after the first image processor obtains the first image with the maximum resolution, it can also perform one or more processes on the first image such as EIS, face detection, SAT, etc., so that the first image processor All algorithms in the image processing process of the image processor only need to support image processing of one resolution. For all resolution required scenes and movie frame scenes, the processing flow and algorithm in the first image processor are the same. , so this part does not require separate customized modifications, which greatly simplifies the complexity of the system path and algorithm.

可选的,所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,包括以下至少一项:Optionally, the second image processor performs a second process on the second image to obtain a third image with a second resolution, including at least one of the following:

所述第二图像处理器对所述第二图像进行下采样,获得具有第二分辨率的第三图像;The second image processor downsamples the second image to obtain a third image with a second resolution;

所述第二图像处理器对所述第二图像进行裁剪,获得具有第二分辨率的第三图像。The second image processor crops the second image to obtain a third image with a second resolution.

该实施例中,第一图像处理器将处理后的第一图像发送给第二图像处理器,所述第二图像处理器可以首先对单一分辨率的第一图像继续虚化、降噪、美颜等效果处理。由于所述第二图像处理器接收到的是只有一种分辨率图像,因此第二图像处理器对于图像的处理逻辑,相较于多种分辨率图像的处理逻辑也更为简单。In this embodiment, the first image processor sends the processed first image to the second image processor, and the second image processor can first continue to blur, reduce noise, and beautify the first image with a single resolution. Color and other effect processing. Since the second image processor receives only one resolution image, the image processing logic of the second image processor is simpler than the processing logic of multiple resolution images.

所述第二图像处理器对于效果处理后的第二图像进行下采样或者裁剪,得到用户期望的分辨率的第三图像。可选的,在不需要改变图像可见区域的情况下,可以对第二图像进行下采样,在需要改变图像可见区域的情况下可以对第二图像进行裁剪。例如:在此次图像处理是针对电影画幅的处理的情况下,第二图像处理器对第二图像进行裁剪处理。The second image processor performs downsampling or cropping on the effect-processed second image to obtain a third image with a resolution desired by the user. Optionally, if the visible area of the image does not need to be changed, the second image can be downsampled, and if the visible area of the image needs to be changed, the second image can be cropped. For example: when the image processing is for movie frames, the second image processor performs cropping processing on the second image.

可选的,所述方法还包括:所述第二图像处理器向所述第一图像处理器传输所述第三图像。所述第二图像处理器在对第二图像进行下采样或者裁剪处理获得满足用户需求分辨率的第三图像后,将第三图像回传给第一图像处理器。Optionally, the method further includes: the second image processor transmitting the third image to the first image processor. After the second image processor performs downsampling or cropping processing on the second image to obtain a third image with a resolution that meets the user's requirement, the second image processor returns the third image to the first image processor.

可选的,所述方法还包括以下至少一项:Optionally, the method also includes at least one of the following:

所述第一图像处理器向编码器发送所述第三图像;the first image processor sends the third image to an encoder;

所述第一图像处理器向显示器发送所述第三图像;the first image processor sends the third image to the display;

该实施例中,所述编码器可以是适配编码器,所述第一图像处理器接收满足用户需求分辨率的第三图像,可以发送给编码器,所述编码器对所述第三图像包含的多帧图像进行编码,可以保存为录像文件。所述第一图像处理器还可以将所述第三图像发送给显示器作为实时预览。这样在预览和录制文件中,都是用户期望的分辨率视频图像。In this embodiment, the encoder may be an adaptive encoder, and the first image processor may receive a third image with a resolution that meets user requirements and send it to the encoder, and the encoder may The multi-frame images contained are encoded and can be saved as video files. The first image processor may also send the third image to the display as a real-time preview. In this way, both the preview and recording files contain video images with the resolution expected by the user.

下面以录像场景下的图像处理为例说明本申请实施例实现多级图像处理的过程。The following uses image processing in a video recording scene as an example to illustrate the process of implementing multi-level image processing in embodiments of the present application.

假设电子设备支持的最大分辨率是4K,用户选择的目标分辨率是1080P(1920*1080)或者3840*1600。Assume that the maximum resolution supported by the electronic device is 4K, and the target resolution selected by the user is 1080P (1920*1080) or 3840*1600.

如图2所示,包括:As shown in Figure 2, it includes:

步骤201、图像传感器输出初始图像。Step 201: The image sensor outputs an initial image.

该步骤中,图像传感器根据当前场景,按固定帧率生成连续原始图像流,并传输给第一图像处理器进行前端处理。In this step, the image sensor generates a continuous original image stream at a fixed frame rate based on the current scene, and transmits it to the first image processor for front-end processing.

步骤202、第一图像处理器进行前端处理,算法只支持单一分辨率图像处理。Step 202: The first image processor performs front-end processing, and the algorithm only supports single-resolution image processing.

第一图像处理器接收到传感器传来的原始图像流后,将原始图像裁剪为支持的最大分辨率图像(即4K)。第一图像处理器对裁剪后的图像,进行EIS、人脸检测、SAT等算法处理。这样第一图像处理器中处理的所有算法,只需要支持这一种分辨率的图像处理即可。After receiving the original image stream from the sensor, the first image processor crops the original image into a supported maximum resolution image (that is, 4K). The first image processor performs EIS, face detection, SAT and other algorithm processing on the cropped image. In this way, all algorithms processed in the first image processor only need to support image processing of this resolution.

对于所有的分辨率以及电影画幅场景,第一图像处理器中的处理流程及算法都相同,因此这部分不需要再单独定制化修改,极大的简化了系统通路及算法的复杂度。同时,由于只处理一种分辨率图像,第一图像处理器与第二图像处理器之间的数据传输逻辑也得到简化,只需要维护一种分辨率图像的传输。For all resolutions and movie-frame scenes, the processing flow and algorithm in the first image processor are the same, so this part does not need to be customized and modified separately, which greatly simplifies the complexity of the system pathway and algorithm. At the same time, since only one resolution image is processed, the data transmission logic between the first image processor and the second image processor is also simplified, and only the transmission of one resolution image needs to be maintained.

步骤203、第二图像处理器接收单一分辨率图像,并进行效果处理。Step 203: The second image processor receives the single resolution image and performs effect processing.

第二图像处理器接收到单一分辨率的图像,进行虚化降噪美颜等效果处理。由于第二图像处理器接收到的是只有一种分辨率图像,因此第二图像处理器的图像处理逻辑,相较于多种分辨率图像处理更为简单。The second image processor receives the image with a single resolution and performs effect processing such as blurring, noise reduction, and beautification. Since the second image processor receives only one resolution image, the image processing logic of the second image processor is simpler than image processing with multiple resolutions.

由于只需要处理单一分辨率的图像,第二图像处理器内部的算法也只需要支持一种分辨率图像,简化了算法逻辑。Since it only needs to process images of a single resolution, the algorithm inside the second image processor only needs to support images of one resolution, simplifying the algorithm logic.

步骤204、第二图像处理器下采样或裁剪图像到用户期望的分辨率的图像。Step 204: The second image processor downsamples or crops the image to an image with a resolution desired by the user.

在所有算法都处理完成后,外挂图像处理器根据用户选择的分辨率要求,对处理后的图像进行下采样,使最终图像是用户选择的分辨率。例如:将4K(3840*2160)图像下采样成为1080P(1920*1080)。After all algorithms are processed, the plug-in image processor downsamples the processed image according to the resolution requirements selected by the user, so that the final image is the resolution selected by the user. For example: downsample a 4K (3840*2160) image into 1080P (1920*1080).

或者,对于电影画幅的处理,需要外挂图像处理器通过裁剪来实现。例如:将4K(3840*2160)图像下采样变为3840*1600。Or, for the processing of movie frames, an external image processor is required to achieve it through cropping. For example: downsample a 4K (3840*2160) image to 3840*1600.

外挂图像处理器下采样或裁剪处理后,将符合用户需求分辨率的图像回传给自带图像处理器。After downsampling or cropping by the external image processor, the image with the resolution that meets the user's requirements is sent back to the built-in image processor.

步骤205、保存并显示录像视频。Step 205: Save and display the recorded video.

第一图像处理器接收符合用户需求分辨率的图像,可以发送给编码器保存为录像文件,也可以发送给显示器作为实时预览。这样在预览和录制文件中,都是用户期望的分辨率视频图像。The first image processor receives an image with a resolution that meets the user's requirements, and can send it to the encoder to save as a video file, or it can also send it to the monitor for real-time preview. In this way, both the preview and recording files contain video images with the resolution expected by the user.

该实施例解决了多级图像信号处理中对于多种不同分辨率,各种算法都需要支持适配不同的分辨率图像等复杂逻辑的问题。通过分级统一处理最大分辨率图像,最后再统一调整图像分辨率的方法,简化了对不同分辨率图像的处理逻辑。同时,也简化了多级图像信号处理器之间的图像传输逻辑,降低了外挂图像处理芯片设计的复杂度。This embodiment solves the problem in multi-level image signal processing that for multiple different resolutions, various algorithms need to support complex logic such as adapting images with different resolutions. The method of uniformly processing the maximum resolution image through hierarchies and finally uniformly adjusting the image resolution simplifies the processing logic of images with different resolutions. At the same time, it also simplifies the image transmission logic between multi-level image signal processors and reduces the complexity of external image processing chip design.

需要说明的是,本申请的图像处理方法可以应用于多种图像处理场景可以应用于所有具有复杂算法的多级图像处理场景,都可以通过该方法来简化通路和算法的复杂度,而不仅仅局限于相机录制场景,还可以用于如图像信号处理(Image Signal Processing,ISP)、图形处理器(Graphics Processing Unit,GPU)、省劲网络处理器(NeuralProcessing Unit,NPU)以及数据处理器(Data Processing Unit,DPU)中的图像处理功能,例如:对于使用GPU进行3D绘图并最终通过DPU显示到屏幕的过程中,如果对绘制的图像有多分辨率要求,也可以通过本申请实施例的方法来简化算法及通路。It should be noted that the image processing method of this application can be applied to a variety of image processing scenarios and can be applied to all multi-level image processing scenarios with complex algorithms. This method can be used to simplify the complexity of pathways and algorithms, not just Limited to camera recording scenes, it can also be used for image signal processing (ISP), graphics processing unit (GPU), effortless network processor (NeuralProcessing Unit, NPU) and data processor (Data The image processing function in the Processing Unit (DPU), for example: in the process of using the GPU to perform 3D drawing and finally displaying it on the screen through the DPU, if the drawn image has multiple resolution requirements, the method in the embodiment of this application can also be used To simplify algorithms and pathways.

如图3所示,本申请实施例还提供一种电子设备300,包括:;As shown in Figure 3, an embodiment of the present application also provides an electronic device 300, including:;

第一图像处理器310,用于对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;向所述第二图像处理器传输所述第一图像;所述第一分辨率是电子设备支持的最大分辨率;The first image processor 310 is configured to perform first processing on the original image output by the image sensor to obtain a first image with a first resolution; transmit the first image to the second image processor; One resolution is the maximum resolution supported by the electronic device;

第二图像处理器320,用于对所述第一图像进行效果处理获得第二图像;对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。The second image processor 320 is configured to perform effect processing on the first image to obtain a second image; perform second processing on the second image to obtain a third image with a second resolution, and the second resolution rate is the resolution selected by the user.

可选的,所述第一图像处理器还用于:对所述第一图像进行第三处理,向所述第二图像处理器传输所述第三处理后的第一图像;Optionally, the first image processor is further configured to: perform a third process on the first image, and transmit the third processed first image to the second image processor;

其中,所述第三处理包括以下至少一项:Wherein, the third processing includes at least one of the following:

电子防抖EIS;Electronic image stabilization EIS;

人脸检测;Face Detection;

空间对齐转换SAT。Spatially aligned transformation SAT.

可选的,所述第二图像处理器具体用于执行以下至少一项:Optionally, the second image processor is specifically configured to perform at least one of the following:

对所述第二图像进行下采样,获得具有第二分辨率的第三图像;Downsample the second image to obtain a third image with a second resolution;

对所述第二图像进行裁剪,获得具有第二分辨率的第三图像。The second image is cropped to obtain a third image with a second resolution.

可选的,所述第二图像处理器还用于:向所述第一图像处理器传输所述第三图像。Optionally, the second image processor is further configured to: transmit the third image to the first image processor.

可选的,所述第一图像处理器还用于执行以下至少一项:Optionally, the first image processor is also used to perform at least one of the following:

向编码器发送所述第三图像;sending the third image to the encoder;

向显示器发送所述第三图像。Send the third image to the display.

本申请的实施例,第一图像处理器对原始图像进行第一处理获得具有最大分辨率的第一图像。第二图像处理器对所述第一图像进行效果处理获得第二图像,该第二图像同样具有最大分辨率;第二图像处理器对第二图像进行第二处理,获得满足用户需求的第二分辨率的第三图像。因此,在第一图像处理器和第二图像处理器对于图像处理的过程中,只需要处理单一分辨率的图像,图像处理器内部的算法也只需要支持一种分辨率图像,简化了对不同分辨率图像的处理逻辑,简化了系统通路及算法的复杂度。In the embodiment of the present application, the first image processor performs the first processing on the original image to obtain the first image with the maximum resolution. The second image processor performs effect processing on the first image to obtain a second image, which also has the maximum resolution; the second image processor performs second processing on the second image to obtain a second image that meets the user's needs. resolution of the third image. Therefore, during image processing by the first image processor and the second image processor, they only need to process images of a single resolution, and the algorithm inside the image processor only needs to support images of one resolution, simplifying processing of different resolutions. The processing logic of high-resolution images simplifies the complexity of system pathways and algorithms.

本申请实施例中的电子设备也可以是指电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile InternetDevice,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may also refer to components in the electronic device, such as integrated circuits or chips. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR). Devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS), etc. ), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的电子设备可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的电子设备能够实现图1至图2的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present application can implement each process implemented by the electronic device in the method embodiment of Figures 1 to 2. To avoid repetition, details will not be described here.

可选的,如图4所示,本申请实施例还提供一种电子设备400,所述电子设备可以是图像处理装置,所述电子设备包括处理器401,存储器402,存储在存储器402上并可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 4, this embodiment of the present application also provides an electronic device 400. The electronic device may be an image processing device. The electronic device includes a processor 401, a memory 402, and is stored in the memory 402. A program or instruction that can be run on the processor 401. When executed by the processor 401, the program or instruction implements each process of the above image processing method embodiment and can achieve the same technical effect. To avoid duplication, it will not be repeated here. Repeat.

需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices described above.

图5为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元505、存储器509、以及处理器510等部件。The electronic device 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 505, memory 509, processor 510, etc. part.

本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 500 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 5 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,所述处理器510可以包括第一图像处理器和第二图像处理器;Wherein, the processor 510 may include a first image processor and a second image processor;

所述第一图像处理器用于:对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;所述第一分辨率是电子设备支持的最大分辨率;向第二图像处理器传输所述第一图像;The first image processor is configured to: perform first processing on the original image output by the image sensor to obtain a first image with a first resolution; the first resolution is the maximum resolution supported by the electronic device; to the second The image processor transmits the first image;

所述第二图像处理器用于:对所述第一图像进行效果处理获得第二图像;对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。The second image processor is configured to: perform effect processing on the first image to obtain a second image; perform second processing on the second image to obtain a third image with a second resolution, the second resolution rate is the resolution selected by the user.

可选的,所述处理器510中的第一图像处理器还用于:对所述第一图像进行第三处理,向所述第二图像处理器传输所述第三处理后的第一图像;Optionally, the first image processor in the processor 510 is also configured to: perform a third process on the first image, and transmit the third processed first image to the second image processor. ;

其中,所述第三处理包括以下至少一项:Wherein, the third processing includes at least one of the following:

电子防抖EIS;Electronic image stabilization EIS;

人脸检测;Face Detection;

空间对齐转换SAT。Spatially aligned transformation SAT.

可选的,所述处理器510中的第二图像处理器具体用于执行以下至少一项:Optionally, the second image processor in the processor 510 is specifically configured to perform at least one of the following:

对所述第二图像进行下采样,获得具有第二分辨率的第三图像;Downsample the second image to obtain a third image with a second resolution;

对所述第二图像进行裁剪,获得具有第二分辨率的第三图像。The second image is cropped to obtain a third image with a second resolution.

可选的,所述处理器510中的第二图像处理器还用于:向所述第一图像处理器传输所述第三图像。Optionally, the second image processor in the processor 510 is also configured to transmit the third image to the first image processor.

可选的,所述处理器510中的第一图像处理器还用于执行以下至少一项:Optionally, the first image processor in the processor 510 is also configured to perform at least one of the following:

向编码器发送所述第三图像;sending the third image to the encoder;

向显示器发送所述第三图像。Send the third image to the display.

本申请的实施例,第一图像处理器对原始图像进行第一处理获得具有最大分辨率的第一图像;第二图像处理器对所述第一图像进行效果处理获得第二图像,该第二图像同样具有最大分辨率;第二图像处理器对第二图像进行第二处理,获得满足用户需求的第二分辨率的第三图像。因此,在第一图像处理器和第二图像处理器对于图像处理的过程中,只需要处理单一分辨率的图像,图像处理器内部的算法也只需要支持一种分辨率图像即可,通过分级处理最大分辨率图像,最后再调整为用户需求的图像分辨率的方法,简化了对不同分辨率图像的处理逻辑,简化了系统通路及算法的复杂度。In the embodiment of the present application, the first image processor performs first processing on the original image to obtain a first image with maximum resolution; the second image processor performs effect processing on the first image to obtain a second image, and the second image The image also has a maximum resolution; the second image processor performs a second process on the second image to obtain a third image with a second resolution that meets the user's needs. Therefore, in the image processing process of the first image processor and the second image processor, they only need to process images of a single resolution, and the algorithm inside the image processor only needs to support images of one resolution. The method of processing the maximum resolution image and finally adjusting it to the image resolution required by the user simplifies the processing logic of images with different resolutions and simplifies the complexity of system pathways and algorithms.

应理解的是,本申请实施例中,输入单元504可以包括图形处理器(GraphicsProcessing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042. The graphics processor 5041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072 . Touch panel 5071, also called touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。Memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 509 may include volatile memory or non-volatile memory, or memory 509 may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 510.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above image processing method embodiment is implemented and the same can be achieved. The technical effects will not be repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage media includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks or optical disks, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above image processing method embodiments. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above image processing method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

Claims (10)

1.一种图像处理方法,应用于电子设备,其特征在于,所述电子设备包括第一图像处理器和第二图像处理器;所述方法包括:1. An image processing method, applied to electronic equipment, characterized in that the electronic equipment includes a first image processor and a second image processor; the method includes: 所述第一图像处理器对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;所述第一分辨率是电子设备支持的最大分辨率;The first image processor performs first processing on the original image output by the image sensor to obtain a first image with a first resolution; the first resolution is the maximum resolution supported by the electronic device; 所述第一图像处理器向所述第二图像处理器传输所述第一图像;the first image processor transmits the first image to the second image processor; 所述第二图像处理器对所述第一图像进行效果处理获得第二图像;The second image processor performs effect processing on the first image to obtain a second image; 所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。The second image processor performs a second process on the second image to obtain a third image with a second resolution, where the second resolution is a resolution selected by the user. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that, the method further comprises: 所述第一图像处理器对所述第一图像进行第三处理,向所述第二图像处理器传输所述第三处理后的第一图像;The first image processor performs a third process on the first image, and transmits the third processed first image to the second image processor; 其中,所述第三处理包括以下至少一项:Wherein, the third processing includes at least one of the following: 电子防抖EIS;Electronic image stabilization EIS; 人脸检测;Face Detection; 空间对齐转换SAT。Spatially aligned transformation SAT. 3.根据权利要求1所述的方法,其特征在于,所述第二图像处理器对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,包括以下至少一项:3. The method of claim 1, wherein the second image processor performs a second process on the second image to obtain a third image with a second resolution, including at least one of the following: 所述第二图像处理器对所述第二图像进行下采样,获得具有第二分辨率的第三图像;The second image processor downsamples the second image to obtain a third image with a second resolution; 所述第二图像处理器对所述第二图像进行裁剪,获得具有第二分辨率的第三图像。The second image processor crops the second image to obtain a third image with a second resolution. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, characterized in that, the method further comprises: 所述第二图像处理器向所述第一图像处理器传输所述第三图像。The second image processor transmits the third image to the first image processor. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括以下至少一项:5. The method according to claim 4, characterized in that the method further includes at least one of the following: 所述第一图像处理器向编码器发送所述第三图像;the first image processor sends the third image to an encoder; 所述第一图像处理器向显示器发送所述第三图像。The first image processor sends the third image to the display. 6.一种电子设备,其特征在于,包括:第一图像处理器,用于对图像传感器输出的原始图像进行第一处理,获得具有第一分辨率的第一图像;向第二图像处理器传输所述第一图像;所述第一分辨率是电子设备支持的最大分辨率;6. An electronic device, characterized in that it includes: a first image processor, configured to perform first processing on the original image output by the image sensor to obtain a first image with a first resolution; to a second image processor Transmit the first image; the first resolution is the maximum resolution supported by the electronic device; 第二图像处理器,用于对所述第一图像进行效果处理获得第二图像;对所述第二图像进行第二处理,获得具有第二分辨率的第三图像,所述第二分辨率是用户选择的分辨率。a second image processor, configured to perform effect processing on the first image to obtain a second image; perform second processing on the second image to obtain a third image with a second resolution, the second resolution is the resolution selected by the user. 7.根据权利要求6所述的电子设备,其特征在于,所述第一图像处理器还用于:对所述第一图像进行第三处理,向所述第二图像处理器传输所述第三处理后的第一图像;7. The electronic device according to claim 6, wherein the first image processor is further configured to: perform a third process on the first image, and transmit the third image to the second image processor. The first image after three processes; 其中,所述第三处理包括以下至少一项:Wherein, the third processing includes at least one of the following: 电子防抖EIS;Electronic image stabilization EIS; 人脸检测;Face Detection; 空间对齐转换SAT。Spatially aligned transformation SAT. 8.根据权利要求6所述的电子设备,其特征在于,所述第二图像处理器具体用于执行以下至少一项:8. The electronic device according to claim 6, wherein the second image processor is specifically configured to perform at least one of the following: 对所述第二图像进行下采样,获得具有第二分辨率的第三图像;Downsample the second image to obtain a third image with a second resolution; 对所述第二图像进行裁剪,获得具有第二分辨率的第三图像。The second image is cropped to obtain a third image with a second resolution. 9.根据权利要求6所述的电子设备,其特征在于,所述第二图像处理器还用于:向所述第一图像处理器传输所述第三图像。9. The electronic device according to claim 6, wherein the second image processor is further configured to transmit the third image to the first image processor. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的图像处理方法的步骤。10. A readable storage medium, characterized in that the readable storage medium stores programs or instructions, and when the programs or instructions are executed by a processor, the image processing according to any one of claims 1-5 is implemented. Method steps.
CN202311269983.4A 2023-09-27 2023-09-27 Image processing method and electronic equipment Pending CN117278689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311269983.4A CN117278689A (en) 2023-09-27 2023-09-27 Image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311269983.4A CN117278689A (en) 2023-09-27 2023-09-27 Image processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117278689A true CN117278689A (en) 2023-12-22

Family

ID=89215749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311269983.4A Pending CN117278689A (en) 2023-09-27 2023-09-27 Image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117278689A (en)

Similar Documents

Publication Publication Date Title
WO2021093583A1 (en) Video stream processing method and apparatus, terminal device, and computer readable storage medium
CN114339072B (en) Image processing circuit, method and electronic device
CN107948724B (en) Video transmission control method, device, storage medium and mobile terminal
CN114298889A (en) Image processing circuit and image processing method
WO2023125657A1 (en) Image processing method and apparatus, and electronic device
KR20230133970A (en) Photography methods, devices and electronics
CN113015007B (en) Video frame inserting method and device and electronic equipment
CN114286007A (en) Image processing circuit, image processing method, electronic device, and readable storage medium
CN114285958A (en) Image processing circuit, image processing method and electronic device
WO2023125677A1 (en) Discrete graphics frame interpolation circuit, method, and apparatus, chip, electronic device, and medium
CN114286003A (en) Shooting method, shooting device and electronic device
CN114338874A (en) Image display method of electronic device, image processing circuit and electronic device
WO2025067090A1 (en) Image processing method and apparatus, and electronic device and medium
WO2025067041A1 (en) Video blurring processing method and apparatus thereof
CN114285978A (en) Video processing method, video processing device and electronic equipment
CN117278689A (en) Image processing method and electronic equipment
CN115633251A (en) Image processing method, circuit and electronic equipment
CN115514860A (en) Dynamic frame rate compensation method, image processing circuit and electronic equipment
CN111311477B (en) Image editing method and device and corresponding storage medium
CN114285956A (en) Video sharing circuit, method and device and electronic equipment
CN114299014A (en) Image processing architecture, method, electronic device and storage medium
TWI828302B (en) Shooting methods and shooting equipment
CN117278687A (en) Image processing method and device
CN114286002A (en) Image processing circuit, method, device, electronic device and chip
CN117278693A (en) Image data processing circuit, method, electronic device, and medium

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