CN107767430A - One kind shooting processing method, terminal and computer-readable recording medium - Google Patents

One kind shooting processing method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107767430A
CN107767430A CN201710862076.9A CN201710862076A CN107767430A CN 107767430 A CN107767430 A CN 107767430A CN 201710862076 A CN201710862076 A CN 201710862076A CN 107767430 A CN107767430 A CN 107767430A
Authority
CN
China
Prior art keywords
main body
shooting
image
background
camera
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
CN201710862076.9A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710862076.9A priority Critical patent/CN107767430A/en
Publication of CN107767430A publication Critical patent/CN107767430A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of shooting processing method, applied to the terminal with least two cameras, at least two cameras, and a main camera of conduct, a conduct time camera;In shooting process, the dynamic image of all main body things in current shooting preview interface is shot according to the first preset algorithm by main camera;And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;The dynamic image of all main body things photographed is subjected to image with background according to the 3rd preset algorithm and synthesizes processing, generates target image, and preserve;The present invention also provides a kind of terminal and computer-readable recording medium;The image of main camera shooting is only main body thing, and background is removed;The image of secondary camera shooting is only background, and main body thing is removed;The dynamic image of main body thing is subjected to image with background and synthesizes processing, generates target image so that dynamic effect can be individually presented in the main body thing in target image, improve Consumer's Experience.

Description

One kind shooting processing method, terminal and computer-readable recording medium
Technical field
, can more specifically to one kind shooting processing method, terminal and computer the present invention relates to field of terminal technology Read storage medium.
Background technology
At present, when using the camera of the terminals such as mobile phone, PAD to shoot the image as main body thing such as personage, animal, often All it is to include to have powerful connections and main body thing in the image of individual camera shooting, background can not be individually independent with main body thing, nothing Single dynamic effect is presented in method realization body thing.
The content of the invention
It is a primary object of the present invention to propose a kind of shooting processing method, terminal and computer-readable recording medium, purport Solving in the prior art, in the image of camera shooting, background can not be individually independent with main body thing, can not realization body The problem of single dynamic effect is presented in thing.
In order to solve the above technical problems, the present invention provides a kind of shooting processing method, applied to at least two shootings The terminal of head, at least two cameras, a main camera of conduct, a conduct time camera;Shooting processing method includes Following steps:
In shooting process, all masters in current shooting preview interface are shot according to the first preset algorithm by main camera The dynamic image of body thing;
And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;
The dynamic image of all main body things photographed is subjected to image with background according to the 3rd preset algorithm and synthesizes processing, Target image is generated, and is preserved.
Optionally, the dynamic of all main body things in current shooting preview interface is shot by the main preset algorithm of camera first During image, in addition to:Record position of all main body things in current shooting preview interface in each two field picture;
During shooting the background in current shooting preview interface according to the second preset algorithm by secondary camera, also wrap Include:Record position of the background in current shooting preview interface in each two field picture;
The dynamic image of all main body things photographed is subjected to image with background according to the 3rd preset algorithm and synthesizes processing, Generation target image includes:
According in position of all main body things in each two field picture in current shooting preview interface and corresponding two field picture Position of the background in current shooting preview interface, by all main body things in corresponding two field picture and corresponding two field picture Background carries out image synthesis processing, generates the target image of corresponding frame;
According to the time order and function order of shooting, final target image will be generated per the connection of frame target image successively.
Optionally, all main body things in current shooting preview interface are shot according to the first preset algorithm by main camera Dynamic image includes:
All main body things in current shooting preview interface are identified;
To in each two field picture all main body things carry out FIG pull handle so that all main body things with corresponding two field picture Background separation, retain all main body things in corresponding two field picture;
According to the time order and function order of shooting, it will be connected successively per two field picture, generate dynamic image.
Optionally, shooting the background in current shooting preview interface according to the second preset algorithm by secondary camera includes:
All main body things in current shooting preview interface are identified;
FIG pull handle is carried out to the background in each two field picture so that background and all main body things in corresponding two field picture point From the background in the corresponding two field picture of reservation.
Optionally, target image is generated, and after preservation, in addition to:
When the touch control operation of any body thing in receiving user to target image, then the dynamic shadow of the main body thing is shown Picture.
Optionally, target image is generated, and after preservation, in addition to:
In the case that the quantity of main body thing is more than or equal to 2 in the target image, target image is touched if receiving user Control operation, judge touch control operation pressure value whether exceed preset pressure threshold value, and/or judge touch control operation touch point whether More than predetermined number, and/or judge whether the duration of touch control operation exceedes preset duration;
If so, then in display target image all main body things dynamic image.
Optionally, in shooting process, current shooting preview interface is shot according to the first preset algorithm by main camera In all main body things dynamic image before, in addition to:Spatial cache is set, and spatial cache, which is used to cache, performs the first imputation in advance Caused data during method, the second preset algorithm, the 3rd preset algorithm.
Optionally, in shooting process, current shooting preview interface is shot according to the first preset algorithm by main camera In all main body things dynamic image before, in addition to:
Display sets interface, sets interface to include the unlatching options of preset function;Preset function includes:In shooting process In, the dynamic image by main camera according to all main body things in the first preset algorithm shooting current shooting preview interface;And By secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;It will be clapped according to the 3rd preset algorithm The dynamic image for all main body things taken the photograph carries out image with background and synthesizes processing, generates target image, and preserve;
Receive the selected operation to opening options;
Preset function is opened according to selected operation.
Further, the present invention provides a kind of terminal, and terminal has at least two cameras, at least two cameras, One main camera of conduct, a conduct time camera;Terminal includes processor, memory and communication bus;
Communication bus is used to realize the connection communication between processor and memory;
Processor is used to perform one or more program stored in memory, to realize foregoing shooting processing method The step of.
Further, the present invention provides a kind of computer-readable recording medium, and computer-readable recording medium storage has one Individual or multiple programs, one or more program can be by one or more computing devices, to realize at foregoing shooting The step of reason method.
Beneficial effect
The invention provides one kind to shoot processing method, applied to the terminal with least two cameras, at least two In camera, a main camera of conduct, a conduct time camera;The shooting processing method comprises the following steps:Shooting During, the dynamic shadow by main camera according to all main body things in the first preset algorithm shooting current shooting preview interface Picture;And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;According to the 3rd pre- imputation The dynamic image of all main body things photographed is carried out image with background and synthesizes processing by method, generates target image, and preserve;This Invention additionally provides a kind of terminal and computer-readable recording medium;By such scheme, the image of main camera shooting is only Main body thing, background are removed;The image of secondary camera shooting is only background, and main body thing is removed;Then again by main shooting The dynamic image of the main body thing of head shooting carries out image with time background of camera shooting and synthesizes processing, generates target image, makes Dynamic effect can be individually presented in the main body thing obtained in target image, add interest, for the photo compared to static state, more The action of main body thing and expression, improve Consumer's Experience when really reflecting shooting.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware architecture diagram for realizing each optional terminal of embodiment one of the present invention;
Fig. 2 is a kind of flow chart for shooting processing method that first embodiment of the invention provides;
Fig. 3 is a kind of signal for the first two field picture for shooting to obtain by main camera that each embodiment of the present invention provides Figure;
Fig. 4 is a kind of signal for the first two field picture for shooting to obtain by secondary camera that each embodiment of the present invention provides Figure;
Fig. 5 is the signal after a kind of personage by the first two field picture that each embodiment of the present invention provides synthesizes with background Figure;
Fig. 6 is a kind of schematic diagram for terminal that second embodiment of the invention provides.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the server of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use is used In represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself is simultaneously There is no specific meaning.Therefore, " module " can be used mixedly with " part ".
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be appreciated by those skilled in the art that in addition to being used in particular for moving the element of purpose, according to the present invention's The construction of embodiment can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for each optional terminal of embodiment one of the realization present invention, the end End 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storage Device 109 and the grade part of processor 110.It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 is not formed pair The restriction of terminal, terminal can be included than illustrating more or less parts, either combine some parts or different parts Arrangement.
The all parts of terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA1000 (Code Division Multiple Access 1000, CDMA 1000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 102 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.
Audio output unit 103 can be in call signal reception pattern, call mode, logging mode, language in terminal 100 It is receiving or depositing by radio frequency unit 101 or WiFi module 102 when under the isotypes such as sound recognition mode, broadcast reception mode It is sound that the voice data stored in reservoir 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 may be used also With the specific function provided to terminal 100 performs, related audio output is (for example, call signal receives sound, message sink sound Sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061, and proximity transducer can close display panel when terminal 100 is moved in one's ear 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also Configurable fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the user with terminal 100 Set and function control it is relevant key signals input.Specifically, user input unit 107 may include contact panel 1071 and Other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not limited herein specifically It is fixed.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with terminal 100.It is for example, outside Device can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless number According to port, memory card port, for connecting the port of device with identification module, audio input/output (I/O) port, regarding Frequency I/O ports, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data are believed Breath, electric power etc.) and one or more elements that the input received is transferred in terminal 100 or can be used at end Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include 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 Voice data, phone directory etc.) etc..In addition, memory 109 can 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 110 is the control centre of terminal 100, utilizes each of various interfaces and the whole terminal 100 of connection Part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in memory Data in 109, the various functions and processing data of terminal 100 are performed, so as to carry out integral monitoring to terminal 100.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Although Fig. 1 is not shown, terminal 100 can also will not be repeated here including bluetooth module etc..
Based on above-mentioned terminal hardware structure, below by way of specific embodiment, the present invention is described in detail.
First embodiment
Fig. 2 is a kind of flow chart for shooting processing method that the present embodiment provides, and the present embodiment will be provided at a kind of shooting Reason method, applied to the terminal with least two cameras, at least two cameras, a main camera of conduct, one As secondary camera, main camera, secondary camera are arranged at the same face of terminal, such as are arranged at the back side of terminal, or Person is arranged at the front of terminal;Main camera, secondary camera independent operating;The shooting processing method comprises the following steps:
S201:In shooting process, shot by main camera according to the first preset algorithm in current shooting preview interface The dynamic image of all main body things;
Terminal includes smart mobile phone, PAD, video camera etc..
Main body thing includes personage, animal etc..
For example, shooting personage A, shooting duration of video is 2 seconds, then that photographed by main camera is personage A dynamic in 2 seconds State image.
S201 shoots the dynamic of all main body things in current shooting preview interface by main camera according to the first preset algorithm State image includes following three steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to all main body things in each two field picture so that all main body things and corresponding frame Background separation in image, retain all main body things in corresponding two field picture;
That is, the image for shooting to obtain by main camera is the image for only including main body thing, background is removed;
3rd step:According to the time order and function order of shooting, it will be connected successively per two field picture, generate dynamic image.
The dynamic image is made up of the image of the only thing containing main body one by one.
S202:And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;
The background that S202 is shot by secondary camera according to the second preset algorithm in current shooting preview interface includes following Two steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to the background in each two field picture so that background and owning in corresponding two field picture Main body thing separates, and retains the background in corresponding two field picture.
That is, the image for shooting to obtain by secondary camera is the image for only including background, main body thing is removed.
By way of main camera, secondary camera independent operating, all main body things in picture are carried out respectively dynamic Collection and the collection of static background;Main body thing and background are independent figure layers, are advantageous to the later stage to the dynamic of the main body thing of shooting State is checked that the main body thing that dynamic is presented can be selected individually.
S203:The dynamic image of all main body things photographed is carried out into image with background according to the 3rd preset algorithm to synthesize Processing, target image is generated, and preserved.
Optionally, S201 shoots all main body things in current shooting preview interface by the main preset algorithm of camera first During dynamic image, in addition to:Record position of all main body things in current shooting preview interface in each two field picture;
For example, in the first two field picture, the position of main body thing A left eye in current shooting preview interface is X1; In two two field pictures, the position of main body thing A left eye in current shooting preview interface is X2;
During S202 shoots the background in current shooting preview interface by secondary camera according to the second preset algorithm, Also include:Record position of the background in current shooting preview interface in each two field picture;
For example, in the first two field picture, position of the B points in current shooting preview interface in background is Y1;Second In two field picture, position of the B points in current shooting preview interface in background is Y2;
The dynamic image of all main body things photographed is carried out image with background according to the 3rd preset algorithm and synthesized by S203 Processing, generation target image include following two steps:
The first step:According to position of all main body things in each two field picture in current shooting preview interface and correspondingly Position of the background in current shooting preview interface in two field picture, by all main body things in corresponding two field picture and corresponding frame Background in image carries out image synthesis processing, generates the target image of corresponding frame;
For example, in the first two field picture in post synthesis, the position of main body thing A left eye is still X1, the position of the B points in background Put still is Y1;
The image that main camera shoots to obtain only includes main body thing, and the image that secondary camera shoots to obtain only includes background, By the main body thing of record, the position of background when synthesis, the relative position of main body thing and background in image is determined after synthesis Put;
When being synthesized to a certain two field picture, its implementation can be closed main body thing figure layer with Background From Layer Into.
Second step:According to the time order and function order of shooting, final target figure will be generated per the connection of frame target image successively Picture.
For example, with reference to Fig. 3, Fig. 3 is a kind of the first two field picture for shooting to obtain by main camera that the present embodiment provides Schematic diagram;
Referring to Fig. 4, Fig. 4 is a kind of signal for the first two field picture for shooting to obtain by secondary camera that the present embodiment provides Figure;
Referring to Fig. 5, Fig. 5 is the signal after a kind of personage by the first two field picture that the present embodiment provides synthesizes with background Figure.
Optionally, S203 generates target image, and after preservation, in addition to:
When the touch control operation of any body thing in receiving user to target image, then the dynamic shadow of the main body thing is shown Picture.
Touch control operation can be click on operation, pressing operation etc.;The pressure value of touch control operation can set smaller, such as In general clicking operation can trigger the dynamic image for showing the main body thing;It can also be provided that when more than predetermined threshold value, Triggering shows the dynamic image of the main body thing.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user's weight When personage C in target image is hit in force, dynamic effect is presented in personage C, and other two personages D, E are still inactive state;
Now, background can be the background of fixed a certain two field picture;
Can also be the change and the background that changes for following personage C to act, for example, the background of shooting includes an electricity Brain, the cup beside computer, and the wall after computer, cup, the background of this 2 personages of D, E is only wall, namely Only block wall, do not shelter from computer and cup;During the first two field picture, for personage C arm before cup, cup has one Divide and blocked by arm, computer is not blocked;During ten two field pictures, personage C arm before computer, computer some by hand Arm is blocked, and cup is not blocked;Then when user's gravity clicks personage C in target image, personage C dynamic effect is being presented When, the display of the first two field picture includes:Personage C arm is before cup, and some is blocked cup by arm, computer not by Block;The display of tenth two field picture includes:Personage C arm is before computer, and some is blocked computer by arm, and cup is not It is blocked.
Optionally, S203 generates target image, and after preservation, in addition to:
In the case that the quantity of main body thing is more than or equal to 2 in the target image, target image is touched if receiving user Control operation, judge touch control operation pressure value whether exceed preset pressure threshold value, and/or judge touch control operation touch point whether More than predetermined number, and/or judge whether the duration of touch control operation exceedes preset duration;
If so, then in display target image all main body things dynamic image.
Touch control operation can be click on operation, pressing operation etc.;Preset pressure threshold value could be arranged to 5N, 6N etc.;It is default Number could be arranged to 2,3 etc.;Preset duration could be arranged to 1.5 seconds, 2 seconds, 3 seconds etc..
Touch control operation now can be at any position in the target image, can be background in the target image At place or main body thing in the target image.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user is double When referring to gravity pressing target image simultaneously, then this 3 personages of C, D, E dynamically show in target image.
If target image is not affected by touch control operation, the main body thing in target image remains static.
Optionally, in shooting process, current shooting preview interface is shot according to the first preset algorithm by main camera In all main body things dynamic image before, in addition to:Spatial cache is set, and spatial cache, which is used to cache, performs the first imputation in advance Caused data during method, the second preset algorithm, the 3rd preset algorithm.
Because algorithm its algorithm amount that the shooting processing method that the present embodiment provides is related to is larger, tens can be probably produced Millionth, even up to a hundred million data a, so spatial cache need to be set to carry out data storage.
Optionally, S201 in shooting process, current shooting preview is shot by main camera according to the first preset algorithm In interface before the dynamic image of all main body things, in addition to:
Display sets interface, sets interface to include the unlatching options of preset function;Preset function includes:In shooting process In, the dynamic image by main camera according to all main body things in the first preset algorithm shooting current shooting preview interface;And By secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;It will be clapped according to the 3rd preset algorithm The dynamic image for all main body things taken the photograph carries out image with background and synthesizes processing, generates target image, and preserve;
Receive the selected operation to opening options;
Preset function is opened according to selected operation.
That is, user can determine whether to open preset function according to the demand of oneself.
Optionally, target image is generated in S203, and after preservation, in addition to:
Display sets interface, sets interface to include the closing options of preset function;
Receive the selected operation to closing options;
Preset function is closed according to selected operation.
That is, user can determine whether to close preset function according to the demand of oneself.
For example, personage C, which participates in unlatching preset function when classmate's party terminates, have taken an opening and closing according to souvenir, some months Afterwards, personage C checks the photo shot at that time, personage's C gravity clicks the personage D in group photo, it is seen that personage D was shot The dynamic of journey is presented, and the dynamic for clicking other several junior partners successively is presented, and has harvested full memory.
By the implementation of the present embodiment, the image of main camera shooting is only main body thing, and background is removed;Secondary camera The image of shooting is only background, and main body thing is removed;Then the dynamic image of the main body thing again shot main camera with time The background of camera shooting carries out image synthesis processing, generates target image so that the main body thing in target image can be in individually Existing dynamic effect, adds interest, and for the photo compared to static state, main body thing is dynamic when more really reflecting shooting Work and expression, improve Consumer's Experience.
Second embodiment
The present embodiment provides a kind of terminal, referring to Fig. 6, a kind of schematic diagram for terminal that Fig. 6 provides for the present embodiment, and the end Holding includes at least two cameras, at least two cameras, a main camera of conduct, a conduct time camera, leads and takes the photograph As head, secondary camera are arranged at the same face of terminal, such as the back side of terminal is arranged at, or is arranged at terminal just Face;Main camera, secondary camera independent operating;The terminal also includes processor 601, memory 602 and communication bus 603, its In:
Communication bus 603 is used to realize the connection communication between processor 601 and memory 602;
Processor 601 is used to perform the one or more programs stored in memory 602, to realize in first embodiment The step of shooting processing method.
Specifically, processor 601 is used to perform the one or more programs stored in memory 602, to realize following walk Suddenly:
S201:In shooting process, shot by main camera according to the first preset algorithm in current shooting preview interface The dynamic image of all main body things;
Terminal includes smart mobile phone, PAD, video camera etc..
Main body thing includes personage, animal etc..
For example, shooting personage A, shooting duration of video is 2 seconds, then that photographed by main camera is personage A dynamic in 2 seconds State image.
S201 shoots the dynamic of all main body things in current shooting preview interface by main camera according to the first preset algorithm State image includes following three steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to all main body things in each two field picture so that all main body things and corresponding frame Background separation in image, retain all main body things in corresponding two field picture;
That is, the image for shooting to obtain by main camera is the image for only including main body thing, background is removed;
3rd step:According to the time order and function order of shooting, it will be connected successively per two field picture, generate dynamic image.
The dynamic image is made up of the image of the only thing containing main body one by one.
S202:And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;
The background that S202 is shot by secondary camera according to the second preset algorithm in current shooting preview interface includes following Two steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to the background in each two field picture so that background and owning in corresponding two field picture Main body thing separates, and retains the background in corresponding two field picture.
That is, the image for shooting to obtain by secondary camera is the image for only including background, main body thing is removed.
By way of main camera, secondary camera independent operating, all main body things in picture are carried out respectively dynamic Collection and the collection of static background;Main body thing and background are independent figure layers, are advantageous to the later stage to the dynamic of the main body thing of shooting State is checked that the main body thing that dynamic is presented can be selected individually.
S203:The dynamic image of all main body things photographed is carried out into image with background according to the 3rd preset algorithm to synthesize Processing, target image is generated, and preserved.
Optionally, S201 shoots all main body things in current shooting preview interface by the main preset algorithm of camera first During dynamic image, processor 601 is additionally operable to perform one or more programs for storing in memory 602, with realize with Lower step:Record position of all main body things in current shooting preview interface in each two field picture;
For example, in the first two field picture, the position of main body thing A left eye in current shooting preview interface is X1; In two two field pictures, the position of main body thing A left eye in current shooting preview interface is X2;
During S202 shoots the background in current shooting preview interface by secondary camera according to the second preset algorithm, Processor 601 is additionally operable to perform the one or more programs stored in memory 602, to realize following steps:Record each frame Position of the background in current shooting preview interface in image;
For example, in the first two field picture, position of the B points in current shooting preview interface in background is Y1;Second In two field picture, position of the B points in current shooting preview interface in background is Y2;
The dynamic image of all main body things photographed is carried out image with background according to the 3rd preset algorithm and synthesized by S203 Processing, generation target image include following two steps:
The first step:According to position of all main body things in each two field picture in current shooting preview interface and correspondingly Position of the background in current shooting preview interface in two field picture, by all main body things in corresponding two field picture and corresponding frame Background in image carries out image synthesis processing, generates the target image of corresponding frame;
For example, in the first two field picture in post synthesis, the position of main body thing A left eye is still X1, the position of the B points in background Put still is Y1;
The image that main camera shoots to obtain only includes main body thing, and the image that secondary camera shoots to obtain only includes background, By the main body thing of record, the position of background when synthesis, the relative position of main body thing and background in image is determined after synthesis Put;
When being synthesized to a certain two field picture, its implementation can be closed main body thing figure layer with Background From Layer Into.
Second step:According to the time order and function order of shooting, final target figure will be generated per the connection of frame target image successively Picture.
For example, with reference to Fig. 3, Fig. 3 is a kind of the first two field picture for shooting to obtain by main camera that the present embodiment provides Schematic diagram;
Referring to Fig. 4, Fig. 4 is a kind of signal for the first two field picture for shooting to obtain by secondary camera that the present embodiment provides Figure;
Referring to Fig. 5, Fig. 5 is the signal after a kind of personage by the first two field picture that the present embodiment provides synthesizes with background Figure.
Optionally, S203 generates target image, and after preservation, processor 601 is additionally operable to perform and stored in memory 602 One or more programs, to realize following steps:
When the touch control operation of any body thing in receiving user to target image, then the dynamic shadow of the main body thing is shown Picture.
Touch control operation can be click on operation, pressing operation etc.;The pressure value of touch control operation can set smaller, such as In general clicking operation can trigger the dynamic image for showing the main body thing;It can also be provided that when more than predetermined threshold value, Triggering shows the dynamic image of the main body thing.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user's weight When personage C in target image is hit in force, dynamic effect is presented in personage C, and other two personages D, E are still inactive state;
Now, background can be the background of fixed a certain two field picture;
Can also be the change and the background that changes for following personage C to act, for example, the background of shooting includes an electricity Brain, the cup beside computer, and the wall after computer, cup, the background of this 2 personages of D, E is only wall, namely Only block wall, do not shelter from computer and cup;During the first two field picture, for personage C arm before cup, cup has one Divide and blocked by arm, computer is not blocked;During ten two field pictures, personage C arm before computer, computer some by hand Arm is blocked, and cup is not blocked;Then when user's gravity clicks personage C in target image, personage C dynamic effect is being presented When, the display of the first two field picture includes:Personage C arm is before cup, and some is blocked cup by arm, computer not by Block;The display of tenth two field picture includes:Personage C arm is before computer, and some is blocked computer by arm, and cup is not It is blocked.
Optionally, S203 generates target image, and after preservation, processor 601 is additionally operable to perform and stored in memory 602 One or more programs, to realize following steps:
In the case that the quantity of main body thing is more than or equal to 2 in the target image, target image is touched if receiving user Control operation, judge touch control operation pressure value whether exceed preset pressure threshold value, and/or judge touch control operation touch point whether More than predetermined number, and/or judge whether the duration of touch control operation exceedes preset duration;
If so, then in display target image all main body things dynamic image.
Touch control operation can be click on operation, pressing operation etc.;Preset pressure threshold value could be arranged to 5N, 6N etc.;It is default Number could be arranged to 2,3 etc.;Preset duration could be arranged to 1.5 seconds, 2 seconds, 3 seconds etc..
Touch control operation now can be at any position in the target image, can be background in the target image At place or main body thing in the target image.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user is double When referring to gravity pressing target image simultaneously, then this 3 personages of C, D, E dynamically show in target image.
If target image is not affected by touch control operation, the main body thing in target image remains static.
Optionally, in shooting process, current shooting preview interface is shot according to the first preset algorithm by main camera In the front processors 601 of dynamic image of all main body things be additionally operable to perform one or more programs for storing in memory 602, To realize following steps:Spatial cache is set, and spatial cache, which is used to cache, performs the first preset algorithm, the second preset algorithm, the Caused data during three preset algorithms.
Because algorithm its algorithm amount that the shooting processing method that the present embodiment provides is related to is larger, tens can be probably produced Millionth, even up to a hundred million data a, so spatial cache need to be set to carry out data storage.
Optionally, S201 in shooting process, current shooting preview is shot by main camera according to the first preset algorithm In interface before the dynamic image of all main body things, processor 601 is additionally operable to perform the one or more stored in memory 602 Program, to realize following steps:
Display sets interface, sets interface to include the unlatching options of preset function;Preset function includes:In shooting process In, the dynamic image by main camera according to all main body things in the first preset algorithm shooting current shooting preview interface;And By secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;It will be clapped according to the 3rd preset algorithm The dynamic image for all main body things taken the photograph carries out image with background and synthesizes processing, generates target image, and preserve;
Receive the selected operation to opening options;
Preset function is opened according to selected operation.
That is, user can determine whether to open preset function according to the demand of oneself.
Optionally, target image is generated in S203, and after preservation, processor 601 is additionally operable to perform and deposited in memory 602 One or more programs of storage, to realize following steps:
Display sets interface, sets interface to include the closing options of preset function;
Receive the selected operation to closing options;
Preset function is closed according to selected operation.
That is, user can determine whether to close preset function according to the demand of oneself.
For example, personage C, which participates in unlatching preset function when classmate's party terminates, have taken an opening and closing according to souvenir, some months Afterwards, personage C checks the photo shot at that time, personage's C gravity clicks the personage D in group photo, it is seen that personage D was shot The dynamic of journey is presented, and the dynamic for clicking other several junior partners successively is presented, and has harvested full memory.
By the implementation of the present embodiment, the image of main camera shooting is only main body thing, and background is removed;Secondary camera The image of shooting is only background, and main body thing is removed;Then the dynamic image of the main body thing again shot main camera with time The background of camera shooting carries out image synthesis processing, generates target image so that the main body thing in target image can be in individually Existing dynamic effect, adds interest, and for the photo compared to static state, main body thing is dynamic when more really reflecting shooting Work and expression, improve Consumer's Experience.
3rd embodiment
The present embodiment provides a kind of computer-readable recording medium, and computer-readable recording medium storage has one or more Individual program, one or more program can be by one or more computing devices, to realize at the shooting in first embodiment The step of reason method.
Specifically, one or more program can be by one or more computing device, to realize following steps:
S201:In shooting process, shot by main camera according to the first preset algorithm in current shooting preview interface The dynamic image of all main body things;
Main body thing includes personage, animal etc..
For example, shooting personage A, shooting duration of video is 2 seconds, then that photographed by main camera is personage A dynamic in 2 seconds State image.
S201 shoots the dynamic of all main body things in current shooting preview interface by main camera according to the first preset algorithm State image includes following three steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to all main body things in each two field picture so that all main body things and corresponding frame Background separation in image, retain all main body things in corresponding two field picture;
That is, the image for shooting to obtain by main camera is the image for only including main body thing, background is removed;
3rd step:According to the time order and function order of shooting, it will be connected successively per two field picture, generate dynamic image.
The dynamic image is made up of the image of the only thing containing main body one by one.
S202:And by secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;
The background that S202 is shot by secondary camera according to the second preset algorithm in current shooting preview interface includes following Two steps:
The first step:All main body things in current shooting preview interface are identified;
Focusing method, face recognition technology, four limbs identification technology, infrared temperature induction technology, human body elastic graph can be used The methods of characteristic matching method, identifies main body thing;
For example, user is allowed to select the personage being taken by infrared temperature induction technology and focusing method.
Second step:FIG pull handle is carried out to the background in each two field picture so that background and owning in corresponding two field picture Main body thing separates, and retains the background in corresponding two field picture.
That is, the image for shooting to obtain by secondary camera is the image for only including background, main body thing is removed.
By way of main camera, secondary camera independent operating, all main body things in picture are carried out respectively dynamic Collection and the collection of static background;Main body thing and background are independent figure layers, are advantageous to the later stage to the dynamic of the main body thing of shooting State is checked that the main body thing that dynamic is presented can be selected individually.
S203:The dynamic image of all main body things photographed is carried out into image with background according to the 3rd preset algorithm to synthesize Processing, target image is generated, and preserved.
Optionally, S201 shoots all main body things in current shooting preview interface by the main preset algorithm of camera first During dynamic image, one or more program can also be by one or more computing device, to realize following steps: Record position of all main body things in current shooting preview interface in each two field picture;
For example, in the first two field picture, the position of main body thing A left eye in current shooting preview interface is X1; In two two field pictures, the position of main body thing A left eye in current shooting preview interface is X2;
During S202 shoots the background in current shooting preview interface by secondary camera according to the second preset algorithm, One or more program can also be by one or more computing device, to realize following steps:Record in each two field picture Position of the background in current shooting preview interface;
For example, in the first two field picture, position of the B points in current shooting preview interface in background is Y1;Second In two field picture, position of the B points in current shooting preview interface in background is Y2;
The dynamic image of all main body things photographed is carried out image with background according to the 3rd preset algorithm and synthesized by S203 Processing, generation target image include following two steps:
The first step:According to position of all main body things in each two field picture in current shooting preview interface and correspondingly Position of the background in current shooting preview interface in two field picture, by all main body things in corresponding two field picture and corresponding frame Background in image carries out image synthesis processing, generates the target image of corresponding frame;
For example, in the first two field picture in post synthesis, the position of main body thing A left eye is still X1, the position of the B points in background Put still is Y1;
The image that main camera shoots to obtain only includes main body thing, and the image that secondary camera shoots to obtain only includes background, By the main body thing of record, the position of background when synthesis, the relative position of main body thing and background in image is determined after synthesis Put;
When being synthesized to a certain two field picture, its implementation can be closed main body thing figure layer with Background From Layer Into.
Second step:According to the time order and function order of shooting, final target figure will be generated per the connection of frame target image successively Picture.
For example, with reference to Fig. 3, Fig. 3 is a kind of the first two field picture for shooting to obtain by main camera that the present embodiment provides Schematic diagram;
Referring to Fig. 4, Fig. 4 is a kind of signal for the first two field picture for shooting to obtain by secondary camera that the present embodiment provides Figure;
Referring to Fig. 5, Fig. 5 is the signal after a kind of personage by the first two field picture that the present embodiment provides synthesizes with background Figure.
Optionally, S203 generates target image, and after preservation, one or more program can also be by one or more Computing device, to realize following steps:
When the touch control operation of any body thing in receiving user to target image, then the dynamic shadow of the main body thing is shown Picture.
Touch control operation can be click on operation, pressing operation etc.;The pressure value of touch control operation can set smaller, such as In general clicking operation can trigger the dynamic image for showing the main body thing;It can also be provided that when more than predetermined threshold value, Triggering shows the dynamic image of the main body thing.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user's weight When personage C in target image is hit in force, dynamic effect is presented in personage C, and other two personages D, E are still inactive state;
Now, background can be the background of fixed a certain two field picture;
Can also be the change and the background that changes for following personage C to act, for example, the background of shooting includes an electricity Brain, the cup beside computer, and the wall after computer, cup, the background of this 2 personages of D, E is only wall, namely Only block wall, do not shelter from computer and cup;During the first two field picture, for personage C arm before cup, cup has one Divide and blocked by arm, computer is not blocked;During ten two field pictures, personage C arm before computer, computer some by hand Arm is blocked, and cup is not blocked;Then when user's gravity clicks personage C in target image, personage C dynamic effect is being presented When, the display of the first two field picture includes:Personage C arm is before cup, and some is blocked cup by arm, computer not by Block;The display of tenth two field picture includes:Personage C arm is before computer, and some is blocked computer by arm, and cup is not It is blocked.
Optionally, S203 generates target image, and after preservation, one or more program can also be by one or more Computing device, to realize following steps:
In the case that the quantity of main body thing is more than or equal to 2 in the target image, target image is touched if receiving user Control operation, judge touch control operation pressure value whether exceed preset pressure threshold value, and/or judge touch control operation touch point whether More than predetermined number, and/or judge whether the duration of touch control operation exceedes preset duration;
If so, then in display target image all main body things dynamic image.
Touch control operation can be click on operation, pressing operation etc.;Preset pressure threshold value could be arranged to 5N, 6N etc.;It is default Number could be arranged to 2,3 etc.;Preset duration could be arranged to 1.5 seconds, 2 seconds, 3 seconds etc..
Touch control operation now can be at any position in the target image, can be background in the target image At place or main body thing in the target image.
For example, have this 3 personages of C, D, E in target image, and this 3 personages are dynamic during shooting, when user is double When referring to gravity pressing target image simultaneously, then this 3 personages of C, D, E dynamically show in target image.
If target image is not affected by touch control operation, the main body thing in target image remains static.
Optionally, in shooting process, current shooting preview interface is shot according to the first preset algorithm by main camera In all main body things dynamic image before, one or more program can also be by one or more computing device, with reality Existing following steps:Spatial cache is set, and spatial cache, which is used to cache, performs the first preset algorithm, the second preset algorithm, the 3rd pre- Caused data during imputation method.
Because algorithm its algorithm amount that the shooting processing method that the present embodiment provides is related to is larger, tens can be probably produced Millionth, even up to a hundred million data a, so spatial cache need to be set to carry out data storage.
Optionally, S201 in shooting process, current shooting preview is shot by main camera according to the first preset algorithm In interface before the dynamic image of all main body things, one or more program can also by one or more computing device, To realize following steps:
Display sets interface, sets interface to include the unlatching options of preset function;Preset function includes:In shooting process In, the dynamic image by main camera according to all main body things in the first preset algorithm shooting current shooting preview interface;And By secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;It will be clapped according to the 3rd preset algorithm The dynamic image for all main body things taken the photograph carries out image with background and synthesizes processing, generates target image, and preserve;
Receive the selected operation to opening options;
Preset function is opened according to selected operation.
That is, user can determine whether to open preset function according to the demand of oneself.
Optionally, target image is generated in S203, and after preservation, one or more program can also be by one or more Individual computing device, to realize following steps:
Display sets interface, sets interface to include the closing options of preset function;
Receive the selected operation to closing options;
Preset function is closed according to selected operation.
That is, user can determine whether to close preset function according to the demand of oneself.
For example, personage C, which participates in unlatching preset function when classmate's party terminates, have taken an opening and closing according to souvenir, some months Afterwards, personage C checks the photo shot at that time, personage's C gravity clicks the personage D in group photo, it is seen that personage D was shot The dynamic of journey is presented, and the dynamic for clicking other several junior partners successively is presented, and has harvested full memory.
By the implementation of the present embodiment, the image of main camera shooting is only main body thing, and background is removed;Secondary camera The image of shooting is only background, and main body thing is removed;Then the dynamic image of the main body thing again shot main camera with time The background of camera shooting carries out image synthesis processing, generates target image so that the main body thing in target image can be in individually Existing dynamic effect, adds interest, and for the photo compared to static state, main body thing is dynamic when more really reflecting shooting Work and expression, improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" 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 not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. one kind shooting processing method, it is characterised in that applied to the terminal with least two cameras, described at least two In camera, a main camera of conduct, a conduct time camera;The shooting processing method comprises the following steps:
In shooting process, all masters in current shooting preview interface are shot according to the first preset algorithm by the main camera The dynamic image of body thing;
And by the secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;
The dynamic image of all main body things photographed is carried out into image with the background according to the 3rd preset algorithm to synthesize Processing, target image is generated, and preserved.
2. shooting processing method as claimed in claim 1, it is characterised in that described to be imputed in advance by the main camera first In method shooting current shooting preview interface during the dynamic image of all main body things, in addition to:Record in each two field picture Position of all main body things in the current shooting preview interface;
The mistake of the background shot by the secondary camera according to the second preset algorithm in the current shooting preview interface Cheng Zhong, in addition to:Record position of the background described in each two field picture in the current shooting preview interface;
It is described that the dynamic image of all main body things photographed and the background are subjected to image according to the 3rd preset algorithm Synthesis is handled, and generation target image includes:
Position and corresponding frame figure of all main body things according to each two field picture in the current shooting preview interface Position of the background in the current shooting preview interface as described in, by all main body things in corresponding two field picture and right Answer the background in two field picture to carry out image synthesis processing, generate the target image of corresponding frame;
According to the time order and function order of shooting, final target image will be generated per the connection of frame target image successively.
3. shooting processing method as claimed in claim 1, it is characterised in that described pre- according to first by the main camera The dynamic image of all main body things includes in imputation method shooting current shooting preview interface:
All main body things in the current shooting preview interface are identified;
To in each two field picture all main body things carry out FIG pull handle so that all main body things with corresponding two field picture Background separation, retain all main body things in corresponding two field picture;
According to the time order and function order of shooting, it will be connected successively per two field picture, generate the dynamic image.
4. shooting processing method as claimed in claim 1, it is characterised in that described pre- according to second by the secondary camera The background that imputation method is shot in the current shooting preview interface includes:
All main body things in the current shooting preview interface are identified;
FIG pull handle is carried out to the background in each two field picture so that the background and all main body things in corresponding two field picture point From the background in the corresponding two field picture of reservation.
5. the shooting processing method as described in any one of Claims 1-4, it is characterised in that the generation target image, and protect After depositing, in addition to:
When the touch control operation of any body thing in receiving user to the target image, then the dynamic shadow of the main body thing is shown Picture.
6. the shooting processing method as described in any one of Claims 1-4, it is characterised in that the generation target image, and protect After depositing, in addition to:
In the case that the quantity of main body thing is more than or equal to 2 in the target image, if receiving user to the target image Touch control operation, judge whether the pressure value of the touch control operation exceedes preset pressure threshold value, and/or judge the touch control operation Touch point whether exceed and predetermined number, and/or judge whether the duration of the touch control operation exceedes preset duration;
If so, then show the dynamic image of all main body things in the target image.
7. the shooting processing method as described in any one of Claims 1-4, it is characterised in that it is described in shooting process, pass through The main camera is shot in current shooting preview interface before the dynamic image of all main body things according to the first preset algorithm, also Including:Spatial cache is set, and the spatial cache, which is used to cache, performs first preset algorithm, the second preset algorithm, the 3rd Caused data during preset algorithm.
8. the shooting processing method as described in any one of Claims 1-4, it is characterised in that it is described in shooting process, pass through The main camera is shot in current shooting preview interface before the dynamic image of all main body things according to the first preset algorithm, also Including:
Display sets interface, the unlatching options for setting interface to include preset function;The preset function includes:Shooting During, the dynamic by the main camera according to all main body things in the first preset algorithm shooting current shooting preview interface Image;And by the secondary camera according to the background in the second preset algorithm shooting current shooting preview interface;According to The dynamic image of all main body things photographed is carried out image with the background and synthesizes processing by the 3rd preset algorithm, is generated Target image, and preserve;
Receive the selected operation to the unlatching options;
The preset function is opened according to the selected operation.
A kind of 9. terminal, it is characterised in that the terminal has at least two cameras, at least two camera, one It is individual to be used as main camera, a conduct time camera;The terminal includes processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of shooting processing method described in one.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize such as claim 1 to 8 Any one of shooting processing method the step of.
CN201710862076.9A 2017-09-21 2017-09-21 One kind shooting processing method, terminal and computer-readable recording medium Pending CN107767430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710862076.9A CN107767430A (en) 2017-09-21 2017-09-21 One kind shooting processing method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710862076.9A CN107767430A (en) 2017-09-21 2017-09-21 One kind shooting processing method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107767430A true CN107767430A (en) 2018-03-06

Family

ID=61266614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710862076.9A Pending CN107767430A (en) 2017-09-21 2017-09-21 One kind shooting processing method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107767430A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965692A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Paster setting method and device
CN110084306A (en) * 2019-04-30 2019-08-02 北京字节跳动网络技术有限公司 Method and apparatus for generating dynamic image
CN112887583A (en) * 2019-11-30 2021-06-01 华为技术有限公司 Shooting method and electronic equipment
CN113794831A (en) * 2021-08-13 2021-12-14 维沃移动通信(杭州)有限公司 Video shooting method and device, electronic equipment and medium
CN114125297A (en) * 2021-11-26 2022-03-01 维沃移动通信有限公司 Video shooting method and device, electronic equipment and storage medium
CN114157810A (en) * 2021-12-21 2022-03-08 西安维沃软件技术有限公司 Shooting method, shooting device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9299195B2 (en) * 2014-03-25 2016-03-29 Cisco Technology, Inc. Scanning and tracking dynamic objects with depth cameras
CN105827946A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Panoramic image generating method, panoramic image playing method and mobile terminal
CN106375662A (en) * 2016-09-22 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Photographing method and device based on double cameras, and mobile terminal
CN106851114A (en) * 2017-03-31 2017-06-13 努比亚技术有限公司 A kind of photo shows, photo generating means and method, terminal
US20170193279A1 (en) * 2015-12-31 2017-07-06 Cerner Innovation, Inc. Methods and systems for detecting prohibited objects in a patient room
CN106937039A (en) * 2017-04-26 2017-07-07 努比亚技术有限公司 A kind of imaging method based on dual camera, mobile terminal and storage medium
CN106973238A (en) * 2017-05-26 2017-07-21 努比亚技术有限公司 A kind of image pickup method, equipment and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9299195B2 (en) * 2014-03-25 2016-03-29 Cisco Technology, Inc. Scanning and tracking dynamic objects with depth cameras
CN105827946A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Panoramic image generating method, panoramic image playing method and mobile terminal
US20170193279A1 (en) * 2015-12-31 2017-07-06 Cerner Innovation, Inc. Methods and systems for detecting prohibited objects in a patient room
CN106375662A (en) * 2016-09-22 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Photographing method and device based on double cameras, and mobile terminal
CN106851114A (en) * 2017-03-31 2017-06-13 努比亚技术有限公司 A kind of photo shows, photo generating means and method, terminal
CN106937039A (en) * 2017-04-26 2017-07-07 努比亚技术有限公司 A kind of imaging method based on dual camera, mobile terminal and storage medium
CN106973238A (en) * 2017-05-26 2017-07-21 努比亚技术有限公司 A kind of image pickup method, equipment and computer-readable recording medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965692A (en) * 2018-06-15 2018-12-07 Oppo广东移动通信有限公司 Paster setting method and device
CN108965692B (en) * 2018-06-15 2021-03-09 Oppo广东移动通信有限公司 Sticker setting method and device
CN110084306A (en) * 2019-04-30 2019-08-02 北京字节跳动网络技术有限公司 Method and apparatus for generating dynamic image
CN112887583A (en) * 2019-11-30 2021-06-01 华为技术有限公司 Shooting method and electronic equipment
CN112887583B (en) * 2019-11-30 2022-07-22 华为技术有限公司 Shooting method and electronic equipment
CN113794831A (en) * 2021-08-13 2021-12-14 维沃移动通信(杭州)有限公司 Video shooting method and device, electronic equipment and medium
CN113794831B (en) * 2021-08-13 2023-08-25 维沃移动通信(杭州)有限公司 Video shooting method, device, electronic equipment and medium
CN114125297A (en) * 2021-11-26 2022-03-01 维沃移动通信有限公司 Video shooting method and device, electronic equipment and storage medium
WO2023093669A1 (en) * 2021-11-26 2023-06-01 维沃移动通信有限公司 Video filming method and apparatus, and electronic device and storage medium
CN114125297B (en) * 2021-11-26 2024-04-09 维沃移动通信有限公司 Video shooting method, device, electronic equipment and storage medium
CN114157810A (en) * 2021-12-21 2022-03-08 西安维沃软件技术有限公司 Shooting method, shooting device, electronic equipment and medium
CN114157810B (en) * 2021-12-21 2023-08-18 西安维沃软件技术有限公司 Shooting method, shooting device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN107767430A (en) One kind shooting processing method, terminal and computer-readable recording medium
CN108093171A (en) A kind of photographic method, terminal and computer readable storage medium
CN107404617A (en) A kind of image pickup method and terminal, computer-readable storage medium
CN107730433A (en) One kind shooting processing method, terminal and computer-readable recording medium
CN107767333A (en) Method, equipment and the computer that U.S. face is taken pictures can storage mediums
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107817897A (en) A kind of information intelligent display methods and mobile terminal
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN107844763A (en) A kind of face identification method, mobile terminal and computer-readable recording medium
CN109743504A (en) A kind of auxiliary photo-taking method, mobile terminal and storage medium
CN107231470A (en) Image processing method, mobile terminal and computer-readable recording medium
CN107133939A (en) A kind of picture synthesis method, equipment and computer-readable recording medium
CN107948430A (en) A kind of display control method, mobile terminal and computer-readable recording medium
CN107197094A (en) One kind shooting display methods, terminal and computer-readable recording medium
CN107124552A (en) A kind of image pickup method, terminal and computer-readable recording medium
CN108521505A (en) A kind of incoming call processing method and mobile terminal
CN108196777A (en) A kind of flexible screen application process, equipment and computer readable storage medium
CN108197206A (en) Expression packet generation method, mobile terminal and computer readable storage medium
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN107770450A (en) Image processing method, device and terminal device
CN108200332A (en) A kind of pattern splicing method, mobile terminal and computer readable storage medium
CN108307105A (en) A kind of image pickup method, terminal and computer readable storage medium
CN109276881A (en) A kind of game control method, equipment
CN107563316A (en) A kind of image pickup method, terminal and computer-readable recording medium
CN109683778A (en) A kind of flexible screen control method, equipment and computer readable storage medium

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: 20180306

RJ01 Rejection of invention patent application after publication