CN108234867B - Image processing method and mobile terminal - Google Patents

Image processing method and mobile terminal Download PDF

Info

Publication number
CN108234867B
CN108234867B CN201711397284.2A CN201711397284A CN108234867B CN 108234867 B CN108234867 B CN 108234867B CN 201711397284 A CN201711397284 A CN 201711397284A CN 108234867 B CN108234867 B CN 108234867B
Authority
CN
China
Prior art keywords
image
images
cache
mobile terminal
processing
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
CN201711397284.2A
Other languages
Chinese (zh)
Other versions
CN108234867A (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 CN201711397284.2A priority Critical patent/CN108234867B/en
Publication of CN108234867A publication Critical patent/CN108234867A/en
Application granted granted Critical
Publication of CN108234867B publication Critical patent/CN108234867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an image processing method and a mobile terminal, and belongs to the technical field of image processing. The method comprises the following steps: identifying moving elements in the plurality of cached images; if the shooting operation triggered by the user is detected, processing the moving element in each cache image in the plurality of cache images to obtain a plurality of processed images; and synthesizing the plurality of processed images to obtain a synthesized image. The mobile terminal processes the mobile elements in the plurality of cache images and synthesizes the plurality of processed images to obtain the image without the mobile elements, so that the pixels corresponding to partial regions in the image are prevented from being replaced, the situation that the replaced image still comprises the mobile elements is avoided, the reliability of processing the mobile elements is improved, and the flexibility of processing the mobile elements is improved.

Description

Image processing method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of image processing, in particular to an image processing method and a mobile terminal.
Background
With the continuous development of mobile terminals, mobile terminals can delete mobile elements in shot images and restore scenes in areas where the mobile elements are located in the images to obtain images without the mobile elements. Wherein the mobile element may be a pedestrian, a vehicle or other object.
In the related art, the mobile terminal may acquire a plurality of images, identify the plurality of images, determine a moving element in each image, thereby determining a replacement region where the moving element is located in the captured image, and finally fill the scenery corresponding to the replacement region in the other images into the captured image, thereby completing the processing of the captured image.
However, when the image corresponding to the replacement region in the other image is the other moving element, the captured image is processed to include the other moving element, and an image including no moving element cannot be obtained.
Disclosure of Invention
The embodiment of the invention provides an image processing method and a mobile terminal, which aim to solve the problem that a shot image still comprises other mobile elements after being processed.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows: an image processing method is applied to a mobile terminal, and comprises the following steps:
identifying moving elements in the plurality of cached images;
if the shooting operation triggered by the user is detected, processing the moving element in each cache image in the plurality of cache images to obtain a plurality of processed images;
and synthesizing the plurality of processed images to obtain a synthesized image.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the identification module is used for identifying the mobile elements in the plurality of cache images;
the processing module is used for processing the moving elements in each cache image in the plurality of cache images to obtain a plurality of processed images if the shooting operation triggered by the user is detected;
and the synthesis module is used for synthesizing the plurality of processed images to obtain a synthesized image.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method according to any one of the above image processing methods.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the image processing method according to any one of the above-mentioned image processing methods.
In the embodiment of the invention, the mobile terminal processes the mobile elements in the plurality of cache images and synthesizes the plurality of processed images to obtain the image without the mobile elements, so that the replacement of the pixels corresponding to the partial area in the image is avoided, the situation that the replaced image still comprises the mobile elements is further avoided, the reliability of processing the mobile elements is improved, and the flexibility of processing the mobile elements is improved.
Drawings
FIG. 1 is a flowchart illustrating steps of an image processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an image processing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 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, a flowchart illustrating steps of an image processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, identifying moving elements in a plurality of cached images.
In the shooting process of the mobile terminal, in order to process the mobile elements in the images shot by the user, the mobile elements need to be recognized in advance. Therefore, the mobile terminal can acquire a plurality of images through the camera so as to identify the moving elements in the currently shot image.
Specifically, the mobile terminal can acquire an image which needs to be shot by a user through the camera, cache a plurality of images acquired by the camera to obtain a plurality of cache images, and compare the plurality of cache images, so that a mobile element in the image which needs to be shot is determined according to the position of each element in the plurality of cache images.
It should be noted that the moving element may be a pedestrian, a vehicle, an animal, or another movable object, which is not limited in the embodiments of the present invention.
And 102, if the shooting operation triggered by the user is detected, processing the moving elements in each cache image in the plurality of cache images to obtain a plurality of processed images.
The mobile terminal can detect the operation triggered by the user in real time, when the fact that the shooting operation triggered by the user is detected, the cache image shot at the moment and the cache images cached in the preset time length before the moment can be selected according to the moment corresponding to the shooting operation triggered by the user, the moving elements in each cache image are processed, processed images are obtained, and therefore the mobile terminal can be synthesized according to the processed images in the subsequent steps.
The mobile terminal may process the mobile element in a blurring manner, may also process the mobile element in a manner of adding a streamer effect, and of course, may also process the mobile element in other manners, which is not limited in this embodiment of the present invention.
Moreover, when the mobile terminal processes the mobile elements in the cache images, the mobile terminal can process the mobile elements in different cache images differently according to the time when the cache images are acquired and the time corresponding to the trigger shooting operation.
Specifically, when the mobile terminal performs blurring processing on the mobile element, blurring of the mobile element in different cache images may be performed to different degrees according to a difference between a time when each cache image is acquired and a time corresponding to a trigger shooting operation.
If the difference value between the moment of acquiring a certain cache image and the moment corresponding to the trigger shooting operation is larger, the blurring degree of a mobile element in the cache image is larger when the mobile terminal processes the mobile element; when the difference is smaller, the degree of blurring the moving element is smaller.
In addition, when the mobile terminal performs streamer processing on the mobile element, streamer effects of different degrees can be added to the mobile element in different cache images according to the difference between the time of acquiring each cache image and the time corresponding to the trigger shooting operation.
If the difference value between the moment of acquiring a certain cache image and the moment corresponding to the trigger shooting operation is larger, when the mobile terminal adds the streamer effect to the mobile element in the cache image, the streamer effect added to the mobile element is weaker; when the difference is smaller, the streamer effect added to the moving element is stronger.
It should be noted that, in the process of processing the mobile element by the mobile terminal, for each cache image, the mobile terminal may first determine a plurality of pixels corresponding to the mobile element in the cache image, and process each pixel corresponding to the mobile element, so that each pixel corresponding to the mobile element is subjected to blurring or streamer mediation effect processing, and finally, a processed image is obtained.
Step 103, synthesizing the plurality of processed images to obtain a synthesized image.
After processing each cache image, the mobile terminal obtains a plurality of processed images, and then may combine the plurality of processed images, so that a pixel corresponding to the processed moving element may be combined with a pixel corresponding to a scene blocked by the moving element, thereby obtaining a combined image.
Specifically, the mobile terminal may align the processed cache images to make the static elements in the cache images located at the same position, and then synthesize the pixels at the same position in the cache images to obtain the synthesized pixels. After the synthesis of each pixel is completed, the synthesized image may be obtained by combining the synthesized pixels.
In summary, in the image processing method provided in the embodiment of the present invention, the mobile terminal processes the moving elements in the multiple cache images and synthesizes the multiple processed images to obtain an image without the moving elements, so as to avoid replacing pixels corresponding to a partial region in the image, further avoid a situation that the replaced image still includes the moving elements, improve reliability of processing the moving elements, and improve flexibility of processing the moving elements.
Referring to fig. 2, a flowchart illustrating steps of an image processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, acquiring a plurality of cache images through a camera of the mobile terminal.
In the shooting process of the mobile terminal, the scenery to be shot needs to be collected through a camera of the mobile terminal, so that the image to be shot is obtained and displayed for a user. Therefore, before an image is captured by the camera of the mobile terminal, the camera of the mobile terminal needs to be turned on.
Optionally, the mobile terminal may detect a function starting operation triggered by a user, and when the function starting operation triggered by the user is detected, the camera of the mobile terminal is started, and the multiple cache images are acquired through the camera of the mobile terminal.
Wherein the function opening operation is to open a photographing function.
Specifically, after the mobile terminal detects that the user triggers a function starting operation for starting the shooting function, the camera can be started according to the function starting operation, the shooting interface is displayed for the user, after the camera is started, the camera can acquire an image of the current environment, and the mobile terminal can display the acquired image in the shooting interface so that the user can preview the image.
In addition, in the process of acquiring the image by the camera, the mobile terminal can cache a plurality of images acquired by the camera to obtain a plurality of cache images, and the mobile terminal can acquire the cache images, so that in the subsequent step, the mobile terminal can identify the mobile elements in the image to be shot according to the plurality of cache images.
Further, when it is detected that the mobile terminal turns on the camera, the mobile terminal may obtain a frame rate value, and obtain a plurality of cache images according to the frame rate value, so that the number of the obtained cache images matches the frame rate value. The frame rate value may range from 30Hz (hertz) to 120Hz, which is not limited in the embodiments of the present invention.
Step 202, identifying moving elements in the plurality of cached images.
The mobile terminal can analyze each cache image according to the plurality of cache images acquired by the camera, and determine whether each element in the cache images is displaced, so as to determine the mobile elements in the cache images and complete the identification of the mobile elements.
It should be noted that each of the cache images acquired by the mobile terminal may include a plurality of elements, such as a static element and a moving element, where the static element may be a stationary scene, and correspondingly, the moving element may be an element that moves during the shooting process, such as a vehicle, a pedestrian, an animal, and the like, which is not limited in this embodiment of the present invention.
In practical application, the mobile terminal may select a reference image from the plurality of cache images, compare each cache image with the reference image, determine, according to positions of each element in each cache image and each element in the reference image, whether each element in the cache images includes a mobile element.
The reference image is a cache image initially acquired by the mobile terminal, that is, the cache image acquired by the mobile terminal when the camera starts focusing.
Optionally, a reference image is selected from the plurality of cache images, an initial position of each element in the reference image is determined, a moving distance of each element in the reference image is determined according to the plurality of cache images, and finally, an element of which the moving distance is greater than a preset threshold value is determined as a moving element.
Specifically, the mobile terminal may select a position where each element in the reference image is located as an initial position, compare the reference image with other cache images acquired by the mobile terminal, determine whether each element in the other cache images has moved, and further acquire a moving distance of each element. When the moving distance corresponding to a certain element is greater than a preset threshold, the element can be determined to be a moving element.
Further, since the mobile terminal can acquire a large number of cache images in a short time, in order to reduce the workload of the mobile terminal, the mobile terminal can select a part of cache images from the large number of cache images to compare with the reference images, so that the mobile element can be efficiently and quickly identified. For example, the mobile terminal may select one cache image to compare with the reference image every preset time.
Optionally, the mobile terminal may select at least one target image from the plurality of cache images according to the obtaining time of the plurality of cache images, compare each element in the at least one target image with each element in the reference image, and determine the moving distance of each element in the reference image.
Step 203, highlight the edge pixels of the moving element.
After the mobile terminal identifies the mobile element, the mobile element can be marked, so that a user can check the identified mobile element in a shooting interface, and further select the processing effect of the mobile element.
Moreover, the mobile terminal may mark the mobile element in a variety of ways, for example, the mobile terminal may obtain an edge pixel of the mobile element and highlight the edge pixel. Of course, the mobile terminal may also mark the mobile element in other manners, which is not limited in the embodiment of the present invention.
It should be noted that, in practical applications, the mobile terminal may recognize a plurality of moving elements, and correspondingly, the mobile terminal may also display edge pixels of the plurality of moving elements respectively.
Step 204, determining the processing effect of the mobile element.
After the edge pixels of the mobile elements are highlighted, the mobile terminal can detect effect selection operation triggered by a user, and determine the processing effect of the mobile elements according to the effect selection operation triggered by the user, so that the processing effect of the mobile elements in the subsequent steps is determined according to the effect selection operation triggered by the user.
Wherein the processing effect may include at least one of a blurring effect and an adding streamer effect. Accordingly, when the user selects the processing effect, the user may select any one of the processing effects, and may also select two processing effects at the same time.
Step 205, if the shooting operation triggered by the user is detected, processing the moving element in each of the plurality of cache images to obtain a plurality of processed images.
Step 205 is similar to step 102 and will not be described herein again.
And step 206, synthesizing the plurality of processed images to obtain a synthesized image.
Step 206 is similar to step 103 and will not be described herein.
Step 207, the synthesized image is processed.
After the mobile terminal obtains the synthesized image, the synthesized image may be displayed to a user, so that the user may determine whether the synthesized image meets the user's desire, and whether shooting and synthesizing are required again to obtain a new image, and the mobile terminal may process the synthesized image according to an operation triggered by the user, such as storing or deleting.
Optionally, the mobile terminal may display the synthesized image, and process the synthesized image according to a storage selection operation triggered by the user. Specifically, the mobile terminal may display the synthesized image on the shooting interface, and provide the user with options of storing and deleting, so as to perform an operation of storing or deleting the synthesized image according to the selection operation of the user, and complete the processing of the image.
Further, when it is detected that the user triggers a confirmation operation, the mobile terminal may store the synthesized image; however, when the user trigger cancel operation is detected, the mobile terminal may delete the synthesized image.
It should be noted that, after deleting the synthesized image, the mobile terminal may acquire the image to be photographed again through the camera of the mobile terminal, and the mobile terminal may acquire and acquire the image by using a higher frame rate value, so as to more accurately identify the moving element in the image.
In summary, in the image processing method provided in the embodiment of the present invention, the mobile terminal processes the moving elements in the multiple cache images and synthesizes the multiple processed images to obtain an image without the moving elements, so as to avoid replacing pixels corresponding to a partial region in the image, further avoid a situation that the replaced image still includes the moving elements, improve reliability of processing the moving elements, and improve flexibility of processing the moving elements.
Furthermore, by selecting the reference image and taking the position of each element in the reference image as the initial position, the judgment is performed according to the initial position of each element, whether each element in the cache image is a moving element is determined, the moving element in the image can be accurately identified, and the accuracy of identifying the moving element can be improved.
Furthermore, the cache images are selected according to the acquisition time corresponding to each cache image, and then the selected cache images are compared with the reference image to determine the moving distance of each element in the cache images, so that the time spent by the mobile terminal in determining the moving distance can be reduced, and the efficiency of determining the moving distance is improved.
Furthermore, by acquiring the edge pixels of the mobile element and highlighting the edge pixels, a user can preview the mobile element conveniently, and the user viscosity is improved.
Further, by detecting the effect selection operation triggered by the user, the mobile elements in the image can be processed according to the effect selected by the user, so that the flexibility of processing the mobile elements is improved.
Referring to fig. 3, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include:
an identification module 301, configured to identify a moving element in a plurality of cached images;
a processing module 302, configured to process a moving element in each of the multiple cache images to obtain multiple processed images if a shooting operation triggered by a user is detected;
and a synthesizing module 303, configured to synthesize the plurality of processed images to obtain a synthesized image.
Optionally, the identification module 301 includes:
a first selection sub-module for selecting a reference image from the plurality of cached images; the cache image is acquired by the mobile terminal when the camera starts focusing;
a position determination submodule for determining an initial position of each element in the reference image;
the second selection submodule is used for selecting at least one target image from the plurality of cache images according to the acquisition time of the plurality of cache images;
a distance determination sub-module for comparing each element in the at least one target image with each element in the reference image, determining a movement distance of each element in the reference image;
and the element determining submodule is used for determining the elements of which the moving distance is greater than a preset threshold value as moving elements.
Optionally, the mobile terminal further includes:
the first detection module is used for detecting a function starting operation triggered by a user, and the function starting operation is used for starting a shooting function;
the function starting module is used for starting a camera of the mobile terminal when detecting that the user triggers the function starting operation;
the first acquisition module is used for acquiring a frame rate value when the mobile terminal is detected to start the camera;
and the second acquisition module is used for acquiring a plurality of cache images according to the frame rate value.
Optionally, the mobile terminal further includes:
a third obtaining module, configured to obtain edge pixels of the moving element;
a display module for highlighting the edge pixel;
the second detection module is used for detecting effect selection operation triggered by a user;
and the determining module is used for determining the processing effect on the mobile element according to the effect selection operation triggered by the user.
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. 2, and is not described herein again to avoid repetition.
In summary, according to the mobile terminal provided in the embodiment of the present invention, the mobile terminal processes the mobile element in the multiple cache images and synthesizes the multiple processed images to obtain an image without the mobile element, so as to avoid replacing the pixel corresponding to the partial region in the image, further avoid a situation that the replaced image still includes the mobile element, improve reliability of processing the mobile element, and improve flexibility of processing the mobile element.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 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 410 is configured to identify a moving element according to the acquired plurality of images;
the processor 410 is further configured to, when a shooting operation triggered by a user is detected, process the moving elements in each image to obtain a plurality of processed images;
the processor 410 is further configured to perform synthesis according to the plurality of processed images to obtain a synthesized image.
In summary, according to the mobile terminal provided in the embodiment of the present invention, the mobile terminal processes the mobile element in the multiple cache images and synthesizes the multiple processed images to obtain an image without the mobile element, so as to avoid replacing the pixel corresponding to the partial region in the image, further avoid a situation that the replaced image still includes the mobile element, improve reliability of processing the mobile element, and improve flexibility of processing the mobile element.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 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 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound 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 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, 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 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 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 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, 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 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 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 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 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 409 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 410 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 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 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 the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 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 410, a memory 409, and a computer program stored in the memory 409 and capable of being executed on the processor 410, where the computer program, when executed by the processor 410, implements each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 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 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 (10)

1. An image processing method applied to a mobile terminal is characterized by comprising the following steps:
identifying moving elements in the plurality of cached images;
if the shooting operation triggered by the user is detected, processing the moving element in each cache image in the plurality of cache images to obtain a plurality of processed images;
synthesizing the plurality of processed images to obtain a synthesized image;
if the shooting operation triggered by the user is detected, processing the moving element in each cache image in the plurality of cache images to obtain a plurality of processed images, including:
if shooting operation triggered by a user is detected, determining a plurality of pixels corresponding to moving elements in the cache image, and performing blurring or stream light effect mediation processing on each pixel corresponding to the moving elements to obtain a plurality of processed images;
when blurring processing is performed on each pixel corresponding to the moving element, blurring the moving elements in different cache images to different degrees according to a difference value between a moment of acquiring each cache image and a moment corresponding to a trigger shooting operation;
when the adjustment streamer effect processing is carried out on each pixel corresponding to the moving element, streamer effects of different degrees are added to the moving elements in different cache images according to the difference between the moment of obtaining each cache image and the moment corresponding to the trigger shooting operation.
2. The method of claim 1, wherein identifying the moving element in the plurality of cached images comprises:
selecting a reference image from a plurality of cached images; the cache image is acquired by the mobile terminal when the camera starts focusing;
determining an initial position of each element in the reference image;
selecting at least one target image from the plurality of cache images according to the acquisition time of the plurality of cache images;
comparing each element in the at least one target image with each element in the reference image, determining a movement distance of each element in the reference image;
and determining the elements of which the moving distance is greater than a preset threshold value as moving elements.
3. The method of claim 1, wherein prior to said identifying the moving element in the plurality of cached images, the method further comprises:
detecting a function starting operation triggered by a user, wherein the function starting operation is used for starting a shooting function;
when detecting that the user triggers the function starting operation, starting a camera of the mobile terminal;
when detecting that the camera is started by the mobile terminal, acquiring a frame rate value;
and acquiring a plurality of cache images according to the frame rate value.
4. The method of claim 1, wherein prior to said processing the mobile element in each of the plurality of cached images, the method further comprises:
acquiring edge pixels of the moving element;
highlighting the edge pixel;
detecting an effect selection operation triggered by a user;
and determining the processing effect on the mobile element according to the effect selection operation triggered by the user.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the identification module is used for identifying the mobile elements in the plurality of cache images;
the processing module is used for processing the mobile element in each cache image in the plurality of cache images to obtain a plurality of processed images if the shooting operation triggered by the user is detected;
the synthesis module is used for synthesizing the plurality of processed images to obtain synthesized images;
the processing module is used for determining a plurality of pixels corresponding to a moving element in the cache image if a shooting operation triggered by a user is detected, and performing blurring or streamer effect modulation on each pixel corresponding to the moving element to obtain a plurality of processed images;
the processing module is used for blurring the moving elements in different cache images to different degrees according to the difference between the moment of acquiring each cache image and the moment corresponding to the trigger shooting operation when blurring each pixel corresponding to the moving element;
when the adjustment streamer effect processing is carried out on each pixel corresponding to the moving element, streamer effects of different degrees are added to the moving elements in different cache images according to the difference between the moment of obtaining each cache image and the moment corresponding to the trigger shooting operation.
6. The mobile terminal of claim 5, wherein the identification module comprises:
a first selection sub-module for selecting a reference image from the plurality of cached images; the cache image is acquired by the mobile terminal when the camera starts focusing;
a position determination sub-module for determining an initial position of each element in the reference image;
the second selection submodule is used for selecting at least one target image from the plurality of cache images according to the acquisition time of the plurality of cache images;
a distance determination sub-module for comparing each element in the at least one target image with each element in the reference image, determining a movement distance of each element in the reference image;
and the element determining submodule is used for determining the elements of which the moving distance is greater than a preset threshold value as moving elements.
7. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the device comprises a first detection module, a second detection module and a control module, wherein the first detection module is used for detecting a function starting operation triggered by a user, and the function starting operation is used for starting a shooting function;
the function starting module is used for starting a camera of the mobile terminal when detecting that the user triggers the function starting operation;
the first acquisition module is used for acquiring a frame rate value when the mobile terminal is detected to start the camera;
and the second acquisition module is used for acquiring a plurality of cache images according to the frame rate value.
8. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
a third obtaining module, configured to obtain edge pixels of the moving element;
a display module for highlighting the edge pixels;
the second detection module is used for detecting effect selection operation triggered by a user;
and the determining module is used for determining the processing effect on the mobile element according to the effect selection operation triggered by the user.
9. 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, implements the steps of the image processing method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 4.
CN201711397284.2A 2017-12-21 2017-12-21 Image processing method and mobile terminal Active CN108234867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711397284.2A CN108234867B (en) 2017-12-21 2017-12-21 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711397284.2A CN108234867B (en) 2017-12-21 2017-12-21 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108234867A CN108234867A (en) 2018-06-29
CN108234867B true CN108234867B (en) 2020-06-30

Family

ID=62647626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711397284.2A Active CN108234867B (en) 2017-12-21 2017-12-21 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108234867B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007031808A1 (en) * 2005-09-14 2007-03-22 Nokia Corporation System and method for implementing motion-driven multi-shot image stabilization
JP5949481B2 (en) * 2012-03-14 2016-07-06 富士通株式会社 Image processing method, program, and apparatus
KR102022892B1 (en) * 2013-01-23 2019-11-04 삼성전자 주식회사 Apparatus and method for processing image of mobile terminal comprising camera
CN203399226U (en) * 2013-08-13 2014-01-15 张毅 Projection image merging device
CN104333700B (en) * 2014-11-28 2017-02-22 广东欧珀移动通信有限公司 Image blurring method and image blurring device
CN106131411B (en) * 2016-07-14 2019-04-02 纳恩博(北京)科技有限公司 A kind of method and apparatus shooting image

Also Published As

Publication number Publication date
CN108234867A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN109639970B (en) Shooting method and terminal equipment
CN108848308B (en) Shooting method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN110913132B (en) Object tracking method and electronic equipment
CN111263071B (en) Shooting method and electronic equipment
CN108038825B (en) Image processing method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN107730460B (en) Image processing method and mobile terminal
CN108924414B (en) Shooting method and terminal equipment
CN110602389B (en) Display method and electronic equipment
CN109922294B (en) Video processing method and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN108174109B (en) Photographing method and mobile terminal
CN108924422B (en) Panoramic photographing method and mobile terminal
CN109246351B (en) Composition method and terminal equipment
CN110881105B (en) Shooting method and electronic equipment
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN111050069B (en) Shooting method and electronic equipment
CN110086998B (en) Shooting method and terminal
CN108924413B (en) Shooting method and mobile terminal
CN109104573B (en) Method for determining focusing point and terminal equipment
CN108259756B (en) Image shooting method and mobile terminal
CN108156386B (en) Panoramic photographing method and mobile terminal
CN107798662B (en) Image processing 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