Movatterモバイル変換


[0]ホーム

URL:


CN117337578A - Methods, electronic devices, devices and computer-readable storage media for generating images - Google Patents

Methods, electronic devices, devices and computer-readable storage media for generating images
Download PDF

Info

Publication number
CN117337578A
CN117337578ACN202180098120.8ACN202180098120ACN117337578ACN 117337578 ACN117337578 ACN 117337578ACN 202180098120 ACN202180098120 ACN 202180098120ACN 117337578 ACN117337578 ACN 117337578A
Authority
CN
China
Prior art keywords
image
processing
camera image
display
initial
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
CN202180098120.8A
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.)
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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN117337578ApublicationCriticalpatent/CN117337578A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

A method of generating an image comprising: acquiring a reference camera image by controlling the camera assembly to capture at least one primary object specified by the first operational input; displaying an initial camera image obtained by performing initial image processing on the reference camera image on a display; selecting a processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to a second operation input; and generating a processed camera image by performing image processing specified in the selected processing parameter set on the reference camera image.

Description

Translated fromChinese
生成图像的方法、电子设备、装置以及计算机可读存储介质Methods, electronic devices, devices and computer-readable storage media for generating images

技术领域Technical field

本公开涉及一种生成图像数据的方法、实现该方法的电子设备、包括存储在其上用于执行该方法的程序指令的计算机可读介质和装置。The present disclosure relates to a method of generating image data, an electronic device implementing the method, a computer-readable medium and an apparatus including program instructions stored thereon for performing the method.

背景技术Background technique

传统地,智能手机等电子设备配备了数码相机,数码相机可以捕捉对象,例如人。Traditionally, electronic devices such as smartphones are equipped with digital cameras, which can capture objects, such as people.

在这里,摄影有两种方式,一种是聚焦于主对象,另一种是平衡主对象和背景。Here, there are two ways of photography, one is to focus on the main subject, and the other is to balance the main subject and the background.

例如,肖像照片需要吸引注意力到人上。在这种情况下,背景并不重要。在某些情况下,背景可能会干扰主对象。For example, a portrait photo needs to draw attention to the person. In this case, context doesn't matter. In some cases, the background may interfere with the main object.

在像旅行照片这样的抓拍照片中,用户希望同时拍摄人和背景。在这种情况下,背景也应该被很好地捕捉(关于焦点、亮度和颜色)。In candid photos like travel photos, users want to capture both the person and the background. In this case, the background should also be captured well (regarding focus, brightness and color).

然后,根据用户的意图来选择它们。此外,每种方式都需要控制多个设置。存在以下问题。Then, select them based on user intent. Additionally, each method requires controlling multiple settings. The following problems exist.

例如,用户需要控制各种参数设置,这需要经验和知识。只有用户知道他们的意图。然而,电子设备的相机组件不能考虑到用户的意图。For example, users need to control various parameter settings, which requires experience and knowledge. Only the user knows their intent. However, the camera component of the electronic device cannot take the user's intention into account.

特别是,例如,当用户使用相机组件拍摄花朵时,有一种情况是用户拍摄主对象花朵以强调它们,也有一种情况是用户将主对象花朵与背景一起拍摄。In particular, for example, when the user photographs flowers using the camera assembly, there is a case where the user photographs the main subject flowers to emphasize them, and there is also a case where the user photographs the main subject flowers together with the background.

在用户使用相机组件强调主对象花朵的情况下,通过调整曝光和白平衡使花朵显得最漂亮,使背景模糊,来拍摄主对象花朵以便在背景中脱颖而出。In a situation where the user emphasizes the main subject flower using the camera unit, the main subject flower is photographed so that it stands out from the background by adjusting the exposure and white balance to make the flower appear most beautiful and blur the background.

另一方面,在用户使用相机组件将主对象花朵和背景一起拍摄的情况下,通过调整相机组件中的曝光和白平衡使得整体图像恰到好处,相机组件进行拍摄使得整体对焦。On the other hand, in the case where the user uses the camera assembly to shoot the main object flowers and the background together, the overall image is made just right by adjusting the exposure and white balance in the camera assembly, and the camera assembly shoots so that the overall focus is achieved.

然而,拍摄“只有花朵是主对象”或“主对象花朵和背景一起”是用户的意图。相机组件无法识别该用户的意图。However, shooting "only the flowers are the main subject" or "the main subject flowers and the background together" is the user's intention. The camera component cannot recognize the user's intent.

发明内容Contents of the invention

本公开旨在解决上述技术问题中的至少一个。因此,本公开需要提供一种电子设备和控制电子设备的方法。The present disclosure aims to solve at least one of the above technical problems. Therefore, the present disclosure needs to provide an electronic device and a method of controlling the electronic device.

根据本公开,一种用于生成图像的方法包括:According to the present disclosure, a method for generating an image includes:

通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera component to capture at least one primary object specified by the first operating input;

在显示器上显示通过对参考相机图像执行初始图像处理而获得的初始相机图像;display on the display an initial camera image obtained by performing initial image processing on the reference camera image;

根据第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理;以及Selecting a processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and

通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing the image processing specified in the selected processing parameter set on the reference camera image.

根据本公开,一种电子设备包括:According to the present disclosure, an electronic device includes:

相机组件,配置为通过捕获对象来获取相机图像;a camera component configured to obtain a camera image by capturing an object;

显示器;monitor;

至少一个处理器;以及at least one processor; and

至少一个存储器,包括程序代码;at least one memory, including program code;

所述至少一个存储器和所述程序代码被配置为与所述至少一个处理器一起使所述电子设备执行:The at least one memory and the program code are configured to, together with the at least one processor, cause the electronic device to perform:

通过控制所述相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera assembly to capture at least one primary object specified by the first operating input;

在所述显示器上显示通过对所述参考相机图像执行初始图像处理而获得的初始相机图像;displaying on the display an initial camera image obtained by performing initial image processing on the reference camera image;

根据第二操作输入,从多个处理参数集中选择一个处理参数集,所述多个处理参数集指定具有不同处理内容的多个图像处理;以及selecting one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and

通过在所述参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing image processing specified in the selected processing parameter set on the reference camera image.

根据本公开,一种装置包括:According to the present disclosure, an apparatus includes:

相机图像获取单元,配置为通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;a camera image acquisition unit configured to acquire a reference camera image by controlling the camera component to capture at least one main object specified by the first operation input;

显示单元,配置为在显示器上显示通过对参考相机图像执行初始图像处理而获得的初始相机图像;a display unit configured to display on the display an initial camera image obtained by performing initial image processing on the reference camera image;

参数选择单元,配置为根据第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理;以及a parameter selection unit configured to select a processing parameter set from a plurality of processing parameter sets specifying a plurality of image processing with different processing contents according to the second operation input; and

相机图像生成单元,配置为通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A camera image generation unit configured to generate a processed camera image by performing image processing specified in the selected processing parameter set on the reference camera image.

根据本公开,一种计算机可读介质包括存储在其上的程序指令,程序指令用于至少执行以下操作:According to the present disclosure, a computer-readable medium includes program instructions stored thereon for performing at least the following operations:

通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera component to capture at least one primary object specified by the first operating input;

在显示器上显示通过参考相机图像执行初始图像处理而获得的初始相机图像;display on the display an initial camera image obtained by performing initial image processing with reference to the camera image;

根据第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理;以及Selecting a processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and

通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing the image processing specified in the selected processing parameter set on the reference camera image.

附图说明Description of drawings

本公开的实施例的这些和/或其他方面和优点将从参照附图进行的以下描述中变得明显并更容易理解。These and/or other aspects and advantages of embodiments of the present disclosure will become apparent and better understood from the following description taken with reference to the accompanying drawings.

图1示出了根据本公开实施例的电子设备的第一面的平面视图;1 shows a plan view of a first side of an electronic device according to an embodiment of the present disclosure;

图2示出了根据本公开实施例的电子设备的第二面的平面视图;2 shows a plan view of a second side of an electronic device according to an embodiment of the present disclosure;

图3示出了根据本公开实施例的电子设备的框图;3 shows a block diagram of an electronic device according to an embodiment of the present disclosure;

图4示出了根据本公开实施例的处理器的框图;4 illustrates a block diagram of a processor according to an embodiment of the present disclosure;

图5A是示出对在主对象上加权的相机图像进行显示的电子设备的显示器示例的图;5A is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object;

图5B是示出对在主对象和背景上加权的相机图像进行显示的电子设备的显示器示例的图;5B is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a background;

图6是用于解释对在主对象上加权的相机图像进行图像处理的示例的图;6 is a diagram for explaining an example of image processing on a camera image weighted on a main subject;

图7是用于解释对在主对象和背景上加权的相机图像进行图像处理的示例的图;7 is a diagram for explaining an example of image processing of a camera image weighted on a main subject and a background;

图8A是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象上加权的相机图像和用于由用户输入操作的滑动条;8A is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a slide bar for operation by user input;

图8B是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象和背景上加权的相机图像和用于由用户输入操作的滑动条;8B is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a background and a slide bar for operation by user input;

图9A是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象上加权的相机图像作为初始相机图像;以及9A is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object as an initial camera image; and

图9B是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象和背景上加权的相机图像作为初始相机图像。9B is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a background as an initial camera image.

具体实施方式Detailed ways

将详细描述本公开的实施例,并且将在附图中示出实施例的示例。在整个描述中,相同或相似的元件和具有相同或相似功能的元件由相同的附图标记表示。参考附图在此描述的实施例是解释性的,以及旨在说明本公开,但不应被解释为限制本公开。Embodiments of the present disclosure will be described in detail, and examples of the embodiments are illustrated in the accompanying drawings. Throughout the description, identical or similar elements and elements having the same or similar function are designated by the same reference numerals. The embodiments described herein with reference to the drawings are illustrative and intended to illustrate the disclosure but should not be construed to limit the disclosure.

在这里,图1示出了根据本公开的实施例的电子设备10的第一面的平面视图,图2示出了根据本公开的实施例的电子设备10的第二面的平面视图。第一面可以被称为电子设备10的背面,而第二面可以被称为电子设备10的正面。Here, FIG. 1 shows a plan view of a first side of the electronic device 10 according to an embodiment of the present disclosure, and FIG. 2 shows a plan view of a second side of the electronic device 10 according to an embodiment of the present disclosure. The first side may be referred to as the back side of the electronic device 10 and the second side may be referred to as the front side of the electronic device 10 .

如图1和图2所示,电子设备10可以包括显示器20和相机组件30。在本实施例中,相机组件30包括第一主相机32、第二主相机34和副相机36。第一主相机32和第二主相机34可以在电子设备10的第一面捕获图像,以及副相机36可以在电子设备10的第二面捕获图像。因此,第一主相机32和第二主相机34是所谓的外相机(out-camera),而副相机36是所谓的内相机(in-camera)。例如,电子设备10可以是移动电话、平板电脑、个人数字助理等。As shown in FIGS. 1 and 2 , electronic device 10 may include a display 20 and a camera assembly 30 . In this embodiment, the camera assembly 30 includes a first main camera 32 , a second main camera 34 and a secondary camera 36 . First primary camera 32 and second primary camera 34 may capture images on the first side of electronic device 10 , and secondary camera 36 may capture images on the second side of electronic device 10 . Therefore, the first main camera 32 and the second main camera 34 are so-called out-camera, and the secondary camera 36 is a so-called in-camera. For example, the electronic device 10 may be a mobile phone, a tablet computer, a personal digital assistant, or the like.

需注意到,显示器20是例如接受用户U的操作输入的触摸屏。Note that the display 20 is, for example, a touch screen that accepts operation input from the user U.

图3示出根据本实施例的电子设备10的框图。如图3所示,除显示器20和相机组件30之外,电子设备10可以包括主处理器40、图像信号处理器42、存储器44、电源电路46,和通信电路48。显示器20、相机组件30、主处理器40、图像信号处理器42、存储器44、电源电路46和通信电路48通过总线50相互连接。FIG. 3 shows a block diagram of the electronic device 10 according to this embodiment. As shown in FIG. 3 , in addition to display 20 and camera assembly 30 , electronic device 10 may include a main processor 40 , an image signal processor 42 , memory 44 , power circuitry 46 , and communication circuitry 48 . The display 20 , the camera assembly 30 , the main processor 40 , the image signal processor 42 , the memory 44 , the power circuit 46 and the communication circuit 48 are interconnected by a bus 50 .

处理器100包括主处理器40和图像信号处理器42。Processor 100 includes a main processor 40 and an image signal processor 42.

如后面将描述的,该处理器100通过控制相机组件30来获取参考相机图像。此外,处理器100通过对参考相机图像执行图像处理来获取处理后的相机图像。As will be described later, the processor 100 acquires a reference camera image by controlling the camera assembly 30 . Furthermore, the processor 100 acquires the processed camera image by performing image processing on the reference camera image.

主处理器40执行存储在存储器44中的一个或多个程序。主处理器40通过执行程序实现电子设备10的各种应用和数据处理(包括图像数据处理)。主处理器40可以是一个或多个计算机处理器。主处理器40不限于一个中央处理器(Central Processing Unit,CPU)核,即它可以具有多个CPU核。主处理器40可以是电子设备10的主CPU、图像处理单元(ImageProcess Unit,IPU)或与相机组件30一起被提供的数字信号处理器(Digital SignalProcessing,DSP)。Main processor 40 executes one or more programs stored in memory 44 . The main processor 40 implements various applications and data processing (including image data processing) of the electronic device 10 by executing programs. Main processor 40 may be one or more computer processors. The main processor 40 is not limited to one central processing unit (Central Processing Unit, CPU) core, that is, it may have multiple CPU cores. The main processor 40 may be a main CPU of the electronic device 10 , an image processing unit (Image Process Unit, IPU), or a digital signal processor (Digital Signal Processing, DSP) provided together with the camera assembly 30 .

图像信号处理器42控制相机组件30,并对相机组件30捕获的各种图像数据进行处理,以生成目标图像数据。例如,图像信号处理器42可对相机组件30捕获的图像数据执行去马赛克处理、降噪处理、自动曝光处理、自动聚焦处理、自动白平衡处理、高动态范围处理等。The image signal processor 42 controls the camera assembly 30 and processes various image data captured by the camera assembly 30 to generate target image data. For example, the image signal processor 42 may perform demosaic processing, noise reduction processing, automatic exposure processing, automatic focus processing, automatic white balance processing, high dynamic range processing, etc. on the image data captured by the camera assembly 30 .

在本实施例中,主处理器40和图像信号处理器42相互协作,以生成由相机组件30捕获的对象的目标图像数据。即,主处理器40和图像信号处理器42被配置为通过相机组件30捕获对象的图像,并对所捕获的图像数据执行各种图像处理。In this embodiment, main processor 40 and image signal processor 42 cooperate to generate target image data of a subject captured by camera assembly 30 . That is, the main processor 40 and the image signal processor 42 are configured to capture an image of a subject through the camera assembly 30 and perform various image processing on the captured image data.

存储器44存储将由主处理器40和图像信号处理器42执行的程序以及各种数据。例如,将所捕获图像的数据存储在存储器44中。The memory 44 stores programs to be executed by the main processor 40 and the image signal processor 42 and various data. For example, the data of the captured image is stored in memory 44 .

需注意到,包括诸如所捕获的图像和所生成的图像之类的图像以图像数据的形式存在于电子设备10中(例如,将图像的数据存储在存储器44中)。此外,处理器100将图像处理为图像数据。It is noted that images, including captured images and generated images, exist in the form of image data in the electronic device 10 (eg, the data of the image is stored in the memory 44). Furthermore, the processor 100 processes the image into image data.

特别是,例如存储器44包括程序代码。存储器44和程序代码被配置为,与处理器100一起,使电子设备10执行:通过控制相机组件30以捕获由用户的第一操作输入指定的至少一个主对象,来获取参考相机图像;在显示器20上显示通过对参考相机图像执行初始图像处理而获得的初始相机图像;根据用户的第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理;以及通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。In particular, memory 44 includes program code, for example. The memory 44 and the program code are configured to, together with the processor 100 , cause the electronic device 10 to: acquire a reference camera image by controlling the camera assembly 30 to capture at least one main object specified by the user's first operational input; display on the display An initial camera image obtained by performing initial image processing on the reference camera image is displayed on 20; according to the user's second operation input, a processing parameter set is selected from a plurality of processing parameter sets, the plurality of processing parameter sets are specified to have different processing contents. multiple image processing; and generating a processed camera image by performing the image processing specified in the selected processing parameter set on the reference camera image.

存储器44可包括高速随机存取存储器(Random Access Memory,RAM)和/或诸如闪存和磁盘存储器之类的非易失性存储器。也就是说,存储器44可以包括存储程序的非暂时性计算机可读介质。Memory 44 may include high-speed random access memory (RAM) and/or non-volatile memory such as flash memory and disk memory. That is, memory 44 may include non-transitory computer-readable media storing programs.

电源电路46可以具有诸如锂离子充电电池之类的电池和用于管理电池的电池管理单元(Battery Management Unit,BMU)。The power supply circuit 46 may have a battery such as a lithium-ion rechargeable battery and a battery management unit (BMU) for managing the battery.

通信电路48被配置为通过无线通信接收和发送数据以与通信网络系统的基站、互联网或其他设备进行通信。无线通信可以采用任何通信标准或协议,包括但不限于全球移动通信系统(Global System for Mobile communication,GSM)、码分多址(Code DivisionMultiple Access,CDMA)、长期演进(Long Term Evolution,LTE)、进阶长期演进(LTE-advanced)、第五代移动通信技术(5th Generation mobile communication technology,5G)。通信电路48可包括天线和射频(Radio Frequency,RF)电路。Communication circuitry 48 is configured to receive and send data via wireless communication to communicate with a base station of a communication network system, the Internet, or other devices. Wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA), Long Term Evolution (LTE), Advanced long-term evolution (LTE-advanced), fifth generation mobile communication technology (5th Generation mobile communication technology, 5G). The communication circuit 48 may include an antenna and a radio frequency (Radio Frequency, RF) circuit.

在本实施例中,图像生成过程由例如主处理器40(处理器100)执行,以生成图像数据。In the present embodiment, the image generation process is executed by, for example, the main processor 40 (processor 100) to generate image data.

此外,在本实施例中,将图像生成过程的程序指令存储在存储器44的非暂时性计算机可读介质中。当从存储器44中读取并在主处理器40中执行程序指令时,主处理器40实现了图像生成过程。Furthermore, in the present embodiment, program instructions for the image generation process are stored in the non-transitory computer-readable medium of memory 44 . When program instructions are read from memory 44 and executed in main processor 40, main processor 40 implements the image generation process.

在这里,图4示出了根据本公开实施例的处理器100的框图。Here, FIG. 4 shows a block diagram of the processor 100 according to an embodiment of the present disclosure.

如图4所示,图4所示的处理器100可以被替换为装置。该装置包括:相机图像获取单元100a,配置为通过控制相机组件以捕获由用户的第一操作输入所指定的至少一个主对象,来获取参考相机图像;显示单元100b,配置为在显示器上显示通过对参考相机图像执行初始图像处理而获得初始相机图像;参数选择单元100c,配置为根据用户的第二操作输入,从多个图像处理参数集中选择一个处理参数集,该多个图像处理参数集指定具有不同处理内容的多个图像处理;以及相机图像生成单元100d,配置为通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。As shown in FIG. 4, the processor 100 shown in FIG. 4 may be replaced with a device. The device includes: a camera image acquisition unit 100a configured to acquire a reference camera image by controlling a camera component to capture at least one main object specified by a user's first operation input; a display unit 100b configured to display the Perform initial image processing on the reference camera image to obtain an initial camera image; the parameter selection unit 100c is configured to select a processing parameter set from a plurality of image processing parameter sets according to the user's second operation input, the plurality of image processing parameter sets specify a plurality of image processes having different processing contents; and a camera image generation unit 100d configured to generate a processed camera image by performing image processing specified in the selected processing parameter set on the reference camera image.

在这种情况下,电子设备10可以表示为包括处理器100的装置。In this case, the electronic device 10 may be represented as a device including the processor 100 .

【图像数据生成方法】[Image data generation method]

接下来,将描述根据本实施例的具有上述配置和功能的电子设备100生成图像数据的方法的示例。Next, an example of a method of generating image data by the electronic device 100 having the above configuration and functions according to the present embodiment will be described.

在这里,图5A是示出对在主对象上加权的相机图像进行显示的电子设备的显示器示例的图。此外,图5B是示出对在主对象和背景上加权的相机图像进行显示的电子设备的显示器示例的图。Here, FIG. 5A is a diagram showing an example of a display of an electronic device that displays a camera image weighted on a main object. Furthermore, FIG. 5B is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a background.

下面将主要描述图3所示电子设备10的处理器100的处理。The processing of the processor 100 of the electronic device 10 shown in FIG. 3 will be mainly described below.

首先,处理器100通过控制相机组件30来捕获由用户的第一操作输入指定的至少一个主对象Z,从而获得参考相机图像。First, the processor 100 obtains a reference camera image by controlling the camera assembly 30 to capture at least one main object Z specified by the user's first operation input.

处理器100将相机组件30在参考相机图像中已经聚焦的对象设置为主对象Z。The processor 100 sets the object that the camera assembly 30 has focused on in the reference camera image as the main object Z.

在图5A、图5B、图6和图7所示的示例中,主对象Z是花朵,但也可能是除花朵以外的对象。In the examples shown in FIGS. 5A, 5B, 6 and 7, the main object Z is a flower, but it may be an object other than flowers.

然后,处理器100在显示器20上显示初始相机图像,该初始相机图像是通过对参考相机图像执行初始图像处理而获得的。Then, the processor 100 displays an initial camera image on the display 20, which is obtained by performing initial image processing on the reference camera image.

然后,处理器100根据用户的第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理。Then, the processor 100 selects a processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the user's second operation input.

例如,相机组件30具有许多特征以实现“对目标聚焦”或“对目标与背景平衡聚焦”。For example, the camera assembly 30 has many features to achieve "focus on the target" or "balanced focus on the target and background."

例如,处理器100在参考相机图像上执行的图像处理包括:基于参考相机图像中的主对象Z的图像或参考相机图像的整个图像(打开或关闭散景)调整背景图像上的散景。For example, the image processing performed by the processor 100 on the reference camera image includes adjusting the bokeh on the background image based on the image of the main object Z in the reference camera image or the entire image of the reference camera image (turning the bokeh on or off).

在这里,“散景”控制背景上的焦点模糊,以使主对象将在背景中突出。Here, Bokeh controls the focus blur on the background so that the main subject will stand out against the background.

此外,处理器100针对参考相机图像执行的图像处理包括:基于参考相机图像中的主对象Z的图像或参考相机图像的整个图像调整参考相机图像的白平衡。In addition, the image processing performed by the processor 100 with respect to the reference camera image includes adjusting the white balance of the reference camera image based on the image of the main object Z in the reference camera image or the entire image of the reference camera image.

此外,处理器100针对参考相机图像执行的图像处理包括:基于参考相机图像中的主对象Z的图像或参考相机图像的整个图像调整亮度。In addition, the image processing performed by the processor 100 with respect to the reference camera image includes adjusting brightness based on the image of the main object Z in the reference camera image or the entire image of the reference camera image.

在这里,“扩展焦深(Extended Depth Of Focus,EXOF)”捕获多帧,以使在目标和背景上都能很好地聚焦。Here, Extended Depth Of Focus (EXOF) captures multiple frames to get good focus on both the subject and the background.

此外,处理器100针对参考相机图像执行的图像处理包括:打开或关闭高动态范围(High Dynamic Range,HDR)过程。In addition, the image processing performed by the processor 100 on the reference camera image includes turning on or off a high dynamic range (High Dynamic Range, HDR) process.

“HDR”捕捉多帧,以使目标和背景都具有良好的亮度。"HDR" captures multiple frames so that both target and background have good brightness.

在这里,例如,如图6和图7所示,来自外部的第二操作输入是用户U在显示器20上显示初始相机图像之后的第二操作输入。在这种情况下,如上所述,显示器20是例如接收用户U的操作输入的触摸屏。Here, for example, as shown in FIGS. 6 and 7 , the second operation input from the outside is the second operation input after the user U displays the initial camera image on the display 20 . In this case, the display 20 is, for example, a touch screen that receives the operation input of the user U, as described above.

在这种情况下,例如根据用户U的操作输入,处理器100从多个处理参数集中选择定义第一图像处理(图5A、图6)的第一处理参数集或定义第二图像处理(图5B、图7)的第二处理参数集,第二图像处理的处理内容不同于第一图像处理的处理内容。In this case, for example, based on the operation input of the user U, the processor 100 selects a first processing parameter set defining the first image processing (FIG. 5A, FIG. 6) from a plurality of processing parameter sets or defines a second image processing (FIG. 5B, Fig. 7) of the second processing parameter set, the processing content of the second image processing is different from the processing content of the first image processing.

例如,用户U可以通过操作(触摸)显示屏20上显示的按钮20a(图6)或按钮20b(图7),在第一处理参数集和第二处理参数集之间切换。For example, the user U can switch between the first processing parameter set and the second processing parameter set by operating (touching) button 20a (FIG. 6) or button 20b (FIG. 7) displayed on the display screen 20.

在这里,图6是用于解释对在主对象上加权的相机图像进行图像处理的示例的图。Here, FIG. 6 is a diagram for explaining an example of image processing of a camera image weighted on a main object.

在“聚焦主对象”的情况下,基于主对象考虑亮度。此外,HDR是关闭的(背景不重要)。此外,打开光圈以缩小景深或开启散景功能。此外,基于主目标考虑白平衡增益。In the case of "focus on main object", brightness is considered based on the main object. Also, HDR is off (the background is not important). Additionally, open the aperture to reduce the depth of field or turn on the bokeh feature. Additionally, white balance gain is considered based on the main target.

另一方面,图7是用于解释对在主对象和背景上加权的相机图像进行图像处理的示例的图。On the other hand, FIG. 7 is a diagram for explaining an example of image processing of a camera image weighted on the main subject and the background.

在“聚焦两者”的情况下,基于整幅图像考虑亮度。此外,在宽动态范围场景的情况下开启HDR,以在亮/暗区域上进行渐变。此外,缩小光圈来获取宽焦深和关闭散景功能,以也捕捉背景。此外,基于整幅图像考虑白平衡增益。In the case of "focus both", brightness is considered based on the entire image. In addition, HDR is turned on in case of wide dynamic range scenes to perform gradients on light/dark areas. Additionally, stop down the aperture to get a wide depth of focus and turn off the bokeh feature to capture the background as well. Additionally, white balance gain is considered based on the entire image.

通过这种方式,处理器100通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,获取处理后的相机图像。In this manner, the processor 100 obtains a processed camera image by performing the image processing specified in the selected processing parameter set on the reference camera image.

最后,处理器100在显示器20上显示处理后的相机图像,该处理后的相机图像是通过在参考相机图像上执行所选择的处理参数集中定义的图像处理所得到的。Finally, the processor 100 displays the processed camera image on the display 20, the processed camera image being obtained by performing the image processing defined in the selected processing parameter set on the reference camera image.

因此,利用该方案,用户可以基于目标对象和背景之间的平衡来设置各种设置。Therefore, with this solution, users can set various settings based on the balance between the target object and the background.

在这里,图8A是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象上加权的相机图像和用于由用户输入操作的滑动条。此外,图8B是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象和背景上加权的相机图像和用于由用户输入操作的滑动条。Here, FIG. 8A is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a slide bar for operation by user input. In addition, FIG. 8B is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object and a background and a slide bar for operation by user input.

例如,如图8A和图8B所示,处理器100可以在显示器20上显示滑动条20c,用于输入用户U的操作,该操作是关于连续或逐步调整针对参考相机图像的图像处理的内容的操作。For example, as shown in FIGS. 8A and 8B , the processor 100 may display a slide bar 20 c on the display 20 for inputting an operation by the user U regarding continuous or stepwise adjustment of the content of the image processing for the reference camera image. operate.

需注意到,处理器100可以在显示器20上显示刻度盘而不是滑动条20c,用于输入用户U的操作,该操作与针对参考相机图像连续或逐步调整图像处理的内容有关。It should be noted that the processor 100 may display a dial on the display 20 instead of the slide bar 20c for inputting an operation by the user U, which operation is related to continuously or gradually adjusting the content of the image processing with respect to the reference camera image.

通过这种方式,可以应用刻度盘或滑动条而不是按钮。刻度盘或滑动条可以控制主对象和背景之间的平衡。This way you can apply dials or sliders instead of buttons. Dials or sliders control the balance between the main subject and the background.

如上所述,响应于用户U的操作输入,处理器100可以在图像处理中调整主对象Z的图像权重。As described above, in response to the operation input of the user U, the processor 100 may adjust the image weight of the main object Z in image processing.

在这里,图9A是示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象上加权的相机图像作为初始相机图像。此外,图9B示出电子设备的显示器示例的图,该电子设备的显示器显示在主对象和背景上加权的相机图像作为初始相机图像。Here, FIG. 9A is a diagram illustrating an example of a display of an electronic device that displays a camera image weighted on a main object as an initial camera image. Furthermore, FIG. 9B shows a diagram of an example of a display of an electronic device that displays a camera image weighted on a main object and a background as an initial camera image.

例如,如图9A和9B所示,处理器100可以基于主对象Z的图像区域在参考相机图像中的比例,选择用于获得初始相机图像的待执行处理参数集。For example, as shown in FIGS. 9A and 9B , the processor 100 may select a set of processing parameters to be performed for obtaining the initial camera image based on the proportion of the image area of the main object Z in the reference camera image.

更具体地说,如图9A所示,当主对象Z的图像区域在参考相机图像中的比例等于或大于预设的选择阈值时,处理器100在显示器20上显示已被执行第一图像处理的初始相机图像,该第一图像处理在第一处理参数集中被定义为初始图像处理(初始状态为大主对象)。More specifically, as shown in FIG. 9A , when the proportion of the image area of the main object Z in the reference camera image is equal to or greater than the preset selection threshold, the processor 100 displays on the display 20 the image in which the first image processing has been performed. The initial camera image, the first image processing is defined as the initial image processing in the first processing parameter set (the initial state is the large main object).

在这种情况下,在显示器20上显示操作按钮20a。In this case, the operation button 20a is displayed on the display 20.

另一方面,如图9B所示,当主对象Z的图像区域在参考相机图像中的比例小于选择阈值时,处理器100在显示器20上显示已被执行第二图像处理的初始相机图像,该第二图像处理在第二处理参数集中被定义为初始图像处理(初始状态为小主对象)。On the other hand, as shown in FIG. 9B , when the proportion of the image area of the main object Z in the reference camera image is less than the selection threshold, the processor 100 displays on the display 20 the initial camera image on which the second image processing has been performed. The second image processing is defined as the initial image processing in the second processing parameter set (the initial state is the small main object).

在这种情况下,在显示器20上显示操作按钮20b。In this case, the operation button 20b is displayed on the display 20.

通过这种方式,电子设备10可以利用图像上的主对象比例考虑“聚焦主对象”或“平衡主对象与背景”的初始状态。In this way, the electronic device 10 can consider the initial state of "focusing on the main object" or "balancing the main object and the background" using the proportion of the main object on the image.

如上所述,根据本发明的电子设备包括:相机组件,配置为通过捕获对象来获取相机图像;显示器;至少一个处理器;以及包括程序代码的至少一个存储器。此外,至少一个存储器和程序代码配置为与至少一个处理器一起,使电子设备执行:通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;在显示器上显示通过对参考相机图像执行初始图像处理而获得的初始相机图像;根据第二操作输入,从多个处理参数集中选择一个处理参数集,该多个处理参数集指定具有不同处理内容的多个图像处理;以及通过在参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。As described above, an electronic device according to the present invention includes: a camera assembly configured to acquire a camera image by capturing an object; a display; at least one processor; and at least one memory including program code. Additionally, at least one memory and program code are configured to, together with at least one processor, cause the electronic device to: acquire a reference camera image by controlling the camera assembly to capture at least one primary object specified by the first operating input; display on the display an initial camera image obtained by performing initial image processing on a reference camera image; selecting one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processing with different processing contents according to the second operation input ; and generating a processed camera image by performing the image processing specified in the selected processing parameter set on the reference camera image.

因此,根据本发明的电子设备通过用户界面解决了上述问题,使得相机模块基于用户命令控制各种参数。因此,用户可以通过一个动作控制各种设置。因此,用户可以毫不费力地获得期望的图像。Therefore, the electronic device according to the present invention solves the above problems through the user interface, allowing the camera module to control various parameters based on user commands. Therefore, users can control various settings with one action. Therefore, users can get desired images without any hassle.

在本公开的实施例的描述中,应当理解,诸如“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上部”、“下部”、“前部”、“后部”、“背部”、“左侧”、“右侧”、“垂直”、“水平”、“顶部”、“底部”、“内部”、“外部”、“顺时针”和“逆时针”的术语应该被解释为指代如讨论的附图中所描述或示出的方向或位置。这些相关术语仅用于简化本公开的描述,并不指示或暗示所提及的设备或元件必须具有特定方向,或者必须以特定方向被构造或操作。因此,这些术语不能被解释为限制本公开。In the description of the embodiments of the present disclosure, it should be understood that terms such as “center”, “longitudinal”, “transverse”, “length”, “width”, “thickness”, “upper”, “lower”, “front” , "rear", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise" and " The term "counterclockwise" should be interpreted to refer to a direction or position as described or illustrated in the figures in question. These related terms are only used to simplify the description of the present disclosure and do not indicate or imply that the device or element mentioned must have a particular orientation, or must be constructed or operated in a particular orientation. Therefore, these terms should not be construed as limiting the present disclosure.

此外,诸如“第一”和“第二”的术语在本文中用于描述的目的,并不旨在指示或暗示相对重要性或意义,或者暗示所指示的技术特征的数量。因此,定义为“第一”和“第二”的特征可以包括该特征中的一个或多个。在本公开的描述中,“多个”意味着“两个或多于两个”,除非另有说明。Furthermore, terms such as “first” and “second” are used herein for descriptive purposes and are not intended to indicate or imply relative importance or significance, or to imply the number of technical features indicated. Thus, features defined as "first" and "second" may include one or more of these features. In the description of the present disclosure, "plurality" means "two or more than two" unless otherwise stated.

在本公开的实施例的描述中,除非另外指定或限制,否则术语“安装的”、“连接的”、“耦接的”等被广泛使用,并且可以是例如固定连接、可拆卸连接或整体连接;也可以是机械或电气连接;也可以是直接连接或通过中间结构的间接连接;也可以是本领域技术人员根据特定情况能够理解的两个元件的内部通信。In the description of the embodiments of the present disclosure, unless otherwise specified or limited, the terms "mounted", "connected", "coupled", etc. are used broadly, and may be, for example, a fixed connection, a detachable connection, or an integral Connection; it can also be a mechanical or electrical connection; it can also be a direct connection or an indirect connection through an intermediate structure; it can also be an internal communication between two elements that a person skilled in the art can understand according to the specific situation.

在本公开的实施例中,除非另外指定或限制,其中第一特征“在”第二特征“上”或“在”第二特征“下”的结构可以包括第一特征与第二特征直接接触的实施例,并且还可以包括第一特征和第二特征彼此不直接接触、而是通过在它们之间形成的附加特征接触的实施例。此外,第一特征“在”第二特征“上”、“在”第二特征“的上方”或“在”第二特征“的顶部”可以包括第一特征正交或倾斜地“在”第二特征“上”、“在”第二特征“的上方”或“在”第二特征“的顶部”的实施例,或者仅仅意味着第一特征处于比第二特征的高度更高的高度;而第一特征“在”第二特征“下”、“在”第二特征“的下方”或“在”第二特征“的底部”可以包括第一特征正交地或倾斜地“在”第二特征“下”、“在”第二特征“的下方”或“在”第二特征“的底部”的实施例,或者仅仅意味着第一特征处于比第二特征的高度低的高度。In embodiments of the present disclosure, unless otherwise specified or limited, structures wherein a first feature is "on" or "under" a second feature may include the first feature in direct contact with the second feature embodiments, and may also include embodiments in which the first feature and the second feature are not in direct contact with each other, but are in contact through additional features formed therebetween. Additionally, a first feature "on", "over" a second feature, or "on top of" a second feature may include the first feature being "on" the second feature orthogonally or obliquely. Embodiments of two features being "on", "above" or "on top of" the second feature, or simply meaning that the first feature is at a higher height than the height of the second feature; And a first feature "below", "below" or "at" the bottom of a second feature may include the first feature being "below" the second feature, either orthogonally or obliquely. Embodiments of two features being "below", "below" or "at" the bottom of the second feature may simply mean that the first feature is at a lower height than the height of the second feature.

在上面的描述中提供了各种实施例和示例来实现本公开的不同结构。为了简化本公开,在上面描述了某些元件和设置。然而,这些元件和设置仅作为示例,并不旨在限制本公开。此外,在本公开的不同示例中,可以重复附图标记和/或参考字母。这种重复是为了简化和清晰,而不是指不同实施例和/或设置之间的关系。此外,本公开提供了不同工艺和材料的示例。然而,本领域技术人员将理解,也可以应用其他工艺和/或材料。Various embodiments and examples are provided in the above description to implement different structures of the present disclosure. To simplify the present disclosure, certain elements and arrangements are described above. However, these elements and arrangements are merely examples and are not intended to limit the disclosure. Furthermore, reference numbers and/or reference letters may be repeated in different examples of the disclosure. This repetition is for simplicity and clarity and does not imply a relationship between the various embodiments and/or arrangements. Additionally, this disclosure provides examples of different processes and materials. However, those skilled in the art will understand that other processes and/or materials may also be used.

在整个说明书中,对“实施例”、“一些实施例”、“示例性实施例”、“示例”、“特定示例”或“一些示例”的参考意味着结合该实施例或示例描述的具体特征、结构、材料或特性包括在本公开的至少一个实施例或示例中。因此,整个说明书中的上述短语的出现不一定是指本公开的同一实施例或示例。此外,在一个或多个实施例或示例中,具体特征、结构、材料或特性可以以任何合适的方式被组合。Throughout this specification, reference to "embodiments," "some embodiments," "exemplary embodiments," "examples," "particular examples," or "some examples" means that the particular embodiment or example is described in connection with that embodiment or example. Features, structures, materials, or characteristics are included in at least one embodiment or example of the present disclosure. Thus, the appearances of the above phrases throughout the specification are not necessarily referring to the same embodiment or example of the present disclosure. Furthermore, the specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

在流程图中描述的或在本文中以其他方式描述的任何过程或方法可以被理解为包括用于实现过程中的特定逻辑功能或步骤的可执行指令的代码的一个或多个模块、片段或部分,并且本公开的优选实施例的范围包括其他实现,其中本领域技术人员应该理解,可以以与所示或讨论的顺序不同的顺序(包括以基本相同的顺序或相反的顺序)来实现功能。Any process or method depicted in a flowchart or otherwise described herein may be understood to include one or more modules, segments, or code of executable instructions for implementing specific logical functions or steps in the process. parts, and the scope of the preferred embodiments of the present disclosure includes other implementations in which those skilled in the art will understand that the functions may be performed in an order different from that shown or discussed, including in substantially the same order or the reverse order. .

本文中以其他方式描述的或在流程图中示出的逻辑和/或步骤(例如,用于实现逻辑功能的可执行指令的具体顺序表)可以在任何计算机可读介质中具体实现,该计算机可读介质将由指令执行系统、设备或装置(例如基于计算机的系统、包括处理器的系统、或能够从执行指令的指令执行系统、设备和装置获得指令的其他系统)使用,或者将与指令执行系统、设备和装置结合使用。就本说明书而言,“计算机可读介质”可以是适用于包括、存储、通信、传播或传送将由指令执行系统、设备或装置使用或与指令执行系统、设备或装置组合使用的程序的任何设备。计算机可读介质的更具体示例包括但不限于:具有一根或多根导线的电子连接(电子设备)、便携式计算机外壳(磁性设备)、随机存取存储器(RandomAccess Memory,RAM)、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤设备和便携式光盘只读存储器(Compact Disk Read-Only Memory,CDROM)。此外,计算机可读介质甚至可以是能够在其上打印程序的纸或其他合适的介质,这是因为,例如,当需要以电子方式获得程序时,可以光学扫描纸或其他合适的介质,然后用其他合适的方法编辑、解密或处理,以及然后可以将程序存储在计算机存储器中。The logic and/or steps otherwise described herein or illustrated in flowchart diagrams (e.g., a specific sequence of executable instructions for implementing the logical functions) may be embodied in any computer-readable medium. The readable medium will be used by or will be used by an instruction execution system, apparatus, or apparatus, such as a computer-based system, a system including a processor, or other system capable of obtaining instructions from an instruction execution system, apparatus, or apparatus that executes the instructions. Systems, equipment and devices are used in combination. For purposes of this specification, a "computer-readable medium" may be any device suitable for containing, storing, communicating, propagating, or transferring a program for use by or in combination with an instruction execution system, apparatus, or device . More specific examples of computer-readable media include, but are not limited to: electronic connections having one or more wires (electronic devices), portable computer cases (magnetic devices), random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM or flash memory), optical fiber equipment and portable compact disk read-only memory (Compact Disk Read-Only Memory, CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since, for example, when a program is required to be obtained electronically, the paper or other suitable medium can be optically scanned and then used Compiled, decrypted or processed by other suitable means, and the program may then be stored in computer memory.

应当理解,本公开的每个部分可以通过硬件、软件、固件或它们的组合来实现。在上述实施例中,多个步骤或方法可以通过存储在存储器中的软件或固件来实现,并由合适的指令执行系统来执行。例如,如果通过硬件实现,同样在另一个实施例中,步骤或方法可以通过本领域已知的以下技术之一或组合来实现:具有用于实现数据信号的逻辑功能的逻辑门电路的分立逻辑电路、具有合适的组合逻辑门电路的专用集成电路、可编程门阵列(Programmable Gate Array,PGA)、现场可编程门阵列(Field Programmable Gate Array,FPGA)等。It should be understood that each part of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, also in another embodiment, the steps or methods may be implemented by one or a combination of the following techniques known in the art: discrete logic with logic gates for implementing the logical function of the data signal Circuits, application-specific integrated circuits with appropriate combinational logic gate circuits, programmable gate arrays (Programmable Gate Array, PGA), field programmable gate arrays (Field Programmable Gate Array, FPGA), etc.

本领域技术人员应当理解,本公开的上述示例性方法中的全部或部分步骤可以通过使用程序命令相关硬件来实现。这些程序可以存储在计算机可读存储介质中,并且当在计算机上运行时,这些程序包括本公开的方法实施例中的步骤之一或组合。Those skilled in the art should understand that all or part of the steps in the above exemplary methods of the present disclosure can be implemented by using program commands to related hardware. These programs may be stored in a computer-readable storage medium, and when run on a computer, these programs include one or a combination of the steps in the method embodiments of the present disclosure.

此外,本公开实施例的每个功能单元可以集成在处理模块中,或者这些单元可以是单独的物理存在,或者两个或更多个单元集成在处理模块中。集成模块可以以硬件的形式或以软件功能模块的形式实现。当集成模块以软件功能模块的形式实现并作为独立产品出售或使用时,集成模块可以存储在计算机可读存储介质中。In addition, each functional unit of the embodiment of the present disclosure may be integrated in a processing module, or these units may be separate physical existences, or two or more units may be integrated in a processing module. Integrated modules can be implemented in the form of hardware or in the form of software function modules. When the integrated module is implemented in the form of a software function module and sold or used as an independent product, the integrated module can be stored in a computer-readable storage medium.

上述存储介质可以是只读存储器、磁盘、光盘(Compact Disc,CD)等。The above storage medium may be a read-only memory, a magnetic disk, a compact disk (Compact Disc, CD), etc.

尽管已经示出和描述了本公开的实施例,但是本领域技术人员将理解,这些实施例是解释性的,并不能被解释为限制本公开,以及在不脱离本公开的范围的情况下,可以在实施例中进行改变、修改、替代和变型。Although embodiments of the disclosure have been shown and described, those skilled in the art will understand that these embodiments are illustrative and are not to be construed as limiting the disclosure, and without departing from the scope of the disclosure, Changes, modifications, substitutions, and variations may be made in the embodiments.

Claims (20)

Translated fromChinese
1.一种生成图像的方法,包括:1. A method of generating images, comprising:通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera component to capture at least one primary object specified by the first operating input;在显示器上显示通过对所述参考相机图像执行初始图像处理而获得的初始相机图像;displaying on the display an initial camera image obtained by performing initial image processing on the reference camera image;根据第二操作输入,从多个处理参数集中选择一个处理参数集,所述多个处理参数集指定具有不同处理内容的多个图像处理;以及selecting one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and通过在所述参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing image processing specified in the selected processing parameter set on the reference camera image.2.根据权利要求1所述的方法,2. The method according to claim 1,其中,所述第二操作输入是用户在所述显示器上显示所述初始相机图像之后的操作输入。Wherein, the second operation input is an operation input by the user after the initial camera image is displayed on the display.3.根据权利要求2所述的方法,3. The method of claim 2,其中,所述显示器是接受所述用户的所述第二操作输入的触摸屏。Wherein, the display is a touch screen that accepts the second operation input from the user.4.根据权利要求1所述的方法,4. The method of claim 1,其中,在所述显示器上显示所述处理后的相机图像,所述处理后的相机图像是通过在所述参考相机图像上执行所述选择的处理参数集中指定的图像处理而获得的。Wherein, the processed camera image is displayed on the display, and the processed camera image is obtained by performing image processing specified in the selected processing parameter set on the reference camera image.5.根据权利要求1所述的方法,5. The method of claim 1,其中,响应于所述第二操作输入,从所述多个处理参数集中选择定义第一图像处理的第一处理参数集或定义第二图像处理的第二处理参数集,所述第二图像处理的处理内容不同于所述第一图像处理的处理内容。Wherein, in response to the second operation input, a first processing parameter set defining the first image processing or a second processing parameter set defining the second image processing is selected from the plurality of processing parameter sets, and the second image processing The processing content of is different from the processing content of the first image processing.6.根据权利要求3所述的方法,6. The method of claim 3,其中,在所述显示器上显示刻度盘或滑动条,所述刻度盘或滑动条用于输入所述用户关于连续或逐步调整针对所述参考相机图像的所述图像处理的内容的操作。Wherein, a dial or a slide bar is displayed on the display, and the dial or slide bar is used to input the user's operation on continuously or gradually adjusting the content of the image processing for the reference camera image.7.根据权利要求1所述的方法,7. The method of claim 1,其中,将所述相机组件在所述参考相机图像中聚焦的对象设置为所述主对象。Wherein, the object focused by the camera component in the reference camera image is set as the main object.8.根据权利要求1所述的方法,8. The method of claim 1,其中,基于所述主对象的图像区域在所述参考相机图像中的比例,选择用于获取所述初始相机图像的待执行处理参数集。Wherein, based on the proportion of the image area of the main object in the reference camera image, the set of processing parameters to be performed for obtaining the initial camera image is selected.9.根据权利要求5所述的方法,9. The method of claim 5,其中,in,当所述主对象的图像区域在所述参考相机图像中的比例等于或大于预设的选择阈值时,在所述显示器上显示已被执行所述第一图像处理的所述初始相机图像,所述第一图像处理在所述第一处理参数集中被定义为所述初始图像处理,以及When the proportion of the image area of the main object in the reference camera image is equal to or greater than a preset selection threshold, the initial camera image on which the first image processing has been performed is displayed on the display, so the first image processing is defined as the initial image processing in the first processing parameter set, and在另一方面,当所述主对象的图像区域在所述参考相机图像中的所述比例小于所述选择阈值时,在所述显示器上显示已被执行所述第二图像处理的所述初始相机图像,所述第二图像处理在所述第二处理参数集中被定义为所述初始图像处理。On the other hand, when the proportion of the image area of the main object in the reference camera image is less than the selection threshold, the initial image on which the second image processing has been performed is displayed on the display. Camera image, the second image processing is defined as the initial image processing in the second processing parameter set.10.一种电子设备,包括:10. An electronic device, including:相机组件,配置为通过捕获对象来获取相机图像;a camera component configured to obtain a camera image by capturing an object;显示器;monitor;至少一个处理器;以及at least one processor; and至少一个存储器,包括程序代码;at least one memory, including program code;所述至少一个存储器和所述程序代码被配置为与所述至少一个处理器一起使所述电子设备执行:The at least one memory and the program code are configured to, together with the at least one processor, cause the electronic device to perform:通过控制所述相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera assembly to capture at least one primary object specified by the first operating input;在所述显示器上显示通过对所述参考相机图像执行初始图像处理而获得的初始相机图像;displaying on the display an initial camera image obtained by performing initial image processing on the reference camera image;根据第二操作输入,从多个处理参数集中选择一个处理参数集,所述多个处理参数集指定具有不同处理内容的多个图像处理;以及selecting one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and通过在所述参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing image processing specified in the selected processing parameter set on the reference camera image.11.根据权利要求10所述的电子设备,11. Electronic device according to claim 10,其中,所述第二操作输入是用户在所述显示器上显示所述初始相机图像之后的操作输入。Wherein, the second operation input is an operation input by the user after the initial camera image is displayed on the display.12.根据权利要求11所述的电子设备,12. Electronic device according to claim 11,其中,所述显示器是接受所述用户的所述第二操作输入的触摸屏。Wherein, the display is a touch screen that accepts the second operation input from the user.13.根据权利要求10的电子设备,13. Electronic device according to claim 10,其中,所述处理器被配置为在所述显示器上显示所述处理后的相机图像,所述处理后的相机图像是通过在所述参考相机图像上执行所述选择的处理参数集中指定的图像处理而获得的。wherein the processor is configured to display on the display the processed camera image, the processed camera image being an image specified by performing the selected processing parameter set on the reference camera image Obtained from processing.14.根据权利要求10所述的电子设备,14. The electronic device of claim 10,其中,所述处理器被配置为响应于所述第二操作输入,从所述多个处理参数集中选择定义所述第一图像处理的第一处理参数集或定义第二图像处理的第二处理参数集,所述第二图像处理的处理内容不同于所述第一图像处理的处理内容。wherein the processor is configured to select a first processing parameter set defining the first image processing or a second processing defining a second image processing from the plurality of processing parameter sets in response to the second operating input. Parameter set, the processing content of the second image processing is different from the processing content of the first image processing.15.根据权利要求12所述的电子设备,15. The electronic device of claim 12,其中,所述处理器被配置为在所述显示器上显示刻度盘或滑动条,所述刻度盘或滑动条用于输入所述用户关于连续或逐步调整针对所述参考相机图像的所述图像处理的内容的操作。wherein the processor is configured to display a dial or slider on the display, the dial or slider being used to input the user regarding continuous or stepwise adjustment of the image processing for the reference camera image content operations.16.根据权利要求10所述的电子设备,16. The electronic device of claim 10,其中,所述处理器被配置为将所述相机组件在所述参考相机图像中聚焦的对象设置为所述主对象。wherein the processor is configured to set an object focused by the camera component in the reference camera image as the main object.17.根据权利要求10所述的电子设备,17. The electronic device of claim 10,其中,所述处理器被配置为基于所述主对象的图像区域在所述参考相机图像中的比例,选择用于获取所述初始相机图像的待执行处理参数集。Wherein, the processor is configured to select a set of processing parameters to be performed for obtaining the initial camera image based on a proportion of the image area of the main object in the reference camera image.18.根据权利要求14所述的电子设备,18. The electronic device of claim 14,其中,in,当所述主对象的图像区域在所述参考相机图像中的比例等于或大于预设的选择阈值时,所述处理器被配置为在所述显示器上显示已被执行所述第一图像处理的所述初始相机图像,所述第一图像处理在所述第一处理参数集中被定义为所述初始图像处理,以及When the proportion of the image area of the main object in the reference camera image is equal to or greater than a preset selection threshold, the processor is configured to display on the display the image on which the first image processing has been performed. the initial camera image, the first image processing being defined as the initial image processing in the first processing parameter set, and在另一方面,当所述主对象的图像区域在所述参考相机图像中的所述比例小于所述选择阈值时,所述处理器被配置为在所述显示器上显示已被执行所述第二图像处理的初始相机图像,所述第二图像处理在所述第二处理参数集中被定义为所述初始图像处理。On the other hand, when the proportion of the image area of the main object in the reference camera image is less than the selection threshold, the processor is configured to display on the display that the first execution of the An initial camera image of a second image process, the second image process being defined as the initial image process in the second process parameter set.19.一种装置,包括:19. A device comprising:相机图像获取单元,配置为通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;a camera image acquisition unit configured to acquire a reference camera image by controlling the camera component to capture at least one main object specified by the first operation input;显示单元,配置为在显示器上显示通过对所述参考相机图像执行初始图像处理而获得的初始相机图像;a display unit configured to display on the display an initial camera image obtained by performing initial image processing on the reference camera image;参数选择单元,配置为根据第二操作输入,从多个处理参数集中选择一个处理参数集,所述多个处理参数集指定具有不同处理内容的多个图像处理;以及a parameter selection unit configured to select one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and相机图像生成单元,配置为通过在所述参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A camera image generation unit configured to generate a processed camera image by performing image processing specified in the selected processing parameter set on the reference camera image.20.一种计算机可读介质,包括存储在其上的程序指令,所述程序指令用于至少执行以下操作:20. A computer-readable medium comprising program instructions stored thereon for performing at least the following operations:通过控制相机组件以捕获由第一操作输入指定的至少一个主对象,来获取参考相机图像;acquiring a reference camera image by controlling the camera component to capture at least one primary object specified by the first operating input;在显示器上显示通过对所述参考相机图像执行初始图像处理而获得的初始相机图像;displaying on the display an initial camera image obtained by performing initial image processing on the reference camera image;根据第二操作输入,从多个处理参数集中选择一个处理参数集,所述多个处理参数集指定具有不同处理内容的多个图像处理;以及selecting one processing parameter set from a plurality of processing parameter sets specifying a plurality of image processes having different processing contents according to the second operation input; and通过在所述参考相机图像上执行所选择的处理参数集中指定的图像处理,生成处理后的相机图像。A processed camera image is generated by performing image processing specified in the selected processing parameter set on the reference camera image.
CN202180098120.8A2021-06-302021-06-30 Methods, electronic devices, devices and computer-readable storage media for generating imagesPendingCN117337578A (en)

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2021/103750WO2023272622A1 (en)2021-06-302021-06-30Method of generating an image, electronic device, apparatus, and computer readable storage medium

Publications (1)

Publication NumberPublication Date
CN117337578Atrue CN117337578A (en)2024-01-02

Family

ID=84692171

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202180098120.8APendingCN117337578A (en)2021-06-302021-06-30 Methods, electronic devices, devices and computer-readable storage media for generating images

Country Status (2)

CountryLink
CN (1)CN117337578A (en)
WO (1)WO2023272622A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8259208B2 (en)*2008-04-152012-09-04Sony CorporationMethod and apparatus for performing touch-based adjustments within imaging devices
CN106303250A (en)*2016-08-262017-01-04维沃移动通信有限公司A kind of image processing method and mobile terminal
CN107155060A (en)*2017-04-192017-09-12北京小米移动软件有限公司Image processing method and device
JP6946103B2 (en)*2017-08-012021-10-06キヤノン株式会社 Imaging device, light emission control device, its control method and program
CN108495043B (en)*2018-04-282020-08-07Oppo广东移动通信有限公司Image data processing method and related device
CN110727810B (en)*2019-10-152023-05-02联想(北京)有限公司Image processing method, device, electronic equipment and storage medium

Also Published As

Publication numberPublication date
WO2023272622A1 (en)2023-01-05

Similar Documents

PublicationPublication DateTitle
JP6945744B2 (en) Shooting methods, devices, and devices
CN108605097B (en)Optical imaging method and device
US9615012B2 (en)Using a second camera to adjust settings of first camera
JP6231869B2 (en) Imaging apparatus, communication device, control method thereof, and program
CN113727015B (en)Video shooting method and electronic equipment
CN114631306B (en) Method for providing preview and electronic device for displaying preview
JP2016534610A (en) Photography apparatus having a plurality of camera modules
CN113824878A (en)Shooting control method based on foldable screen and electronic equipment
WO2017096866A1 (en)Method and apparatus for generating high dynamic range image
JP2014057310A (en)Method and apparatus for displaying camera preview screen of portable terminal device
EP4246955A1 (en)Image processing method and electronic device
CN105144684A (en)Imaging device, image processing method, image processing program, and recording medium
CN116711316A (en) Electronic device and method of operation thereof
CN113726949A (en)Video processing method and electronic equipment
CN103139472A (en)Digital photographing apparatus and control method thereof
CN111343386A (en)Image signal processing method and device, electronic device and storage medium
CN109167921A (en)Image pickup method, device, terminal and storage medium
CN117337578A (en) Methods, electronic devices, devices and computer-readable storage media for generating images
JP7352034B2 (en) Imaging device, imaging instruction method, and imaging instruction program
CN106791358B (en)Terminal photographing method and device and terminal
JP2012034199A (en)Imaging device, control method, program and recording medium for imaging device
CN2901716Y (en) Photographic mobile phone with wireless remote control function
JP7550825B2 (en) Image processing method and device, mobile terminal, and storage medium
US9407821B2 (en)Electronic apparatus and method of controlling the same
CN116897530A (en) Methods, electronic devices, devices and computer-readable media for generating image data

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp