Image processing method and device

By identifying and setting image parameter values, an image with the same or similar style as the first image is automatically obtained, which solves the problem of low efficiency in obtaining target style images in the existing technology and improves user experience.

CN120711280APending Publication Date: 2025-09-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510572970.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The existing methods for obtaining images with a target style are inefficient, resulting in a reduced user shooting experience.

Method used

By identifying the parameter values ​​of the first image and setting the parameters of the preview image or the edited image to the same or similar values, an image with the same or similar style as the first image is automatically obtained, reducing the number of manual setting steps for the user.

Benefits of technology

It improves the efficiency and success rate of acquiring target style images, simplifies user operations, and enhances the shooting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711280A_ABST
    Figure CN120711280A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method and device, relates to the technical field of terminals, can improve the efficiency of obtaining an image with the same or similar style as a reference image through shooting by equipment, and is beneficial to improving the shooting experience of a user. The method comprises the steps that after a reference image is acquired, a first parameter of the reference image is a first value, and the electronic equipment can set the first parameter in a current shooting scene to be the first value based on the reference image, so that at least the value set by the first parameter of the shot image is the same as that of the reference image; the style of the shot image is the same as or similar to that of the reference image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to an image processing method and device. Background Art

[0002] To enhance the user's shooting experience, electronic devices can capture images in various styles by setting different parameters. For example, before capturing an image, i.e., during the preview process, by setting parameters such as brightness, color, and saturation, or selecting a preset template, the electronic device can display a preview image with the target style; and in response to the user's input operation to trigger the capture of an image, an image with the target style can be captured. Furthermore, for images in the electronic device's gallery, by editing the image, such as by setting filters and / or setting parameters such as brightness, color, and saturation, the display effect of the image can also be changed, thereby also obtaining an image with the target style.

[0003] However, this method of obtaining images with a target style is inefficient, thereby reducing the user's shooting experience. Summary of the Invention

[0004] The present application provides an image processing method and apparatus, in which a terminal device can identify the value set for a first parameter of a first image based on a first image acquired, and can set the first parameter of a preview image or an edited image to the first value, thereby obtaining an image with the same or similar style as the first image, and can efficiently acquire an image with a target style, thereby improving the user experience.

[0005] In a first aspect, an image processing method is provided, which is applied to a first device, the method comprising: acquiring a first image, wherein a first parameter of the first image is a first value; while displaying a first interface, in response to a first operation, displaying at least one image, wherein the at least one image includes the first image, and the first interface is a preview interface or an image editing interface; in response to an input operation of selecting a first image from at least one image, displaying a second interface, wherein the second interface includes a second image and a first control; wherein the first parameter of the second image is a first value, the second image is a preview image or an edited image, the first control is used to set the first parameter, and the first control displayed in the second interface indicates that the first parameter is the first value.

[0006] The first image can be understood as a reference image. The first device needs to capture or edit an image to obtain an image with the same or similar style as the first image. The at least one image can be an image stored in the first device.

[0007] When the first and second interfaces are preview interfaces, the second image can be understood as a preview image. Alternatively, in response to an input operation triggering image capture, the first device can obtain image 1, where the first parameter of image 1 is a first value. The style of image 1 is the same as or similar to the styles of the first and second images.

[0008] When the first and second interfaces are image editing interfaces, the second image can be understood as the image resulting from setting the first parameter of the initial image in the first interface to the first value. Optionally, in response to an input operation triggering image saving, the first device can obtain the second image. The second image can, for example, be stored in the gallery over the initial image or saved separately in the gallery.

[0009] The first control can be used to display the current value of the first parameter. Therefore, when the second image is displayed, if the first parameter of the second image is the first value, the first control can display the first value.

[0010] In the image processing method of the present application, when a first device needs to capture an image with the same style as a first image, or when an already captured image needs to be edited to obtain an image with the same style as the first image, the first device can import the first image and capture or edit a second image with the same first parameter value as the first image. If the first image and the second image have the same value for at least the first parameter, then the second image has the same or similar style as the first image.

[0011] In this way, the user does not need to manually set the first parameter, the operation is simple, and an image with the target style can be efficiently obtained. Furthermore, even if the user cannot determine the value set for the first parameter of the first image, an image with the same or similar style as the first image can still be obtained, thereby increasing the success rate of obtaining images with the target style.

[0012] In addition, the first control can also be used to display the value of the first parameter in the second image, so as to facilitate the user to determine the value of the first parameter and to facilitate the subsequent transmission of the value of the first parameter between users.

[0013] In certain embodiments of the first aspect, the method further includes: in response to a second operation on the first control, the second image switches to a third image, the first parameter of the third image is a second value, and the first control indicates that the first parameter is the second value, and the second operation is used to set the first parameter to the second value.

[0014] The second operation is an operation of setting the first parameter through the first control. Through the second operation, the image style changes, and the second image switches to the third image. Furthermore, the value of the first parameter represented by the first control changes.

[0015] In this way, when the style of the second image does not meet the user's needs, the first parameter can be further adjusted through the first control to obtain an image that meets the user's needs.

[0016] Optionally, when the third image is displayed, an undo control is also displayed. The undo control is used to undo the most recent setting of the first parameter. The method further includes: when the third image is displayed, in response to an input operation on the undo control, the third image switches to image a, the first parameter of image a is the second value, and the first control indicates that the first parameter has the second value.

[0017] In the case where the second interface is a preview interface, image a is a preview image, and the first parameter value of image a and the second image is the same, and the first parameter value is also the value set by the first parameter.

[0018] When the second interface is an image editing interface, image a is the second image.

[0019] In this way, it is convenient for the user to restore the image style to the same style as the first image.

[0020] In certain embodiments of the first aspect, the second interface further includes a first button and a first identifier for indicating that the first button is selected; the first button is used to select the value set for the first parameter of the first image.

[0021] In this way, it is convenient to select the value of the first parameter of the first image through the first button.

[0022] In certain embodiments of the first aspect, after displaying the second interface, the method further includes:

[0023] In response to a user's input operation, at least one image is displayed on the second interface, the at least one image includes a fourth image, and the first parameter of the fourth image is a third value; in response to an input operation of selecting a fourth image from at least one image, a third interface is displayed, the third interface includes a fifth image, a first control, a first button, a second button, and a first identifier for indicating that the second button is selected; wherein the first parameter of the fifth image is the third value, the second button is used to select the value set by the first parameter of the fourth image, and the first control displayed in the third interface indicates that the first parameter is the third value.

[0024] Compared with the second interface, the third interface has the second image switched to the fifth image, a second button added, and the first indicator switched from the state of selecting the first button to the state of selecting the second button.

[0025] In this way, the user can easily import the values ​​set for the first parameter of more images and compare different values ​​to obtain an image that meets the needs.

[0026] In certain embodiments of the first aspect, the method further includes: when the third interface is displayed, in response to an input operation of selecting the first button, the fifth image switches to the sixth image, and the first identifier switches from a state in which the second button is selected to a state in which the first button is selected, and the first parameter of the sixth image is the first value.

[0027] In this way, through the first button and the second button, the user can switch between setting the first parameter to the first value and setting the first parameter to the third value, and can efficiently compare the effects when the first parameter is set to the first value and the second value, so that the user can decide the value of the first parameter and obtain an image that meets the needs.

[0028] In certain embodiments of the first aspect, the second interface further includes a second control, the second control being used to trigger display of a third control, and the third control being used to trigger customization of the value of the first parameter;

[0029] The method further includes:

[0030] When the second interface is displayed, in response to an input operation on the second control, a third control is displayed on the second interface;

[0031] In response to an input operation on the third control, a third button is displayed on the second interface, and the first indicator switches from a state in which the first button is selected to a state in which the third button is selected, and the third button is used to select a customized value of the first parameter;

[0032] In response to the third operation on the first control, the second image switches to display the seventh image, and the first control indicates that the first parameter is set to the fourth value; the third operation is used to set the first parameter to the fourth value, and the first parameter of the seventh image is the fourth value.

[0033] It is understood that when the second interface is a preview interface, the preview image in the second interface may change during the process of triggering the display of the third control or the third button on the second interface. However, since the value of the first parameter does not change during this process, the preview image during this process is generally referred to as the second image.

[0034] In this way, a user-defined first parameter value can be added, which facilitates the user to compare the style corresponding to the user-defined first parameter value and the first parameter value of the first image, thereby obtaining an image that meets the user's needs.

[0035] In certain embodiments of the first aspect, the method further includes: when the seventh image is displayed, in response to an input operation of selecting the first button, the seventh image is switched to the eighth image, the first parameter of the eighth image is the first value, and the first identifier is switched from a state in which the third button is selected to a state in which the first button is selected.

[0036] In this way, the first button and the third button facilitate the user to switch between the first parameter being set to the first value and the first parameter being set to the fourth value, and can effectively compare the effects when the first parameter is set to the first value and the fourth value, so that the user can decide the value of the first parameter.

[0037] In certain embodiments of the first aspect, a second control is also displayed when the seventh image is displayed, and the second control is further used to trigger display of a fourth control, and the fourth control is used to delete the customized value of the first parameter;

[0038] The method further includes:

[0039] When the seventh image is displayed, in response to the input operation on the second button, the fourth control is displayed; in response to the input operation on the fourth control, the seventh image switches to the ninth image, the third button disappears, and the first identifier selects the first button; the first parameter of the ninth image is the first value.

[0040] In this way, the user-defined first parameter value can be deleted through the fourth control. For the first parameter value that does not meet the user's needs, such as the fourth value corresponding to the third button, when the third button is selected by the first identifier, the first parameter value corresponding to the third button can be deleted by inputting into the fourth control.

[0041] In certain embodiments of the first aspect, acquiring a first image includes:

[0042] When the fourth interface is displayed, in response to the fourth operation, the first parameter is set to the first value, and the fourth interface is a preview interface or an image editing interface; in response to the fifth operation, the first image is obtained, the first image displays the first element, the first element is used to indicate that the first parameter is the first value, and the fifth operation is used to capture the image or confirm the editing operation on the image.

[0043] The fourth operation may be an operation for arbitrarily setting the first parameter. Alternatively, the fourth operation may be optional. For example, in a shooting scene, if the first parameter is set to the first value by default, then if the user does not set the shooting parameter, the first parameter of the first image captured is also the first value.

[0044] The first element may be, for example, a watermark, etc., and the first element may be displayed or not displayed based on a setting operation of a user.

[0045] In this way, it is convenient for the user to accurately determine the first parameter value of the first image through the first element.

[0046] In certain embodiments of the first aspect, the method further includes: when displaying the fifth interface, in response to a user input operation, displaying a first control on the fifth interface, the first control indicating that the first parameter is an initial value, and the fifth interface is a preview interface or an image editing interface; in response to a sixth operation on the first control, displaying a sixth interface, the sixth interface including a tenth image and the first control, the sixth operation being used to set the first parameter to the first value, the first parameter of the tenth image being the first value, and the first control displayed in the sixth interface indicating that the first parameter is the first value.

[0047] In this way, when the user determines that the value of the first parameter is the first value, the first parameter can be set to the first value through the first control, so that an image of the target style can be obtained.

[0048] In certain embodiments of the first aspect, the first interface includes a fifth control, which is used to trigger the display of the first control; in response to the first operation, at least one image is displayed, including: in response to the input operation on the fifth control, a seventh interface is displayed, the seventh interface includes a ninth image, the first control and the second control, the second control is used to trigger the display of a sixth control, the first parameter of the ninth image is an initial value, and the first control in the seventh interface indicates that the first parameter is the initial value; in response to the input operation on the second control, a sixth control is displayed on the seventh interface, the sixth control is used to trigger the display of at least one image; in response to the input operation on the sixth control, at least one image is displayed.

[0049] The ninth image may be a preview image or an image to be edited.

[0050] In this way, the first device can display at least one image through multiple controls, so that the user can import the first image.

[0051] In certain embodiments of the first aspect, the second image is displayed based on one or more of the following: first information corresponding to the first image, the first information is used to record data related to the first image, and the first information includes a first value; pixel data of the first image, the pixel data carries first data, and the first data is used to indicate a first value; the first element displayed by the first image, the first element includes a first value; or, a first prediction parameter, the first prediction parameter is inferred based on the first image, and the first prediction parameter includes a first value.

[0052] While the first device acquires the first image, first information storing the first value may be acquired.

[0053] Pixel data carrying first data can also be understood as pixel data including or embedding first data. The first data is a specific representation of the first value. The first data can be obtained by encoding or format conversion of the first value. Alternatively, the first data can be the first value itself. The pixel data of the first image can also be understood as the image data of the first image, or the first image itself.

[0054] The first element may be a watermark or other identification or information, and the user may directly determine the value of the first parameter as the first value through the first element.

[0055] The first prediction parameter is obtained by inference or prediction based on the first image.

[0056] In this way, the value of the first parameter in the first image can be determined in different ways, so that the first device has a higher success rate in determining the value of the first parameter in the first image, which helps to efficiently obtain an image with a target style.

[0057] In certain embodiments of the first aspect, displaying the second interface includes: when the first device stores the first information, based on the first information, setting the first parameter to the first value, and displaying the second interface; or, when the first device does not store the first information, extracting the first data from the image data and decoding the first data to obtain the first value; setting the first parameter to the first value, and displaying the second interface.

[0058] It is understood that the first information can directly store the first value, and the method for the first device to determine the value of the first parameter based on the first information is simple. When the first device stores the first information or understands that the first information can be obtained, it is convenient for the first device to accurately and efficiently determine the value of the first parameter.

[0059] If the first device does not store the first information or is unable to obtain the first information, the first parameter value can be obtained by extracting the first data from the image data. This increases the success rate of the first device in determining the first parameter value in the first image, facilitating efficient acquisition of an image having a target style.

[0060] In certain embodiments of the first aspect, displaying the second interface includes: when the first device does not store the first information and the pixel data does not carry the first data, inputting the first image into a first model, the first model being used to predict the value of a first parameter of the image; outputting the first value based on the first model, setting the first parameter to the first value, and displaying the second interface.

[0061] The first model may, for example, extract image features of the first image through feature extraction, and may analyze and process the image features to infer or predict the value of the first parameter in the first image.

[0062] In this way, even if the first device cannot obtain the first information and cannot extract the first value from the image data, the value of the first parameter in the first image can be predicted through the first model, which makes it easier for the first device to determine the value of the first parameter in the first image with a higher success rate, and helps to efficiently obtain images with the target style.

[0063] In addition, it can be understood that even if the first model does not accurately predict the first parameter value of the first image, since the first model predicts the first parameter value of the first image based on the image features of the first image, the predicted value is also close to the first parameter value of the first image, then the predicted value can also be used to obtain an image with a style similar to that of the first image.

[0064] In certain embodiments of the first aspect, when the second image is displayed based on the first information, obtaining the first image includes: receiving the first image and the first information from the second device; or, when the fourth interface is displayed, obtaining the first image and the first information in response to an input operation of setting the first parameter to the first value, and the fourth interface is a preview interface or an image editing interface.

[0065] In this way, the first device can obtain the first information while obtaining the first image, which facilitates subsequent shooting based on the first information or obtaining an image with the same style as the first image through image editing.

[0066] In certain embodiments of the first aspect, when the second image is displayed based on the first data, obtaining the first image includes any one of the following: downloading the first image; taking a screenshot of the tenth image to obtain the first image; receiving the first image from the second device; or, when the fourth interface is displayed, in response to an input operation of setting the first parameter to the first value, obtaining the first image, the fourth interface being a preview interface or an image editing interface.

[0067] That is, the first image can be an image obtained through any means, such as a downloaded image, a screenshot, an image obtained from another device, an image captured, or an image obtained through image editing, so that the first device can capture or edit an image that meets the user's needs.

[0068] In certain embodiments of the first aspect, the first information is exchangeable image file format information.

[0069] In this way, when the first device captures an image or continues to edit the image, the value of the first parameter can be stored in the exchangeable image file format information, and the exchangeable image file format information can also be obtained when the image is obtained from other devices, thereby facilitating the subsequent determination of the first parameter value of the image.

[0070] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0071] In a third aspect, an embodiment of the present application provides a communication system, which includes a first device and a second device. The first device executes the method described in the first aspect or any possible implementation of the first aspect, and the second device is used to send a first image to the first device.

[0072] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0073] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when the computer program runs on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.

[0074] In a sixth aspect, the present application provides a chip or chip system, comprising at least one processor and a communication interface, wherein the communication interface and the at least one processor are interconnected via a line, and the at least one processor is configured to execute a computer program or instruction to perform the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip may be an input / output interface, a pin, or a circuit.

[0075] In one possible implementation, the chip or chip system described above in this application further includes at least one memory, in which instructions are stored. The memory may be a storage unit within the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0076] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A schematic diagram of an interface for an image capturing process;

[0078] Figure 2 A schematic diagram of an image acquisition method provided in an embodiment of the present application;

[0079] Figure 3 This is a schematic diagram of the interface of the first image capture process provided in an embodiment of the present application;

[0080] Figure 4 A schematic diagram of an interface for a second image capturing process provided in an embodiment of the present application;

[0081] Figure 5 A schematic diagram of the interface of the third image capture process provided in an embodiment of the present application;

[0082] Figure 6 This is a schematic diagram of an interface for a fourth image capturing process provided in an embodiment of the present application;

[0083] Figure 7 A flowchart of an image processing method provided in an embodiment of the present application;

[0084] Figure 8 A schematic diagram of an image showing a first element provided in an embodiment of the present application;

[0085] Figure 9 A flowchart of another image processing method provided in an embodiment of the present application;

[0086] Figure 10 A schematic block diagram of the interaction between software and hardware of an electronic device provided in an embodiment of the present application;

[0087] Figure 11 A flowchart of an image processing method provided in an embodiment of the present application;

[0088] Figure 12 A schematic block diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;

[0089] Figure 13 A schematic block diagram of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] The technical solution in this application will be described below with reference to the accompanying drawings.

[0091] First, in the embodiments of this application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first and second numerical values ​​are merely used to distinguish different numerical values ​​and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean different.

[0092] Second, in the embodiments of the present application, words such as "exemplarily" or "for example" are used to give examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the present application should not be construed as more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplarily" or "for example" aims to present relevant concepts in a specific manner.

[0093] Third, in the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item)" or similar expressions refer to any combination of these items, including any combination of single item (s) or multiple items (s). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.

[0094] Fourth, the electronic device of the embodiment of the present application may include a handheld device, a vehicle-mounted device, etc. with an image capture function. For example, some electronic devices include: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLMNs). The terminal equipment in the network (PLMN), etc., is not limited to this in the embodiments of the present application.

[0095] As an example and not a limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0096] In addition, in the embodiments of the present application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0097] The electronic devices in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0098] In an embodiment of the present application, an electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also known as main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, a Harmony operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0099] In order to better understand the method provided in the embodiments of the present application, the following is a brief explanation of the terms involved in the present application.

[0100] 1. Exchangeable Image File Format (EXIF)

[0101] EXIF is a standard format for storing image information. It can be embedded in image files and contains information about the image. Examples include the date and location of the image, the camera model, and exposure settings (such as aperture and shutter speed).

[0102] 2. Watermark

[0103] A watermark is a logo or information added to an image for copyright protection or branding purposes. Watermarks can be visible (such as text or graphics) or invisible (such as digital watermarks).

[0104] 3. Hue

[0105] Hue is one of the fundamental properties of color, and can refer to the type or name of a color, such as red, blue, or green. Hue is a dimension of color, typically represented on a color wheel. Adjusting the hue of an image can change its overall color.

[0106] For example, adjusting the hue toward red might make the overall image warmer; adjusting the hue toward blue might make the overall image cooler.

[0107] 4. Light and Shadow

[0108] This refers to the distribution and interaction of light and shadow within an image. Light source direction, light intensity, shadows, reflections, and highlights can all influence the lighting in an image. Lighting can be controlled, for example, through parameters like brightness, contrast, shadows, and highlights.

[0109] Currently, in order to meet the different needs of users and improve their shooting experience, a variety of electronic devices can capture images of various styles.

[0110] For example, before taking an image, that is, during the preview process of the image, by setting various shooting parameters, such as selecting a shooting template, setting color, sharpness, saturation, etc., the electronic device can display a preview image of the target style; and in response to the user's input operation to trigger the electronic device to take an image, the electronic device can capture an image with the target style.

[0111] For example, for images stored in an electronic device, such as images in a gallery, by editing the image, such as setting parameters such as color, sharpness, and saturation, the electronic device can obtain an edited image, and the edited image also has a target style.

[0112] It should be understood that in the embodiments of the present application, style can be understood as the display effect (or visual characteristics) of an image, and the style of an image can be affected by a variety of parameters, such as, but not limited to, exposure parameters, shooting mode, brightness, contrast, color, saturation, dynamic range, sharpness, soft light level, or noise granularity. For the sake of simplicity, the parameters that can affect the style of an image and can be set before, during, or after capturing an image are referred to as style parameters.

[0113] Below, taking the mobile phone as an example, combined with Figure 1 , describes the process of users taking images through mobile phones.

[0114] like Figure 1 As shown in (a), in response to the user's input operation, the mobile phone starts the camera application and can display Figure 1 The interface shown in (a) in FIG. This interface can be understood as a preview interface.

[0115] Figure 1 The interface shown in (a) includes a preview window 101 , a capture button 102 , a thumbnail button 103 , a capture mode selection area 104 , a button for setting a magnification, a settings button 105 , and a template selection button 106 .

[0116] Among them, the preview window 101 can display the image data captured by the mobile phone's camera in real time, that is, display the preview image in real time; as the style parameters related to image shooting set by the mobile phone are different, the style of the preview image displayed in the preview window 101 may be different.

[0117] The capture button 102 can be used to trigger the mobile phone to capture an image.

[0118] The thumbnail button 103 can be used to trigger the mobile phone to display the latest image captured by the mobile phone.

[0119] The shooting mode selection area 104 includes a plurality of shooting mode buttons: an “aperture” button, a “night scene” button, a “photograph” button, and a “portrait” button, etc. These buttons can be used to select different shooting modes.

[0120] It should be understood that Figure 1 The portrait mode is used as an example. In actual application scenarios, other shooting modes can also be selected. For the sake of brevity, they are not shown here one by one.

[0121] The buttons for setting the magnification include, for example, “w” and “1×” shown in the figure, and these buttons are used to select different magnifications.

[0122] It should be understood that Figure 1 The magnification ratio is shown as "1×" as an example. In actual application scenarios, other magnification ratios can also be selected. For the sake of simplicity, they are not shown here one by one.

[0123] The setting button 105 can be used to set various other style parameters, such as whether to add a watermark, photo ratio, video frame rate, video resolution and other style parameters.

[0124] The template selection button 106 can be used to trigger the mobile phone to display multiple preset templates, each template corresponding to a different display effect (or style).

[0125] For example, in response to the user's input operation on the template selection button 106, the mobile phone can display multiple templates, such as Figure 1 (b) shows template 1, template 2, template 3 and template 4.

[0126] In response to the user's input operation of selecting Template 3, the Figure 1 The interface shown in (b).

[0127] Since the mobile phone has selected Template 3 at this time, the preview window 101 may display a preview image of the style corresponding to Template 3.

[0128] In addition to selecting a template, the user can also set other style parameters, such as brightness, contrast, color, saturation, dynamic range, etc., to further adjust the style of the preview image displayed in the preview window 101. For the sake of brevity, they are not shown here one by one.

[0129] After the setting is completed, that is, when the style of the preview image displayed in the preview window 101 meets the user's needs, in response to the user's input operation of clicking the shooting button 102, the mobile phone shoots the image, and the mobile phone can display Figure 1 The interface shown in (c).

[0130] Figure 1 The interface shown in (c) is compared with Figure 1 The interface shown in (a) or (b) can be understood as a preview interface displayed at different times. Figure 1 The interface shown in (a) or (b) is different in that the preview image displayed in the preview window 101 may be different (because the preview window 101 displays the image data captured by the mobile phone's camera in real time), and the pattern of the thumbnail button 103 changes, which is a thumbnail of the image most recently captured by the mobile phone.

[0131] In response to the user's input operation of clicking the thumbnail button 103, the mobile phone displays Figure 1 The interface shown in (d) includes the latest captured image 107. Figure 1 In the interface shown in (c) , the pattern of the thumbnail button 103 can be understood as a thumbnail of the image 107 .

[0132] Combine Figure 1 From the interface shown in (a) or (b), it can be understood that image 107 was captured in portrait mode, with a magnification of "1×" and template 3 selected. Therefore, the style of image 107 is consistent with the style provided by portrait mode, a magnification of "1×", and template 3.

[0133] For example, the person in image 107 is clear and the background is blurred; and the style parameters of image 107 such as color, saturation, and sharpness are the same as those of template 3.

[0134] Display on mobile phone Figure 1In the interface (d), in response to the user clicking the edit button 108, the mobile phone may display an editing interface for the image 107, for example Figure 1 As shown in the interface shown in (e).

[0135] show Figure 1 The interface (e) includes multiple buttons for editing images, such as AI photo editing button, cropping button, adjustment button, filter button, graffiti button, etc.

[0136] Among them, the AI ​​photo editing button can be used to perform AI photo editing on image 107.

[0137] The crop button may be used to crop the image 107 .

[0138] The adjustment button can be used to adjust various style parameters of the image 107 .

[0139] For example, when the adjustment button is selected (or in response to an input operation of the user clicking the adjustment button), the interface further displays a plurality of buttons for adjusting the image 107, such as a brightness button, a contrast button, a saturation button, a sharpness button, etc. These buttons can be used to adjust the brightness, contrast, saturation, and sharpness of the image 107, respectively.

[0140] It should be understood that Figure 1 Interface (e) in the figure can be understood as the interface displayed by the mobile phone when the brightness button is selected (or in response to the input operation of the user clicking the brightness button). In actual application scenarios, when other buttons are selected, the mobile phone display interface may be different. For the sake of brevity, they are not shown here one by one.

[0141] The filter button can be used to add different filters to the image 107 .

[0142] The graffiti may be used to draw on the image 107 .

[0143] In response to the user's input operation of clicking the save button 109 , the mobile phone can save the edited image 107 to obtain the edited image 110 . The mobile phone can store the edited image 110 separately or overwrite the image 107 .

[0144] Through the above process, users can obtain images of different styles.

[0145] It should be noted that the above process is only an example. In actual application scenarios, users can also set some style parameters that may affect the image display effect in other ways. For the sake of brevity, they are shown here one by one.

[0146] However, when a user subsequently needs to take an image with the same style as image 110 again, or when other users need to take an image with the same style as image 110 , the style parameters related to image 110 may not be accurately acquired.

[0147] In addition, even if the style parameters related to image 110 can be accurately obtained, the operation of setting the style parameters during the process of shooting the image or editing the image after shooting the image is complicated, which makes the user's shooting efficiency low and affects the user's shooting experience.

[0148] In view of this, the present application provides an image processing method, in which an electronic device obtains a first image, and the first parameter of the first image (that is, the style parameter mentioned above) is a first value; in the process of the electronic device shooting or editing an image, the first value can be obtained based on the first image, and the first parameter can be set to the first value, so as to shoot or edit a second image in which the first parameter is the first value.

[0149] In this way, the second image has the same value of at least the first parameter as the first image, so that the display effect (style) of the second image is similar to or the same as that of the first image.

[0150] Moreover, even if the user cannot determine the style parameters of the first image, the electronic device can determine the first parameter as the first value based on the first image, so as to facilitate the transmission of the style parameters of the image between different devices, so that an image with a style similar to or the same as that of the existing image can be captured or edited.

[0151] In addition, when the electronic device determines that the first parameter is the first value, the first parameter can be automatically set to the first value, which reduces the user's operation steps and can improve the user experience.

[0152] It should be understood that since the following description involves the interaction of multiple devices, in order to facilitate understanding of this application, the electronic device will be referred to as the first device and the device interacting with the first device will be referred to as the second device for example.

[0153] The first device and the second device can be electronic devices with image capture functions, and the first device and the second device can be the electronic devices themselves, or they can be chips, chip systems or processors that support electronic devices to implement image processing methods, or they can be logic modules or software that can implement all or part of the functions of electronic devices.

[0154] It should also be understood that the specific form and quantity of each device shown in the embodiments of the present application are merely examples and should not constitute any limitation on the implementation of the method provided in the present application.

[0155] The first image may be an image captured and stored historically by the first device, an image downloaded from a third-party website, a screenshot (or screen capture), a picture displayed on another device, or a cropped image, etc.

[0156] Alternatively, the first image may also be an image obtained from the second device. Figure 2 As shown, the second device captures and / or edits the image at the historical moment (for example, Figure 1 The process is similar to that in FIG. 2 . The second device sends the image 201 to the first device. The first device can obtain the image 201 from the second device.

[0157] After the first device acquires the first image, a second image having the same or similar style as the first image may be obtained, for example, according to the following process.

[0158] Figure 3 A schematic diagram of an interface for an image capture process provided in an embodiment of the present application.

[0159] like Figure 3 As shown in (a) in the figure, this interface is the same as Figure 1 Similar to (a), it can be understood as the shooting interface (or preview interface) displayed by the first device. This interface also includes a preview window 301, a shooting button 302, a thumbnail button, a shooting mode selection area, and a button for setting the magnification ratio. For details, please refer to Figure 1 Description in .

[0160] and Figure 1 The difference between (a) is that Figure 3 In (a), it also includes a slide-up button 303 and a style parameter button 304.

[0161] In one possible implementation, in response to a user input operation on the slide-up button 303, such as an upward slide operation, the first device may display Figure 3 The interface shown in (b) is equivalent to Figure 3 A card 305 is displayed on the interface shown in (a).

[0162] A plurality of buttons are displayed in the card 305, such as a button for setting an image ratio, a flash button, a personalized style button 306, and the like.

[0163] The personalized style button 306 and the style parameter button 304 have the same function.

[0164] For example, in response to a user input operation on the personality style button 306 or the style parameter button 304, such as a click operation, the first device may display Figure 3The interface shown in (c).

[0165] like Figure 3 As shown in (c) in Figure 3 The difference between the preview interface shown in (a) or (b) is that Figure 3 In (c) , the size of the preview window 307 is reduced, and the capture button 308 is moved upward and displayed in the preview window 307 .

[0166] and, Figure 3 In (c), card 309 is also displayed.

[0167] The plurality of controls displayed in the card 309 can be used to set style parameters, for example, a button 310 for setting hue, a button 311 for setting saturation, and a button 312 for setting light and shadow.

[0168] In addition, button 310 can also display the value of hue (currently set value), button 311 can also display the value of saturation, and button 312 can also display the value of light and shadow, so that the user can easily determine the value of each style parameter.

[0169] A slide bar 313 is also displayed on the card 309. In response to a user input operation on the slide bar 313, such as sliding up or down, the values ​​of some style parameters can be changed.

[0170] It can be understood that by setting the style through buttons 310 , 311 , 312 and some or all of the controls in the slider 313 , the style of the preview image displayed in the preview window 307 may change as the style parameters change.

[0171] For example, combined with Figure 3 In (c), assuming that the user sets the hue to 09, the saturation to 03, and the lightness to 12, the values ​​of these parameters have all changed. Then, the style of the preview image displayed in the preview window 307 has changed compared to the style of the preview image displayed in the preview window 301.

[0172] The card 309 also displays an undo button 324 , which is used to undo the most recent setting of the style parameters.

[0173] Card 309 also displays a button 314 and an indicator 315 for selecting button 314. Button 314 corresponds to a set of style parameter values. Button 314 can be used to select the style parameter values ​​currently displayed on the interface. In other words, when button 314 is selected, the style parameters of the preview image currently displayed in preview window 307 are the same as the set of style parameter values ​​corresponding to button 314.

[0174] A button 316 is also displayed on the card 309. The button 316 can be used to trigger the first device to add more sets of style parameter values.

[0175] For example, in response to a user input operation on button 316, such as clicking button 316, the first device may display Figure 3 Compared to the interface shown in (d) Figure 3 The interface shown in (c) is equivalent to Figure 3 Card 317 is displayed on the interface shown in (c).

[0176] Card 317 displays a control for importing a style template, a control for creating a new custom parameter, and a control for deleting the custom parameter.

[0177] In response to a user input operation on the import style template control, such as a click operation, the first device may display Figure 3 Compared to the interface shown in (e) Figure 3 The interface shown in (d) is equivalent to Figure 3 The interface shown in (d) shows a window 318. The window 318 includes multiple images, including the image 201 acquired by the first device.

[0178] In the case of selecting image 201, in response to the user's input operation on the import preset control, such as a click operation, the first device may display Figure 3 The interface shown in (f) is the same as Figure 3 The interface shown in (c) is similar to the interface shown in FIG. 1 , except that the preview image displayed in the preview window 307 in the interface is the same as the preview image displayed in the preview window 307 in the interface. Figure 3 The preview image style displayed in the preview window 307 in (c) is different.

[0179] Figure 3 In the interface shown in (f), the style parameters of the preview image displayed in preview window 307 are the same as those of image 201. Alternatively, at least the values ​​of hue, saturation, and light and shadow in the style parameters are the same, making the two images have the same or similar styles. For example, combining the values ​​currently displayed by buttons 310, 311, and 312, we can see that the hue of the two images is 07, the saturation is 02, and the light and shadow is 12.

[0180] also, Figure 3 The interface shown in (f) is compared with Figure 3 The interface shown in (c) in FIG. 3 further includes a button 319. The values ​​of a set of style parameters corresponding to the button 319 are the values ​​of hue, saturation, and light and shadow displayed on the current interface. In addition, Figure 3In the interface shown in (f), the indicator 315 selects the button 319, indicating that the value of the currently selected style parameter is the value of a set of style parameters corresponding to the button 319.

[0181] Or, in the display Figure 3 In the interface shown in (f), in response to the user's input operation on the button 314, such as a click operation, the first device may display the same Figure 3 That is, the first device selects a set of style parameter values ​​corresponding to button 314, and the style of the preview image displayed in the preview window 307 is the same as that of the preview image. Figure 3 The preview images shown in (c) are of the same or similar style.

[0182] Optionally, when the first device displays multiple images included in the window 318, in the case where M images are selected, M is an integer greater than 1, Figure 3 The interface shown in (f) may display a button corresponding to each of the M images (similar to button 319 ).

[0183] For example, in combination Figure 4 ,like Figure 4 As shown in (a) in the figure, this interface is the same as Figure 3 The interface shown in (e) is similar to that shown in FIG. 1 , except that, in addition to image 201, images 320 and 321 are also selected. In response to the user's input operation on the import preset control, the first device may display Figure 4 The interface shown in (b) is compared with Figure 3 The interface shown in (f) further includes a button 322 corresponding to the image 320 and a button 323 corresponding to the image 321 .

[0184] Among them, button 322 corresponds to the style parameter values ​​set for image 320. Alternatively, it can be understood that the style parameter values ​​corresponding to button 322 have at least the same hue, saturation, and light and shadow values ​​as those of image 320. Similarly, button 323 corresponds to the style parameter values ​​set for image 321.

[0185] I understand. Figure 4 (b) illustrates the set of style parameters corresponding to the currently selected button 319 (i.e., image 201) as an example. In actual application scenarios, after the first device imports the M selected images, the display interface of the first device may select a set of style parameter values ​​corresponding to any one of the M images. For example, the set of style parameter values ​​corresponding to the last image selected by the user when selecting the M images may be selected. This application does not impose specific limitations on this.

[0186] Combine Figure 3In the interface shown in (f), through the preview image displayed in the preview window 307, when the user determines that the style of the current preview image meets the requirements, the target image can be captured by the shooting button 308. The hue, saturation and light and shadow values ​​of the target image are respectively the same as the values ​​displayed by buttons 310, 311 and 312 in the interface.

[0187] In addition, optionally, in response to the user's input operation on the shooting button 308, the first device may display Figure 3 A user can trigger the display of the target image by, for example, clicking a thumbnail button.

[0188] Or, alternatively, in combination Figure 3 In the interface shown in (f), through the preview image displayed in the preview window 307, if the style of the current preview image does not meet the user's needs, the user can further adjust the style parameters based on buttons 310, 311 and 312.

[0189] For example, Figure 5 As shown, in response to the user's input operation, the saturation value is switched to 03, and the light and shadow value is switched to 14. The style of the preview image displayed in the preview window 307 also changes accordingly, and the hue of the preview image is 07, the saturation is 03, and the light and shadow is 14. If the style of the current preview image meets the user's requirements, the target image can be captured by clicking the capture button 308.

[0190] Or, alternatively, in combination Figure 3 In the interface shown in (f), through the preview image displayed in the preview window 307, if the style of the current preview image does not meet the user's needs, the user can also Figure 3 The processes (d), (e) and (f) in the figure are used to import style parameters corresponding to other images again until the style of the preview image meets the user's requirements.

[0191] In addition to the above-mentioned method, the first device may also add one or more sets of style parameter values ​​in the form of customized parameters.

[0192] For example, when displaying Figure 3 In the interface shown in (f), in response to the user's input operation on button 316, Figure 3 Card 317 (with Figure 3 At this time, in response to the user's input operation on the newly created custom parameter control, the first device may display Figure 6 The interface shown in (a).

[0193] Compared to Figure 3The interface shown in (f) or compared to Figure 5 The interface shown has a new button 601, and the mark 315 selects the button 601 in the interface. The button 601 corresponds to a set of new style parameter values, and these values ​​are determined by user definition.

[0194] Figure 6 The interface shown in (a) is similar to Figure 3 In the interface shown in (f), the hue, saturation, and light and shadow values ​​are the same, meaning that before the user sets the style parameters, the values ​​of these style parameters have not changed. In response to the user's input operation on button 310, the first device can set a new value for hue; in response to the user's input operation on button 312, the first device can set a new value for light and shadow.

[0195] Taking the new value of hue as 06 and the new value of light and shadow as 10 as an example, the first device can display Figure 6 In the interface shown in (b), the hue value of the preview image displayed in the preview window 307 is 06, and the light and shadow value is 10. Figure 6 The preview images displayed in the preview window 307 in (a) have different styles.

[0196] Similarly, the first device displays Figure 6 In the case of the interface shown in (b), in response to the user's input operation of selecting button 319, the identifier 315 can select button 319, and the value of the style parameter of the preview image displayed in the preview window 307 is also the same as Figure 3 The style parameters shown in (f) have the same values.

[0197] It should be noted that the above Figures 2 to 6 This section describes how users can set image style parameters, using the process of capturing an image as an example. Besides capturing an image, users can also use similar methods to set style parameters when editing images stored in the gallery or elsewhere. The specific process is similar and will not be further described here.

[0198] With reference to the image capturing process shown above, the embodiments of the present application can solve the above technical problems according to the following method.

[0199] The following combination Figures 7 to 11 The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other. For the same or similar concepts or processes, some embodiments may not be described in detail.

[0200] Figure 7Schematic diagram of a flow chart of an image processing method 700 provided in an embodiment of the present application. The method 700 may be executed by a first device, such as Figure 7 As shown, the method 700 includes the following steps:

[0201] S701: A first device acquires a first image, wherein a first parameter of the first image is a first value.

[0202] The first parameter may include one or more style parameters, such as hue, saturation, and light and shadow. Alternatively, the first parameter may include other style parameters, such as exposure, template, filter, makeup parameter, dynamic range, sharpness, soft light, noise granularity, or contrast.

[0203] The first value represents the value set by the first parameter, or can also be understood as the value of the first parameter.

[0204] The way in which the first device acquires the first image is similar to the way in which the image 201 is acquired above.

[0205] When the first image is captured or edited by the first device, the style parameters of the first image may be set by the first device using any of the aforementioned methods, or may be default parameters. Alternatively, when the first image is obtained by the first device from a second device, the style parameters of the first image may be set by the second device. The specific setting methods are similar to the method for setting the style parameters by the first device described above.

[0206] S702: When displaying the first interface, in response to a first operation, display at least one image, where the at least one image includes a first image.

[0207] The first interface is a preview interface or an image editing interface. That is, the method 700 can be applied to a scene of shooting an image or a scene of editing an image.

[0208] When the first interface is the preview interface, the first interface and Figure 3 The first operation may include one or more operations, and the first operation may trigger the first device to display at least one image. The at least one image is similar to the interface shown in (a). Figure 3 The at least one image including the first image is similar to the multiple images including image 201 shown in FIG.

[0209] Alternatively, when the first interface is an image editing interface, the first interface and Figure 1The interface shown in (e) is similar to the interface shown in FIG. 1 , except that the first interface may include a control that can be used to trigger the display of at least one image. The first operation may include one or more operations, and the first operation may trigger the first device to display at least one image. At least one image and Figure 3 The multiple images shown in (e) are similar.

[0210] S703. In response to an input operation of selecting a first image from at least one image, a second interface is displayed, where the second interface includes a second image and a first control; wherein the first parameter of the second image is a first value, the second image is a preview image or an edited image, the first control is used to set the first parameter, and the first control displayed in the second interface indicates that the first parameter is the first value.

[0211] It can be understood that the first parameter of the second image is represented by the first value, and in response to the input operation of selecting the first image from the at least one image, the first device sets the first parameter to the first value during the current image capture or image editing process, thereby obtaining the second image having the first parameter with the first value. Alternatively, it can be understood that in response to the input operation of selecting the first image from the at least one image, the first device can obtain the second image having the same first parameter value as the first image.

[0212] In this way, the obtained second image has the same value of at least the first parameter as the first image, so that the second image has the same or similar style as the first image, which facilitates users to efficiently obtain images that meet their needs.

[0213] In one case, if the first interface is a preview interface, the second interface may also be a preview interface.

[0214] The first interface Figure 3 The second interface is similar to the interface shown in (a). Figure 3 The second image is a preview image, similar to the interface shown in (f) Figure 3 The preview image displayed in the preview window 307 in (f) is similar.

[0215] In another case, if the first interface is an image editing interface, the second interface may also be an image editing interface.

[0216] The first interface Figure 1 The interface shown in (e) is similar to the interface shown in (e), except that the first interface includes a control that can be used to trigger the display of at least one image. The second image in the second interface is the image obtained after the value of the first parameter is set to the first value. It is assumed that the initial image is displayed in the first interface, which is equivalent to the unedited image, for example, Figure 3The second image in the second interface is similar to the preview image displayed in the preview window 307 in (d). The second image in the second interface is equivalent to the image obtained after the first parameter of the initial image is set to the first value, which is equivalent to the image obtained after editing, for example, Figure 3 The preview image displayed in the preview window 307 in (f) is similar to that in FIG.

[0217] The first control is similar to button 310, button 311, and button 312. These three buttons can be used to represent the current values ​​of hue, saturation, and light and shadow, respectively.

[0218] In this way, on the one hand, the user can intuitively determine the value of the first parameter of the current image. On the other hand, if the style of the current image does not meet the user's needs, it can continue to be adjusted based on the first control.

[0219] Exemplarily, when the second interface is displayed, in response to the second operation on the first control, the second image switches to the third image, the first parameter of the third image is the second value, and the first control indicates that the first parameter is the second value, and the second operation is used to set the first parameter to the second value.

[0220] It should be understood that when the first and second interfaces are preview interfaces, the third image can be the preview image, and switching from the second image to the third image can also be understood as switching the preview image in the preview window from the second image to the third image. The second image can switch directly to the third image, or other images can be displayed between the second and third images.

[0221] When the first interface and the second interface are image editing interfaces, the third image is an image obtained by setting the first parameter of the second image to the second value.

[0222] The second operation is used to set the value of the first parameter. Figure 3 The interface shown in (f) is similar to the interface shown in FIG. The first control may include, for example, button 310, button 311, and button 312. The second operation may be an input operation on one or more buttons among button 310, button 311, and button 312. The interface for displaying the third image is similar to the interface shown in FIG. Figure 5 The interface shown is similar.

[0223] Compared to the second interface, the value of the first parameter represented by the first control has changed. For example, the second interface is Figure 3 In the interface shown in (f), the first parameter can be a first value of hue 07, saturation 02, and light and shadow 12. After the first parameter is set to the second value, the first device can display Figure 5 The interface shown is compared to Figure 3In the interface shown in (f), the first parameter is switched to: Hue is 07, Saturation is 03, and Light and Shadow is 14. The preview image displayed in the preview window 307 changes.

[0224] That is, the second value may be completely different from the first value, or may be partially different from the first value.

[0225] It is understandable that different images may be suitable for different styles. Therefore, even if a user obtains a second image with the same first parameter value as the first image, the style of the second image may not meet the user's needs. Through the above method, the user can continue to adjust the style parameters of the image through simple operation steps to obtain an image that meets the user's needs.

[0226] In addition, replacement and comparison can be performed between multiple sets of first parameter values ​​in the following manner.

[0227] As an optional embodiment, the second interface in S703 further includes a first button and a first identifier for indicating that the first button is selected; the first button is used to select the value set for the first parameter of the first image.

[0228] The value set for the first parameter of the first image, i.e., the value of the first parameter of the first image, can also be understood as the first button being used to select a set of style parameter values ​​corresponding to the first image. The first indicator indicating that the first button has been selected can also be understood as the first indicator being currently in the selected state.

[0229] For example, the first button is Figure 3 The first mark is similar to the mark 315.

[0230] On the basis of the above embodiment, one or more sets of style parameter values ​​may be added in a manner similar to S702 - S703 .

[0231] Optionally, after S703, method 700 further includes: in response to a user's input operation, displaying at least one image on the second interface, the at least one image including a fourth image, and the first parameter of the fourth image being a third value; in response to an input operation of selecting a fourth image in at least one image, displaying a third interface, the third interface including a fifth image, a first control, a first button, a second button, and a first identifier for indicating that the second button is selected; wherein the first parameter of the fifth image is the third value, the second button is used to select the value set by the first parameter of the fifth image, and the first control displayed in the third interface indicates that the first parameter is the third value.

[0232] The user's input operation may be an input operation that triggers the first device to display at least one image. For example, the second interface is Figure 3In the interface shown in (f), the input operation may be an operation of clicking button 316. At least one image and Figure 4 The fourth image may be, for example, image 320 and / or image 321. The third value may be completely different from the first value, or may be partially different from the first value.

[0233] The third interface Figure 4 (b) is similar to the third interface, except that, in the third interface, the first indicator indicates that the second button corresponding to the fourth image is selected. The second button is, for example, button 322 or button 323. The second button is used to select the value set for the first parameter of the fourth image. In other words, the second button is used to select a set of style parameter values ​​corresponding to the fourth image.

[0234] Since the state of the first identifier in the third interface is the state of selecting the second button, the value of the first parameter of the preview image or the edited image (fifth image) in the third interface is the same as the value of the first parameter of the fourth image, both of which are third values.

[0235] Afterwards, based on the first button and the second button, the user can select values ​​of different style parameters.

[0236] For example, when the third interface is displayed, in response to the input operation of selecting the first button, the fifth image switches to the sixth image, and the first parameter of the sixth image is the first value. In addition, the first identifier switches from the state of selecting the second button to the state of selecting the first button.

[0237] It can be understood that in the third interface, the state of the first identifier is the state of selecting the second button, then the first parameter value of the preview image or the edited image (fifth image) in the third interface is the same as the first parameter value of the fourth image, for example, the hue is 05, the saturation is 03, and the light and shadow is 12; in response to the input operation of selecting the first button, the first parameter value of the preview image or the edited image (sixth image) changes to the first parameter value (first value) in the first image, for example, the hue is 07, the saturation is 02, and the light and shadow is 12. The fifth image switches to the sixth image. In addition, the first identifier switches from the state of selecting the second button to the state of selecting the first button.

[0238] In addition to the above method of importing existing images to add one or more sets of style parameter values, you can also add one or more sets of user-defined style parameter values ​​in the following way.

[0239] As an optional embodiment, the second interface in S703 further includes a second control, the second control is used to trigger the display of a third control, and the third control is used to trigger the customization of the value of the first parameter. And the method 700 further includes the following steps:

[0240] When the second interface is displayed, in response to the input operation on the second control, the third control is displayed on the second interface; in response to the input operation on the third control, the third button is displayed on the second interface, and the first identifier is switched from the state of selecting the first button to the state of selecting the third button, and the third button is used to select the customized value of the first parameter.

[0241] In response to the third operation on the first control, the second image switches to display the seventh image, and the first control indicates that the first parameter is set to the fourth value; the third operation is used to set the first parameter to the fourth value, and the first parameter of the seventh image is the fourth value.

[0242] The second control may be any button or control that can trigger the display of the third control. Alternatively, the second control does not have a specific pattern or form, but is a target gesture or operation method, or refers to a target area.

[0243] In one example, the second interface is Figure 3 Taking the interface shown in (f) as an example, the second control is, for example, button 316. The input operation for the second control is, for example, the input operation of clicking button 316. The third control is, for example, a new custom parameter control (see Figure 3 (d) in the above figure.

[0244] In response to the input operation of the third control, for example, the operation of clicking the new custom parameter control is displayed. The third button displayed on the second interface can be, for example, from Figure 3 The interface shown in (f) is switched to Figure 6 The interface shown in (a) is equivalent to adding a third button (button 601) in the second interface, and the first indicator (315) switches from the state of selecting the first button (button 319) to the state of selecting the third button (button 601).

[0245] At this time, since the user has not operated the first control, the value of the first parameter has not changed.

[0246] The value of the customized first parameter can also be understood as the value of the first parameter adjusted by the user.

[0247] Still refer to Figure 6 In the interface shown in (a), the third operation on the first control is, for example, an input operation on all or part of buttons 310, 311, and 312, such as an input operation on buttons 310 and 312. The interface showing the seventh image is the same as Figure 6 Similar to (b) in .

[0248] Since the third operation is used to set the first parameter to the fourth value, the value of the first parameter in the seventh image is switched from the first value to the fourth value compared to the second image. Figure 6 The preview image displayed in the preview window 701 in (b) is compared with Figure 6 In the preview image displayed in the preview window 701 in (a), the hue is switched from 07 to 06; the saturation remains at 02, and the lightness is switched from 12 to 10.

[0249] And the interface showing the seventh image ( Figure 6 In the interface shown in (b), the first control indicates that the first parameter is set to the fourth value, for example, the hue is 06; the saturation is 02, and the light and shadow is 10.

[0250] It should be understood that the switching from the second image to the seventh image may be a direct switching, or the first device may also display other images during the process of switching from the second image to the seventh image. This application does not make any specific limitation on this.

[0251] Similarly, the user can also select values ​​of different style parameters through the first button and the third button.

[0252] Exemplarily, when the seventh image is displayed, in response to the input operation of selecting the first button, the seventh image switches to the eighth image, the first parameter of the eighth image is the first value; and the first identifier switches from the state of selecting the third button to the state of selecting the first button.

[0253] That is, after the first button is selected, the value of the first parameter of the preview image or the edited image (the eighth image) displayed by the first device is switched to the value corresponding to the first button (the first value). In addition, the first indicator is also switched from the state in which the third button is selected to the state in which the first button is selected.

[0254] For example, when the first device displays Figure 6 In the interface shown in (b), in response to the user's input operation on button 319, the first device may display Figure 6 The interface is similar to that in (a), except that the button 319 is selected by the mark 315.

[0255] It should be understood that the switching from the seventh image to the eighth image may be a direct switching, or the first device may also display other images during the process of switching from the seventh image to the eighth image. This application does not make any specific limitation on this.

[0256] In addition to adding one or more sets of style parameter values, you can also delete style parameter values.

[0257] Optionally, when the first device displays the seventh image, a second control is also displayed, and the second control is also used to trigger the display of a fourth control, and the fourth control is used to delete the value of the customized first parameter; method 700 also includes: when the seventh image is displayed, in response to the input operation of the second button, the fourth control is displayed; in response to the input operation of the fourth control, the seventh image is switched to the ninth image, the third button disappears, and the first identifier selects the first button; the first parameter of the ninth image is the first value.

[0258] For example, the interface showing the seventh image is Figure 6 The second control is, for example, button 316. The fourth control is, for example, a control for deleting the custom parameter (see Figure 3 (d) in the figure). The input operation of the fourth control is, for example, clicking to delete the custom parameter control. The first device can delete the value of the set of style parameters corresponding to the third button currently selected by the first identifier, and the first identifier can select other buttons, such as the button adjacent to the third button, and the value of the first parameter is also replaced with the value corresponding to the button. The first device can, for example, display the same Figure 3 A similar interface to (f) in .

[0259] This is equivalent to deleting the value of a set of style parameters corresponding to button 601, and the identifier 315 can select the button 319 adjacent to button 601. Figure 6 The style of the preview image in the preview window 307 in (b) is changed. The style of the ninth image is the same as Figure 3 The styles of the preview images in the preview window 307 in (f) are similar, and the values ​​of the first parameters are the same.

[0260] Based on the above embodiment, the first device can also display the value of the first parameter on the image, so that users can efficiently determine the value of the first parameter of each image, which facilitates the oral or written dissemination of style parameters among users.

[0261] Optionally, S701 can be implemented in the following manner: when the fourth interface is displayed, in response to the fourth operation, the first parameter is set to the first value, and the fourth interface is a preview interface or an image editing interface; in response to the fifth operation, a first image is obtained, the first image displays a first element, and the first element is used to indicate that the first parameter is the first value, and the fifth operation is used to capture the image or confirm the editing operation on the image.

[0262] The fourth interface may be a preview interface, such as Figure 1 (a) or Figure 3 Similar to (a) in ; or, the fourth interface can be an image editing interface, such as Figure 1 Similar to (e).

[0263] The fourth operation can be any operation to set style parameters. Figure 1 The process of setting style parameters between captured images, also for example Figure 1 The process of editing the captured image, for example Figure 3 The process of setting style parameters through button 310, button 311, button 312 and slide bar 313.

[0264] Alternatively, the fourth operation may also be optional content, that is, in the fourth interface, the first parameter is set to the first value by default.

[0265] The first element can be any type of identification, mark or information. For example, watermark, text, pattern, etc. For example, if the first element is a watermark, the first parameter is a first value including hue 09, saturation 03, and light and shadow 12, the first image can be Figure 8 Image 801 in.

[0266] A watermark is displayed on the image 801, and the watermark includes "090312". Figure 3 Compare this to buttons 310, 311, and 312 shown in (c) of the watermark. The arrangement of the parameter values ​​in "090312" corresponds one-to-one with the arrangement of buttons 310, 311, and 312, and the order is the same. In other words, the user can determine the parameter type corresponding to each value in "090312" without having to mark it in the watermark.

[0267] It is understood that in addition to the value of the first parameter, other information, such as the device model, may also be displayed in the watermark. Alternatively, the first device may only display the value of the first parameter in the watermark. This application does not make specific limitations on this.

[0268] In addition, in order to reduce the degree to which the first element blocks the image display content, the first element may also be semi-transparent.

[0269] It should be noted that if the first device is able to obtain the value of the first parameter of the first image, the first device displays the first element on the first image. Alternatively, the user can customize whether to display the first element on the first image (for example, the user can customize whether to display a watermark). This facilitates meeting the diverse needs of users.

[0270] In this way, based on the first element on the first image, the user can efficiently determine the value of the first parameter, so that the image can be efficiently photographed or edited based on the value of the first parameter later.

[0271] Optionally, method 700 also includes: when displaying the fifth interface, in response to the user's input operation, displaying a first control on the fifth interface, the first control indicating that the first parameter is the initial value, and the fifth interface is a preview interface or an image editing interface; in response to a sixth operation on the first control, displaying a sixth interface, the sixth interface including a tenth image and the first control, the sixth operation being used to set the first parameter to the first value, the first parameter of the tenth image is the first value, and the first control displayed in the sixth interface indicates that the first parameter is the first value.

[0272] Among them, the fifth interface is such as Figure 3 Similar to (a) in FIG, the user's input operation is an input operation that triggers the first device to display the first control. The first control is, for example, Figure 3 The button 310, button 311 and button 312 shown in (c) are shown in FIG. The initial value is the default value of the first parameter before the user sets the value of the first parameter through the first control, for example Figure 3 In (c), the Hue is 09, the Saturation is 03, and the Lightness is 12.

[0273] Subsequently, in response to a sixth user operation on the first control, the initial value may be set to the first value. The sixth interface may be a preview interface or an image editing interface. The tenth image displayed in the sixth interface is a preview image or an edited image, and the first parameter of the tenth image is the first value. The first value may be completely different from the initial value, or may be partially different, for example, the first value may include a hue of 08, a saturation of 03, and a light and shadow of 10.

[0274] Based on the above example, S702 may be implemented in the following manner.

[0275] The first interface includes a fifth control, and the fifth control is used to trigger the display of the first control;

[0276] In response to the first operation, displaying at least one image includes: when the first interface is displayed, in response to the input operation on the fifth control, displaying a seventh interface, the seventh interface including a ninth image, the first control, and the second control, the second control being used to trigger display of the sixth control, the first parameter of the ninth image being an initial value, and the first control in the seventh interface indicating that the first parameter is the initial value;

[0277] In response to an input operation on the second control, displaying a sixth control on the seventh interface, where the sixth control is used to trigger display of at least one image;

[0278] In response to an input operation on the sixth control, at least one image is displayed.

[0279] Among them, the first interface is for example Figure 3Similar to (a) or (b), the fifth control is, for example, a style parameter button 304 or a personal style button 306. The seventh interface is, for example, Figure 3 The first control includes, for example, button 310, button 311, and button 312. The second control is, for example, button 316. The sixth control is, for example, an import style template control.

[0280] Through the above operations, the first device can display at least one image, so that the user can import the value of the style parameter corresponding to the image by selecting the image.

[0281] It should be noted that in the embodiments of the present application, the image can be a static image, a dynamic image, or a video. The image can be in any format. This application does not specifically limit this.

[0282] Based on the above embodiment, the at least one image may be an image selected by the first device based on images in the first interface.

[0283] For example, if the first interface is a preview interface, the image in the first interface is the preview image. Based on the preview image, the first device can identify the subject in the preview image and determine the shooting scene. Alternatively, if the first interface is an image editing interface, the image in the first interface is the image to be edited. Based on the image to be edited, the first device can identify the subject in the image to be edited and determine the shooting scene corresponding to the image.

[0284] The at least one image may be an image of the same shooting scene as the image in the first interface.

[0285] For example, if the shooting scene is of plants, then at least one image can be an image of plants as the subject. If the shooting scene includes the sky, then at least one image can include the sky. If the shooting scene is of a portrait, then at least one image can be a portrait. This facilitates recommending style parameters suitable for the current shooting scene to the user.

[0286] Based on the above embodiment, the manner in which the first device recognizes the value of the first parameter of the first image is described in detail below.

[0287] A first possible manner is to determine according to the first element (such as a watermark) displayed in the first image.

[0288] The first element includes a first value.

[0289] It can be understood that for the description of the first element and the first value, reference can be made to the above.

[0290] When the first image displays the first element, not only can the user quickly determine the value of the first parameter, but the first device that has acquired the first image can also recognize the first image to determine the first value included in the first element.

[0291] The first device may then set the first parameter to the first value based on the first value in the first element, thereby capturing or editing a second image in which the first parameter is the first value.

[0292] This method is not only suitable for the transmission of style parameters between devices, but also for the transmission of style parameters between users.

[0293] A second possible manner is to determine based on the first information of the first image.

[0294] The first information is used to record data related to the first image, and the first information includes a first value.

[0295] That is, for an image captured or edited by the first device (or other device), first information associated with the image may also be stored simultaneously to record data related to the image.

[0296] For example, the first information may be EXIF ​​information. The EXIF ​​information of the first image may include a first value, such as "090312." Based on the first value, the first device may determine that the value is the value of the first parameter. For example, if the first value is "090312," the first device may determine that the hue is 09, the saturation is 03, and the lightness is 12. Based on the first value, the first parameter may be set to the first value, thereby capturing or editing a second image in which the first parameter has the first value.

[0297] In this way, the first device needs to obtain the first information (EXIF information) at the same time as obtaining the first image. S701 can be implemented in the following way:

[0298] Mode 1: The second device sends a first image and a first message to the first device; correspondingly, the first device receives the first image and the first message from the second device.

[0299] That is, the first device may obtain the first image and the first information from other devices. Alternatively, the first device may also download the first image and the first information.

[0300] Mode 2: When the fourth interface is displayed, in response to an input operation of setting the first parameter to the first value, the first device obtains the first image and the first information, and the fourth interface is a preview interface or an image editing interface.

[0301] The input operation of setting the first parameter to the first value may be performed according to Figure 1The first parameter is set to the first value in the manner shown in FIG. Figure 3 The first parameter is set to the first value in the manner shown in FIG. 3 (such as by setting buttons 310, 311, and 312). That is, when the first device captures or edits the first image, the first information of the first image is also stored.

[0302] A third possible manner is to determine based on pixel data of the first image.

[0303] The pixel data carries first data, and the first data is used to indicate a first value.

[0304] It is understood that the first data may be data obtained based on the first value, in a format or form in which the first value is hidden or embedded in the pixel data of the first image. Furthermore, the first data has a minimal impact on the display effect of the first image, allowing the first value to be hidden in the first image and recorded without the user noticing.

[0305] The method of embedding the first value into the first image to obtain pixel data of the first image may correspond to the method of extracting the first value based on the pixel data. That is, the operation of extracting the first value is equivalent to the inverse operation of the operation of embedding the first value.

[0306] For ease of understanding, the method of embedding the first value is first described.

[0307] In a possible implementation, the first device converts the first value and the initial image data of the first image into the above-mentioned pixel data based on the second model.

[0308] The second model may be a model, algorithm, or module pre-installed in the device. The initial image data of the first image may be pixel data before the first value is embedded in the first image. It can also be understood as image data acquired by a camera capturing a subject. The second model may embed the first value into the initial image data to obtain the aforementioned pixel data.

[0309] Exemplarily, the second model may hide the first value in the pixel data of the first image based on any of the following methods.

[0310] 1. Least significant bit (LSB) method

[0311] That is, the second module may modify the least significant bits of some or all pixels in the original pixel data of the first image, thereby embedding the first value.

[0312] For example, the second model may convert the first value into binary data and then embed it into the least significant bits of some or all pixels in the original pixel data one by one. The second model may also select one or more channels of the RGB color channels for embedding.

[0313] In this way, since the change of the least significant bit has little effect on the overall visual effect of the image, the embedding of the first value has little effect on the display effect of the first image.

[0314] 2. How to modify the color palette

[0315] That is, when the first image is an image using a color palette, the first value may be embedded by adjusting the color order or color values ​​in the color palette.

[0316] For example, the second model may convert the first value into binary data, and make slight adjustments to the color palette according to the required embedded binary data so that the palette represents specific binary data (ie, the binary data of the first value).

[0317] 3. Frequency Domain Steganography

[0318] That is, when the first image is in a format such as JPEG, the second model can convert the initial image data into the frequency domain, such as through discrete cosine transform (DCT), to obtain frequency domain data; then embed binary data of the first value in the frequency domain data to obtain frequency domain data embedded with the binary data; and by inverse transforming the frequency domain data embedded with the binary data, pixel data embedded with the first value can be obtained.

[0319] Correspondingly, based on the pixel data of the first image, the first value may be determined in the following manner.

[0320] In a possible implementation, the first device extracts the first value from image data of the first image based on the third model.

[0321] The third model may be a model, algorithm or module pre-installed in the device, such as a style parameter extraction algorithm. By inputting pixel data of the first image into the third model, the third model may output the first value.

[0322] When the first value is embedded in the LSB mode, since the binary data of the first value is embedded in the least significant bits of some or all pixels in the original pixel data, the third model needs to extract the binary data of the first value from the least significant bits of these pixels, thereby obtaining the first value.

[0323] In addition, when the binary data of the first value is embedded in the least significant bit of the target color channel of the part or all pixels, the third model needs to extract the binary data of the first value from the target color channels. The target color channel can be one or more channels of the RGB color channels.

[0324] That is, the third model needs to be able to determine some or all of the above pixels and target color channels.

[0325] When the first value is embedded in a palette-modified manner, the third model needs to determine a palette adjustment manner based on pixel data of the first image, and then determine binary data of the first value according to the adjustment manner.

[0326] When the first value is embedded using frequency domain steganography, the third model can convert the pixel data of the first image into the frequency domain (such as through discrete cosine transform DCT) to obtain frequency domain data embedded with binary data; and identify the binary data of the first value therefrom; and determine the first value based on the binary data.

[0327] It is understood that the above-mentioned methods of embedding the first value and extracting the first value are merely examples, and in actual application scenarios, the first value may be hidden in the first image by other methods, which are not specifically limited in this application.

[0328] It can also be understood that the above description uses binary data in which the first data is the first value as an example. In actual application scenarios, the first data may also be data having a specific encoding format obtained by encoding the first value, and the third model needs to be able to determine the specific encoding format, thereby facilitating decoding the first data based on the corresponding decoding method to obtain the first value. This application does not make specific limitations on this.

[0329] In this method of determining the first value, S701 can be implemented in any of the following ways: downloading the first image; taking a screenshot of the tenth image to obtain the first image; receiving the first image from the second device; or, when the fourth interface is displayed, in response to an input operation of setting the first parameter to the first value, obtaining the first image, and the fifth operation is used to capture the image or confirm the editing operation of the image.

[0330] That is, the first image may be, but is not limited to, a downloaded image, a screenshot, an image sent by another device, or an image captured or edited by the current device.

[0331] In this way, for the first image acquired by the first device in any manner, the value of the first parameter of the image can be determined in the above manner, so as to obtain an image with the same or similar style as the image.

[0332] The fourth possible method is determined according to the first prediction parameter.

[0333] The first prediction parameter is inferred based on the first image, and the first prediction parameter includes a first value.

[0334] It is understood that the first device may be pre-installed with a first model, for example. The first model is a model that infers or predicts style parameters of an image based on the image. The first model may also be an algorithm or module, for example, a general style parameter extraction algorithm.

[0335] For example, the first device inputs a first image into a first model; the first model may output a first value, wherein the first model may extract features from the first image and predict or infer a value of a first parameter of the first image based on the extracted features.

[0336] Regarding the above-mentioned multiple ways of determining the first parameter value of the existing image, the first device may, for example, determine the first parameter value according to the following method.

[0337] Figure 9 Schematic diagram of a flow chart of an image processing method 900 provided in an embodiment of the present application. The method 900 can be understood as a specific implementation of S703, such as Figure 9 As shown, the method 900 includes the following steps:

[0338] S901: A first device obtains a first image.

[0339] It can be understood that acquiring the first image can be understood as: acquiring the first image from the present device in response to an input operation of selecting the first image from the at least one image.

[0340] S902: The first device determines whether first information (such as EXIF ​​information) is stored in the first device.

[0341] That is, when the first information is stored, the first device may preferentially obtain the first value from the first information and may execute S903 , where the first device sets the first parameter to the first value based on the first information (i.e., based on the first value in the first information) and displays the second interface.

[0342] In this way, the first device does not need to perform complex processing such as decoding, which facilitates the first device to efficiently obtain the first value.

[0343] S904: When the first device does not store the first information, the first device determines whether the first data in the pixel data of the first image can be extracted.

[0344] In the case where the first data in the pixel data of the first image can be extracted, the first device may perform S905 - S906 .

[0345] S905: The first device extracts first data from the image data, and decodes the first data to obtain a first value.

[0346] S906: The first device sets the first parameter to a first value and displays a second interface.

[0347] In this way, even when the first device does not store the first information, the first data can be extracted, thereby accurately obtaining the first value.

[0348] In the case where the first data cannot be extracted from the pixel data of the first image (or it can be understood that the pixel data does not carry the first data, or the first data cannot be successfully extracted, etc.), the first device can execute S907-S908.

[0349] S907: The first device inputs the first image into a first model, and the first model is used to predict a value of a first parameter of the image.

[0350] S908. The first device outputs a first value based on the first model, sets the first parameter to the first value, and displays a second interface.

[0351] In this way, even if the first device cannot directly determine the first value from the first information, nor can it extract the first value from the image data, it can still predict the value of the first parameter in the first image through the first model, so that the first device can obtain a second image with the same or similar style as the first image.

[0352] It should be understood that the specific implementation of each step in method 900 can be referred to the above description and will not be described in detail here.

[0353] It should also be understood that, optionally, before S902 or S904 , method 900 may also include: the first device determining whether a first element is displayed in the first image.

[0354] When a first element is displayed in the first image, the first parameter is set to the first value based on the first value of the first element, and the second interface is displayed.

[0355] If the first element is not displayed in the first image, S902 or S904 may be executed.

[0356] That is, the first device can also identify the first value based on the first element, thereby efficiently determining the first value.

[0357] The software system of the first device or the second device in this application can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes a layered architecture as an example to illustrate the software structure of the electronic device.

[0358] Figure 10 This is a schematic block diagram of the interaction between software and hardware modules of an electronic device (such as a first device or a second device) to which the present application is applicable. The layered architecture divides the software system of the electronic device into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, refer to Figure 10 , an electronic device may include: an application layer (applications), an application framework layer (application framework), an Android runtime (Android runtime) and system libraries, a hardware abstraction layer, and a kernel layer (kernel).

[0359] It is understood that the division of the software structure of the electronic device in the embodiment of the present application is an example. The embodiment of the present application does not limit the hierarchical division method in the software system of the electronic device. The modules in each level in the following embodiment are the modules involved in the embodiment of the present application. Each level may also include more or fewer modules than shown in the figure, or combine or split certain modules.

[0360] The application layer can include a series of application packages, and the application layer runs applications by calling the application programming interface (API) provided by the application framework layer. Figure 10 The application layer may include gallery applications, camera applications, and other shooting applications or image processing applications.

[0361] Camera applications or other shooting applications can be used to capture images.

[0362] Gallery applications or image processing applications can be used to edit images.

[0363] That is, the method in the embodiment of the present application is not only applicable to taking images through the camera application, but also to taking images through other shooting applications; it is not only applicable to editing images through the gallery application, but also to editing images through other image processing applications.

[0364] In addition, the application layer may also include other applications such as calls, text messages, music, Bluetooth, etc. This application does not make specific restrictions on this.

[0365] The application framework layer, also known as the framework (FWK) layer, can provide an API and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0366] Reference Figure 13The application framework layer may include a camera API (or camera access interface), a gallery API, and the like.

[0367] Among them, the camera API can be used to process requests from applications (such as camera applications) and forward them to the camera HAL.

[0368] The camera API can be used to manage the camera's lifecycle and resource allocation. It can also be used to set some style parameters (or primary parameters), such as resolution, frame rate, focus mode, exposure compensation, white balance, and flash mode. These parameters can be specified by the application.

[0369] The Gallery API is mainly used to access and manage multimedia files on the device, including images and videos. It also supports applications to obtain metadata of media files (such as EXIF ​​information, etc.).

[0370] The Android runtime consists of a core library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.

[0371] The system library can include multiple functional modules. For example: status monitoring service, surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc. The status monitoring service is used to determine the specific orientation of the mobile phone and the physical state of the flexible screen based on the monitoring data reported by the kernel layer. The surface manager is used to manage the display subsystem and provide 2D and 3D layer fusion for multiple applications. The media library supports the playback and recording of various common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

[0372] The HAL layer encapsulates the Linux kernel driver, providing an interface to the upper layer and shielding the implementation details of the underlying hardware. The HAL layer includes the camera HAL, algorithm library, Bluetooth module, and audio module.

[0373] The Camera HAL converts camera API commands or requests into commands understandable by hardware (e.g., a camera). It can be used to interact with hardware (e.g., a camera). For example, the Camera HAL can be used to set certain camera parameters, such as image processing parameters (e.g., noise reduction, sharpening, and color correction).

[0374] The algorithm library includes multiple models and / or algorithms for processing images, such as the first model, the second model, and the third model mentioned above.

[0375] The hardware layer includes sensors and image signal processors (ISP).

[0376] The sensor can be used to collect image data or pixel data, and the ISP can be used to process the image data or pixel data, such as noise reduction, white balance processing, demosaicing, color correction, exposure setting, sharpness setting, dynamic range processing, etc.

[0377] Therefore, part or all of the style parameters in the embodiments of the present application may be set by the ISP.

[0378] It should be understood that Figure 10 This is only an example. In actual application scenarios, the electronic device may be provided with more or fewer software modules and hardware modules, and the embodiments of the present application do not specifically limit this.

[0379] based on Figure 10 According to the architecture shown, the above method 900 can be implemented as follows, for example.

[0380] Figure 11 1100 is a flowchart of an image processing method provided in an embodiment of the present application. Figure 11 As shown, the method 1100 includes the following steps:

[0381] S1101 : A first application displays at least one image via a picker in response to a first operation.

[0382] The first application may be a camera application, a gallery application, other shooting applications, or an image processing application.

[0383] S1102: The first application obtains a first image based on a user input operation of selecting a first image from at least one image.

[0384] Acquiring the first image may also be understood as acquiring the first image from the device.

[0385] S1103: The first application determines whether the first information (such as EXIF ​​information) is stored in the first device.

[0386] If the first information is stored (ie, the first application can obtain it), S1104 to S1107 are executed.

[0387] S1104: The first application indicates the first value to the ISP.

[0388] S1105: The ISP sets a first parameter of the preview image to be displayed or the image being edited to the first value based on the first value.

[0389] It should be understood that method 1100 is described using the example of an ISP setting the first parameter to the first value. In actual application scenarios, depending on the type of the first parameter, the first parameter may also be set to the first value by other software or hardware. This application does not specifically limit this.

[0390] S1106: The ISP indicates the second image to the first application.

[0391] It should be understood that S1106 is merely illustrative. In actual application scenarios, after the ISP sets the first parameter of the preview image currently to be displayed or the image being edited to the first value, the resulting image data may subsequently undergo a series of other processing (which may also be performed by other modules) to obtain a second image. For the sake of brevity, these processes are not described in detail here.

[0392] S1107. The first application may display the second interface.

[0393] The second interface includes a second image, a first button, and a first control. Detailed information can be found in the above description.

[0394] If the first information is not stored (ie, the first application is not accessible), S1108 - S1122 are executed.

[0395] S1108. The first application calls the third model in the algorithm library.

[0396] S1109: The algorithm library inputs the pixel data of the first image into the third model. The third model extracts the first data and decodes the first data to obtain a first value.

[0397] S1110 : The algorithm library indicates the first value to the ISP.

[0398] S1111. The ISP sets a first parameter of a preview image to be displayed or an image being edited to the first value based on the first value.

[0399] S1112: The ISP indicates the second image to the first application.

[0400] It should be understood that the implementation of S1110-S1112 is similar to the implementation of S1104-S1106 and can refer to the above description, which will not be repeated here.

[0401] S1113: The algorithm library indicates the first value to the first application so that the first value is displayed.

[0402] S1114. The first application displays the second interface.

[0403] It should be understood that S1113 and S1110-S1112 can be executed in parallel, or S1113 can be executed first or S1110-S1112 can be executed first. This application does not make specific limitations on this.

[0404] In the case where the first data cannot be extracted, S1115 - S1122 may be executed.

[0405] S1115. The algorithm library transmits a first indication to the first application to indicate that the first application cannot extract the first value.

[0406] S1116. The first application calls the first model based on the first prompt.

[0407] S1117. The algorithm library inputs the first image into the first model, and the first model outputs the first value to determine the first value.

[0408] S1118. The algorithm library indicates the first value to the ISP.

[0409] S1119. The ISP sets a first parameter of the preview image to be displayed or the image being edited to the first value based on the first value.

[0410] S1120: The ISP indicates the second image to the first application.

[0411] It should be understood that the implementation of S1118-S1120 is similar to the implementation of S1104-S1106 and can refer to the above description, which will not be repeated here.

[0412] S1121: The algorithm library indicates the first value to the first application so that the first value is displayed.

[0413] S1122: The first application displays the second interface.

[0414] It should be understood that S1113 and S1110-S1112 can be executed in parallel, or S1113 can be executed first or S1110-S1112 can be executed first. This application does not make specific limitations on this.

[0415] It should also be understood that method 1100 illustrates only one feasible implementation. In actual application scenarios, the algorithm library may also be provided at other layers, and the algorithm library may be a single module or may be comprised of several independently provided modules, each of which is used to implement the functions of a different model or algorithm. This application does not impose any specific limitations on this.

[0416] It should be noted that method 1100 is an example of a possible implementation of method 700 or method 900. The explanation of some steps and terms can be referred to the above description and will not be repeated here.

[0417] It should be understood that the size of the sequence numbers in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.

[0418] It should be noted that in the embodiments of the present application, the model can also be understood as an artificial intelligence (AI) model or a neural network model, which can be used to implement machine learning, deep learning, search, reasoning, decision-making, etc. The AI ​​models mentioned in this application may include various types, such as but not limited to: deep neural networks (DNN), convolutional neural networks (CNN), recurrent neural networks (RNN), residual networks, transformer models or other neural network models. This application does not make specific limitations on this.

[0419] In addition, the user information (including but not limited to user device information, user personal information, user movement routes, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0420] The route determination method of the embodiment of the present application has been described above. The following describes the apparatus for performing the above method provided in the embodiment of the present application. Those skilled in the art will appreciate that the method and apparatus can be combined and referenced with each other, and the relevant apparatus provided in the embodiment of the present application can perform the steps in the above-mentioned list sorting method.

[0421] Figure 12This is a schematic block diagram of the hardware architecture of the electronic device 1200 (such as the first device or the second device) provided in an embodiment of the present application. Figure 12 As shown, the electronic device 1200 may include a processor 1210, an external memory interface 1220, an internal memory 1221, a universal serial bus (USB) interface 1230, a charging management module 1240, a power management module 1241, a battery 1242, an antenna 1, an antenna 2, a mobile communication module 1250, a wireless communication module 1260, an audio module 1270, a sensor module 1280, a button 1290, an indicator 1292, a camera 1293, and a display screen 1294, etc.

[0422] The audio module 1270 may include, but is not limited to, a speaker, a receiver, a microphone, and an earphone jack, etc. The speaker may be used to play the recording prompt tone.

[0423] The sensor module 1280 may include, but is not limited to, one or more of the following sensors: pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, and bone conduction sensor, etc.

[0424] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 1200. In other embodiments of the present application, the electronic device 1200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0425] The processor 1210 may include one or more processing units, for example, an application processor (AP), a modem processor (Modem), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Optionally, a memory may be provided in the processor 1210 for storing instructions and data. The different processing units may be independent devices or integrated into one or more processors.

[0426] For example, the processor 1210 may be configured to set a style parameter, such as setting a first parameter of the image data to a first value.

[0427] The wireless communication function of the electronic device 1200 can be implemented through antenna 1, antenna 2, mobile communication module 1250, wireless communication module 1260, modem processor and baseband processor.

[0428] Electronic device 1200 implements display functionality through a GPU, display screen 1294, and an application processor. The GPU is a microprocessor for image processing that connects display screen 1294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 1210 may include one or more GPUs that execute program instructions to generate or modify display information.

[0429] The display screen 1294 is used to display images, videos, etc., for example, displaying the first route and the second route. In some embodiments, the electronic device 1200 may include 1 or N display screens 1294, where N is a positive integer greater than 1.

[0430] For example, the electronic device 1200 may display the interface shown in the above method embodiment through the display screen 1294 .

[0431] The external memory interface 1220 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1200. The internal memory 1221 may be used to store computer executable program codes, which include instructions.

[0432] In other embodiments of the present application, the electronic device 1200 may include more or fewer components than shown, or combine some components, separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0433] Figure 13 The following is a schematic diagram of the structure of an image processing device 1300 provided in an embodiment of the present application. Device 1300 may be a system-on-a-chip, or may be a device configured with a system-on-a-chip for implementing the method described in the above method embodiment. In the embodiment of the present application, the system-on-a-chip may be composed of a chip, or may include a chip and other discrete devices.

[0434] like Figure 13 As shown, the apparatus 1300 may include a processor 1310, which may be configured to execute computer programs or instructions in a memory to execute the various steps and / or processes corresponding to the first device or the second device in the above method embodiment.

[0435] In one possible implementation, the apparatus 1300 further includes a communication interface 1320. The communication interface 1320 can be used to communicate with other devices via a transmission medium, thereby enabling the apparatus 1300 to communicate with other devices. The communication interface 1320 can, for example, be a transceiver, an input / output interface, a pin, a bus, a transceiver circuit, or a device capable of implementing transceiver functions. The processor 1310 can use the communication interface 1320 to input and output data to execute the various steps and / or processes corresponding to the first device or the second device in the above-described method embodiments.

[0436] In one possible implementation, the device 1300 further includes at least one memory 1330 for storing program instructions and / or data. The memory 1330 is coupled to the processor 1310. Coupling in the embodiments of the present application refers to an indirect coupling or communication connection between devices, units, or modules, and may be electrical, mechanical, or other forms, for information exchange between the devices, units, or modules. The processor 1310 may operate in conjunction with the memory 1330. The processor 1310 may execute program instructions stored in the memory 1330.

[0437] Optionally, the memory 1330 may be a memory provided in the apparatus 1300. For example, the memory 1330 and the processor 1310 may be integrated together; or, the memory 1330 and the processor 1310 may be provided separately.

[0438] Optionally, the memory 1330 may be a memory outside the apparatus 1300. Alternatively, the memory 1330 may be a memory outside the apparatus 1300.

[0439] It should be understood that the apparatus 1300 can, for example, be used to perform some or all of the steps and / or processes described above for determining that the first parameter of the first image is the first value and setting the first parameter of the second image to the first value. Furthermore, the apparatus 1300 can indicate the second image and the first value to another apparatus (such as a display unit or other device) for display via the communication interface 1320.

[0440] An embodiment of the present application provides another image processing device, which may include a display unit or a processing unit. The processing unit may be configured to determine that a first parameter of a first image is a first value and set the first parameter of a second image to the first value, and the display unit may be configured to display the second image (or a second interface).

[0441] The present application provides a communication system. Figure 2 The communication system includes a first device and a second device, the first device is used to execute the steps and / or processes executed by the first device above, and the second device is used to execute the steps and / or processes executed by the second device above.

[0442] An embodiment of the present application provides an electronic device, including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the above method.

[0443] The present embodiment provides a chip. The chip includes a processor configured to invoke a computer program stored in a memory to execute the technical solution of the above embodiment. The implementation principles and technical effects are similar to those of the above-mentioned related embodiments and will not be further described here.

[0444] The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method shown in the above method embodiment.

[0445] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method shown in the above method embodiment.

[0446] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0447] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0448] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0449] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.

[0450] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0451] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0452] The above description is merely a specific embodiment of the present application, but the scope of protection of the embodiments of the present application is not limited thereto. Any person skilled in the art can easily conceive of changes or substitutions within the technical scope disclosed in the embodiments of the present application, and such changes or substitutions should be included in the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.

Claims

1. An image processing method, characterized in that: Applied to a first device, comprising: Acquire a first image, where a first parameter of the first image is a first value; In a case where a first interface is displayed, in response to a first operation, at least one image is displayed, the at least one image including the first image, and the first interface is a preview interface or an image editing interface; In response to an input operation of selecting the first image among the at least one image, displaying a second interface, the second interface including a second image and a first control; Among them, the first parameter of the second image is the first value, the second image is a preview image or an edited image, the first control is used to set the first parameter, and the first control displayed in the second interface indicates that the first parameter is the first value.

2. The method according to claim 1, characterized in that The method further comprises: In response to a second operation on the first control, the second image switches to a third image, the first parameter of the third image is a second value, and the first control indicates that the first parameter is the second value, and the second operation is used to set the first parameter to the second value.

3. The method according to claim 1 or 2, characterized in that The second interface further includes a first button and a first identifier for indicating that the first button is selected; the first button is used to select the value set for the first parameter of the first image.

4. The method according to claim 3, characterized in that After displaying the second interface, the method further includes: In response to a user input operation, displaying the at least one image on the second interface, the at least one image including a fourth image, the first parameter of the fourth image being a third value; In response to an input operation of selecting the fourth image from the at least one image, displaying a third interface, the third interface including the fifth image, the first control, the first button, the second button, and the first identifier for indicating that the second button is selected; Among them, the first parameter of the fifth image is the third value, the second button is used to select the value set by the first parameter of the fourth image, and the first control displayed in the third interface indicates that the first parameter is the third value.

5. The method according to claim 4, characterized in that The method further comprises: When the third interface is displayed, in response to the input operation of selecting the first button, the fifth image switches to the sixth image, and the first identifier switches from the state of selecting the second button to the state of selecting the first button, and the first parameter of the sixth image is the first value.

6. The method according to any one of claims 3 to 5, characterized in that The second interface further includes a second control, the second control is used to trigger the display of a third control, and the third control is used to trigger the customization of the value of the first parameter; The method further comprises: When the second interface is displayed, in response to an input operation on the second control, displaying the third control on the second interface; In response to an input operation on the third control, a third button is displayed on the second interface, and the first indicator switches from a state in which the first button is selected to a state in which the third button is selected, and the third button is used to select a customized value of the first parameter; In response to a third operation on the first control, the second image switches to display a seventh image, and the first control indicates that the first parameter is set to the fourth value; the third operation is used to set the first parameter to a fourth value, and the first parameter of the seventh image is the fourth value.

7. The method according to claim 6, characterized in that The method further comprises: When the seventh image is displayed, in response to an input operation of selecting the first button, the seventh image switches to the eighth image, the first parameter of the eighth image is the first value, and the first identifier switches from a state in which the third button is selected to a state in which the first button is selected.

8. The method according to claim 6 or 7, characterized in that When the seventh image is displayed, the second control is also displayed, and the second control is further used to trigger the display of a fourth control, and the fourth control is used to delete the customized value of the first parameter; The method further comprises: In a case where the seventh image is displayed, in response to an input operation on the second button, displaying the fourth control; In response to an input operation on the fourth control, the seventh image switches to a ninth image, the third button disappears, and the first identifier selects the first button; the first parameter of the ninth image is the first value.

9. The method according to any one of claims 1 to 8, characterized in that The acquiring of the first image comprises: When a fourth interface is displayed, in response to a fourth operation, the first parameter is set to the first value, and the fourth interface is a preview interface or an image editing interface; In response to the fifth operation, the first image is obtained, the first image displays a first element, the first element is used to indicate that the first parameter is the first value, and the fifth operation is used to capture the image or confirm an editing operation on the image.

10. The method according to claim 9, characterized in that The method further comprises: When the fifth interface is displayed, in response to the user's input operation, the first control is displayed on the fifth interface, the first control indicates that the first parameter is an initial value, and the fifth interface is a preview interface or an image editing interface; In response to the sixth operation on the first control, a sixth interface is displayed, the sixth interface including the tenth image and the first control, the sixth operation is used to set the first parameter to the first value, the first parameter of the tenth image is the first value, and the first control displayed in the sixth interface indicates that the first parameter is the first value.

11. The method according to any one of claims 1 to 10, characterized in that The first interface includes a fifth control, and the fifth control is used to trigger the display of the first control; The displaying of at least one image in response to the first operation includes: In response to an input operation on the fifth control, a seventh interface is displayed, the seventh interface including a ninth image, the first control, and a second control, the second control being used to trigger display of a sixth control, the first parameter of the ninth image being an initial value, and the first control in the seventh interface indicating that the first parameter is the initial value; In response to an input operation on the second control, displaying the sixth control on the seventh interface, wherein the sixth control is used to trigger display of the at least one image; In response to an input operation on the sixth control, the at least one image is displayed.

12. The method according to any one of claims 1 to 11, characterized in that The second image is displayed based on one or more of the following: first information corresponding to the first image, the first information being used to record data related to the first image, and the first information including the first value; pixel data of the first image, the pixel data carrying first data, and the first data being used to indicate the first value; a first element displayed by the first image, the first element including the first value; or A first prediction parameter, wherein the first prediction parameter is inferred based on the first image, and the first prediction parameter includes the first value.

13. The method according to claim 12, characterized in that The displaying of the second interface includes: In a case where the first device stores the first information, based on the first information, the first parameter is set to the first value, and the second interface is displayed; or, In a case where the first device does not store the first information, the first data in the image data is extracted and decoded to obtain the first value; the first parameter is set to the first value, and the second interface is displayed.

14. The method according to claim 13, characterized in that The displaying of the second interface includes: In a case where the first device does not store the first information and the pixel data does not carry the first data, inputting the first image into a first model, where the first model is used to predict a value of the first parameter of the image; The first value is output based on the first model, the first parameter is set to the first value, and the second interface is displayed.

15. The method according to any one of claims 12 to 14, characterized in that In a case where the second image is displayed based on the first information, acquiring the first image includes: receiving the first image and the first information from a second device; or, When the fourth interface is displayed, in response to an input operation of setting the first parameter to the first value, the first image and the first information are obtained, and the fourth interface is a preview interface or an image editing interface.

16. The method according to any one of claims 12 to 14, characterized in that In a case where the second image is displayed based on the first data, acquiring the first image includes any one of the following: downloading the first image; Taking a screenshot of the tenth image to obtain the first image; receiving the first image from a second device; or, When the fourth interface is displayed, the first image is obtained in response to an input operation of setting the first parameter to the first value, and the fourth interface is a preview interface or an image editing interface.

17. The method according to any one of claims 12 to 16, characterized in that The first information is exchangeable image file format information.

18. An image processing device, characterized in that: Comprising means for performing the method according to any one of claims 1-17.

19. An electronic device, characterized in that: The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, and is configured to store computer program codes, where the computer program codes include computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 17.

20. A communication system, characterized in that: The communication system includes the first device according to any one of claims 1 to 17 and a second device, so that the first device executes the method according to any one of claims 1 to 17, and the second device is configured to send the first image to the first device.

21. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-17.

22. A computer-readable storage medium, characterized in that The computer-readable storage medium comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 17.

23. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 17.