CN108335258B - Image processing method and device of mobile terminal - Google Patents

Image processing method and device of mobile terminal Download PDF

Info

Publication number
CN108335258B
CN108335258B CN201711480365.9A CN201711480365A CN108335258B CN 108335258 B CN108335258 B CN 108335258B CN 201711480365 A CN201711480365 A CN 201711480365A CN 108335258 B CN108335258 B CN 108335258B
Authority
CN
China
Prior art keywords
blurring
image
mobile terminal
control object
area
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
CN201711480365.9A
Other languages
Chinese (zh)
Other versions
CN108335258A (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 CN201711480365.9A priority Critical patent/CN108335258B/en
Publication of CN108335258A publication Critical patent/CN108335258A/en
Application granted granted Critical
Publication of CN108335258B publication Critical patent/CN108335258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T3/04
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Abstract

The embodiment of the invention provides an image processing method and device of a mobile terminal, wherein the mobile terminal comprises a camera, and the method comprises the following steps: after the camera is started, displaying a virtual control object in a view frame; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention provides a blurring control object, which is used for blurring a background area of an image without a background blurring mode of a mobile terminal during shooting time, so that the power consumption of the mobile terminal is reduced, and energy is saved.

Description

Image processing method and device of mobile terminal
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to an image processing method of a mobile terminal, an image processing apparatus of a mobile terminal, and a mobile terminal.
Background
With the continuous development of scientific technology, the types of electronic products are more and more, mobile terminals with shooting functions are more and more popular, users can shoot by using the mobile terminals at any time and any place, and obtained images are sent to relatives and friends in the form of multimedia short messages and the like, and the shooting is carried out immediately, so that the mobile terminals are convenient and fast.
Mobile terminals such as smart phones are no longer simple communication tools, but are multifunctional products integrating leisure, entertainment and communication. Meanwhile, the requirements of users on the shooting effect are higher and higher; the existing mobile terminal provides a plurality of photographing modes, such as a beauty mode, a background blurring mode, or a panorama mode, etc. The background blurring mode is a popular shooting mode in recent years because it can achieve an image effect of blurring the background that can be shot by a professional camera, but when the background blurring mode is turned on, the power consumption of the mobile terminal is greatly increased, and when the background blurring mode is turned on, the mobile terminal performs background blurring on each frame of image, thereby increasing the workload of data processing in the shooting process of the mobile terminal.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide an image processing method of a mobile terminal and an image processing apparatus of a mobile terminal to solve the foregoing problems that a background blurring mode needs to be turned on for a long time, which results in high power consumption of the mobile terminal.
In order to solve the above problem, an embodiment of the present invention discloses an image processing method for a mobile terminal, where the mobile terminal includes a camera, and the method includes:
after the camera is started, displaying a virtual control object in a view frame;
when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame;
stopping blurring the background area of the image when a loosening event for the blurring control object is received;
and outputting the image subjected to background blurring processing.
The embodiment of the invention also discloses an image processing device of the mobile terminal, the mobile terminal comprises a camera, and the device comprises:
the virtual control object display module is used for displaying a virtual control object in a view frame after the camera is started;
the blurring processing module is used for blurring a background area of the image in the view frame when a pressing event aiming at the blurring control object is received;
the blurring stopping module is used for stopping blurring the background area of the image when a loosening event aiming at the blurring control object is received;
and the output module is used for outputting the image subjected to the background blurring processing.
The embodiment of the invention also discloses a mobile terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the image processing steps of the mobile terminal when being executed by the processor.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the steps of the image processing method of the mobile terminal when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the mobile terminal comprises a camera, and after the camera is started, a virtual control object is displayed in a view frame; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention provides a blurring control object, which is used for blurring a background area of an image without a background blurring mode of a mobile terminal during shooting time, so that the power consumption of the mobile terminal is reduced, and energy is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first step of an image processing method of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of an image processing method of a mobile terminal according to the present invention;
fig. 3 is a flowchart illustrating a third step of an image processing method of a mobile terminal according to an embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of an image processing apparatus of a mobile terminal according to the present invention;
fig. 5 is a block diagram 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, a flowchart illustrating a first step of an image processing method of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal includes a camera, and the method specifically includes the following steps:
step 101, after the camera is started, displaying a virtual control object in a view frame;
in specific implementation, the embodiments of the present invention may be applied to a mobile terminal, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch, and the like), and the like.
In the embodiment of the present invention, the operating system of the mobile terminal may include Android (Android), IOS, Windows Phone, Windows, and the like.
The mobile terminal includes a camera, which is a piece of hardware on the mobile terminal, and the camera may be configured on the front of the mobile terminal (also referred to as a front camera) or on the back of the mobile device (also referred to as a rear camera), and the number of the cameras may be single, or two or more, and so on, which is not limited in the embodiments of the present invention.
In the embodiment of the invention, after the camera of the mobile terminal is started, namely when a user clicks a shooting application program on the mobile terminal, the shooting application program sends a request to trigger the camera to view a view and display the view in a view-finding frame; a ghosted control object is displayed in the viewport.
The blurring control object is used for receiving a pressing event to perform blurring processing on a background area of an image in the view frame; and means for receiving a release event to stop blurring a background region of the image.
It should be noted that the shape of the virtual control object displayed in the view finder may be a circle, a text, a rectangle, or any shape set according to the preference and the requirement of the user, which is not specifically limited in the embodiment of the present invention, and further, the color, the display position, and the display scale of the occupied view finder of the virtual control object are not limited too much in the embodiment of the present invention.
102, when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame;
in the embodiment of the present invention, when receiving a press event for the virtual control object, the mobile terminal performs a virtual process on a background area of an image in the view finder, that is, performs a background virtual process on the image, specifically, records a duration of the press event, sets a preset duration according to an actual situation, and performs a virtual process on the background area of the image in the view finder when the duration of the press event is greater than the preset duration.
Specifically, in the embodiment of the present invention, there may be multiple ways to perform blurring processing on the background area, for example, performing blurring processing on the background area by using a way of configuring two cameras on the mobile terminal, and further, performing blurring processing on the background area by using a way of configuring a single camera and a distance sensor on the mobile terminal, where the blurring processing ways are several enumerations of the embodiment of the present invention, and may also perform blurring processing by using other ways, and the foregoing examples should not be construed as limiting the embodiment of the present invention.
Step 103, when a release event for the blurring control object is received, stopping blurring the background area of the image;
in practical application to the embodiment of the present invention, when the mobile terminal receives a release event for the blurring control object, blurring processing of the background area of the image is stopped, that is, when the finger of the user releases the blurring control object, and when the mobile terminal receives the release event for the blurring control object, blurring processing of the background area of the image is stopped.
And 104, outputting the image subjected to background blurring processing.
In the embodiment of the invention, after blurring the background area of the image, the processed image can be output to a preview frame of the mobile terminal for display.
For example, after a user opens a shooting application program, a viewing frame is displayed in a display area of a mobile terminal, a virtual control object is displayed in the viewing frame, the virtual control object is pressed by a finger after the user composes a picture, the mobile terminal receives a pressing event aiming at the virtual control object, virtual processing is started to be performed on a background area of an image displayed by the viewing frame, when the user thinks that the image has reached a required effect, the virtual control object is released, the mobile terminal receives a releasing event aiming at the virtual control object, virtual processing is stopped to be performed on the background area of the image, and the processed image is output to a preview interface of the mobile terminal.
It should be noted that the function corresponding to the blurring control object may be replaced by another image processing function, such as a beauty function, and the blurring control object may be converted into a beauty control object, and the above-mentioned execution steps may be converted into: when the mobile terminal receives a pressing event aiming at the beauty control object, carrying out beauty treatment on the image in the viewing frame; stopping the beautifying processing of the image when a release event aiming at the beautifying control object is received; the image after the beauty processing is output, which is not particularly limited by the embodiment of the present invention.
In the embodiment of the invention, the mobile terminal comprises a camera, and after the camera is started, a virtual control object is displayed in a view frame; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention provides a blurring control object, which is used for blurring a background area of an image without a background blurring mode of a mobile terminal during shooting time, so that the power consumption of the mobile terminal is reduced, and energy is saved.
Referring to fig. 2, a flowchart illustrating a second step of an image processing method of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal includes a camera, and the method specifically includes the following steps:
step 201, after the camera is started, displaying a virtual control object in a view frame;
in the embodiment of the invention, the mobile terminal runs the shooting application program, after the camera of the mobile terminal is started, the shooting application program sends a request to trigger the camera to carry out framing and display in the framing frame, and the virtual control object is displayed in the framing frame.
The blurring control object is used for receiving a pressing event to perform blurring processing on a background area of an image in the view frame; and means for receiving a release event to stop blurring a background region of the image.
Step 202, when a pressing event aiming at the blurring control object is received, extracting a target shooting subject on the image;
specifically, in the embodiment of the present invention, when the mobile terminal receives a press event for the ghosted control object, a target photographic subject on the image is extracted, where the target photographic subject may be an object or a person or a scene or a building specified by the user, and may also be an object or a person or a scene or a building automatically recognized by the mobile terminal.
Specifically, the embodiment of the present invention provides the following method for extracting a target photographic subject:
1. identifying all shooting subjects in the viewing frame by adopting an image identification technology;
2. calculating the size of the pixel size of the view frame; and calculating the size of the pixel size of each photographic subject;
3. acquiring a preset proportion parameter, wherein the preset proportion parameter can be a threshold parameter set by a person skilled in the art according to actual conditions and is defined as the proportion of the pixel size of a shooting main body to the pixel size of a viewing frame;
4. calculating the proportion of the pixel size of each shooting subject in the pixel size of the viewing frame to obtain the area proportion of each shooting subject;
5. judging the size of the area proportion of each shooting subject and a preset proportion parameter;
6. screening out corresponding shooting subjects with the area proportion larger than the preset proportion, and determining the shooting subject with the largest area proportion as a target shooting subject.
However, the method described above is only an example of the method for extracting the target subject in the embodiment of the present invention, and should not be construed as a limitation to the embodiment of the present invention.
Step 203, blurring the background area of the target shooting subject;
in practice, when a press event for the blurring control object is received, blurring may be performed on a background area of the target photographic subject, and performing background blurring may include: extracting a background area of a target shooting subject in the image; and blurring the background area.
In the embodiment of the invention, the background blurring processing can be performed on the image in a mode of extracting the background area and blurring the background area.
Step 204, when a release event aiming at the blurring control object is received, stopping blurring the background area of the image;
in practice, when the mobile terminal receives a release event for the blurring control object, the blurring processing on the background area of the image is stopped, that is, when the mobile terminal receives the release event for the blurring control object, the background blurring processing on the image is stopped, because at this time, the user may think that the image displayed in the view finder frame has reached the required effect in the aspects of composition, angle, light and the like.
Step 205, outputting the image after background blurring processing.
In the embodiment of the invention, after blurring the background area of the image, the processed image can be output to a preview frame of the mobile terminal for display.
In the embodiment of the invention, after the camera is started, a virtual control object is displayed in a view frame; extracting a target shooting subject on the image when a press event for the blurring control object is received; blurring a background area of the target shooting subject; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; in the embodiment of the invention, the mobile terminal is not required to start the background blurring mode for a long time, the power consumption of the mobile terminal is reduced, the energy is saved, and the problem that the power consumption of the mobile terminal is increased sharply because the user needs to perform background blurring processing on the image again every composition when shooting the image is solved.
Referring to fig. 3, a flowchart illustrating a third step of an image processing method of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal includes a camera, and the method specifically includes the following steps:
step 301, after the camera is started, displaying a virtual control object in a view frame;
in the embodiment of the invention, the mobile terminal runs the shooting application program, after the camera of the mobile terminal is started, the shooting application program sends a request to trigger the camera to carry out framing and display in the framing frame, and the virtual control object is displayed in the framing frame.
Step 302, after a press event for the virtualized control object is received, acquiring the duration of the press event;
specifically, in the embodiment of the present invention, after receiving the press event for the virtualized control object, the duration of the press event is obtained, for example, the duration may be 500 milliseconds.
Step 303, judging whether the duration of the pressing event is greater than a preset duration;
further, it may be determined whether the duration of the pressing event is greater than a preset duration, where it should be noted that the preset duration may be any value set by a person skilled in the art according to an actual situation, for example, the preset duration may be 800 milliseconds, and the embodiment of the present invention is not limited thereto.
Step 304, if yes, extracting a target shooting subject on the image;
in practical application to the embodiment of the present invention, when the duration of the pressing event is greater than the preset duration, the target shooting subject on the image is extracted, for example, the duration of the pressing event may be 500 milliseconds, and when the preset duration is 800 milliseconds, it is determined that the duration of the pressing event is greater than the preset duration, and the target shooting subject on the image is extracted.
Specifically, the step of extracting the target subject on the image includes: extracting the area of a shooting subject on the image; judging whether the ratio of the area of the shooting main body to the area of the viewing frame is larger than a preset ratio or not; and if so, determining the shooting subject as a target shooting subject. .
Step 305, blurring a background area of the target shooting subject;
in practical application, the blurring processing of the background area of the target photographic subject includes: extracting a background area of a target shooting subject in the image; and blurring the background area.
Step 306, when a release event for the blurring control object is received, stopping blurring the background area of the image;
in practical terms, when the mobile terminal receives a release event for the blurring control object, the blurring processing on the background area of the image is stopped, that is, when the mobile terminal receives the release event for the blurring control object, the background blurring processing on the image is stopped.
Step 307, outputting the image after background blurring processing.
In the embodiment of the invention, after blurring the background area of the image, the processed image can be output to a preview frame of the mobile terminal for display.
In the embodiment of the invention, after the camera is started, a virtual control object is displayed in a view frame; after a pressing event aiming at the virtual control object is received, acquiring the duration of the pressing event; judging whether the duration of the pressing event is greater than a preset duration or not; if so, extracting a target shooting subject on the image; blurring a background area of the target shooting subject; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention solves the problems that when the user shoots the image, the background blurring processing is required to be carried out again every composition, and the power consumption of the mobile terminal is increased sharply.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 4 is a block diagram of an image processing apparatus of a mobile terminal according to an embodiment of the present invention, where the mobile terminal includes a camera, and the image processing apparatus shown in fig. 4 includes a blurring control object display module 401, a blurring processing module 402, a blurring stop processing module 403, and an output module 404;
a virtual control object display module 401, configured to display a virtual control object in a view finder after the camera is started;
a blurring processing module 402, configured to perform blurring processing on a background area of the image in the view frame when a press event for the blurring control object is received;
a blurring stopping module 403, configured to stop blurring the background area of the image when a release event for the blurring control object is received;
and an output module 404, configured to output the image after the background blurring processing.
Preferably, the blurring processing module includes:
the target shooting subject extraction sub-module is used for extracting a target shooting subject on the image when a pressing event aiming at the blurring control object is received;
and the blurring processing submodule is used for blurring the background area of the target shooting main body.
Preferably, the target capture subject extraction sub-module includes:
the duration acquisition unit is used for acquiring the duration of the pressing event after the pressing event aiming at the virtual control object is received;
the judging unit is used for judging whether the duration of the pressing event is greater than the preset duration or not;
and the extraction unit is used for extracting the target shooting subject on the image when the duration of the pressing event is greater than the preset duration.
Preferably, the extraction unit includes:
an extraction subunit configured to extract an area of a subject on the image;
the judging subunit is used for judging whether the ratio of the area of the shooting main body to the area of the view frame is larger than a preset ratio;
and the determining subunit is used for determining the shooting subject as the target shooting subject when the ratio of the area of the shooting subject to the area of the view frame is larger than a preset ratio.
Preferably, the blurring processing sub-module includes:
a background region extraction unit configured to extract a background region of a target photographic subject in the image;
and the blurring processing unit is used for blurring the background area.
The mobile terminal 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, the mobile terminal comprises a camera, and after the camera is started, a virtual control object is displayed in a view frame; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention provides a blurring control object, which is used for blurring a background area of an image without a background blurring mode of a mobile terminal during shooting time, so that the power consumption of the mobile terminal is reduced, and energy is saved.
Figure 5 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some 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.
The processor 510 is configured to display a blurring control object in a view frame after the camera is started; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; and outputting the image subjected to background blurring processing.
In the embodiment of the invention, the mobile terminal comprises a camera, and after the camera is started, a virtual control object is displayed in a view frame; when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame; stopping blurring the background area of the image when a loosening event for the blurring control object is received; outputting the image after background blurring processing; the embodiment of the invention provides a blurring control object, which is used for blurring a background area of an image without a background blurring mode of a mobile terminal during shooting time, so that the power consumption of the mobile terminal is reduced, and energy is saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 frequency unit 501 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 through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5044 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 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 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 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 posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 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 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 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 507 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 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. 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 508 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 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 509 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 510 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 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 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 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the image processing method embodiment of the mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The 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 image processing method of the mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, the computer program is not described herein again. 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 phrase "comprising an … …" does not exclude the presence of other like elements 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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. An image processing method of a mobile terminal, wherein the mobile terminal comprises a camera, the method comprising:
after the camera is started, displaying a virtual control object in a view frame;
when a pressing event aiming at the blurring control object is received, blurring a background area of an image in the view frame;
stopping blurring the background area of the image when a loosening event for the blurring control object is received;
and outputting the image subjected to background blurring processing to a preview frame of the mobile terminal for displaying.
2. The method of claim 1, wherein blurring a background region of an image within the viewfinder when a press event is received for the blurring control object comprises:
extracting a target shooting subject on the image when a press event for the blurring control object is received;
blurring the background area of the target shooting subject.
3. The method according to claim 1 or 2, wherein the step of extracting the target photographic subject on the image when the press event for the blurring control object is received comprises:
after a pressing event aiming at the virtual control object is received, acquiring the duration of the pressing event;
judging whether the duration of the pressing event is greater than a preset duration or not;
and if so, extracting the target shooting subject on the image.
4. The method of claim 3, wherein the step of extracting the subject of interest on the image comprises:
extracting the area of a shooting subject on the image;
judging whether the ratio of the area of the shooting main body to the area of the viewing frame is larger than a preset ratio or not;
and if so, determining the shooting subject as a target shooting subject.
5. The method according to claim 2, wherein the blurring the background region of the target photographic subject includes:
extracting a background area of a target shooting subject in the image;
and blurring the background area.
6. An image processing apparatus of a mobile terminal, the mobile terminal including a camera, the apparatus comprising:
the virtual control object display module is used for displaying a virtual control object in a view frame after the camera is started;
the blurring processing module is used for blurring a background area of the image in the view frame when a pressing event aiming at the blurring control object is received;
the blurring stopping module is used for stopping blurring the background area of the image when a loosening event aiming at the blurring control object is received;
and the output module is used for outputting the image subjected to background blurring processing to a preview frame of the mobile terminal for displaying.
7. The apparatus of claim 6, wherein the blurring processing module comprises:
the target shooting subject extraction sub-module is used for extracting a target shooting subject on the image when a pressing event aiming at the blurring control object is received;
and the blurring processing submodule is used for blurring the background area of the target shooting main body.
8. The apparatus of claim 6 or 7, wherein the target photographic subject extraction sub-module includes:
the duration acquisition unit is used for acquiring the duration of the pressing event after the pressing event aiming at the virtual control object is received;
the judging unit is used for judging whether the duration of the pressing event is greater than the preset duration or not;
and the extraction unit is used for extracting the target shooting subject on the image when the duration of the pressing event is greater than the preset duration.
9. The apparatus of claim 8, wherein the extraction unit comprises:
an extraction subunit configured to extract an area of a subject on the image;
the judging subunit is used for judging whether the ratio of the area of the shooting main body to the area of the view frame is larger than a preset ratio;
and the determining subunit is used for determining the shooting subject as the target shooting subject when the ratio of the area of the shooting subject to the area of the view frame is larger than a preset ratio.
10. The apparatus of claim 7, wherein the blurring processing sub-module comprises:
a background region extraction unit configured to extract a background region of a target photographic subject in the image;
and the blurring processing unit is used for blurring the background area.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the image processing steps of the mobile terminal 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, when being executed by a processor, carries out the steps of the image processing method of a mobile terminal according to any one of claims 1 to 5.
CN201711480365.9A 2017-12-29 2017-12-29 Image processing method and device of mobile terminal Active CN108335258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711480365.9A CN108335258B (en) 2017-12-29 2017-12-29 Image processing method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711480365.9A CN108335258B (en) 2017-12-29 2017-12-29 Image processing method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN108335258A CN108335258A (en) 2018-07-27
CN108335258B true CN108335258B (en) 2021-08-03

Family

ID=62923755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711480365.9A Active CN108335258B (en) 2017-12-29 2017-12-29 Image processing method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN108335258B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956576B (en) * 2018-09-27 2024-03-22 北京小米移动软件有限公司 Image processing method, device, equipment and storage medium
CN110175950A (en) * 2018-10-24 2019-08-27 广东小天才科技有限公司 A kind of method for secret protection and wearable device based on wearable device
CN109886867A (en) * 2019-01-16 2019-06-14 周口师范学院 A kind of image processing method for mobile intelligent terminal
CN116684725B (en) * 2022-10-18 2024-04-16 荣耀终端有限公司 Layout method and device of application interface, electronic equipment, storage medium and chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469143A (en) * 2014-09-30 2015-03-25 腾讯科技(深圳)有限公司 Video sharing method and device
CN105516586A (en) * 2015-12-01 2016-04-20 小米科技有限责任公司 Picture shooting method, device and system
CN106303238A (en) * 2016-08-16 2017-01-04 北京金山安全软件有限公司 Video shooting method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101078754B1 (en) * 2010-05-24 2011-11-01 주식회사 인스프리트 Mobile terminal having automatic function for camera image acquisition, and automatic method for camera image acqusition of mobile terminal using the same
JP6646936B2 (en) * 2014-03-31 2020-02-14 キヤノン株式会社 Image processing apparatus, control method thereof, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469143A (en) * 2014-09-30 2015-03-25 腾讯科技(深圳)有限公司 Video sharing method and device
CN105516586A (en) * 2015-12-01 2016-04-20 小米科技有限责任公司 Picture shooting method, device and system
CN106303238A (en) * 2016-08-16 2017-01-04 北京金山安全软件有限公司 Video shooting method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Also Published As

Publication number Publication date
CN108335258A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN109639970B (en) Shooting method and terminal equipment
CN108335258B (en) Image processing method and device of mobile terminal
CN107977144B (en) Screen capture processing method and mobile terminal
CN108307106B (en) Image processing method and device and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107786827B (en) Video shooting method, video playing method and device and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN108038825B (en) Image processing method and mobile terminal
CN110213440B (en) Image sharing method and terminal
CN110602401A (en) Photographing method and terminal
CN109218626B (en) Photographing method and terminal
CN108924412B (en) Shooting method and terminal equipment
CN108924414B (en) Shooting method and terminal equipment
CN107730460B (en) Image processing method and mobile terminal
CN108449541B (en) Panoramic image shooting method and mobile terminal
CN111669503A (en) Photographing method and device, electronic equipment and medium
CN110290331B (en) Screen control method and terminal
CN109819166B (en) Image processing method and electronic equipment
CN109618218B (en) Video processing method and mobile terminal
CN110798621A (en) Image processing method and electronic equipment
CN108924422B (en) Panoramic photographing method and mobile terminal
CN108564915B (en) Brightness adjusting method and related product
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN108259756B (en) Image shooting method 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