Image processing method and electronic device
By acquiring and processing scene information of the image, the electronic device generates image information with high similarity to the original image and adjusts it according to user operations, solving the problem that image adjustment in the prior art does not meet user needs and improving user experience.
Patent Information
- Application Number
- PCT/CN2025/071118
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-05
- Filing Date
- 2025-01-07
- Publication Date
- 2025-08-14
AI Technical Summary
In the prior art, the results displayed by the electronic device after adjusting the image may not meet the user's needs and affect the user experience.
By acquiring the first image information and the first scene information, performing the second process based on the first scene information, generating the second image information with a high similarity to the original image information, and further adjusting according to the user's operation to display the third image.
It improves the freedom and playability of image processing, enhances the user's photography experience, ensures that the processed image is close to the original image information, and meets the user's multiple adjustment needs.
Smart Images

Figure CN2025071118_14082025_PF_FP_ABST
Abstract
Description
Image processing method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 5, 2024, with application number 202410170254.1 and application name “Image Processing Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of terminals, and in particular to an image processing method and an electronic device. Background Art
[0003] With the development of photography technology, users can take photos anytime and anywhere through electronic devices with photography applications.
[0004] Currently, after a user captures an image using an electronic device, the user may trigger the electronic device to adjust the image. The electronic device adjusts the image in response to the user's operation and displays the adjusted image.
[0005] However, the following problem may arise: the adjusted image displayed to the user by the electronic device may not meet the user's needs, thereby affecting the user's experience of using the photo-taking application. Summary of the Invention
[0006] This application provides a method for adjusting image style in order to enhance the user experience of using photo-taking applications.
[0007] In a first aspect, the present 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 after a first processing is performed 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 an operation to perform a second processing on the first image, obtaining second image information according to the first scene information, wherein the second processing corresponds to a second mode; and displaying a third image, wherein the third image is obtained after the second processing is performed on the second image information.
[0008] In this embodiment, because 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. Therefore, it can also be understood that: after the electronic device captures the first image, it can also restore / 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. That is, in the method provided by this embodiment, even if the electronic device has completed capturing and obtained the first image, when the user triggers the processing of the first image, the electronic device can always perform processing based on the second image information that is very similar to the original image information, and display the processed image to the user.
[0009] It can be understood that this method can realize the comparison of images after multiple processing based on the same image information, has a higher degree of adjustment freedom, increases the playability of users' photography, and has better effects.
[0010] In combination with the first aspect, in a possible implementation manner, the first scene information is the same as the original image information.
[0011] Furthermore, when the first scene information is identical to the original image information, in a possible implementation manner, the second image information obtained by the electronic device is identical to the original image information.
[0012] It is understandable that in this implementation, even if the electronic device completes capturing and obtains the first image, the electronic device can again obtain image information that is completely identical to the original image information. Accordingly, each adjustment made by the electronic device can be considered to be based on the original image information.
[0013] In combination with the first aspect, in a possible implementation, the content of the first scene information includes thumbnail information, where the thumbnail information is information obtained by downsampling the original image information.
[0014] In this implementation, compared with determining the original image information as the first scene information, storage space can be saved.
[0015] Furthermore, when the content of the first scene information includes thumbnail information, in a 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] Exemplarily, upsampling methods may include, but are not limited to, interpolation, deconvolution, up-pooling, and the like.
[0017] Furthermore, when the first scene information includes thumbnail information, in one possible implementation, the electronic device obtains the second image information by fusing the thumbnail information with the first image information. That is, the second image information is obtained by fusing the thumbnail information with the first image information.
[0018] In combination with the first aspect, in one possible implementation, before responding to the 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 the 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] Exemplarily, the image adjustment area includes at least one of the following sliding bars: a brightness sliding bar, a color sliding bar, a contrast sliding bar, a contrast sliding bar, a saturation sliding bar, and a dynamic range sliding bar; wherein each sliding bar includes a sliding point, and the user can indicate the processing performed by the electronic device by setting the position of the sliding point in at least one sliding bar.
[0020] In combination with the first aspect, in a possible implementation, the method further includes: determining a first scene corresponding to the original image information; obtaining the mode based on which the first scene was previously photographed; determining a recommended mode based on the mode based on which the first scene was previously photographed; displaying the image obtained after the third processing in the viewfinder, the third processing corresponding to the recommended mode; wherein, if a user-triggered shooting operation is detected, determining that the recommended mode is the first mode.
[0021] In this implementation, the electronic device can make adjustment recommendations for different scenes based on the user's adjustment habits for the images corresponding to each scene, thereby further improving the user experience.
[0022] Exemplarily, when determining the first scene corresponding to the original image information, one implementation method 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 combination with the first aspect, in a possible implementation method, when performing the first processing on the original image information to obtain the first image, it includes: obtaining image processing parameters corresponding to the first mode, where different modes correspond to different image processing parameters; processing the original image information based on the image processing parameters corresponding to the first mode to obtain the first image.
[0024] It can be understood that the first image information is obtained after the original image information is processed based on the image processing parameters corresponding to the first mode. Since the first image information indicates the first image, the first image information is obtained by processing the original image information based on the image processing parameters corresponding to the first mode, which can be understood as obtaining the first image by processing the original image information based on the image processing parameters corresponding to the first mode.
[0025] In a second aspect, the present application provides an image processing device that can implement the method described in the first aspect or any possible implementation thereof. The device includes corresponding modules for executing the above method. The modules included in the device can be implemented in software and / or hardware.
[0026] In a third aspect, the present application provides an image processing device, which includes a processor, and the processor can be used to execute a computer program in a memory to implement the method described in the first aspect or any possible implementation thereof.
[0027] Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface. The communication interface is configured to receive signals from other communication devices outside the device and transmit them to the processor, or to transmit 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 apparatus further comprises a memory, the processor being coupled to the memory. The memory is configured to store program instructions and data. The memory is coupled to the processor, and when the processor executes instructions stored in the memory, the methods described in the above aspects can be implemented.
[0029] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions are executed, the method described in the first aspect or any possible implementation thereof is implemented.
[0030] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed, implement the methods described in the first to third aspects and the first aspect or any possible implementation thereof.
[0031] In a sixth aspect, the present application provides a chip system comprising at least one processor for supporting the functions involved in the first aspect or any possible implementation thereof, such as receiving or processing the data involved in the above method.
[0032] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0033] The chip system can be composed of chips, or can include chips and other discrete devices.
[0034] Among them, 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 shows a schematic structural diagram of an electronic device;
[0036] FIG2 shows a software structure block diagram of an electronic device;
[0037] FIG3 shows a schematic diagram of the interface of a camera application providing a camera function;
[0038] FIG4 is a schematic diagram showing the process of the image processing method provided in an embodiment of the present application;
[0039] FIG5 is a schematic diagram of a shooting interface displayed when shooting an image provided by an embodiment of the present application;
[0040] FIG6 is a schematic diagram of an image adjustment area provided in an embodiment of the present application;
[0041] FIG7 is a schematic diagram of another image adjustment area provided in an embodiment of the present application;
[0042] FIG8 is a schematic diagram of a process of recommending a mode corresponding to an electronic device learning scenario provided by an embodiment of the present application;
[0043] FIG9 is a schematic diagram of a process for adjusting an image provided by an embodiment of the present application;
[0044] FIG10 is a schematic diagram of another process for adjusting an image provided by an embodiment of the present application;
[0045] FIG11 is a schematic diagram of the process of another image processing method provided in an embodiment of the present application;
[0046] FIG12 shows a schematic diagram of an image processing device provided in an embodiment of the present application;
[0047] FIG13 shows a schematic diagram of another image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0049] To facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0050] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0051] In addition, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items 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, c can be single or multiple.
[0052] Before introducing the image processing method, the electronic device to which the image processing method provided in the embodiment of the present application can be applied is first introduced.
[0053] Specifically, the embodiments of the present application provide a method for image processing, which can be applied to electronic devices with display functions. For example, the electronic devices in the embodiments of the present application can be mobile phones, tablet computers, personal computers (PCs), smart screens, car equipment, and wearable devices such as smart watches. They can also be various teaching aids (such as learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality technology (AR) devices, virtual reality (VR) devices, etc. They can also be devices with mobile office functions, devices with smart home functions, devices with audio and video entertainment functions, devices that support smart travel, etc. It should be understood that the embodiments of the present application do not limit the specific technologies and specific device forms adopted by the electronic devices.
[0054] In an embodiment of the present application, the electronic 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 the Linux operating system, the Unix operating system, the Android operating system, the iOS operating system, or the Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0055] For example, FIG1 shows a schematic diagram of the structure of an electronic device. As shown in FIG1 , 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, a button 190, an indicator 192, a camera 193, and a display 194. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0056] It should be understood that the structures illustrated in the embodiments of this application do not constitute specific limitations on electronic devices. It should be understood that electronic devices may include more or fewer components than shown, or may combine or separate 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. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may also include a memory for storing instructions and data.
[0058] The universal serial bus (USB) interface 130 is an interface that complies with USB standards. This USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transfer data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other electronic devices.
[0059] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the charging management module 140 to the processor 110.
[0060] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0061] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in electronic devices can be used to cover single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0062] Mobile communication module 150 can provide wireless communication solutions for electronic devices, including second-generation (2G) wireless technology, third-generation (3G) mobile communication technology, fourth-generation (4G) mobile communication technology, and fifth-generation (5G) mobile communication technology. Mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. Mobile communication module 150 can receive electromagnetic waves from antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
[0063] The wireless communication module 160 can provide wireless communication solutions for 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), etc.
[0064] The electronic device implements 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 for graphics rendering.
[0065] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than one.
[0066] The electronic device can realize the shooting function through image signal processing (ISP), camera 193, video codec, GPU, display 194 and application processor.
[0067] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device may include 1 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 to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0069] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 can include a program storage area and a data storage area.
[0070] The electronic device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0071] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 170A, also known as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset", is used to convert audio electrical signals into sound signals. When the electronic device answers a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear. The microphone 170C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0072] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also known as a "touch device". The bone conduction sensor 180M can obtain vibration signals.
[0073] The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, or "touch screen." In embodiments of the present application, the touch screen can be provided with a grid of capacitive sensing nodes (hereinafter referred to as a capacitive sensor). When the electronic device determines that the capacitance value of at least one grid cell received by the capacitive sensor exceeds a capacitance threshold, it can determine that a touch operation has occurred. Furthermore, the electronic device can determine the touch area corresponding to the touch operation based on the area occupied by the at least one grid cell that exceeds the capacitance threshold.
[0074] Keys 190 include a power button, volume button, and other buttons. Keys 190 can be mechanical or touch-sensitive. The electronic device can receive key inputs and generate key signal inputs related to user settings and function control of the electronic device. Indicator 192 can be an indicator light that can be used to indicate charging status, battery level changes, messages, missed calls, notifications, and the like.
[0075] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or removing it from the SIM card interface 195. 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 at the same time. The types of multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, a pre-set SIM card. 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 shows a block diagram of the software structure of an electronic device. A layered architecture divides the software system of an electronic device into several layers, each with clear roles and divisions of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers: from top to bottom: the application layer (applications), the application framework layer (application framework), the Android runtime (Android runtime) and system libraries, and the kernel layer (kernel).
[0077] The application layer may 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.
[0078] For example, an application package may include desktop, calendar, memo, map, navigation, Bluetooth, music, camera, and short message applications.
[0079] The application framework layer provides APIs and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
[0080] For example, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0081] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images. The phone manager provides communication functions for electronic devices, such as managing call states (including connected and ended calls). The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager enables applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, without requiring user interaction. For example, the notification manager is used to notify users of download completions and message reminders. The notification manager can also be a notification that appears in the system's top status bar in the form of an icon or scrolling text bar, such as a notification from an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message may be displayed in the status bar, a notification sound may be emitted, an electronic device may vibrate, an indicator light may flash, etc.
[0082] The Android system runtime consists of core libraries and a virtual machine. The Android system runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one for the Java language's callable functions and the other for the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine is responsible for performing functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. The system library can include modules for multiple functions, such as the surface manager, media library, and 3D graphics processing library.
[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 static image files. It also supports various 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. The kernel layer is used to drive the hardware, making it work. The kernel layer includes at least display drivers, screen drivers, camera drivers, and sensor drivers, etc., which are not limited in this embodiment of the application.
[0085] With the development of photography technology, users can take photos anytime and anywhere through electronic devices with photography applications.
[0086] Optionally, photo-taking applications may provide some image styles, such as cool tones, warm tones, vivid, black and white, transparent, retro, etc. Users may select their favorite style and then take a photo, so that the image taken will be of the style selected by the user.
[0087] For example, Figure 3 shows a schematic diagram of the interface of a camera application providing a camera function. As shown in Figure 3 (a), interface 301 is the camera's camera 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 triggering control 302, as shown in FIG3(b), the electronic device may display an image adjustment area 303, which includes different styles. For example, as shown in FIG3(b), the styles that can be provided in the 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 embodiment of the present application is only an example of a name, for example, it can also be called a mode, a filter, etc.
[0090] Specifically, each style included in the image adjustment area 303 can be considered as a control for the user to trigger the electronic device to adjust the image. After the user clicks on a different style, the electronic device adjusts the image accordingly in response to the style clicked by the user.
[0091] Taking the example of the user triggering the shooting control 304 after selecting the clear style in the image adjustment area 303, the electronic device responds to the user's operation, shoots the current scene through the camera to obtain the original image captured by the camera, and then obtains the image adjustment parameters corresponding to the clear style, and then adjusts the original image based on the parameters, and stores the adjusted image in the gallery.
[0092] Optionally, if all styles included in the image adjustment area 303 cannot be displayed on the current interface, the user can trigger a left sliding operation on the image adjustment area 303. In response to the left sliding operation triggered by the user, the electronic device displays more styles.
[0093] It should be noted that the interface 301 is an exemplary interface. It is understandable that different applications may have different interface displays, and the interface 301 may include more or less content, which is not limited in the embodiment of the present application.
[0094] Currently, when a user takes an image based on 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 the image adjustment area 303, and then select a style on the 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, performs corresponding processing on image 1 based on style 2, and displays the processed image to the user.
[0095] It should be noted that, generally, the adjustment of an image by an electronic device based on the style clicked by a user is also referred to as image style adjustment.
[0096] However, when the above-mentioned image style adjustment method is used, the adjusted image displayed to the user by the electronic device may not meet the user's needs, thereby affecting the user's experience of using a photo-taking application.
[0097] For example, before the user takes a photo, that is, before triggering the shooting control 304, the user selects a style. Then after the user completes the shooting, the user may not want the style 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 following describes in detail the image processing method provided by the embodiment of the present application. The image processing method can also be called an image adjustment method.
[0099] Referring to FIG4 , the image processing method provided by the present application is described. The method can be executed by an electronic device. As shown in FIG4 , method 400 includes S410 , S420 , and S430 .
[0100] S410, in response to the user triggering the shooting operation, obtaining first image information and first scene information, wherein the first image information corresponds to the first image, the first image is obtained after the first processing is performed 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 photo-taking application, the electronic device displays a shooting control, and the user triggers the electronic device to take a photo by clicking the shooting control.
[0102] For example, after a user opens a photo-taking application, the user triggers the electronic device to take a photo by voice.
[0103] It should be noted that here, only clicking the shooting control and voice triggering the electronic device to shoot are used as examples, but this does not constitute a limitation of this application. As long as the user performs an operation that triggers the electronic device to shoot, it can be considered that the user triggers the electronic device to shoot.
[0104] In this embodiment, in response to a user triggering a capture operation, the electronic device captures the image. In this embodiment, the image information captured by the camera of the electronic device during capture is referred to as raw image information. Optionally, the raw image may also be referred to as a raw (RAW) image, and the raw image information may also be referred to as RAW image information.
[0105] In this embodiment, after the electronic device takes a picture, the electronic device obtains not only the first image information but also 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. The first image information corresponding to the first image can be understood as: the first image can be generated by the first image information. Therefore, the first image information corresponding to the first image can be said to indicate the first image.
[0107] For example, the first image information includes 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 the first mode on the original image information captured by the camera. Since the first image information indicates the first image, this description is equivalent to: the first image information corresponding to the first image is obtained by the electronic device performing the first processing corresponding to the first mode on the original image information captured by the camera. That is, in response to the user's shooting operation, the electronic device performs the first processing corresponding to the first mode on the original image information captured by the camera to obtain the first image information corresponding to the first image.
[0109] In this embodiment, the process is also referred to as adjustment, and the first process 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 corresponding to the first mode (image processing parameters are also called image adjustment parameters). For example, the image processing parameters include one or more of parameters for adjusting the brightness of the image, parameters for adjusting the saturation of the image, parameters for adjusting the contrast of the image, parameters for adjusting the dynamic range of the image, and parameters for adjusting the color of the image. The original image information is adjusted based on the image adjustment parameters corresponding to the first processing to obtain the first image information.
[0111] In some embodiments, the first mode is the default mode of the electronic device. For example, before shooting, the user can trigger the electronic device to display the shooting interface of Figure 5, which 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 obtains the image adjustment parameters corresponding to the default mode, and adjusts the original image information based on the image adjustment parameters corresponding to the default mode to obtain the first image information.
[0112] In other embodiments, the first mode of performing adjustments on the original image information is triggered by the user in the image adjustment area. For example, referring to Figures 5 to 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 triggering the style setting control 501; or, in response to the user triggering the style setting control 501, the electronic device displays the image adjustment area shown in Figure 7 .
[0113] Specifically, the image adjustment area shown in FIG6 includes different modes, which may also be referred to as styles, filters, etc. Each mode can be considered a control for the user to trigger the electronic device to make adjustments. Different modes correspond to different image adjustment parameters. After the user clicks on a different mode, the electronic device obtains the image adjustment parameters corresponding to the clicked mode in response to the user's click and adjusts the original image information to obtain the first image information.
[0114] Taking the example of a user clicking on style B and triggering the shooting control 503, the electronic device responds to the user 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, and then 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 of FIG6 , the image adjustment parameters corresponding to the same mode in different shooting scenes may be different. In other words, when the electronic device shoots different scenes, even if the user selects the same mode for different scenes, the image adjustment parameters used by the electronic device to adjust the original image information may also be different. For example, when the electronic device shoots scene 1 and scene 2, when the user selects mode / style E in FIG6 , 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 implementation method, an algorithm for identifying the type of scene being shot and an algorithm for generating image adjustment parameters corresponding to each mode / style in different scenes may be preset in the electronic device. Thereafter, when the electronic device shoots, the electronic device first identifies the type of scene being shot, and then obtains the image adjustment parameters corresponding to each mode / style in the image adjustment area under the scene type to adjust the original image information.
[0116] Specifically, the image adjustment area shown in FIG. 7 includes at least one of the following sliders: a brightness slider, a color slider, a contrast slider, a saturation slider, and a dynamic range slider. Each slider includes a sliding point, and different positions of the sliding point correspond to different modes. The electronic device, in response to the position of each sliding point set by the user, obtains the image adjustment parameter corresponding to the user-set mode, and then adjusts the original image information based on the image adjustment parameter to obtain the first image information.
[0117] [Corrected on 13.01.2025 according to Rule 91] Taking the case where the user slides each sliding point to the position as shown in FIG7 and triggers the shooting control 703 as an example, the electronic device responds to the user 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 the each sliding point in FIG7 to obtain the first image information.
[0118] Optionally, for the image adjustment area of FIG7 , the image adjustment parameters corresponding to the same position in different shooting scenes may be different. In other words, when the electronic device shoots different scenes, even if the user makes exactly the same settings in the image adjustment area shown in FIG7 for the different scenes, 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, when the user positions each sliding point at the position shown in FIG7 , 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 embodiment, an algorithm for identifying the type of scene being shot and an algorithm for generating the image adjustment parameters corresponding to the sliding points of each slider in different scenes may be preset in the electronic device. Thereafter, when the electronic device shoots, the electronic device first identifies the type of scene being shot, and then obtains the image adjustment parameters corresponding to each sliding point in the image adjustment area for the scene type to adjust the original image information.
[0119] Optionally, when the electronic device processes the original image information with the 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 example, taking Figure 6 as an example, the default mode may be the leftmost style in the image adjustment area. Taking Figure 7 as an example, the default mode may be the mode corresponding to when the positions of each sliding point in the image adjustment area are all at the leftmost. It should be noted that this is only an example of the leftmost position, and the specific setting of which mode as the default mode is not limited in the embodiments of the present application.
[0120] In some further embodiments, when the electronic device performs a first process on the original image information in response to a user triggering a capture operation, the first mode corresponding to the first process is determined by the electronic device based on a mode previously used by the electronic device when capturing the first scene. Specifically,
[0121] When the electronic device displays a shooting interface such as that shown in FIG5 , the electronic device identifies that the scene corresponding to the raw image information currently captured by the camera is the first scene. For example, a scene recognition algorithm may be preset, wherein 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. The electronic device determines a mode that the user may like based on the mode based on which the image obtained when the first scene was previously recorded. For example, the determined mode that the user may like is referred to as a 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 referred to as third processing.
[0122] For example, when the electronic device determines a mode that the user may like based on the recorded modes used in previous captures of the first scene, the electronic device determines the mode used in the most recent capture of the first scene as the recommended mode. Alternatively, the electronic device obtains the most frequently used mode in multiple previous captures of the first scene, and then determines the most frequently used mode as the recommended mode.
[0123] For example, the process of determining the recommended mode is described by taking shooting scene 1 and shooting scene 2 as an example. As shown in FIG8 :
[0124] When the electronic device recognizes that the scene being photographed is scene 1, the electronic device processes the original image information captured by the camera based on the image adjustment parameters of 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 processes the original image information captured by the camera based on the image adjustment parameters corresponding to recommended mode 1 in response to the user's operation of triggering the shooting control; 2) If the user does not trigger the shooting control, but selects another mode for shooting, the electronic device first processes the original image information captured by the camera based on the image adjustment parameters corresponding to the mode selected by the user, and the electronic device determines whether to update the recommended mode based on the mode selected by the user this time and the modes selected in the past.
[0125] Similarly, when the electronic device recognizes that the scene being photographed is scene 2, the electronic device processes the original image information captured by the camera based on the image adjustment parameters of 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 processes the original image information captured by the camera based on the image adjustment parameters corresponding to recommended mode 2 in response to the user's operation of triggering the shooting control; 2) If the user does not trigger the shooting control, but selects another mode for shooting, the electronic device first processes the original image information captured by the camera based on the image adjustment parameters corresponding to the mode selected by the user, and the electronic device determines whether to update the recommended mode based on the mode selected by the user this time and the mode selected in the past.
[0126] Optionally, when an image is displayed in the viewfinder of the shooting interface of the electronic device, the electronic device determines whether to display it based on the default mode or the recommended mode according to 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 original image information collected 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 original image information collected 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 in the electronic device includes any one of the following:
[0128] First: After acquiring the original image captured by the camera, the electronic device determines the 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 using the original image information. That is, 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 type: After the electronic device obtains the original image information captured by the camera, it determines the information obtained after downsampling the original image information as the content included in the first scene information. It can be understood that the information obtained after downsampling the original image information can also be considered as the image information of an image with a resolution smaller than the resolution of the original image obtained after downsampling the original image corresponding to the original image information. For example, the image with a smaller resolution is called a thumbnail corresponding to the original image, and the image information of the thumbnail is determined as the content included in the first scene information. In this embodiment, the information of the thumbnail is also called thumbnail information, that is, the thumbnail information is the information obtained after downsampling the original image information, which can be used to obtain a thumbnail. Optionally, the thumbnail corresponding to the original image can also be called the 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 for obtaining 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 thumbnail information corresponding to the original image. For another example, in another implementation, the electronic device directly performs a pooling operation on the original image information to obtain thumbnail information corresponding to the original image information.
[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 original image information captured by the camera.
[0133] In one implementation, the electronic device obtains a memory address storing the first image information in response to a user's operation of opening the first image, and then displays the first image based on the first image information stored in the memory address.
[0134] S430, in response to the user triggering an operation of performing a second processing on the first image, the electronic device obtains second image information according to 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, wherein the second processing corresponds to the second mode.
[0135] Exemplarily, referring to FIG9 , the electronic device responds to the user's operation of opening the first image by displaying the image interface in FIG9 (a) to the user, wherein 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 edit interface in FIG9 (b), which includes an automatic enhancement control, a style setting control, a cropping and rotation control, and the like. In response to the user triggering the style setting control, the electronic device displays the image adjustment area in FIG6 again in FIG9 (c), and the user clicks on the desired style to trigger the electronic device to perform a second processing / adjustment (for example, the user clicks on style G in FIG9 , and the adjustment corresponding to style G can be considered 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, and 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 again displaying the image adjustment area in Figure 7 in Figure 10(c), and the user sets the sliding position of each sliding point in the image adjustment area to trigger the electronic device to perform a second process on the first image.
[0136] It is understood that Figures 9 and 10 are merely examples of interfaces and do not constitute limitations of the embodiments of the present application. For example, with respect to 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) can be omitted. 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 a user has triggered an operation to perform the second processing on the first image, the electronic device obtains the first scene information, then obtains the second image information based on the first scene information, and performs the second processing on the second image information to obtain a third image displayed to the user. In other words, in this embodiment, the electronic device does not perform the second processing directly on the first image, or it can also be understood that the electronic device does not perform the second processing directly 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 manner:
[0139] Mode 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. It can be understood that in this mode, the second image information is the same as the original image information.
[0140] Mode 2: When the first scene information includes thumbnail information, the electronic device upsamples the thumbnail information to obtain second image information.
[0141] Method 3: When the first scene information includes thumbnail information, the electronic device combines the thumbnail information with the first image information in S410 to obtain the second image information. Specifically, this may include, for example, obtaining color information and brightness information from the thumbnail information, and obtaining texture information and outline information from the first image information, and then processing the obtained color information, brightness information, texture information, and outline information using a fusion algorithm to obtain the second image information.
[0142] It should be noted that this embodiment does not limit the algorithm for how the electronic device obtains color information, brightness information, detail information, and contour information.
[0143] For example, a color histogram of the upsampled image can be obtained, and then color information can be obtained based on the color histogram. For example, the upsampled image can be converted into a grayscale image, and then brightness can be determined based on the grayscale value to obtain brightness information. For example, the first image information can be processed using an edge detection algorithm / Laplacian operator to obtain texture information and contour information.
[0144] In this embodiment, the image displayed to the user after the second processing is performed on the second image information is called a third image.
[0145] Optionally, if the user triggers storage of the third image after the third image is displayed to the user, the electronic device stores image information corresponding to the third image in response to the user triggering the operation of storing the third image.
[0146] In some embodiments, in response to the user triggering an operation to store the third image, the electronic device only stores image information corresponding to the third image, that is, the stored content only includes information of the image obtained after performing the second adjustment on the second image.
[0147] In another embodiment, in response to a user triggering an operation to store a third image, the electronic device stores, in addition to image information corresponding to the third image, the first scene information, and establishes a correspondence between the third image and the first scene information. It will be appreciated that in this embodiment, when the user triggers opening and adjusting the third image, the electronic device may also generate second image information based on the first scene information in response to the user adjusting the third image, and then perform adjustments based on the second image information.
[0148] Optionally, if after the third image is displayed 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 to the user the image obtained after the second image information is adjusted by the user.
[0149] Optionally, in this embodiment, the electronic device can also send the first image information and the first scene information to other electronic devices, which are called receiving ends; 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 second image information as a basis, and displays the processed image.
[0150] It can be understood that 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 obtained by the camera when the electronic device shoots the first scene. Therefore, it can also be understood that: after the electronic device shoots the first image, it can also restore / 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] That is, in the method provided by this embodiment, even after the electronic device completes shooting, it can obtain a second image information that is highly similar to the original image information. Then, in response to each adjustment operation triggered by the user, the electronic device can make adjustments to the obtained image information that is highly similar to the original image information and display the adjusted image to the user. It can be understood that this method can achieve the comparison of images after multiple adjustments based on the same image (i.e., the second image), with greater adjustment freedom, increased user playability in taking pictures, and better results.
[0152] Optionally, the terminal device in this embodiment may display an interface including a style mode control, and the terminal device determines to use the method shown in FIG. 4 to adjust the image in response to a user's operation on the style mode control.
[0153] A complete embodiment of adjusting an image by an electronic device is given below in conjunction with FIG11. As shown in FIG11, the method includes:
[0154] S1101, the electronic device displays a shooting interface.
[0155] [Corrected 13.01.2025 according to Rule 91] The shooting interface is used for the user to shoot an image. For example, the shooting interface shown in FIG7 is displayed.
[0156] Exemplarily, the shooting interface includes shooting controls and style setting controls.
[0157] S1102: The electronic device captures a first scene through a camera in response to a user triggering an operation of a capture control.
[0158] In the first example, the user triggers the capture control without first triggering the style setting control.
[0159] In the second example, the user triggers the style setting control before triggering the shooting control. In response to the user triggering the style setting control, the electronic device displays the image adjustment area; further, the user triggers the electronic device to make adjustments in the image adjustment area.
[0160] In this embodiment, the image information collected by the camera is referred to as original image information.
[0161] S1103: The electronic device stores the first scene information and the first image information.
[0162] In one example, when the user directly shoots without triggering the style setting control, the first image information stored by the electronic device is the image information obtained after performing default adjustments to the original image information, for example, including pixel information of the image obtained after performing the default adjustments.
[0163] In one example, when a user triggers an adjustment to be made by the electronic device in the image adjustment area and then triggers a capture control, the first image information stored by the electronic device is the image information obtained by processing the original image information based on the user-triggered adjustment. For details, please refer to the description of the embodiment in FIG. 4 and will not be repeated here.
[0164] Among them, the detailed description of the first scene information and the first image information can refer to the description in the aforementioned embodiment 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 the image adjustment area in response to the user triggering the operation of displaying the image adjustment area.
[0167] S1106: The electronic device obtains first scene information in response to an operation of performing a second adjustment on the first image triggered by the user in the image adjustment area.
[0168] S1107: The electronic device obtains second image information based on the first scene information, and performs a second process on the second image information to obtain a third image displayed to the user.
[0169] It can be seen that in the embodiment of FIG11 , the electronic device can obtain an image that is highly similar to the original image when the first scene was captured and then make adjustments based on the image.
[0170] Optionally, in this embodiment, the first scene information may include more content in addition to the original image information or thumbnail information. For example, it may include one or more of the following: semantic information of the original image, depth information, facial information, and camera settings information. Subsequently, when the electronic device generates the second image information, it generates the second image information based on all the content included in the stored first scene information.
[0171] Optionally, in embodiments of the present application, when the electronic device has a recommendation mode function, the recommendation mode can also be applied to the adjustment of existing images in the gallery. For example, in the embodiment of FIG9 , in response to a user triggering the display of the image adjustment area, the electronic device determines the first scene corresponding to the adjusted image, then determines the recommendation mode corresponding to the first scene, and displays the image based on the recommendation mode.
[0172] FIG12 is a schematic diagram of the structure of an image processing device provided by an embodiment of the present application. As shown in FIG12 , the device 1200 includes an acquisition module 1201 , a processing module 1202 and a display module 1203 .
[0173] As an example, the acquisition module 1201 may be configured to execute the step of obtaining the first image information and the first scene information in S410 .
[0174] As another example, the processing module 1202 may be used to perform the first processing on the original image information collected by the camera in S410. As another example, the display module 1203 may be used to perform the display of the third image in S430.
[0175] FIG13 is a schematic diagram of the structure of an apparatus for restoring an application program according to another embodiment of the present application. As shown in FIG13 , a processing apparatus 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 will be appreciated that the interface circuit 1302 may be a transceiver or an input / output interface. Optionally, the processing apparatus 1300 may further include a memory 1303 for storing instructions executed by the processor 1301, or for storing input data required by the processor 1301 to execute instructions, or for storing data generated after the processor 1301 executes instructions.
[0176] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0177] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device or a terminal device. Of course, the processor and the storage medium can also be present in a network device or a terminal device as discrete components.
[0178] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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 the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may 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 may 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 may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive.
[0179] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0180] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.
Claims
1. An image processing method, characterized in that: include: In response to a user triggering a capture 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 original image information captured by a 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 an operation of performing a second processing on the first image, obtaining second image information according to the first scene information, wherein the second processing corresponds to a second mode; A third image is displayed, 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, wherein The content of the first scene information includes thumbnail information, and the thumbnail information is information 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 Before responding to the user triggering the operation of performing the second processing on the first image, the method further includes: In response to a user triggering an operation of the style setting control, displaying an image adjustment area; The user inputs an operation on the image adjustment area to trigger the 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 slide bars: a brightness slide bar, a color slide bar, a contrast slide bar, a saturation slide bar, and a dynamic range slide bar; Each sliding bar includes a sliding point, and the user can instruct the electronic device to perform processing by setting the position of at least one sliding point in the sliding bar.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: determining a first scene corresponding to the original image information; Obtaining the mode based on which the first scene was previously photographed; Determining a recommended mode based on the mode used when the first scene was previously photographed; displaying in the viewfinder an image obtained after a third processing, wherein the third processing corresponds to the recommended mode; If a shooting triggering operation by the user is detected, the recommended mode is determined to be the first mode.
10. The method according to claim 9, characterized in that The determining the first scene corresponding to the original image information includes: determining a first scene corresponding to the original image information based on a scene recognition algorithm; 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.
11. The method according to any one of claims 1 to 10, characterized in that When the first processing is performed on the original image information to obtain the first image, the method includes: Acquire image processing parameters corresponding to the first mode, where different modes correspond to different image processing parameters; The original image information is processed based on image processing parameters corresponding to the first mode to obtain the first image.
12. An image processing device, characterized in that: The method comprises functional modules for implementing the method according to any one of claims 1 to 11.
13. An image processing device, characterized in that: include: memory and processor; The memory is used to store program instructions; The processor is configured to execute program instructions in the memory to implement the method according to any one of claims 1 to 11.
14. An electronic device, characterized in that: Comprising the device according to claim 12 or 13.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program code for computer execution, wherein the program code includes instructions for implementing the method according to any one of claims 1 to 11.
16. A chip, characterized in that: The system comprises 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 run a computer program or instruction to perform the communication method according to any one of claims 1 to 11.
17. A computer program product, characterized in that The computer program product comprises instructions for implementing the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Image processing method and electronic device
CN112262563A
Shooting method, electronic equipment and readable storage medium
CN114422682A
Image adjustment method and device and storage medium
CN115589539A
Image processing method, image processing device, electronic equipment and storage medium
CN115623313A
Electronic device with camera and method thereof
US20220201203A1