CN108304237A - A kind of image processing method and device, mobile terminal of mobile terminal - Google Patents

A kind of image processing method and device, mobile terminal of mobile terminal Download PDF

Info

Publication number
CN108304237A
CN108304237A CN201711479836.4A CN201711479836A CN108304237A CN 108304237 A CN108304237 A CN 108304237A CN 201711479836 A CN201711479836 A CN 201711479836A CN 108304237 A CN108304237 A CN 108304237A
Authority
CN
China
Prior art keywords
data
image data
mobile terminal
api
multiframe
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.)
Pending
Application number
CN201711479836.4A
Other languages
Chinese (zh)
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 CN201711479836.4A priority Critical patent/CN108304237A/en
Publication of CN108304237A publication Critical patent/CN108304237A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Processing Or Creating Images (AREA)

Abstract

An embodiment of the present invention provides a kind of image processing method of mobile terminal and device, mobile terminal, the mobile terminal includes camera, and the mobile terminal has the application programming interface API of photograph album application program and image procossing, the method includes:When receiving shooting instruction, original data is obtained by the camera;It calls the API of described image processing to handle the original data, obtains multiframe character image data;The multiframe character image data is synthesized into animation data;Show the animation data in the photograph album application program;In the embodiment of the present invention, additional image processing algorithm need not be added when shooting, reduces the time that user waits for, and user is observed that image processing process, enhances user-interaction experience.

Description

A kind of image processing method and device, mobile terminal of mobile terminal
Technical field
The present embodiments relate to the technical field of mobile terminal more particularly to a kind of image processing methods of mobile terminal And device, mobile terminal.
Background technology
With science and technology continuous development, the type of electronic product is more and more, with shooting function mobile end End is more and more universal, and user can be taken pictures with it whenever and wherever possible, and the image of gained is sent out in the form of multimedia short message etc. Relatives and friends are given, that is, claps and sends out, it is convenient and efficient.
The mobile terminals such as smart mobile phone have no longer been simple meanss of communication, but collect leisure, amusement and communication and be equal to The multifunctional product of one.At the same time, requirement of the user to shooting effect is also higher and higher.For example, user would generally use AD HOC is taken pictures, and is such as taken pictures using virtualization pattern or U.S. face pattern, still, is taken pictures when using AD HOC When, the data processing amount of mobile terminal is very big, is unfavorable for improving the image processing efficiency of mobile terminal, extends user etc. The time waited for is unfavorable for improving the usage experience that user is directed to mobile terminal.
Invention content
The embodiment of the present invention provides a kind of image processing method and device, mobile terminal of mobile terminal, is adopted with solving to work as When being taken pictures with the AD HOC of mobile terminal, the longer problem of period of reservation of number.
In order to solve the above-mentioned technical problem, the embodiment of the present invention is realized in:A kind of image procossing of mobile terminal Method, the mobile terminal include camera, and the mobile terminal has the application program of photograph album application program and image procossing Programming interface API, the method includes:
When receiving shooting instruction, original data is obtained by the camera;
It calls the API of described image processing to handle the original data, obtains multiframe character image data;
The multiframe character image data is synthesized into animation data;
Show the animation data in the photograph album application program.
In a first aspect, the embodiment of the present invention additionally provides a kind of image processing apparatus of mobile terminal, the mobile terminal Including camera, the mobile terminal has the application programming interface API of photograph album application program and image procossing, the dress Set including:
Original data acquisition module, for when receiving shooting instruction, initial graph to be obtained by the camera As data;
Character image data obtains module, and the API for calling described image to handle handles the original data, obtains Obtain multiframe character image data;
Animation data synthesis module, for the multiframe character image data to be synthesized animation data;
Animation data display module, for showing the animation data in the photograph album application program.
Second aspect an embodiment of the present invention provides a kind of mobile terminal, including processor, memory and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor The step of image procossing of existing above-mentioned mobile terminal.
The third aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, the computer program realizes the image procossing of above-mentioned mobile terminal when being executed by processor The step of method.
In embodiments of the present invention, the mobile terminal includes camera, and the mobile terminal has photograph album application program With the application programming interface API of image procossing, the method includes:When receiving shooting instruction, pass through the camera shooting Head obtains original data;It calls the API of described image processing to handle the original data, obtains multiframe characteristic image Data;The multiframe character image data is synthesized into animation data;Show the animation number in the photograph album application program According to;In the embodiment of the present invention, additional image processing algorithm need not be added when shooting, reduces the time that user waits for, and used Family is observed that image processing process, enhances user-interaction experience.
Description of the drawings
Fig. 1 is a kind of step flow chart of the image processing method embodiment one of mobile terminal of the embodiment of the present invention;
Fig. 2 is a kind of step flow chart of the image processing method embodiment two of mobile terminal of the embodiment of the present invention;
Fig. 3 is a kind of structure diagram of the image processing apparatus embodiment of mobile terminal of the embodiment of the present invention;
Fig. 4 is a kind of structure diagram of mobile terminal of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the step of showing a kind of image processing method embodiment one of mobile terminal of the embodiment of the present invention Flow chart, the mobile terminal include camera, and the mobile terminal has the API of photograph album application program and image procossing (Application Programming Interface, application programming interface), can specifically include following steps:
Step 101, when receiving shooting instruction, original data is obtained by the camera;
In the specific implementation, the embodiment of the present invention can be applied in the terminal, which includes camera, example Such as, mobile phone, tablet computer, personal digital assistant, wearable device (such as glasses, wrist-watch) etc..
Camera is a hardware on mobile terminal, can be only fitted to front (the also known as preposition camera shooting of mobile terminal Head), can also configure at the back (also known as rear camera) of mobile device, in addition, the quantity of the camera can be it is single, Can also be two or more, etc., the embodiment of the present invention does not also limit this.
In embodiments of the present invention, the operating system of mobile terminal may include Android (Android), IOS, Windows Phone, Windows etc. can usually support camera application operation, which can drive camera acquisition pre- Image data is look at, to carry out shooting photo, video shooting.
In the embodiment of the present invention, the mobile terminal includes camera, and the running of mobile terminal has photograph album application program, The mobile terminal has an image processing function that the API of image procossing, the API of the image procossing are pre-defined, it is mobile eventually End can call the image processing function to carry out image procossing, before carrying out image procossing, mobile terminal for image data Original data can be got, specifically, when mobile terminal receives shooting instruction, is obtained by the camera Original data.
Step 102, it calls the API of described image processing to handle the original data, obtains multiframe characteristic image number According to;
As a kind of specific example of the embodiment of the present invention, mobile terminal can call the API processing that described image is handled The original data obtains multiframe character image data;For example, the API of described image processing may include virtualization API, U.S. face processing API are handled, it is, of course, also possible to include the API of other image procossings, such as high brightness processing API, low color temperature API etc. is handled, the embodiment of the present invention does not make this excessive limitation.
It should be noted that the multiframe character image data may include the process variation graph in image processing process, Can also include image procossing after image data, for example, when mobile terminal call be virtualization processing API when, then should Multiframe character image data can be the image data of the process variation graph and virtualization after treatment in virtualization processing procedure, then Such as, when mobile terminal call be that U.S. face handles API when, then the multiframe character image data can be in U.S. face processing procedure The image data of process variation graph and U.S. face after treatment, it is, of course, also possible to including other image datas, such as addition transformation Image data etc. after effect, the embodiment of the present invention is not restricted this.
Step 103, the multiframe character image data is synthesized into animation data;
It applies in the embodiment of the present invention, mobile terminal can further synthesize the multiframe character image data Animation data, specifically, can synthesize the multiframe character image data according to the sequencing of image processing time Animation data, for example, in Android system, animation (Animation) can pass through Frame Animation (frame animation) Or Tween Animation (gradual-change animation) are realized, gradual-change animation is (flat by constantly doing image transformation to the object in scene Move, scaling, rotation etc.) generate animation effect.Frame animation is then to generate animation by the preset image data of played in order Effect.
Specifically, it is illustrated by taking frame animation as an example, it can be by calling AnimationDrawable class functions by feature Image data synthesizes animation data, such as calls image of mAnimationDrawable.addFrame () function addition per frame Data call mAnimationDrawable.start () function operation animation data, call MAnimationDrawable.stop () function animation data out of service.
Step 104, show the animation data in the photograph album application program.
Further, mobile terminal can show the animation data in photograph album application program, when acquisition for mobile terminal arrives The original data, after image data after treatment is synthesized animation data, mobile terminal can be by the animation number According to output to photograph album application program, the animation data is showed in photograph album application program, i.e., it will figure in photograph album application program As each image change situation is presented to the user in processing procedure, enhance user-interaction experience.
In the embodiment of the present invention, the mobile terminal includes camera, and the running of mobile terminal has photograph album application program, The mobile terminal has the API of image procossing, the method includes:When receiving shooting instruction, pass through the camera Obtain original data;It calls the API of described image processing to handle the original data, obtains multiframe characteristic image number According to;The multiframe character image data is synthesized into animation data;Show the animation data in the photograph album application program; In the embodiment of the present invention, additional image processing algorithm need not be added when shooting, reduce the time that user waits for, Yong Huke To observe image processing process, enhance user-interaction experience.
With reference to Fig. 2, the step of showing a kind of image processing method embodiment two of mobile terminal of the embodiment of the present invention Flow chart, the mobile terminal include camera, and the running of mobile terminal has photograph album application program, the mobile terminal to have The API of image procossing, can specifically include following steps:
Step 201, when receiving shooting instruction, initial portrait data are obtained by the camera;
In the embodiment of the present invention, when mobile terminal receives shooting instruction, initial portrait is obtained by the camera Data;Specifically, when camera application program is currently running, the instruction that can respond user enters portrait mode of figure, obtains packet The original data of portrait is included, that is, gets initial portrait data.
Step 202, it calls the U.S. face processing API to handle the initial portrait data, obtains multiframe U.S. face image data; Wherein, the U.S. face image data includes specific U.S. face image data;
Further, mobile terminal can call the U.S. face to handle API first, handle the initial portrait data, obtain Multiframe U.S. face image data.
Specifically, the portrait feature in the initial portrait data can be identified by image recognition technology, then it is directed to The portrait feature calls the U.S. face processing API to carry out the operations such as skin makeup, face adjustment, it should be noted that U.S.'s face image Data are each process variation graphs in U.S. face image processing process, i.e., U.S.'s face image data may include U.S. face image procossing After image data, it should be noted that specific U.S.'s face image data be U.S. face image procossing after picture number According to.
Step 203, the virtualization processing API processing specific U.S. face image data is called, multiframe is obtained and blurs image Data;Wherein, the virtualization image data includes specific virtualization image data;
As in a kind of specific example of the embodiment of the present invention, mobile terminal can be directed to the specific U.S. face image data Virtualization processing is carried out, i.e., further carries out virtualization processing for the image data after U.S.'s face image procossing, further carries High image quality.
In embodiments of the present invention, mobile terminal can call the virtualization processing API processing specific U.S. face image data, It obtains multiframe and blurs image data;It should be noted that the virtualization image data may include in virtualization image processing process Each process variation graph, i.e. the virtualization image data may include the image data after blurring image procossing, need to illustrate , specific virtualization image data is the image data after blurring image procossing.
Step 204, multiframe U.S. face image data and/or multiframe virtualization image data are synthesized into animation number According to;
In the embodiment of the present invention, multiframe U.S. face image data can be synthesized animation data by mobile terminal;Also that is, Each process variation graph in U.S. face image processing process can be synthesized animation data by mobile terminal;When initial portrait data When needing not move through virtualization processing, then the animation data is directly output to photograph album application program, is opened up in photograph album application program The now animation data.
Further, the multiframe can also be blurred image data and synthesize animation data by mobile terminal;Specifically, it moves The each process variation graph blurred in image processing process can be synthesized animation data by dynamic terminal;The U.S. face is not showed Each process variation graph of image processing process only shows the animation data of the virtualization image processing process to user.
As in a kind of preferred embodiment of the embodiment of the present invention, mobile terminal can also be by multiframe U.S. face picture number According to this and multiframe virtualization image data synthesizes animation data;That is each process variation graph of U.S.'s face image processing process And each process variation graph in virtualization image processing process synthesizes animation data, and the animation is showed in photograph album application program Data.
The embodiment of the present invention one kind in the specific implementation, if running of mobile terminal is Android system, mobile terminal is first An AnimationDrawable object (frame-by-frame cartoons object) is first created, is then passed through Image data of mAnimationDrawable.addFrame () function addition per frame is to described AnimationDrawable pairs As for the embodiment of the present invention, that is, adding multiframe U.S.'s face image data and/or multiframe blurring image data, then pass through MAnimationDrawable.start () function plays the animation data, can also pass through Whether mAnimationDrawable.setOneShot () function setup animation data needs to repeat playing;It specifically, can be with The monitoring of setting button event, the broadcasting for starting animation data by homepage key further pass through return key stops animation number According to broadcasting.
Step 205, show the animation data in the photograph album application program;
Further, mobile terminal can show the animation data in photograph album application program, i.e., in photograph album application journey The each process variation graph for showing U.S. face image processing process in sequence and/or each change in process in virtualization image processing process Figure is not responding to the event that horizontally slips that user is directed to image, ensures the fluency of playing process, further during showing Ground can also preset the presentation time of the animation data, give the strong visual experience of user.
It should be noted that in above-mentioned animation data during showing, broadcasting control can be added on showing interface Part, response user are directed to the forward operation or back operation of the play control, to control the process of animation data broadcasting, such as Animation data can be retracted into the image of any one frame, can such as removed by this if user thinks that processing result image is dissatisfied It is back to initial portrait data or specific U.S. face image data and is preserved, improve user experience.
Step 206, after the animation data shows, show the specific U.S. face figure in the photograph album application program As data or the specific virtualization image data.
In a kind of preferred embodiment of the embodiment of the present invention, after the animation data shows, mobile terminal is described Photograph album application program shows the specific U.S. face image data or the specific virtualization image data;When initial portrait data without When virtualization processing, then mobile terminal shows the specific U.S. face image data in the photograph album application program;When initial portrait number When according to by U.S. face processing and virtualization processing, then mobile terminal shows the specific virtualization picture number in the photograph album application program According to.
Further, when showing the specific U.S. face image data or the specific virtualization image data, user can select Selecting property is preserved, you can to preserve specific U.S. face image data, or, preserving specific virtualization image data.
In the embodiment of the present invention, when receiving shooting instruction, initial portrait data are obtained by the camera;It calls U.S.'s face processing API handles the initial portrait data, obtains multiframe U.S. face image data;Wherein, the U.S. face picture number According to including specific U.S. face image data;The virtualization processing API processing specific U.S. face image data is called, it is empty to obtain multiframe Change image data;Wherein, the virtualization image data includes specific virtualization image data;By multiframe U.S. face image data And/or the multiframe virtualization image data synthesizes animation data;After the animation data shows, answered in the photograph album Show the specific U.S. face image data or the specific virtualization image data with program;It need not add when shooting additional Image processing algorithm reduces the time that user waits for, and user is observed that U.S. face and virtualization image processing process, enhances user Interactive experience.
Fig. 3 is the structure diagram of the image processing apparatus of the mobile terminal of one embodiment of the invention, the mobile terminal Including camera, the mobile terminal has the API of photograph album application program and image procossing, image processing apparatus shown in Fig. 3 Module 302, animation data synthesis module 303 and animation are obtained including original data acquisition module 301, character image data Data exhibiting module 304;
Original data acquisition module 301, for when receiving shooting instruction, being obtained by the camera initial Image data;
Character image data obtains module 302, and the API for calling described image to handle handles the initial pictures number According to acquisition multiframe character image data;
Animation data synthesis module 303, for the multiframe character image data to be synthesized animation data;
Animation data display module 304, for showing the animation data in the photograph album application program.
Preferably, the original data includes initial portrait data, and the original data acquisition module includes:
Initial portrait data acquisition submodule, for when receiving shooting instruction, being obtained by the camera initial Portrait data.
Preferably, the API of described image processing includes that U.S. face handles API, and the character image data obtains module and includes:
U.S. face image data obtains submodule, handles the initial portrait data for calling the U.S. face to handle API, obtains Obtain multiframe U.S. face image data;Wherein, the U.S. face image data includes specific U.S. face image data.
Preferably, the API of described image processing includes virtualization processing API, and the character image data obtains module and includes:
It blurs image data and obtains submodule, for calling the virtualization processing API processing specific U.S. face picture number According to acquisition multiframe blurs image data;Wherein, the virtualization image data includes specific virtualization image data.
Preferably, the animation data synthesis module includes:
Animation data synthesizes submodule, for multiframe U.S. face image data and/or the multiframe to be blurred picture number According to synthesizing animation data.
Preferably, described device further includes:
Image data display module shows for working as after the animation data shows in the photograph album application program The specific U.S. face image data or the specific virtualization image data.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, to avoid repeating, which is not described herein again.
In the embodiment of the present invention, the mobile terminal includes camera, and the mobile terminal has photograph album application program, and The mobile terminal has the API of image procossing, the method includes:When receiving shooting instruction, pass through the camera Obtain original data;It calls the API of described image processing to handle the original data, obtains multiframe characteristic image number According to;The multiframe character image data is synthesized into animation data;Show the animation data in the photograph album application program; In the embodiment of the present invention, additional image processing algorithm need not be added when shooting, reduce the time that user waits for, Yong Huke To observe image processing process, enhance user-interaction experience.
A kind of hardware architecture diagram of Fig. 4 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 400 includes but not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor The components such as 410 and power supply 411.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, the mobile terminal includes camera, and the mobile terminal has photograph album application program and image procossing API, processor 410, for when receiving shooting instruction, original data to be obtained by the camera;Described in calling The API of image procossing handles the original data, obtains multiframe character image data;By the multiframe character image data Synthesize animation data;Show the animation data in the photograph album application program.
In the embodiment of the present invention, the mobile terminal includes camera, the mobile terminal have photograph album application program and The API of image procossing, the method includes:When receiving shooting instruction, original data is obtained by the camera; It calls the API of described image processing to handle the original data, obtains multiframe character image data;By the multiframe feature Image data synthesizes animation data;Show the animation data in the photograph album application program;In the embodiment of the present invention, Additional image processing algorithm need not be added when shooting, reduces the time that user waits for, and user is observed that image procossing Process enhances user-interaction experience.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 402 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 403 can receive radio frequency unit 401 or network module 402 or in memory 409 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor (Graphics Processing Unit, GPU) 4044 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 407 include touch panel 4071 and Other input equipments 4072.Touch panel 4071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071 Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touch The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 400 or can be used in 400 He of mobile terminal Transmission data between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, and memory 409 is stored in On memory 409 and the computer program that can be run on the processor 410, the computer program are executed by processor 410 Each process of the image processing method embodiment of the above-mentioned mobile terminals of Shi Shixian, and identical technique effect can be reached, to keep away Exempt to repeat, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each of the image processing method embodiment of above-mentioned mobile terminal when being executed by processor Process, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage Medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (14)

1. a kind of image processing method of mobile terminal, which is characterized in that the mobile terminal includes camera, described mobile whole The application programming interface API with photograph album application program and image procossing is held, the method includes:
When receiving shooting instruction, original data is obtained by the camera;
It calls the API of described image processing to handle the original data, obtains multiframe character image data;
The multiframe character image data is synthesized into animation data;
Show the animation data in the photograph album application program.
2. according to the method described in claim 1, it is characterized in that, the original data includes initial portrait data, institute It states when receiving shooting instruction, includes by the step of camera acquisition original data:
When receiving shooting instruction, initial portrait data are obtained by the camera.
3. according to the method described in claim 2, it is characterized in that, the API of described image processing, which includes U.S. face, handles API, institute Stating the step of calling the API of described image processing to handle the original data, obtain multiframe character image data includes:
It calls the U.S. face to handle API and handles the initial portrait data, obtain multiframe U.S. face image data;Wherein, described U.S. Face image data includes specific U.S. face image data.
4. according to the method described in claim 3, it is characterized in that, the API of described image processing, which includes virtualization, handles API, institute Stating the step of calling the API of described image processing to handle the original data, obtain multiframe character image data includes:
The virtualization processing API processing specific U.S. face image data is called, multiframe is obtained and blurs image data;Wherein, institute It includes specific virtualization image data to state virtualization image data.
5. method according to claim 3 or 4, which is characterized in that described to synthesize the multiframe character image data The step of animation data includes:
Multiframe U.S. face image data and/or multiframe virtualization image data are synthesized into animation data.
6. method according to claim 3 or 4, which is characterized in that the method further includes:
Show the specific U.S. face image data or the specific virtualization image data in the photograph album application program.
7. a kind of image processing apparatus of mobile terminal, which is characterized in that the mobile terminal includes camera, described mobile whole Application programming interface API of the end with photograph album application program and image procossing, described device include:
Original data acquisition module, for when receiving shooting instruction, initial pictures number to be obtained by the camera According to;
Character image data obtains module, and the API for calling described image to handle handles the original data, obtains more Frame character image data;
Animation data synthesis module, for the multiframe character image data to be synthesized animation data;
Animation data display module, for showing the animation data in the photograph album application program.
8. device according to claim 7, which is characterized in that the original data includes initial portrait data, institute Stating original data acquisition module includes:
Initial portrait data acquisition submodule, for when receiving shooting instruction, initial portrait to be obtained by the camera Data.
9. device according to claim 8, which is characterized in that the API of described image processing includes that U.S. face handles API, institute Stating character image data acquisition module includes:
U.S. face image data obtains submodule, handles the initial portrait data for calling the U.S. face to handle API, obtains more Frame U.S. face image data;Wherein, the U.S. face image data includes specific U.S. face image data.
10. device according to claim 9, which is characterized in that the API of described image processing includes virtualization processing API, institute Stating character image data acquisition module includes:
It blurs image data and obtains submodule, for calling the virtualization processing API processing specific U.S. face image data, obtain It obtains multiframe and blurs image data;Wherein, the virtualization image data includes specific virtualization image data.
11. device according to claim 9 or 10, which is characterized in that the animation data synthesis module includes:
Animation data synthesizes submodule, for closing multiframe U.S. face image data and/or multiframe virtualization image data As animation data.
12. device according to claim 9 or 10, which is characterized in that described device further includes:
Image data display module, for showing the specific U.S. face image data or described specific in the photograph album application program Blur image data.
13. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor Any one of described in mobile terminal image procossing the step of.
14. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the image such as mobile terminal according to any one of claims 1 to 6 when the computer program is executed by processor The step of processing method.
CN201711479836.4A 2017-12-29 2017-12-29 A kind of image processing method and device, mobile terminal of mobile terminal Pending CN108304237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711479836.4A CN108304237A (en) 2017-12-29 2017-12-29 A kind of image processing method and device, mobile terminal of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711479836.4A CN108304237A (en) 2017-12-29 2017-12-29 A kind of image processing method and device, mobile terminal of mobile terminal

Publications (1)

Publication Number Publication Date
CN108304237A true CN108304237A (en) 2018-07-20

Family

ID=62868247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711479836.4A Pending CN108304237A (en) 2017-12-29 2017-12-29 A kind of image processing method and device, mobile terminal of mobile terminal

Country Status (1)

Country Link
CN (1) CN108304237A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565282A (en) * 2020-05-11 2020-08-21 Oppo(重庆)智能科技有限公司 Shooting control processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159032A (en) * 2014-08-20 2014-11-19 广东欧珀移动通信有限公司 Method and device of adjusting facial beautification effect in camera photographing in real time
CN104574470A (en) * 2014-12-31 2015-04-29 苏州乐米信息科技有限公司 Simple animation simulation method based on picture
CN104637078A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Image processing method and device
US20160342325A1 (en) * 2007-01-07 2016-11-24 Apple Inc. Application Programming Interfaces for Gesture Operations
CN106651999A (en) * 2016-12-27 2017-05-10 北京智能管家科技有限公司 Method and device for accelerating frame animation loading
CN106775902A (en) * 2017-01-25 2017-05-31 北京奇虎科技有限公司 A kind of method and apparatus of image procossing, mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160342325A1 (en) * 2007-01-07 2016-11-24 Apple Inc. Application Programming Interfaces for Gesture Operations
CN104637078A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Image processing method and device
CN104159032A (en) * 2014-08-20 2014-11-19 广东欧珀移动通信有限公司 Method and device of adjusting facial beautification effect in camera photographing in real time
CN104574470A (en) * 2014-12-31 2015-04-29 苏州乐米信息科技有限公司 Simple animation simulation method based on picture
CN106651999A (en) * 2016-12-27 2017-05-10 北京智能管家科技有限公司 Method and device for accelerating frame animation loading
CN106775902A (en) * 2017-01-25 2017-05-31 北京奇虎科技有限公司 A kind of method and apparatus of image procossing, mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565282A (en) * 2020-05-11 2020-08-21 Oppo(重庆)智能科技有限公司 Shooting control processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021093583A1 (en) Video stream processing method and apparatus, terminal device, and computer readable storage medium
CN108540724A (en) A kind of image pickup method and mobile terminal
CN109451349A (en) A kind of video broadcasting method, device and mobile terminal
CN106937039A (en) A kind of imaging method based on dual camera, mobile terminal and storage medium
CN109151546A (en) A kind of method for processing video frequency, terminal and computer readable storage medium
CN107820022A (en) A kind of photographic method and mobile terminal
CN107786827A (en) Video capture method, video broadcasting method, device and mobile terminal
CN108712603A (en) A kind of image processing method and mobile terminal
CN107592467A (en) A kind of image pickup method and mobile terminal
CN108320263A (en) A kind of method, device and mobile terminal of image procossing
CN108184057A (en) Flexible screen terminal taking method, flexible screen terminal and computer readable storage medium
CN107786811B (en) A kind of photographic method and mobile terminal
CN107730433A (en) One kind shooting processing method, terminal and computer-readable recording medium
CN108038825A (en) A kind of image processing method and mobile terminal
CN108335258A (en) A kind of image processing method and device of mobile terminal
CN107948516A (en) A kind of image processing method, device and mobile terminal
CN108881617A (en) A kind of display changeover method and mobile terminal
CN108174081B (en) A kind of image pickup method and mobile terminal
CN109448069A (en) A kind of template generation method and mobile terminal
CN108307105A (en) A kind of image pickup method, terminal and computer readable storage medium
CN108174110A (en) A kind of photographic method and flexible screen terminal
CN107959755A (en) A kind of photographic method and mobile terminal
CN109814773A (en) A kind of flexible screen control method and display component
CN109672845A (en) A kind of method, apparatus and mobile terminal of video calling
CN109542321A (en) A kind of control method and device of screen display content

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180720

RJ01 Rejection of invention patent application after publication