Image processing method, component, electronic device and storage medium

By introducing automatic and manual image processing controls into the image processing component to support switching between functions and modes, the problem of cumbersome operations in the existing technology is solved, and the user experience and image processing effect are improved.

CN111338545BActive Publication Date: 2024-09-17DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010113048.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-24
Publication Date
2024-09-17
Estimated Expiration
2040-09-17

AI Technical Summary

Technical Problem

In existing photo editing software, mode switching between different photo editing functions is cumbersome and reduces the user experience.

Method used

Design an image processing component that includes automatic image processing controls and manual image processing controls, supports function switching in automatic mode and manual mode, and functions switching between image editing functions, and operates through display controls and mode switching buttons. simplify.

Benefits of technology

It simplifies the operation steps, improves the user experience, increases the user's sense of control in automatic mode and image processing capabilities in manual mode, and is suitable for different user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111338545B
    Figure CN111338545B
Patent Text Reader

Abstract

The present application relates to an image processing method, component, electronic device and storage medium. The component includes: a display control for displaying an image to be edited on a first area of ​​a display area, or displaying a target image after the image to be edited is retouched under a retouching function; an automatic image processing control for responding to a first control instruction to enter an automatic mode capable of automatically retouching a preset area in the image to be edited or the target image according to a preset automatic retouching rule; a manual image processing control for responding to a second control instruction to enter a manual mode capable of selecting a region to be processed from the image to be edited or the target image based on a first touch operation, and manually retouching the region to be processed according to a preset manual retouching rule based at least on a first operation feature; wherein, in the automatic mode and / or manual mode, at least the function switching instruction can be responded to to switch between retouching functions. In this way, the operation is simplified and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to image processing technology, and in particular to an image processing method, component, electronic device and storage medium. Background Art

[0002] Existing image processing software, such as photo editing software, supports both automatic and manual photo editing. In addition, to meet user needs, it also provides a variety of effect-based photo editing functions, such as beauty photo editing, which includes skin smoothing, freckle and acne removal, and whitening.

[0003] However, existing photo editing software can only switch between manual mode and automatic mode under a single photo editing function. For example, if the user selects the skin refining function, the user can only switch between manual mode and automatic mode under the skin refining function. At this time, if the user switches to the freckle removal function in the automatic mode, the user needs to exit the skin refining function, enter the freckle removal function, and then select the automatic mode. Obviously, this operation step is cumbersome and reduces the user experience. Summary of the invention

[0004] To solve the above problems, the present invention proposes an image processing method, component, electronic device and storage medium, which can switch between photo editing functions in automatic mode or manual mode. In this way, the operation is simplified and the user experience is improved while meeting user needs.

[0005] In a first aspect, an embodiment of the present application provides an image processing component, which is applied to an electronic device and can realize at least two image editing functions; the image processing component at least includes:

[0006] A display control, used for displaying the image to be edited in the first area of ​​the display area, or displaying a target image after the image to be edited is retouched under the image retouching function;

[0007] An automatic image processing control, used for responding to the first control instruction to enter an automatic mode capable of automatically retouching a preset area in an image to be edited or a target image according to a preset automatic retouching rule;

[0008] A manual image processing control, for responding to a second control instruction to enter a manual mode capable of selecting a region to be processed from an image to be edited or a target image based on a first touch operation, and performing manual image retouching processing on the region to be processed according to a preset manual image retouching rule based at least on a first operation feature of the first touch operation;

[0009] Wherein, in the automatic mode and / or manual mode, the electronic device can at least respond to a function switching instruction to switch between the photo editing functions.

[0010] Here, since the present application scheme is provided with an automatic image processing control, which has an automatic mode that can perform automatic photo editing, and is also provided with a manual image processing control, which has a manual mode that can support user manual photo editing, and the automatic image processing control and the manual image processing control do not limit the photo editing function, that is, the photo editing function supports mode switching between automatic mode and manual mode, and at the same time, in automatic mode or manual mode, it can also respond to function switching instructions to switch between photo editing functions. Therefore, compared with the existing method that only supports switching between manual mode and automatic mode in photo editing mode, the operation steps of the present application scheme are simplified, and the user experience is improved on the basis of meeting user needs.

[0011] In one embodiment, the automatic image processing control is further used to detect a second touch operation in automatic mode, determine an automatic photo editing strength feature based on a second operation feature of the second touch operation, and determine an automatic photo editing parameter that at least matches the automatic photo editing strength feature from preset automatic parameters included in preset automatic photo editing rules to perform automatic photo editing on a preset area.

[0012] Here, in the automatic mode, since the automatic photo editing intensity characteristics can be determined based on user operations, such as the second operation characteristics of the second touch operation, and then the automatic photo editing parameters can be determined, the user's sense of control and control in the automatic mode is increased, laying the foundation for meeting user needs and improving user experience.

[0013] In one embodiment, the automatic image processing control is also used to determine the current corresponding first target photo retouching function in the automatic mode, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching on the preset area.

[0014] Here, in the automatic mode, since the automatic photo retouching strength characteristics can be determined based on user operations, such as the second operation characteristics of the second touch operation, and the automatic photo retouching parameters can be determined based on the automatic photo retouching strength characteristics and the current photo retouching function, such as the first target photo retouching function, the user's sense of control and control in the automatic mode is increased, which lays a foundation for meeting user needs and improving user experience. At the same time, the automated image processing capabilities are refined, which lays a foundation for improving the automated image processing effects and thus improving user experience.

[0015] In one embodiment, the manual image processing control is also used to determine the current corresponding second target photo retouching function in manual mode, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

[0016] Here, in manual mode, since manual photo editing parameters can be determined based on photo editing functions, such as the second target photo editing function, and then manual photo editing is performed on the area to be processed selected by the first touch operation, the image processing capabilities in manual mode are refined, laying a foundation for improving image processing effects and thus improving user experience.

[0017] In one embodiment, the automatic image processing control is also used to display a photo editing strength selection area corresponding to the photo editing function in other areas of the display area except the first area, so as to use the photo editing strength selection area to determine the automatic photo editing strength feature corresponding to the second operation feature; wherein the second touch operation is a touch operation performed on the photo editing strength selection area.

[0018] Here, since the photo editing strength selection area is used to instruct the user to select the photo editing strength, the operation is simple and easy to understand, so the application scenarios are further expanded. For example, users who are not proficient in image processing technology can also use it, which meets the needs of different users and improves the user experience.

[0019] In one embodiment, a prompt mark for characterizing the automatic photo editing strength characteristics is provided on the photo editing strength selection area, wherein when the photo editing function is switched from manual mode to automatic mode, or when the photo editing function is entered, the prompt mark on the photo editing strength selection area of ​​the photo editing function is located at the initial position.

[0020] In one embodiment, the display control is also used to display a mode switching button in other areas of the display area except the first area, and generate a mode switching instruction in response to a second touch operation performed on the mode switching button to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode.

[0021] Here, by setting a mode switching button in the display area, it is convenient for users to switch between automatic mode and manual mode. Moreover, the mode switching button can be used to switch between different photo editing functions, and the switching operation is simple, thus laying the foundation for improving user experience.

[0022] In one embodiment, the display control is further used to display a photo editing function interface in other areas of the display area except the first area, and display function buttons corresponding to the photo editing functions in the photo editing function interface;

[0023] Among them, the display control is also capable of generating a function switching instruction in response to a third touch operation implemented on the target function key, and performing function switching between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or, entering the photo editing function corresponding to the target function key in response to the third touch operation implemented on the target function key.

[0024] Here, the function buttons corresponding to the photo editing functions are displayed by setting up the photo editing function interface. For example, the photo editing functions correspond to the function buttons one by one, and then the function switching between the photo editing functions can be achieved by using the displayed function buttons, and the switching operation is simple, thus laying the foundation for improving the user experience.

[0025] In one embodiment, the display control is further used for:

[0026] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or

[0027] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

[0028] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0029] a storage component for storing images; and

[0030] An image processing component connected to the storage component, wherein the image processing component is the image processing component described above.

[0031] In a third aspect, an embodiment of the present application provides an image processing method, which can realize at least two image retouching functions; wherein, after displaying an image to be edited on a first area of ​​a display area of ​​an electronic device, or displaying a target image after the image to be edited is retouched under the image retouching function, the method includes:

[0032] When the electronic device is in automatic mode, respond to a function switching instruction and switch between image editing functions; wherein, in the automatic mode, the electronic device can automatically retouch a preset area in the image to be edited or the target image according to a preset automatic image editing rule; and / or,

[0033] When the electronic device is in manual mode, it responds to function switching instructions and switches between photo editing functions; wherein, in the manual mode, it is possible to select a region to be processed from an image to be edited or a target image based on a first touch operation, and to perform manual photo editing on the region to be processed according to preset manual photo editing rules based at least on a first operation feature of the first touch operation.

[0034] In one embodiment, the method further comprises:

[0035] When the electronic device is in automatic mode, a second touch operation is detected, an automatic photo retouching intensity feature is determined based on a second operation feature of the second touch operation, and automatic photo retouching parameters that at least match the automatic photo retouching intensity feature are determined from preset automatic parameters included in preset automatic photo retouching rules to perform automatic photo retouching on a preset area.

[0036] In one embodiment, determining an automatic image retouching parameter that at least matches the automatic image retouching intensity feature from the preset automatic parameters included in the preset automatic image retouching rule to perform automatic image retouching processing on the preset area includes:

[0037] Determine the first target photo retouching function currently corresponding, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching processing on the preset area.

[0038] In one embodiment, the method further comprises:

[0039] When the electronic device is in manual mode, determine the current corresponding second target photo retouching function, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

[0040] In one embodiment, the method further comprises:

[0041] A second touch operation performed on a photo editing strength selection area corresponding to a photo editing function is detected, and an automatic photo editing strength feature is determined based on a second operation feature of the second touch operation; wherein the photo editing strength selection area corresponding to the photo editing function is displayed on other areas of the display area except the first area.

[0042] In one embodiment, a prompt mark for characterizing the automatic photo editing strength characteristics is provided on the photo editing strength selection area, wherein when the photo editing function is switched from manual mode to automatic mode, or when the photo editing function is entered, the prompt mark on the photo editing strength selection area of ​​the photo editing function is located at the initial position.

[0043] In one embodiment, the method further comprises:

[0044] In response to a second touch operation performed on a mode switch button, a mode switch instruction is generated to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode; wherein the mode switch button is displayed in areas other than the first area in the display area.

[0045] In one embodiment, a photo editing function interface is displayed in other areas of the display area except the first area, and function buttons corresponding to the photo editing functions are displayed in the photo editing function interface; the method further includes:

[0046] In response to a third touch operation performed on a target function key, a function switching instruction is generated, and function switching is performed between photo editing functions to switch to the target photo editing function selected by the third touch operation; or, in response to a third touch operation performed on a target function key, the photo editing function corresponding to the target function key is entered.

[0047] In one embodiment, the method further comprises:

[0048] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or

[0049] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

[0050] In a fourth aspect, an embodiment of the present application provides an electronic device capable of implementing at least two photo editing functions; the electronic device includes:

[0051] A display unit, used for displaying the image to be edited on a first area of ​​the display area, or displaying a target image after the image to be edited is retouched under the image retouching function;

[0052] A processing unit, used to respond to a function switching instruction and switch between image editing functions when the electronic device is in automatic mode; wherein, in the automatic mode, the electronic device can automatically perform image editing processing on a preset area in the image to be edited or the target image according to a preset automatic image editing rule; and / or,

[0053] When the electronic device is in manual mode, it responds to function switching instructions and switches between photo editing functions; wherein, in the manual mode, it is possible to select a region to be processed from an image to be edited or a target image based on a first touch operation, and to perform manual photo editing on the region to be processed according to preset manual photo editing rules based at least on a first operation feature of the first touch operation.

[0054] In one embodiment, the processing unit is further configured to:

[0055] When the electronic device is in automatic mode, a second touch operation is detected, an automatic photo retouching intensity feature is determined based on a second operation feature of the second touch operation, and automatic photo retouching parameters that at least match the automatic photo retouching intensity feature are determined from preset automatic parameters included in preset automatic photo retouching rules to perform automatic photo retouching on a preset area.

[0056] In one embodiment, the processing unit is further configured to:

[0057] Determine the first target photo retouching function currently corresponding, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching processing on the preset area.

[0058] In one embodiment, the processing unit is further configured to:

[0059] When the electronic device is in manual mode, determine the current corresponding second target photo retouching function, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

[0060] In one embodiment, the display unit is further configured to display a photo retouching intensity selection area corresponding to the photo retouching function in other areas of the display area except the first area;

[0061] The processing unit is further used to detect a second touch operation performed on a photo editing strength selection area corresponding to the photo editing function, and determine an automatic photo editing strength feature based on a second operation feature of the second touch operation.

[0062] In one embodiment, the display unit is further used to display the mode switching button in other areas of the display area except the first area;

[0063] The processing unit is further configured to generate a mode switching instruction in response to a second touch operation performed on the mode switching button, so as to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode.

[0064] In one embodiment, the display unit is further used to display a photo editing function interface in other areas of the display area except the first area, and display function buttons corresponding to the photo editing functions in the photo editing function interface;

[0065] The processing unit is also used to: generate a function switching instruction in response to a third touch operation performed on a target function key, and perform function switching between photo editing functions to switch to the target photo editing function selected by the third touch operation; or, enter the photo editing function corresponding to the target function key in response to the third touch operation performed on the target function key.

[0066] In one embodiment, the processing unit is further configured to:

[0067] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or

[0068] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

[0069] In a fifth aspect, an embodiment of the present application provides an electronic device, including:

[0070] one or more processors;

[0071] a memory communicatively coupled to the one or more processors;

[0072] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0073] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method described above when executed by a processor.

[0074] In this way, since the present application scheme is provided with an automatic image processing control, which has an automatic mode that can perform automatic photo editing, and is also provided with a manual image processing control, which has a manual mode that can support user manual photo editing, and the automatic image processing control and the manual image processing control do not limit the photo editing function, that is, the photo editing function is supported to switch between the automatic mode and the manual mode. At the same time, in the automatic mode or the manual mode, it can also respond to the function switching instruction to switch between the photo editing functions. Therefore, compared with the existing method that only supports the switching between the manual mode and the automatic mode in the photo editing mode, the operation steps of the present application scheme are simplified, and the user experience is improved on the basis of meeting user needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 is a schematic diagram of the structure of an image processing component according to an embodiment of the present invention;

[0076] Figure 2 The interface diagram of the image processing component in a specific example of the embodiment of the present application is shown in FIG. Figure 1 ;

[0077] Figure 3 The interface diagram of the image processing component in a specific example of the embodiment of the present application is shown in FIG. Figure 2 ;

[0078] Figure 4 The interface diagram of the image processing component in a specific example of the embodiment of the present application is shown in FIG. Figure 3 ;

[0079] Figure 5 Schematic diagram of the implementation process of the image processing method according to the embodiment of the present invention;

[0080] Figure 6 A schematic diagram of the structure of a logic unit of an electronic device according to an embodiment of the present invention;

[0081] Figure 7 The figure is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0083] In some processes described in the specification and claims of this application and the above-mentioned drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel.

[0084] The present application embodiment provides an image processing component, which is applied to an electronic device and can realize at least two image editing functions; Figures 1 to 4 The present application scheme is described in detail. Specifically, the image processing component at least includes:

[0085] A display control, used for displaying the image to be edited in the first area of ​​the display area, or displaying a target image after the image to be edited is retouched under the image retouching function;

[0086] An automatic image processing control, used for responding to the first control instruction to enter an automatic mode capable of automatically retouching a preset area in an image to be edited or a target image according to a preset automatic retouching rule;

[0087] A manual image processing control, for responding to a second control instruction to enter a manual mode capable of selecting a region to be processed from a to-be-edited image or a target image based on a first touch operation, and performing manual image retouching processing on the region to be processed according to a preset manual image retouching rule based at least on a first operation feature of the first touch operation (such as touch intensity, or the number of clicks within a preset time);

[0088] Among them, in the automatic mode and / or manual mode, the electronic device can at least respond to the function switching instruction to switch between the photo editing functions. That is to say, in the automatic mode, the function can be switched between the photo editing functions, and in the manual mode, the function can also be switched between the photo editing functions. In this way, compared with the existing method of supporting the switching between the manual mode and the automatic mode only in the photo editing mode, the operation steps of the present application scheme are simplified and flexible, and the user experience is improved on the basis of meeting the user needs.

[0089] In a specific example, in order to facilitate the user to freely switch between the automatic mode and the manual mode during the photo editing process, such as Figure 2 As shown, the display control is also used to display a mode switching button in other areas of the display area except the first area, and generate a mode switching instruction in response to a second touch operation (such as a click operation) performed on the mode switching button, switching from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode. That is to say, if the current mode is in the automatic mode, at this time, after clicking the operation mode switching button, a mode switching instruction will be generated to switch the mode to the manual mode; correspondingly, if the current mode is in the manual mode, at this time, after clicking the operation mode switching button, a mode switching instruction will be generated to switch the mode to the automatic mode; that is, the mode switching button can be used to switch between the manual mode and the automatic mode; of course, in actual applications, such as Figure 3As shown, in order to prompt the user, when in manual mode, the mode switch button can display a prompt message prompting to enter automatic mode, such as "Go to automatic" to prompt the user to switch modes; similarly, Figure 4 As shown, when in automatic mode, the mode switch button can display prompt information to enter manual mode, such as "Go to Manual" to prompt the user to switch modes.

[0090] In another specific example, in order to meet the user's need for photo editing, the photo editing function interface can also be used to display supported photo editing functions, specifically, Figure 2 As shown, the display control is further used to display a photo editing function interface in other areas of the display area except the first area, and to display function buttons corresponding to the photo editing functions in the photo editing function interface;

[0091] Among them, the display control is also capable of generating a function switching instruction in response to a third touch operation (for example, a click operation) implemented on a target function button (a function button corresponding to a certain photo editing function on the photo editing function interface), and performing function switching between the photo editing functions to switch to the target photo editing function selected by the third touch operation; for example, the photo editing function interface displays a first function button corresponding to a first photo editing function and a second function button corresponding to a second photo editing function, and the electronic device is currently in the first photo editing function. At this time, if the user clicks the second function button corresponding to the second photo editing function, a function switching instruction is generated and switches to the second photo editing function selected by the click operation. In this way, the function buttons set in the photo editing function interface are used to achieve switching between functions. Alternatively, the display control can also respond to a third touch operation performed on the target function key to enter the photo editing function corresponding to the target function key; for example, the photo editing function interface displays a first function key corresponding to a first photo editing function and a second function key corresponding to a second photo editing function, and the electronic device is not currently in any photo editing function, such as when the image processing component is just started. At this time, after clicking the second function key corresponding to the second photo editing function, the second photo editing function corresponding to the click operation is directly entered. In summary, the image to be edited or the target image can be edited under the target photo editing function selected by the third touch operation to meet the user's needs for different photo editing functions.

[0092] Here, in a specific example, Figure 2 As shown, in the display interface, the other areas except the first area display a photo editing function interface including function buttons and a mode switching button. At this time, the display control is also used for:

[0093] In the currently corresponding automatic mode or manual mode, a function switching instruction is generated in response to the third touch operation implemented on the target function key, and function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; that is, whether in automatic mode or manual mode, the electronic device can realize function switching between the photo editing functions.

[0094] Alternatively, it is also used to enter the photo editing function corresponding to the target function key in response to the third touch operation performed on the target function key in the currently corresponding automatic mode or manual mode. That is, whether in the automatic mode or the manual mode, the selected photo editing function can be directly entered in the initial state.

[0095] In actual applications, the electronic device can also set the initial state. For example, after starting the image processing component, it enters the automatic mode by default. In this way, in the automatic mode, the user can click the required photo editing function through the photo editing function interface. At this time, after entering the photo editing function, the default is also automatic mode. If you want to switch to manual mode, you can do so through the mode switching button. Of course, the initial state can also be set in other ways, and the embodiments of the present application are not limited to this.

[0096] Furthermore, in actual applications, the number of function buttons in the photo editing function interface, that is, the number of photo editing functions, can be set according to actual needs, and the embodiments of the present application do not limit this.

[0097] In a specific embodiment, the automatic image processing control is further used to detect a second touch operation in the automatic mode, determine the automatic image retouching strength feature based on the second operation feature of the second touch operation, and determine the automatic image retouching parameter that at least matches the automatic image retouching strength feature from the preset automatic parameters included in the preset automatic image retouching rules to perform automatic image retouching on the preset area. That is to say, even in the automatic mode, the user can select the automatic image retouching strength feature through touch operation; further, in another specific example, the image retouching strength feature can also be associated with the current image retouching function, for example, the automatic image processing control is also used to determine the current corresponding first target image retouching function in the automatic mode, and determine the automatic image retouching parameter that matches the automatic image retouching strength feature and the first target image retouching function from the preset automatic parameters included in the preset automatic image retouching rules to perform automatic image retouching on the preset area. At this time, the automatic image retouching strength feature is not only associated with the user's touch operation, but also with the current image retouching function, that is, the first target image retouching function.

[0098] Here, in order to facilitate the user to select the photo editing strength in the automatic mode, a photo editing strength selection area can also be set. Specifically, Figure 3As shown, the automatic image processing control is further used to display a retouching intensity selection area corresponding to the retouching function in other areas of the display area except the first area, so as to use the retouching intensity selection area to determine the automatic retouching intensity feature corresponding to the second operation feature (such as a moving track, etc.); wherein the second touch operation is a touch operation performed in the retouching intensity selection area. In other words, the automatic retouching intensity feature can be confirmed by the operation feature of the touch operation performed in the retouching intensity selection area.

[0099] Here, in order to facilitate image processing and parameter setting, a prompt mark for representing the automatic photo retouching strength feature is set on the photo retouching strength selection area. Here, when the photo retouching function is switched from manual mode to automatic mode, or when the photo retouching function is entered, the prompt mark on the photo retouching strength selection area of ​​the photo retouching function is located at the initial position, that is, the position of the prompt mark in the photo retouching strength selection area can indicate the automatic photo retouching strength feature. For example, Figure 4 As shown, the photo retouching intensity selection area can be specifically a sliding bar. At this time, the initial position is set at the leftmost end of the sliding bar. The user's touch operation can control the prompt mark to move from the initial position to the first position. At this time, the automatic photo retouching intensity feature can be determined based on the distance between the initial position and the first position.

[0100] In another specific example, the manual image processing control is also used to determine the second target image retouching function currently corresponding in the manual mode, and determine the manual image retouching parameters that at least match the second target image retouching function currently corresponding from the preset manual parameters included in the preset manual image retouching rules, and perform manual image retouching processing on the area to be processed selected based on the first touch operation. That is to say, in the manual mode, the manual image retouching parameters can specifically match the current image retouching function, and of course, in actual applications, they can also be related to the operation intensity of the user's touch operation, and this application does not limit this.

[0101] In this way, since the present application scheme is provided with an automatic image processing control, which has an automatic mode that can perform automatic photo editing, and is also provided with a manual image processing control, which has a manual mode that can support user manual photo editing, and the automatic image processing control and the manual image processing control do not limit the photo editing function, that is, the photo editing function is supported to switch between the automatic mode and the manual mode. At the same time, in the automatic mode or the manual mode, it can also respond to the function switching instruction to switch between the photo editing functions. Therefore, compared with the existing method that only supports the switching between the manual mode and the automatic mode in the photo editing mode, the operation steps of the present application scheme are simplified, and the user experience is improved on the basis of meeting user needs.

[0102] The following is a further detailed description of the embodiments of the present application in combination with specific application scenarios. Specifically, the image processing component supports three image retouching functions, namely, skin refining function, freckle and acne removal function, and whitening function. In this case, the following scenarios may exist in actual applications:

[0103] Scenario 1:

[0104] Start the image processing component, select the skin smoothing function, and enter the skin smoothing function. The default retouching mode is automatic mode, that is, automatic retouching is performed under the skin smoothing function. At this time, you can switch functions by clicking other function buttons, and the switched functions are also retouched in automatic mode. For example, click the whitening function to automatically perform photo retouching under the whitening function.

[0105] Or, click the mode switch button to switch the mode. Figure 4 As shown, click Go to Manual to switch to manual mode. At this time, manual photo editing is performed under the skin smoothing function. Then, you can click other function buttons to switch functions. At this time, the switched function will perform photo editing in manual mode.

[0106] Scenario 2:

[0107] The image processing component is started and enters the automatic mode by default, but the image editing function is not determined. At this time, the user clicks Figure 4 Go to manual mode as shown, switch to manual mode, and then click the skin smoothing function to enter the skin smoothing function, that is, perform manual photo editing under the skin smoothing function. Further, similar to scenario 1, at this time, you can also use other function buttons to switch functions, or click the mode switch button to switch modes.

[0108] Based on this, the present application scheme can switch between automatic mode and manual mode in any photo editing function, and can switch between any photo editing function in automatic mode or manual mode. In this way, user operations are simplified and user experience is improved while meeting user needs.

[0109] An embodiment of the present application also provides an electronic device, comprising at least: a storage component for storing images; and an image processing component connected to the storage component; wherein the image processing component is applied to the electronic device and can realize at least two photo editing functions; the image processing component is the image processing component described above.

[0110] The embodiment of the present application also provides an image processing method, which can realize at least two image retouching functions; wherein, after displaying the image to be edited on the first area of ​​the display area of ​​the electronic device, or displaying the target image after the image to be edited is retouched under the image retouching function, such as Figure 5 As shown, the method includes:

[0111] Step 501: When the electronic device is in automatic mode, respond to a function switching instruction and switch between image editing functions; wherein, in the automatic mode, the electronic device can automatically retouch a preset area in the image to be edited or the target image according to a preset automatic image editing rule; and / or,

[0112] Step 502: When the electronic device is in manual mode, respond to a function switching instruction and switch between photo editing functions; wherein, in the manual mode, it is possible to select a region to be processed from an image to be edited or a target image based on a first touch operation, and to perform manual photo editing on the region to be processed according to preset manual photo editing rules based at least on a first operation feature of the first touch operation.

[0113] That is to say, in automatic mode, it is possible to switch between the photo editing functions, and in manual mode, it is also possible to switch between the photo editing functions. In this way, compared with the existing method of only supporting switching between manual mode and automatic mode in photo editing mode, the operation steps of the present application are simplified and flexible, and the user experience is improved on the basis of meeting user needs.

[0114] Here, it should be noted that, in actual applications, the execution order between step 501 and step 502 is not limited, and step 501 and step 502 can be understood as existing in parallel, that is, in a specific scenario, only step 501 can be executed, and in another scenario, only step 502 can be executed. Of course, there is also a scenario in which both step 501 and step 502 are executed, but the execution order of the two is not limited, that is, step 501 is executed first, and then step 502 is executed, that is, first enter the automatic mode for function switching, and then switch to the manual mode for function switching; or, step 502 is executed first, and then step 501 is executed, that is, first enter the manual mode for function switching, and then switch to the automatic mode for function switching. The execution order is related to the user's operating habits or photo editing habits, and this application does not impose any restrictions on this.

[0115] In one embodiment, the method further comprises:

[0116] When the electronic device is in automatic mode, a second touch operation is detected, an automatic photo retouching intensity feature is determined based on a second operation feature of the second touch operation, and automatic photo retouching parameters that at least match the automatic photo retouching intensity feature are determined from preset automatic parameters included in preset automatic photo retouching rules to perform automatic photo retouching on a preset area.

[0117] In one embodiment, determining an automatic image retouching parameter that at least matches the automatic image retouching intensity feature from the preset automatic parameters included in the preset automatic image retouching rule to perform automatic image retouching processing on the preset area includes:

[0118] Determine the first target photo retouching function currently corresponding, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching processing on the preset area.

[0119] In one embodiment, the method further comprises:

[0120] When the electronic device is in manual mode, determine the current corresponding second target photo retouching function, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

[0121] In one embodiment, the method further comprises:

[0122] A second touch operation performed on a photo editing strength selection area corresponding to a photo editing function is detected, and an automatic photo editing strength feature is determined based on a second operation feature of the second touch operation; wherein the photo editing strength selection area corresponding to the photo editing function is displayed on other areas of the display area except the first area.

[0123] In one embodiment, a prompt mark for characterizing the automatic photo editing strength characteristics is provided on the photo editing strength selection area, wherein when the photo editing function is switched from manual mode to automatic mode, or when the photo editing function is entered, the prompt mark on the photo editing strength selection area of ​​the photo editing function is located at the initial position.

[0124] In one embodiment, the method further comprises:

[0125] In response to a second touch operation performed on a mode switch button, a mode switch instruction is generated to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode; wherein the mode switch button is displayed in areas other than the first area in the display area.

[0126] In one embodiment, a photo editing function interface is displayed in other areas of the display area except the first area, and function buttons corresponding to the photo editing functions are displayed in the photo editing function interface; the method further includes:

[0127] In response to a third touch operation performed on a target function key, a function switching instruction is generated, and function switching is performed between photo editing functions to switch to the target photo editing function selected by the third touch operation; or, in response to a third touch operation performed on a target function key, the photo editing function corresponding to the target function key is entered.

[0128] In one embodiment, the method further comprises:

[0129] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or

[0130] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

[0131] It should be noted that the description of the above method embodiment items is similar to the above image processing component description, and has the same beneficial effects as the image processing component embodiment, so it is not repeated here. For technical details not disclosed in the method embodiment of the present invention, those skilled in the art should refer to the description of the image processing component embodiment of the present invention for understanding, and in order to save space, it is not repeated here.

[0132] The present application also provides an electronic device capable of implementing at least two image editing functions; Figure 6 As shown, the electronic device includes:

[0133] The display unit 61 is used to display the image to be edited on the first area of ​​the display area, or to display the target image after the image to be edited is retouched under the image retouching function;

[0134] The processing unit 62 is used to respond to the function switching instruction and switch between the image editing functions when the electronic device is in the automatic mode; wherein, in the automatic mode, the electronic device can automatically retouch the preset area in the image to be edited or the target image according to the preset automatic image retouching rules; and / or,

[0135] When the electronic device is in manual mode, it responds to function switching instructions and switches between photo editing functions; wherein, in the manual mode, it is possible to select a region to be processed from an image to be edited or a target image based on a first touch operation, and to perform manual photo editing on the region to be processed according to preset manual photo editing rules based at least on a first operation feature of the first touch operation.

[0136] In one embodiment, the processing unit 62 is further configured to:

[0137] When the electronic device is in automatic mode, a second touch operation is detected, an automatic photo retouching intensity feature is determined based on a second operation feature of the second touch operation, and automatic photo retouching parameters that at least match the automatic photo retouching intensity feature are determined from preset automatic parameters included in preset automatic photo retouching rules to perform automatic photo retouching on a preset area.

[0138] In one embodiment, the processing unit 62 is further configured to:

[0139] Determine the first target photo retouching function currently corresponding, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching processing on the preset area.

[0140] In one embodiment, the processing unit 62 is further configured to:

[0141] When the electronic device is in manual mode, determine the current corresponding second target photo retouching function, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

[0142] In one embodiment, the display unit 61 is further configured to display a photo retouching intensity selection area corresponding to the photo retouching function in other areas of the display area except the first area;

[0143] The processing unit 62 is further configured to detect a second touch operation performed on a photo editing strength selection area corresponding to the photo editing function, and determine an automatic photo editing strength feature based on a second operation feature of the second touch operation.

[0144] In one embodiment, the display unit 61 is further used to display the mode switching button in other areas of the display area except the first area;

[0145] The processing unit 62 is further configured to generate a mode switching instruction in response to a second touch operation performed on the mode switching button, so as to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode.

[0146] In one embodiment, the display unit 61 is further used to display a photo editing function interface in other areas of the display area except the first area, and display function buttons corresponding to the photo editing functions in the photo editing function interface;

[0147] The processing unit 62 is further used to: generate a function switching instruction in response to a third touch operation performed on a target function key, and perform function switching between photo editing functions to switch to the target photo editing function selected by the third touch operation; or, enter the photo editing function corresponding to the target function key in response to the third touch operation performed on the target function key.

[0148] In one embodiment, the processing unit 62 is further configured to:

[0149] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or

[0150] In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

[0151] It should be noted here that the description of the above electronic device embodiment is similar to the above method description and has the same beneficial effects as the method embodiment, so it is not repeated here. For technical details not disclosed in the electronic device embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention for understanding, and in order to save space, it is not repeated here.

[0152] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a memory communicatively connected to the one or more processors; one or more applications; wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-described method.

[0153] In a specific example, the electronic device described in the embodiment of the present application may be specifically as follows: Figure 7 In the structure shown, the electronic device at least includes a processor 71, a storage medium 72 and at least one external communication interface 73; the processor 71, the storage medium 72 and the external communication interface 73 are all connected via a bus 74. The processor 71 can be an electronic component with processing functions such as a microprocessor, a central processing unit, a digital signal processor or a programmable logic array. The storage medium stores a computer executable code, and the computer executable code can execute the method described in any of the above embodiments. In practical applications, the display unit 61 and the processing unit 62 can be implemented by the processor 71. Alternatively, the display control, the automatic image processing control and the manual image processing control can all be implemented by the processor 71.

[0154] The embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the above-described method when executed by a processor.

[0155] Here, a computer-readable storage medium may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, a computer-readable storage medium may even be paper or other suitable medium on which the program may be printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0156] It should be understood that a person skilled in the art can understand that all or part of the steps carried out in the method of the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0157] In addition, each functional component in each embodiment of the present invention may be integrated into a processing module, or each component may exist physically separately, or two or more components may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.

[0158] The embodiments described above are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

Claims

1. An image processing component, It is characterized in that Applied to electronic devices, it can realize at least two image editing functions; the image processing component at least includes: A display control, used for displaying the image to be edited in the first area of ​​the display area, or displaying a target image after the image to be edited is retouched under the image retouching function; An automatic image processing control, used for responding to the first control instruction to enter an automatic mode capable of automatically retouching a preset area in an image to be edited or a target image according to a preset automatic retouching rule; A manual image processing control, for responding to a second control instruction to enter a manual mode capable of selecting a region to be processed from an image to be edited or a target image based on a first touch operation, and performing manual image retouching processing on the region to be processed according to a preset manual image retouching rule based at least on a first operation feature of the first touch operation; Wherein, in the automatic mode, the electronic device can at least switch between the manual mode and the photo editing function on the same page; and / or in the manual mode, the electronic device can at least switch between the automatic mode and the photo editing function on the same page.

2. The assembly according to claim 1, It is characterized in that The display control is further used to display a photo editing function interface in other areas of the display area except the first area, and to display function buttons corresponding to the photo editing functions in the photo editing function interface; wherein, In the currently corresponding automatic mode or manual mode, a function switching instruction can be generated in response to a third touch operation performed on a target function key, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or In the currently corresponding automatic mode or manual mode, it is possible to enter the photo editing function corresponding to the target function key in response to the third touch operation performed on the target function key.

3. An image processing method, It is characterized in that At least two photo editing functions can be realized; wherein, after displaying the image to be edited on the first area of ​​the display area of ​​the electronic device, or displaying the target image after the image to be edited is edited under the photo editing function, the method includes: When the electronic device is in automatic mode, respond to a function switching instruction and switch between image editing functions; wherein, in the automatic mode, the electronic device can automatically retouch a preset area in the image to be edited or the target image according to a preset automatic image editing rule; and / or, When the electronic device is in manual mode, respond to a function switching instruction and switch between the image editing functions; wherein, in the manual mode, a region to be processed can be selected from the image to be edited or the target image based on a first touch operation, and manual image editing can be performed on the region to be processed according to a preset manual image editing rule based on at least a first operation feature of the first touch operation; In the automatic mode, the electronic device can at least switch between the manual mode and the photo editing function on the same page; and / or in the manual mode, the electronic device can at least switch between the automatic mode and the photo editing function on the same page.

4. The method according to claim 3, It is characterized in that The method further comprises: When the electronic device is in automatic mode, a second touch operation is detected, an automatic photo retouching intensity feature is determined based on a second operation feature of the second touch operation, and automatic photo retouching parameters that at least match the automatic photo retouching intensity feature are determined from preset automatic parameters included in preset automatic photo retouching rules to perform automatic photo retouching on a preset area.

5. The method according to claim 4, It is characterized in that The step of determining an automatic image retouching parameter that at least matches the automatic image retouching intensity feature from the preset automatic parameters included in the preset automatic image retouching rule to perform automatic image retouching processing on the preset area includes: Determine the first target photo retouching function currently corresponding, and determine the automatic photo retouching parameters that match the automatic photo retouching intensity characteristics and the first target photo retouching function from the preset automatic parameters included in the preset automatic photo retouching rules, and perform automatic photo retouching processing on the preset area.

6. The method according to any one of claims 3 to 5, It is characterized in that The method further comprises: When the electronic device is in manual mode, determine the current corresponding second target photo retouching function, and determine manual photo retouching parameters that at least match the current corresponding second target photo retouching function from the preset manual parameters included in the preset manual photo retouching rules, and perform manual photo retouching on the area to be processed selected based on the first touch operation.

7. The method according to claim 3, It is characterized in that Displaying a photo editing function interface in other areas of the display area except the first area, and displaying function buttons corresponding to the photo editing functions in the photo editing function interface; the method further includes: In response to a third touch operation performed on a target function key, a function switching instruction is generated, and function switching is performed between photo editing functions to switch to the target photo editing function selected by the third touch operation; or, in response to a third touch operation performed on a target function key, the photo editing function corresponding to the target function key is entered.

8. The method according to claim 7, It is characterized in that The method further comprises: In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, a function switching instruction is generated, and a function switching is performed between the photo editing functions to switch to the target photo editing function selected by the third touch operation; or In the currently corresponding automatic mode or manual mode, in response to the third touch operation performed on the target function key, the photo editing function corresponding to the target function key is entered.

9. An electronic device, It is characterized in that include: one or more processors; a memory communicatively coupled to the one or more processors; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 3 to 8.

10. A computer-readable storage medium storing a computer program, It is characterized in that When the program is executed by a processor, the method according to any one of claims 3 to 8 is implemented.