CN108900790A - Method of video image processing, mobile terminal and computer readable storage medium - Google Patents
Method of video image processing, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108900790A CN108900790A CN201810673595.5A CN201810673595A CN108900790A CN 108900790 A CN108900790 A CN 108900790A CN 201810673595 A CN201810673595 A CN 201810673595A CN 108900790 A CN108900790 A CN 108900790A
- Authority
- CN
- China
- Prior art keywords
- camera
- video
- image
- target object
- mobile terminal
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000003860 storage Methods 0.000 title claims abstract description 19
- 210000000746 body region Anatomy 0.000 claims description 4
- 238000003672 processing method Methods 0.000 claims description 2
- 238000000605 extraction Methods 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 13
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 230000033001 locomotion Effects 0.000 description 9
- 238000001514 detection method Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 230000008447 perception Effects 0.000 description 5
- 239000000284 extract Substances 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 239000000725 suspension Substances 0.000 description 4
- 230000003321 amplification Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000003199 nucleic acid amplification method Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of method of video image processing, by obtaining sign on of recording a video, it calls the first camera and second camera to carry out image data acquiring to target object simultaneously, and shows the first shooting preview interface and the second shooting preview interface on the screen of the mobile terminal;When detecting photographing instruction, calls the first camera to carry out capture to target object, the first image of target object is obtained in the first shooting preview interface;Video recording END instruction is obtained, the first video and the second video are obtained;The function that the present invention realizes while taking pictures and recording a video, the image procossing in video capture is simple, and obtained first object image is obtained by photographing mode, and picture is clear, characteristic remarkable, promotes user experience;The invention also provides the mobile terminals and computer readable storage medium using above-mentioned method of video image processing, solve the problem of existing mobile terminal video interception extraction operation is cumbersome, screenshot picture image quality is poor and then leads to poor user experience.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of method of video image processing, mobile terminal and computer
Readable storage medium storing program for executing.
Background technique
With the fast development of multimedia information technology and universal, more and more people's habit of portable mobile termianl
It is used to obtain information by video;Meanwhile the information that also more gladly will acquire of people i.e. time-division by way of shooting video
Enjoy allowed to friend and household other people can more intuitive, fresh and alive impression its current live.Certainly, people are when shooting video, to bat
Take the photograph object some fix movement or picture especially interested when, have intercepted from the video of preview some picture storage
The demand got off.But in the prior art, it to be realized while shooting video and profession is needed to the picture feature of reference object
Video production tool and professional could preferably realize;And for ordinary user, it is clapped using mobile terminal
During camera, simple video shooting operation can only be carried out, as a certain fix movement or the picture spy to reference object
When not interested, a method is to replay video after the completion of video record, and user directly carries out in the video of broadcasting
Screenshotss or shot operation;Another method is to click directly on to take pictures, and obtains desired fix movement or picture image.
Both the above method, wherein former approach operating process is cumbersome, and user is needed skilled, accurately to choose manually
Screenshotss picture, and truncated picture size generally all also needs photo-editing software to be reprocessed, image interception treatment effeciency
Lowly, the screenshot technology of personnel there are certain requirements, leads to poor user experience;Later approach is likely to due to misoperation
Current video recording operation is interrupted, also, existing video recording shooting technology is by video preview picture as size of taking pictures
, by calling the original image of different size size in preview video to be cut to obtain the figure of the different resolutions such as 4K or 1080p
Piece, but photo image quality captured by the picture in existing preview video is poor very relative to picture image quality meeting when taking pictures merely
More, image out is unable to satisfy user to the feature demand of the picture.
It can be seen that the multimedia information in existing mobile terminal, especially video image processing technology are also
It is to be improved.
Summary of the invention
It is a primary object of the present invention to propose a kind of method of video image processing, mobile terminal and computer-readable storage
Medium, it is intended to solve existing mobile terminal and carry out the image that the interception image extraction operation in video is cumbersome, extracts
Picture image quality is poor, and then the problem of lead to poor user experience.
Firstly, to achieve the above object, the present invention provides a kind of method of video image processing, it is applied to mobile terminal, institute
Stating mobile terminal includes the first camera and second camera;The method of video image processing includes the following steps:
Video recording sign on is obtained, while first camera and the second camera being called to carry out target object
Image data acquiring, and the first shooting preview interface and the second shooting preview interface are shown on the screen of the mobile terminal;
It detects whether to receive photographing instruction, if detecting photographing instruction, calls first camera to the target pair
As carrying out capture, the first image of target object is obtained in first shooting preview interface;
Video recording END instruction is obtained, the first video and the second video are obtained;It wherein, here can be by first video and
Two videos are temporarily stored into mobile terminal, to prevent other subsequent operations.
Optionally, in acquisition video recording sign on, while first camera and the second camera being called
It records a video to target object, and shows the first shooting preview interface and the second shooting preview on the screen of the mobile terminal
Further include after the step of interface:
The operational order to first camera is read, according to the operational order, adjusts first camera
First camera taken pictures parameter, while will have adjusted parameter of taking pictures captures picture exhibition in first shooting preview circle
Face.
Optionally, if described detect photographing instruction, first camera is called to carry out capture to the target object,
The first image that target object is obtained in first shooting preview interface, specifically comprises the following steps:
When detecting photographing instruction, the first camera pause video recording;
According to photographing instruction, first camera is transferred photographing mode, capture is carried out to the target object, in institute
State the first image that the target object is obtained in the first shooting preview interface.
After obtaining the first image of the target object, first camera carries out next photographing instruction or continues to record
Picture.
Optionally, if described detect photographing instruction, first camera is called to carry out capture to the target object,
Further include before the step of obtaining the first image of target object in first shooting preview interface:
The preview image for obtaining the first camera acquisition, carries out at virtualization the background area of the preview image
Reason.
Specifically, the preview image for obtaining the first camera acquisition, to the background area of the preview image
The step of carrying out virtualization processing specifically comprises the following steps:
When the target object includes people, the preview image of the first camera acquisition is obtained;
Judge with the presence or absence of at least one portrait feature in the preview image, if there are at least one portrait features
When, obtain portrait color characteristic corresponding with the portrait feature;
According to portrait color characteristic, portrait area and the background area of the preview image data are determined;
Virtualization processing is carried out to the background area.
Specifically, the preview image for obtaining the first camera acquisition, to the background area of the preview image
The step of carrying out virtualization processing specifically comprises the following steps:
When the target object includes people, the preview image of the first camera acquisition is obtained;
Judge with the presence or absence of at least one portrait feature in the preview image, if there are at least one portrait features
When, according to the parameter of first camera and the second camera, calculate the depth of field of different location in the preview image;
Select the depth of field of the target object position for portrait area, other depth of field positions are background in the preview image
Region;
Virtualization processing is carried out to the background area.
Optionally, it is also wrapped before the step of whether there is at least one portrait feature in the judgement preview image
It includes:
It detects whether to receive portrait mode of figure identification instruction;If receiving portrait mode of figure identification instruction, start first camera shooting
The Identification of Images mode of head.
Specifically, the preview image for obtaining the first camera acquisition, to the background area of the preview image
The step of carrying out virtualization processing specifically comprises the following steps:
Obtain the preview image of the first camera acquisition;
According to the parameter of first camera and the second camera, different location in the preview image is calculated
The depth of field;
Select the depth of field of the target object position for main body region, other depth of field positions are background in the preview image
Region;
Virtualization processing is carried out to the background area.
Optionally, described that the first shooting preview interface and the second shooting preview circle are shown on the screen of the mobile terminal
Mask body is:
Second shooting preview interface is shown on the screen of the mobile terminal, and first shooting preview interface is outstanding
Float in second shooting preview interface;
Or, first shooting preview interface and the second shooting preview interface split screen display available are in the mobile terminal
On screen.
Meanwhile the present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute
The video image processing program that can be run on memory and on the processor is stated, the video image processing program is described
The step of processor realizes method of video image processing as described above when executing.
In addition, being stored on the computer readable storage medium the present invention also provides a kind of computer readable storage medium
There is video image processing program, the video image processing program, which is performed, realizes method of video image processing as described above
The step of.
Compared to the prior art, method of video image processing proposed by the invention, by obtaining sign on of recording a video, together
When call first camera and the second camera to carry out image data acquiring to target object, and it is described it is mobile eventually
The first shooting preview interface and the second shooting preview interface are shown on the screen at end;It detects whether to receive photographing instruction, if detection
To photographing instruction, first camera is called to carry out capture to the target object, in first shooting preview interface
Obtain the first image of target object;Video recording END instruction is obtained, the first video and the second video are obtained;It realizes to target pair
As the function of being taken pictures and recorded a video simultaneously, the image procossing in video capture is simple, does not influence user's later period to the second video
Perception, and the first object image taken pictures is obtained by photographing mode, can obtain that picture is clear, characteristic remarkable as needed
Picture, improve user experience.The invention also provides the mobile terminals and computer using above-mentioned method of video image processing
Readable storage medium storing program for executing solves the picture that the interception image extraction operation of existing mobile terminal in video is cumbersome, extracts
Image quality is poor, and then the problem of lead to poor user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the implementation process diagram of method of video image processing first embodiment of the present invention;
Fig. 4 is the implementation process diagram of method of video image processing second embodiment of the present invention;
Fig. 5 is one of implementation flow chart of step S403 of the present invention;
Fig. 6 is another implementation flow chart of step S403 of the present invention;
Fig. 7 is another implementation flow chart of step S403 of the present invention;
Fig. 8 is the functional block diagram of video image processing program first embodiment of the present invention;
Fig. 9 is the functional block diagram of video image processing program second embodiment of the present invention;
Figure 10 is screen one of which display diagram of the first shooting preview interface displaying of the invention in mobile terminal;
Figure 11 is screen another kind display diagram of the first shooting preview interface displaying of the invention in mobile terminal;
Figure 12 is page display figure of the present invention when carrying out portrait and taking pictures.
Appended drawing reference:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex 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 mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of 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) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch 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
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein application processor mainly handles information system, user interface and application program etc., and modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber location-server) 2032, other MME2033, SGW (Serving Gate
Way, gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
Firstly, the present invention proposes a kind of method of video image processing, which is applied to Fig. 1 to Fig. 2
The mobile terminal.As shown in figure 3, being the implementation flow chart of method of video image processing first embodiment of the present invention.In this reality
It applies in example, the execution sequence of the step in flow chart shown in Fig. 3 can change according to different requirements, and certain steps can be with
It omits.Method of video image processing provided by the invention includes the following steps:
Step S301 obtains video recording sign on, while calling first camera and the second camera to mesh
It marks object and carries out image data acquiring, and show the first shooting preview interface and the second shooting on the screen of the mobile terminal
Preview interface;
Wherein, what needs to be explained here is that the mobile terminal includes at least two cameras, wherein the first camera and the
Two cameras are located at the same side of the mobile terminal.The invention solves solve the problems, such as to be:Existing mobile terminal is regarding
The picture image quality that interception image extraction operation in frequency is cumbersome, extracts is poor, and then leads to poor user experience;Either regarding
Interception image in frequency, still video intercepting image in the recording, the clarity and size of video preview image are both relative to same
The clarity and size of preview image want poor under one camera photographing mode;In the present embodiment, it is located at by mobile terminal same
The camera and second camera of side carry out while video recording is taken pictures, and the double of dual camera take the photograph mode in mobile terminal in the prior art
That has applied is quite skilled, without considering the realization of the hardware.Here, the camera lens focus of the first camera and second camera
All alignment target object record a video and takes pictures, and the parameter of taking pictures of the two is suitable, acquires the image data of current target object, together
When, the preview interface that current video recording is taken pictures, i.e., the first above-mentioned shooting preview interface can be shown on the screen of the mobile terminal
With the second shooting preview interface, wherein corresponding first shooting preview interface of the preview interface of the first camera, second camera
Preview interface corresponds to the second shooting preview interface;Herein, the second shooting preview interface is shown in the screen of the mobile terminal
On, user can be directly viewable the video frames of second camera, and the first shooting preview interface can be in the form of suspension windows
Show that as shown in Figure 10, when needing to call the first camera, user can click the suspension windows on the screen of the mobile terminal
So that it is suspended in second shooting preview interface or directly overlays the second shooting preview interface, can it is clear,
It is intuitively showed on the screen of mobile terminal, is operated on it with facilitating;Certain first shooting preview interface can be straight
It connects and is suspended in the second shooting preview interface;In addition, the first shooting preview interface and the second shooting preview interface can also be with split screens
Form is showed on the screen of the mobile terminal, as shown in figure 11, wherein the second shooting preview interface is shown in the form of main screen, the
One shooting preview shows that interface shows that, when needing to call the first camera, it is pre- that user can click the first shooting in the form of vice screen
It lookes at and shows interface, the first shooting preview is shown that interface and the first shooting preview show that interface location is exchanged, or directly with the
One shooting preview shows interface covering the second shooting exhibition interface, can clearly, intuitively be showed in the screen of mobile terminal
On, with user-friendly.
Step S302 detects whether to receive photographing instruction;User is during the actual photographed to target object, such as target
When object is personage, a certain movement of the target person needs the feature that fixes, and when target object is object, a certain operation fixed point needs
When amplification, the picture in video that user cannot rely on merely, size and image quality etc. may be unable to satisfy user
Current demand, user can input photographing instruction to mobile terminal here, such as transfer the first shooting preview and show interface, by it
Than the more visible mobile terminal of being showed in;What needs to be explained here is that a kind of deformation as the present embodiment, this step it
Before, after step S301, further includes one and read to the operational order of first camera, according to the operational order,
The parameter of taking pictures of first camera is adjusted, while first camera for having adjusted parameter of taking pictures is captured into picture exhibition
In first shooting preview interface;For user perspective, exactly in order to more obtain more high-quality, picture of clearly taking pictures, lead to
The set-up modes such as the long exposure of selection, optical zoom are crossed, adjust the parameter of taking pictures of the first camera, such user can be in first count
The protrusion or amplification feature, user for taking the photograph in preview interface a certain movement for seeing current target object may be selected by whether clapping
According to, if photographing instruction is inputted to mobile terminal.
Step S303 calls first camera to carry out capture to the target object if detecting photographing instruction,
The first image of the target object is obtained in first shooting preview interface.
In the present embodiment, user joins after calling out the first shooting preview interface in the shooting of the first camera
Number changes, and the first image of target object shown in the first shooting preview interface achievees the effect that desired by user, then user
It can choose to mobile terminal and input photographing instruction, the first camera of instruction takes pictures to target object, obtains target object
The first image.
As the another kind deformation of the present embodiment, step S303 can specifically be achieved by the steps of, specifically include:
When detecting photographing instruction, the first camera pause video recording;When user selection to current target object into
When taking pictures, the video recording operation of the first camera can be suspended row, and the first camera is converted to photographing mode from RECORD mode, and
Before this, the parameter of taking pictures of the first camera is converted to photographing mode from RECORD mode, apparent, more good to obtain
Picture image;
According to photographing instruction, first camera is transferred photographing mode, capture is carried out to the target object, in institute
The first image that the target object is obtained in the first shooting preview interface is stated, the first image of obtained target object can be stored in
In the memory of mobile terminal, checked for calling;
After obtaining the first image of the target object, the first camera completes photographing instruction, first camera
Into next photographing instruction or continue to record a video;When obtained first object object deposit mobile terminal, mobile terminal has been represented
Once photo taking operation is completed, when photographing instruction next time is not detected, the first camera will be automatically converted to video recording mould
Formula continues to record a video to the target object, and the parameter of taking pictures of the first camera will also be restored to video recording mould from photographing mode
Formula.
Wherein, what needs to be explained here is that, it is based in stipulated time threshold that the first camera, which is automatically converted to RECORD mode,
In value, photographing instruction next time is not detected, stipulated time threshold value here can be user oneself on the backstage of mobile terminal
It is arranged, is also possible to system under machine algorithm, obtained most preferably numerical value, between detecting the time of photographing instruction twice
It is interposed between in stipulated time threshold value, the first camera keeps photographing mode for after obtaining the first image of target object, continues pair
Target object carries out capture, obtains another the first image of target object;If being not detected in stipulated time threshold value next
Secondary photographing instruction, then the first camera is converted into RECORD mode.
Step S304 obtains video recording END instruction, obtains the first video and the second video;It wherein, here can be by described
One video and the second video are temporarily stored into mobile terminal, to prevent other subsequent operations, it should be noted that as user Xiang Yi
Dynamic terminal input video recording END instruction, the first camera and second camera stop current operation, and the second video here is whole
Be second camera obtained under RECORD mode from video recording sign on to video recording the END instruction time in target object
Complete video, and the first video here are that the first camera is interrupted acquirement of taking pictures under RECORD mode, content relative to
Second video is not smooth.
Compared to the prior art, method of video image processing proposed by the invention, S301 to S304 through the above steps,
The function of realizing to target object while being taken pictures and being recorded a video, the image procossing in video capture is simple, does not influence user
Later period is to the perception of the second video, and the first object image taken pictures is obtained by photographing mode, can obtain picture as needed
Face is clear, characteristic remarkable picture, improves user experience.
Further, it is based on above-mentioned first embodiment, proposes the second embodiment of method of video image processing of the present invention.Such as
It is the implementation flow chart of method of video image processing second embodiment of the present invention shown in Fig. 4.In the present embodiment, according to difference
Demand, the execution sequence of the step in flow chart shown in Fig. 4 can change, and certain steps can be omitted.The video figure
As processing method includes:
Step S401 obtains video recording sign on, while calling first camera and the second camera to mesh
It marks object and carries out image data acquiring, and show the first shooting preview interface and the second shooting on the screen of the mobile terminal
Preview interface.
Step S402 detects whether to receive photographing instruction.
Step S403 obtains the preview image of first camera acquisition, to the background area of the preview image into
Row virtualization processing, specifically, step 403 can be realized respectively by the following method.
The specific steps of one of method, as shown in Figure 5:
Step 501, the preview image of the first camera acquisition is obtained;
Step 502, it according to the parameter of first camera and the second camera, calculates in the preview image not
With the depth of field of position;
Step 503, select the depth of field of the target object position for main body region, other depth of field positions in the preview image
It is set to background area;
Step 504, virtualization processing is carried out to the background area.
When the target object includes people, need first to detect the mobile terminal whether receive portrait mode of figure identification refer to
It enables;I.e. user whether select open Identification of Images mode (Identification of Images mode on existing mobile terminal have widely answers
With here, its detailed process is no longer described in detail), as shown in figure 11, user can be realized by taking pictures to be arranged;If receiving portrait mould
Formula identification instruction, starts the Identification of Images mode of first camera;The specific implementation flow of step S403 can be by such as
Method shown in Fig. 6 is realized comprising following steps:
Step S601 obtains the preview image of the first camera acquisition;
Step S602 judges in the preview image with the presence or absence of at least one portrait feature;
Step S603, if obtaining portrait color corresponding with the portrait feature there are when at least one portrait feature
Feature;In order to avoid influencing the equal normal photographing of non-portrait object, when the first camera is not detected in preview image
There are portrait features, then carry out normal photographing, and there are portrait feature in detecting preview image, then the first camera, then
Different personages couple can be directed in embodiments of the present invention in advance by obtaining portrait color characteristic corresponding with above-mentioned portrait feature
As establishing the corresponding relationship between the standard portrait feature of each who object and its people's color characteristic.
Step S604 determines portrait area and the background area of the preview image data according to portrait color characteristic;Its
In middle preview image data with the above-mentioned matched region of portrait color characteristic be portrait area;Region other than portrait area is back
Scene area.In embodiments of the present invention, above-mentioned portrait color characteristic can be color value block information, such as can be RGB mould
The color value block information of formula (RGB color mode) can be the color value section letter of CMYK mode (four color patterns of printing)
Breath.The present invention is not limited thereto, and above-mentioned color value block information is obtained by single Color Channel or more Color Channels.
Certainly, above-mentioned color characteristic can also be other color characteristics such as color convergence vector information.
Step S605 carries out virtualization processing to the background area.
When the target object includes people, the specific implementation flow of step S403 can be real by method as shown in Figure 7
It is existing comprising following steps:
Step S701 obtains the preview image of the first camera acquisition;
Step S702 judges in the preview image with the presence or absence of at least one portrait feature;
Step S703, if there are when at least one portrait feature, according to first camera and second camera shooting
The parameter of head, calculates the depth of field of different location in the preview image;
Step S704 selects the depth of field of the target object position for portrait area, other depth of field in the preview image
Position is background area;
Step S705 carries out virtualization processing to the background area.
Step S404 calls first camera to carry out capture to the target object if detecting photographing instruction,
The first image of the target object is obtained in first shooting preview interface.
Step S405 obtains video recording END instruction, obtains the first video and the second video;
In the present embodiment, the method for video image processing of mobile terminal passes through the preview for obtaining the first camera acquisition
Image carries out virtualization processing to the background area of the preview image, can obtain background blurring image when taking pictures, subtract
Few edit operation of user's later period to image, promotes user experience.
S401 to S405 through the above steps, the method for video image processing in mobile terminal of the present invention, realizes to mesh
The function that object is taken pictures and recorded a video simultaneously is marked, the image procossing in video capture is simple, does not influence user's later period to second
The perception of video, and the first object image taken pictures is obtained by photographing mode, can obtain that picture is clear, feature as needed
Significant picture improves user experience.
Meanwhile the present invention also proposes a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute
State the video image processing program 400 that can be run on memory and on the processor.As shown in figure 8, being video of the present invention
The functional block diagram of 800 first embodiment of image processing program.In the present embodiment, the video image processing program
800 can be divided into one or more modules, for example, in fig. 8, the video image processing program 400 can be divided
Module 801, detection module 802 are obtained at sign on, take pictures image extraction module 803 and END instruction acquisition module 804.This hair
Bright so-called module refers to a series of a kind of acquisition machine program instruction sections that can complete specific function, more suitable than obtaining machine program
Together in implementation procedure of the description software in the mobile terminal.Below by the specific function of just above-mentioned each functional module 801-804
It can be carried out detailed description.Wherein:
Sign on obtains module 801, for obtaining video recording sign on, while calling first camera and described
Second camera carries out image data acquiring to target object, and the first shooting preview is shown on the screen of the mobile terminal
Interface and the second shooting preview interface;
Wherein, what needs to be explained here is that the mobile terminal includes at least two cameras, wherein the first camera and the
Two cameras are located at the same side of the mobile terminal.The invention solves solve the problems, such as to be:Existing mobile terminal is regarding
The picture image quality that interception image extraction operation in frequency is cumbersome, extracts is poor, and then leads to poor user experience;Either regarding
Interception image in frequency, still video intercepting image in the recording, the clarity and size of video preview image are both relative to same
The clarity and size of preview image want poor under one camera photographing mode;In the present embodiment, it is located at by mobile terminal same
The camera and second camera of side carry out while video recording is taken pictures, and the double of dual camera take the photograph mode in mobile terminal in the prior art
That has applied is quite skilled, without considering the realization of the hardware.Here, the camera lens focus of the first camera and second camera
All alignment target object record a video and takes pictures, and the parameter of taking pictures of the two is suitable, acquires the image data of current target object, together
When, the preview interface that current video recording is taken pictures, i.e., the first above-mentioned shooting preview interface can be shown on the screen of the mobile terminal
With the second shooting preview interface, wherein corresponding first shooting preview interface of the preview interface of the first camera, second camera
Preview interface corresponds to the second shooting preview interface;Herein, the second shooting preview interface is shown in the screen of the mobile terminal
On, user can be directly viewable the video frames of second camera, and the first shooting preview interface can be in the form of suspension windows
Show that as shown in Figure 10, when needing to call the first camera, user can click the suspension windows on the screen of the mobile terminal
So that it is suspended in second shooting preview interface or directly overlays the second shooting preview interface, can it is clear,
It is intuitively showed on the screen of mobile terminal, is operated on it with facilitating;Certain first shooting preview interface can be straight
It connects and is suspended in the second shooting preview interface;In addition, the first shooting preview interface and the second shooting preview interface can also be with split screens
Form is showed on the screen of the mobile terminal, as shown in figure 11, wherein the second shooting preview interface is shown in the form of main screen, the
One shooting preview shows that interface shows that, when needing to call the first camera, it is pre- that user can click the first shooting in the form of vice screen
It lookes at and shows interface, the first shooting preview is shown that interface and the first shooting preview show that interface location is exchanged, or directly with the
One shooting preview shows interface covering the second shooting exhibition interface, can clearly, intuitively be showed in the screen of mobile terminal
On, with user-friendly.
Detection module 802, for detecting whether receiving photographing instruction;User is in the actual photographed process to target object
In, when such as target object being personage, a certain movement of the target person needs the feature that fixes, when target object is object, a certain behaviour
When work fixed point needs to amplify, the picture in video that user cannot rely on merely, size and image quality etc. may nothings
Method meets user's current demand, and user can input photographing instruction to mobile terminal here, such as transfers the first shooting preview exhibition
Show interface, by it than the more visible mobile terminal of being showed in;What needs to be explained here is that a kind of deformation as the present embodiment,
It further include the operational order read to first camera, according to described before detecting whether to receive photographing instruction
Operational order, adjusts the parameter of taking pictures of first camera, while first camera for having adjusted parameter of taking pictures being caught
Picture exhibition is caught in first shooting preview interface;For user perspective, exactly in order to more obtain it is more high-quality, clearly clap
The parameter of taking pictures of the first camera is adjusted, such user is just by selecting the set-up modes such as long exposure, optical zoom according to picture
The protrusion or amplification feature, user that a certain movement of current target object can be seen in the first shooting preview interface can be selected
It selects and whether takes pictures, if input photographing instruction to mobile terminal.
It takes pictures image extraction module 803, if detecting photographing instruction, for calling first camera to the target object
Capture is carried out, the first image of the target object is obtained in first shooting preview interface.
In the present embodiment, user joins after calling out the first shooting preview interface in the shooting of the first camera
Number changes, and the first image of target object shown in the first shooting preview interface achievees the effect that desired by user, then user
It can choose to mobile terminal and input photographing instruction, the first camera of instruction takes pictures to target object, obtains target object
The first image.
As the another kind deformation of the present embodiment, the function of the image extraction module 803 of taking pictures can also be come real by the following method
Existing, detailed process is as follows:
When detecting photographing instruction, the first camera pause video recording;When user selection to current target object into
When taking pictures, the video recording operation of the first camera can be suspended row, and the first camera is converted to photographing mode from RECORD mode, and
Before this, the parameter of taking pictures of the first camera is converted to photographing mode from RECORD mode, apparent, more good to obtain
Picture image;
According to photographing instruction, first camera is transferred photographing mode, capture is carried out to the target object, in institute
The first image that the target object is obtained in the first shooting preview interface is stated, the first image of obtained target object can be stored in
In the memory of mobile terminal, checked for calling;
After obtaining the first image of the target object, the first camera completes photographing instruction, first camera
Into next photographing instruction or continue to record a video;When obtained first object object deposit mobile terminal, mobile terminal has been represented
Once photo taking operation is completed, when photographing instruction next time is not detected, the first camera will be automatically converted to video recording mould
Formula continues to record a video to the target object, and the parameter of taking pictures of the first camera will also be restored to video recording mould from photographing mode
Formula.
Wherein, what needs to be explained here is that, it is based in stipulated time threshold that the first camera, which is automatically converted to RECORD mode,
In value, photographing instruction next time is not detected, stipulated time threshold value here can be user oneself on the backstage of mobile terminal
It is arranged, is also possible to system under machine algorithm, obtained most preferably numerical value, between detecting the time of photographing instruction twice
It is interposed between in stipulated time threshold value, the first camera keeps photographing mode for after obtaining the first image of target object, continues pair
Target object carries out capture, obtains another the first image of target object;If being not detected in stipulated time threshold value next
Secondary photographing instruction, then the first camera is converted into RECORD mode.
END instruction of recording a video obtains module 804, obtains video recording END instruction, obtains the first video and the second video;Wherein,
Here first video and the second video can be temporarily stored into mobile terminal, to prevent other subsequent operations, needs to illustrate
, when user inputs video recording END instruction to mobile terminal, the first camera and second camera stop current operation, here
The second video be integrally second camera obtained under RECORD mode from video recording sign on to video recording the END instruction time
The complete video of interior target object, and the first video here, are that the first camera is interrupted acquirement of taking pictures under RECORD mode
, content is not smooth relative to the second video.
Compared to the prior art, method of video image processing proposed by the invention, it is real by above-mentioned module 801 to 804
The function of having showed to target object while having been taken pictures and being recorded a video, the image procossing in video capture is simple, after not influencing user
Phase is to the perception of the second video, and the first object image taken pictures is obtained by photographing mode, can obtain picture as needed
Clearly, the picture of characteristic remarkable improves user experience.
Further, it is based on above-mentioned first embodiment, proposes the second embodiment of video image processing program of the present invention.Such as
It is the functional block diagram of video image processing program second embodiment of the present invention shown in Fig. 9, compared with first embodiment,
In the present embodiment, video image processing program 800 includes that sign on obtains module 801, detection module 802, virtualization processing mould
Block 805, take pictures image extraction module 803 and END instruction acquisition module 804.In the present embodiment, each functional module is described as follows:
Sign on obtains module 801, for obtaining video recording sign on, while calling first camera and described
Second camera carries out image data acquiring to target object, and the first shooting preview is shown on the screen of the mobile terminal
Interface and the second shooting preview interface.
Detection module 802, for detecting whether receiving photographing instruction.
Processing module 805 is blurred, for obtaining the preview image of the first camera acquisition, to the preview image
Background area carries out virtualization processing, specifically, blur processing module 903 function can following several method realize.
The specific steps of one of method, as shown in Figure 6:
Obtain the preview image of the first camera acquisition;According to first camera and the second camera
Parameter calculates the depth of field of different location in the preview image;Select the depth of field of the target object position for main body region, institute
Stating other depth of field positions in preview image is background area;Virtualization processing is carried out to the background area.
When the target object includes people, need first to detect the mobile terminal whether receive portrait mode of figure identification refer to
It enables;I.e. user whether select open Identification of Images mode (Identification of Images mode on existing mobile terminal have widely answers
With here, its detailed process is no longer described in detail), as shown in figure 12, user can be realized by taking pictures to be arranged;If receiving portrait mould
Formula identification instruction, starts the Identification of Images mode of first camera;Blur processing module 903 function can also by with
Lower method is realized comprising following steps:
Obtain the preview image of the first camera acquisition;
Judge in the preview image with the presence or absence of at least one portrait feature;
If obtaining portrait color characteristic corresponding with the portrait feature there are when at least one portrait feature;In order to
The equal normal photographing for avoiding influencing non-portrait object, when the first camera is not detected in preview image, there are portrait spies
Sign, then carry out normal photographing, and there are portrait feature in detecting preview image, then the first camera, then obtain with it is above-mentioned
The corresponding portrait color characteristic of portrait feature can be directed to different who objects in advance, establish each one in embodiments of the present invention
Corresponding relationship between the standard portrait feature of object object and its people's color characteristic.
According to portrait color characteristic, portrait area and the background area of the preview image data are determined;Wherein preview graph
As with the above-mentioned matched region of portrait color characteristic being portrait area in data;Region other than portrait area is background area.
In embodiments of the present invention, above-mentioned portrait color characteristic can be color value block information, such as can be (red green for RGB mode
Blue color mode) color value block information, can be the color value block information of CMYK mode (printing four color patterns).This hair
Above-mentioned color value block information bright and without restriction is obtained by single Color Channel or more Color Channels.Certainly, on
Stating color characteristic can also be other color characteristics such as color convergence vector information.
Virtualization processing is carried out to the background area.
When the target object includes people, the function of virtualization processing module 903 can also be realized by the following method,
It includes the following steps:
Obtain the preview image of the first camera acquisition;
Judge in the preview image with the presence or absence of at least one portrait feature;
If there are when at least one portrait feature, according to the parameter of first camera and the second camera,
Calculate the depth of field of different location in the preview image;
Select the depth of field of the target object position for portrait area, other depth of field positions are background in the preview image
Region;
Virtualization processing is carried out to the background area.
It takes pictures image extraction module 803, if detecting photographing instruction, for calling first camera to the target object
Capture is carried out, the first image of the target object is obtained in first shooting preview interface.
END instruction obtains module 804, for obtaining video recording END instruction, obtains the first video and the second video;
In the present embodiment, the video image processing program of mobile terminal passes through the preview for obtaining the first camera acquisition
Image carries out virtualization processing to the background area of the preview image, can obtain background blurring image when taking pictures, subtract
Few edit operation of user's later period to image, promotes user experience.
Video image processing program in mobile terminal of the present invention is realized pair by above-mentioned functional module 901 to 905
The target object function being taken pictures and recorded a video simultaneously, the image procossing in video capture is simple, does not influence user's later period to the
The perception of two videos, and the first object image taken pictures is obtained by photographing mode, and it is clear, special can to obtain picture as needed
Significant picture is levied, user experience is improved.
In addition, being stored on the computer readable storage medium the present invention also provides a kind of computer readable storage medium
There is video image processing program, the video image processing program, which is performed, realizes video image processing described in Fig. 3 and Fig. 5
The step of method.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer is fixed
Position server, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method of video image processing is applied to mobile terminal, which is characterized in that the mobile terminal includes the first camera shooting
Head and second camera;The method of video image processing includes the following steps:
Video recording sign on is obtained, while first camera and the second camera being called to carry out image to target object
Data acquisition, and the first shooting preview interface and the second shooting preview interface are shown on the screen of the mobile terminal;
Detect whether to receive photographing instruction, if detecting photographing instruction, call first camera to the target object into
Row capture obtains the first image of target object in first shooting preview interface;
Video recording END instruction is obtained, the first video and the second video are obtained.
2. method of video image processing as described in claim 1, which is characterized in that in acquisition video recording sign on, together
When call first camera and the second camera to record a video target object, and in the screen of the mobile terminal
Further include after the step of the first shooting preview interface of upper display and the second shooting preview interface:
The operational order to first camera is read, according to the operational order, adjusts taking pictures for first camera
Parameter, while first camera for having adjusted parameter of taking pictures is captured into picture exhibition in first shooting preview interface.
3. method of video image processing as described in claim 1, it is characterised in that:If described detect photographing instruction, call
First camera carries out capture to the target object, and the of target object is obtained in first shooting preview interface
One image, specifically comprises the following steps:
When detecting photographing instruction, the first camera pause video recording;
According to photographing instruction, first camera is transferred photographing mode, capture is carried out to the target object, described the
The first image of the target object is obtained in one shooting preview interface.
4. method of video image processing as described in claim 1, it is characterised in that:If described detect photographing instruction, call
First camera carries out capture to the target object, and the of target object is obtained in first shooting preview interface
Further include before the step of one image:
The preview image for obtaining the first camera acquisition, carries out virtualization processing to the background area of the preview image.
5. method of video image processing as claimed in claim 4, which is characterized in that described to obtain the first camera acquisition
Preview image, to the background area of the preview image carry out virtualization processing the step of specifically comprise the following steps:
When the target object includes people, the preview image of the first camera acquisition is obtained;
Judge with the presence or absence of at least one portrait feature in the preview image, if there are when at least one portrait feature, root
According to the parameter of first camera and the second camera, the depth of field of different location in the preview image is calculated;
Select the depth of field of the target object position for portrait area, other depth of field positions are background area in the preview image
Domain;
Virtualization processing is carried out to the background area.
6. method of video image processing as claimed in claim 4, which is characterized in that described to obtain the first camera acquisition
Preview image, to the background area of the preview image carry out virtualization processing the step of specifically comprise the following steps:
When the target object includes people, the preview image of the first camera acquisition is obtained;
Judge with the presence or absence of at least one portrait feature in the preview image, if being obtained there are when at least one portrait feature
Take portrait color characteristic corresponding with the portrait feature;
According to portrait color characteristic, portrait area and the background area of the preview image data are determined;
Virtualization processing is carried out to the background area.
7. method of video image processing as described in claim 1, which is characterized in that described to obtain the first camera acquisition
Preview image, to the background area of the preview image carry out virtualization processing the step of specifically comprise the following steps:
Obtain the preview image of the first camera acquisition;
According to the parameter of first camera and the second camera, the scape of different location in the preview image is calculated
It is deep;
Select the depth of field of the target object position for main body region, other depth of field positions are background area in the preview image
Domain;
Virtualization processing is carried out to the background area.
8. method of video image processing as described in claim 1, which is characterized in that described on the screen of the mobile terminal
It shows the first shooting preview interface and the second shooting preview interface is specially:
Second shooting preview interface is shown on the screen of the mobile terminal, and first shooting preview interface is suspended in
In second shooting preview interface;
Or, first shooting preview interface and the second shooting preview interface split screen display available are in the screen of the mobile terminal
On.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory
Video image processing program that is upper and can running on the processor, the video image processing program are held by the processor
It realizes when row such as the step of method of video image processing described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with video figure on the computer readable storage medium
As processing routine, the video image processing program is performed realization such as video figure described in any item of the claim 1 to 8
As the step of processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810673595.5A CN108900790B (en) | 2018-06-26 | 2018-06-26 | Video image processing method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810673595.5A CN108900790B (en) | 2018-06-26 | 2018-06-26 | Video image processing method, mobile terminal and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108900790A true CN108900790A (en) | 2018-11-27 |
| CN108900790B CN108900790B (en) | 2021-01-01 |
Family
ID=64346037
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810673595.5A Active CN108900790B (en) | 2018-06-26 | 2018-06-26 | Video image processing method, mobile terminal and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108900790B (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109087271A (en) * | 2018-09-28 | 2018-12-25 | 珠海格力电器股份有限公司 | method, system and mobile phone for realizing video blurring |
| CN109729270A (en) * | 2018-12-30 | 2019-05-07 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
| CN111240184A (en) * | 2020-02-21 | 2020-06-05 | 华为技术有限公司 | Method for determining clock error, terminal and computer storage medium |
| CN111857887A (en) * | 2020-06-12 | 2020-10-30 | 北京百度网讯科技有限公司 | Data acquisition method, apparatus, electronic device and readable storage medium |
| CN112004045A (en) * | 2020-08-26 | 2020-11-27 | Oppo(重庆)智能科技有限公司 | Video processing method, device and storage medium |
| CN113473239A (en) * | 2020-07-15 | 2021-10-01 | 青岛海信电子产业控股股份有限公司 | Intelligent terminal, server and image processing method |
| CN113950011A (en) * | 2021-04-23 | 2022-01-18 | 佛山市威格特电气设备有限公司 | Intelligent safety helmet cluster two-way voice talkback method |
| WO2022068537A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Image processing method and related apparatus |
| CN114710624A (en) * | 2022-04-24 | 2022-07-05 | 维沃移动通信有限公司 | Photographing method and photographing apparatus |
| WO2022246752A1 (en) * | 2021-05-27 | 2022-12-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method of generating an image, electronic device, apparatus, and computer readable storage medium |
| CN115442509A (en) * | 2021-06-01 | 2022-12-06 | 荣耀终端有限公司 | Shooting method, user interface and electronic equipment |
| CN115515008A (en) * | 2022-09-19 | 2022-12-23 | 深圳市天和荣科技有限公司 | A video processing method, terminal and video processing system |
| CN116701675A (en) * | 2022-02-25 | 2023-09-05 | 荣耀终端有限公司 | Image data processing method and electronic device |
| WO2023226634A1 (en) * | 2022-05-27 | 2023-11-30 | 荣耀终端有限公司 | Photographing method and electronic device |
| CN117177065A (en) * | 2022-05-30 | 2023-12-05 | 荣耀终端有限公司 | A video processing method and terminal |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100615A (en) * | 2015-07-24 | 2015-11-25 | 青岛海信移动通信技术股份有限公司 | Image preview method, device and terminal |
| CN105827935A (en) * | 2015-07-23 | 2016-08-03 | 维沃移动通信有限公司 | Terminal screenshot method and terminal |
| CN105959574A (en) * | 2016-06-30 | 2016-09-21 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
| CN107509031A (en) * | 2017-08-31 | 2017-12-22 | 广东欧珀移动通信有限公司 | Image processing method, device, mobile terminal, and computer-readable storage medium |
| CN107613202A (en) * | 2017-09-21 | 2018-01-19 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
| CN108184052A (en) * | 2017-12-27 | 2018-06-19 | 努比亚技术有限公司 | A kind of method of video record, mobile terminal and computer readable storage medium |
-
2018
- 2018-06-26 CN CN201810673595.5A patent/CN108900790B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105827935A (en) * | 2015-07-23 | 2016-08-03 | 维沃移动通信有限公司 | Terminal screenshot method and terminal |
| CN105100615A (en) * | 2015-07-24 | 2015-11-25 | 青岛海信移动通信技术股份有限公司 | Image preview method, device and terminal |
| CN105959574A (en) * | 2016-06-30 | 2016-09-21 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
| CN107509031A (en) * | 2017-08-31 | 2017-12-22 | 广东欧珀移动通信有限公司 | Image processing method, device, mobile terminal, and computer-readable storage medium |
| CN107613202A (en) * | 2017-09-21 | 2018-01-19 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
| CN108184052A (en) * | 2017-12-27 | 2018-06-19 | 努比亚技术有限公司 | A kind of method of video record, mobile terminal and computer readable storage medium |
Cited By (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109087271A (en) * | 2018-09-28 | 2018-12-25 | 珠海格力电器股份有限公司 | method, system and mobile phone for realizing video blurring |
| CN109729270A (en) * | 2018-12-30 | 2019-05-07 | 联想(北京)有限公司 | A kind of control method, device and electronic equipment |
| US11153473B2 (en) | 2018-12-30 | 2021-10-19 | Lenovo (Beijing) Co., Ltd. | Control method, device and electronic apparatus for image acquisition |
| CN111240184A (en) * | 2020-02-21 | 2020-06-05 | 华为技术有限公司 | Method for determining clock error, terminal and computer storage medium |
| CN111857887A (en) * | 2020-06-12 | 2020-10-30 | 北京百度网讯科技有限公司 | Data acquisition method, apparatus, electronic device and readable storage medium |
| CN111857887B (en) * | 2020-06-12 | 2023-11-21 | 北京百度网讯科技有限公司 | Data collection methods, devices, electronic equipment and readable storage media |
| CN113473239B (en) * | 2020-07-15 | 2023-10-13 | 青岛海信电子产业控股股份有限公司 | Intelligent terminal, server and image processing method |
| CN113473239A (en) * | 2020-07-15 | 2021-10-01 | 青岛海信电子产业控股股份有限公司 | Intelligent terminal, server and image processing method |
| CN112004045A (en) * | 2020-08-26 | 2020-11-27 | Oppo(重庆)智能科技有限公司 | Video processing method, device and storage medium |
| WO2022068537A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Image processing method and related apparatus |
| CN113950011A (en) * | 2021-04-23 | 2022-01-18 | 佛山市威格特电气设备有限公司 | Intelligent safety helmet cluster two-way voice talkback method |
| WO2022246752A1 (en) * | 2021-05-27 | 2022-12-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method of generating an image, electronic device, apparatus, and computer readable storage medium |
| CN115442509A (en) * | 2021-06-01 | 2022-12-06 | 荣耀终端有限公司 | Shooting method, user interface and electronic equipment |
| CN115442509B (en) * | 2021-06-01 | 2023-10-13 | 荣耀终端有限公司 | Shooting method, user interface and electronic equipment |
| CN116701675A (en) * | 2022-02-25 | 2023-09-05 | 荣耀终端有限公司 | Image data processing method and electronic device |
| US12388950B2 (en) | 2022-02-25 | 2025-08-12 | Honor Device Co., Ltd. | Image data processing method and electronic device |
| CN114710624A (en) * | 2022-04-24 | 2022-07-05 | 维沃移动通信有限公司 | Photographing method and photographing apparatus |
| CN114710624B (en) * | 2022-04-24 | 2024-09-03 | 维沃移动通信有限公司 | Shooting method and shooting device |
| WO2023226634A1 (en) * | 2022-05-27 | 2023-11-30 | 荣耀终端有限公司 | Photographing method and electronic device |
| CN117177065A (en) * | 2022-05-30 | 2023-12-05 | 荣耀终端有限公司 | A video processing method and terminal |
| CN115515008A (en) * | 2022-09-19 | 2022-12-23 | 深圳市天和荣科技有限公司 | A video processing method, terminal and video processing system |
| CN115515008B (en) * | 2022-09-19 | 2024-02-27 | 深圳市天和荣科技有限公司 | Video processing method, terminal and video processing system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108900790B (en) | 2021-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108900790A (en) | Method of video image processing, mobile terminal and computer readable storage medium | |
| CN109729266A (en) | A kind of image capturing method, terminal and computer readable storage medium | |
| CN107920270A (en) | Video separated screen control method for playing back, terminal and computer-readable recording medium | |
| CN108322644A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
| CN107094236A (en) | Panorama shooting method, mobile terminal and computer-readable recording medium | |
| CN107690065A (en) | A kind of white balance correcting, device and computer-readable recording medium | |
| CN109064998A (en) | A kind of screen luminance adjustment method, terminal and computer readable storage medium | |
| CN108269230A (en) | Certificate photo generation method, mobile terminal and computer readable storage medium | |
| CN108008927A (en) | Multi-screen meeting implementation method, mobile terminal and computer-readable recording medium | |
| CN109525782A (en) | A kind of image pickup method, terminal and computer readable storage medium | |
| CN107948360A (en) | Image pickup method, terminal and the computer-readable recording medium of flexible screen terminal | |
| CN110072061A (en) | A kind of interactive mode image pickup method, mobile terminal and storage medium | |
| CN107959795A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
| CN107948530A (en) | A kind of image processing method, terminal and computer-readable recording medium | |
| CN109889695A (en) | A kind of image-region determines method, terminal and computer readable storage medium | |
| CN110086993A (en) | Image processing method, device, mobile terminal and computer readable storage medium | |
| CN107040723A (en) | A kind of imaging method based on dual camera, mobile terminal and storage medium | |
| CN107315515A (en) | Color change method, terminal and the computer-readable recording medium of status bar icon | |
| CN107911422A (en) | A kind of switching handling method, terminal and computer-readable recording medium | |
| CN109639996A (en) | High dynamic scene imaging method, mobile terminal and computer readable storage medium | |
| CN107240072A (en) | A kind of screen luminance adjustment method, terminal and computer-readable recording medium | |
| CN107566734A (en) | Portrait is taken pictures intelligent control method, terminal and computer-readable recording medium | |
| CN109525783A (en) | A kind of exposure image pickup method, terminal and computer readable storage medium | |
| CN108184052A (en) | A kind of method of video record, mobile terminal and computer readable storage medium | |
| CN110035270A (en) | A kind of 3D rendering display methods, terminal 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |