Image processing method and electronic device

By acquiring and utilizing scene information for image processing, the problem of electronic devices being unable to adjust images to meet user needs has been solved, thus improving user experience and the freedom of adjustment.

WO2025167442A9PCT designated stage Publication Date: 2026-05-21HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-01-07
Publication Date
2026-05-21

AI Technical Summary

Technical Problem

Images adjusted by electronic devices may not meet user needs and negatively impact the user experience.

Method used

By acquiring the first image information and the first scene information, image processing is performed based on the scene information to ensure that the processed image has a high similarity to the original image information, providing freedom and playability for multiple processing.

Benefits of technology

It enables the recovery of original image information within a certain error range, improving the user's photo-taking playability and adjustment effects, and meeting the user's need for multiple processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025071118_21052026_PF_FP_ABST
    Figure CN2025071118_21052026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an image processing method and an electronic device. The method comprises: in response to an operation of a user triggering photographing, obtaining first image information and first scene information, wherein the first image information corresponds to a first image, the first image is obtained by performing first processing on original image information collected by a camera, the first scene information is obtained on the basis of the original image information, and the first processing corresponds to a first mode; in response to an operation of the user triggering second processing of the first image, obtaining second image information on the basis of the first scene information, wherein the second processing corresponds to a second mode; and displaying a third image, wherein the third image is obtained by performing the second processing on the second image information.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing methods and electronic devices

[0001] This application claims priority to Chinese Patent Application No. 202410170254.1, filed on February 5, 2024, entitled "Image Processing Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminals, and more particularly to an image processing method and an electronic device. Background Technology

[0003] With the development of photography technology, users can take photos anytime, anywhere using electronic devices with built-in camera apps.

[0004] Currently, when a user takes an image using an electronic device, the user can trigger the electronic device to adjust the image. The electronic device responds to the user's operation, adjusts the image, and displays the adjusted image.

[0005] However, the following problem may occur: the adjusted image displayed to the user by the electronic device may not meet the user's needs, thus affecting the user's experience when using photo-taking applications. Summary of the Invention

[0006] This application provides a method for adjusting image styles in order to improve the user experience of using photo-taking applications.

[0007] In a first aspect, this application provides an image processing method, comprising: in response to a user triggering a shooting operation, obtaining first image information and first scene information, wherein the first image information corresponds to a first image, the first image is obtained by performing a first processing on the original image information captured by the camera, the first scene information is obtained based on the original image information, and the first processing corresponds to a first mode; in response to a user triggering a second processing operation on the first image, obtaining second image information based on the first scene information, wherein the second processing corresponds to a second mode; and displaying a third image, wherein the third image is obtained by performing a second processing on the second image information.

[0008] In this embodiment, since the first scene information is obtained based on the original image information, the second image information obtained through the first scene information has a very high similarity to the original image information. Therefore, it can also be understood that after the electronic device captures the first image, it can recover / restore / reproduce the original image information within a certain error range. This makes the effect of the electronic device performing the second processing on the second image information almost the same as the effect of the electronic device performing the second processing on the original image information. That is, in the method provided in this embodiment, even if the electronic device has completed capturing the first image, when the user triggers the processing of the first image, the electronic device can always use the second image information, which has a high similarity to the original image information, as the basis for processing and display the processed image to the user.

[0009] Understandably, this method allows for the comparison of images processed multiple times based on the same image information, offering greater flexibility in adjustment, increasing the playability of user photography, and resulting in better effects.

[0010] In conjunction with the first aspect, in one possible implementation, the first scene information is the same as the original image information.

[0011] Furthermore, when the first scene information is the same as the original image information, in one possible implementation, the second image information obtained by the electronic device is the same as the original image information.

[0012] Understandably, with this implementation, even after the electronic device has captured the first image, it can still obtain image information that is completely identical to the original image information. Accordingly, each adjustment made by the electronic device can be considered as processing based on the original image information.

[0013] In conjunction with the first aspect, in one possible implementation, the content of the first scene information includes thumbnail information, which is information obtained by downsampling the original image information.

[0014] This implementation saves storage space compared to determining the original image information as the first scene information.

[0015] Furthermore, when the content of the first scene information includes thumbnail information, in one possible implementation, the electronic device obtains the second image information based on upsampling the thumbnail information. That is, the second image information is obtained based on upsampling the thumbnail information.

[0016] For example, upsampling methods may include, but are not limited to, interpolation, deconvolution, and pooling.

[0017] Furthermore, when the content of the first scene information includes thumbnail information, in one possible implementation, the electronic device obtains the second image information by fusing the thumbnail information and the first image information. That is, the second image information is obtained by fusing the thumbnail information and the first image information.

[0018] In conjunction with the first aspect, in one possible implementation, prior to a user triggering an operation to perform a second processing on the first image, the method further includes: displaying an image adjustment area in response to a user triggering an operation to perform a second processing on the first image; wherein the user inputs an operation on the image adjustment area to trigger the electronic device to perform a second processing on the first image.

[0019] For example, the image adjustment area includes at least one of the following sliders: brightness slider, color slider, contrast slider, saturation slider, and dynamic range slider; wherein each slider includes a sliding point, and the user can instruct the electronic device to perform processing by setting the position of the sliding point in at least one slider.

[0020] In conjunction with the first aspect, in one possible implementation, the method further includes: determining a first scene corresponding to the original image information; obtaining the mode on which the first scene was previously captured; determining a recommended mode based on the mode on which the first scene was previously captured; displaying the image obtained after third processing in the viewfinder, the third processing corresponding to the recommended mode; wherein, if a user triggers a shooting operation, the recommended mode is determined to be the first mode.

[0021] In this implementation, electronic devices can make adjustments and recommendations for different scenes based on the user's preference for adjusting images for each scene, thereby further improving the user experience.

[0022] For example, when determining the first scene corresponding to the original image information, one implementation includes: determining the first scene corresponding to the original image information based on a scene recognition algorithm; wherein the input of the scene recognition algorithm is the original image information captured by the camera, and the output of the scene recognition algorithm is the scene corresponding to the original image information captured by the camera.

[0023] In conjunction with the first aspect, in one possible implementation, when performing the first processing on the original image information to obtain the first image, the process includes: obtaining image processing parameters corresponding to a first mode, wherein different modes correspond to different image processing parameters; and processing the original image information based on the image processing parameters corresponding to the first mode to obtain the first image.

[0024] It is understandable that the first image information is obtained by processing the original image information based on the image processing parameters corresponding to the first mode. Since the first image information indicates the first image, processing the original image information based on the image processing parameters corresponding to the first mode to obtain the first image information can also be understood as processing the original image information based on the image processing parameters corresponding to the first mode to obtain the first image.

[0025] Secondly, this application provides an image processing apparatus capable of implementing the method described in the first aspect or any of its possible implementations. The apparatus includes corresponding modules for performing the described methods. These modules can be implemented in software and / or hardware.

[0026] Thirdly, this application provides an image processing apparatus including a processor that can be used to execute a computer program in a memory to implement the method described in the first aspect or any of the possible implementations thereof.

[0027] Optionally, the device further includes a communication interface, to which the processor is coupled. The communication interface is used to receive signals from other communication devices outside the device and transmit them to the processor, or to send signals from the processor to other communication devices outside the device. Exemplarily, the communication interface may be a transceiver, circuit, bus, module, pin, or other type of communication interface.

[0028] Optionally, the device further includes a memory, to which the processor is coupled. The memory stores program instructions and data. The memory is coupled to the processor, which, when executing the instructions stored in the memory, can implement the methods described in the preceding aspects.

[0029] Fourthly, this application provides a computer-readable storage medium storing a computer program or instructions that, when executed, implement the method described in the first aspect or any of the possible implementations thereof.

[0030] Fifthly, this application provides a computer program product including instructions that, when executed, implement the methods described in the first to third aspects and any possible implementation thereof.

[0031] In a sixth aspect, this application provides a chip system including at least one processor for supporting the implementation of the functions involved in the first aspect or any of the possible implementations thereof, such as receiving or processing data involved in the above methods.

[0032] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0033] The chip system can consist of chips or include chips and other discrete components.

[0034] The effects that can be obtained from the second to sixth aspects can be referred to the description in the first aspect, and will not be repeated here. Attached Figure Description

[0035] Figure 1 shows a schematic diagram of the structure of an electronic device;

[0036] Figure 2 shows a software structure block diagram of an electronic device;

[0037] Figure 3 shows a schematic diagram of the interface for providing photo-taking functions in a photo-taking application;

[0038] Figure 4 shows a flowchart of the image processing method provided in the embodiments of this application;

[0039] Figure 5 is a schematic diagram of a shooting interface displayed when taking an image, according to an embodiment of this application;

[0040] Figure 6 is a schematic diagram of an image adjustment area provided in an embodiment of this application;

[0041] Figure 7 is a schematic diagram of another image adjustment area provided in an embodiment of this application;

[0042] Figure 8 is a schematic diagram of the process of recommending modes corresponding to the learning scenarios of electronic devices provided in the embodiments of this application;

[0043] Figure 9 is a schematic diagram of an image adjustment process provided in an embodiment of this application;

[0044] Figure 10 is a schematic diagram of another image adjustment process provided in an embodiment of this application;

[0045] Figure 11 is a flowchart illustrating another image processing method provided in an embodiment of this application;

[0046] Figure 12 shows a schematic diagram of an image processing apparatus provided in an embodiment of this application;

[0047] Figure 13 shows a schematic diagram of another image processing apparatus provided in an embodiment of this application. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0049] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.

[0050] It should be noted that, in this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0051] Furthermore, "at least one" refers to one or more, while "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0052] Before introducing the image processing method, we will first introduce the electronic devices to which the image processing method provided in the embodiments of this application can be applied.

[0053] Specifically, the image processing method provided in this application can be applied to electronic devices with display functions. Exemplarily, the electronic devices in this application can be mobile phones, tablets, personal computers (PCs), smart screens, in-vehicle systems, and wearable devices such as smartwatches. They can also be various teaching aids (e.g., learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, etc., and can also be devices with mobile office functions, smart home functions, audio-visual entertainment functions, or devices supporting smart travel. It should be understood that the embodiments of this application do not limit the specific technologies or device forms used in the electronic devices.

[0054] In this embodiment, the electronic device includes a hardware layer, an operating system layer running on top of 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 main memory. The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0055] For example, Figure 1 shows a schematic diagram of the structure of an electronic device. As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, buttons 190, an indicator 192, a camera 193, and a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. It should be understood that the electronic device may include more or fewer components than illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0057] The processor 110 may include one or more processing units. These processing units may be independent devices or integrated within one or more processors. The processor 110 may also include memory for storing instructions and data.

[0058] The Universal Serial Bus (USB) interface 130 is a USB standard-compliant interface. This USB interface 130 can be used to connect a charger to charge electronic devices, and can also be used for data transfer between electronic devices and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices.

[0059] The charging management module 140 receives charging input from the charger. The charger can be a wireless charger or a wired charger. The power management module 141 connects the charging management module 140 to the processor 110.

[0060] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0061] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in electronic devices can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0062] The mobile communication module 150 can provide solutions for wireless communication applications in electronic devices, including 2G, 3G, 4G, and 5G technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, filter and amplify the received electromagnetic waves, and then transmit them to a modem processor for demodulation.

[0063] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), and other wireless communication technologies.

[0064] Electronic devices implement display functions through a graphics processing unit (GPU), a display screen 194, and an application processor. The GPU connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering.

[0065] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. In some embodiments, an electronic device may include one or N displays screens 194, where N is a positive integer greater than 1.

[0066] Electronic devices can achieve shooting functions through image signal processing (ISP), cameras 193, video codecs, GPUs, displays 194, and application processors.

[0067] Camera 193 is used to capture still images or videos. In some embodiments, the electronic device may include one or N cameras 193, where N is a positive integer greater than 1.

[0068] The external memory interface 120 can be used to connect an external memory card, thereby expanding the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0069] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area.

[0070] Electronic devices can implement audio functions through audio modules 170, speakers 170A, receivers 170B, microphones 170C, and application processors. Examples include music playback and recording.

[0071] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Speaker 170A, also called a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic devices can listen to music or make hands-free calls through speaker 170A. Receiver 170B, also called a "handpiece," is used to convert audio electrical signals into sound signals. When an electronic device answers a phone call or voice message, it can listen to the voice by bringing the receiver 170B close to the ear. Microphone 170C, also called a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0072] A pressure sensor 180A is used to sense pressure signals and can convert them into electrical signals. In some embodiments, the pressure sensor 180A may be located on a display screen 194. A gyroscope sensor 180B can be used to determine the motion posture of the electronic device. A barometric pressure sensor 180C is used to measure barometric pressure. A magnetic sensor 180D includes a Hall effect sensor. An accelerometer sensor 180E can detect the magnitude of acceleration of the electronic device in various directions (typically three axes). A distance sensor 180F is used to measure distance. A proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, such as a photodiode. An ambient light sensor 180L is used to sense ambient light intensity. A fingerprint sensor 180H is used to collect fingerprints. A temperature sensor 180J is used to detect temperature. A touch sensor 180K, also known as a "touch device," is used. A bone conduction sensor 180M can acquire vibration signals.

[0073] Touch sensor 180K can be disposed on display screen 194, and touch screen, or "touchscreen", is composed of touch sensor 180K and display screen 194. In this embodiment, the touchscreen can be provided with a grid of capacitive sensing nodes (hereinafter referred to as capacitive sensors). When the electronic device determines that the capacitance value of at least one grid received by the capacitive sensor exceeds the capacitance threshold, a touch operation can be determined. Furthermore, the electronic device can determine the touch area corresponding to the touch operation based on the area occupied by at least one grid that exceeds the capacitance threshold.

[0074] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The electronic device can receive button input and generate key signal inputs related to user settings and function control. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc.

[0075] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and detach from the electronic device 100. The electronic device 100 can support one or more SIM card interfaces. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., a pre-installed eSIM. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0076] For example, Figure 2 illustrates a software architecture block diagram of an electronic device. The layered architecture divides the electronic device's software system into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom: applications, application framework, Android runtime and system libraries, and the kernel.

[0077] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the application framework layer.

[0078] For example, an application package may include a desktop, calendar, notes, maps, navigation, Bluetooth, music, camera, and SMS application.

[0079] The application framework layer provides APIs and a programming framework for applications within the application layer. The application framework layer includes some predefined functions.

[0080] For example, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0081] The window manager manages windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots. The content provider stores and retrieves data, making it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon can include views for displaying text and views for displaying images. The phone manager provides communication functionality for electronic devices, such as managing call status (including connection and disconnection). The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager allows applications to display notifications in the status bar. These notifications can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, causing electronic devices to vibrate, and flashing indicator lights.

[0082] The Android runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries comprise two parts: one part contains the functionalities that Java needs to call, and the other part is the Android core library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and 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. System libraries can contain modules with multiple functionalities, such as surface managers, media libraries, and 3D graphics processing libraries.

[0083] The Surface Manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The Media Library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as JPG and PNG. The 3D Graphics Processing Library implements 3D graphics drawing, image rendering, compositing, and layer processing.

[0084] The kernel layer is the layer between hardware and software. It drives the hardware, enabling it to function. The kernel layer includes at least display drivers, screen drivers, camera drivers, and sensor drivers, but this embodiment does not limit this.

[0085] With the development of photography technology, users can take photos anytime, anywhere using electronic devices with built-in camera apps.

[0086] Optionally, photo apps can offer various image styles, such as cool tones, warm tones, vivid colors, black and white, transparency, and retro styles. Users can choose their preferred style before taking a photo, and the resulting image will reflect the style selected by the user.

[0087] For example, Figure 3 shows a schematic diagram of the interface for providing a photo-taking function in a photo-taking application. As shown in Figure 3(a), interface 301 is the camera's photo-taking interface, which may include slow motion, portrait, photo, portrait, etc. Interface 301 may also include controls 302, etc.

[0088] When the user triggers control 302, in response to the user's operation of triggering control 302, as shown in Figure 3(b), the electronic device can display image adjustment area 303, which includes different styles. For example, as shown in Figure 3(b), the styles that can be provided in image adjustment area 303 include original image, clear, bright, transparent, retro, black and white, light color, DV, etc.

[0089] It should be noted that the style in the embodiments of this application is only a name example, and may also be called pattern, filter, etc.

[0090] Specifically, the various styles included in the image adjustment area 303 can be considered as controls for the user to trigger the electronic device to adjust the image. After the user clicks on a different style, the electronic device responds to the style clicked by the user and adjusts the image accordingly.

[0091] Taking the example of a user selecting a clear style in the image adjustment area 303 and triggering the shooting control 304, the electronic device responds to the user's operation by taking a picture of the current scene with the camera to obtain the original image captured by the camera, then obtains the image adjustment parameters corresponding to the clear style, adjusts the original image based on the parameters, and stores the adjusted image in the image library.

[0092] Optionally, if the styles included in the image adjustment area 303 cannot all be displayed on the current interface, the user can trigger a leftward swipe operation on the image adjustment area 303. In response to the user-triggered leftward swipe operation, the electronic device displays more styles.

[0093] It should be noted that interface 301 is an exemplary interface. It is understood that different applications may have different interface displays, and interface 301 may include more or less content, which is not limited in this application embodiment.

[0094] Currently, when a user takes an image using an electronic device, for example, this image is called image 1, after the user triggers the electronic device to display image 1, the user can continue to trigger the electronic device to display image adjustment area 303, and then select a style on image adjustment area 303. The style selected by the user is called style 2, for example. The electronic device responds to the user's operation, processes image 1 according to style 2, and displays the processed image to the user.

[0095] It should be noted that adjusting images based on user clicks is also commonly referred to as image style adjustment.

[0096] However, when using the image style adjustment methods described above, the adjusted image displayed to the user by the electronic device may not meet the user's needs, thus affecting the user's experience when using photo-taking applications.

[0097] For example, before the user takes a picture, that is, before the shooting control 304 is triggered, the user selects a style. After the user finishes shooting, they may not want the style they just selected, but want to try other styles on the original image captured by the camera. However, the above method cannot meet the user's needs.

[0098] The image processing method provided in the embodiments of this application is described in detail below. This image processing method can also be referred to as an image adjustment method.

[0099] Referring to Figure 4, the image processing method provided in this application is illustrated. This method can be executed by an electronic device. As shown in Figure 4, method 400 includes steps S410, S420, and S430.

[0100] S410, in response to the user's triggering of the shooting operation, obtains first image information and first scene information, wherein the first image information corresponds to the first image, the first image is obtained after performing a first processing on the original image information captured by the camera, the first scene information is obtained based on the original image information, and the first processing corresponds to the first mode.

[0101] For example, when a user opens a camera app, the electronic device displays a shooting control, and the user triggers the electronic device to take a picture by clicking the shooting control.

[0102] For example, when a user opens a camera app, the user can trigger the electronic device to take a picture via voice.

[0103] It should be noted that this example only uses clicking the shooting control and voice commands to trigger the electronic device to take a picture, and does not constitute a limitation of this application. As long as a user performs an operation that triggers the electronic device to take a picture, it can be considered that the user has triggered the electronic device to take a picture.

[0104] In this embodiment, the electronic device takes a picture in response to a user-triggered shooting operation. In this embodiment, the information of the image captured by the camera during shooting is referred to as raw image information. Optionally, this raw image can also be called a raw (RAW) image, and the raw image information is also called RAW image information.

[0105] In this embodiment, after the electronic device takes a picture, in addition to obtaining the first image information, it also obtains the first scene information and stores the first image information and the first scene information.

[0106] Specifically, the first image information corresponds to the first image. This can be understood as: the first image can be generated using the first image information. Therefore, the first image information corresponding to the first image can be termed the first image information indicating the first image.

[0107] For example, the first image information includes the pixel information of the first image.

[0108] More specifically, in this embodiment, the first image is obtained by the electronic device performing a first processing corresponding to a first mode on the raw image information captured by the camera. Since the first image information indicates the first image, this description can also be equivalent to: the first image information corresponding to the first image is obtained by the electronic device performing a first processing corresponding to a first mode on the raw image information captured by the camera. That is, in response to the user's shooting operation, the electronic device performs a first processing corresponding to a first mode on the raw image information captured by the camera to obtain the first image information corresponding to the first image.

[0109] In this embodiment, the processing is also referred to as adjustment, and the first processing corresponding to the first mode is also referred to as the first adjustment.

[0110] Specifically, in one implementation, when the electronic device performs a first processing corresponding to a first mode on the original image information, it obtains image processing parameters (also called image adjustment parameters) corresponding to the first mode. For example, the image processing parameters include one or more of the following parameters: parameters for adjusting image brightness, parameters for adjusting image saturation, parameters for adjusting image contrast, parameters for adjusting image dynamic range, and parameters for adjusting image color. Based on the image adjustment parameters corresponding to the first processing, the original image information is adjusted to obtain the first image information.

[0111] In some embodiments, the first mode is the default mode of the electronic device. For example, before taking a picture, the user can trigger the electronic device to display the shooting interface shown in Figure 5. The shooting interface includes a style setting control 501, a viewfinder 502, a shooting control 503, and an image preview 504. If the user directly clicks the shooting control 503 after entering the shooting interface, the electronic device obtains the original image information captured by the camera and the image adjustment parameters corresponding to the default mode. Based on the image adjustment parameters corresponding to the default mode, the original image information is adjusted to obtain the first image information.

[0112] In other embodiments, the first mode of processing the original image information is triggered by the user in the image adjustment area. For example, referring to Figures 5-7, if the user triggers the style setting control 501 on the shooting interface shown in Figure 5, the electronic device displays the image adjustment area shown in Figure 6 in response to the user's triggering of the style setting control 501; or, the electronic device displays the image adjustment area shown in Figure 7 in response to the user's triggering of the style setting control 501.

[0113] Specifically, the image adjustment area shown in Figure 6 includes different modes, which can also be called styles, filters, etc. Each mode can be considered a control used by the user to trigger adjustments on the electronic device. Different modes correspond to different image adjustment parameters. After the user clicks on a different mode, the electronic device responds by obtaining the image adjustment parameters corresponding to the clicked mode and adjusting the original image information to obtain the first image information.

[0114] Taking the user clicking on style B and triggering the shooting control 503 as an example, the electronic device responds to the user's operation, shoots the first scene to obtain the original image information captured by the camera, and obtains the image adjustment parameters corresponding to style / mode B. Then, it adjusts the original image information based on the image adjustment parameters corresponding to style / mode B to obtain the first image information.

[0115] Optionally, for the image adjustment area in Figure 6, the image adjustment parameters corresponding to the same mode in different shooting scenarios can be different. In other words, when the electronic device shoots different scenarios, even if the user selects the same mode for different scenarios, the image adjustment parameters used by the electronic device to adjust the original image information may be different. For example, when the electronic device shoots scenarios 1 and 2, and the user selects mode / style E in Figure 6 for both, the electronic device adjusts the original image information for scenario 1 based on image adjustment parameter 1, and adjusts the original image information for scenario 2 based on image adjustment parameter 2. In a specific implementation, in one approach, an algorithm for identifying the shooting scenario type and an algorithm for generating the image adjustment parameters corresponding to each mode / style in different scenarios can be preset in the electronic device. Then, when the electronic device takes a picture, it first identifies the type of shooting scenario, and then obtains the image adjustment parameters corresponding to each mode / style in the image adjustment area under that scenario type to adjust the original image information.

[0116] Specifically, the image adjustment area shown in Figure 7 includes at least one of the following sliders: brightness slider, color slider, contrast slider, saturation slider, and dynamic range slider. Each slider includes a sliding point, and different positions of the sliding point correspond to different modes. The electronic device responds to the user-set sliding positions of the various sliding points, obtains the corresponding image adjustment parameters for the user-set modes, and then adjusts the original image information based on these image adjustment parameters to obtain the first image information.

[0117] [Correction 13.01.2025 according to rule 91] Taking the user triggering the shooting control 703 after sliding each sliding point to the position shown in Figure 7 as an example, the electronic device responds to the user's operation, shoots the first scene and obtains the original image information captured by the camera, and then adjusts the original image information based on the image adjustment parameters corresponding to the positions of each sliding point in Figure 7 to obtain the first image information.

[0118] Optionally, for the image adjustment area in Figure 7, the image adjustment parameters corresponding to the same position in different shooting scenarios can be different. In other words, when the electronic device shoots different scenes, even if the user makes the exact same settings for different scenes in the image adjustment area shown in Figure 7, the image adjustment parameters used by the electronic device to adjust the original image information may be different. For example, when the electronic device shoots scene 1 and scene 2, and the user positions all the sliding points as shown in Figure 7, the electronic device adjusts the original image information of scene 1 based on image adjustment parameter 1, and adjusts the original image information of scene 2 based on image adjustment parameter 2. In a specific implementation, in one approach, an algorithm for identifying the shooting scene type and an algorithm for generating the image adjustment parameters corresponding to the sliding points of each slider in different scenes can be preset in the electronic device. Then, when the electronic device takes a picture, it first identifies the type of shooting scene, and then obtains the image adjustment parameters corresponding to each sliding point in the image adjustment area under that scene type to adjust the original image information.

[0119] Optionally, when the electronic device processes the original image information using image adjustment parameters corresponding to the default mode, the default mode may be, for example, the mode corresponding to the leftmost position in the image adjustment area. For instance, taking Figure 6 as an example, the default mode may be the style corresponding to the leftmost position in the image adjustment area. Taking Figure 7 as an example, the default mode may be the mode corresponding to when the positions of all sliding points in the image adjustment area are at the leftmost position. It should be noted that this is only an example using the leftmost position; the specific mode set as the default mode is not limited in this embodiment.

[0120] In some other embodiments, when the electronic device performs a first processing on the raw image information in response to a user-triggered shooting operation, the first mode corresponding to the first processing is determined by the electronic device through modes used in previous shooting of the first scene. Specifically:

[0121] When the electronic device displays a shooting interface as shown in Figure 5, it identifies the scene corresponding to the raw image information currently captured by the camera as the first scene. For example, a scene recognition algorithm can be preset. The input of the scene recognition algorithm is the raw image information captured by the camera, and the output is the scene corresponding to the raw image captured by the camera. Based on the recorded patterns of images obtained when shooting the first scene previously, the electronic device determines the mode that the user might prefer. For example, the determined mode that the user might prefer is called the recommended mode. The electronic device processes the raw image information captured by the camera using the image adjustment parameters corresponding to the recommended mode and displays the processed image in the viewfinder. In response to the user triggering the shooting operation, the electronic device determines the recommended mode as the first mode. In this embodiment, the processing of the raw image information captured by the camera based on the image adjustment parameters corresponding to the recommended mode is also called the third processing.

[0122] For example, when an electronic device determines a mode that a user might prefer based on the modes recorded when the first scene was previously captured, the electronic device determines the mode based on the mode most recently captured in time for the current capture of the first scene. Alternatively, the electronic device obtains the most frequently used mode from multiple previous captures of the first scene and then determines that most frequently used mode as the recommended mode.

[0123] For example, taking shooting scene 1 and shooting scene 2 as examples, the process of determining the recommendation mode is illustrated in Figure 8:

[0124] When the electronic device recognizes that scene 1 is being captured, it processes the raw image information captured by the camera based on the image adjustment parameters of the recommended mode 1 corresponding to scene 1 and displays the processed image in the viewfinder. Further: 1) If the user triggers the shooting control, the electronic device responds to the user's action by processing the raw image information captured by the camera based on the image adjustment parameters of the recommended mode 1; 2) If the user does not trigger the shooting control but selects another mode, the electronic device first processes the raw image information captured by the camera based on the image adjustment parameters of the mode selected by the user, and then determines whether to update the recommended mode based on the mode selected by the user this time and the previously selected modes.

[0125] Similarly, when the electronic device recognizes that scene 2 is being captured, it processes the raw image information captured by the camera based on the image adjustment parameters of the recommended mode 2 corresponding to scene 2 and displays the processed image in the viewfinder. Further: 1) If the user triggers the shooting control, the electronic device responds to the user's action by processing the raw image information captured by the camera based on the image adjustment parameters of the recommended mode 2; 2) If the user does not trigger the shooting control but selects another mode, the electronic device first processes the raw image information captured by the camera based on the image adjustment parameters of the mode selected by the user, and then determines whether to update the recommended mode based on the mode selected by the user this time and the previously selected modes.

[0126] Optionally, when displaying an image in the viewfinder of the electronic device's shooting interface, the electronic device determines whether to display based on the default mode or the recommended mode based on whether the user triggers the recommended mode control. Specifically: if the user does not trigger the recommended mode control on the shooting interface, the electronic device processes the raw image information captured by the camera based on the image adjustment parameters corresponding to the default mode and displays it in the viewfinder; if the user does not trigger the recommended mode control on the shooting interface, the electronic device responds to the user's operation of triggering the recommended mode control, processes the raw image information captured by the camera based on the image adjustment parameters corresponding to the recommended mode, and displays it in the viewfinder.

[0127] In this embodiment, the first scene information stored by the electronic device includes any one of the following:

[0128] The first method involves the electronic device acquiring the original image captured by the camera and determining this original image information as the first scene information. Here, the original image information corresponds to the original image, and the original image can be generated from this information. In other words, in this first implementation, the stored first scene information is the original image information; or, in other words, the first scene information is the same as the original image information.

[0129] The second method involves the electronic device acquiring the original image information captured by the camera and then downsampling the original image information to determine the content included in the first scene information. It can be understood that the information obtained by downsampling the original image information can also be considered as image information of an image with a lower resolution than the original image obtained by downsampling the original image. For example, this lower-resolution image can be called a thumbnail corresponding to the original image, and thus the image information of the thumbnail is determined to be included in the first scene information. In this embodiment, the thumbnail information is also called thumbnail information; that is, the thumbnail information is the information obtained by downsampling the original image information and can be used to obtain a thumbnail. Optionally, the thumbnail corresponding to the original image can also be called a small image corresponding to the original image. It can be understood that this implementation method can save storage space compared to the first implementation method.

[0130] It should be noted that this embodiment does not limit the specific method of obtaining the thumbnail information corresponding to the original image information. For example, in one implementation: the electronic device extracts features from the original image information using a preset convolutional neural network to obtain the thumbnail information corresponding to the original image. As another example, in another implementation, the electronic device directly obtains the thumbnail information corresponding to the original image information through a pooling operation.

[0131] S420, the electronic device displays the first image in response to the user's operation of opening the first image.

[0132] As described in S410, the first image is obtained by performing a first processing on the raw image information captured by the camera.

[0133] In one implementation, the electronic device, in response to a user's operation of opening a first image, obtains the memory address storing the first image information, and then displays the first image based on the first image information stored in the memory address.

[0134] S430, the electronic device responds to the user's triggering of a second processing operation on the first image, obtains second image information based on the first scene information and displays a third image, wherein the third image is obtained by the electronic device performing a second processing on the second image information, and the second processing corresponds to a second mode.

[0135] For example, referring to Figure 9, the electronic device responds to the user's operation of opening the first image and displays the image interface in Figure 9(a) to the user. The image interface includes an image display area 901, a send control, a favorite control, an edit control, a delete control, and more controls. The first image is displayed in the image display area 901, and the edit control is used by the user to edit the first image. In response to the user triggering the edit control, the electronic device displays the editing interface in Figure 9(b), which includes an auto-enhancement control, a style setting control, a cropping and rotating control, etc. In response to the user triggering the style setting control, the electronic device displays the image adjustment area of ​​Figure 6 again in Figure 9(c). The user clicks on the desired style to trigger the electronic device to perform a second processing / adjustment (for example, if the user clicks on style G in Figure 9, the adjustment corresponding to style G can be considered as the second adjustment). Alternatively, referring to Figure 10, the electronic device responds to the user's operation of opening the first image by displaying the image interface in Figure 10(a) to the user; the electronic device responds to the user triggering the editing control by displaying the editing interface in Figure 10(b); the electronic device responds to the user triggering the style setting control by displaying the image adjustment area of ​​Figure 7 again in Figure 10(c), and the user sets the position of each sliding point in the image adjustment area to trigger the electronic device to perform a second processing on the first image.

[0136] It is understood that Figures 9 and 10 are merely interface examples and do not constitute a limitation on the embodiments of this application. For example, for Figure 9, the style setting control can be set on the interface shown in Figure 9(a). In this way, the interface shown in Figure 9(b) is not required. After the user triggers the style setting control on the interface shown in Figure 9(a), the electronic device directly displays the interface shown in Figure 9(c) or the interface shown in Figure 10(c).

[0137] In this embodiment, when the electronic device detects that the user has triggered a second processing operation on the first image, the electronic device acquires first scene information, then obtains second image information based on the first scene information, and performs second processing on the second image information to obtain a third image displayed to the user. That is to say, in this embodiment, the electronic device does not directly perform second processing on the first image, or it can be understood that the electronic device does not directly perform second processing on the first image information.

[0138] Specifically, in this embodiment, the electronic device generates the second image information based on the first scene information in the following ways:

[0139] Method 1: When the first scene information is the same as the original image information, the electronic device directly obtains the second image information based on the first scene information. Understandably, in this method, the second image information is identical to the original image information.

[0140] Method 2: When the first scene information includes thumbnail information, the electronic device upsamples the thumbnail information to obtain the second image information.

[0141] Method 3: When the first scene information includes thumbnail information, the electronic device combines the thumbnail information and the first image information in S410 to obtain the second image information. Specifically, this may include: the electronic device obtaining color and brightness information from the thumbnail information, and texture and contour information from the first image information; then processing the obtained color, brightness, texture, and contour information using a fusion algorithm to obtain the second image information.

[0142] It should be noted that this embodiment does not limit the algorithm by which the electronic device obtains color information, brightness information, detail information, and contour information.

[0143] For example, one can obtain the color histogram of the upsampled image and then derive color information based on it. Alternatively, one can convert the upsampled image to a grayscale image and then determine the brightness based on the grayscale values ​​to obtain brightness information. Or, one can process the first image information using an edge detection algorithm / Laplacian operator to obtain texture and contour information.

[0144] In this embodiment, the image displayed to the user after the second image information has undergone a second processing is called the third image.

[0145] Optionally, if the user triggers the storage of the third image after the third image is displayed to the user, the electronic device responds to the user's operation of storing the third image by storing the image information corresponding to the third image.

[0146] In some embodiments, in response to a user triggering an operation to store a third image, the electronic device stores only the image information corresponding to the third image, that is, the stored content only includes the information of the image obtained after the second adjustment of the second image.

[0147] In another embodiment, in response to a user's triggering of an operation to store a third image, the electronic device stores not only image information corresponding to the third image but also first scene information, and establishes a correspondence between the third image and the first scene information. It is understood that in this embodiment, when a user triggers the opening and adjustment of the third image, the electronic device can also respond to the user's adjustment of the third image by generating second image information based on the first scene information, and then making adjustments based on the second image information.

[0148] Optionally, if after displaying the third image to the user, the user continues to trigger the electronic device to adjust the third image, the electronic device responds to the adjustment method triggered by the user, continues to adjust based on the second image information, and displays the image obtained after the user-triggered adjustment of the second image information to the user.

[0149] Optionally, in this embodiment, the electronic device may also send the first image information and the first scene information to other electronic devices, which are referred to as the receiving end; accordingly, the receiving end obtains the first image based on the first image information, and when it detects that the user triggers the receiving end to process the first image, the receiving end generates the second image information based on the first scene information, processes the image based on the second image information, and displays the processed image.

[0150] Understandably, in this embodiment, since the first scene information is obtained based on the original image information, the second image information obtained through the first scene information is very similar to the original image information acquired by the camera when the electronic device captures the first scene. Therefore, it can also be understood that after the electronic device captures the first image, it can also restore / reproduce the original image information within a certain error range, so that the effect of the electronic device performing the second processing on the second image information is almost the same as the effect of the electronic device performing the second processing on the original image information.

[0151] In other words, in the method provided in this embodiment, even after the electronic device has finished taking a picture, it can obtain a second image that is highly similar to the original image. Then, in response to each user's triggering of an adjustment operation, adjustments are made to the thermal image that is highly similar to the original image, and the adjusted image is displayed to the user. It can be understood that this method allows for comparison of images that have been adjusted multiple times based on the same image (i.e., the second image), providing greater flexibility in adjustment, increasing the playability of the user's photography experience, and achieving better results.

[0152] Optionally, the terminal device in this embodiment can display an interface including a style mode control. In response to the user's operation on the style mode control, the terminal device determines to adjust the image using the method shown in Figure 4.

[0153] The following, with reference to Figure 11, presents a complete embodiment of an electronic device adjusting an image. As shown in Figure 11, the method includes:

[0154] S1101, the electronic device displays the shooting interface.

[0155] [Correction 13.01.2025 based on Rule 91] This shooting interface is used by the user to capture images. For example, the shooting interface shown in Figure 7 is displayed.

[0156] For example, the shooting interface includes shooting controls and style setting controls.

[0157] S1102, the electronic device responds to the user's operation of triggering the shooting control and captures the first scene through the camera.

[0158] In the first example, the style setting control was not triggered before the user activated the shooting control.

[0159] In the second example, the style setting control is triggered before the user triggers the shooting control. The electronic device responds to the user's triggering of the style setting control by displaying the image adjustment area. Furthermore, the user triggers the adjustments that the electronic device needs to make on the image adjustment area.

[0160] In this embodiment, the image information captured by the camera is referred to as raw image information.

[0161] S1103, the electronic device stores the first scene information and the first image information.

[0162] In one example, when the user takes a picture without triggering the style setting control, the first image information stored by the electronic device is the image information obtained after the original image information has been adjusted by default, such as including the pixel information of the image obtained after the default adjustment.

[0163] In one example, when the user triggers the electronic device to make the necessary adjustments in the image adjustment area, the camera control is activated. The first image information stored by the electronic device is the image information obtained after processing the original image information based on the user-triggered adjustments. See the description in the embodiment shown in Figure 4 for details, which will not be repeated here.

[0164] The detailed descriptions of the first scene information and the first image information can be found in the descriptions in the foregoing embodiments, and will not be repeated here.

[0165] S1104, the electronic device displays the first image in response to the user's operation of opening the first image.

[0166] S1105, the electronic device displays an image adjustment area in response to a user-triggered operation to display the image adjustment area.

[0167] S1106, the electronic device responds to the user's operation of making a second adjustment to the first image triggered on the image adjustment area, and acquires the first scene information.

[0168] S1107, the electronic device obtains second image information based on the first scene information, and performs a second processing on the second image information to obtain a third image to be displayed to the user.

[0169] As can be seen in the embodiment of Figure 11, the electronic device can obtain an image with a high similarity to the original image when the first scene was captured, and then make adjustments based on that image.

[0170] Optionally, in this embodiment, the first scene information may include more content than just the original image information or thumbnail information. For example, it may include one or more of the following: semantic information and depth information of the original image, face information, and camera settings information at the time of shooting. Subsequently, when generating the second image information, the electronic device generates the second image information based on all the content included in the stored first scene information.

[0171] Optionally, in this embodiment, when the electronic device has a recommendation mode function, the recommendation mode can also be applied to the adjustment of existing images in the image library. For example, taking the embodiment of FIG9 as an example, in response to the user triggering the display of the image adjustment area, the electronic device determines the first scene corresponding to the image to be adjusted, then determines the recommendation mode corresponding to the first scene, and displays the image based on the recommendation mode.

[0172] Figure 12 is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of this application. As shown in Figure 12, the apparatus 1200 includes an acquisition module 1201, a processing module 1202, and a display module 1203.

[0173] As an example, the acquisition module 1201 can be used to perform the acquisition of first image information and first scene information in S410.

[0174] As another example, processing module 1202 can be used to perform the first processing of the raw image information captured by the camera in S410. As yet another example, display module 1203 can be used to display the third image in S430.

[0175] Figure 13 is a schematic diagram of the structure of an application recovery device according to another embodiment of this application. As shown in Figure 13, the processing device 1300 may include a processor 1301 and an interface circuit 1302. The processor 1301 and the interface circuit 1302 are coupled to each other. It is understood that the interface circuit 1302 may be a transceiver or an input / output interface. Optionally, the processing device 1300 may also include a memory 1303 for storing instructions executed by the processor 1301, or storing input data required by the processor 1301 to execute instructions, or storing data generated after the processor 1301 executes instructions.

[0176] It is understood that the processor in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.

[0177] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Additionally, the ASIC can reside in a network device or terminal device. Alternatively, the processor and storage medium can exist as discrete components in the network device or terminal device.

[0178] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video optical disc; or it can be a semiconductor medium, such as a solid-state drive.

[0179] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0180] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers described above does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.

Claims

1. An image processing method, characterized in that, include: In response to a user-triggered shooting operation, first image information and first scene information are obtained, wherein the first image information corresponds to a first image, the first image is obtained by performing a first processing on the original image information captured by the camera, the first scene information is obtained based on the original image information, and the first processing corresponds to a first mode; In response to a user-triggered operation to perform a second processing on the first image, second image information is obtained based on the first scene information, wherein the second processing corresponds to a second mode; Display a third image, wherein the third image is obtained by performing the second processing on the second image information.

2. The method according to claim 1, characterized in that, The first scene information is the same as the original image information.

3. The method according to claim 2, characterized in that, The second image information is the same as the original image information.

4. The method according to claim 1, characterized in that, The first scene information includes thumbnail information, which is obtained by downsampling the original image information.

5. The method according to claim 4, characterized in that, The second image information is obtained by upsampling the thumbnail information.

6. The method according to claim 4, characterized in that, The second image information is obtained by fusing the thumbnail information and the first image information.

7. The method according to any one of claims 1 to 6, characterized in that, Prior to the user triggering the operation of performing a second processing on the first image, the method further includes: In response to the user triggering the style setting controls, the image adjustment area is displayed; The user inputs an action on the image adjustment area to trigger a second processing of the first image.

8. The method according to claim 7, characterized in that, The image adjustment area includes at least one of the following sliders: brightness slider, color slider, contrast slider, saturation slider, and dynamic range slider; Each slider includes a sliding point, and the user can instruct the electronic device to perform a process by setting the position of at least one sliding point on the slider.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Determine the first scene corresponding to the original image information; Obtain the pattern used when shooting the first scene; Based on the pattern used when shooting the first scene previously, a recommended pattern is determined; The image obtained after the third processing is displayed in the viewfinder, and the third processing corresponds to the recommended mode. If the user triggers a shooting operation, the recommended mode is determined to be the first mode.

10. The method according to claim 9, characterized in that, Determining the first scene corresponding to the original image information includes: The first scene corresponding to the original image information is determined based on a scene recognition algorithm; The scene recognition algorithm is input to the original image information captured by the camera, and the scene recognition algorithm outputs the scene corresponding to the original image information captured by the camera.

11. The method according to any one of claims 1 to 10, characterized in that, When performing the first processing on the original image information to obtain the first image, the process includes: Obtain the image processing parameters corresponding to the first mode, wherein different modes correspond to different image processing parameters; The original image information is processed based on the image processing parameters corresponding to the first mode to obtain the first image.

12. An image processing apparatus, characterized in that, It includes functional modules for implementing the method as described in any one of claims 1 to 11.

13. An image processing apparatus, characterized in that, include: Memory and processor; The memory is used to store program instructions; The processor is used to execute program instructions in the memory to implement the method as described in any one of claims 1 to 11.

14. An electronic device, characterized in that, It includes the apparatus as described in claim 12 or 13.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code for computer execution, the program code including instructions for implementing the method as described in any one of claims 1 to 11.

16. A chip, characterized in that, It includes at least one processor and a communication interface, the communication interface and at least one processor being interconnected via a line, the at least one processor being used to run computer programs or instructions to perform the communication method as described in any one of claims 1 to 11.

17. A computer program product, characterized in that, The computer program product includes instructions for implementing the method as described in any one of claims 1 to 11.