CN115589539A - Image adjusting method, device and storage medium - Google Patents

Image adjusting method, device and storage medium Download PDF

Info

Publication number
CN115589539A
CN115589539A CN202211507930.7A CN202211507930A CN115589539A CN 115589539 A CN115589539 A CN 115589539A CN 202211507930 A CN202211507930 A CN 202211507930A CN 115589539 A CN115589539 A CN 115589539A
Authority
CN
China
Prior art keywords
image
adjusted
visual image
parameter value
effect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211507930.7A
Other languages
Chinese (zh)
Other versions
CN115589539B (en
Inventor
陆洋
黄庭刚
梁军胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211507930.7A priority Critical patent/CN115589539B/en
Publication of CN115589539A publication Critical patent/CN115589539A/en
Application granted granted Critical
Publication of CN115589539B publication Critical patent/CN115589539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application provides an image adjusting method, image adjusting equipment and a storage medium, wherein an original image file associated with a target visual image is called by responding to an adjusting instruction of a user to the target visual image; responding to the adjustment operation of a user on a target visual image, adjusting the effect influence parameter value of the target visual image, and obtaining the adjusted effect influence parameter value; and according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file to obtain an adjusted visual image. Because the original image file reserves most image information, the complete photographing environment can be restored, the original image file is used as input, the effect adjusting upper limit is higher, image signal processing is carried out on the original image file according to the adjusted effect influence parameter value, the adjusted visual image is obtained, and the image adjusting effect can be effectively improved.

Description

Image adjusting method, device and storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method, an apparatus, and a storage medium for image adjustment.
Background
With the development of electronic technology, electronic equipment such as intelligent terminals have a powerful photographing function, and meanwhile, the adjustment of visual images is supported, and the various requirements of users are met by adjusting the presenting effect of the visual images.
In order to change the presentation effect of the visual image, the adjusted parameter value is obtained according to the adjustment of the user on the parameter value influencing the image effect, and then the visual image is processed according to the adjusted parameter value to obtain the adjusted visual image. However, the solution is to adjust the generated visual image on the basis of the visual image, and the generated visual image usually loses some image information. The obtained adjusted visual image is often poor in effect by processing the visual image with some lost image information. Therefore, the conventional image adjusting method has the defect of poor image adjusting effect.
Disclosure of Invention
The application provides a method, equipment and storage medium for image adjustment, and aims to solve the problem of poor image adjustment effect.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect: the image adjusting method comprises the steps of responding to an adjusting instruction of a user on a target visual image, and calling an original image file associated with the target visual image; responding to the adjustment operation of a user on the target visual image, adjusting the effect influence parameter value of the target visual image, and obtaining the adjusted effect influence parameter value; and according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file to obtain an adjusted visual image.
According to the method provided by the embodiment of the application, the original image file which reserves most of original image information is used as input, the higher effect adjustment upper limit is provided, and then the image signal processing is carried out on the original image file according to the adjusted effect influence parameter value, the adjusted visible image is obtained, and the image adjustment effect can be effectively improved.
In one possible implementation, the adjusted image signal processing parameter value of the original image file may be obtained according to the adjusted effect influence parameter value of the target visual image; and according to the adjusted image signal processing parameter value, carrying out image signal processing on the original image file to obtain an adjusted visual image. The adjusted effect influencing parameter values visible to the user are converted into adjusted image signal processing parameter values of the original image file so as to obtain an adjusted visible image.
In one possible implementation, the degree of change of the effect-affecting parameter value is obtained according to the adjusted effect-affecting parameter value of the target visual image; determining the change degree of the image signal processing parameter value of the original image file according to the change degree of the effect influence parameter value; and obtaining the adjusted image signal processing parameter value of the original image file according to the change degree of the image signal processing parameter value of the original image file. Because the corresponding relation exists between the change degree of the effect influence parameter value and the change degree of the image signal processing parameter value, the change degree of the image signal processing parameter value can be obtained through the change degree of the effect influence parameter value, and then the adjusted image signal processing parameter value is obtained, so that the image signal processing can be carried out on the original image file.
In one possible implementation, in response to a mode selection instruction of a user, a target mode is determined from the preset effect adjustment mode; and adjusting the effect influence parameter value of the target visual image according to the target mode to obtain the adjusted effect influence parameter value. Because different preset effect adjustment modes correspond to different adjusted effect influence parameter values, the effect influence parameter values of the target visual image can be automatically adjusted according to the selection of the user on the different preset effect adjustment modes, and the adjusted effect influence parameter values are obtained. Therefore, the display effect of the visual image can be improved, and the adjusting process is more convenient and faster.
In one possible implementation, the photographing is performed in response to a photographing instruction of a user to obtain an original image file; and associating the original image file with a target visual image, and storing the associated original image file, wherein the target visual image is obtained by carrying out image signal processing on the original image file. Because the original image file associated with the target visual image is stored after the picture is taken, when the target visual image needs to be adjusted, the original image file can be called, the original image file is taken as input, and the adjusted visual image is generated, so that the image adjusting effect is improved.
In one possible implementation, the value of the effect influencing parameter of the target visual image is an average value of the values of the effect influencing parameters corresponding to the pixel points in the target visual image.
In one possible implementation, after obtaining the adjusted visual image, the stored target visual image is replaced with the adjusted visual image in response to a determination instruction of the user. And deleting the target visual image before adjustment while saving the adjusted visual image so as to save the storage space.
In one possible implementation, after obtaining the adjusted visual image, adjusting the effect influence parameter value of the adjusted visual image in response to an adjustment operation of the user on the adjusted visual image, and obtaining an updated effect influence parameter value; and according to the updated effect influence parameter value, carrying out image signal processing on the original image file to obtain an updated visual image. Therefore, when the effect of the user on the adjusted visual image is still unsatisfactory, the adjustment can be continued on the basis of the adjusted visual image to obtain the visual image satisfactory to the user.
In a second aspect: there is provided a computer device comprising a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is adapted to perform the steps of a method of image adjustment as described above according to instructions in the program code.
In a third aspect: there is provided a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method of image adjustment as described above.
It should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment.
Drawings
Fig. 1 is a schematic diagram of a photographing interface provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a preview interface provided in an embodiment of the present application;
FIG. 3 is a schematic view of an adjustment interface provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an effect-adjusting parameter value according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an adjusted visual image according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a mode-selection interface provided by an embodiment of the present application;
FIG. 7a is a schematic diagram of a selection interface for selecting an adjustment method according to an embodiment of the present disclosure;
FIG. 7b is a schematic diagram of an interface for selecting a custom adjustment manner according to an embodiment of the present application;
FIG. 7c is a schematic diagram of an interface for selecting an automatic adjustment mode according to an embodiment of the present disclosure;
FIG. 8 is a diagram illustrating an image adjustment process provided in an embodiment of the present application;
fig. 9 is a diagram illustrating an exemplary composition of an electronic device according to an embodiment of the present disclosure;
fig. 10 is a diagram illustrating a software structure of an electronic device according to an embodiment of the present application;
FIG. 11a is a flow chart of a conventional image adjustment method;
fig. 11b is a flowchart of an image adjusting method according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the application provides an image adjusting method, image adjusting equipment and a storage medium, wherein an original image file associated with a target visual image is called in response to an adjusting instruction of a user to the target visual image, and image signal processing is performed on the original image file according to an adjusted effect influence parameter value to generate an adjusted visual image. Because the original image file reserves most image information, the complete photographing environment can be restored, and the loss of image information such as texture noise and the like is avoided.
The following describes the image adjusting method provided by the present application in detail by taking a mobile phone as an example, with reference to the accompanying drawings.
Scene one:
an application scenario of image adjustment provided in the embodiment of the present application is described below with reference to the user interface schematic diagrams shown in fig. 1 to fig. 4 and fig. 5. Fig. 1 to fig. 5 are a schematic diagram of a photographing interface, a schematic diagram of a preview interface, a schematic diagram of an adjustment effect influence parameter value, and a schematic diagram of an adjusted visual image, which are provided in an embodiment of the present application.
For example, as shown in fig. 1, the figure is a schematic view of a photographing interface provided in an embodiment of the present application. After the user starts the photographing function of the mobile phone, the user can click the photographing button to photograph, and then a visual image is obtained. The visual image is an image obtained through processing, the image format may be Joint Photographic Experts Group (JPEG) or Portable Network Graphics (PNG), and the following mainly takes the visual image in JPEG format, that is, the image in JPEG format as an example for description.
The JPEG format image belongs to an image in a lossy compression format and supports an extremely high compression rate. Therefore, the downloading speed of the JPEG-format image is high, and the occupied storage space is relatively small. In contrast, because the JPEG-formatted image is a processed visual image, some image information, for example, information such as texture noise in a dark area or a bright area, is lost in the processing process, and then the JPEG-formatted image with some image information lost is processed to obtain a new visual image, that is, the adjusted visual image is often poor in effect.
The original image file, also known as a RAW image or digital negative, is not normally used directly as a visible image. However, the raw image file contains a large amount of raw image information as an unprocessed image, and has a wide color gamut of internal colors, and a JPEG format image or a visual image in another format can be obtained by processing the raw image file. That is, the JPEG format image is a visible image obtained by processing an original image file.
Exemplarily, after an original image file is obtained by photographing, image signal processing is performed on the original image file to generate a corresponding visual image, and an effect influence parameter value corresponding to each pixel point in the visual image is obtained. The effect influence parameter value obtained at this stage may be used as the initial effect influence parameter value of the pixel point. The effect influencing parameters include brightness, contrast, saturation and other parameters. After the visual image is generated, the visual image is stored in a gallery so that a user can view the visual image in the gallery. Meanwhile, the original image file corresponding to the visual image is associated and stored in the system, and the main purpose of associating and storing the original image file is to facilitate the calling of the original image file when image adjustment is carried out. It should be noted that the original image file need not be visible to the user.
A visual image needing effect adjustment is taken as a target visual image, as shown in fig. 2, which is a schematic diagram of a preview interface provided in an embodiment of the present application, and a user may enter an adjustment interface for the target visual image through a prompt button 1101 in the preview interface. For example, the presentation form of the prompt button 1101 may be an interactive button as shown in fig. 2, which displays a thumbnail of the target visual image, or a combination of one or more elements such as graphics, colors or characters that can be used to identify the target visual image, for example, when the main color tone of the target visual image is red, the prompt button 1101 presents red. In response to the adjustment instruction for the target visual image, the preview interface shown in fig. 2 may jump to the adjustment interface shown in fig. 3, and then the adjustment interface for the visual image is presented to the user, and meanwhile, the user is facilitated to obtain the adjusted visual image through each interactive button in the adjustment interface.
Fig. 3 is a schematic diagram of an adjustment interface provided in an embodiment of the present application. The target visual image is displayed in the adjustment interface, a lower left corner area 1102 of the target visual image represents a target area which needs to be subjected to effect adjustment, it should be noted that the size, the position and the shape of the target area are not specifically limited in this embodiment, and a user can customize the size, the position and the shape of the target area and can also default the size, the position and the shape of the target area by a system. In this example, three effect influencing parameters, namely, brightness, contrast and saturation, are displayed on the right side of the visual image, and a slider bar is respectively arranged below the three effect influencing parameters, which can respectively represent the brightness value, the contrast value and the saturation value corresponding to the target area in the visual image. Two interactive buttons, namely a preview button and a confirm button, are displayed on the lower right side of the adjusting interface.
A user may determine a target area in the target visual image by clicking, and after determining the target area, an initial effect influence parameter value of the target area may be obtained, where the effect influence parameter is a parameter influencing the effect of the visual image, and it should be noted that the effect influence parameter includes brightness, contrast, and saturation shown in fig. 3, but is not limited to this, and may also include parameters influencing the effect of the visual image, such as sharpness, exposure, color temperature, hue, and hue. As shown in fig. 3, the embodiment of the present application only takes brightness, contrast, and saturation as examples, and the three sliding bars on the right side of the target visual image respectively represent the brightness value, the contrast value, and the saturation value corresponding to the target area before adjustment from top to bottom.
By adjusting each initial effect influencing parameter value of the target area, each adjusted effect influencing parameter value can be obtained. The embodiment of the present application does not specifically limit how to adjust each initial effect influence parameter value of the target area. Fig. 4 is a schematic diagram of a parameter value affected by an adjustment effect according to an embodiment of the present disclosure. Initial effect influence parameter values can be adjusted by dragging the sliding strip, and specific adjusted effect influence parameter values can be input, or the difference value between the adjusted effect influence parameter values and the initial effect influence parameter values is input, so that adjustment of each initial effect influence parameter value is realized. Illustratively, dragging the slider from left to right can improve the effect influence parameter value corresponding to the slider, dragging the slider from right to left can reduce the effect influence parameter value corresponding to the slider, specifically, adjusting the slider corresponding to the brightness of the target area to the right can indicate that the brightness value of the target area is improved, the brightness value of the target area after adjustment can be obtained, adjusting the slider corresponding to the contrast to the left can indicate that the local contrast value of the target area is reduced, the contrast value after adjustment is obtained, and similarly, the saturation value can be improved or reduced to obtain the saturation value after adjustment. In other embodiments, if the leftmost side of the slider represents the maximum value of the effect influence parameter corresponding to the slider, and the rightmost side of the slider represents the minimum value of the effect influence parameter corresponding to the slider, the slider may be dragged from left to right to reduce the effect influence parameter value corresponding to the slider, and the slider may be dragged from right to left to improve the effect influence parameter value corresponding to the slider.
The user may display the adjusted visual image on the preview interface by clicking a preview button in the adjustment interface shown in fig. 4. Fig. 5 is a schematic diagram of an adjusted visual image according to an embodiment of the present application. Specifically, in response to the preview instruction, the mobile phone may perform image signal processing on the called original image file according to the adjusted effect influence parameter value to obtain a new visual image, that is, the adjusted visual image. For example, if the effect of the adjusted visual image is not satisfactory, the adjustment may be performed multiple times based on the adjusted effect influence parameter value to obtain an updated effect influence parameter value, and the image signal processing may be performed on the adjusted visual image based on the updated effect influence parameter value to obtain an updated visual image.
The user may save the adjusted visual image and delete the pre-adjusted target visual image saved in the gallery by clicking a determination button in the adjustment interface shown in fig. 4. And simultaneously returning to the preview interface from the interface, and displaying the adjusted visual image in the preview interface. Further, in order to save the storage space, after the adjusted visual image is saved, the corresponding original image file may be directly deleted, or the user may select to delete or not delete the corresponding original image file.
Scene two:
another application scenario of image adjustment provided in the embodiment of the present application is described below with reference to a schematic user interface diagram shown in fig. 6.
Different from the image adjusting method in the first scene, the second scene can automatically adjust the effect influence parameters according to the selected preset effect adjusting mode by selecting different preset effect adjusting modes to obtain adjusted effect influence parameter values, and the called original image file is processed according to the adjusted effect influence parameter values obtained by automatic adjustment to obtain an adjusted visual image.
Specifically, as shown in fig. 2, when the target visual image needs to be adjusted, the user may enter the mode selection interface through a prompt button 1101 in the preview interface. Mode selection interface as shown in fig. 6, fig. 6 is a schematic view of a mode selection interface provided in an embodiment of the present application. In the mode selection interface, the target visual image is displayed on the left side, and N mode selection buttons are displayed on the right side of the target visual image, wherein the N mode selection buttons correspond to different preset effect adjustment modes and different adjusted effect influence parameter values. In a possible implementation, the value of N is small, so that the N mode-selection buttons can be simultaneously presented in the mode-selection interface. If the value of N is large, for example, N is an integer greater than 6, mode selection buttons that are not shown before may be re-shown by sliding or dragging the mode selection buttons that are shown in the mode selection interface, so as to provide more choices for the user. A preview button and a confirm button are displayed on the lower side of the mode selection button.
For example, the target area is the complete visual image. In fig. 6, adjusted effect influence parameter values corresponding to each pixel point in the visual image may be obtained by selecting a mode selection button labeled with a mode 1, a mode 2, \8230 \\ or a mode N, and different adjusted effect influence parameter values may correspond to the same pixel point in different preset effect adjustment modes, where the preset effect adjustment modes may include a portrait mode, a landscape mode, a food mode, and the like, and the embodiment of the present application does not limit specific preset effect adjustment mode types. For example, when the mode selection button labeled with mode 1 in the drawing is selected, the preset effect adjustment mode corresponding to the mode selection button is the target mode, the original image file is called, each effect influence parameter value is adjusted according to the target preset effect, the adjusted effect influence parameter value is obtained, then the image signal processing is performed on the original image file according to the adjusted effect influence parameter value, and the adjusted visual image can be obtained. As in scene one, the adjusted visual image may be displayed in a preview interface by a preview button; the adjusted visual image can be saved and deleted through the confirmation button, and meanwhile, the current interface is closed and the preview interface is returned to.
In this scenario example, the N mode selection buttons, preview button, and ok button all belong to interactive buttons, differ only in function, and are named differently.
Scene three:
an application scenario of image adjustment provided by the embodiment of the present application is described below with reference to the user interface diagrams shown in fig. 7a to 8. Fig. 7a to 8 are schematic diagrams of a selection interface for selecting an adjustment mode, an interface for selecting a customized adjustment mode, an interface for selecting an automatic adjustment mode, and an image adjustment process, respectively, provided in an embodiment of the present application.
The image adjusting method provided by the embodiment of the application combines the image adjusting methods provided by the scene one and the scene two, and a user can select the two image adjusting methods, which is specifically described as follows.
As shown in fig. 7a, this figure is a schematic diagram of a selection interface for selecting an adjustment manner according to an embodiment of the present application, where a target visual image, a custom button, and an automatic button are displayed in the selection interface. Specifically, the automatic button corresponds to the image adjusting method provided by the first scene, and the automatic button corresponds to the image adjusting method provided by the second scene.
As shown in fig. 7b, this figure is a schematic diagram of an interface for selecting a custom adjustment manner provided in the embodiment of the present application. Through the custom button in fig. 7b, the adjustment interface shown in fig. 3 may be switched to, and the specific image adjustment application scenario is the same as the image adjustment application scenario in the first scenario, which is not described again here.
As shown in fig. 7c, this figure is a schematic view of an interface for selecting an automatic adjustment mode according to an embodiment of the present application. Through the automatic button in fig. 7b, the interactive interface shown in fig. 6 can be switched to, and a specific image adjusting method is the same as the image adjusting method in the second scene, which is not described again here.
Fig. 8 is a schematic diagram of an image adjustment process provided in an embodiment of the present application. And after the target visual image is shot, the user clicks a prompt button in the preview interface to enter a selection interface. The user can click an automatic button in the selection interface to enter the mode selection interface, the target mode is determined by clicking the mode selection button in the mode selection interface, image signal processing is carried out on the called original image file according to the adjusted effect influence parameter value corresponding to the target mode, the roughly adjusted visual image can be obtained, and the selection interface is returned. And displaying the visual image after coarse adjustment in the selection interface, clicking the user-defined button to enter an adjustment interface, and further adjusting the visual image after coarse adjustment by sliding the sliding bar corresponding to each effect influence parameter.
Specifically, after entering the adjustment interface, the user may determine a target area in the coarsely adjusted visual image by clicking, and after determining the target area, may obtain an initial effect parameter value of the target area. By adjusting each initial effect influencing parameter value of the target area, each adjusted effect influencing parameter value can be obtained. And according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file corresponding to the roughly adjusted visual image to obtain a finely adjusted visual image, wherein a user can click a determination button in an adjustment interface to store the finely adjusted visual image and delete the target visual image stored in the gallery. The embodiment of the present application is applied to an electronic device, and in some embodiments, the electronic device may be a mobile phone, a tablet Computer, a desktop Computer, a laptop Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a smart watch, and the like. In this embodiment, the structure of the electronic device may be as shown in fig. 9, and fig. 9 is a diagram illustrating a composition example of an electronic device according to an embodiment of the present application.
As shown in fig. 9, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a sensor module 140, keys 150, a motor 151, an indicator 152, a camera 153, a display 154, and the like. The sensor module 140 may include a pressure sensor 140A, a gyro sensor 140B, a distance sensor 140C, a proximity light sensor 140D, a fingerprint sensor 140E, a temperature sensor 140F, a touch sensor 140G, an ambient light sensor 140H, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
For example, in the embodiment of the present application, the original image file may be subjected to image signal processing by an image signal processor, so as to generate the target visual image. And when the target visual image is adjusted, according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file through the image signal processor to generate an adjusted visual image.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
For example, in the embodiment of the present application, an original image file may be stored in the memory, and when a target visual image associated with the original image file needs to be adjusted multiple times, the processor 110 may directly call the original image file from the memory, so as to process the original image file, and meanwhile, avoid repeatedly accessing the same original image file, thereby improving the efficiency of image adjustment.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 140G, the charger, the flash, the camera 153, etc. through different I2C bus interfaces, respectively. For example: in this embodiment, the processor 110 may be coupled to the touch sensor 140G through an I2C interface, so that the processor 110 and the touch sensor 140G communicate through an I2C bus interface to implement a touch function of the electronic device, and when a user clicks each interactive button, the electronic device may respond to the operation of the user to execute a corresponding instruction.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as a display 154, a camera 153, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In the embodiment of the application, the processor 110 and the camera 153 communicate through the CSI interface, so as to realize the photographing function of the electronic device. The processor 110 and the display screen 154 communicate via the DSI interface to implement the display function of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 153, the display screen 154, and the like. The GPIO interface may also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device, and may also be used to transmit data between the electronic device and a peripheral device.
It should be understood that the interface connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The electronic device implements display functionality via the GPU, display screen 154, and application processor, among other things. The GPU is a microprocessor for image processing, connected to the display screen 154 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 154 is used to display images, video, and the like. The display screen 154 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device may include 1 or N displays 154, N being a positive integer greater than 1.
A series of Graphical User Interfaces (GUIs) may be displayed on the display screen 154 of the electronic device, and these GUIs are the main screens of the electronic device. Generally, the size of the display 154 of the electronic device is fixed, and only limited controls can be displayed in the display 154 of the electronic device. A widget is a GUI element, which is a software component contained in an application program, controls all data processed by the application program and interactive operations related to the data, and a user can interact with the widget through direct manipulation (direct manipulation) to read or adjust information related to the application program. Generally, a control may include a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, widget, and the like.
For example, in the embodiment of the present application, the image interfaces that can be displayed on the display screen 154 include a photographing interface, a preview interface, an adjustment interface, and the like. The user can shoot by pressing the shooting button on the shooting interface, and can enter the adjusting interface by pressing the prompt button entering the adjusting interface on the preview interface.
The electronic device may implement a photographing function through the ISP, the camera 153, the video codec, the GPU, the display screen 154, the application processor, and the like.
The ISP is used to process the data fed back by the camera 153. For example, when a user takes a picture, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, an optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and converting into an image visible to the naked eye. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a photographing scene. In some embodiments, the ISP may be provided in the camera 153.
The camera 153 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device may include 1 or N cameras 153, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device is in frequency bin selection, the digital signal processor is used for performing fourier transform and the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device can play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor, which processes input information quickly by referring to a biological neural network structure, for example, by referring to a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent cognition of electronic equipment, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, in the embodiment of the present application, a file such as a target visual image is saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121.
The pressure sensor 140A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 140A may be disposed on display screen 154. The pressure sensor 140A can be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 140A, the capacitance between the electrodes changes. The electronics determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 154, the electronic apparatus detects the intensity of the touch operation based on the pressure sensor 140A. The electronic device may also calculate the position of the touch from the detection signal of the pressure sensor 140A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions.
For example: in the embodiment of the application, when a touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the camera application icon, the instruction for turning on the camera is executed. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the camera application icon, executing an instruction for opening the gallery.
The gyro sensor 140B may be used to determine the motion pose of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 140B. The gyro sensor 140B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 140B detects a shake angle of the electronic device, calculates a distance to be compensated for the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device through a reverse movement, thereby achieving anti-shake.
A distance sensor 140C for measuring distance. The electronic device may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device may utilize the distance sensor 140C to range to achieve fast focus.
The proximity light sensor 140D may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light to the outside through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device may determine that there are no objects near the electronic device.
The ambient light sensor 140H is used to sense the ambient light level. The electronic device may adaptively adjust the brightness of display screen 154 based on the perceived ambient light level. The ambient light sensor 140H can also be used to automatically adjust the white balance when taking a picture.
The fingerprint sensor 140E is used to capture a fingerprint. In the embodiment of the application, the electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, fingerprint photographing, fingerprint image adjustment and the like. The fingerprint photographing can mean that fingerprint verification is required when photographing is carried out, and photographing can be carried out after verification is passed. Similarly, fingerprint image adjustment can mean that fingerprint verification is required when image adjustment is carried out, and the target visual image can be adjusted through verification, so that the target visual image is prevented from being modified by other people, and the safety of image adjustment is improved.
The temperature sensor 140F is used to detect temperature. In some embodiments, the electronic device implements a temperature processing strategy using the temperature detected by the temperature sensor 140F. For example, when the temperature reported by the temperature sensor 140F exceeds a threshold, the electronic device performs a reduction in performance of a processor located near the temperature sensor 140F, so as to reduce power consumption and implement thermal protection.
The touch sensor 140G is also referred to as a "touch device". The touch sensor 140G may be disposed on the display screen 154, and the touch sensor 140G and the display screen 154 form a touch screen, which is also called a "touch screen". The touch sensor 140G is used to detect a touch operation applied thereto or nearby. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 154. In other embodiments, the touch sensor 140G may be disposed on a surface of the electronic device at a different location than the display screen 154.
The keys 150 include a power-on key, a volume key, a photographing key, and the like. The keys 150 may be mechanical keys. Or may be touch keys. The electronic device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device. For example, in the embodiment of the present application, the electronic device may receive an input of a photographing button, and implement a photographing function.
The motor 151 may generate a vibration cue. The motor 151 may be used for both an electric vibration prompt and a touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, etc.) may correspond to different vibration feedback effects. The motor 151 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 154. Different application scenarios (e.g., saving an image, deleting an image, previewing an image, etc.) may also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 152 may be an indicator light, and may be used to indicate a charging status, a change in power, or to indicate that an image has been saved, deleted, etc.
In addition, an operating system runs on the above components. For example, the iOS os developed by apple, the Android open source os developed by google, the Windows os developed by microsoft, and the like. A running application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of an electronic device.
Fig. 10 is a diagram illustrating a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 10, the application package may include a camera, gallery, WLAN, etc. application.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 10, the application framework layers may include a window manager, content provider, view system, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. In the present application, the data may include visual images, original image files, and the like.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a preview interface in the present application may include a view displaying text and a view displaying an image.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager to inform that an image has been saved or deleted, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver and a sensor driver.
Although the Android system is taken as an example in the embodiment of the present application for description, the basic principle is also applicable to electronic devices based on operating systems such as iOS and Windows.
Three embodiments of the image adjustment method are described below, from the first to the third embodiments, which correspond to the specific implementation of adjustment in the image adjustment scenes of the above scenes one to three, respectively.
The first embodiment is as follows:
the image adjusting method provided by the embodiment of the application is realized through the interaction of a user and a user interface displayed by equipment. After receiving an adjustment instruction of a target visual image from a user, the device calls an original image file associated with the target visual image so as to regenerate the visual image based on the original image file. According to the adjustment operation of the effect influence parameter value corresponding to the target visual image by the user, the adjusted effect influence parameter value can be obtained. And according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file to regenerate a visual image, wherein the regenerated visual image is the adjusted visual image. The original image file reserves most of image information, so that the complete photographing environment can be restored, no loss of information such as texture noise exists, the original image file related to the target visual image can be called in response to an adjusting instruction of a user on the target visual image, the original image file can be used as input, image signal processing can be performed on the original image file according to the adjusted effect influence parameter value, and the effect of the obtained adjusted visual image is improved.
Illustratively, a user takes a picture in a High Dynamic Range Imaging (HDR) scene to obtain a visual image, and when the user is not satisfied with the effect of the visual image and needs to increase the brightness of a dark area or restore an overexposed area, the visual image is used as a target visual image, and an original image file corresponding to the target visual image is subjected to image signal processing to obtain an adjusted visual image, and the adjusted visual image is used to replace the target visual image, so as to improve the presentation effect of the visual image. It should be noted that the method provided by the embodiment of the present application is not limited to the case of taking a picture in an HDR scene.
And in response to an adjustment instruction of a target visual image by a user, calling an original image file associated with the target visual image. The target visual image is an image obtained by processing an original image file through an image signal, the image signal processing process comprises image post-processing and compression processing, a large amount of image information can be lost in the process, and the adjustable range can be limited when parameters such as brightness, contrast and saturation are adjusted on the target visual image. The original image file retains image information such as original white balance, exposure parameters and the like, and the image information has a large adjusting and optimizing space during post-processing, namely the original image file has a large upper limit of image effect optimization. Therefore, in order to improve the effect of the adjusted visual image, when a user needs to adjust the target visual image, the original image file associated with the target visual image and the effect influence parameter value of the target visual image are called, so that the image signal processing flow can be performed on the original image file again on the basis of the original image file to generate a new visual image, and the new visual image is the adjusted visual image. The effect influence parameter value of the target visual image before being adjusted is used as an initial effect influence parameter value of the target visual image, and may refer to an average value of the effect influence parameter values corresponding to each pixel point in the target visual image before being adjusted, for example, an average value of brightness values, an average value of saturation values, an average value of contrast values, and the like corresponding to each pixel point. Taking the target visual image as an example of a JPEG-formatted image, compared with an original image file, the JPEG-formatted image is a compressed-formatted image, so that the stored detail color information is less, the original image file is equivalent to an unprocessed 'digital negative film', is a lossless-formatted image file and has a wider adjustment space, compared with the visual image obtained by processing the JPEG-formatted image, the adjusted visual image obtained by processing the original image file does not have data loss, and the visual image with better effect can be obtained conveniently.
Illustratively, the visual image may be obtained by:
the electronic equipment responds to a photographing instruction of a user to photograph to obtain an original image file, and an image signal processor in the electronic equipment performs image signal processing on the obtained original image file to obtain an initial effect influence parameter value and the visual image. The visual image is saved to a gallery while the original image file is associated with the visual image and saved in memory. The visual images are stored in the gallery, so that a user can conveniently check the stored visual images in the gallery, and meanwhile, if the visual images are unsatisfactory in effect, the visual images can be adjusted. The original image file associated with the visual image is saved in memory so that it can be recalled when adjustments to the visual image are required.
And adjusting the effect influence parameter value of the target visual image to obtain the adjusted effect influence parameter value. Specifically, a target area may be determined in the target visual image, and the effect influence parameter value corresponding to the target area is adjusted to obtain the adjusted effect influence parameter value corresponding to the target area. Specifically, the target area is an area that needs to be adjusted in the target visual image. For example, in fig. 3, a circular area is marked in the lower left corner of the target visual image 1102, and the user can determine an area that needs to be adjusted, that is, the target area, according to the user's own needs. In the embodiments of the present application, specific shapes, sizes, and positions of the target regions are not limited. For example, the target region may be a local region in the target visual image or may be the entire region of the target visual image. And taking the effect influence parameter value corresponding to the target area before adjustment as an initial effect influence parameter value corresponding to the target area, wherein the initial effect influence parameter value may be one or more of a brightness value, a contrast value, a saturation value or other parameter values influencing the visual image effect of the target area. Taking the example that the initial effect influence parameter corresponding to the target area is brightness, the target visual image is composed of a plurality of pixel points, each pixel point corresponds to a brightness value, and the average value of the brightness values of the pixel points in the target area is used as the brightness value of the target area, that is, the initial effect influence parameter value corresponding to the target area. By analogy, the contrast value, the saturation value and the like of the target area can be obtained.
Specifically, the embodiment of the present application does not specifically limit how to specifically implement the adjustment operation of the initial effect influence parameter value, for example, if the target visual image needs to be adjusted, a user may adjust each initial effect influence parameter value by dragging the slider corresponding to each effect influence parameter in the adjustment interface, as shown in fig. 4, the slider corresponding to the brightness in the graph is dragged to the right, so as to improve the brightness of the target area. Similarly, in a text box corresponding to each effect influence parameter in the adjustment interface, an expected effect influence parameter value, that is, an adjusted effect influence parameter value, may be input.
And according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file to obtain an adjusted visual image. Specifically, after obtaining the adjusted effect influence parameter value corresponding to the target area, the change degree of the initial Image Signal Processing (ISP) parameter value corresponding to the target area may be determined according to the change degree between the adjusted effect influence parameter value and the initial effect influence parameter value, so as to obtain the adjusted ISP parameter value. And processing the original image file according to the adjusted ISP parameter value, thereby generating an adjusted visual image.
The ISP parameter values may include white balance (AWB) values, focus parameter values, exposure parameter values, and the like. Taking brightness adjustment as an example for explanation, when adjusting the brightness of the target area, the brightness value change degree of the target area needs to be converted into the change degree of the AWB value corresponding to the target area, and the adjusted AWB value can be obtained according to the change degree of the AWB value and the initial AWB value corresponding to the target area. Therefore, the original image file can be processed according to the regulated AWB value, and the regulated visual image is obtained. For example, when an initial brightness value of a target area is 1 and an initial AWB value corresponding to the target area is 1, the target area is brightened, that is, the brightness value of the target area is increased, the brightness of the target area is increased by 10 times, so that the adjusted brightness value is 10, the change degree of the corresponding AWB value can be determined according to the multiple of the brightness value, when the change degree of the AWB value is the same as the change degree of the brightness value, the initial AWB value is correspondingly increased by 10 times, so that the adjusted AWB value is 10, and an original image file is processed according to the AWB value increased by 10, so that the target area is brightened, and an adjusted visual image is obtained; when the initial brightness value of the target area is 10 and the AWB value corresponding to the target area is 1, if the target area is dimmed, that is, the brightness value of the target area is reduced, the brightness of the target area is reduced by 10 times, so that the adjusted brightness value is 1, the adjusted AWB value is obtained by correspondingly reducing the initial AWB value by 10 times, and 0.1 is obtained, and the original image file is processed according to the adjusted AWB value reduced to 0.1, so as to reduce the brightness of the target area and obtain the adjusted visible image.
As shown in fig. 11a and fig. 11b, which are a flowchart of an image adjusting method in the prior art and a flowchart of an image adjusting method provided in an embodiment of the present application, respectively. The conventional image adjusting method is shown in fig. 11a, and the scheme is that only a visual image is saved after photographing, when the visual image needs to be adjusted, an adjusted effect parameter value is obtained by adjusting an effect parameter value corresponding to the visual image, the visual image is used as an input, a post-processing program is performed on the visual image according to the adjusted effect parameter value, and a library is updated after a satisfactory final visual image is obtained.
In the embodiment of the present application, as shown in fig. 11b, after the photo is taken, the original image file and the initial ISP parameter value are synchronously saved in the background while the visual image is saved. Entering a gallery, checking the visual image stored in the gallery, when the visual image needs to be adjusted, determining the visual image as a target visual image, adjusting an initial effect influence parameter value by a user to obtain an adjusted effect influence parameter value, further obtaining the change degree of the effect influence parameter value, determining the change degree of an ISP parameter value according to the change degree of the effect influence parameter value, obtaining the adjusted ISP parameter value according to the change degree of the ISP parameter value and the initial ISP parameter value, taking an original image file stored by a background as input, carrying out image signal processing on the original image file according to the adjusted ISP parameter value to regenerate the visual image, wherein the regenerated visual image is the adjusted visual image, the user can continuously adjust the adjusted visual image according to requirements until a visual image with a satisfactory effect is obtained, taking the visual image with the satisfactory effect as a final visual image, updating the gallery, and replacing the originally stored target visual image with the final visual image.
Compared with the existing image adjusting method, the original image file associated with the target visual image is stored, when the target visual image needs to be adjusted, the original image file corresponding to the target visual image can be called, the original image file with most of image information reserved serves as input, the image signal processing is carried out on the original image file again by using the adjusted effect influence parameter value, and the effect of the adjusted visual image can be improved.
Further, after obtaining the adjusted visual image, in response to a preview instruction of the user, a preview interface, such as that shown in fig. 2, may be entered, in which the adjusted visual image is presented to the user. If the effect of the user on the adjusted visual image is still unsatisfied, the original image file corresponding to the adjusted visual image can be continuously processed according to the method until the visual image which is satisfied by the user is obtained.
After the user obtains a satisfactory visual image, in response to a determination instruction of the user, the current visual image is saved and the pre-adjustment visual image saved in the gallery is deleted. And returning to the preview interface, wherein the adjusted visual image can be displayed in the preview interface.
Further, in response to a determination instruction of the user, while the current visual image is saved, it may be determined whether to delete the visual image before adjustment saved in the gallery according to a selection of the user. And returning to the preview interface, wherein the adjusted visual image can be displayed in the preview interface.
Further, in order to save storage space, after saving the adjusted visual image, the corresponding original image file may be deleted. Specifically, when saving the adjusted visual image, the user may choose to delete or not delete the corresponding original image file. Because the original image file occupies a certain memory, the user can select whether to delete the corresponding original image file after obtaining a satisfactory visual image. By deleting the original image file, the operating efficiency of the system can be improved to a certain extent.
The second embodiment:
different from the foregoing embodiment, in the image adjusting method provided in the embodiment of the present application, the effect influence parameter value may be automatically adjusted according to the selection of the user on different preset effect adjustment modes, so as to obtain the adjusted effect influence parameter value, and the called original image file is processed according to the adjusted effect influence parameter value obtained by automatic adjustment, so as to obtain the adjusted visual image. It should be noted that the same portions as those in the above embodiments are not described herein again.
After the adjustment instruction of the user enters the mode selection interface, the mode selection instruction of the user is responded, and one preset effect adjustment mode is determined from the plurality of preset effect adjustment modes to be used as the target mode. For the same target area, different adjusted effect influence parameter values can be determined according to different target modes.
Illustratively, as in the first embodiment, the target area may be a partial area of the target visual image, or may be the entire area of the target area. The target area is the entire area of the target visual image. The preset effect adjusting modes can comprise a portrait mode, a landscape mode, a food mode and the like, and one preset effect adjusting mode is selected from the plurality of preset effect adjusting modes to serve as a target mode, so that the effect influence parameter value can be automatically adjusted according to the target mode in the following process, and the adjusted effect influence parameter value is obtained. For example, when the portrait mode is selected, an original image file is called, and image signal processing is performed on the original image file according to the adjusted effect influence parameter value corresponding to the portrait mode, so as to obtain an adjusted visual image.
Similarly, after the adjusted visual image is obtained, in response to a preview instruction of a user, the adjusted visual image can be displayed on a terminal display interface, and the original image file can be processed for multiple times by the image adjusting method until the visual image satisfied by the user is obtained.
After the user obtains a satisfactory visual image, in response to a determination instruction of the user, the current visual image is saved and the pre-adjustment visual image saved in the gallery is deleted. And returning to a preview interface, wherein the adjusted visual image can be displayed in the preview interface.
Further, in response to a determination instruction of the user, while the current visual image is saved, it may be decided whether to delete the pre-adjustment target visual image saved in the gallery according to a selection of the user. And returning to a preview interface, and displaying the adjusted visual image in the preview interface.
Further, in order to save storage space, after saving the adjusted visual image, the corresponding original image file may be deleted. Specifically, the user may choose to delete or not delete the corresponding original image file when saving the adjusted visual image. Because the original image file occupies a certain memory, the user can select whether to delete the corresponding original image file after obtaining a satisfactory visual image. By deleting the original image file, the operating efficiency of the system can be improved to a certain extent.
To sum up, this application embodiment can be according to the selection of user to different effect adjustment modes of predetermineeing, can adjust the effect influence parameter value automatically, obtains the effect influence parameter value after adjusting, from this, handles the original image file of calling according to the effect influence parameter value after the adjustment that automatic adjustment obtained, obtains the visual image after adjusting, can be when improving the presentation effect of visual image for accommodation process convenient and fast more.
Example three:
the image adjusting method provided in the embodiment of the present application may combine the image adjusting methods provided in the first embodiment and the second embodiment, and a user may select the two image adjusting methods, which is specifically described below.
According to the embodiment of the application, the target adjusting mode can be determined according to the selection of the user on the adjusting mode on the selection interface. Wherein the adjustment mode includes a custom adjustment mode and an automatic adjustment mode. Specifically, the image adjustment method in the custom adjustment mode corresponds to the image adjustment method provided in the first embodiment, and the image adjustment method in the automatic adjustment mode corresponds to the image adjustment method provided in the second embodiment.
If the determined target adjustment mode is the user-defined adjustment mode, entering an adjustment interface corresponding to the user-defined adjustment mode, where a specific image adjustment method is the same as the image adjustment method in the first embodiment, and is not described herein again.
If the determined target adjustment mode is the automatic adjustment mode, entering a mode selection interface corresponding to the automatic adjustment mode, where a specific image adjustment method is the same as the image adjustment method in the second embodiment, and is not described herein again.
Further, in response to a user's automatic adjustment instruction, a mode selection interface is entered for coarse adjustment of the target visual image. Specifically, the target mode may be determined according to a selection of a user on a preset effect adjustment mode, the effect influence parameter value may be automatically adjusted according to the target mode to obtain an adjusted effect influence parameter value, and the image signal processing may be performed on the original image file according to the adjusted effect influence parameter value obtained by the automatic adjustment, so as to generate the coarsely adjusted visual image.
After the coarsely adjusted visual image is generated, the selection interface can be returned, the user can respond to the user-defined adjustment instruction and enter the adjustment interface corresponding to the user-defined adjustment mode, so that the user can further adjust the coarsely adjusted visual image to obtain a visual image with better effect. The specific implementation is the same as the method in the first embodiment, and is not described herein again.
In summary, the image adjusting method provided in the embodiment of the present application may determine the target adjusting mode according to the selection of the user on the adjusting mode, and obtain the visual image satisfied by the user according to the image adjusting method corresponding to the target adjusting mode, thereby providing various image adjusting modes for the user. Meanwhile, after the target visual image is coarsely adjusted, the visual image after coarse adjustment can be further finely adjusted, so that the effect of the adjusted visual image is improved.
The present embodiment also provides a computer-readable storage medium, which includes instructions that, when executed on an electronic device, cause the electronic device to execute the relevant method steps in the foregoing embodiments, so as to implement the method in the foregoing embodiments.
The present embodiment also provides an apparatus, which includes a processor and a memory, where the memory is used to store computer program code, and the computer program code includes computer instructions, and when the processor executes the computer instructions, the control apparatus executes the relevant method steps in the above embodiments to implement the method in the above embodiments. The device may be an integrated circuit IC or a system on a chip SOC. The integrated circuit can be a general integrated circuit, a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC).
In the several embodiments provided in this embodiment, it should be understood that the disclosed apparatus, storage medium, and method may be implemented in other ways.
In addition, each functional unit in the embodiments of the present embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present embodiment may substantially or partially contribute to the prior art, or all or part of the technical solutions may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments. And the aforementioned storage medium includes: various media that can store program code, such as flash memory, removable hard drive, read-only memory, random-access memory, magnetic or optical disk, etc.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of image adjustment, comprising:
responding to an adjustment instruction of a user on a target visual image, and calling an original image file associated with the target visual image;
responding to the adjustment operation of a user on a target visual image, adjusting the effect influence parameter value of the target visual image, and obtaining the adjusted effect influence parameter value;
and according to the adjusted effect influence parameter value, carrying out image signal processing on the original image file to obtain an adjusted visual image.
2. The method of claim 1, wherein said performing image signal processing on said original image file according to said adjusted effect impact parameter value to obtain an adjusted visual image comprises:
obtaining an adjusted image signal processing parameter value of the original image file according to the adjusted effect influence parameter value of the target visual image;
and according to the adjusted image signal processing parameter value of the original image file, carrying out image signal processing on the original image file to obtain an adjusted visual image.
3. The method of claim 2, wherein obtaining adjusted image signal processing parameter values for the original image file based on the adjusted effect impact parameter values for the target visual image comprises:
obtaining the change degree of the effect influence parameter value according to the adjusted effect influence parameter value of the target visual image;
determining the change degree of the image signal processing parameter value of the original image file according to the change degree of the effect influence parameter value;
and obtaining the adjusted image signal processing parameter value of the original image file according to the change degree of the image signal processing parameter value of the original image file.
4. The method of claim 1, wherein the adjusting the effect-affecting parameter value of the target visual image in response to the user's adjustment operation on the target visual image to obtain the adjusted effect-affecting parameter value comprises:
responding to a mode selection instruction of a user, and determining a target mode from preset effect adjustment modes;
and adjusting the effect influence parameter value of the target visual image according to the target mode to obtain the adjusted effect influence parameter value.
5. The method of claim 1, wherein before invoking the original image file associated with the target visual image in response to the adjustment instruction of the target visual image by the user, further comprising:
responding to a photographing instruction of a user to photograph to obtain an original image file;
associating the original image file with a target visual image, wherein the target visual image is obtained by carrying out image signal processing on the original image file;
and saving the associated original image file.
6. The method of claim 1, wherein the effect of the target visual image affects a parameter value, comprising: and the average value of the effect influence parameter values corresponding to each pixel point in the target visual image.
7. The method according to any one of claims 1 to 6, wherein after performing image signal processing on the original image file according to the adjusted effect influence parameter value to obtain an adjusted visual image, the method further comprises:
and replacing the stored target visual image with the adjusted visual image in response to a determination instruction of a user.
8. The method according to any one of claims 1 to 6, wherein after performing image signal processing on the original image file according to the adjusted effect influence parameter value to obtain an adjusted visual image, the method further comprises:
responding to the adjustment operation of the user on the adjusted visual image, adjusting the effect influence parameter value of the adjusted visual image, and obtaining an updated effect influence parameter value;
and according to the updated effect influence parameter value, carrying out image signal processing on the original image file to obtain an updated visual image.
9. A computer device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is adapted to perform the steps of a method of image adjustment according to any of claims 1-8, according to instructions in the program code.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of a method of image adjustment according to any one of claims 1-8.
CN202211507930.7A 2022-11-29 2022-11-29 Image adjustment method, device and storage medium Active CN115589539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211507930.7A CN115589539B (en) 2022-11-29 2022-11-29 Image adjustment method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211507930.7A CN115589539B (en) 2022-11-29 2022-11-29 Image adjustment method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115589539A true CN115589539A (en) 2023-01-10
CN115589539B CN115589539B (en) 2023-05-09

Family

ID=84783500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211507930.7A Active CN115589539B (en) 2022-11-29 2022-11-29 Image adjustment method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115589539B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119316A (en) * 2023-10-25 2023-11-24 荣耀终端有限公司 Image processing method, electronic device, and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636216A (en) * 2019-08-28 2019-12-31 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN111445383A (en) * 2020-03-20 2020-07-24 北京迈格威科技有限公司 Image parameter adjusting method, device and system
CN113014803A (en) * 2021-02-04 2021-06-22 维沃移动通信有限公司 Filter adding method and device and electronic equipment
CN113852756A (en) * 2021-09-03 2021-12-28 维沃移动通信(杭州)有限公司 Image acquisition method, device, equipment and storage medium
CN113992850A (en) * 2021-10-20 2022-01-28 上海闻泰电子科技有限公司 ISP-based image processing method and device, storage medium and camera equipment
WO2022052820A1 (en) * 2020-09-14 2022-03-17 华为技术有限公司 Data processing method, system, and apparatus
CN114640783A (en) * 2020-12-15 2022-06-17 华为技术有限公司 Photographing method and related equipment
CN115278069A (en) * 2022-07-22 2022-11-01 北京紫光展锐通信技术有限公司 Image processing method and device, computer readable storage medium and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636216A (en) * 2019-08-28 2019-12-31 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN111445383A (en) * 2020-03-20 2020-07-24 北京迈格威科技有限公司 Image parameter adjusting method, device and system
WO2022052820A1 (en) * 2020-09-14 2022-03-17 华为技术有限公司 Data processing method, system, and apparatus
CN114640783A (en) * 2020-12-15 2022-06-17 华为技术有限公司 Photographing method and related equipment
CN113014803A (en) * 2021-02-04 2021-06-22 维沃移动通信有限公司 Filter adding method and device and electronic equipment
CN113852756A (en) * 2021-09-03 2021-12-28 维沃移动通信(杭州)有限公司 Image acquisition method, device, equipment and storage medium
CN113992850A (en) * 2021-10-20 2022-01-28 上海闻泰电子科技有限公司 ISP-based image processing method and device, storage medium and camera equipment
CN115278069A (en) * 2022-07-22 2022-11-01 北京紫光展锐通信技术有限公司 Image processing method and device, computer readable storage medium and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119316A (en) * 2023-10-25 2023-11-24 荣耀终端有限公司 Image processing method, electronic device, and readable storage medium

Also Published As

Publication number Publication date
CN115589539B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN114205522B (en) Method for long-focus shooting and electronic equipment
US20230043815A1 (en) Image Processing Method and Electronic Device
CN113938602B (en) Image processing method, electronic device, chip and readable storage medium
US20230224574A1 (en) Photographing method and apparatus
WO2023093169A1 (en) Photographing method and electronic device
CN115589539B (en) Image adjustment method, device and storage medium
CN117201930B (en) Photographing method and electronic equipment
WO2021103919A1 (en) Composition recommendation method and electronic device
CN111193874B (en) Image display parameter adjusting method and mobile terminal
CN113781959B (en) Interface processing method and device
CN113891008B (en) Exposure intensity adjusting method and related equipment
CN113452969B (en) Image processing method and device
EP4262226A1 (en) Photographing method and related device
CN114245011B (en) Image processing method, user interface and electronic equipment
WO2023035868A1 (en) Photographing method and electronic device
CN112995539B (en) Mobile terminal and image processing method
CN116847194B (en) Focusing method and electronic equipment
CN115460343B (en) Image processing method, device and storage medium
CN116723418B (en) Photographing method and related device
US20230014272A1 (en) Image processing method and apparatus
CN117135268A (en) Shooting method and electronic equipment
CN117119316A (en) Image processing method, electronic device, and readable storage medium
CN117156293A (en) Photographing method and related device
CN116052236A (en) Face detection processing engine, shooting method and equipment related to face detection
CN117395495A (en) Image processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant