WO2021169910A1 - 图像处理方法、组件、电子设备及存储介质 - Google Patents

图像处理方法、组件、电子设备及存储介质 Download PDF

Info

Publication number
WO2021169910A1
WO2021169910A1 PCT/CN2021/077223 CN2021077223W WO2021169910A1 WO 2021169910 A1 WO2021169910 A1 WO 2021169910A1 CN 2021077223 W CN2021077223 W CN 2021077223W WO 2021169910 A1 WO2021169910 A1 WO 2021169910A1
Authority
WO
WIPO (PCT)
Prior art keywords
retouching
function
automatic
target
image
Prior art date
Application number
PCT/CN2021/077223
Other languages
English (en)
French (fr)
Inventor
蒋如玉
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2021169910A1 publication Critical patent/WO2021169910A1/zh
Priority to US17/888,333 priority Critical patent/US11880556B2/en
Priority to US18/389,763 priority patent/US20240211121A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]

Definitions

  • This application relates to image processing technology, and in particular to an image processing method, component, electronic device, and storage medium.
  • retouching software supports both automatic retouching and manual retouching by users. Moreover, in order to meet the needs of users, it also provides a variety of effect-based retouching functions. Take the beauty retouching function as an example, including the function of microdermabrasion, freckle and acne, and whitening function.
  • the existing retouching software can only switch between manual mode and automatic mode under a single retouching function. For example, if the user selects the microdermabrasion function, only the manual mode and automatic mode can be switched under the microdermabrasion function. At this time, if the user intends to switch to the freckle removal function in the automatic mode, the user needs to exit the microdermabrasion Function, select the automatic mode after entering the freckle function. Obviously, the operation steps are cumbersome and reduce the user experience.
  • this application proposes an image processing method, component, electronic device and storage medium, which can switch between the function of retouching in the automatic mode or the manual mode, so as to meet the needs of users.
  • the above simplifies the operation and improves the user experience.
  • an embodiment of the present application provides an image processing component, which is applied to an electronic device and can realize at least two retouching functions; the image processing component includes at least:
  • the display control 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 retouch function;
  • the automatic image processing control is used to respond to the first control instruction to enter an automatic mode capable of performing automatic retouching processing on the image to be edited or the preset area in the target image according to the preset automatic retouching rule;
  • the manual image processing control is used to respond to the second control instruction to select the area to be processed from the image to be edited or the target image based on the first touch operation, and according to the preset manual at least based on the first operating feature of the first touch operation Retouching rules: Manual mode for manual retouching of the area to be processed;
  • the electronic device in the automatic mode and/or manual mode, can at least respond to the function switching instruction to perform function switching between the image editing functions.
  • the solution of the application is provided with an automatic image processing control, it has an automatic mode that can perform automatic retouching processing, and a manual image processing control is also provided with a manual mode that can support the user's manual retouching processing, and the automatic image processing Controls and manual image processing controls do not impose restrictions on the retouching function, that is, the retouching function is supported to switch between automatic mode and manual mode.
  • the automatic mode or manual mode it can also respond to the function switching command in the retouching function. Therefore, compared with the existing method that only supports manual mode and automatic mode switching in the retouching mode, the operation steps of the solution of this application are simplified, and on the basis of meeting user needs, the user is improved. Experience.
  • the automatic image processing control is also used to detect a second touch operation in the automatic mode, determine the automatic retouching intensity feature based on the second operation feature of the second touch operation, and obtain the feature from the preset Set the preset auto-retouching parameters included in the auto-retouching rule to determine the auto-retouching parameters that at least match the strength characteristics of the auto-retouching to perform auto-retouching processing on the preset area.
  • the automatic mode since it is possible to determine the automatic retouching intensity feature based on the user operation, such as the second operating feature of the second touch operation, and then determine the automatic retouching parameters, the user manipulation in the automatic mode is added Sense and sense of control lay the foundation for meeting user needs and enhancing user experience.
  • the automatic image processing control is also used to determine the first target retouching function currently corresponding to in the automatic mode, and to determine from the preset automatic parameters included in the preset automatic retouching rules Auto-retouching parameters that match the auto-retouching strength feature and the first target retouching function, automatically retouch the preset area.
  • the automatic mode since it is possible to determine the auto-retouching strength feature based on the user operation, such as the second operating feature of the second touch operation, and based on the auto-retouching strength feature and the current retouching function, such as the first A target retouching function determines the automatic retouching parameters. Therefore, the user's sense of manipulation and control in the automatic mode is increased, which lays the foundation for meeting user needs and improving user experience. At the same time, it refines the automated image processing capabilities. It is laid to improve the effect of automated image processing and thereby enhance the user experience.
  • the manual image processing control is also used to determine the current corresponding second target retouching function in manual mode, and to determine from the preset manual parameters included in the preset manual retouching rules At least the manual retouching parameter that matches the second target retouching function currently corresponding to the manual retouching process is performed on the to-be-processed area selected based on the first touch operation.
  • the manual retouching parameters can be determined based on the retouching function, such as the second target retouching function, and then the manual retouching process is performed on the to-be-processed area selected by the first touch operation, so detailed
  • the image processing capability in manual mode is optimized, which lays a foundation for improving the image processing effect and thereby enhancing the user experience.
  • the automatic image processing control is also used to display a retouching intensity selection area corresponding to the retouching function on 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 operating feature; wherein, the second touch operation is a touch operation implemented in the retouching intensity selection area.
  • the retouching intensity selection area is used to instruct the user to select the retouching intensity, the operation is simple and easy to understand. Therefore, the application scenarios are further expanded. For example, users who are not proficient in image processing technology can also use it, satisfying the needs of different users. Demand, at the same time, also improves the user experience.
  • the retouching intensity selection area is provided with a prompt mark for characterizing the features of the automatic retouching intensity.
  • the retouching function is switched from manual mode to automatic mode, or when the retouching function is entered, the retouching function
  • the prompt mark on the selection area of retouching intensity is at the initial position.
  • the display control is also used to display a mode switching button on other areas of the display area except the first area, and to generate a mode switch in response to a second touch operation implemented on the mode switching button Command to switch from the current automatic mode to manual mode, or switch from the current manual mode to automatic mode.
  • the mode switch button is set in the display area to facilitate the user to switch between automatic mode and manual mode. Moreover, the mode switch button can be used to switch between different image editing functions and switch operations. Simple, therefore, laid the foundation for improving the user experience.
  • the display control is also used to display a retouching function interface on other areas of the display area except the first area, and the retouching function interface displays a function corresponding to the retouching function button;
  • the display control can also generate a function switching instruction in response to a third touch operation implemented on the target function button, and perform function switching between the editing functions, so as to switch to the target selected by the third touch operation Retouching function; or, in response to the third touch operation implemented on the target function button, enter the retouching function corresponding to the target function button.
  • the retouching function interface by setting the retouching function interface to display the function keys corresponding to the retouching function, for example, the retouching function corresponds to the function keys one-to-one, and then the displayed function keys can be used to switch between the retouching functions, and
  • the switching operation is simple, so it lays the foundation for improving the user experience.
  • the display control is also used for:
  • the image editing function corresponding to the target function button is entered.
  • an electronic device including:
  • An image processing component connected to the storage component, wherein the image processing component is the above-mentioned image processing component.
  • an embodiment of the present application provides an image processing method that can realize at least two retouching functions; wherein the image to be edited is displayed on the first area of the display area of the electronic device, or the image to be edited is displayed in the retouching function After performing the retouching process on the target image, the method includes:
  • the electronic device When the electronic device is in the automatic mode, it responds to the function switching instruction and performs function switching between the retouching functions; in the automatic mode, the electronic device can treat the edited image or the preset area in the target image according to the preset automatic retouching rules Carry out automatic retouching processing; and/or,
  • the electronic device When the electronic device is in the manual mode, it responds to the function switching instruction and performs function switching between the retouching functions; wherein, in the manual mode, the area to be processed can be selected from the image to be edited or the target image based on the first touch operation, And based on at least the first operating feature of the first touch operation, the area to be processed is manually retouched according to a preset manual retouching rule.
  • the method further includes:
  • the automatic retouching intensity feature is determined based on the second operation feature of the second touch operation, and the preset automatic parameters included in the preset automatic retouching rules are determined Determine the auto-retouching parameters that at least match the auto-retouching intensity feature to perform auto-retouching processing on the preset area.
  • determining the automatic retouching parameter at least matching the strength feature of the automatic retouching from the preset automatic parameters included in the preset automatic retouching rule to perform automatic retouching processing on the preset area includes:
  • the method further includes:
  • the method further includes:
  • the second touch operation performed on the selection area of the retouching intensity corresponding to the retouching function is detected, and the automatic retouching intensity feature is determined based on the second operating feature of the second touch operation; wherein, the retouching intensity corresponding to the retouching function
  • the selection area is displayed on areas other than the first area in the display area.
  • the retouching intensity selection area is provided with a prompt mark for characterizing the features of the automatic retouching intensity.
  • the retouching function is switched from manual mode to automatic mode, or when the retouching function is entered, the retouching function
  • the prompt mark on the selection area of retouching intensity is at the initial position.
  • the method further includes:
  • a mode switching instruction is generated to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode; where the mode switching button displays On other areas of the display area except the first area.
  • the method further includes:
  • a function switching instruction is generated, and the function is switched between the retouching functions to switch to the target retouching function selected by the third touch operation; or, in response to The third touch operation implemented on the target function button enters the image editing function corresponding to the target function button.
  • the method further includes:
  • the image editing function corresponding to the target function button is entered.
  • an embodiment of the present application provides an electronic device that can realize at least two retouching functions; the electronic device includes:
  • the display unit is configured 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 retouch function;
  • the processing unit is used to respond to the function switching instruction and perform function switching between the retouching functions when the electronic device is in the automatic mode; wherein, in the automatic mode, the electronic device can treat the edited image or target according to the preset automatic retouching rules Automatic retouching of preset areas in the image; and/or,
  • the electronic device When the electronic device is in the manual mode, it responds to the function switching instruction and performs function switching between the retouching functions; wherein, in the manual mode, the area to be processed can be selected from the image to be edited or the target image based on the first touch operation, And based on at least the first operating feature of the first touch operation, the area to be processed is manually retouched according to a preset manual retouching rule.
  • processing unit is further configured to:
  • the automatic retouching intensity feature is determined based on the second operation feature of the second touch operation, and the preset automatic parameters included in the preset automatic retouching rules are determined Determine the auto-retouching parameters that at least match the auto-retouching intensity feature to perform auto-retouching processing on the preset area.
  • processing unit is further configured to:
  • processing unit is further configured to:
  • the display unit is further configured to display a retouching intensity selection area corresponding to the retouching function on other areas of the display area except the first area;
  • the processing unit is further configured to detect a second touch operation performed on the selection area of the editing intensity corresponding to the image editing function, and determine the automatic image editing intensity feature based on the second operating characteristic of the second touch operation.
  • the display unit is further configured to display the mode switching button on other areas of the display area except the first area;
  • the processing unit is further configured to generate a mode switching instruction in response to a second touch operation implemented on the mode switching button to switch from the current automatic mode to the manual mode, or switch from the current manual mode to the automatic mode. model.
  • the display unit is further configured to display a retouching function interface on other areas of the display area except the first area, and display a function corresponding to the retouching function in the retouching function interface button;
  • the processing unit is further configured to generate a function switching instruction in response to a third touch operation implemented on the target function button, and perform function switching between the editing functions to switch to the third touch operation selected The target retouching function; or, in response to the third touch operation implemented on the target function key, the retouching function corresponding to the target function key is entered.
  • processing unit is further configured to:
  • the image editing function corresponding to the target function button is entered.
  • an electronic device including:
  • One or more processors are One or more processors;
  • a memory connected in communication with 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 above The method described.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and when the program is executed by a processor, the method as described above is implemented.
  • an embodiment of the present application provides a computer program product, including computer instructions, which, when executed by a processor, implement the method described in the third aspect.
  • the solution of the application is provided with an automatic image processing control, an automatic mode capable of automatic retouching processing, and a manual image processing control is also provided with a manual mode capable of supporting manual retouching processing by the user, and the automatic image processing Controls and manual image processing controls do not impose restrictions on the retouching function, that is, the retouching function is supported to switch between automatic mode and manual mode.
  • the automatic mode or manual mode it can also respond to the function switching command in the retouching function. Therefore, compared with the existing method that only supports manual mode and automatic mode switching in the retouching mode, the operation steps of the solution of this application are simplified, and on the basis of meeting user needs, the user is improved. Experience.
  • FIG. 1 is a schematic structural diagram of an image processing component according to an embodiment of the application
  • FIG. 2 is a first schematic diagram of an interface of an image processing component in a specific example according to an embodiment of the application;
  • FIG. 3 is a second schematic diagram of an interface of an image processing component in a specific example according to an embodiment of the application;
  • FIG. 4 is the third schematic diagram of the interface of the image processing component in a specific example according to the embodiment of the application;
  • FIG. 5 is a schematic diagram of an implementation flow of an image processing method according to an embodiment of the application.
  • FIG. 6 is a schematic diagram of a logical unit structure of an electronic device according to an embodiment of the application.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the application.
  • the embodiment of the application provides an image processing component, which is applied to electronic equipment and can realize at least two retouching functions; the following describes the solution of the application in detail with reference to FIGS. 1 to 4.
  • the image processing component at least includes :
  • the display control 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 retouch function;
  • the automatic image processing control is used to respond to the first control instruction to enter an automatic mode capable of performing automatic retouching processing on the image to be edited or the preset area in the target image according to the preset automatic retouching rule;
  • the manual image processing control is used to respond to the second control instruction to select the area to be processed from the image to be edited or the target image based on the first touch operation, and at least based on the first operation feature of the first touch operation (such as touch Intensity, or the number of clicks within a preset time, etc.)
  • a manual mode for manually retouching the area to be processed according to the preset manual retouching rules
  • the electronic device in the automatic mode and/or manual mode, can at least respond to the function switching instruction to perform function switching between the image editing functions. That is to say, in the automatic mode, the function can be switched between the retouching functions, and in the manual mode, the function can also be switched between the retouching functions. In this way, it is only supported in the current retouching mode. Compared with the way of switching between manual mode and automatic mode, the operation steps of the solution of this application are simplified and flexible, and the user experience is improved on the basis of meeting user needs.
  • the display control is also used in the display area except for the first area.
  • the mode switching button is displayed on other areas of the, and in response to a second touch operation (such as a click operation) implemented on the mode switching button, a mode switching instruction is generated to switch from the current automatic mode to the manual mode, or from the current The manual mode at the switch to automatic mode.
  • a mode switching instruction will be generated to switch the mode to manual mode; correspondingly, if you are currently in manual mode, at this time, click the operation mode switch
  • a mode switching instruction will be generated to switch the mode to automatic mode; that is, the mode switching button can be used to switch between manual mode and automatic mode; of course, in actual applications, as shown in Figure 3, it is a reminder to the user
  • the mode switch button can display a prompt message prompting to enter the automatic mode, such as "go to automatic” to prompt the user to switch modes; similarly, as shown in Figure 4, when in automatic mode, this The mode switch button can display a prompt message that prompts to enter the manual mode, such as "go to manual” to remind the user that the mode can be switched.
  • the retouching function interface can also be used to display the supported retouching functions. Specifically, as shown in FIG. 2, the display control is also used to display The retouching function interface is displayed on the other areas except the first area in the area, and the function keys corresponding to the retouching function are displayed in the retouching function interface;
  • the display control can also generate a function switching instruction in response to a third touch operation (for example, a click operation) implemented on the target function button (a function button corresponding to a certain editing function on the editing function interface), and Switch between the retouching functions to switch to the target retouching function selected by the third touch operation; for example, the retouching function interface displays the first function button and corresponding to the first retouching function.
  • the second function button corresponding to the second retouching function.
  • the electronic device is currently under the first retouching function.
  • the display control can also enter the retouching function corresponding to the target function key in response to the third touch operation implemented on the target function key;
  • the first function button of the picture function and the second function button corresponding to the second retouching function the electronic device is not currently under any retouching function, for example, when the image processing component has just been started, at this time, clicking corresponds to the second retouching function After the second function button of the function, it directly enters the second retouching function corresponding to the click operation.
  • the image to be edited or the target image can be retouched under the target retouching function selected by the third touch operation to meet the user's requirements for different retouching functions.
  • a retouching function interface containing function buttons and a mode switch button are displayed in other areas of the display interface.
  • the display control Also used for:
  • a function switching instruction is generated, and the function is switched between the editing functions to switch to the third touch operation.
  • the selected target retouching function that is to say, no matter in the automatic mode or the manual mode, the electronic device can realize the function switching between the retouching functions.
  • 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 on the required retouching function through the retouching function interface. , After entering the retouching function, it also defaults to automatic mode. If you want to switch to manual mode, you can use the mode switch button to achieve.
  • the initial state may also have other setting methods, which are not limited in the embodiment of the present application.
  • the number of function buttons in the image editing function interface that is, the number of image editing functions can be set according to actual requirements, which is not limited in the embodiment of the present application.
  • the automatic image processing control is also used to detect the second touch operation in the automatic mode, determine the automatic retouching intensity feature based on the second operation feature of the second touch operation, and obtain from Among the preset automatic parameters included in the preset automatic retouching rules, the automatic retouching parameters that at least match the strength characteristics of the automatic retouching are determined to perform automatic retouching processing on the preset area. That is to say, even in the automatic mode, the user can also select the automatic retouching strength feature through touch operation; further, in another specific example, the retouching strength feature can also be the same as the current retouching function.
  • the automatic image processing control is also used to determine the current corresponding first target retouching function in the automatic mode, and to determine from the preset automatic parameters included in the preset automatic retouching rules and The auto-retouching parameters match the auto-retouching strength feature and the first target retouching function, and automatically retouch the preset area.
  • the automatic retouching strength feature is not only associated with the user's touch operation, but also with the current retouching function, that is, the first target retouching function.
  • the retouching intensity selection area can also be set. Specifically, as shown in FIG. 3, the automatic image processing control is also used to remove the first area from the display area. The area other than that is displayed with the retouching intensity selection area corresponding to the retouching function, so that the retouching intensity selection area can be used to determine the automatic retouching intensity feature corresponding to the second operating feature (such as movement trajectory, etc.);
  • the second touch operation is a touch operation performed on the selection area of the retouching intensity.
  • the feature of the automatic retouching intensity can be confirmed by the operation feature of the touch operation implemented in the retouching intensity selection area.
  • the retouching intensity selection area is provided with a reminder that represents the characteristics of the automatic retouching intensity.
  • the prompt mark on the retouching strength selection area of the retouching function is located at the initial position, that is, the position of the reminding mark in the retouching strength selection area can indicate the automatic retouching strength feature.
  • the editing intensity selection area can be specifically a slider. At this time, the initial position is set at the leftmost end of the slider, and the user's touch operation can control the prompt mark to move from the initial position to the first position. At this time, the auto-retouching intensity feature can be determined based on the distance between the initial position and the first position.
  • the manual image processing control is also used to determine the second target retouching function currently corresponding to in manual mode, and to determine from the preset manual parameters included in the preset manual retouching rules A manual retouching parameter that matches at least the currently corresponding second target retouching function is output, and the manual retouching process is performed on the area to be processed selected based on the first touch operation. That is to say, in manual mode, the manual retouching parameters can be specifically matched with the current retouching function. Of course, in actual applications, it can also be related to the operation intensity of the user's touch operation, which is not limited in this application. .
  • the solution of this application is provided with an automatic image processing control, an automatic mode capable of automatic retouching processing, and a manual image processing control is also provided with a manual mode capable of supporting manual retouching processing by the user, and the automatic image processing Controls and manual image processing controls do not impose restrictions on the retouching function, that is, the retouching function is supported to switch between automatic mode and manual mode.
  • the automatic mode or manual mode it can also respond to the function switching command in the retouching function. Therefore, compared with the existing method that only supports manual mode and automatic mode switching in the retouching mode, the operation steps of the solution of this application are simplified, and on the basis of meeting user needs, the user is improved. Experience.
  • the retouching mode defaults to automatic mode, that is, automatic retouching under the microdermabrasion function. At this time, you can switch the function by clicking other function buttons, and after switching The function of is also retouched in the automatic mode. For example, click the whitening function to automatically retouch the image under the whitening function.
  • the solution of the present application can switch between automatic mode and manual mode in any retouching function, and can switch between any retouching functions in automatic mode or manual mode. In this way, it is on the basis of meeting user needs.
  • the embodiment of the present application also provides an electronic device, which at least includes: a storage component for storing images; and an image processing component connected to the storage component; wherein the image processing component is applied to an electronic device and can realize at least two types of Retouching function; the image processing component is the above-mentioned image processing component.
  • the embodiment of the application also provides an image processing method, which can realize at least two retouching functions; wherein the image to be edited is displayed on the first area of the display area of the electronic device, or the image to be edited is displayed under the retouching function.
  • the method includes:
  • Step 501 When the electronic device is in the automatic mode, respond to the function switching instruction and perform function switching between the retouching functions; wherein, in the automatic mode, the electronic device can treat the edited image or the target image in accordance with the preset automatic retouching rules Auto-retouch processing of preset areas; and/or,
  • Step 502 When the electronic device is in the manual mode, respond to the function switching instruction and perform function switching between the editing functions; wherein, in the manual mode, the image to be edited or the target image can be selected based on the first touch operation.
  • the area is processed, and the area to be processed is manually retouched according to a preset manual retouching rule based on at least the first operating feature of the first touch operation.
  • the function in the automatic mode, the function can be switched between the retouching functions, and in the manual mode, the function can also be switched between the retouching functions. In this way, it is only supported in the current retouching mode. Compared with the way of switching between manual mode and automatic mode, the operation steps of the solution of this application are simplified and flexible, and the user experience is improved on the basis of meeting user needs.
  • step 501 and step 502 can be understood to exist in parallel, that is, in a specific scenario, only step 501 can be performed. In another scenario, only step 502 can be executed. Of course, there is also a scenario where both steps 501 and 502 will be executed, but the order of execution of the two is not limited, that is, step 501 is executed first, and then step 502 is executed. , First enter automatic mode for function switching, and then switch to manual mode for function switching; or, first perform step 502, then perform step 501, that is, enter manual mode for function switching first, and then switch In the automatic mode, the function is switched.
  • the execution sequence is related to the user's operating habits or drawing habits, and this application does not limit this.
  • the method further includes:
  • the automatic retouching intensity feature is determined based on the second operation feature of the second touch operation, and the preset automatic parameters included in the preset automatic retouching rules are determined Determine the auto-retouching parameters that at least match the auto-retouching intensity feature to perform auto-retouching processing on the preset area.
  • the determining the automatic retouching parameters at least matching the strength characteristics of the automatic retouching from the preset automatic parameters included in the preset automatic retouching rules to perform automatic retouching processing on the preset area includes:
  • the method further includes:
  • the method further includes:
  • the second touch operation performed on the selection area of the retouching intensity corresponding to the retouching function is detected, and the automatic retouching intensity feature is determined based on the second operating feature of the second touch operation; wherein, the retouching intensity corresponding to the retouching function
  • the selection area is displayed on areas other than the first area in the display area.
  • the retouching intensity selection area is provided with a prompt mark for characterizing the features of the automatic retouching intensity.
  • the retouching function is switched from manual mode to automatic mode, or when the retouching function is entered, the retouching function
  • the prompt mark on the selection area of retouching intensity is at the initial position.
  • the method further includes:
  • a mode switching instruction is generated to switch from the current automatic mode to the manual mode, or from the current manual mode to the automatic mode; where the mode switching button displays On other areas of the display area except the first area.
  • the method further includes:
  • a function switching instruction is generated, and the function is switched between the retouching functions to switch to the target retouching function selected by the third touch operation; or, in response to The third touch operation implemented on the target function button enters the image editing function corresponding to the target function button.
  • the method further includes:
  • the image editing function corresponding to the target function button is entered.
  • the embodiments of the present application also provide a computer program product, including computer instructions, which implement at least one method in the present application when the computer instructions are executed by a processor.
  • the embodiment of the present application also provides an electronic device that can realize at least two types of retouching functions; as shown in FIG. 6, the electronic device includes:
  • the display unit 61 is configured 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 retouch function;
  • the processing unit 62 is configured to respond to the function switching instruction and perform function switching between the retouching functions when the electronic device is in the automatic mode; wherein, in the automatic mode, the electronic device can process the edited image according to the preset automatic retouching rules.
  • the preset area in the target image is automatically retouched; and/or,
  • the electronic device When the electronic device is in the manual mode, it responds to the function switching instruction and performs function switching between the retouching functions; wherein, in the manual mode, the area to be processed can be selected from the image to be edited or the target image based on the first touch operation, And based on at least the first operating feature of the first touch operation, the area to be processed is manually retouched according to a preset manual retouching rule.
  • processing unit 62 is further configured to:
  • the automatic retouching intensity feature is determined based on the second operation feature of the second touch operation, and the preset automatic parameters included in the preset automatic retouching rules are determined Determine the auto-retouching parameters that at least match the auto-retouching intensity feature to perform auto-retouching processing on the preset area.
  • processing unit 62 is further configured to:
  • processing unit 62 is further configured to:
  • the display unit 61 is further configured to display a retouching intensity selection area corresponding to the retouching function on other areas of the display area except the first area;
  • the processing unit 62 is further configured to detect a second touch operation performed on the editing intensity selection area corresponding to the image editing function, and determine the automatic image editing intensity feature based on the second operation feature of the second touch operation.
  • the display unit 61 is further configured to display the mode switching button displayed on other areas of the display area except the first area;
  • the processing unit 62 is further configured to generate a mode switching instruction in response to a second touch operation implemented on the mode switching button, and switch from the current automatic mode to the manual mode, or switch from the current manual mode to Automatic mode.
  • the display unit 61 is further configured to display a retouching function interface on other areas of the display area except the first area, and display the corresponding retouching function interface in the retouching function interface. function button;
  • the processing unit 62 is further configured to generate a function switching instruction in response to a third touch operation implemented on the target function button, and perform function switching between the editing functions, so as to switch to the third touch operation selected Or, in response to the third touch operation implemented on the target function button, enter the image editing function corresponding to the target function button.
  • processing unit 62 is further configured to:
  • the image editing function corresponding to the target function button is entered.
  • the embodiment of the present application also provides an electronic device, including: one or more processors; a memory communicatively connected with the one or more processors; one or more application programs; wherein, the one or more The application program is 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 described above.
  • the electronic device described in the embodiment of the present application may specifically have a structure as shown in FIG. 7.
  • the electronic device includes at least a processor 71, a storage medium 72, and at least one external communication interface 73;
  • the device 71, the storage medium 72, and the external communication interface 73 are all connected by a bus 74.
  • the processor 71 may be an electronic component with processing functions such as a microprocessor, a central processing unit, a digital signal processor, or a programmable logic array.
  • Computer executable code is stored in the storage medium, and the computer executable code can execute the method described in any of the above embodiments.
  • the display unit 61 and the processing unit 62 may be implemented by the processor 71.
  • the display control, automatic image processing control, and manual image processing control can all be implemented by the processor 71.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the above-mentioned method is implemented.
  • the computer-readable storage medium may be any device that can contain, store, communicate, propagate, or transmit the program for use by the instruction execution system, apparatus, or device or in combination with these instruction execution systems, apparatus, or devices. More specific examples (non-exhaustive list) of computer-readable storage media include the following: electrical connections (electronic devices) with one or more wiring, portable computer disk cases (magnetic devices), random access memory (RAM) , Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable read-only memory (CDROM).
  • the computer-readable storage medium can even be paper or other suitable media on which the program can be printed, because it can be used for example by optically scanning paper or other media, and then editing, interpreting or other appropriate media if necessary.
  • the processing is carried out in a suitable manner to obtain the program electronically and then store it in the computer memory.
  • the functional components in the various embodiments of the present application may be integrated into one processing module, or each component may exist alone physically, or two or more components may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及图像处理方法、组件、电子设备及存储介质。该组件包括:显示控件,用于在显示区域的第一区域上显示待编辑图像,或显示对待编辑图像在修图功能下进行修图处理后的目标图像;自动图像处理控件,用于响应第一控制指令进入能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理的自动模式;手动图像处理控件,用于响应第二控制指令进入能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理的手动模式;其中,所述自动模式和/或手动模式下,至少能够响应功能切换指令在修图功能之间进行切换。如此,简化了操作,提升了用户体验。

Description

图像处理方法、组件、电子设备及存储介质
相关申请的交叉引用
本申请要求于2020年02月24日提交的,申请号为202010113048.9、发明名称为“图像处理方法、组件、电子设备及存储介质”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。
技术领域
本申请涉及图像处理技术,特别是涉及一种图像处理方法、组件、电子设备及存储介质。
背景技术
现有图像处理软件,如修图软件既支持自动修图,也支持用户手动修图。而且,为满足用户需求,还提供了多种基于效果的修图功能,以美颜修图为例,包括磨皮功能、祛斑祛痘功能、美白功能等。
但是,现有修图软件仅能在单个修图功能下实现手动模式与自动模式之间的切换。举例来说,若用户选择磨皮功能,则仅能在磨皮功能下进行手动模式与自动模式之间的切换,此时,若用户预在自动模式下切换至祛斑功能,则需退出磨皮功能,进入祛斑功能后选择自动 模式,显然,该操作步骤繁琐,降低了用户体验。
发明内容
为解决上述问题,本申请提出了一种图像处理方法、组件、电子设备及存储介质,能够在自动模式下或手动模式下在修图功能之间进行功能切换,如此,在满足用户需求的基础上,简化了操作,提升了用户体验。
第一方面,本申请实施例提供一种图像处理组件,应用于电子设备,能够实现至少两种修图功能;所述图像处理组件至少包括:
显示控件,用于在显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像;
自动图像处理控件,用于响应第一控制指令进入能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理的自动模式;
手动图像处理控件,用于响应第二控制指令进入能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理的手动模式;
其中,所述自动模式和/或手动模式下,电子设备至少能够响应功能切换指令在修图功能之间进行功能切换。
这里,由于本申请方案设置有自动图像处理控件,具有能够进行自动修图处理的自动模式,还设置有手动图像处理控件,具有能够支 持用户手动修图处理的手动模式,而且,该自动图像处理控件和手动图像处理控件对修图功能不作限制,即支持修图功能在自动模式和手动模式之间进行模式切换,同时,在自动模式或手动模式下,还能够响应功能切换指令在修图功能之间进行功能切换,所以,与现有仅在修图模式下支持手动模式和自动模式的切换的方式相比,本申请方案操作步骤简化,而且,在满足用户需求的基础上,提升了用户体验。
在一实施例中,所述自动图像处理控件,还用于在自动模式下检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
这里,在自动模式下,由于能够基于用户操作,如第二触控操作的第二操作特征来确定自动修图强度特征,进而确定出自动修图参数,所以,增加了自动模式下的用户操控感和掌控感,为满足用户需要,以及提升用户体验奠定了基础。
在一实施例中,所述自动图像处理控件,还用于在自动模式下确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。
这里,在自动模式下,由于能够基于用户操作,如第二触控操作的第二操作特征来确定自动修图强度特征,并基于自动修图强度特征和当前所处的修图功能,如第一目标修图功能确定出自动修图参数, 所以,增加了自动模式下的用户操控感和掌控感,为满足用户需要,以及提升用户体验奠定了基础,同时,细化了自动化图像处理能力,为提升自动化图像处理效果,进而提升用户体验奠定了。
在一实施例中,所述手动图像处理控件,还用于在手动模式下确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
这里,在手动模式下,由于能够基于修图功能,如第二目标修图功能来确定手动修图参数,进而对第一触控操作所选中的待处理区域进行手动修图处理,所以,细化了手动模式下的图像处理能力,为提升图像处理效果,进而提升用户体验奠定了。
在一实施例中,所述自动图像处理控件,还用于在显示区域中除第一区域以外的其他区域上显示有对应于修图功能的修图强度选择区域,以利用修图强度选择区域来确定第二操作特征所对应的自动修图强度特征;其中,所述第二触控操作为实施于修图强度选择区域的触控操作。
这里,由于利用修图强度选择区域来指示用户进行修图强度选择,操作简单,易于理解,所以,进一步扩大了应用场景,比如,不精通图像处理技术的用户也可以使用,满足了不同用户的需求,同时,也提升了用户体验。
在一实施例中,修图强度选择区域上设置有用于表征自动修图强 度特征的提示标识,其中,修图功能从手动模式切换至自动模式时,或者进入修图功能时,修图功能的修图强度选择区域上的提示标识位于初始位置。
在一实施例中,所述显示控件,还用于在显示区域中除第一区域以外的其他区域上显示模式切换按键,并响应于实施在模式切换按键上的第二触控操作生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式。
这里,通过在显示区域中设置模式切换按键,来方便用户在自动模式和手动模式之间进行模式切换,而且,利用模式切换按键即可实现在不同修图功能之间进行模式切换,且切换操作简单,因此,为提升用户体验奠定了基础。
在一实施例中,所述显示控件,还用于在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;
其中,所述显示控件还能够响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
这里,通过设置修图功能界面来显示对应修图功能的功能按键,比如,修图功能与功能按键一一对应,进而利用所展示的功能按键即可实现修图功能之间的功能切换,且切换操作简单,因此,为提升用户体验奠定了基础。
在一实施例中,所述显示控件,还用于:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
第二方面,本申请实施例提供一种电子设备,包括:
存储组件,用于存储图像;以及
与存储组件连接的图像处理组件,其中,所述图像处理组件为以上所述的图像处理组件。
第三方面,本申请实施例提供一种图像处理方法,能够实现至少两种修图功能;其中,在电子设备显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像后,所述方法包括:
在电子设备处于自动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,自动模式下,电子设备能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理;和/或,
在电子设备处于手动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,手动模式下,能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处 理。
在一实施例中,所述方法还包括:
在电子设备处于自动模式下,检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
在一实施例中,所述从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理包括:
确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。
在一实施例中,所述方法还包括:
在电子设备处于手动模式下,确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
在一实施例中,所述方法还包括:
检测到实施在对应修图功能的修图强度选择区域上的第二触控操作,基于第二触控操作的第二操作特征确定自动修图强度特征;其中,对应修图功能的修图强度选择区域显示于显示区域中除第一区域以外的其他区域上。
在一实施例中,修图强度选择区域上设置有用于表征自动修图强度特征的提示标识,其中,修图功能从手动模式切换至自动模式时,或者进入修图功能时,修图功能的修图强度选择区域上的提示标识位于初始位置。
在一实施例中,所述方法还包括:
响应于实施在模式切换按键上的第二触控操作生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式;其中,模式切换按键显示于显示区域中除第一区域以外的其他区域上。
在一实施例中,在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;所述方法还包括:
响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
在一实施例中,所述方法还包括:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
第四方面,本申请实施例提供一种电子设备,能够实现至少两种修图功能;所述电子设备包括:
显示单元,用于在显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像;
处理单元,用于在电子设备处于自动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,自动模式下,电子设备能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理;和/或,
在电子设备处于手动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,手动模式下,能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理。
在一实施例中,所述处理单元,还用于:
在电子设备处于自动模式下,检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
在一实施例中,所述处理单元,还用于:
确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。
在一实施例中,所述处理单元,还用于:
在电子设备处于手动模式下,确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
在一实施例中,所述显示单元,还用于在显示区域中除第一区域以外的其他区域上显示对应修图功能的修图强度选择区域;
所述处理单元,还用于检测到实施在对应修图功能的修图强度选择区域上的第二触控操作,基于第二触控操作的第二操作特征确定自动修图强度特征。
在一实施例中,所述显示单元,还用于在显示区域中除第一区域以外的其他区域上显示模式切换按键显示于;
所述处理单元,还用于响应于实施在模式切换按键上的第二触控操作生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式。
在一实施例中,所述显示单元,还用于在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;
所述处理单元,还用于:响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
在一实施例中,所述处理单元,还用于:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
第五方面,本申请实施例提供一种电子设备,包括:
一个或多个处理器;
与所述一个或多个处理器通信连接的存储器;
一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为执行以上所述的方法。
第六方面,本申请实施例提供一种计算机可读存储介质,其存储有计算机程序,该程序被处理器执行时实现如以上所述的方法。
第七方面,本申请实施例提供一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现第三方面所述的方法。
这样,由于本申请方案设置有自动图像处理控件,具有能够进行自动修图处理的自动模式,还设置有手动图像处理控件,具有能够支持用户手动修图处理的手动模式,而且,该自动图像处理控件和手动图像处理控件对修图功能不作限制,即支持修图功能在自动模式和手动模式之间进行模式切换,同时,在自动模式或手动模式下,还能够响应功能切换指令在修图功能之间进行功能切换,所以,与现有仅在 修图模式下支持手动模式和自动模式的切换的方式相比,本申请方案操作步骤简化,而且,在满足用户需求的基础上,提升了用户体验。
附图说明
图1为本申请实施例图像处理组件的结构示意图;
图2为本申请实施例图像处理组件在一具体示例中的界面示意图一;
图3为本申请实施例图像处理组件在一具体示例中的界面示意图二;
图4为本申请实施例图像处理组件在一具体示例中的界面示意图三;
图5为本申请实施例图像处理方法的实现流程示意图;
图6为本申请实施例电子设备的逻辑单元结构示意图;
图7为本申请实施例电子设备的硬件结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
在本申请的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或 并行执行。
本申请实施例提供了一种图像处理组件,应用于电子设备,能够实现至少两种修图功能;以下结合图1至图4对本申请方案做详细说明,具体地,所述图像处理组件至少包括:
显示控件,用于在显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像;
自动图像处理控件,用于响应第一控制指令进入能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理的自动模式;
手动图像处理控件,用于响应第二控制指令进入能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征(比如触控强度,或预设时间内的点击次数等)按照预设手动修图规则对待处理区域进行手动修图处理的手动模式;
其中,所述自动模式和/或手动模式下,电子设备至少能够响应功能切换指令在修图功能之间进行功能切换。也就是说,在自动模式下,能够在修图功能之间进行功能切换,在手动模式下,同样也能够在修图功能之间进行功能切换,如此,与现有仅在修图模式下支持手动模式和自动模式的切换的方式相比,本申请方案操作步骤简化、灵活,而且,在满足用户需求的基础上,提升了用户体验。
在一具体示例中,为便于用户在修图过程中能够在自动模式和手动模式之间进行自由切换,如图2所示,所述显示控件,还用于在显 示区域中除第一区域以外的其他区域上显示模式切换按键,并响应于实施在模式切换按键上的第二触控操作(比如点击操作)生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式。也就是说,若当前处于自动模式下,此时,点击操作模式切换按键后,会生成模式切换指令将模式切换至手动模式;相应地,若当前处于手动模式下,此时,点击操作模式切换按键后,会生成模式切换指令,将模式切换至自动模式;即利用该模式切换按键即可实现手动模式和自动模式之间的切换;当然,实际应用中,如图3所示,为提示用户,当处于手动模式时,该模式切换按键可展示提示进入自动模式的提示信息,如“去自动”来提示用户可进行模式切换;同理,如图4所示,当处于自动模式时,该模式切换按键可展示提示进入手动模式的提示信息,如“去手动”来提示用户可进行模式切换。
在另一具体示例中,为满足用户修图需要,还可以利用修图功能界面来显示所能支持的修图功能,具体地,如图2所示,所述显示控件,还用于在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;
其中,所述显示控件还能够响应于实施在目标功能按键(修图功能界面上对应某一修图功能的功能按键)上的第三触控操作(比如,点击操作)生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;举例来说,修图功能界面中展示有对应于第一修图功能的第一功能按键和对应于第二修图 功能的第二功能按键,电子设备当前处于第一修图功能下,此时,若用户点击对应于第二修图功能的第二功能按键,则生成功能切换指令并切换至点击操作所选中的第二修图功能下,如此,利用修图功能界面中设置的功能按键来实现功能之间的切换。或者,所述显示控件还能够响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能;举例来说,修图功能界面中展示有对应于第一修图功能的第一功能按键和对应于第二修图功能的第二功能按键,电子设备当前并未处于任何修图功能下,比如刚启动图像处理组件,此时,点击对应于第二修图功能的第二功能按键后,则直接进入点击操作所对应的第二修图功能。综上,能够在第三触控操作所选中的目标修图功能下对待编辑图像或目标图像进行修图处理,以满足用户对不同修图功能的需求。
这里,在一具体示例中,如图2所示,显示界面中除第一区域以外的其他区域中显示有包含有功能按键的修图功能界面,以及模式切换按键,此时,所述显示控件,还用于:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;也就是说,无论在自动模式还是手动模式下,电子设备都能够实现在修图功能之间进行功能切换。
或者,还用于在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的 修图功能。也就是说,无论在自动模式还是手动模式下,也均能够在初始状态时直接进入所选中的修图功能。
实际应用中,电子设备还可以设置初始状态,比如,启动图像处理组件后,即默认进入自动模式,这样,在自动模式下用户可以通过修图功能界面来点击所需要的修图功能,此时,进入修图功能后也为默认为自动模式,若想切换至手动模式,可通过模式切换按键来实现。当然,初始状态还可以有其他设置方式,本申请实施例对此不作限制。
进一步地,实际应用中,修图功能界面中功能按键的数量,也即修图功能的数量可以根据实际需求而设置,本申请实施例对此不作限制。
在一具体实施例中,所述自动图像处理控件,还用于在自动模式下检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。也就是说,即便在自动模式下,用户也可以通过触控操作来选择自动修图强度特征;进一步地,在另一具体示例中,该修图强度特征还可以与当前所处的修图功能相关联,比如,所述自动图像处理控件,还用于在自动模式下确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。此时,自动修图强度特征不仅与用户的触控操作相关联,还与当前所处的修图功能,也即第一目标修图功能相关联。
这里,为了便于用户在自动模式下选择修图强度,还可以设置修图强度选择区域,具体地,如图3所示,所述自动图像处理控件,还用于在显示区域中除第一区域以外的其他区域上显示有对应于修图功能的修图强度选择区域,以利用修图强度选择区域来确定第二操作特征(比如移动轨迹等)所对应的自动修图强度特征;其中,所述第二触控操作为实施于修图强度选择区域的触控操作。也就是说,通过实施于修图强度选择区域的触控操作的操作特征即可确认出自动修图强度特征。
这里,为了便于图像处理及参数设置,修图强度选择区域上设置有用于表征自动修图强度特征的提示标识,这里,修图功能从手动模式切换至自动模式时,或者进入修图功能时,修图功能的修图强度选择区域上的提示标识位于初始位置,也就是说,通过提示标识在修图强度选择区域中的位置即可表示出自动修图强度特征。举例来说,如图4所示,修图强度选择区域可以具体为滑竿,此时,初始位置设置于滑竿的最左端,用户的触控操作可以控制提示标识从初始位置移动至第一位置,此时,可以基于初始位置与第一位置之间的距离来确定自动修图强度特征。
在另一具体示例中,所述手动图像处理控件,还用于在手动模式下确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。也就是说,手动模式下,手动修图参数可以具体与 当前所处的修图功能相匹配,当然,实际应用中,还可以与用户的触控操作的操作强度相关,本申请对此不作限制。
这样,由于本申请方案设置有自动图像处理控件,具有能够进行自动修图处理的自动模式,还设置有手动图像处理控件,具有能够支持用户手动修图处理的手动模式,而且,该自动图像处理控件和手动图像处理控件对修图功能不作限制,即支持修图功能在自动模式和手动模式之间进行模式切换,同时,在自动模式或手动模式下,还能够响应功能切换指令在修图功能之间进行功能切换,所以,与现有仅在修图模式下支持手动模式和自动模式的切换的方式相比,本申请方案操作步骤简化,而且,在满足用户需求的基础上,提升了用户体验。
以下结合具体应用场景对本申请实施例做进一步详细说明,具体地,以图像处理组件支持磨皮功能,祛斑祛痘功能,美白功能三种修图功能为例进行说明,此时,实际应用中可存在如下场景:
场景一:
启动图像处理组件,选中磨皮功能,进入磨皮功能,修图模式默认为自动模式,即在磨皮功能下进行自动修图,此时,可通过点击其他功能按键进行功能切换,且切换后的功能也在自动模式下进行修图处理,比如,点击美白功能,即在美白功能下进行自动修图。
或者,点击模式切换按键进行模式切换,如图4所示,点击去手动切换至手动模式下,此时,在磨皮功能下进行手动修图;然后,再可以点击其他功能按键进行功能切换,此时切换后的功能则在手动模式下进行修图处理。
场景二:
启动图像处理组件,默认进入自动模式,但修图功能未确定,此时,用户点击图4所示的去手动,切换至手动模式,然后,点击磨皮功能,则进入磨皮功能,即在磨皮功能下进行手动修图。进一步地,类似于场景一,此时,还可以通过其他功能按键进行功能切换,也可以点击模式切换按键进行模式切换。
基于此,本申请方案能够在任意修图功能中进行自动模式和手动模式的切换,且能够在自动模式或者手动模式下,在任意修图功能之间进行切换,如此,在满足用户需求的基础上,简化了用户操作,提升了用户体验。
本申请实施例还提供了一种电子设备,至少包括:存储组件,用于存储图像;以及与存储组件连接的图像处理组件;其中,所述图像处理组件应用于电子设备,能够实现至少两种修图功能;所述图像处理组件为以上所述的图像处理组件。
本申请实施例还提供了图像处理方法,能够实现至少两种修图功能;其中,在电子设备显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像后,如图5所示,所述方法包括:
步骤501:在电子设备处于自动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,自动模式下,电子设备能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理;和/或,
步骤502:在电子设备处于手动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,手动模式下,能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理。
也就是说,在自动模式下,能够在修图功能之间进行功能切换,在手动模式下,同样也能够在修图功能之间进行功能切换,如此,与现有仅在修图模式下支持手动模式和自动模式的切换的方式相比,本申请方案操作步骤简化、灵活,而且,在满足用户需求的基础上,提升了用户体验。
这里,需要说明的是,实际应用中,步骤501和步骤502之间的执行顺序不限,而且,步骤501和步骤502可以理解为并列存在,即在一具体场景中,可以仅执行步骤501,在另外一个场景中,可以仅执行步骤502,当然,还存在一场景,步骤501和步骤502均会执行,但两者执行顺序不作限定,即先执行步骤501,再执行步骤502,也就是说,先进入自动模式下进行功能切换,然后再切换到手动模式下,进行功能切换;或者,先执行步骤502,再执行步骤501,也就是说,先进入手动模式下进行功能切换,然后再切换到自动模式下,进行功能切换,该执行顺序与用户的操作习惯或修图习惯有关,本申请对此不作限制。
在一实施例中,所述方法还包括:
在电子设备处于自动模式下,检测到第二触控操作,基于第二触 控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
在一实施例中,所述从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理包括:
确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。
在一实施例中,所述方法还包括:
在电子设备处于手动模式下,确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
在一实施例中,所述方法还包括:
检测到实施在对应修图功能的修图强度选择区域上的第二触控操作,基于第二触控操作的第二操作特征确定自动修图强度特征;其中,对应修图功能的修图强度选择区域显示于显示区域中除第一区域以外的其他区域上。
在一实施例中,修图强度选择区域上设置有用于表征自动修图强度特征的提示标识,其中,修图功能从手动模式切换至自动模式时,或者进入修图功能时,修图功能的修图强度选择区域上的提示标识位 于初始位置。
在一实施例中,所述方法还包括:
响应于实施在模式切换按键上的第二触控操作生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式;其中,模式切换按键显示于显示区域中除第一区域以外的其他区域上。
在一实施例中,在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;所述方法还包括:
响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
在一实施例中,所述方法还包括:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
这里需要指出的是:以上方法实施例项的描述,与上述图像处理组件描述是类似的,具有同图像处理组件实施例相同的有益效果,因此不做赘述。对于本申请方法实施例中未披露的技术细节,本领域的 技术人员请参照本申请图像处理组件实施例的描述而理解,为节约篇幅,这里不再赘述。
本申请实施例还提供了一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现本申请中的至少一种方法。
本申请实施例还提供了一种电子设备,能够实现至少两种修图功能;如图6所示,所述电子设备包括:
显示单元61,用于在显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像;
处理单元62,用于在电子设备处于自动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,自动模式下,电子设备能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理;和/或,
在电子设备处于手动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,手动模式下,能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理。
在一实施例中,所述处理单元62,还用于:
在电子设备处于自动模式下,检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
在一实施例中,所述处理单元62,还用于:
确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图功能相匹配的自动修图参数,对预设区域进行自动修图处理。
在一实施例中,所述处理单元62,还用于:
在电子设备处于手动模式下,确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
在一实施例中,所述显示单元61,还用于在显示区域中除第一区域以外的其他区域上显示对应修图功能的修图强度选择区域;
所述处理单元62,还用于检测到实施在对应修图功能的修图强度选择区域上的第二触控操作,基于第二触控操作的第二操作特征确定自动修图强度特征。
在一实施例中,所述显示单元61,还用于在显示区域中除第一区域以外的其他区域上显示模式切换按键显示于;
所述处理单元62,还用于响应于实施在模式切换按键上的第二触控操作生成模式切换指令,从当前所处的自动模式切换到手动模式,或者从当前所处的手动模式切换到自动模式。
在一实施例中,所述显示单元61,还用于在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;
所述处理单元62,还用于:响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
在一实施例中,所述处理单元62,还用于:
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
这里需要指出的是:以上电子设备实施例项的描述,与上述方法描述是类似的,具有同方法实施例相同的有益效果,因此不做赘述。对于本申请电子设备实施例中未披露的技术细节,本领域的技术人员请参照本申请方法实施例的描述而理解,为节约篇幅,这里不再赘述。
本申请实施例还提供了一种电子设备,包括:一个或多个处理器;与所述一个或多个处理器通信连接的存储器;一个或多个应用程序;其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为执行以上所述的方法。
在一具体示例中,本申请实施例所述的电子设备可具体为如图7所示的结构,所述电子设备至少包括处理器71、存储介质72以及至 少一个外部通信接口73;所述处理器71、存储介质72以及外部通信接口73均通过总线74连接。所述处理器71可为微处理器、中央处理器、数字信号处理器或可编程逻辑阵列等具有处理功能的电子元器件。所述存储介质中存储有计算机可执行代码,所述计算机可执行代码能够执行以上任一实施例所述的方法。在实际应用中,所述显示单元61以及处理单元62可以通过所述处理器71实现。或者,所述显示控件、自动图像处理控件及手动图像处理控件均可通过所述处理器71实现。
本申请实施例还提供了一种计算机可读存储介质,其存储有计算机程序,该程序被处理器执行时实现以上所述的方法。
这里,计算机可读存储介质可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读存储介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式只读存储器(CDROM)。另外,计算机可读存储介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本技术领域的普通技术人员可以理解实现上述实施例 方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本申请各个实施例中的各功能组件可以集成在一个处理模块中,也可以是各个组件单独物理存在,也可以两个或两个以上组件集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。所述存储介质可以是只读存储器,磁盘或光盘等。
上述所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。

Claims (11)

  1. 一种图像处理组件,其特征在于,应用于电子设备,能够实现至少两种修图功能;所述图像处理组件至少包括:
    显示控件,用于在显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像;
    自动图像处理控件,用于响应第一控制指令进入能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理的自动模式;
    手动图像处理控件,用于响应第二控制指令进入能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理的手动模式;
    其中,所述自动模式和/或手动模式下,电子设备至少能够响应功能切换指令在修图功能之间进行功能切换。
  2. 根据权利要求1所述的组件,其特征在于,所述显示控件,还用于在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;其中,
    在当前所对应的自动模式或手动模式下,能够响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
    在当前所对应的自动模式或手动模式下,能够响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
  3. 一种图像处理方法,其特征在于,能够实现至少两种修图功能;其中,在电子设备显示区域的第一区域上显示待编辑图像,或者显示对待编辑图像在修图功能下进行修图处理后的目标图像后,所述方法包括:
    在电子设备处于自动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,自动模式下,电子设备能够按照预设自动修图规则对待编辑图像或目标图像中预设区域进行自动修图处理;和/或,
    在电子设备处于手动模式下,响应功能切换指令,并在修图功能之间进行功能切换;其中,手动模式下,能够基于第一触控操作从待编辑图像或目标图像中选择待处理区域,并至少基于第一触控操作的第一操作特征按照预设手动修图规则对待处理区域进行手动修图处理。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    在电子设备处于自动模式下,检测到第二触控操作,基于第二触控操作的第二操作特征确定出自动修图强度特征,并从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理。
  5. 根据权利要求4所述的方法,其特征在于,所述从预设自动修图规则所包含的预设自动参数中确定出至少与自动修图强度特征相匹配的自动修图参数对预设区域进行自动修图处理包括:
    确定当前所对应的第一目标修图功能,并从预设自动修图规则所包含的预设自动参数中确定出与自动修图强度特征和第一目标修图 功能相匹配的自动修图参数,对预设区域进行自动修图处理。
  6. 根据权利要求3至5任一项所述的方法,其特征在于,所述方法还包括:
    在电子设备处于手动模式下,确定当前所对应的第二目标修图功能,并从预设手动修图规则所包含的预设手动参数中确定出至少与当前所对应的第二目标修图功能相匹配的手动修图参数,对基于第一触控操作所选中的待处理区域进行手动修图处理。
  7. 根据权利要求3所述的方法,其特征在于,在显示区域中除第一区域以外的其他区域上显示修图功能界面,并在所述修图功能界面中显示有对应修图功能的功能按键;所述方法还包括:
    响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作生成功能切换指令,并在修图功能之间进行功能切换,以切换至第三触控操作所选中的目标修图功能;或者,
    在当前所对应的自动模式或手动模式下,响应于实施在目标功能按键上的第三触控操作进入与目标功能按键相对应的修图功能。
  9. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    与所述一个或多个处理器通信连接的存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为执行权利要求3至8任一项所述的方法。
  10. 一种计算机可读存储介质,其存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求3至8中任一项所述的方法。
  11. 一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现权利要求3至8任一项所述的方法。
PCT/CN2021/077223 2020-02-24 2021-02-22 图像处理方法、组件、电子设备及存储介质 WO2021169910A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/888,333 US11880556B2 (en) 2020-02-24 2022-08-15 Image processing for implementing multiple graph repairing functions
US18/389,763 US20240211121A1 (en) 2020-02-24 2023-12-19 Image processign method and component, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010113048.9 2020-02-24
CN202010113048.9A CN111338545A (zh) 2020-02-24 2020-02-24 图像处理方法、组件、电子设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/888,333 Continuation US11880556B2 (en) 2020-02-24 2022-08-15 Image processing for implementing multiple graph repairing functions

Publications (1)

Publication Number Publication Date
WO2021169910A1 true WO2021169910A1 (zh) 2021-09-02

Family

ID=71185528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077223 WO2021169910A1 (zh) 2020-02-24 2021-02-22 图像处理方法、组件、电子设备及存储介质

Country Status (3)

Country Link
US (2) US11880556B2 (zh)
CN (1) CN111338545A (zh)
WO (1) WO2021169910A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338545A (zh) 2020-02-24 2020-06-26 北京字节跳动网络技术有限公司 图像处理方法、组件、电子设备及存储介质
CN112990042B (zh) * 2021-03-25 2023-07-25 北京百度网讯科技有限公司 图像标注审核方法、装置、设备、存储介质及程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037460A1 (en) * 2002-08-22 2004-02-26 Eastman Kodak Company Method for detecting objects in digital images
CN103927719A (zh) * 2014-04-04 2014-07-16 北京金山网络科技有限公司 图片处理方法及装置
CN109190503A (zh) * 2018-08-10 2019-01-11 珠海格力电器股份有限公司 美颜方法、装置、计算装置和存储介质
CN110113483A (zh) * 2019-04-19 2019-08-09 华为技术有限公司 使用电子设备的增强功能的方法及相关装置
CN111338545A (zh) * 2020-02-24 2020-06-26 北京字节跳动网络技术有限公司 图像处理方法、组件、电子设备及存储介质

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI417811B (zh) * 2008-12-31 2013-12-01 Altek Corp The Method of Face Beautification in Digital Image
KR101590868B1 (ko) * 2009-07-17 2016-02-02 삼성전자주식회사 피부색을 보정하는 영상 처리 방법, 장치, 디지털 촬영 장치, 및 컴퓨터 판독가능 저장매체
JP5842551B2 (ja) * 2011-11-08 2016-01-13 セイコーエプソン株式会社 画像登録方法、記録媒体および情報処理装置
US10553006B2 (en) * 2014-09-30 2020-02-04 Tcms Transparent Beauty, Llc Precise application of cosmetic looks from over a network environment
US9977581B2 (en) * 2015-03-11 2018-05-22 Adobe Systems Incorporated Selection refinement tool
TWI587242B (zh) * 2015-09-08 2017-06-11 宏達國際電子股份有限公司 人臉影像調整系統及人臉影像調整方法
US11120495B2 (en) * 2016-09-15 2021-09-14 GlamST LLC Generating virtual makeup products
CN106484614B (zh) * 2016-09-29 2019-01-22 厦门美图之家科技有限公司 一种核对图片处理效果的方法、装置及移动终端
KR102581945B1 (ko) * 2017-02-07 2023-09-25 삼성전자주식회사 스킨 정보 제공 방법 및 이를 지원하는 전자 장치
CN107123081A (zh) * 2017-04-01 2017-09-01 北京小米移动软件有限公司 图像处理方法、装置及终端
CN108038836B (zh) * 2017-11-29 2020-04-17 维沃移动通信有限公司 一种图像处理方法、装置及移动终端
JP7414409B2 (ja) * 2019-06-07 2024-01-16 キヤノン株式会社 学習方法
US11189104B2 (en) * 2019-08-28 2021-11-30 Snap Inc. Generating 3D data in a messaging system
US11410401B2 (en) * 2019-08-28 2022-08-09 Snap Inc. Beautification techniques for 3D data in a messaging system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037460A1 (en) * 2002-08-22 2004-02-26 Eastman Kodak Company Method for detecting objects in digital images
CN103927719A (zh) * 2014-04-04 2014-07-16 北京金山网络科技有限公司 图片处理方法及装置
CN109190503A (zh) * 2018-08-10 2019-01-11 珠海格力电器股份有限公司 美颜方法、装置、计算装置和存储介质
CN110113483A (zh) * 2019-04-19 2019-08-09 华为技术有限公司 使用电子设备的增强功能的方法及相关装置
CN111338545A (zh) * 2020-02-24 2020-06-26 北京字节跳动网络技术有限公司 图像处理方法、组件、电子设备及存储介质

Also Published As

Publication number Publication date
US20240211121A1 (en) 2024-06-27
US11880556B2 (en) 2024-01-23
US20220391079A1 (en) 2022-12-08
CN111338545A (zh) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2021169910A1 (zh) 图像处理方法、组件、电子设备及存储介质
JP5955299B2 (ja) 表示制御装置、表示制御方法、プログラム及び情報記憶媒体
US20160255393A1 (en) Browser-based method and device for indicating mode switch
JP6405316B2 (ja) エンタテインメント装置、表示制御方法、プログラム及び情報記憶媒体
WO2021169916A1 (zh) 图像处理方法、组件、电子设备及存储介质
JPH0822370A (ja) 情報処理装置
WO2021169830A1 (zh) 图像处理方法、组件、电子设备及存储介质
WO2021218311A1 (zh) 视频播放进度控制方法、装置、存储介质及电子设备
CN104219553A (zh) 一种智能机顶盒的遥控和控制方法及装置
JPH08328795A (ja) ツールボタンの設定のための方法及び編集装置
US11016788B2 (en) Application launching method and display device
WO2023274067A1 (zh) 图标生成方法、装置、电子设备和可读存储介质
WO2022111458A1 (zh) 图像拍摄方法和装置、电子设备及存储介质
WO2024104069A1 (zh) 虚拟遥控器显示方法、装置、电子设备及可读存储介质
CN113051022A (zh) 图形界面的处理方法及图形界面处理装置
JP3161817B2 (ja) タッチパネルによる表示画像選択指定方法および装置
CN205375043U (zh) 控制装置及烹饪电器
CN112558811A (zh) 内容处理方法、装置及电子设备
CN112367487A (zh) 视频录制方法和电子设备
CN110162170A (zh) 基于终端可扩展区域的控制方法及装置
EP4391519A1 (en) Video generation method and apparatus, and device and storage medium
JP7157226B1 (ja) 加工処理システム及びヘルプ処理方法
CN118101822A (zh) 控制方法、装置、电子设备及可读存储介质
TW578086B (en) Executable self-defining keyboard function key system and method of computer
JPH0830418A (ja) グラフィカルユーザインタフェースの構成部品の編集方式

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21760649

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21760649

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21760649

Country of ref document: EP

Kind code of ref document: A1