CN109743505A - Video capture method, apparatus and electronic equipment based on laser ranging - Google Patents
Video capture method, apparatus and electronic equipment based on laser ranging Download PDFInfo
- Publication number
- CN109743505A CN109743505A CN201910072201.5A CN201910072201A CN109743505A CN 109743505 A CN109743505 A CN 109743505A CN 201910072201 A CN201910072201 A CN 201910072201A CN 109743505 A CN109743505 A CN 109743505A
- Authority
- CN
- China
- Prior art keywords
- laser
- current time
- laser range
- range sensor
- previous moment
- 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
Abstract
The application proposes a kind of video capture method, apparatus, electronic equipment and storage medium based on laser ranging, belongs to technical field of imaging.Wherein, this method comprises: during video capture, obtain the distance value that first object laser range sensor exports respectively at current time and previous moment in laser ranging module, wherein, it include multiple laser range sensors in laser ranging module, first object laser range sensor is the corresponding laser range sensor of preset trigger position;Judge whether the difference for the distance value that first object laser range sensor exports at current time with previous moment respectively is greater than preset value;If so, being adjusted camera module by the first shooting frame rate to the second shooting frame rate.Video capture method by this based on laser ranging as a result, can accurately control the adjustment opportunity of camera module shooting frame rate, improve the quality of the video capture comprising a variety of shooting frame rates, improve user experience.
Description
Technical field
This application involves technical field of imaging more particularly to a kind of video capture method, apparatus based on laser ranging, electricity
Sub- equipment and storage medium.
Background technique
With the development of science and technology, various electronic equipments (such as mobile phone, tablet computer) are more more and more universal.Most mobile phones
Camera is all built-in with tablet computer, and with the enhancing of mobile terminal processing capacity and the development of camera technology,
The performance of built-in camera is stronger and stronger, and the quality for shooting image is also higher and higher.Present electronic device is simply again
Easy to carry, people are taken pictures using electronic equipments such as mobile phone and tablet computers in daily life has become a kind of normality.
With constantly improve for electronic equipment shooting function, user can use the electronic equipment shooting equipped with camera
Slow motion video, still, due to the limitation of the performance of sensitive chip itself, the hardware performances such as memory of electronic equipment, usually only
The slow motion video of very short a period of time can be shot.
In the related technology, usually by manually according to shooting demand, manually controlling electronic equipment and entering slow motion shooting
Mode carries out slow motion video shooting to reference object.But the mode of this slow motion video shooting, if user's control is electric
The opportunity that sub- equipment enters slow motion screening-mode is bad, easily leads to the slow motion video effect obtained and second-rate, shadow
User experience is rung.
Summary of the invention
Video capture method, apparatus, electronic equipment and the storage medium based on laser ranging that the application proposes, for solving
Certainly in the related technology, in such a way that manual operation carries out slow motion video shooting, if user's control electronic equipment enters slow motion
The opportunity for making screening-mode is bad, easily leads to the slow motion video effect and second-rate obtained, affects user experience
Problem.
The video capture method based on laser ranging that the application one side embodiment proposes, comprising: in video capture mistake
Cheng Zhong, obtain first object laser range sensor in laser ranging module current time and previous moment export respectively away from
From value, wherein include multiple laser range sensors, the first object laser range sensor in the laser ranging module
For the corresponding laser range sensor of preset trigger position;Judge the first object laser range sensor at current time
Whether the difference of the distance value exported respectively with previous moment is greater than preset value;If so, by the camera module by first count
Frame per second is taken the photograph to adjust to the second shooting frame rate.
The video capture device based on laser ranging that the application another aspect embodiment proposes, comprising: obtain module, use
During video capture, obtain in laser ranging module first object laser range sensor current time and it is previous when
Carve the distance value exported respectively, wherein include multiple laser range sensors, the first object in the laser ranging module
Laser range sensor is the corresponding laser range sensor of preset trigger position;Judgment module, for judging described first
Whether target laser distance measuring sensor is greater than preset value in the difference for the distance value that current time and previous moment export respectively;It adjusts
Mould preparation block, for if so, being adjusted the camera module by the first shooting frame rate to the second shooting frame rate.
The application another further aspect embodiment propose electronic equipment comprising: including laser ranging module, camera module,
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that the place
It manages when device executes described program and realizes the video capture method based on laser ranging as previously described.
It wherein, include multiple laser range sensors in the laser ranging module.
The computer readable storage medium that the application another further aspect embodiment proposes, is stored thereon with computer program,
It is characterized in that, the video capture method based on laser ranging as previously described is realized when described program is executed by processor.
The computer program that the another aspect embodiment of the application proposes, when which is executed by processor, to realize this Shen
It please the video capture method based on laser ranging described in embodiment.
It is video capture method, apparatus provided by the embodiments of the present application based on laser ranging, electronic equipment, computer-readable
Storage medium and computer program can obtain first object laser ranging in laser ranging module during video capture
The distance value that sensor exports respectively at current time and previous moment, wherein include multiple Laser Measurings in laser ranging module
Away from sensor, first object laser range sensor is the corresponding laser range sensor of preset trigger position, and then the
It, will when the difference for the distance value that one target laser distance measuring sensor exports at current time with previous moment respectively is greater than preset value
Camera module is adjusted by the first shooting frame rate to the second shooting frame rate.As a result, by according to first object laser range sensor
In the distance value that current time and previous moment export respectively, when determining that reference object reaches the starting of preset trigger position
It carves, and when reference object reaches preset trigger position, adjusts the shooting frame rate of camera module, taken the photograph so as to accurately control
As the adjustment opportunity of mould group shooting frame rate, the quality of the video capture comprising a variety of shooting frame rates is improved, user's body is improved
It tests.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the video capture method based on laser ranging provided by the embodiment of the present application;
Fig. 2-1 is a kind of ranging schematic diagram of multiple spot laser ranging module provided by the embodiment of the present application;
Fig. 2-2 be according to first object laser range sensor at a distance from current time exports respectively with previous moment
Value, the schematic diagram that the shooting frame rate of camera module is adjusted;
Fig. 3 is the process signal of video capture method of the another kind based on laser ranging provided by the embodiment of the present application
Figure;
Fig. 4-1 is the schematic diagram for the movement for determining that reference object executes between current time and previous moment;
Fig. 4-2 is the schematic diagram for realizing slow motion video shooting;
Fig. 5 is the process signal of another video capture method based on laser ranging provided by the embodiment of the present application
Figure;
Fig. 6 is the position of reference object different moments for being kept in motion in shooting picture relative to each laser ranging
The schematic diagram of the position of sensor instrument distance point;
Fig. 7 is the process signal of another video capture method based on laser ranging provided by the embodiment of the present application
Figure;
Fig. 8 is the schematic diagram for the distance that reference object moves between two moment;
Fig. 9 is a kind of structural schematic diagram of the video capture device based on laser ranging provided by the embodiment of the present application;
Figure 10 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present application;
Figure 11 is the structural schematic diagram of another kind electronic equipment provided by the embodiment of the present application.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element.The embodiments described below with reference to the accompanying drawings are exemplary,
It is intended for explaining the application, and should not be understood as the limitation to the application.
The embodiment of the present application is directed in the related technology, in such a way that manual operation carries out slow motion video shooting, if with
The opportunity that family controlling electronic devices enters slow motion screening-mode is bad, easily leads to the slow motion video effect and quality obtained
It is poor, the problem of affecting user experience, propose a kind of video capture method based on laser ranging.
Video capture method provided by the embodiments of the present application based on laser ranging, can obtain during video capture
The distance value that first object laser range sensor exports respectively at current time and previous moment in laser ranging module is taken,
In, it include multiple laser range sensors in laser ranging module, first object laser range sensor is preset trigger bit
Corresponding laser range sensor is set, and then defeated at current time and previous moment difference in first object laser range sensor
When the difference of distance value out is greater than preset value, camera module is adjusted by the first shooting frame rate to the second shooting frame rate.As a result,
By the distance value exported respectively according to first object laser range sensor at current time and previous moment, determine to shoot
Object reaches the initial time of preset trigger position, and when reference object reaches preset trigger position, adjustment camera shooting mould
The shooting frame rate of group improves so as to accurately control the adjustment opportunity of camera module shooting frame rate comprising a variety of photographed frames
The quality of the video capture of rate, improves user experience.
Below with reference to the accompanying drawings the video capture method, apparatus to provided by the present application based on laser ranging, electronic equipment, deposit
Storage media and computer program are described in detail.
Fig. 1 is a kind of flow diagram of the video capture method based on laser ranging provided by the embodiment of the present application.
As shown in Figure 1, the video capture method based on laser ranging of being somebody's turn to do, comprising the following steps:
Step 101, it during video capture, obtains first object laser range sensor in laser ranging module and is working as
The distance value that preceding moment and previous moment export respectively, wherein include that multiple laser rangings sense in the laser ranging module
Device, the first object laser range sensor are the corresponding laser range sensor of preset trigger position.
In the embodiment of the present application, the trigger position of triggering video capture frame per second adjustment can be preset, and according to preset
First object laser range sensor in the corresponding laser ranging module of trigger position is distinguished at current time and previous moment
The distance value of output, judges whether reference object reaches preset trigger position, and is detecting that it is default that reference object reaches
Trigger position when, adjust the shooting frame rate of camera module.
It, can be with using the laser ranging module including multiple laser range sensors as a kind of possible implementation
The distance between camera module and reference object value are measured, and by obtaining each laser range sensor in laser ranging module
In the distance value that different moments export respectively, it can determine that the distance between reference object and camera module change, i.e. shooting pair
The motion state of elephant.
It should be noted that laser ranging module can emit laser by light source, and light source is issued by modulator
Laser carry out amplitude modulation, generate modulation light, later by laser range sensor obtain through reference object reflect return
Modulation light, and the phase difference that modulation light round trip generates is determined, and then according to the wavelength of modulation light and the phase of determination
Difference determines the distance value that the phase difference represents and output, that is, determines and export shooting the distance between object and camera module
Value.
Fig. 2-1 is a kind of ranging schematic diagram of multiple spot laser ranging module provided by the embodiment of the present application.As Fig. 2-1 institute
Show, include 16 laser range sensors in laser ranging module, each laser range sensor corresponds to one in space
Point distance measurement.To which the laser ranging module (i.e. multiple spot laser ranging module) including multiple laser range sensors can measure
The distance between multiple points and camera module in space, each of Fig. 2-1 number are each laser range sensor a certain
Moment, the distance between the front obstacle measured and camera module value.
In actual use, the quantity and arrangement mode for the laser range sensor for including in laser ranging module can roots
Default according to actual needs, the embodiment of the present application does not limit this, for example, the quantity of laser range sensor can be 16,
And the alignment placement in the way of 4 laser range sensors of every row.
In a kind of possible way of realization of the embodiment of the present application, Laser Measuring can be controlled during video capture
The distance between reference object and camera module value are measured at predetermined intervals away from mould group, and obtain first object Laser Measuring
Away from the distance value that sensor exports respectively at current time and previous moment, to be worked as according to first object laser range sensor
The distance value that preceding moment and previous moment export respectively, judges the opposite position of reference object Yu first object laser range sensor
It sets.
It should be noted that the time of control laser ranging module measurement the distance between reference object and camera module value
Interval can be preset as the value of very little.In actual use, between control laser ranging module measurement reference object and camera module
Distance value time interval, can preset according to actual needs, the embodiment of the present application does not limit this.For example, preset
The order of magnitude of time interval can be Microsecond grade or picosecond etc..
Further, first object laser range sensor can be according to preset trigger position and preset laser
Transition matrix between ranging mould group and camera module determines.It is above-mentioned i.e. in a kind of possible way of realization of the embodiment of the present application
Before step 101, can also include:
According to the transition matrix between preset laser ranging module and camera module, determine in the laser ranging module,
First object laser range sensor corresponding with trigger position preset in the camera module.
It should be noted that the transition matrix between laser ranging module and camera module, can be laser ranging module and sets
After meter, production and calibration are completed, i.e., after the position of each laser range sensor determines in laser ranging module, pass through test
Determining.
As a kind of possible implementation, each laser range sensor pair in laser ranging module can be controlled first
Tested region carries out laser scanning, obtains the point cloud data of laser ranging module, and it is anti-according to tested region to control camera module
The laser signal penetrated obtains the framing image data of tested region, and then is sensed according to laser ranging each in laser ranging module
Position of the corresponding laser spot of device in the framing image data of camera module, progress coordinates computed conversion parameter, and according to
The coordinate transformation parameter projects the point cloud data of laser ranging module into the framing image data of camera module, to be swashed
Transition matrix between ligh-ranging mould group and camera module.
It should be noted that tested region is that laser ranging module carries out a default size caused by laser scanning
The maximum frame region of the square area or laser ranging module scanning field of view of rectangular area or default size.It is right
Tested region carries out laser scanning, including following scan method: method, the method for line scanning, square scanning side of spot scan
Method etc..Wherein, spot scan method refers to four points of scanning every time, is scanned from the outermost of screen to the centre of screen;Line
The method of scanning refers to one horizontal line of scanning or a vertical line every time, from the another side of screen scanned on one side to screen;Just
Rectangular scan method refers to the square that one four edges frame of scanning surrounds every time, first scans in screen outermost maximum square
The size of square is gradually reduced in shape, until smallest square of the scanning to the centre of screen, or until screen is arrived in scanning
An intermediate point.
Optionally, in the calibration of camera module and laser ranging module, the laser that camera module is used to capture transmitting shines
Bright position, for Calibration of Laser ranging mould group, using scannings sides such as above-described spot scan, line scanning, square scannings
Formula realizes system calibrating.Before calibration, laser ranging module scanning can produce a fixed figure, for example rectangle or
Other fix figure, this figure can be the maximum frame of laser ranging module scanning field of view.Existed by observing laser spot
Position on camera module image, adjustment laser ranging module accurately emits visual field frame, to obtain laser ranging module
The transition matrix between camera module.For example, transition matrix can be following form between laser ranging module and camera module:
{0 0 0 1 0 0 2 0 3 0 0 4
……
……
}
Wherein, every a line in transition matrix represents the pixel of a line in camera module image.0 represents camera module figure
The pixel as in does not have laser point to fall into, and 1 represents the corresponding laser point of first laser range sensor, and 2 represent second
The corresponding laser point of a laser range sensor, and so on.In laser ranging module real time execution, laser pickoff will be adopted
The parameter informations such as the distance of reference object, time, light intensity are put into transition matrix in the shooting picture collected, are formed and camera shooting mould
The point cloud data for the laser ranging module that group has merged.
It is understood that can directly according to preset trigger position and be preset in known preset trigger position
Laser ranging module and camera module between transition matrix, determine preset trigger position corresponding member in transition matrix
Element, so according to preset trigger position in transition matrix corresponding element, determine preset trigger position corresponding
One target laser distance measuring sensor.
Further, preset trigger position can be the default parameters in corresponding screening-mode, be also possible to user
According to actual photographed demand, input in real time.I.e. in a kind of possible way of realization of the embodiment of the present application, above-mentioned steps 101
Before, can also include:
Obtain the preset trigger position that user inputs at image preview interface.
As a kind of possible implementation, user can be allowed according to shooting demand, led to before video capture starts
The input unit (touch screen, mouse, keyboard etc.) for crossing electronic equipment, inputs preset trigger position in image preview interface,
To meet the individual demand of user, and improve usability.Therefore, it can be inputted in image preview interface with real-time detection user
Instruction, and when detecting user in image preview interface and inputting the instruction of default trigger position, the finger that is inputted from user
In order, the preset trigger position that user inputs in image preview interface is obtained.
As a kind of possible implementation, preset trigger position can also be preset, i.e., by preset triggering
Acquisition parameters of the position as corresponding screening-mode are preset in the electronic device.For example, the camera module of electronic equipment has slowly
Action video shooting function, then can be in slow motion screening-mode, using preset trigger position as slow motion screening-mode
Acquisition parameters, i.e. user, can be directly from the acquisition parameters of slow motion screening-mode after selecting slow motion screening-mode
In, get preset trigger position.
Step 102, judge what the first object laser range sensor exported respectively at current time and previous moment
Whether the difference of distance value is greater than preset value, if so, executing step 103;Otherwise, 101 are returned to step.
Step 103, the camera module is adjusted by the first shooting frame rate to the second shooting frame rate.
It in the embodiment of the present application, can be according to first object laser range sensor at current time and previous moment point
The distance value not exported, determines whether reference object current time reaches the corresponding ranging of first object laser range sensor
Point.Specifically, may determine that the distance value that first object laser range sensor exports respectively at current time and previous moment
Difference whether be greater than preset value, if more than preset value, then can determine that reference object reaches first object at current time
The corresponding point distance measurement of laser range sensor, i.e. reference object reach preset trigger position at current time, then can incite somebody to action
The shooting frame rate of camera module is adjusted by the first shooting frame rate to the second shooting frame rate;If first object laser range sensor exists
The difference for the distance value that current time and previous moment export respectively can then determine reference object current no more than preset value
Moment does not reach the corresponding point distance measurement of first object laser range sensor, i.e. reference object does not reach preset at current time
Trigger position then without being adjusted the shooting frame rate of camera module, and continues to obtain first object laser range sensor
In the distance value that subsequent time and current time export respectively, whether reached with to judge reference object in subsequent time preset
Trigger position.
It should be noted that if the distance value that first object laser range sensor at a time exports is infinity,
It can then determine that reference object does not reach the corresponding point distance measurement of first object laser range sensor at the moment;If first object
The distance value that laser range sensor at a time exports is finite value, then can determine that reference object reaches at the moment
The corresponding point distance measurement of first object laser range sensor.Therefore, if first object laser range sensor is defeated at current time
Distance value out is finite value, is infinity in the distance value of previous moment output, then can determine reference object when current
First object laser range sensor corresponding point distance measurement is reached exactly to quarter.Therefore, preset value can be a very big value,
To guarantee distance value that first object laser ranging module exports respectively in current time and previous moment, one is finite value,
One is infinity.
In the embodiment of the present application, the shooting that the adjustment mode of camera module shooting frame rate can be realized according to actual needs
Effect determines.For example, to realize slow motion video shooting, and the first shooting frame rate is identical as the play frame rate of video, then may be used
To determine that the second shooting frame rate is greater than the first shooting frame rate, i.e., the shooting frame rate of camera module is adjusted to biggish value;To
Realize fast motion video capture, and the first shooting frame rate is identical as the play frame rate of video, then can determine the second shooting frame rate
Less than the first shooting frame rate, i.e., the shooting frame rate of camera module is adjusted to lesser value.
For example, as shown in Fig. 2-2, the position of the corresponding first object laser range sensor of preset trigger position
For a, current time is the T1 moment, and previous moment is the T0 moment, and preset value 10000, the shooting effect for needing to realize is slow motion
It shoots.The distance value that first object laser range sensor exports at the T0 moment is infinity, i.e., reference object is at the T0 moment
A point is not reached, is 100 in the distance value that the T1 moment exports, i.e. reference object reaches a point at the T1 moment, then can determine the
One target laser distance measuring sensor is greater than preset value in the difference of current time T1 and previous moment the T0 distance value exported respectively,
The shooting frame rate of camera module can be adjusted to the second shooting frame rate, and the second shooting frame rate is greater than the broadcasting frame of video
Rate.
Video capture method provided by the embodiments of the present application based on laser ranging, can obtain during video capture
The distance value that first object laser range sensor exports respectively at current time and previous moment in laser ranging module is taken,
In, it include multiple laser range sensors in laser ranging module, first object laser range sensor is preset trigger bit
Corresponding laser range sensor is set, and then defeated at current time and previous moment difference in first object laser range sensor
When the difference of distance value out is greater than preset value, camera module is adjusted by the first shooting frame rate to the second shooting frame rate.As a result,
By the distance value exported respectively according to first object laser range sensor at current time and previous moment, determine to shoot
Object reaches the initial time of preset trigger position, and when reference object reaches preset trigger position, adjustment camera shooting mould
The shooting frame rate of group improves so as to accurately control the adjustment opportunity of camera module shooting frame rate comprising a variety of photographed frames
The quality of the video capture of rate, improves user experience.
In a kind of possible way of realization of the embodiment of the present application, preset triggering can also be reached according to reference object
Performed movement when position determines the second shooting frame rate of camera module.
Below with reference to Fig. 3, another video capture method based on laser ranging provided by the embodiments of the present application is carried out
It further illustrates.
Fig. 3 is the process signal of video capture method of the another kind based on laser ranging provided by the embodiment of the present application
Figure.
As shown in figure 3, the video capture method based on laser ranging of being somebody's turn to do, comprising the following steps:
Step 201, it during video capture, obtains first object laser range sensor in laser ranging module and is working as
The distance value that preceding moment and previous moment export respectively, wherein include that multiple laser rangings sense in the laser ranging module
Device, the first object laser range sensor are the corresponding laser range sensor of preset trigger position.
Step 202, judge what the first object laser range sensor exported respectively at current time and previous moment
Whether the difference of distance value is greater than preset value, if so, executing step 203;Otherwise, 201 are returned to step.
The specific implementation process and principle of above-mentioned steps 201-202, is referred to the detailed description of above-described embodiment, herein
It repeats no more.
Step 203, according to each laser range sensor of other in the laser ranging module the current time with before
The distance value that one moment exported respectively determines the movement that reference object executes between the current time and previous moment.
In a kind of possible way of realization of the embodiment of the present application, it can also reach determining reference object at current time
When preset trigger position, the movement executed between current time and previous moment according to reference object determines camera module
The second shooting frame rate.Therefore, other in available laser ranging module in addition to first object laser range sensor
The distance value that laser range sensor exports respectively at continuous multiple moment, with determine reference object current time and it is previous when
The movement executed between quarter.
As a kind of possible implementation, can first according to other each laser range sensors at current time with before
The distance value that one moment exported respectively determines that distance value is less than threshold value and each other current time of difference within a preset range
Multiple third target laser distance measuring sensors corresponding with previous moment, and then distinguished according to current time and previous moment
The position of corresponding multiple third target laser distance measuring sensors, determines reference object in the appearance at current time and previous moment
State.
For example, as shown in Fig. 4-1 left figure, in previous moment T0, laser range sensor 6,7,10,11,14,15 is worked as
The distance value of preceding output is respectively less than threshold value (as finite value), and each other difference within a preset range, i.e. laser range sensor
6,7,10,11,14,15 distance values that currently export are more consistent, the distance value currently exported with other laser range sensors
There is significant difference, therefore, laser range sensor 6,7,10,11,14,15 can be determined as the corresponding third of previous moment T0
Target laser distance measuring sensor, later can according to the corresponding third target laser distance measuring sensor of previous moment T0 6,7,10,
11, the location of in 14,15 each laser range sensor in laser ranging module, determine reference object when previous
The posture for carving the T0 moment is posture 1.
As shown in Fig. 4-1 right figure, in current time T1, laser range sensor 3,6,7,10,11,14,15 is currently exported
Distance value be respectively less than threshold value (as finite value), and each other difference within a preset range, i.e., laser range sensor 3,6,7,
10,11,14,15 distance values that currently export are more consistent, have with the distance value that other laser range sensors currently export bright
Aobvious difference, and between previous moment T0 and current time T1, laser range sensor 8 and 12 may export limited distance
Value, it is possible to it can detect the movement of reference object, it therefore, can be true by laser range sensor 3,6,7,10,11,14,15
It is set to the corresponding third target laser distance measuring sensor of current time T1, it later can be according to the corresponding third mesh of current time T1
Mark the position locating in each laser range sensor in laser ranging module of laser range sensor 3,6,7,10,11,14,15
Set, determine reference object current time T1 posture be posture 2.
In the embodiment of the present application, determine reference object after the posture of current time and previous moment, it can
Posture according to reference object at current time and previous moment determines the reference object between current time and previous moment
The movement of execution.
For example, as shown in Fig. 4-1 left figure, determine reference object previous moment T0 posture be posture 1, such as scheme
Shown in 4-1 right figure, determine that reference object in the posture of current time T1 is posture 2, then it can be true according to posture 1 and posture 2
It makes, the movement that reference object executes between previous moment T0 and current time T1 is " raising one's hand ".
It should be noted that the example above is exemplary only, the limitation to the application cannot be considered as.In actual use,
Reference object can be preset according to actual needs in the posture of current time and previous moment and at current time and previous moment
Between the mapping relations of movement that execute, the embodiment of the present application do not limit this.
Step 204, the movement executed between the current time and previous moment according to the reference object determines institute
State the second shooting frame rate.
Step 205, the camera module is adjusted by the first shooting frame rate to the second shooting frame rate.
As a kind of possible implementation, it can be acted with goal-selling and target action is corresponding with shooting frame rate
Relationship.After determining movement that reference object executes between current time and previous moment, that is, it can determine whether preset mesh
In mark movement, if including the movement that reference object executes between current time and previous moment, if including, further root
According to the corresponding relationship of target action and shooting frame rate, the movement that reference object executes between current time and previous moment is determined
Corresponding shooting frame rate, and the shooting frame rate determined is determined as the second shooting frame rate;If not wrapped in preset target action
The movement that reference object executes between current time and previous moment is included, then the second shooting frame rate is in current screening-mode
Second shooting frame rate of default.
It in the embodiment of the present application, can be by the bat of camera module after the second shooting frame rate for determining camera module
Frame per second is taken the photograph to adjust from the first shooting frame rate to the second shooting frame rate.
It further, can also be by the shooting frame rate of camera module from second after being completed to specific movement shooting
Shooting frame rate is adjusted to the first shooting frame rate.I.e. in a kind of possible way of realization of the embodiment of the present application, above-mentioned steps 205 it
Afterwards, can also include:
Monitoring the first object laser range sensor at a distance from current time exports respectively with previous moment
When the difference of value is greater than the preset value again, the camera module is adjusted by second shooting frame rate to the first count
Take the photograph frame per second.
It is understood that when first object laser range sensor current time and previous moment export respectively away from
When difference from value is greater than preset value again, then can determine first object laser range sensor current time export away from
It is infinity from value, i.e., first object laser range sensor can't detect reference object at current time, so as to true
Determine reference object and passed fully through preset trigger position, it can the shooting frame rate of camera module is adjusted to original shooting
Frame per second.
For example, Fig. 4-2 is the schematic diagram for realizing slow motion video shooting.As shown in the Fig. 4-2, preset trigger position
The position of corresponding first object laser range sensor be a, the T1 moment after the T0 moment, the T2 moment after the T1 moment,
Preset value is 10000, and the shooting effect for needing to realize is slow motion shooting.First object laser range sensor is defeated at the T0 moment
Distance value out is infinity, i.e., reference object does not reach a point at the T0 moment, is 100 in the distance value that the T1 moment exports, that is, claps
It takes the photograph object and reaches a point at the T1 moment, then can determine that first object laser range sensor is distinguished at T1 moment and T0 moment
The difference of the distance value of output is greater than preset value, it can the shooting frame rate of camera module is adjusted to the second shooting frame rate, and
Second shooting frame rate is greater than the play frame rate of video;When reaching the T2 moment, first object laser range sensor is defeated at the T2 moment
Distance value out is infinity, i.e., reference object can then determine first object laser ranging at the T2 moment completely by a point
Sensor is greater than preset value in the difference for the distance value that T2 moment and T1 moment export respectively, it can by the shooting of camera module
Frame per second is adjusted to the first shooting frame rate, i.e., the shooting frame rate of camera module is adjusted back to original frame per second.
Video capture method provided by the embodiments of the present application based on laser ranging, can obtain during video capture
The distance value that first object laser range sensor exports respectively at current time and previous moment in laser ranging module is taken, and
It is greater than preset value in the difference for the distance value that first object laser range sensor exports at current time with previous moment respectively
When, it is exported respectively at the current time with previous moment according to each laser range sensor of other in the laser ranging module
Distance value, determine the movement that reference object executes between current time and previous moment, worked as later according to reference object
The movement executed between preceding moment and previous moment determines the second shooting frame rate, and then by camera module by the first shooting frame rate
It adjusts to the second shooting frame rate.Reference object is being determined when reaching preset trigger position at current time as a result, according to shooting
The movement that object executes between current time and previous moment, determines the second shooting frame rate, to can not only accurately control
The adjustment opportunity of camera module shooting frame rate improves the quality of the video capture comprising a variety of shooting frame rates, and can root
The shooting that different shooting frame rate videos are realized according to the movement that reference object executes, improves the diversity of visual form, further
Improve user experience.
In a kind of possible way of realization of the embodiment of the present application, it can also be determined according to the movement speed of reference object
Second shooting frame rate of camera module, to further increase shooting effect.
Below with reference to Fig. 5, another video capture method based on laser ranging provided by the embodiments of the present application is carried out
It further illustrates.
Fig. 5 is the process signal of another video capture method based on laser ranging provided by the embodiment of the present application
Figure.
As shown in figure 5, the video capture method based on laser ranging of being somebody's turn to do, comprising the following steps:
Step 301, during video capture, obtain laser ranging module in first object laser range sensor and its
The distance value that his each laser range sensor exports respectively at current time and previous moment.
Step 302, judge what the first object laser range sensor exported respectively at current time and previous moment
Whether the difference of distance value is greater than preset value, if so, executing step 303;Otherwise, 301 are returned to step.
The specific implementation process and principle of above-mentioned steps 301-302, is referred to the detailed description of above-described embodiment, herein
It repeats no more.
Step 303, according to each laser range sensor of other in the laser ranging module the current time with before
Time interval between distance value and the current time and previous moment that one moment exported respectively, determines reference object
Movement speed.
In the embodiment of the present application, can according to laser range sensors multiple in laser ranging module current time with
Time interval between distance value and current time and previous moment that previous moment exports respectively, determines reference object
Movement speed.
Optionally, laser ranging can be controlled after user starts camera module, before shooting to reference object
At predetermined intervals, measurement the distance between reference object and camera module are worth mould group, later according to each laser ranging
Time interval of the sensor between the distance value that each moment exports respectively and each ranging moment, determines reference object
Movement speed.
It further, can be according to each laser range sensor at a distance from current time exports respectively with previous moment
Value, the position where determining reference object current time and previous moment respectively, and then according to reference object current time with
Position where previous moment difference and the time interval between current time and previous moment, determine the shifting of reference object
Dynamic speed.I.e. in a kind of possible way of realization of the embodiment of the present application, above-mentioned steps 302 may include:
The distance value of the distance value, previous moment output that are currently exported according to each laser range sensor, determines
Reference object is in the position at described two moment;
Position and the time interval at described two moment according to the reference object at described two moment, determine institute
State the movement speed of reference object.
In the embodiment of the present application, it can control laser ranging module and measure reference object and camera module at multiple moment
The distance between, and according to the multiple laser range sensors for including in laser ranging module at current time and previous moment point
The distance value not exported, the position where determining reference object at current time with previous moment difference, and then according to shooting
Position where two moment difference of object, determines whether reference object has occurred the movement speed of movement and reference object.
Optionally, the reference object in the embodiment of the present application, can be with reference object each in the position at each moment
Moment between camera module at a distance from measure.Specifically, can be sensed according to each laser ranging of synchronization in the present embodiment
The distance value that device exports respectively determines reference object in the position at the moment, it can senses current time each laser ranging
The mean value of the limited distance value (not being infinitely great distance value) of device output, i.e. current time corresponding each first object Laser Measuring
The mean value of the distance value exported away from sensor at current time is determined as reference object in the position at current time, i.e. shooting pair
As at a distance from current time is between camera module, so that it is determined that reference object is in the position at current time out;Correspondingly, can be with
In the same way, determine reference object in the position of previous moment.Later can according to reference object current time with
Position where previous moment difference, determines the position difference of reference object between current time and previous moment, and then will work as
The ratio of time interval between preceding moment and previous moment between the position difference and current time and previous moment of reference object, really
It is set to the movement speed of reference object.
It for example, include 4 laser range sensors A, B, C, D in laser ranging module, current time T1 is previous
Moment is T0, the time interval at T1 moment and T0 moment is t1=T1-T0, laser range sensor A, B, C, the D got exist
The distance value that the T0 moment exports respectively is SA0、SB0SC0、SD0, it is S in the distance value that the T1 moment exports respectivelyA1、SB1SC1、SD1, and
Each laser range sensor is finite value in the distance value that each moment exports, therefore reference object is S in the position at T0 moment0
=(SA0+SB0+SC0+SD0)/4 are S in the position at T1 moment1=(SA1+SB1+SC1+SD1)/4, reference object is in T0 moment and T1
Movement speed between moment is V=(S1-S0)/t1, i.e. the movement speed of reference object is V=(S1-S0)/t1。
As a kind of possible implementation, reference object, can also be with reference object or not the position at each moment
Position in shooting picture is measured in the same time.So as to according to each laser range sensor current time and it is previous when
The distance value exported respectively is carved, determines reference object in position (the relatively each laser ranging of reference object at the two moment
The position of sensor), and then according to the time interval at the two moment, determine the movement speed of shooting object.
For example, Fig. 6 be reference object different moments for being kept in motion the position in shooting picture relative to
The schematic diagram of the position of each laser range sensor point distance measurement.As shown in fig. 6, including 16 laser rangings in laser ranging module
Sensor, each grid in figure represent the point distance measurement of a laser range sensor, and the number in grid respectively represents the survey
Away from the serial number for putting corresponding laser range sensor, at the t0 moment, laser range sensor 4,7,8,11,12,16 export away from
It is finite value from value, the distance value of other laser range sensors output is infinity;At the t1 moment, laser range sensor 3,
6, the distance value of 7,10,11,15 outputs is finite value, and the distance value of other laser range sensors output is infinity;In t2
Moment, the distance value that laser range sensor 2,5,6,9,10,14 exports are finite value, the output of other laser range sensors
Distance value is infinity, and therefore, the distance value that can be exported respectively according to each laser range sensor at each moment is determined to clap
Position of the object at each moment relative to each laser range sensor is taken the photograph, and then according to the time interval between each moment, is determined
Movement speed of the reference object in each time interval.
As a kind of possible implementation, camera module and reference object can be measured with default control laser ranging module
Between distance value time interval and default adjacent moment between the opposite laser range sensor of reference object variation and bat
Take the photograph the mapping relations of object movement speed.For example, between preset laser ranging module measurement camera module processed and reference object
The time interval of distance value is t, and the time interval between previous moment t0 and current time t1 is t, if at the t0 moment, laser ranging
The distance value that sensor 4,7,8,11,12,16 exports is finite value, and the distance value of other laser range sensors output is infinite
Greatly, and at the t1 moment, the distance value that laser range sensor 3,6,7,10,11,15 exports is finite value, other laser rangings pass
The distance value of sensor output is infinity, then according to the opposite laser range sensor of reference object between preset adjacent moment
The mapping relations of variation and reference object movement speed can determine that the movement speed of reference object is V1;If swashing at the t0 moment
The distance value that ligh-ranging sensor 4,7,8,11,12,16 exports is finite value, the distance value of other laser range sensors output
For infinity, and at the t1 moment, the distance value that laser range sensor 2,5,6,9,10,14 exports is finite value, other laser
The distance value of distance measuring sensor output is infinity, then is passed according to the opposite laser ranging of reference object between preset adjacent moment
The variation of sensor and the mapping relations of reference object movement speed can determine that the movement speed of reference object is V2, and V2It is greater than
V1。
It should be noted that the example above is exemplary only, the limitation to the application cannot be considered as.In actual use,
The distance value exported respectively according to each laser range sensor at current time and previous moment can be preset according to actual needs,
Determine that the mode of the movement speed of reference object, the embodiment of the present application do not limit this.
Step 304, according to the movement speed of the reference object, second shooting frame rate is determined.
It in the embodiment of the present application, can be according to the movement of reference object after the movement speed for determining reference object
Speed determines the second shooting frame rate of camera module.Specifically, to realize slow motion shooting, the then mobile speed of reference object
Degree is bigger, then the second shooting frame rate of camera module can be larger, so that the slow motion video of shooting is finer;Shooting pair
The movement speed of elephant is smaller, then the second shooting frame rate of camera module can be larger, to guarantee slow motion video more fineness
While, reduce the performance requirement to electronic equipment.
Step 305, the camera module is adjusted by the first shooting frame rate to the second shooting frame rate.
The specific implementation process and principle of above-mentioned steps 305, are referred to the detailed description of above-described embodiment, and word is herein not
It repeats again.
Video capture method provided by the embodiments of the present application based on laser ranging, can obtain during video capture
Take in laser ranging module first object laser range sensor and other each laser range sensors current time with it is previous
The distance value that moment exports respectively, and exported respectively in first object laser range sensor at current time and previous moment
When the difference of distance value is greater than preset value, according to each laser range sensor of other in laser ranging module at the current time
Time interval between the distance value and current time and previous moment that export respectively with previous moment, determines reference object
Movement speed determines the second shooting frame rate later according to the movement speed of reference object, and then by camera module by the first shooting
Frame per second is adjusted to the second shooting frame rate.As a result, by according to laser range sensors multiple in laser ranging module when current
Between the time of the distance between quarter and the previous moment camera module exported respectively and reference object between value and the two moment
Every determining the movement speed of reference object, and then according to the movement speed of reference object, carry out to the shooting frame rate of camera module
Adjustment, to can not only accurately control the adjustment opportunity of camera module shooting frame rate, so that shooting frame rate and reference object
Motion state matching, further improves the quality of shooting video, improves user experience.In a kind of possibility of the embodiment of the present application
Way of realization in, since corresponding point distance measurement is not in reference object for the different laser range sensors in laser ranging module
Together, while the movement speed of reference object different parts may also be different, therefore during reference object is mobile, difference swashs
The variable quantity of distance value of ligh-ranging sensor output may be different, so as to according to the distance value variable quantity of output compared with
The distance value of big laser range sensor output, determines the movement speed of reference object, according to speed mobile in reference object
The corresponding movement speed in biggish position is spent, determines the second shooting frame rate of camera module, further increases the matter of shooting video
Amount.
Below with reference to Fig. 7, another video capture method based on laser ranging provided by the embodiments of the present application is carried out
It further illustrates.
Fig. 7 is the process signal of another video capture method based on laser ranging provided by the embodiment of the present application
Figure.
As shown in fig. 7, the video capture method based on laser ranging of being somebody's turn to do, comprising the following steps:
Step 401, during video capture, obtain laser ranging module in first object laser range sensor and its
The distance value that his each laser range sensor exports respectively at current time and previous moment.
Step 402, judge what the first object laser range sensor exported respectively at current time and previous moment
Whether the difference of distance value is greater than preset value, if so, executing step 403;Otherwise, 401 are returned to step.
The specific implementation process and principle of above-mentioned steps 401-402, is referred to the detailed description of above-described embodiment, herein
It repeats no more.
Step 403, it is exported respectively at the current time with previous moment according to other described each laser range sensors
Distance value, determine the current time and previous moment output distance value changing value be greater than threshold value two the second targets
Laser range sensor.
It should be noted that since the different laser range sensors in laser ranging module are corresponding in reference object
Point distance measurement is different, while the movement speed of reference object different parts may also be different, therefore the process mobile in reference object
In, the changing value of the distance value of different laser range sensor outputs may be different, so as to according to the distance of output
It is worth the distance value of the biggish laser range sensor output of variable quantity, the movement speed of reference object is determined, according to shooting pair
As the corresponding movement speed in the biggish position of middle movement speed, determines the second shooting frame rate of camera module, further increase bat
Take the photograph the quality of image.
As a kind of possible implementation, can worked as according to each laser range sensor of other in laser ranging module
The distance value that preceding moment and previous moment export respectively determines that the changing value of the distance value in the output of the two moment is greater than threshold
The laser range sensor of value, and the laser range sensor from the changing value of the distance value exported in different moments greater than threshold value
In, two laser range sensors are chosen as the second target laser distance measuring sensor.Optionally, other available each laser
The distance value that distance measuring sensor exports respectively two moment, and according to the changing value of the distance value exported at the two moment,
Determine that the changing value of the distance value of output is greater than two the second target laser distance measuring sensors of threshold value.
It should be noted that in actual use, threshold value can be preset as biggish value, so that the second mesh of two determined
Laser range sensor is marked in the distance value that the two moment exports, both exists for the distance value of infinity, there is also to have
The distance value of limit value, and the limited distance value of two the second target laser distance measuring sensors output, are in two differences respectively
At the time of export.
For example, include 16 laser range sensors in laser ranging module, get each laser range sensor
In the distance value that current time T1 and previous moment T0 are exported respectively, wherein laser range sensor A, B, C, D the T0 moment with
The changing value for the distance value that the T1 moment exports respectively is all larger than threshold value, and laser range sensor A and laser range sensor C exist
The distance value that the T0 moment exports is infinity, laser range sensor B and laser range sensor D the T0 moment export away from
It is finite value from value, laser range sensor A and laser range sensor C is limited in the distance value that the T1 moment exports
Value, laser range sensor B and laser range sensor D are infinity in the distance value that the T0 moment exports, then can will swash
Ligh-ranging sensors A and laser range sensor B are determined as two the second target laser distance measuring sensors, or by laser ranging
Sensors A and laser range sensor D, laser range sensor C and laser range sensor B, laser range sensor C with it is sharp
Ligh-ranging sensor D is determined as two the second target laser distance measuring sensors.
It should be noted that the example above is exemplary only, the limitation to the application cannot be considered as.In actual use,
The mode for determining the second target laser distance measuring sensor can be preset according to actual needs, and the embodiment of the present application does not limit this
It is fixed.
Step 404, swashed according to the position of described two second target laser distance measuring sensors and described two second targets
The effective distance value that ligh-ranging sensor measures respectively at the current time and previous moment, determines the reference object in institute
State current time it is mobile in previous moment at a distance from.
Step 405, at a distance from mobile within the current time with previous moment according to the reference object and described work as
The time interval at preceding moment and previous moment determines the movement speed of the reference object.
Wherein, effective distance value refers to the limited distance value that the second target laser distance measuring sensor measures.
It should be noted that can accurately be designed due to during design, production and Calibration of Laser ranging mould group
The position for each laser range sensor for including in laser ranging module out, therefore, in a kind of possible reality of the embodiment of the present application
In existing form, it can be passed according to the position and two the second target laser rangings of two the second target laser distance measuring sensors
The effective distance value (not being infinitely great distance value) that sensor measures respectively at current time and previous moment, determines to shoot
The distance that object moves in the time interval between the two moment.It later can be according to reference object between the two moment
Time interval between mobile distance and the two moment determines the movement speed of reference object.
As a kind of possible implementation, reference object can be moved between current time and previous moment away from
Ratio from the time interval between the two moment is determined as the movement speed of reference object.
Further, during design, production and Calibration of Laser ranging mould group, Laser Measuring can accurately be designed
Away from the angle between each laser range sensor for including in mould group.I.e. in a kind of possible way of realization of the embodiment of the present application,
Above-mentioned steps 404 may include:
According to the position of described two second target laser distance measuring sensors, described two second target laser rangings are determined
Ranging angle between sensor;
According to the ranging angle and described two second target lasers between described two second target laser distance measuring sensors
The effective distance value that distance measuring sensor measures respectively at the current time and previous moment, determines the reference object described
At a distance from current time is mobile in previous moment.
It should be noted that can accurately be designed during design, production and calibration in laser ranging module
Therefore ranging angle between each laser range sensor for including in laser ranging module is determining the survey of the second target laser
After sensor, the survey of two the second target laser distance measuring sensor parts can be obtained from the configuration information of electronic equipment
Away from angle, later can according between two the second target laser distance measuring sensors ranging angle and two the second target lasers survey
Away from the effective distance value that sensor measures respectively at each moment, using the cosine law, determine reference object current time with
The distance moved between previous moment.
For example, two the second target laser distance measuring sensors are respectively laser range sensor A and B, laser ranging
Ranging angle between sensors A and laser range sensor B is C, and laser range sensor A has what previous moment T0 was measured
Effect distance value is a, and laser range sensor B is b in the effective distance value that current time T1 is measured, and reference object is in previous moment
Moving distance between T0 and current time T1 is c, as shown in Figure 8.Then according to the cosine law, can be determined by formula (1)
Moving distance of the reference object between previous moment T0 and current time T1 is c.
c2=a2+b2-2ab cos C (1)
After determining that moving distance of the reference object between previous moment T0 and current time T1 is c according to formula (1),
Reference object can be determined in previous moment T0 and current according to the time interval t between previous moment T0 and current time T1
Movement speed in moment T1.Movement speed of the reference object in previous moment T0 and current time T1 can pass through formula
(2) it determines.
V=c/t (2)
Wherein, V is movement speed of the reference object in previous moment T0 and current time T1, the i.e. movement of reference object
Speed.
Step 406, according to the movement speed of the reference object, second shooting frame rate is determined.
Step 407, the camera module is adjusted by the first shooting frame rate to the second shooting frame rate.
The specific implementation process and principle of above-mentioned steps 406-407, is referred to the detailed description of above-described embodiment, herein
It repeats no more.
Video capture method provided by the embodiments of the present application based on laser ranging, can during video capture,
When the difference for the distance value that one target laser distance measuring sensor exports at current time with previous moment respectively is greater than preset value, root
According to the distance value that each laser range sensor of other in laser ranging module exports respectively in the current time and previous moment,
Determine that two the second target laser rangings for being greater than threshold value in the distance value changing value at current time and previous moment output sense
Device, and according to the position and two the second target laser distance measuring sensors of two the second target laser distance measuring sensors current
The effective distance value that moment and previous moment measure respectively, determine that reference object moves within current time and previous moment away from
From, it is mobile within current time with previous moment according to reference object later at a distance from and current time and previous moment time
Interval determines the movement speed of reference object, and then according to the movement speed of reference object, determines the second shooting frame rate, and will
The shooting frame rate of camera module is adjusted to the second shooting frame rate.As a result, by the changing value of the distance value exported two moment
Greater than the position of two the second target laser distance measuring sensors of threshold value, and the effective distance measured respectively at the two moment
Value, determines the movement speed of reference object, and according to the movement speed of reference object, determine the second photographed frame of camera module
Rate to can not only accurately control the adjustment opportunity of camera module shooting frame rate, but also makes shooting frame rate and reference object
Motion state matching, further improve shooting video quality, improve user experience.
In order to realize above-described embodiment, the application also proposes a kind of video capture device based on laser ranging.
Fig. 9 is a kind of structural schematic diagram of the video capture device based on laser ranging provided by the embodiments of the present application.
As shown in figure 9, being somebody's turn to do the video capture device 50 based on laser ranging, comprising:
First obtains module 51, for obtaining first object Laser Measuring in laser ranging module during video capture
The distance value exported respectively away from sensor at current time and previous moment, wherein include multiple in the laser ranging module
Laser range sensor, the first object laser range sensor are the corresponding laser ranging sensing of preset trigger position
Device;
Judgment module 52, for judging that the first object laser range sensor is distinguished at current time and previous moment
Whether the difference of the distance value of output is greater than preset value;
The first adjustment module 53, for if so, being adjusted the camera module by the first shooting frame rate to the second shooting
Frame per second.
In actual use, the video capture device provided by the embodiments of the present application based on laser ranging, can be configured
In any electronic equipment, to execute the aforementioned video capture method based on laser ranging.
Video capture device provided by the embodiments of the present application based on laser ranging can obtain during video capture
The distance value that first object laser range sensor exports respectively at current time and previous moment in laser ranging module is taken,
In, it include multiple laser range sensors in laser ranging module, first object laser range sensor is preset trigger bit
Corresponding laser range sensor is set, and then defeated at current time and previous moment difference in first object laser range sensor
When the difference of distance value out is greater than preset value, camera module is adjusted by the first shooting frame rate to the second shooting frame rate.As a result,
By the distance value exported respectively according to first object laser range sensor at current time and previous moment, determine to shoot
Object reaches the initial time of preset trigger position, and when reference object reaches preset trigger position, adjustment camera shooting mould
The shooting frame rate of group improves so as to accurately control the adjustment opportunity of camera module shooting frame rate comprising a variety of photographed frames
The quality of the video capture of rate, improves user experience.
In a kind of possible way of realization of the application, the above-mentioned video capture device 50 based on laser ranging, further includes:
First determining module, for determining institute according to the transition matrix between preset laser ranging module and camera module
It states in laser ranging module, first object laser range sensor corresponding with trigger position preset in the camera module.
Further, in the alternatively possible way of realization of the application, the above-mentioned video capture dress based on laser ranging
Set 50, further includes:
Second obtains module, the preset trigger position inputted for obtaining user at image preview interface.
Further, in the application in another possible way of realization, the above-mentioned video capture dress based on laser ranging
Set 50, further includes:
Second determining module is used for according to each laser range sensor of other in the laser ranging module described current
The distance value that moment and previous moment export respectively, determines what reference object executed between the current time and previous moment
Movement;
Third determining module, it is dynamic for being executed between the current time and previous moment according to the reference object
Make, determines second shooting frame rate.
Further, in the application in another possible way of realization, the above-mentioned video capture dress based on laser ranging
Set 50, further includes:
4th determining module is used for according to each laser range sensor of other in the laser ranging module described current
Time interval between distance value and the current time and previous moment that moment and previous moment export respectively, determines and claps
Take the photograph the movement speed of object;
5th determining module determines second shooting frame rate for the movement speed according to the reference object.
Further, in the application in another possible way of realization, above-mentioned 4th determining module is specifically used for:
According to the distance value that other described each laser range sensors export respectively in the current time and previous moment,
Determine that the distance value changing value at the current time and previous moment output is greater than two the second target laser rangings of threshold value
Sensor;
It is passed according to the position of described two second target laser distance measuring sensors and described two second target laser rangings
The effective distance value that sensor measures respectively at the current time and previous moment, determines the reference object when described current
It carves at a distance from mobile in previous moment;
According to the reference object within the current time with previous moment it is mobile at a distance from and the current time with
The time interval of previous moment determines the movement speed of the reference object.
Further, in the application in another possible way of realization, above-mentioned 4th determining module is also used to:
According to the position of described two second target laser distance measuring sensors, described two second target laser rangings are determined
Ranging angle between sensor;
According to the ranging angle and described two second target lasers between described two second target laser distance measuring sensors
The effective distance value that distance measuring sensor measures respectively at the current time and previous moment, determines the reference object described
At a distance from current time is mobile in previous moment.
Further, in the alternatively possible way of realization of the application, the above-mentioned video capture dress based on laser ranging
Set 50, further includes:
Second adjustment module, for monitor the first object laser range sensor current time and it is previous when
When the difference for the distance value that quarter exports respectively is greater than the preset value again, by the camera module by second shooting frame rate
It adjusts to first shooting frame rate.
It should be noted that aforementioned real to Fig. 1, Fig. 3, Fig. 5, the video capture method shown in Fig. 7 based on laser ranging
The explanation for applying example is also applied for the video capture device 50 based on laser ranging of the embodiment, and details are not described herein again.
Video capture device provided by the embodiments of the present application based on laser ranging, can during video capture,
When the difference for the distance value that one target laser distance measuring sensor exports at current time with previous moment respectively is greater than preset value, root
According to the distance value that each laser range sensor of other in laser ranging module exports respectively in the current time and previous moment,
Determine that two the second target laser rangings for being greater than threshold value in the distance value changing value at current time and previous moment output sense
Device, and according to the position and two the second target laser distance measuring sensors of two the second target laser distance measuring sensors current
The effective distance value that moment and previous moment measure respectively, determine that reference object moves within current time and previous moment away from
From, it is mobile within current time with previous moment according to reference object later at a distance from and current time and previous moment time
Interval determines the movement speed of reference object, and then according to the movement speed of reference object, determines the second shooting frame rate, and will
The shooting frame rate of camera module is adjusted to the second shooting frame rate.As a result, by the changing value of the distance value exported two moment
Greater than the position of two the second target laser distance measuring sensors of threshold value, and the effective distance measured respectively at the two moment
Value, determines the movement speed of reference object, and according to the movement speed of reference object, determine the second photographed frame of camera module
Rate to can not only accurately control the adjustment opportunity of camera module shooting frame rate, but also makes shooting frame rate and reference object
Motion state matching, further improve shooting video quality, improve user experience.
In order to realize above-described embodiment, the application also proposes a kind of electronic equipment.
Figure 10 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
As shown in Figure 10, above-mentioned electronic equipment 200 include: laser ranging module 201, camera module 202, memory 210,
Processor 220 and storage on a memory and the computer program that can run on a processor, the processor execution journey
When sequence, the video capture method based on laser ranging described in the embodiment of the present application is realized.
It wherein, include multiple laser range sensors in laser ranging module 201.
As shown in figure 11, electronic equipment 200 provided by the embodiments of the present application can also include:
Memory 210 and processor 220 connect the bus 230 of different components (including memory 210 and processor 220),
Memory 210 is stored with computer program, when processor 220 execute described program when realize described in the embodiment of the present application based on
The video capture method of laser ranging.
Bus 230 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Electronic equipment 200 typically comprises various electronic readable medium.These media can be it is any can be electric
The usable medium that sub- equipment 200 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 210 can also include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 240 and/or cache memory 250.Electronic equipment 200 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 260 can be used for reading and writing not
Movably, non-volatile magnetic media (Figure 11 do not show, commonly referred to as " hard disk drive ").It, can although being not shown in Figure 11
To provide the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk "), and it is non-volatile to moving
Property CD (such as CD-ROM, DVD-ROM or other optical mediums) read and write CD drive.In these cases, each drive
Dynamic device can be connected by one or more data media interfaces with bus 230.Memory 210 may include at least one journey
Sequence product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this Shen
Please each embodiment function.
Program/utility 280 with one group of (at least one) program module 270, can store in such as memory
In 210, such program module 270 includes --- but being not limited to --- operating system, one or more application program, other
It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey
Sequence module 270 usually executes function and/or method in embodiments described herein.
Electronic equipment 200 can also be with one or more external equipments 290 (such as keyboard, sensing equipment, display 291
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 200 communicate, and/or with make
Any equipment (such as network interface card, the modem that the electronic equipment 200 can be communicated with one or more of the other calculating equipment
Etc.) communication.This communication can be carried out by input/output (I/O) interface 292.Also, electronic equipment 200 can also lead to
Cross network adapter 293 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, example
Such as internet) communication.As shown, network adapter 293 is communicated by bus 230 with other modules of electronic equipment 200.It answers
When understanding, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 200, including but unlimited
In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number
According to backup storage system etc..
Program of the processor 220 by operation storage in memory 210, thereby executing various function application and data
Processing.
It should be noted that the implementation process and technical principle of the electronic equipment of the present embodiment are referring to aforementioned to the application reality
The explanation of the video capture method based on laser ranging of example is applied, details are not described herein again.
Electronic equipment provided by the embodiments of the present application can execute the video capture side as previously described based on laser ranging
Method, during video capture, obtain laser ranging module in first object laser range sensor current time with it is previous
The distance value that moment exports respectively, wherein include multiple laser range sensors, first object Laser Measuring in laser ranging module
It is the corresponding laser range sensor of preset trigger position away from sensor, and then is working as in first object laser range sensor
When the difference for the distance value that preceding moment and previous moment export respectively is greater than preset value, by camera module by the first shooting frame rate tune
It is whole to the second shooting frame rate.As a result, by being distinguished according to first object laser range sensor at current time and previous moment
The distance value of output determines that reference object reaches the initial time of preset trigger position, and reaches and preset in reference object
Trigger position when, the shooting frame rate of camera module is adjusted, when adjustment so as to accurately control camera module shooting frame rate
Machine improves the quality of the video capture comprising a variety of shooting frame rates, improves user experience.
In order to realize above-described embodiment, the application also proposes a kind of computer readable storage medium.
Wherein, the computer readable storage medium, is stored thereon with computer program, when which is executed by processor,
To realize the video capture method described in the embodiment of the present application based on laser ranging.
In order to realize above-described embodiment, the application another further aspect embodiment provides a kind of computer program, which is located
When managing device execution, to realize the video capture method described in the embodiment of the present application based on laser ranging.
In a kind of optional way of realization, the present embodiment can be using any group of one or more computer-readable media
It closes.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable to deposit
Storage media for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor
Part, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: to have
The electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It is fully executed on consumer electronic devices, partly executes on consumer electronic devices, held as an independent software package
Row, partially part executes in devices in remote electronic or completely in devices in remote electronic or service on consumer electronic devices
It is executed on device.In the situation for being related to devices in remote electronic, devices in remote electronic can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to consumer electronic devices, or, it may be connected to external electronic device (example
It is such as connected using ISP by internet).
Those skilled in the art will readily occur to its of the application after considering specification and practicing the invention applied here
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
The common knowledge in the art that person's adaptive change follows the general principle of the application and do not invent including the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are wanted by right
It asks and points out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (11)
1. a kind of video capture method based on laser ranging characterized by comprising
During video capture, obtain laser ranging module in first object laser range sensor current time with it is previous
The distance value that moment exports respectively, wherein include multiple laser range sensors, first mesh in the laser ranging module
Mark laser range sensor is the corresponding laser range sensor of preset trigger position;
Judge the difference for the distance value that the first object laser range sensor exports at current time with previous moment respectively
Whether preset value is greater than;
If so, being adjusted the camera module by the first shooting frame rate to the second shooting frame rate.
2. the method as described in claim 1, which is characterized in that first object laser ranging in the acquisition laser ranging module
Sensor is before the distance value that current time and previous moment export respectively, further includes:
According to the transition matrix between preset laser ranging module and camera module, determine in the laser ranging module and institute
State the corresponding first object laser range sensor of preset trigger position in camera module.
3. method according to claim 2, which is characterized in that first object laser ranging in the acquisition laser ranging module
Sensor is before the distance value that current time and previous moment export respectively, further includes:
Obtain the preset trigger position that user inputs at image preview interface.
4. the method as described in claim 1, which is characterized in that it is described by the camera module by the first shooting frame rate adjust to
Before second shooting frame rate, further includes:
It is defeated at the current time and previous moment difference according to each laser range sensor of other in the laser ranging module
Distance value out determines the movement that reference object executes between the current time and previous moment;
According to the movement that the reference object executes between the current time and previous moment, second photographed frame is determined
Rate.
5. the method as described in claim 1, which is characterized in that it is described by the camera module by the first shooting frame rate adjust to
Before second shooting frame rate, further includes:
It is defeated at the current time and previous moment difference according to each laser range sensor of other in the laser ranging module
Time interval between distance value out and the current time and previous moment, determines the movement speed of reference object;
According to the movement speed of the reference object, second shooting frame rate is determined.
6. method as claimed in claim 5, which is characterized in that the current movement speed of the determining reference object, comprising:
According to the distance value that other described each laser range sensors export respectively at the current time and previous moment, determine
It is sensed in two the second target laser rangings that the distance value changing value at the current time and previous moment output is greater than threshold value
Device;
According to the position of described two second target laser distance measuring sensors and described two second target laser distance measuring sensors
In the effective distance value that the current time and previous moment measure respectively, determine the reference object the current time with
The distance moved in previous moment;
According to the reference object within the current time with previous moment it is mobile at a distance from and the current time with it is previous
The time interval at moment determines the movement speed of the reference object.
7. method as claimed in claim 6, which is characterized in that the determination reference object is at the current time with before
The distance moved in one moment, comprising:
According to the position of described two second target laser distance measuring sensors, described two second target laser ranging sensings are determined
Ranging angle between device;
According between described two second target laser distance measuring sensors ranging angle and described two second target laser rangings
The effective distance value that sensor measures respectively at the current time and previous moment determines the reference object described current
At a distance from moment is mobile in previous moment.
8. method as claimed in claim 1, which is characterized in that it is described by the camera module by the first shooting frame rate
It adjusts to the second shooting frame rate, further includes:
In the distance value for monitoring the first object laser range sensor and being exported respectively in current time and previous moment
When difference is greater than the preset value again, the camera module is adjusted by second shooting frame rate to first photographed frame
Rate.
9. a kind of video capture device based on laser ranging characterized by comprising
Module is obtained, is existed for during video capture, obtaining first object laser range sensor in laser ranging module
The distance value that current time and previous moment export respectively, wherein include that multiple laser rangings pass in the laser ranging module
Sensor, the first object laser range sensor are the corresponding laser range sensor of preset trigger position;
Judgment module, for judging what the first object laser range sensor exported respectively at current time and previous moment
Whether the difference of distance value is greater than preset value;
Module is adjusted, for if so, being adjusted the camera module by the first shooting frame rate to the second shooting frame rate.
10. a kind of electronic equipment, including laser ranging module, camera module, memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor when the processor executes the computer program, realizes such as claim 1-8
Any one of described in the video capture method based on laser ranging.
It wherein, include multiple laser range sensors in the laser ranging module.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as the video capture method of any of claims 1-8 based on laser ranging is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910072201.5A CN109743505B (en) | 2019-01-25 | 2019-01-25 | Video shooting method and device based on laser ranging and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910072201.5A CN109743505B (en) | 2019-01-25 | 2019-01-25 | Video shooting method and device based on laser ranging and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109743505A true CN109743505A (en) | 2019-05-10 |
CN109743505B CN109743505B (en) | 2021-01-19 |
Family
ID=66366091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910072201.5A Active CN109743505B (en) | 2019-01-25 | 2019-01-25 | Video shooting method and device based on laser ranging and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743505B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110062169A (en) * | 2019-05-13 | 2019-07-26 | Oppo广东移动通信有限公司 | Image pickup method, filming apparatus, terminal device and computer readable storage medium |
CN111526314A (en) * | 2020-04-24 | 2020-08-11 | 华为技术有限公司 | Video shooting method and electronic equipment |
CN111624617A (en) * | 2020-05-28 | 2020-09-04 | 联想(北京)有限公司 | Data processing method and electronic equipment |
CN113520228A (en) * | 2020-04-22 | 2021-10-22 | 科沃斯机器人股份有限公司 | Environment information acquisition method, autonomous mobile device and storage medium |
CN115932791A (en) * | 2022-12-14 | 2023-04-07 | 昕锐至成(江苏)光电科技有限公司 | Geodetic surveying system based on laser ranging |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554376A (en) * | 2015-12-03 | 2016-05-04 | 北京奇虎科技有限公司 | Vehicle intelligent camera device and shooting frame rate adjusting method thereof |
CN107360365A (en) * | 2017-06-30 | 2017-11-17 | 盯盯拍(深圳)技术股份有限公司 | Image pickup method, filming apparatus, terminal and computer-readable recording medium |
CN107431747A (en) * | 2015-04-03 | 2017-12-01 | 日立汽车系统株式会社 | Camera device |
CN108732583A (en) * | 2018-07-18 | 2018-11-02 | 武汉雷施尔光电信息工程有限公司 | The detection device and method of car speed and amplitude of fluctuation based on laser ranging imaging |
CN108769509A (en) * | 2018-04-28 | 2018-11-06 | Oppo广东移动通信有限公司 | Control method, apparatus, electronic equipment and the storage medium of camera |
-
2019
- 2019-01-25 CN CN201910072201.5A patent/CN109743505B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107431747A (en) * | 2015-04-03 | 2017-12-01 | 日立汽车系统株式会社 | Camera device |
CN105554376A (en) * | 2015-12-03 | 2016-05-04 | 北京奇虎科技有限公司 | Vehicle intelligent camera device and shooting frame rate adjusting method thereof |
CN107360365A (en) * | 2017-06-30 | 2017-11-17 | 盯盯拍(深圳)技术股份有限公司 | Image pickup method, filming apparatus, terminal and computer-readable recording medium |
CN108769509A (en) * | 2018-04-28 | 2018-11-06 | Oppo广东移动通信有限公司 | Control method, apparatus, electronic equipment and the storage medium of camera |
CN108732583A (en) * | 2018-07-18 | 2018-11-02 | 武汉雷施尔光电信息工程有限公司 | The detection device and method of car speed and amplitude of fluctuation based on laser ranging imaging |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110062169A (en) * | 2019-05-13 | 2019-07-26 | Oppo广东移动通信有限公司 | Image pickup method, filming apparatus, terminal device and computer readable storage medium |
CN113520228A (en) * | 2020-04-22 | 2021-10-22 | 科沃斯机器人股份有限公司 | Environment information acquisition method, autonomous mobile device and storage medium |
CN111526314A (en) * | 2020-04-24 | 2020-08-11 | 华为技术有限公司 | Video shooting method and electronic equipment |
CN111624617A (en) * | 2020-05-28 | 2020-09-04 | 联想(北京)有限公司 | Data processing method and electronic equipment |
CN115932791A (en) * | 2022-12-14 | 2023-04-07 | 昕锐至成(江苏)光电科技有限公司 | Geodetic surveying system based on laser ranging |
CN115932791B (en) * | 2022-12-14 | 2023-09-26 | 昕锐至成(江苏)光电科技有限公司 | Geodetic surveying system based on laser rangefinder |
Also Published As
Publication number | Publication date |
---|---|
CN109743505B (en) | 2021-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109743505A (en) | Video capture method, apparatus and electronic equipment based on laser ranging | |
US11652965B2 (en) | Method of and system for projecting digital information on a real object in a real environment | |
CN204480228U (en) | motion sensing and imaging device | |
CN104541232B (en) | Multi-modal touch-screen emulator | |
US20170076430A1 (en) | Image Processing Method and Image Processing Apparatus | |
CN108700934A (en) | It can carry out the wearable device of eye tracks | |
CN104427252B (en) | Method and its electronic equipment for composograph | |
JP6239594B2 (en) | 3D information processing apparatus and method | |
KR20160078352A (en) | Latency measuring and testing system and method | |
US10878285B2 (en) | Methods and systems for shape based training for an object detection algorithm | |
CN109615664B (en) | Calibration method and device for optical perspective augmented reality display | |
Gong et al. | A handheld device for leaf area measurement | |
CN103399629B (en) | The method and apparatus for obtaining gesture screen display coordinate | |
CN109584375B (en) | Object information display method and mobile terminal | |
CN109688340A (en) | Time for exposure control method, device, electronic equipment and storage medium | |
CN205649501U (en) | Student's intelligence physical examination all -in -one | |
CN108271012A (en) | A kind of acquisition methods of depth information, device and mobile terminal | |
CN104142739B (en) | Laser point tracking system and method based on optical mouse sensing array | |
US9880728B2 (en) | Methods and systems for controlling a virtual interactive surface and interactive display systems | |
CN109714539A (en) | Image-pickup method, device and electronic equipment based on gesture recognition | |
CN111854966A (en) | Temperature measurement method, device, wearable equipment and medium | |
CN108932055B (en) | Method and equipment for enhancing reality content | |
CN113260951A (en) | Fade-in user interface display based on finger distance or hand proximity | |
CN107314761A (en) | Measuring method and electronic equipment | |
CN103761011A (en) | Method, system and computing device of virtual touch screen |
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 |