CN107817939B - Image processing method and mobile terminal - Google Patents

Image processing method and mobile terminal Download PDF

Info

Publication number
CN107817939B
CN107817939B CN201711021458.5A CN201711021458A CN107817939B CN 107817939 B CN107817939 B CN 107817939B CN 201711021458 A CN201711021458 A CN 201711021458A CN 107817939 B CN107817939 B CN 107817939B
Authority
CN
China
Prior art keywords
target image
image
image area
user
preview interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711021458.5A
Other languages
Chinese (zh)
Other versions
CN107817939A (en
Inventor
熊晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711021458.5A priority Critical patent/CN107817939B/en
Publication of CN107817939A publication Critical patent/CN107817939A/en
Application granted granted Critical
Publication of CN107817939B publication Critical patent/CN107817939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0486Drag-and-drop
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration

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)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides an image processing method and a mobile terminal, wherein the method comprises the following steps: determining at least one target image area in a shooting preview interface; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the invention can respectively perform image processing on each target image area in the shooting preview interface, so that the image has more diversity or layering, thereby improving the flexibility of image processing.

Description

Image processing method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image processing method and a mobile terminal.
Background
As the photographing function of the mobile terminal is more diversified, people often use an image processing function, such as background blurring, brightness adjustment, or beauty processing, for an image in order to obtain a better photographing effect. However, in the conventional image processing technology, generally, only the entire image can be processed accordingly. For example, when background blurring is used, it is common to perform blurring processing uniformly by using all images except a certain subject as a background; for another example, when the beauty processing is used, the beauty processing is generally performed uniformly on all images; and so on. Thus, the images obtained by the conventional image processing techniques lack diversity or gradation.
Disclosure of Invention
The embodiment of the invention provides an image processing method and a mobile terminal, and aims to solve the problem that an existing image processing method cannot perform regional image processing, so that an image lacks diversity or layering.
In order to solve the technical problem, the invention is realized as follows: an image processing method comprising:
determining at least one target image area in a shooting preview interface;
respectively displaying an image parameter adjusting control corresponding to each target image area;
and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
In a first aspect, an embodiment of the present invention provides an image processing method, including:
determining at least one target image area in a shooting preview interface;
respectively displaying an image parameter adjusting control corresponding to each target image area;
and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the determining module is used for determining at least one target image area in the shooting preview interface;
the display module is used for respectively displaying the image parameter adjusting control corresponding to each target image area;
and the adjusting module is used for adjusting the image parameters of each target image area respectively based on the image parameter adjusting control.
In a third aspect, an embodiment of the present invention provides another mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program implements the steps of the image processing method when executed by the processor.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the above-mentioned image processing method.
In the embodiment of the invention, at least one target image area in a shooting preview interface is determined; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can respectively perform image processing on each target image area in the shooting preview interface, so that the image has more diversity or layering, and the flexibility of image processing can be improved.
Drawings
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another image processing method provided by the embodiment of the invention;
FIG. 3 is a flow chart of another image processing method provided by the embodiment of the invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, and as shown in fig. 1, an image processing method includes the following steps:
step 101, determining at least one target image area in a shooting preview interface.
In this step, the mobile terminal may determine at least one target image area in the photographing preview interface.
The number of the target image areas may be one, two, or more, which is not limited in this embodiment of the present invention.
The manner of determining the target image area may be determined according to a selection operation of a user. The selection operation by the user may be a touch operation or a voice operation by the user. At least one target image area in the shooting preview interface is determined according to the selection operation of the user, so that the diversity or the layering sense of the image can be improved, the flexibility of image processing can be improved, and the image processing can better meet the requirements of the user. In addition, the interest, participation or achievement of the user in the shooting process can be enhanced, and therefore user experience is improved.
Optionally, the step of determining at least one target image area in the shooting preview interface includes:
detecting touch operation of a user in the shooting preview interface;
and determining at least one target image area according to the touch operation.
In the embodiment of the invention, the mobile terminal can detect the touch operation of the user in the shooting preview interface and determine at least one target image area according to the touch operation. At least one target image area is determined through touch operation of a user, so that the determination of the target image area is quicker and more convenient.
And 102, respectively displaying the image parameter adjusting control corresponding to each target image area.
In this step, the mobile terminal may respectively display the image parameter adjustment control corresponding to each target image area in the shooting preview interface, so as to implement image processing on each target image area through the image parameter adjustment control.
When the number of the target image areas is two or more, the image parameter adjustment control corresponding to each target image area is respectively displayed, which may include the following two optional embodiments.
One embodiment is: and displaying the image parameter adjusting control corresponding to the target image area every time one target image area is determined.
The other implementation mode is as follows: and determining all target image areas, and then respectively displaying the image parameter adjusting control corresponding to each target image area.
Since the image parameters involved in the image processing may include multiple items, each target image region may correspond to one image parameter adjustment control or multiple image parameter adjustment controls, and different image parameter adjustment controls are used for respectively controlling different image parameters. For example, image parameter adjustment control No. 1 is used to control the degree of blurring, image parameter adjustment control No. 2 is used to control the degree of beauty, and so on.
In addition, each target image area can also correspond to one image parameter adjusting control, and multiple image parameters can be controlled through the image parameter adjusting control.
The step enables the mobile terminal to flexibly and conveniently process the image in each target image area by respectively displaying the image parameter adjusting control corresponding to each target image area.
And 103, respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
In this step, the mobile terminal may adjust the image parameters of each target image area based on the image parameter adjustment control.
Wherein the image parameters may comprise at least one of a degree of blurring, a degree of beauty, a magnitude of brightness, a magnitude of sharpness, a magnitude of contrast, a magnitude of saturation and a magnitude of chrominance.
When the number of the target image areas is two or more, the image parameters of each target image area are respectively adjusted, and the following two optional embodiments may be included.
One embodiment is as follows: and displaying an image parameter adjusting control corresponding to the target image area every time one target image area is determined, and adjusting the image parameters of the target image area based on the image parameter adjusting control of the target image area.
The other implementation mode is as follows: determining all target image areas, respectively displaying the image parameter adjusting control corresponding to each target image area, and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control corresponding to each target image area.
Therefore, the mobile terminal achieves the purpose of adjusting the image parameters of each target image area in the shooting preview interface. It should be noted that, the mobile terminal may present the image processing effect in the shooting preview interface in real time, so that the user can timely feel the image processing effect.
It should be further noted that, when the mobile terminal receives a shooting instruction, for example, a user clicks a shooting button, the mobile terminal may process the shot image so that the shot image matches with the image processing effect presented in the shooting preview interface. Then, the mobile terminal can send the processed shot image to a picture editor for coding, so as to generate a picture meeting the requirements of the user. Since the above-described photographing process can be implemented by the prior art, this is not further described in the embodiment of the present invention.
In the embodiment of the invention, at least one target image area in a shooting preview interface is determined; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can respectively perform image processing on each target image area in the shooting preview interface, so that the image has more diversity or layering, and the flexibility of image processing can be improved.
Referring to fig. 2, fig. 2 is a flowchart of another image processing method according to an embodiment of the present invention, and the embodiment of the present invention is different from the embodiment of the present invention shown in fig. 1 in that a technical solution for determining a target image area through a sliding operation of a user is provided. As shown in fig. 2, an image processing method includes the steps of:
step 201, detecting a sliding operation of a user in a shooting preview interface.
In this step, the user may input a sliding operation on the shooting preview interface, and the mobile terminal may detect the sliding operation of the user on the shooting preview interface.
Step 202, if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area.
In this step, if the user inputs a sliding operation in the shooting preview interface and the sliding trajectory is a closed trajectory, the mobile terminal may determine an area surrounded by the sliding trajectory of the sliding operation as the target image area.
In the embodiment of the invention, the mobile terminal determines the target image area through the sliding operation input by the user, so that the user can obtain the target area with any size or shape, and the user can select the target image area more flexibly.
In addition, the mobile terminal may provide some selectable region shapes for the user to select the target image region, for example, a circular region shape, a heart-shaped region shape, a square region shape, an elliptical region shape, or a flower region shape, etc. Therefore, the user can directly select the area shape to select the target image area according to the requirement, and the efficiency of selecting the target image area by the user is improved.
In addition, in order to make the user selection of the target image area finer, the mobile terminal may enlarge the image displayed on the photographing preview interface when the user selects the target image area, and may reduce the image displayed on the photographing preview interface to an initial size after the user has selected the target image area.
In the embodiment of the present invention, the number of the target image areas may be one, two, or more.
For convenience of understanding, the blurring process applied to the image according to the embodiment of the present invention will be described as an example. When the number of the target image areas determined by the mobile terminal is multiple, the mobile terminal can perform blurring processing on different target image areas to different degrees, so that the highlighting degree of each target image area in the shooting preview interface is different, and the image has diversity or layering.
If the user needs to select a plurality of target image areas, steps 201 to 202 may be repeatedly executed a plurality of times.
And step 203, respectively displaying the image parameter adjusting control corresponding to each target image area.
In this step, the mobile terminal may respectively display an image parameter adjustment control corresponding to each target image area in the shooting preview interface, so as to implement image processing on each target image area through the image parameter adjustment control. For example, the mobile terminal may respectively display the blurring degree adjustment control corresponding to each target image area in the shooting preview interface.
The image parameters involved in the image processing may comprise a plurality of items, such as two or more of a blurring level, a beauty level, a brightness level, a sharpness level, a contrast level, a saturation level and a chrominance level.
Thus, each target image region may correspond to an image parameter adjustment control or a plurality of image parameter adjustment controls, different image parameter adjustment controls being used to control different image parameters respectively. For example, each target image region may correspond to two image parameter adjustment controls, where the image parameter adjustment control No. 1 is a blurring degree adjustment control for controlling the blurring degree of the target image region, and the image parameter adjustment control No. 2 is a beauty degree adjustment control for controlling the beauty degree of the target image region, and so on.
In the step, the image parameter adjusting control corresponding to each target image area is respectively displayed, so that the mobile terminal can flexibly and conveniently process the image of each target image area.
And 204, respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
In this step, the mobile terminal may adjust the image parameters of each target image area based on the image parameter adjustment control. For example, the mobile terminal may adjust the blurring degree of each target image area separately based on the blurring degree adjustment control.
Optionally, the step of respectively adjusting the image parameter of each target image area based on the image parameter adjustment control includes:
detecting touch operation of a user on the image parameter adjusting control;
and adjusting the image parameters of the target image area corresponding to each image parameter adjusting control based on the detected touch operation.
In the embodiment of the invention, the user can input the image parameters of the target image area to the mobile terminal through the touch operation of the image parameter adjusting control, so that the user can input the image parameters of the target image area more intuitively and conveniently, and the user can flexibly input the image parameters of the target image area according to the self requirement, thereby further improving the flexibility of image processing.
The embodiment of the present invention may also be implemented in combination with the embodiment of the invention shown in fig. 1, and achieve the same beneficial effects, which are not described herein again to avoid repetition.
Optionally, a slider is arranged on the image parameter adjusting control;
the step of detecting the touch operation of the user on the image parameter adjusting control comprises the following steps:
detecting the dragging operation of a user on a sliding block on the image parameter adjusting control;
the step of adjusting the image parameters of the target image area corresponding to each image parameter adjustment control based on the detected touch operation includes:
if the dragging operation is detected, obtaining dragging parameters of the sliding block;
adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters;
wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
In the embodiment of the invention, a user can input dragging operation to the slider on the image parameter adjusting control, and the mobile terminal can adjust the image parameters of the target image area according to the dragging direction and/or the dragging distance of the dragging operation.
For example, a slider is disposed on the blurring degree adjustment control, and a position of the slider on the blurring degree adjustment control, that is, a dragging distance of the slider may reflect the blurring degree of the image. For example, the controllable range of the blurring degree adjustment control is 0 to 20, and the blurring degree of one unit is adjusted every time the slider moves by one unit length.
The dragging direction of the slider on the blurring degree adjusting control can also reflect the blurring degree of the image. For example, the slider slides upwards on the blurring degree adjustment control, which may indicate that the blurring degree of the image is enhanced; the sliding block slides downwards on the blurring degree adjusting control to express that the blurring degree of the image is weakened; and so on.
The embodiment of the present invention can also be implemented in combination with the embodiment of the present invention shown in fig. 1, and achieve the same beneficial effects, which are not described herein again to avoid repetition.
The rest can refer to the embodiment of the invention shown in fig. 1, and can achieve the same beneficial effects, and the details are not repeated for avoiding repetition.
In the embodiment of the invention, the sliding operation of a user in a shooting preview interface is detected; if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can determine the target image areas by detecting the sliding operation of the user in the shooting preview interface, and respectively perform image processing on each target image area, so that the image has more diversity or layering, and the embodiment of the invention can improve the flexibility of image processing.
Referring to fig. 3, fig. 3 is a flowchart of another image processing method according to an embodiment of the present invention, and the embodiment of the present invention is different from the embodiment of the present invention shown in fig. 1 in that a technical solution for determining a target image area through a click operation of a user is provided. As shown in fig. 3, an image processing method includes the steps of:
step 301, detecting a click operation of a user in the shooting preview interface.
In this step, the user may input a click operation on the shooting preview interface, and the mobile terminal may detect the click operation of the user on the shooting preview interface.
Step 302, if the click operation is detected, performing contour recognition on an operation area of the click operation.
In this step, if the user inputs a click operation in the shooting preview interface, the mobile terminal may perform contour recognition on an operation area of the click operation.
Specifically, the mobile terminal can transmit the position coordinates of the user click operation to the bottom layer, and the bottom layer identifies the overall outline of the object in the operation area of the click operation by performing an outline identification algorithm on the coordinate area clicked by the user in the preview data, and can outline and display the overall outline of the object for the user.
And step 303, determining a region surrounded by the identified outline as a target image region.
In this step, the mobile terminal may determine an area surrounded by the identified outline as a target image area.
In addition, the mobile terminal can also track the object, and specifically, the mobile terminal transmits the object contour identified by the contour identification algorithm to the object tracking algorithm to track the object. When the object is dynamic, the mobile terminal can acquire the coordinates of the object in real time through an object tracking algorithm and adjust the target image area surrounded by the shooting preview interface in real time.
In the embodiment of the invention, the mobile terminal can determine the target image area through the click operation of the user, compared with the mode of determining the target image area through the sliding operation of the user, the operation is simpler and quicker, and the time spent by the user in selecting the target image area is shorter.
For convenience of understanding, the following description will be given taking an example of a case where the embodiment of the present invention is applied to a beauty process of an image. When the number of the target image areas determined by the mobile terminal is multiple, the mobile terminal can perform different degrees of beauty treatment on different target image areas, so that the beauty degrees of all the target image areas in the shooting preview interface are different, and the image has more diversity or layering.
If the user needs to select a plurality of target image regions, steps 301 to 303 may be repeatedly executed a plurality of times.
And 304, respectively displaying the image parameter adjusting control corresponding to each target image area.
In this step, the mobile terminal may respectively display an image parameter adjustment control corresponding to each target image area in the shooting preview interface, so as to implement image processing on each target image area through the image parameter adjustment control. For example, the mobile terminal may respectively display the beauty degree adjustment control corresponding to each target image area in the shooting preview interface.
The image parameters involved in the image processing may comprise a plurality of terms, such as two or more of a blurring degree, a beauty degree, a brightness size, a sharpness size, a contrast size, a saturation size and a chrominance size.
Thus, each target image region may correspond to an image parameter adjustment control or a plurality of image parameter adjustment controls, different image parameter adjustment controls being used to control different image parameters respectively. For example, each target image region may correspond to two image parameter adjustment controls, where the image parameter adjustment control No. 1 is a blurring degree adjustment control for controlling the blurring degree of the target image region, and the image parameter adjustment control No. 2 is a beauty degree adjustment control for controlling the beauty degree of the target image region, and so on.
The step enables the mobile terminal to flexibly and conveniently process the image in each target image area by respectively displaying the image parameter adjusting control corresponding to each target image area.
And 305, respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
In this step, the mobile terminal may adjust the image parameters of each target image area based on the image parameter adjustment control. For example, the mobile terminal may adjust the beauty level of each target image region based on the beauty level adjustment control, respectively.
Optionally, the step of respectively adjusting the image parameter of each target image area based on the image parameter adjustment control includes:
detecting touch operation of a user on the image parameter adjusting control;
and adjusting the image parameters of the target image area corresponding to each image parameter adjusting control based on the detected touch operation.
In the embodiment of the invention, the user can input the image parameters of the target image area to the mobile terminal through the touch operation on the image parameter adjusting control, so that the user can input the image parameters of the target image area more intuitively and conveniently, and the user can flexibly input the image parameters of the target image area according to the self requirement, thereby further improving the flexibility of image processing.
Optionally, a sliding block is arranged on the image parameter adjusting control;
the step of detecting the touch operation of the user on the image parameter adjusting control comprises the following steps:
detecting the dragging operation of a user on a sliding block on the image parameter adjusting control;
the step of adjusting the image parameters of the target image area corresponding to each image parameter adjustment control based on the detected touch operation includes:
if the dragging operation is detected, obtaining dragging parameters of the sliding block;
adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters;
wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
In the embodiment of the invention, a user can input dragging operation to the slider on the image parameter adjusting control, and the mobile terminal can adjust the image parameters of the target image area according to the dragging direction and/or the dragging distance of the dragging operation.
For example, a slider is disposed on the beauty degree adjusting control, and the position of the slider on the beauty degree adjusting control, that is, the dragging distance of the slider can reflect the beauty degree of the image. For example, the controllable range of the beauty-level adjustment control is 0 to 10, and the beauty level of one unit is adjusted every time the slider moves by one unit length.
In addition, the form of the image parameter adjusting control can be a common image parameter adjusting control and can also be an identified object outline, and the image processing degree can be respectively and correspondingly improved and reduced by sliding the sliding block on the object outline along different directions.
The rest can refer to the embodiment of the invention shown in fig. 1, and can achieve the same beneficial effects, and the details are not repeated for avoiding repetition.
In the embodiment of the invention, the click operation of a user in the shooting preview interface is detected; if the click operation is detected, carrying out contour recognition on an operation area of the click operation; if the user inputs a click operation in the shooting preview interface, the mobile terminal can perform contour recognition on an operation area of the click operation; determining a region surrounded by the identified outline as a target image region; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can determine the target image areas by detecting the clicking operation of the user in the shooting preview interface and respectively perform the image processing on each target image area, so that the image has more diversity or layering, and the embodiment of the invention can improve the flexibility of the image processing.
Referring to fig. 4, fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention, as shown in fig. 4, a mobile terminal 400 includes a determining module 401, a display module 402, and an adjusting module 403, where the determining module 401 is connected to the display module 402, and the display module 402 is connected to the adjusting module 403:
a determining module 401, configured to determine at least one target image area in the shooting preview interface;
a display module 402, configured to display the image parameter adjustment controls corresponding to each target image area;
and an adjusting module 403, configured to adjust the image parameter of each target image area based on the image parameter adjusting control.
Optionally, as shown in fig. 5, the determining module 401 includes:
the first detection sub-module 4011 is configured to detect a touch operation of a user in the shooting preview interface;
the determining sub-module 4012 is configured to determine at least one target image area according to the touch operation.
Optionally, the first detection sub-module 4011 is specifically configured to: detecting sliding operation of a user in the shooting preview interface;
the determination sub-module 4012 is specifically configured to: and if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area.
Optionally, the first detection sub-module 4011 is specifically configured to: detecting the clicking operation of a user in the shooting preview interface;
the determination sub-module 4012 is specifically configured to:
if the clicking operation is detected, carrying out contour recognition on an operation area of the clicking operation;
and determining the area surrounded by the identified outline as a target image area.
Optionally, as shown in fig. 6, the adjusting module 403 includes:
the second detection submodule 4031 is used for detecting the touch operation of a user on the image parameter adjusting control;
and the adjusting sub-module 4032 is configured to adjust, based on the detected touch operation, image parameters of the target image area corresponding to each image parameter adjusting control.
Optionally, a sliding block is arranged on the image parameter adjusting control;
the second detection submodule 4031 is specifically configured to:
detecting the dragging operation of a user on a sliding block on the image parameter adjusting control;
the adjusting submodule 4032 is specifically configured to:
if the dragging operation is detected, the dragging parameters of the sliding block are obtained;
adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters;
wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
Optionally, the image parameter includes at least one of a blurring degree, a beauty degree, a brightness size, a sharpness size, a contrast size, a saturation size, and a chroma size.
The mobile terminal 400 provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
In the embodiment of the invention, at least one target image area in a shooting preview interface is determined; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can respectively perform image processing on each target image area in the shooting preview interface, so that the image has more diversity or layering, and the flexibility of image processing can be improved.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some of the components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 710 is configured to: determining at least one target image area in a shooting preview interface; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control.
Optionally, the processor 710 is further configured to: detecting touch operation of a user in the shooting preview interface; and determining at least one target image area according to the touch operation.
Optionally, the processor 710 is further configured to: detecting sliding operation of a user in the shooting preview interface; and if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area.
Optionally, the processor 710 is further configured to: detecting a clicking operation of a user in the shooting preview interface; if the clicking operation is detected, carrying out contour recognition on an operation area of the clicking operation; and determining the area surrounded by the identified outline as a target image area.
Optionally, the processor 710 is further configured to: detecting touch operation of a user on the image parameter adjusting control; and adjusting the image parameters of the target image area corresponding to each image parameter adjusting control based on the detected touch operation.
Optionally, a sliding block is arranged on the image parameter adjusting control; processor 710, further configured to: detecting the dragging operation of a user on a sliding block on the image parameter adjusting control; if the dragging operation is detected, obtaining dragging parameters of the sliding block; adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters; wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
Optionally, the image parameter includes at least one of a blurring degree, a beauty degree, a brightness size, a sharpness size, a contrast size, a saturation size, and a chromaticity size.
In the embodiment of the invention, at least one target image area in a shooting preview interface is determined; respectively displaying an image parameter adjusting control corresponding to each target image area; and respectively adjusting the image parameters of each target image area based on the image parameter adjusting control. In this way, the embodiment of the invention can perform image processing on each target image area in the shooting preview interface, so that the flexibility of image processing can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 701 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and tapping), and the like; the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine a type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 7, the touch panel 7071 and the display panel 7061 are implemented as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-described embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. An image processing method, comprising:
determining at least one target image area in a shooting preview interface;
respectively displaying an image parameter adjusting control corresponding to each target image area;
respectively adjusting the image parameters of each target image area based on the image parameter adjusting control;
wherein the step of determining at least one target image area in the shooting preview interface comprises:
detecting touch operation of a user in the shooting preview interface;
determining at least one target image area according to the touch operation;
the step of detecting a touch operation of a user in the shooting preview interface includes:
detecting the clicking operation of a user in the shooting preview interface;
the step of determining at least one target image area according to the touch operation includes:
if the clicking operation is detected, carrying out contour recognition on an operation area of the clicking operation;
determining a region surrounded by the identified outline as a target image region;
the step of respectively displaying the image parameter adjustment control corresponding to each target image area comprises the following steps:
displaying the identified outline as an image parameter adjusting control corresponding to the target image area;
the method further comprises the following steps:
and in the process of determining the target image area, controlling the image displayed on the shooting preview interface to be enlarged, and after the target image area is determined, controlling the image displayed on the shooting preview interface to be reduced to the initial size.
2. The method according to claim 1, wherein the step of detecting a touch operation of a user in the shooting preview interface further comprises:
detecting sliding operation of a user in the shooting preview interface;
the step of determining at least one target image area according to the touch operation includes:
and if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area.
3. The method according to claim 1 or 2, wherein the step of adjusting the image parameter of each target image area based on the image parameter adjustment control comprises:
detecting touch operation of a user on the image parameter adjusting control;
and adjusting the image parameters of the target image area corresponding to each image parameter adjusting control based on the detected touch operation.
4. The method of claim 3, wherein a slider is disposed on the image parameter adjustment control;
the step of detecting the touch operation of the user on the image parameter adjusting control comprises the following steps:
detecting the dragging operation of a user on a sliding block on the image parameter adjusting control;
the step of adjusting the image parameters of the target image area corresponding to each image parameter adjustment control based on the detected touch operation includes:
if the dragging operation is detected, the dragging parameters of the sliding block are obtained;
adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters;
wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
5. The method according to claim 1 or 2, wherein the image parameters comprise at least one of a blurring level, a beauty level, a brightness level, a sharpness level, a contrast level, a saturation level, and a chrominance level.
6. A mobile terminal, comprising:
the determining module is used for determining at least one target image area in the shooting preview interface; the display module is used for respectively displaying the image parameter adjusting control corresponding to each target image area;
the adjusting module is used for adjusting the image parameters of each target image area based on the image parameter adjusting control;
the determining module comprises:
the first detection submodule is used for detecting touch operation of a user in the shooting preview interface;
the determining submodule is used for determining at least one target image area according to the touch operation;
the first detection submodule is specifically configured to: detecting a clicking operation of a user in the shooting preview interface;
the determination submodule is specifically configured to:
if the clicking operation is detected, carrying out contour recognition on an operation area of the clicking operation;
determining a region surrounded by the identified outline as a target image region;
the display module is specifically configured to:
displaying the identified outline as an image parameter adjusting control corresponding to the target image area;
the mobile terminal further includes:
and the control module is used for controlling the image displayed on the shooting preview interface to be enlarged in the process of determining the target image area, and controlling the image displayed on the shooting preview interface to be reduced to the initial size after the target image area is determined.
7. The mobile terminal according to claim 6, wherein the first detection submodule is further configured to: detecting sliding operation of a user in the shooting preview interface;
the determining submodule is specifically further configured to: and if the sliding operation is detected and the sliding track is a closed track, determining an area surrounded by the sliding track of the sliding operation as a target image area.
8. The mobile terminal according to claim 6 or 7, wherein the adjusting module comprises:
the second detection sub-module is used for detecting the touch operation of the user on the image parameter adjusting control;
and the adjusting sub-module is used for adjusting the image parameters of the target image area corresponding to each image parameter adjusting control based on the detected touch operation.
9. The mobile terminal according to claim 8, wherein a slider is disposed on the image parameter adjustment control;
the second detection submodule is specifically configured to:
detecting the dragging operation of a user on a sliding block on the image parameter adjusting control;
the regulator submodule is specifically configured to:
if the dragging operation is detected, the dragging parameters of the sliding block are obtained;
adjusting the image parameters of the target image area corresponding to each image parameter adjusting control according to the dragging parameters;
wherein the dragging parameter comprises a dragging direction and/or a dragging distance.
10. The mobile terminal according to claim 6 or 7, wherein the image parameters comprise at least one of a blurring level, a beauty level, a brightness level, a sharpness level, a contrast level, a saturation level and a chrominance level.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the image processing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 5.
CN201711021458.5A 2017-10-27 2017-10-27 Image processing method and mobile terminal Active CN107817939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711021458.5A CN107817939B (en) 2017-10-27 2017-10-27 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711021458.5A CN107817939B (en) 2017-10-27 2017-10-27 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107817939A CN107817939A (en) 2018-03-20
CN107817939B true CN107817939B (en) 2023-02-07

Family

ID=61603954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711021458.5A Active CN107817939B (en) 2017-10-27 2017-10-27 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107817939B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108519846B (en) * 2018-03-28 2020-05-19 维沃移动通信有限公司 Image editing processing method and terminal
CN108574803B (en) * 2018-03-30 2020-01-14 Oppo广东移动通信有限公司 Image selection method and device, storage medium and electronic equipment
CN108924410B (en) * 2018-06-15 2021-01-29 Oppo广东移动通信有限公司 Photographing control method and related device
CN108986110A (en) * 2018-07-02 2018-12-11 Oppo(重庆)智能科技有限公司 Image processing method, device, mobile terminal and storage medium
TWI670647B (en) * 2018-09-18 2019-09-01 瑞昱半導體股份有限公司 System, method and non-transitory computer readable medium for color adjustment
CN110505400B (en) * 2019-08-16 2021-09-07 维沃移动通信有限公司 Preview image display adjustment method and terminal
CN111324270A (en) * 2020-02-24 2020-06-23 北京字节跳动网络技术有限公司 Image processing method, assembly, electronic device and storage medium
CN112312021B (en) * 2020-10-30 2022-04-15 维沃移动通信有限公司 Shooting parameter adjusting method and device
CN112887537B (en) * 2021-01-18 2022-08-23 维沃移动通信有限公司 Image processing method and electronic device
CN113157179A (en) * 2021-03-23 2021-07-23 北京达佳互联信息技术有限公司 Picture adjustment parameter adjusting method and device, electronic equipment and storage medium
CN113190149B (en) * 2021-03-31 2023-06-02 北京达佳互联信息技术有限公司 Image processing method, device, electronic equipment and storage medium
CN114143453B (en) * 2021-11-24 2024-06-11 维沃移动通信有限公司 Light supplementing method and device, electronic equipment and storage medium
CN116684725B (en) * 2022-10-18 2024-04-16 荣耀终端有限公司 Layout method and device of application interface, electronic equipment, storage medium and chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297699A (en) * 2013-05-31 2013-09-11 北京小米科技有限责任公司 Method and terminal for shooting images
CN103533240A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Method and device for calibrating parameters in real time during photographing and photo post-processing
CN104221359A (en) * 2012-03-06 2014-12-17 苹果公司 Color adjustors for color segments
CN104660910A (en) * 2014-03-03 2015-05-27 深圳市中兴移动通信有限公司 Image processing device and image processing method
CN106101544A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221359A (en) * 2012-03-06 2014-12-17 苹果公司 Color adjustors for color segments
CN103297699A (en) * 2013-05-31 2013-09-11 北京小米科技有限责任公司 Method and terminal for shooting images
CN103533240A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Method and device for calibrating parameters in real time during photographing and photo post-processing
CN104660910A (en) * 2014-03-03 2015-05-27 深圳市中兴移动通信有限公司 Image processing device and image processing method
CN106101544A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Also Published As

Publication number Publication date
CN107817939A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN107817939B (en) Image processing method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN109461117B (en) Image processing method and mobile terminal
CN108089891B (en) Application program starting method and mobile terminal
CN109361867B (en) Filter processing method and mobile terminal
CN108763317B (en) Method for assisting in selecting picture and terminal equipment
CN108174109B (en) Photographing method and mobile terminal
CN108881782B (en) Video call method and terminal equipment
CN107741814B (en) Display control method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN108132749B (en) Image editing method and mobile terminal
CN109710130B (en) Display method and terminal
CN109542321B (en) Control method and device for screen display content
CN109101151B (en) Information display processing method and terminal equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN107729100B (en) Interface display control method and mobile terminal
CN109240575A (en) A kind of screen control method and electronic equipment
CN109902679B (en) Icon display method and terminal equipment
CN109462727B (en) Filter adjusting method and mobile terminal
CN109639981B (en) Image shooting method and mobile terminal
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN109491741B (en) Method and terminal for switching background skin
CN110769303A (en) Playing control method and device and mobile terminal

Legal Events

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