CN105915673A - Video special effect switching method and mobile terminal - Google Patents

Video special effect switching method and mobile terminal Download PDF

Info

Publication number
CN105915673A
CN105915673A CN201610373102.7A CN201610373102A CN105915673A CN 105915673 A CN105915673 A CN 105915673A CN 201610373102 A CN201610373102 A CN 201610373102A CN 105915673 A CN105915673 A CN 105915673A
Authority
CN
China
Prior art keywords
scene
video
shooting
frame
video pictures
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.)
Granted
Application number
CN201610373102.7A
Other languages
Chinese (zh)
Other versions
CN105915673B (en
Inventor
陈国庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610373102.7A priority Critical patent/CN105915673B/en
Publication of CN105915673A publication Critical patent/CN105915673A/en
Application granted granted Critical
Publication of CN105915673B publication Critical patent/CN105915673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Circuits (AREA)

Abstract

The invention puts forward a video special effect switching method and a mobile terminal. The method comprises the following steps: shooting a video; in the process of video shooting, adding a special effect to the video image according to a scene corresponding to the shot video image; displaying the video image added with the special effect; smoothing the video image added with the special effect when the scene corresponding to the shot video image changes; and displaying the smoothed video image. According to the invention, the processing difference between special effects used in different scenes is reduced, the problem of screen flicker due to the fact that the special effect is changed directly due to scene change in the process of video shooting is avoided, smooth transition of a video image with different special effects is realized in the switching process, and the visual perception of users is improved greatly.

Description

The method of a kind of special video effect switching and mobile terminal
Technical field
The present invention relates to mobile terminal video recording technology field, particularly relate to the side of a kind of special video effect switching Method and mobile terminal.
Background technology
Along with the technology development that recent years, mobile terminal video was recorded, mobile terminal can have been supported in record Specially good effect is added while video processed, and, record scene for different shootings and can also add different spies Effect, to strengthen visual effect or the interest of captured video.
Mobile terminal can be accomplished automatically to identify scene at present, and the scene that mobile terminal is capable of identify that is roughly divisible into Personage, indoor, street, scenery with hills and waters etc..Each scene includes: prospect (or shooting main body) and background. Mobile terminal can do different process respectively for the main body of different scenes, background, it is therefore an objective to prominent main Body.Such as:
Personage, main body is people, and people does U.S. face specially good effect;Background is done smoothing processing, prominent personage.
Indoor, main body is probably desk, a TV etc., and processing mode determines that the color of main body, based on master Background is done eclipsed process by the color of body, only retains the color close with main body.
Street, main body is probably pedestrian, street lamp etc., moves axle specially good effect by using, and makes main body keep clear, Gradually obscure to surrounding.
Scenery with hills and waters, in the scene that some are open, main body is probably mountain, lake, building etc., does main body as color Color enhancing;Background is done smoothing processing.
But, the special effect processing difference used due to different scenes is very big, if during shooting video Specially good effect is directly changed, then the problems such as flicker easily occurs in picture, have impact on user's because of the conversion of scene Visual experience.
Summary of the invention
Present invention is primarily targeted at method and the mobile terminal proposing the switching of a kind of special video effect, it is intended to solve Certainly possesses the problem that the video of specially good effect occurs flicker during handoff scenario.
For achieving the above object, a kind of mobile terminal that the present invention provides, including: shooting unit, video are special Effect unit and display unit, wherein,
Shooting unit, for carrying out the shooting of video;
Special video effect unit, for during shooting unit photographs video, according to the video pictures of shooting Corresponding scene adds specially good effect to described video pictures;
Display unit, for showing the video pictures adding specially good effect;
Described special video effect unit, is additionally operable to when the scene that the video pictures of shooting is corresponding changes, right The video pictures adding specially good effect is smoothed;
Described display unit, is additionally operable to show the video pictures through smoothing processing.
Optionally, described special video effect unit, specifically for: during shooting unit photographs video, The scene that each frame video pictures of shooting is corresponding is identified, when the scene that present frame video pictures is corresponding When the scene corresponding from previous frame video pictures is different, it is determined that the scene that the video pictures of shooting is corresponding becomes Change.
Optionally, described special video effect unit, specifically for occurring when scene corresponding to the video pictures of shooting During change, the every frame video pictures setting frame number is handled as follows: add spy according to the scene before change Effect obtains the first provisional video image frame, adds specially good effect according to the scene after change and obtains the second provisional video picture Face frame, superposes described first provisional video image frame with described second provisional video image frame;
During described first provisional video image frame is superposed with described second provisional video image frame, Transparency proportion shared by described first provisional video image frame is gradually reduced, described second provisional video picture Transparency proportion shared by frame is gradually increased.
Optionally, described special video effect unit, it is additionally operable to: the every frame video pictures to setting frame number, is pressing According to change before scene add specially good effect obtain the first provisional video image frame time, according to before scene changes last The band of position shooting main body in frame video pictures adds corresponding specially good effect;Regard according to last frame before scene changes Frequently in picture, the band of position of background adds corresponding specially good effect.
Optionally, the type of described scene includes: personage's scene, indoor scene, street scene, scenery with hills and waters field Scape and without shooting main body scene;
The image content of described scene includes: shooting main body and background;Or, background;
Scene changes, including: background and/or shooting main body change.
Additionally, for achieving the above object, the present invention also proposes the method for a kind of special video effect switching, including:
Shooting video;
During shooting video, according to the scene that the video pictures of shooting is corresponding, described video pictures is added Enter specially good effect;
The video pictures adding specially good effect is shown;
When the scene that the video pictures of shooting is corresponding changes, the video pictures adding specially good effect is put down Sliding process;
Video pictures through smoothing processing is shown.
Optionally, the decision procedure that the scene that the video pictures of shooting is corresponding is changed, including: clapping During taking the photograph video, the scene that each frame video pictures of shooting is corresponding is identified, when present frame regards Frequently when picture the is corresponding scene scene corresponding from previous frame video pictures is different, it is determined that the video pictures of shooting Corresponding scene changes.
Optionally, when the described scene corresponding when the video pictures of shooting changes, regard adding specially good effect Frequently the step that picture is smoothed, including:
When the scene that the video pictures of shooting is corresponding changes, the every frame video pictures setting frame number is entered Row is following to be processed: adds specially good effect according to the scene before change and obtains the first provisional video image frame, according to change After scene add specially good effect obtain the second provisional video image frame, by described first provisional video image frame and institute State the second provisional video image frame superposition;
During described first provisional video image frame is superposed with described second provisional video image frame, Transparency proportion shared by described first provisional video image frame is gradually reduced, described second provisional video picture Transparency proportion shared by frame is gradually increased.
Optionally, when the described scene corresponding when the video pictures of shooting changes, regard adding specially good effect Frequently picture is smoothed, and also includes:
Every frame video pictures to setting frame number, interim obtaining first according to the scene addition specially good effect before change During video pictures frame, the band of position according to shooting main body in last frame video pictures before scene changes adds Corresponding specially good effect;Corresponding specially good effect is added according to the band of position of background in last frame video pictures before scene changes.
Optionally, it is characterised in that the type of described scene includes: personage's scene, indoor scene, street Scene, scenery with hills and waters scene and without shooting main body scene;
The image content of described scene includes: shooting main body and background;Or, background;
Scene changes, including: background and/or shooting main body change.
The method of the special video effect switching that the present invention proposes and mobile terminal, reduce the spy that different scene uses Effect process between difference, it is to avoid during shooting video, directly change specially good effect because of the conversion of scene And the problems such as flicker occurs in the picture caused, the video pictures possessing different specially good effect is made to realize in the process of switching Seamlessly transit, be greatly improved the visual experience of user.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram of the optional mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the situation schematic diagram that the mobile terminal of various embodiments of the present invention is held by a user;
Fig. 3 is the composition structural representation of the mobile terminal of first embodiment of the invention;
Fig. 4 is the method flow diagram of the special video effect switching of fourth embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do furtherly referring to the drawings Bright.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit The present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, Use the suffix of such as " module ", " parts " or " unit " for representing element only for being conducive to this The explanation of invention, itself does not has specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include all As mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), The mobile terminal of PAD (panel computer), PMP (portable media player), guider etc. and The such as fixed terminal of numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile terminal.But, It will be appreciated by those skilled in the art that in addition to the element except being used in particular for mobile purpose, according to the present invention The structure of embodiment can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal realizing each optional mobile terminal of embodiment one of the present invention.
Mobile terminal 100 can include A/V (audio/video) input block 120, user input unit 130, sense Survey unit 140, output unit 150, memorizer 160, interface unit 170 and controller 180 etc..Fig. 1 shows Go out the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 and mike 122, camera 121 in Video Capture pattern or image capture mode by image capture apparatus The static images obtained or the view data of video process.Picture frame after process may be displayed on display On unit 151.Picture frame after camera 121 processes can be stored in memorizer 160 (or other storage medium) In, two or more cameras 121 can be provided according to the structure of mobile terminal.Mike 122 can be at phone Call mode, logging mode, speech recognition mode etc. operational mode receives sound (audio frequency via mike Data), and can be voice data by such acoustic processing.Mike 122 can be implemented various types of Noise eliminates (or suppression) algorithm with making an uproar that elimination (or suppression) produces during receiving and send audio signal Sound or interference.
It is mobile whole to control that user input unit 130 can generate key input data according to the order of user's input The various operations of end.User input unit 130 allows user to input various types of information, and can include Keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. The sensitive component of change), roller, rocking bar etc..Especially, it is superimposed upon aobvious as a layer when touch pad When showing on unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, and (such as, beating of mobile terminal 100 opens or closes Closed state), the position of mobile terminal 100, user is for the contact (that is, touch input) of mobile terminal 100 With or without, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and Generate the order or signal being used for controlling the operation of mobile terminal 100.Such as, it is embodied as when mobile terminal 100 During sliding-type mobile phone, sensing unit 140 can sense this sliding-type phone and open or close.It addition, Sensing unit 140 can detect whether interface unit 170 couples with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through. Such as, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) Port, wired or wireless FPDP, memory card port, for connecting the end of device with identification module Mouth, audio frequency input/output (I/O) port, video i/o port, ear port etc..Identification module can be to deposit Storage is for verifying that user uses the various information of mobile terminal 100 and can include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc..It addition, have identification The device (hereinafter referred to as " identifying device ") of module can be to take the form of smart card, therefore, identifies that device is permissible It is connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred to mobile eventually Hold the one or more elements in 100 or may be used for transmitting data between mobile terminal and external device (ED).
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing to pass through Its by electric power from base provide that the path of mobile terminal 100 or can serve as allows from base input each Plant command signal and pass through its path being transferred to mobile terminal.From various command signals or the electric power of base input May serve as identifying whether mobile terminal is accurately fitted within the signal on base.Output unit 150 is by structure Make as providing output signal (such as, audio signal, video signal, police with vision, audio frequency and/or tactile manner The number of notifying, vibration signal etc.).
Output unit 150 can include display unit 151 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, when mobile terminal 100 When being in telephone calling model, display unit 151 can show and call or other (such as, text message that communicates Transmitting-receiving, multimedia file download etc.) relevant user interface (UI) or graphic user interface (GUI).Work as movement When terminal 100 is in video calling pattern or image capture mode, display unit 151 can show capture Image and/or the image of reception, UI or GUI illustrating video or image and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display Unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, Flexible Displays At least one in device, three-dimensional (3D) display etc..Some in these display may be constructed such that transparent Shape is to allow user to watch from outside, and this is properly termed as transparent display, and typical transparent display can be with example As for TOLED (transparent organic light emitting diode) display etc..According to the specific embodiment wanted, move Dynamic terminal 100 can include two or more display units (or other display device), and such as, mobile terminal can To include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., Or can temporarily store data (such as, telephone directory, message, the static map that oneself maybe will export through output Picture, video etc.).And, memorizer 160 can store each about export when touching and being applied to touch screen The vibration of the mode of kind and the data of audio signal.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard Dish, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), Static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, Mobile terminal 100 can be connected the network storage device of the storage function performing memorizer 160 and assist with by network Make.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs to lead to voice Control that words, data communication, video calling etc. are relevant and process.It addition, controller 180 can include using In the multi-media module 181 of reproduction (or playback) multi-medium data, multi-media module 181 can construct at controller In 180, or it is so structured that separate with controller 180.Controller 180 can perform pattern recognition process, So that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.
Various embodiment described herein can be to use such as computer software, hardware or its any combination Computer-readable medium implement.Implementing for hardware, embodiment described herein can be by using Application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), Programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, Microprocessor, it is designed to perform at least one in the electronic unit of function described herein and implements, Under certain situation, such embodiment can be implemented in controller 180.Software is implemented, such as mistake The embodiment of journey or function can come with allowing the single software module performing at least one function or operation Implement.Software code can be come real by the software application (or program) write with any suitable programming language Executing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe all In various types of mobile terminals of folded form, board-type, oscillating-type, slide type mobile terminal etc. Slide type mobile terminal is as example.Therefore, the present invention can be applied to any kind of mobile terminal, and And it is not limited to slide type mobile terminal.
As a example by mobile terminal of mobile telephone, user grips the situation of mobile terminal as shown in Figure 2.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As it is shown on figure 3, first embodiment of the invention proposes a kind of mobile terminal, including: shooting unit 200, Special video effect unit 300 and display unit 151, wherein, shooting unit uses A/V input block 120 to wrap Including camera 121, special video effect unit 300 realizes by the operational capability of controller 180.
Shooting unit 200, for carrying out the shooting of video;
Special video effect unit 300, for during shooting unit photographs video, draws according to the video of shooting Scene corresponding to face adds specially good effect to described video pictures;
Display unit 151, for showing the video pictures adding specially good effect;
Special video effect unit 300, is additionally operable to when the scene that the video pictures of shooting is corresponding changes, to adding The video pictures entering specially good effect is smoothed;
Display unit 151, is additionally operable to show the video pictures through smoothing processing.
Concrete, the type of described scene includes: personage's scene, indoor scene, street scene, scenery with hills and waters field Scape and without shooting main body scene;Refer to that None-identified goes out to shoot the scene of main body without shooting main body scene.
The image content of described scene includes: shooting main body and background;Or, background.
Scene changes, including: background and/or shooting main body change.
Optionally, the special video effect unit 300 of the present embodiment, also particularly useful for: shoot at shooting unit 200 During video, the scene that each frame video pictures of shooting is corresponding is identified, when present frame video When scene that picture the is corresponding scene corresponding from previous frame video pictures is different, it is determined that the video pictures pair of shooting The scene answered changes.
Concrete change due to scene, including: background and/or shooting main body change, i.e. background With shooting main body at least one change time, then show that scene there occurs change.
Second embodiment of the invention proposes a kind of mobile terminal, and the described mobile terminal of the present embodiment and first is in fact Executing example roughly the same, difference is:
The special video effect unit 300 of the present embodiment, specifically for occurring when scene corresponding to the video pictures of shooting During change, the every frame video pictures setting frame number is handled as follows: on the one hand according to the scene before change Add specially good effect and obtain the first provisional video image frame, on the other hand add specially good effect according to the scene after change and obtain Second provisional video image frame, then by the first provisional video image frame and the second provisional video image frame superposition;
Further, during by the first provisional video image frame and the second provisional video image frame superposition, the Transparency proportion shared by one provisional video image frame is gradually reduced, saturating shared by the second provisional video image frame Lightness proportion is gradually increased, until adding specially good effect fully according to the scene after change.Thus reduce different field Difference between the special effect processing that scape uses, improves the visual experience of user.
As another embodiment, in the embodiment of the present invention, the scene corresponding when the video pictures of shooting is sent out During changing, special video effect unit 300 can also select from the beginning of the first frame video pictures after change, right The every frame video pictures setting frame number carries out above-mentioned both sides special effect processing.
Third embodiment of the invention proposes a kind of mobile terminal, and the described mobile terminal of the present embodiment and second is in fact Executing example roughly the same, difference is:
The special video effect unit 300 of the present embodiment, is additionally operable to: the every frame video pictures to setting frame number, is pressing When obtaining the first provisional video image frame according to the scene addition specially good effect before change, to shooting main body, according further to The band of position shooting main body before scene changes in last frame video pictures adds corresponding specially good effect;For background, Corresponding specially good effect is added according further to the band of position of background in last frame video pictures before scene changes.This reality Execute example compared with the second embodiment, reduce the difference between the special effect processing that different scene uses further, Make the video pictures possessing different specially good effect achieve in the process switched to seamlessly transit, be greatly improved user Visual experience.
As another embodiment, in the embodiment of the present invention, special video effect unit 300 can also select from The first frame video pictures after change starts, the every frame video pictures to setting frame number, is obtaining above-mentioned first During provisional video image frame, shooting main body and background are carried out above-mentioned special effect processing.
As shown in Figure 4, fourth embodiment of the invention proposes the method for a kind of special video effect switching, including following step Rapid:
Step S101, shoots video;
Step S102, during shooting video, according to the scene corresponding to video pictures of shooting to described Video pictures adds specially good effect;
Step S103, shows the video pictures adding specially good effect;
Step S104, when the scene that the video pictures of shooting is corresponding changes, to the video adding specially good effect Picture is smoothed;
Step S105, shows the video pictures through smoothing processing.
Concrete, the type of described scene includes: personage's scene, indoor scene, street scene, scenery with hills and waters field Scape and without shooting main body scene;Refer to that None-identified goes out to shoot the scene of main body without shooting main body scene.
The image content of described scene includes: shooting main body and background;Or, background.
Scene changes, including: background and/or shooting main body change.
Optionally, in step S104, first whether scene is changed and judge, concrete, to bat The decision procedure that the scene that the video pictures taken the photograph is corresponding changes, including: during shooting video, The scene that each frame video pictures of shooting is corresponding is identified, when the scene that present frame video pictures is corresponding When the scene corresponding from previous frame video pictures is different, it is determined that the scene that the video pictures of shooting is corresponding becomes Change.
Fifth embodiment of the invention propose a kind of special video effect switching method, the described method of the present embodiment with 4th embodiment is roughly the same, and difference is:
Step S104 specifically includes:
When the scene that the video pictures of shooting is corresponding changes, the every frame video pictures setting frame number is entered Row is following to be processed: on the one hand adds specially good effect according to the scene before change and obtains the first provisional video image frame, separately On the one hand add specially good effect according to the scene after change and obtain the second provisional video image frame, then regard first temporarily Frequently image frame and the second provisional video image frame superposition;
Further, during by the first provisional video image frame and the second provisional video image frame superposition, the Transparency proportion shared by one provisional video image frame is gradually reduced, saturating shared by the second provisional video image frame Lightness proportion is gradually increased, until adding specially good effect fully according to the scene after change.Thus reduce different field Difference between the special effect processing that scape uses, improves the visual experience of user.
As another embodiment, in step S104 of the embodiment of the present invention, when the video pictures pair of shooting When the scene answered changes, it is also possible to select from the beginning of the first frame video pictures after change, to setting frame Every frame video pictures of number carries out above-mentioned both sides special effect processing.
Sixth embodiment of the invention propose a kind of special video effect switching method, the described method of the present embodiment with 5th embodiment is roughly the same, and difference is:
Step S104 also specifically includes:
Every frame video pictures to setting frame number, interim obtaining first according to the scene addition specially good effect before change During video pictures frame, to shooting main body, main according further to shooting in last frame video pictures before scene changes The band of position of body adds corresponding specially good effect;For background, draw according further to last frame video before scene changes In face, the band of position of background adds corresponding specially good effect.The present embodiment and the 5th embodiment are compared, and reduce further Difference between the special effect processing that different scenes use, makes the video pictures that possesses different specially good effect switch Process achieves and seamlessly transits, and is greatly improved the visual experience of user.
As another embodiment, in step S104 of the embodiment of the present invention, it is also possible to select after change The first frame video pictures start, to set frame number every frame video pictures, regard obtaining above-mentioned first temporarily Frequently during image frame, shooting main body and background are carried out above-mentioned special effect processing.
Seventh embodiment of the invention, based on above embodiment, introduces the application example of a present invention.
The scene that the method for the special video effect switching first introducing the present embodiment may relate to, scene is general It is divided into personage, indoor, street, scenery with hills and waters.Each scene can be divided into again prospect (main body shot in other words) And background.
For the main body of different scenes, background does different special effect processing respectively.General object is prominent Main body.As:
Personage's scene, main body is people, and people does U.S. face specially good effect;Background is done smoothing processing, prominent personage.
Indoor scene, main body is probably a desk, TV ... processing mode determines that the color of main body, to the back of the body Scape does eclipsed process, only retains the color close with main body.
Street scene, main body is probably pedestrian, street lamp ... uses and moves axle specially good effect, and main body keeps clear, Xiang Si Week gradually obscures.
Scenery with hills and waters scene, in the scene that some are open, main body is probably mountain, lake, building ... main body is done picture Color enhancement;Background is done smoothing processing.
Scene without main body, uses simple color enhancement to main body and background are unified.
The described method of the present embodiment further relates to: adds specially good effect when video recording and automatically identifies scene.
Add specially good effect when video recording, be by Android L (android system of L version) OPENGLES (Open Graphics Library for Embedded Systems, the open figure of embedded device Storehouse) interface realization addition specially good effect when video recording.
Automatically identify scene, can be realized by the scene Recognition algorithm first having, therefore here is omitted.
The special effect processing difference used due to different scenes is very big, if directly changing specially good effect, picture easily goes out The problems such as now flicker.
One, during video capture by the specially good effect handoff procedure of personage's scene to indoor scene as a example by, this regards The method of specially good effect switching frequently, including following flow process:
One people, from being sitting in chair, leaves to standing up.When people is owing to leaning to one side or body leaves picture, Scene is switched to indoor scene by personage's scene, at this moment can draw the frame of video of the setting number of frames after scene changes Two kinds of process are done in face simultaneously: one is the process of original personage's scene, and one is the process of indoor scene. Again by this two frame data superposition, the frame of video processed through personage's scene special effect before this accounts for big transparency proportion, Then gradually decrease, until being switched to indoor scene completely.
Simultaneously as people leaves picture, when processing, just there is no main body by personage, but in order to the loftiest, also It is to continue with for the frame of video picture setting number of frames, to main body last frame video pictures before scene changes In the band of position continue to do U.S. face specially good effect, other parts do smoothing processing by background.
Two, during video capture by indoor scene to the specially good effect handoff procedure of personage's scene as a example by, this regards The method of specially good effect switching frequently, including following flow process:
When being switched to personage's scene by indoor scene, also can be to the video of the setting number of frames after scene changes Frame picture does two kinds of process simultaneously: one is the process of original indoor scene, and one to personage's scene Process: people is done U.S. face specially good effect;Background is done smoothing processing, prominent personage.Again by this two frame data superposition, Personage's scene accounted for big proportion before this, then gradually decreased, until being switched to indoor scene completely.
Meanwhile, in order to not produce lofty sense when personage's main body occurs suddenly, personage's main body can be occurred suddenly Former frames i.e. scene changes after set the frame of video picture of number of frames, according to the main body of articles in former indoor field The color of the band of position background is done eclipsed process.
Three, switched being switched the specially good effect of the second main body by the first main body of indoor scene during video capture As a example by journey, the method for this special video effect switching, including following flow process:
Under same indoor, along with camera lens moves, main body is switched to computer by chair, becomes scene the most simultaneously The frame of video picture of the setting number of frames after change does two kinds of process simultaneously: one is the color according to chair body Background is done eclipsed process, and one is that background is done eclipsed process by the color according to basic computer, by two kinds of mistakes The result superposition that color processes, the most in like manner, through as the slowly switching of above-mentioned transparency accounting, until completely It is switched to the indoor scene being the theme with computer.
It should be noted that in this article, term " include ", " comprising " or its any other variant meaning Containing comprising of nonexcludability, so that include the process of a series of key element, method, article or dress Put and not only include those key elements, but also include other key elements being not expressly set out, or also include for The key element that this process, method, article or device are intrinsic.In the case of there is no more restriction, by The key element that statement " including ... " limits, it is not excluded that including the process of this key element, method, thing Product or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned reality Execute example method to add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the technical side of the present invention The part that prior art is contributed by case the most in other words can embody with the form of software product, This computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), bag Include some instructions with so that a station terminal equipment (can be mobile phone, computer, server, air-conditioner, Or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every profit The equivalent structure made by description of the invention and accompanying drawing content or equivalence flow process conversion, or directly or indirectly transport It is used in other relevant technical fields, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a mobile terminal, it is characterised in that described mobile terminal includes: shooting unit, is used for carrying out The shooting of video;
Special video effect unit, for during shooting unit photographs video, according to the video pictures of shooting Corresponding scene adds specially good effect to described video pictures;
Display unit, for showing the video pictures adding specially good effect;
Described special video effect unit, is additionally operable to when the scene that the video pictures of shooting is corresponding changes, right The video pictures adding specially good effect is smoothed;
Described display unit, is additionally operable to show the video pictures through smoothing processing.
2. mobile terminal as claimed in claim 1, it is characterised in that described special video effect unit, specifically For: during shooting unit photographs video, the scene that each frame video pictures of shooting is corresponding is entered Row identifies, when the scene that the scene that present frame video pictures is corresponding is corresponding from previous frame video pictures is different, Judge that the scene that the video pictures shot is corresponding changes.
3. mobile terminal as claimed in claim 1, it is characterised in that described special video effect unit, specifically For when scene corresponding to the video pictures of shooting changes, the every frame video pictures setting frame number being entered Row is following to be processed: adds specially good effect according to the scene before change and obtains the first provisional video image frame, according to change After scene add specially good effect obtain the second provisional video image frame, by described first provisional video image frame and institute State the second provisional video image frame superposition;
During described first provisional video image frame is superposed with described second provisional video image frame, Transparency proportion shared by described first provisional video image frame is gradually reduced, described second provisional video picture Transparency proportion shared by frame is gradually increased.
4. mobile terminal as claimed in claim 1, it is characterised in that described special video effect unit, also uses In: the every frame video pictures to setting frame number, interim obtaining first according to the scene addition specially good effect before change During video pictures frame, the band of position according to shooting main body in last frame video pictures before scene changes adds Corresponding specially good effect;Corresponding specially good effect is added according to the band of position of background in last frame video pictures before scene changes.
5. the mobile terminal as according to any one of Claims 1 to 4, it is characterised in that the class of described scene Type includes: personage's scene, indoor scene, street scene, scenery with hills and waters scene and without shooting main body scene;
The image content of described scene includes: shooting main body and background;Or, background;
Scene changes, including: background and/or shooting main body change.
6. the method for a special video effect switching, it is characterised in that including:
Shooting video;
During shooting video, according to the scene that the video pictures of shooting is corresponding, described video pictures is added Enter specially good effect;
The video pictures adding specially good effect is shown;
When the scene that the video pictures of shooting is corresponding changes, the video pictures adding specially good effect is put down Sliding process;
Video pictures through smoothing processing is shown.
7. the method for special video effect switching as claimed in claim 6, it is characterised in that the video of shooting is drawn The decision procedure that scene corresponding to face changes, including: during shooting video, every to shooting The scene that one frame video pictures is corresponding is identified, and the scene corresponding when present frame video pictures regards with previous frame During the scene difference that picture is corresponding frequently, it is determined that the scene that the video pictures of shooting is corresponding changes.
8. the method for special video effect switching as claimed in claim 6, it is characterised in that described regarding when shooting Frequently when the scene that picture is corresponding changes, the step that the video pictures adding specially good effect is smoothed, Including:
When the scene that the video pictures of shooting is corresponding changes, the every frame video pictures setting frame number is entered Row is following to be processed: adds specially good effect according to the scene before change and obtains the first provisional video image frame, according to change After scene add specially good effect obtain the second provisional video image frame, by described first provisional video image frame and institute State the second provisional video image frame superposition;
During described first provisional video image frame is superposed with described second provisional video image frame, Transparency proportion shared by described first provisional video image frame is gradually reduced, described second provisional video picture Transparency proportion shared by frame is gradually increased.
9. the method for special video effect switching as claimed in claim 6, it is characterised in that described regarding when shooting Frequently, when the scene that picture is corresponding changes, the video pictures adding specially good effect is smoothed, also includes:
Every frame video pictures to setting frame number, interim obtaining first according to the scene addition specially good effect before change During video pictures frame, the band of position according to shooting main body in last frame video pictures before scene changes adds Corresponding specially good effect;Corresponding specially good effect is added according to the band of position of background in last frame video pictures before scene changes.
10. the method for special video effect switching as according to any one of claim 6~9, it is characterised in that institute The type stating scene includes: personage's scene, indoor scene, street scene, scenery with hills and waters scene and without shooting main body Scene;
The image content of described scene includes: shooting main body and background;Or, background;
Scene changes, including: background and/or shooting main body change.
CN201610373102.7A 2016-05-31 2016-05-31 A kind of method and mobile terminal of special video effect switching Active CN105915673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610373102.7A CN105915673B (en) 2016-05-31 2016-05-31 A kind of method and mobile terminal of special video effect switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610373102.7A CN105915673B (en) 2016-05-31 2016-05-31 A kind of method and mobile terminal of special video effect switching

Publications (2)

Publication Number Publication Date
CN105915673A true CN105915673A (en) 2016-08-31
CN105915673B CN105915673B (en) 2019-04-02

Family

ID=56741778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610373102.7A Active CN105915673B (en) 2016-05-31 2016-05-31 A kind of method and mobile terminal of special video effect switching

Country Status (1)

Country Link
CN (1) CN105915673B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657814A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Video recording method and mobile terminal
CN106713881A (en) * 2016-12-23 2017-05-24 维沃移动通信有限公司 Projection method and mobile terminal
CN108108268A (en) * 2017-11-28 2018-06-01 北京川上科技有限公司 Reboot process method and apparatus are exited in a kind of video record application
CN108551562A (en) * 2018-04-16 2018-09-18 维沃移动通信有限公司 A kind of method and mobile terminal of video communication
CN111201772A (en) * 2017-10-09 2020-05-26 深圳传音通讯有限公司 Video recording method, device and terminal
CN112689200A (en) * 2020-12-15 2021-04-20 万兴科技集团股份有限公司 Video editing method, electronic device and storage medium
CN113852755A (en) * 2021-08-24 2021-12-28 荣耀终端有限公司 Photographing method, photographing apparatus, computer-readable storage medium, and program product
CN114998479A (en) * 2022-08-08 2022-09-02 江阴市晶磁电子有限公司 Gradual change image scene machine control processing system and method
WO2022262550A1 (en) * 2021-06-16 2022-12-22 荣耀终端有限公司 Video photographing method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007111206A1 (en) * 2006-03-14 2007-10-04 Sony Corporation Image processing device and image processing method
CN201066884Y (en) * 2007-05-16 2008-05-28 北京思比科微电子技术有限公司 A device for realizing dynamic image processing
CN103024559A (en) * 2012-11-09 2013-04-03 北京小米科技有限责任公司 Method and device for video switchover and equipment
CN103347155A (en) * 2013-06-18 2013-10-09 北京汉博信息技术有限公司 Transition special effect module and method for achieving switching of different transition effects of two video streams
CN104184960A (en) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 Method for carrying out special effect processing on video file
CN105578056A (en) * 2016-01-27 2016-05-11 努比亚技术有限公司 Photographing terminal and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007111206A1 (en) * 2006-03-14 2007-10-04 Sony Corporation Image processing device and image processing method
CN201066884Y (en) * 2007-05-16 2008-05-28 北京思比科微电子技术有限公司 A device for realizing dynamic image processing
CN103024559A (en) * 2012-11-09 2013-04-03 北京小米科技有限责任公司 Method and device for video switchover and equipment
CN103347155A (en) * 2013-06-18 2013-10-09 北京汉博信息技术有限公司 Transition special effect module and method for achieving switching of different transition effects of two video streams
CN104184960A (en) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 Method for carrying out special effect processing on video file
CN105578056A (en) * 2016-01-27 2016-05-11 努比亚技术有限公司 Photographing terminal and method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713881A (en) * 2016-12-23 2017-05-24 维沃移动通信有限公司 Projection method and mobile terminal
CN106657814A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Video recording method and mobile terminal
CN111201772A (en) * 2017-10-09 2020-05-26 深圳传音通讯有限公司 Video recording method, device and terminal
CN108108268A (en) * 2017-11-28 2018-06-01 北京川上科技有限公司 Reboot process method and apparatus are exited in a kind of video record application
CN108551562A (en) * 2018-04-16 2018-09-18 维沃移动通信有限公司 A kind of method and mobile terminal of video communication
CN112689200A (en) * 2020-12-15 2021-04-20 万兴科技集团股份有限公司 Video editing method, electronic device and storage medium
WO2022262550A1 (en) * 2021-06-16 2022-12-22 荣耀终端有限公司 Video photographing method and electronic device
CN113852755A (en) * 2021-08-24 2021-12-28 荣耀终端有限公司 Photographing method, photographing apparatus, computer-readable storage medium, and program product
CN114998479A (en) * 2022-08-08 2022-09-02 江阴市晶磁电子有限公司 Gradual change image scene machine control processing system and method
CN114998479B (en) * 2022-08-08 2022-10-18 江阴市晶磁电子有限公司 Gradual change image scene machine control processing system and method

Also Published As

Publication number Publication date
CN105915673B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN105915673A (en) Video special effect switching method and mobile terminal
CN106530227B (en) Image recovery method and device
CN106502693B (en) A kind of image display method and device
CN105430295B (en) Image processing apparatus and method
CN108401124B (en) Video recording method and device
CN104902185B (en) Image pickup method and device
CN105100609A (en) Mobile terminal and shooting parameter adjusting method
CN107580693A (en) Mobile terminal and its control method
CN106155311A (en) AR helmet, AR interactive system and the exchange method of AR scene
CN103813108A (en) Array camera, mobile terminal, and methods for operating the same
CN106909274A (en) A kind of method for displaying image and device
CN102291485A (en) Mobile terminal and group generating method therein
CN106792147A (en) A kind of image replacement method and device
CN105808140A (en) Control device and method of mobile terminal
CN110601959B (en) Session message display method, device, terminal and storage medium
CN104935810A (en) Photographing guiding method and device
CN106027905A (en) Sky focusing method and mobile terminal
CN113395566B (en) Video playing method and device, electronic equipment and computer readable storage medium
KR20160127606A (en) Mobile terminal and the control method thereof
CN106850941A (en) Method, photo taking and device
CN105407275B (en) Photo synthesizer and method
CN107018334A (en) A kind of applied program processing method and device based on dual camera
CN109842723A (en) Terminal and its screen brightness control method and computer readable storage medium
CN106131327A (en) Terminal and image-pickup method
CN106713656B (en) Shooting method and mobile terminal

Legal Events

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