CN107205130A - A kind of kinescope method based on dual camera, terminal and computer-readable medium - Google Patents
A kind of kinescope method based on dual camera, terminal and computer-readable medium Download PDFInfo
- Publication number
- CN107205130A CN107205130A CN201710515398.6A CN201710515398A CN107205130A CN 107205130 A CN107205130 A CN 107205130A CN 201710515398 A CN201710515398 A CN 201710515398A CN 107205130 A CN107205130 A CN 107205130A
- Authority
- CN
- China
- Prior art keywords
- video
- dual camera
- recording
- image unit
- picture
- 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
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/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
Abstract
The invention discloses a kind of kinescope method based on dual camera, terminal and computer-readable medium, it is related to terminal device technical field, the kinescope method based on dual camera includes:Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;Control first image unit to be recorded in first recording time section, obtain the first video;Control second image unit to be recorded in second recording time section, obtain the second video;First video and second video are synthesized according to first image unit and the second image unit shooting angle offset.A kind of kinescope method based on dual camera, terminal and computer-readable medium that the present invention is provided, using dual camera interval shooting, synthesis, can protect sensitive component to avoid high temperature failure while the video time based on dual camera is extended.
Description
Technical field
The present invention relates to terminal device technical field, more particularly to a kind of kinescope method based on dual camera, terminal and
Computer-readable medium.
Background technology
With the constantly improve of mobile terminal function, the common function of having become mobile terminal of taking pictures is in mobile phone and PAD
In be widely used, the principle that it is taken pictures is essentially identical.
The disposal ability of these above-mentioned terminal devices with camera function is general weaker, and overall hardware plan is mostly:Eventually
Hold master chip+front end image processing chip (Backend IC)+imaging sensor (Sensor).Wherein Backend IC are completed
The collection of Sensor data and Jpeg compressions.In order that terminal not only has camera function but also can realize recording, occur in that
The technology of recording is realized using Motion Jpeg forms.Using Motion Jpeg recording directly inside backend IC
RAM in hardware controls, Backend IC can only be used for keeping in all Motion Jpeg data, and terminal can not control this
RAM, the RAM can not be recycled, and be result in recording time and limited by backend IC internal RAM sizes, so can not be real
Now without recording in limited time.In addition, when recording HD video, even 4K videos, high temperature failure is avoided for protection sensitive component,
The limitation on recording time is generally all carried out, general recording time was limited to as 30 minutes.
The content of the invention
It is a primary object of the present invention to propose a kind of kinescope method based on dual camera, terminal and computer-readable Jie
Matter, it is intended to solve in video process of the prior art based on dual camera that the video time based on dual camera is restricted to ask
Topic.
To achieve the above object, one aspect of the present invention provides a kind of kinescope method based on dual camera, applied to
In the terminal of first image unit and the second image unit, the kinescope method based on dual camera includes:
Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;
Control first image unit to be recorded in first recording time section, obtain the first video;
Control second image unit to be recorded in second recording time section, obtain the second video;
According to first image unit and the second image unit shooting angle offset to first video and
Second video is synthesized.
Further, it is described according to first image unit and the second image unit shooting angle offset to institute
State the first video and second video carries out synthesis and included:
The first shooting angle picture of first image unit is extracted respectively and the second of second image unit shoots
Angle picture;
Extract the common picture of the first shooting angle picture and the second shooting angle picture;
The first video and second video according to the size of the common picture according to recording sequential storage.
Further, it is described that first image unit will be controlled to be recorded in first recording time section, obtain the
One video includes:
In first recording time section, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute first
It is lasting in recording time section to record, obtain first video;
It is described that second image unit will be controlled to be recorded in second recording time section, obtain the second video bag
Include:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute second
It is lasting in recording time section to record, obtain second video.
Further, the picture of frame of video for judging to collect whether change including:
Two continuous frame of video are selected from the frame of video collected;
Calculate the absolute pixel value difference of the pixel of correspondence position in described two successive video frames;
Calculate the average absolute margin of image element of all pixels in described two successive video frames;
When the average absolute margin of image element is more than threshold value, it is determined that the picture of the frame of video collected changes.
Further, it is described according to first image unit and the second image unit shooting angle offset to institute
State the first video and second video synthesized after also include:
Synthetic video is screened according to default regulation rule, stored.
Another aspect of the present invention also provides a kind of video recording terminal based on dual camera, the video recording based on dual camera
Terminal includes:
First image unit, is configured to record the first video in the first recording time section;
Second image unit, is configured to record the second video in the second recording time section;
The memory for the video recording program based on dual camera that is stored with;
Processor, is configured to perform the video recording program based on dual camera to perform operations described below:
Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;
Control first image unit to be recorded in first recording time section, obtain the first video;
Control second image unit to be recorded in second recording time section, obtain the second video;
According to first image unit and the second image unit shooting angle offset to first video and
Second video is synthesized.
Further, it is described according to first image unit and the second image unit shooting angle offset to institute
State the first video and second video is carried out in synthesis step, it is described based on dual camera that the processor is additionally operable to execution
Video recording program, to realize following steps:
The first shooting angle picture of first image unit is extracted respectively and the second of second image unit shoots
Angle picture;
Extract the common picture of the first shooting angle picture and the second shooting angle picture;
The first video and second video according to the size of the common picture according to recording sequential storage.
Further, it is described that first image unit will be controlled to be recorded in first recording time section, obtain the
In one video step, the processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
In first recording time section, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute first
It is lasting in recording time section to record, obtain first video;
It is described that second image unit will be controlled to be recorded in second recording time section, obtain the second video step
In, the processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute second
It is lasting in recording time section to record, obtain second video.
Further, it is described according to first image unit and the second image unit shooting angle offset to institute
State after the first video and second video carry out synthesis step, the processor is additionally operable to perform described to be taken the photograph based on double
As the video recording program of head, to realize following steps:
Synthetic video is screened according to default regulation rule, stored.
Another aspect of the present invention is also provided to be stored with a kind of computer-readable medium, the computer-readable medium and is based on
The video recording program of dual camera, the video recording program based on dual camera is realized described in any of the above-described when being executed by processor
The kinescope method based on dual camera the step of.
A kind of kinescope method based on dual camera, terminal and computer-readable medium that the present invention is provided, pass through control
First image unit and the second image unit interval shooting video, according to the first image unit and the second image unit shooting angle
Offset is synthesized to video, completes the video recording based on dual camera.Shot compared to existing single camera, the present invention is used
Dual camera interval shooting, synthesis, can protect sensitive component to avoid while the video time based on dual camera is extended
High temperature failure.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of schematic diagram of the video recording terminal based on dual camera in the embodiment of the present invention;
Fig. 4 is the flow chart of the kinescope method based on dual camera in the embodiment of the present invention;
Fig. 5 is the stepwise schematic views of the video recording duration based on dual camera in the embodiment of the present invention;
Fig. 6 carries out the signal of video record for the first image unit in the embodiment of the present invention and the second image unit at times
Figure;
Fig. 7 a~7c is shown respectively the first video and the schematic diagram of the second Video Composition in the embodiment of the present invention;
Fig. 8 is the flow chart of another kinescope method based on dual camera in the embodiment of the present invention;
Fig. 9 is the structural representation of another video recording terminal based on dual camera in the embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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 follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable MediaPlayer, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi modules 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part 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 can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (FrequencyDivision
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data that person stores in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit
103 can also provide performed to mobile terminal 1 00 the related audio output of specific function (for example, call signal reception sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also 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 transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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 ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch behaviour of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel for work
Operation near 1071), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include to touch
Two parts of detection means and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch behaviour
Make the signal brought, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.This
Outside, contact panel 1071 can be realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touching
Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072
Physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation can be included but is not limited to
One or more in bar etc., are not limited specifically herein.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
With by contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, specifically herein not
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, 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 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one 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 whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 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, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
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 here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber 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
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedias
Subsystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
First embodiment of the invention provides a kind of kinescope method based on dual camera, is included applied to as shown in Figure 3
In the terminal 10 of first image unit 31 and the second image unit 32.Wherein, terminal can be implemented in a variety of manners.For example,
Terminal described in the present invention can include such as mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant
(Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP),
The mobile terminals such as guider, wearable device, Intelligent bracelet, pedometer, and numeral TV, desktop computer etc. are fixed
Terminal.First image unit and the second image unit can be implemented in the way of camera.
Specifically, as shown in figure 4, being somebody's turn to do the kinescope method based on dual camera includes:
S401, the video recording duration based on dual camera is divided into multiple adjacent first recording times sections and second when recording
Between section;
Wherein, during video recording based on dual camera a length of recorded video total duration.First recording time section and the second record
Period processed can be the time adjacent segments or spaced time adjacent segments being mutually linked, during each first recording
Between the duration of section can be with identical, can also be different;Equally, the duration of each second recording time section can also be identical, or not
Together.
For example shown in Fig. 5, a length of 2 hours during video recording based on dual camera, in this example, by the video recording based on dual camera
Duration is divided into 4 periods, i.e.,:First first time period Q1 is 20 minutes, and second second time period Q2 is 30 minutes, the
Two first time period Q3 are 25 minutes, and second second time period Q4 is 40 minutes, wherein:Do not have between Q1 and Q2 between the time
Every there is no time interval between Q2 and Q3, the time interval for having 5 minutes between Q3 and Q4.
S402, control first image unit are recorded in first recording time section, obtain the first video;
Specifically, this step includes:
In the first recording time section Q1 and Q3, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute first
It is lasting in recording time section to record, obtain first video.
In this step, when the first video recording based on dual camera starts, first judge whether the picture of frame of video changes, when
When frame of video picture changes, then start video recording, can effectively avoid the redundancy not changed to picture from being based on dual camera
Video recording, be conducive to improve memory space utilization rate.
S403, control second image unit are recorded in second recording time section, obtain the second video;
Specifically, this step includes:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute second
It is lasting in recording time section to record, obtain second video.
In this step, when the second video recording based on dual camera starts, first judge whether the picture of frame of video changes, when
When frame of video picture changes, then start video recording, can effectively avoid the redundancy not changed to picture from being based on dual camera
Video recording, be conducive to improve memory space utilization rate.
The video recording duration based on dual camera is divided into section the first recording time of 4 sections, i.e., two section Q1 and Q3, two sections in Fig. 5
Second recording time section Q2 and Q4, then as shown in fig. 6, step S402 and S403 circulation are carried out twice, by first in the Q1 periods
Image unit 31 carry out the video recording based on dual camera, in the Q1 periods by the first image unit 31 carry out be based on dual camera
Video recording, the video recording based on dual camera carried out by the second image unit 32 in the Q2 periods, in the Q3 periods by the first shooting
Unit 31 carries out the video recording based on dual camera, by the second image unit 32 carries out the record based on dual camera in the Q4 periods
Picture.
S404, regarded to described first according to first image unit and the second image unit shooting angle offset
Frequency and second video are synthesized.
Exemplary, this step includes:
S4041, the first shooting angle picture A for extracting first image unit, as shown in solid box in Fig. 7 a, dotted line frame
For reference picture;
S4042, the second shooting angle picture B for extracting second image unit, as shown in solid box in Fig. 7 b, dotted line frame
For reference picture;
S4043, the common picture AB, such as Fig. 7 c for extracting the first shooting angle picture A and the second shooting angle picture B
Shown in middle solid box, dotted line frame is reference picture;Wherein, common picture AB is to eliminate the first image unit and described second to take the photograph
As the picture of unit photographs offset, i.e. the first shooting angle picture A and the second shooting angle picture B public picture,
Public picture AB can be photographed by the first image unit and the second image unit.
S4044, regarded according to the first video and described second described in recording sequential storage according to the size of the common picture
Frequently.Wherein, order of the recording order i.e. in step S401 and S403 to recording time section Q1, Q2, Q3 and Q4 loop recording.
A kind of kinescope method based on dual camera that the present invention is provided, by controlling the first image unit and the second shooting
Unit interval shoots video, and video is synthesized according to the first image unit and the second image unit shooting angle offset,
Complete the video recording based on dual camera.Shot compared to existing single camera, the present invention is using dual camera interval shooting, conjunction
Into sensitive component being protected to avoid high temperature failure while video time of the extension based on dual camera.
A kind of kinescope method based on dual camera that Fig. 8 provides for second embodiment of the invention, as shown in Fig. 8, the base
Include in the kinescope method of dual camera:
S801, the video recording duration based on dual camera is divided into multiple adjacent first recording times sections and second when recording
Between section.
Specifically, when can be needed according to the video recording duration based on dual camera and recording to video recording based on dual camera
It is long to be segmented, for example, the video recording duration based on dual camera of 3 hours can be divided into:First the first recording time section
T1 is 30 minutes, and first second the first recording time section T2 is 20 minutes, and second the first recording time section T3 is 35 points
Clock, second second the first recording time section T4 is 40 minutes, and the 3rd the first recording time section T5 is 40 minutes, wherein,
Interval 5 minutes, do not have time interval between T1 and T2 between T2 and T3, the time interval for having 5 minutes between T3 and T4, T4 and T5
Between have the time interval of 5 minutes.
S802, the first image unit of control are recorded in first recording time section, obtain the first video;
In this step, in order to avoid video recording of the redundancy based on dual camera not changed to picture, storage is improved empty
Between utilization rate.When the first video recording based on dual camera starts, first judge whether the picture of frame of video changes, work as frame of video
When picture changes, then start video recording.
Specifically, this step includes:
S8021, the first recording time section in, based on the first prefixed time interval gather frame of video;
In the present embodiment, after the first image unit is opened, it can in real time start to gather frame of video, take the photograph due to first
As unit is now not yet turned on recording function, the frame of video of the first image unit collection will be without storage.First image unit
The frame of video now collected can be subsequently carried out after analysis calculating, to judge that what is gathered before unlatching is recorded arrives frame of video
Picture whether change so that come decide whether open recording function.Therefore, in order to reduce follow-up amount of calculation, first
Image unit can gather video when gathering video by setting default time interval, and based on the time interval
Frame;For example, can be set to the time interval 1 second, the first image unit can be adopted when gathering frame of video with each second
Collect a frame video pictures.
Whether the picture for the frame of video that S8022, judgement are collected changes;
In the present embodiment, the first image unit carries out analysis calculating to determine what is collected in the frame of video to collecting
When whether the picture of frame of video changes, the intelligent chip that can be carried by the first image unit is based on default algorithm mould
Type carries out moving object detection to the frame of video collected, can when detecting moving target in the frame of video collected
Changed with the picture for determining frame of video, then open the video recording based on dual camera.Wherein, the first image unit is to collection
To frame of video carry out moving object detection when the algorithm model that is used, in the disclosure without being particularly limited to, this area
The introduction that technical staff may be referred in existing realization is implemented.
In the present embodiment, the first image unit carries out analysis calculating to determine what is collected in the frame of video to collecting
, can also be by carrying out the pixel ratio pair between frame of video to the frame of video collected when whether the picture of frame of video changes
To realize.
When realizing, the first image unit can select two continuous frame of video from the video collected, when selected
After two continuous frame of video, the absolute pixel values of the pixel of correspondence position in the two selected frame of video can be calculated
Difference;For example, it is assumed that the first image unit have selected the first frame and the second frame collected, then selected first frame can be calculated one by one
In pixel and the second frame in correspondence position pixel pixel value difference, then the difference is taken absolute value obtain it is described absolutely
To margin of image element, such as first pixel in first in first frame pixel and the second frame can be carried out when calculating absolute
The calculating of margin of image element, then carries out absolute pixel by the second pixel in the second pixel in the first frame and the second frame
The calculating of value difference, by that analogy, until pixel all in the first frame and the second frame calculates completion;When the absolute pixel
After the completion of value difference is calculated, result of calculation now includes the absolute pixel between pixels all in the first frame and the second frame
Value difference.
Then, can be according to being calculated the absolute pixel value difference between pixel all in the first frame and the second frame
The average absolute margin of image element of all pixels in first frame and the second frame., can be using flat when calculating average absolute margin of image element
The method of average or weighted average.
In the present embodiment, can be with when obtaining the average absolute margin of image element of all pixels in two successive video frames
The average absolute margin of image element is compared with predetermined threshold value, when the average absolute margin of image element is more than threshold value, really
Surely the picture of the frame of video collected changes, conversely, when the average absolute margin of image element is less than or equal to threshold value,
It is determined that the picture of the frame of video collected does not change.
S8023, when the picture for judging the frame of video changes, open the video recording based on dual camera, and
It is lasting in institute's the second recording time section to record, obtain second video.
For example, it is assumed that the first image unit have selected the first frame collected and the second frame as described two continuous videos
Frame, by determining that the image of the two frame of video does not change after calculating analysis, then the first image unit can be pressed again
The second frame and the 3rd frame are selected as described two continuous frame of video according to acquisition order, are analogized with secondary, divided until by calculating
When determining that the image of the frame of video collected changes after analysis, the video recording based on dual camera is opened.Wherein, the threshold value
Size, can be engineering experience value when realizing in the present embodiment without being particularly limited to, can also be according to actual need
Ask and be configured.
S803, control second image unit are recorded in second recording time section, obtain the second video;
In this step, in order to avoid video recording of the redundancy based on dual camera not changed to picture, storage is improved empty
Between utilization rate.When the second video recording based on dual camera starts, first judge whether the picture of frame of video changes, work as frame of video
When picture changes, then start video recording.It is specific only the first image unit in step S602 to be replaced with the second image unit,
It will not be repeated here.
S804, regarded to described first according to first image unit and the second image unit shooting angle offset
Frequency and second video are synthesized.
In this step, the first shooting angle picture A of the first image unit and the second count of the second image unit are extracted respectively
Take the photograph angle picture B;Extract the first shooting angle picture A and the second shooting angle picture B common picture AB.Then, according to described common
Picture AB size is according to the recording video of sequential storage first and the second video.For example, according to common picture AB size according to
The video of sequential storage first and the second video of video recording order T1, T2, T3, T4, T5 based on dual camera.
S805, according to default regulation rule synthetic video screened, stored.
Wherein, screening refers to from existing frame of video, according to default regulation rule selection member-retaining portion frame of video, and incite somebody to action
The video frame deletion of other parts, reduces frame of video total amount, saves memory space.The frame of video refers to least unit in video
Single image picture.One frame is exactly a static picture, and continuous frame just forms dynamic picture, such as video, animation.
Frame number is exactly the frame number that picture is transmitted in one second, it is understood that be refreshing frequency per second;Refresh frame number each second more, institute
The action of display is more smooth.
Default regulation rule in the present embodiment includes:The time interval of frame of video after screening is the frame of video before screening
Time interval integral multiple, using the time interval of the frame of video after screening as the setting after adjustment time interval;Wherein,
Integral multiple is not less than twice.According to the difference of the integral multiple of setting, different degrees of screening can be carried out to frame of video;Work as needs
When retaining many frame of video as far as possible, it is smaller that integral multiple will be set, accordingly, and the time interval of setting can also compare
It is small, it is unlikely to have too big span.
Based on above-mentioned each method embodiment, the present invention also provides a kind of video recording terminal based on dual camera, such as Fig. 9 institutes
Show, the terminal 9 includes:
First image unit 91, is configured to record the first video in the first recording time section;
Second image unit 92, is configured to record the second video in the second recording time section;
The memory 93 for the video recording program based on dual camera that is stored with;
Processor 94, is configured to perform the video recording program based on dual camera to perform operations described below:
Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;
Control first image unit 91 to be recorded in first recording time section, obtain the first video;
Control second image unit 92 to be recorded in second recording time section, obtain the second video;
Regarded according to first image unit 91 and the shooting angle offset of second image unit 92 to described first
Frequency and second video are synthesized.
It is described to control first image unit 91 in first recording time section in a kind of embodiment
It is interior to record, obtain in the first video step, the processor is additionally operable to perform the video recording program based on dual camera, with reality
Existing following steps:
In first recording time section, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute first
It is lasting in recording time section to record, obtain first video;
It is described that second image unit 92 will be controlled to be recorded in second recording time section, obtain the second video step
In rapid, the processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and in institute second
It is lasting in recording time section to record, obtain second video.
It is described to be clapped according to first image unit 91 and second image unit 92 in a kind of embodiment
Take the photograph offset to carry out in synthesis step first video and second video, the processor is additionally operable to perform institute
The video recording program based on dual camera is stated, to realize following steps:
Extract respectively first image unit 91 the first shooting angle picture and second image unit 92 second
Shooting angle picture;
Extract the common picture of the first shooting angle picture and the second shooting angle picture;
The first video and second video according to the size of the common picture according to recording sequential storage.
In a kind of embodiment, whether the picture of frame of video for judging to collect changes in step,
The processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
Two continuous frame of video are selected from the frame of video collected;
Calculate the absolute pixel value difference of the pixel of correspondence position in described two successive video frames;
Calculate the average absolute margin of image element of all pixels in described two successive video frames;
When the average absolute margin of image element is more than threshold value, it is determined that the picture of the frame of video collected changes.
Further, it is described according to first image unit and the second image unit shooting angle offset to institute
State after the first video and second video carry out synthesis step, the processor is additionally operable to perform described to be taken the photograph based on double
As the video recording program of head, to realize following steps:
Synthetic video is screened according to default regulation rule, stored.
Based on each above-mentioned embodiment of the method, and terminal embodiment, the present invention also provides a kind of computer-readable medium, institute
The video recording program based on dual camera that is stored with computer-readable medium is stated, the video recording program based on dual camera is located
The step of reason device realizes the kinescope method based on dual camera described in any of the above-described embodiment when performing.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of kinescope method based on dual camera, it is characterised in that imaged applied to the first image unit and second
In the terminal of unit, the kinescope method based on dual camera includes:
Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;
Control first image unit to be recorded in first recording time section, obtain the first video;
Control second image unit to be recorded in second recording time section, obtain the second video;
According to first image unit and the second image unit shooting angle offset to first video and described
Second video is synthesized.
2. the kinescope method according to claim 1 based on dual camera, it is characterised in that described to be taken the photograph according to described first
As unit and the second image unit shooting angle offset carry out synthesis bag to first video and second video
Include:
Second shooting angle of the first shooting angle picture and second image unit that extract first image unit respectively is drawn
Face;
Extract the common picture of the first shooting angle picture and the second shooting angle picture;
The first video and second video according to the size of the common picture according to recording sequential storage.
3. the kinescope method according to claim 1 or 2 based on dual camera, it is characterised in that described that control is described
First image unit is recorded in first recording time section, and obtaining the first video includes:
In first recording time section, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and record in institute first
Persistently recorded in period, obtain first video;
Described that second image unit will be controlled to be recorded in second recording time section, obtaining the second video includes:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and record in institute second
Persistently recorded in period, obtain second video.
4. the kinescope method according to claim 3 based on dual camera, it is characterised in that what the judgement was collected regards
The picture of frequency frame whether change including:
Two continuous frame of video are selected from the frame of video collected;
Calculate the absolute pixel value difference of the pixel of correspondence position in described two successive video frames;
Calculate the average absolute margin of image element of all pixels in described two successive video frames;
When the average absolute margin of image element is more than threshold value, it is determined that the picture of the frame of video collected changes.
5. the kinescope method according to claim 4 based on dual camera, it is characterised in that described to be taken the photograph according to described first
As unit and the second image unit shooting angle offset carry out synthesis to first video and second video
Also include afterwards:
Synthetic video is screened according to default regulation rule, stored.
6. a kind of video recording terminal based on dual camera, it is characterised in that the video recording terminal based on dual camera includes:
First image unit, is configured to record the first video in the first recording time section;
Second image unit, is configured to record the second video in the second recording time section;
The memory for the video recording program based on dual camera that is stored with;
Processor, is configured to perform the video recording program based on dual camera to perform operations described below:
Video recording duration based on dual camera is divided into multiple adjacent the first recording time sections and the second recording time section;
Control first image unit to be recorded in first recording time section, obtain the first video;
Control second image unit to be recorded in second recording time section, obtain the second video;
According to first image unit and the second image unit shooting angle offset to first video and described
Second video is synthesized.
7. the video recording terminal according to claim 6 based on dual camera, it is characterised in that described to be taken the photograph according to described first
As unit and the second image unit shooting angle offset carry out synthesis step to first video and second video
In rapid, the processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
Second shooting angle of the first shooting angle picture and second image unit that extract first image unit respectively is drawn
Face;
Extract the common picture of the first shooting angle picture and the second shooting angle picture;
The first video and second video according to the size of the common picture according to recording sequential storage.
8. the kinescope method based on dual camera according to claim 6 or 7, it is characterised in that described that control is described
First image unit is recorded in first recording time section, is obtained in the first video step, the processor is additionally operable to hold
The row video recording program based on dual camera, to realize following steps:
In first recording time section, frame of video is gathered based on the first prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and record in institute first
Persistently recorded in period, obtain first video;
It is described that second image unit will be controlled to be recorded in second recording time section, obtain in the second video step,
The processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
In second recording time section, frame of video is gathered based on the second prefixed time interval;
Judge whether the picture of the frame of video collected changes;
When the picture for judging the frame of video changes, the video recording based on dual camera is opened, and record in institute second
Persistently recorded in period, obtain second video.
9. the kinescope method according to claim 8 based on dual camera, it is characterised in that described to be taken the photograph according to described first
As unit and the second image unit shooting angle offset carry out synthesis step to first video and second video
After rapid, the processor is additionally operable to perform the video recording program based on dual camera, to realize following steps:
Synthetic video is screened according to default regulation rule, stored.
10. a kind of computer-readable medium, it is characterised in that be stored with the computer-readable medium based on dual camera
Video recording program, is realized such as any one of claim 1 to 5 institute when the video recording program based on dual camera is executed by processor
The step of kinescope method based on dual camera stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710515398.6A CN107205130B (en) | 2017-06-29 | 2017-06-29 | Video recording method based on double cameras, terminal and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710515398.6A CN107205130B (en) | 2017-06-29 | 2017-06-29 | Video recording method based on double cameras, terminal and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107205130A true CN107205130A (en) | 2017-09-26 |
CN107205130B CN107205130B (en) | 2020-02-11 |
Family
ID=59910620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710515398.6A Active CN107205130B (en) | 2017-06-29 | 2017-06-29 | Video recording method based on double cameras, terminal and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107205130B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246104A (en) * | 2020-01-22 | 2020-06-05 | 维沃移动通信有限公司 | Video recording method and electronic equipment |
US20220272200A1 (en) * | 2020-09-30 | 2022-08-25 | Honor Device Co., Ltd. | Audio processing method and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2429204A2 (en) * | 2010-09-13 | 2012-03-14 | LG Electronics | Mobile terminal and 3D image composing method thereof |
CN103634587A (en) * | 2012-08-22 | 2014-03-12 | 联想(北京)有限公司 | Image processing method and device, and electronic equipment |
CN104601918A (en) * | 2014-12-29 | 2015-05-06 | 小米科技有限责任公司 | Video recording method and device |
CN105554386A (en) * | 2015-12-23 | 2016-05-04 | 努比亚技术有限公司 | Mobile terminal and camera shooting control method thereof |
CN106161943A (en) * | 2016-07-29 | 2016-11-23 | 维沃移动通信有限公司 | A kind of kinescope method and mobile terminal |
-
2017
- 2017-06-29 CN CN201710515398.6A patent/CN107205130B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2429204A2 (en) * | 2010-09-13 | 2012-03-14 | LG Electronics | Mobile terminal and 3D image composing method thereof |
CN103634587A (en) * | 2012-08-22 | 2014-03-12 | 联想(北京)有限公司 | Image processing method and device, and electronic equipment |
CN104601918A (en) * | 2014-12-29 | 2015-05-06 | 小米科技有限责任公司 | Video recording method and device |
CN105554386A (en) * | 2015-12-23 | 2016-05-04 | 努比亚技术有限公司 | Mobile terminal and camera shooting control method thereof |
CN106161943A (en) * | 2016-07-29 | 2016-11-23 | 维沃移动通信有限公司 | A kind of kinescope method and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111246104A (en) * | 2020-01-22 | 2020-06-05 | 维沃移动通信有限公司 | Video recording method and electronic equipment |
US20220272200A1 (en) * | 2020-09-30 | 2022-08-25 | Honor Device Co., Ltd. | Audio processing method and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN107205130B (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107094236A (en) | Panorama shooting method, mobile terminal and computer-readable recording medium | |
CN107317896A (en) | A kind of Double-camera device and mobile terminal | |
CN107613379A (en) | A kind of switching method of network connection, terminal and readable storage medium storing program for executing | |
CN107317963A (en) | A kind of double-camera mobile terminal control method, mobile terminal and storage medium | |
CN107820016A (en) | Shooting display methods, double screen terminal and the computer-readable storage medium of double screen terminal | |
CN107463481A (en) | Data interactive method, mobile terminal and storage medium | |
CN107133939A (en) | A kind of picture synthesis method, equipment and computer-readable recording medium | |
CN107613489A (en) | A kind of wireless charging method, hotspot equipment, terminal and storage medium | |
CN108055411A (en) | Flexible screen display methods, mobile terminal and computer readable storage medium | |
CN107566635A (en) | Screen intensity method to set up, mobile terminal and computer-readable recording medium | |
CN107465869A (en) | A kind of focus adjustment method and terminal | |
CN107038245A (en) | Page switching method, mobile terminal and storage medium | |
CN107124552A (en) | A kind of image pickup method, terminal and computer-readable recording medium | |
CN107592460A (en) | A kind of video recording method, equipment and computer-readable storage medium | |
CN108184051A (en) | A kind of main body image pickup method, equipment and computer readable storage medium | |
CN107404618A (en) | A kind of image pickup method and terminal | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107705247A (en) | A kind of method of adjustment of image saturation, terminal and storage medium | |
CN107483804A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN107608613A (en) | A kind of method and terminal for preventing maloperation | |
CN108170348A (en) | A kind of thumbnail method for previewing, equipment and computer readable storage medium | |
CN108055463A (en) | Image processing method, terminal and storage medium | |
CN107241504A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107613200A (en) | A kind of focus adjustment method, equipment and computer-readable recording medium | |
CN107239218A (en) | Control method, mobile terminal and the computer-readable recording medium of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |