CN106370883A - Speed measurement method and terminal - Google Patents
Speed measurement method and terminal Download PDFInfo
- Publication number
- CN106370883A CN106370883A CN201610796173.8A CN201610796173A CN106370883A CN 106370883 A CN106370883 A CN 106370883A CN 201610796173 A CN201610796173 A CN 201610796173A CN 106370883 A CN106370883 A CN 106370883A
- Authority
- CN
- China
- Prior art keywords
- measured
- image
- interval
- terminal
- default
- 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
- 238000000691 measurement method Methods 0.000 title abstract 2
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000006073 displacement reaction Methods 0.000 claims description 115
- 238000012360 testing method Methods 0.000 claims description 30
- 238000004364 calculation method Methods 0.000 claims description 13
- 238000005259 measurement Methods 0.000 abstract description 5
- 230000009977 dual effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 241000406668 Loxodonta cyclotis Species 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 229940104697 arixtra Drugs 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- KANJSNBRCNMZMV-ABRZTLGGSA-N fondaparinux Chemical compound O[C@@H]1[C@@H](NS(O)(=O)=O)[C@@H](OC)O[C@H](COS(O)(=O)=O)[C@H]1O[C@H]1[C@H](OS(O)(=O)=O)[C@@H](O)[C@H](O[C@@H]2[C@@H]([C@@H](OS(O)(=O)=O)[C@H](O[C@H]3[C@@H]([C@@H](O)[C@H](O[C@@H]4[C@@H]([C@@H](O)[C@H](O)[C@@H](COS(O)(=O)=O)O4)NS(O)(=O)=O)[C@H](O3)C(O)=O)O)[C@@H](COS(O)(=O)=O)O2)NS(O)(=O)=O)[C@H](C(O)=O)O1 KANJSNBRCNMZMV-ABRZTLGGSA-N 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P3/00—Measuring linear or angular speed; Measuring differences of linear or angular speeds
- G01P3/64—Devices characterised by the determination of the time taken to traverse a fixed distance
- G01P3/68—Devices characterised by the determination of the time taken to traverse a fixed distance using optical means, i.e. using infrared, visible, or ultraviolet light
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The invention provides a speed measurement method and a terminal. The method comprises steps that a first image including a to-be-measured object is acquired by the terminal through a first camera, during a preset shooting interval, a second image of the to-be-measured object is acquired through utilizing a second camera; a movement distance of the to-be-measured object within the preset shooting interval is acquired by the terminal according to the first image and the second image; a movement speed of the to-be-measured object is determined by the terminal according to the movement speed and the preset shooting interval. The method is advantaged in that speed measurement can be rapidly and accurately measured through utilizing the two cameras of the terminal, and playability and practicality of the terminal are improved.
Description
Technical field
The present invention relates to shooting technology field is and in particular to a kind of speed-measuring method and terminal.
Background technology
With becoming increasingly popular of the terminals such as smart mobile phone, panel computer, add the portability of terminal and the photographic head being equipped with
Image quality step up, carrying out taking pictures using terminal becomes the first-selection of more and more users.However, in current terminal
Photographic head is typically only limited to take pictures, video record etc., and using more single, playability is not strong for function.
Content of the invention
Embodiments provide a kind of speed-measuring method and terminal, it is possible to use the dual camera of terminal is convenient, accurate
Ground is tested the speed, and lifts playability and the practicality of terminal.
Embodiment of the present invention first aspect provides a kind of speed-measuring method, comprising:
Terminal utilizes the first photographic head capture to include the first image of object to be measured, and at the default interval of taking pictures of experience
When, the second image of described object to be measured is included using second camera capture.
Described terminal is according to described first image and object to be measured described in described second Image Acquisition in described default bat
According to the displacement in interval.
Described terminal determines the mobile speed of described object to be measured according to described displacement and described default interval of taking pictures
Degree.
Optionally, before described terminal utilizes the first photographic head capture to include the first image of object to be measured, described side
Method also includes:
Described terminal determines described default interval of taking pictures according to the scene that tests the speed selected.
Optionally, described terminal according to described first image and object to be measured described in described second Image Acquisition described
The default displacement taken pictures in interval, comprising:
Described terminal parses described first image, obtains the when capturing described first image with described object to be measured
One distance.
Described terminal parses described second image, obtains the when capturing described second image with described object to be measured
Two distances.
Described terminal obtain when capturing described first image the line and described object to be measured between with capture institute
State the first angle of the line and described object to be measured between during the second image.
Described terminal is according to the described first distance, described second distance and object to be measured described in described first angle calcu-lation
In the described default displacement taken pictures in interval.
Optionally, described terminal according to described first image and object to be measured described in described second Image Acquisition described
The default displacement taken pictures in interval, comprising:
Described terminal, when capturing described first image, obtains the 3rd with described object to be measured using infrared sensor
Distance.
Described terminal, when capturing described second image, is obtained and described object to be measured using described infrared sensor
4th distance.
Described terminal obtain when capturing described first image the line and described object to be measured between with capture institute
State the second angle of the line and described object to be measured between during the second image.
Described terminal is according to the described 3rd distance, described 4th distance and object to be measured described in described second angle calcu-lation
In the described default displacement taken pictures in interval.
Optionally, described terminal determines described object to be measured according to described displacement and described default interval of taking pictures
Translational speed, comprising:
Described in described terminal judges, whether displacement is in the range of predeterminable range.
If described displacement is in the range of described predeterminable range, described terminal is according to described displacement and described pre-
If interval of taking pictures determines the translational speed of described object to be measured.
If described displacement is not in the range of described predeterminable range, described terminal adjustment is described to preset interval of taking pictures,
Include the 3rd image of described object to be measured using described first photographic head capture, described the presetting after experience adjustment is taken pictures
The 4th image of described object to be measured during interval, is included using the capture of described second camera, and according to described 3rd image
With the described default displacement taken pictures in interval after the adjustment of object to be measured described in described 4th Image Acquisition, Yi Jigen
Take pictures according to the described object to be measured described default displacement taken pictures in interval after the adjustment and described the presetting after adjustment
Interval, determines the translational speed of described object to be measured.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
Trapping module for including the first image of object to be measured and default in experience using the first photographic head capture
Take pictures interval when, include the second image of described object to be measured using second camera capture.
Acquisition module, for according to described first image and object to be measured described in described second Image Acquisition described pre-
If the displacement taken pictures in interval.
Determining module, for determining the shifting of described object to be measured according to described displacement and described default interval of taking pictures
Dynamic speed.
Optionally, described determining module, is additionally operable to determine described default interval of taking pictures according to the scene that tests the speed selected.
Optionally, described acquisition module includes:
Resolution unit, for parsing described first image, obtain in described trapping module capture described first image with
First distance of described object to be measured.
Described resolution unit, is additionally operable to parse described second image, obtains and captures described second figure in described trapping module
Second distance with described object to be measured during picture.
Acquiring unit, for obtain described trapping module capture described first image when and described object to be measured between
Line and described trapping module capture described second image when and described object to be measured between line the first angle.
Computing unit, for be measured according to the described first distance, described second distance and described first angle calcu-lation
Fast object is in the described default displacement taken pictures in interval.
Optionally, described acquisition module includes:
Acquiring unit, in described trapping module capture described first image, being obtained and institute using infrared sensor
State the 3rd distance of object to be measured.
Described acquiring unit, is additionally operable to when described trapping module captures described second image, using described infrared sensing
Device obtains the 4th distance with described object to be measured.
Described acquiring unit, it is to be measured right with described in described trapping module capture described first image to be additionally operable to obtain
As between line and when described trapping module captures described second image the line and described object to be measured between the
Two angles.
Computing unit, for be measured according to the described 3rd distance, described 4th distance and described second angle calcu-lation
Fast object is in the described default displacement taken pictures in interval.
Optionally, described determining module is described to be measured right according to described displacement and described default interval determination of taking pictures
The concrete mode of the translational speed of elephant is:
Judge described displacement whether in the range of predeterminable range.
If described displacement is in the range of described predeterminable range, according to described displacement and described default take pictures between
Every the translational speed determining described object to be measured.
If described displacement is not in the range of described predeterminable range, adjust described default interval of taking pictures, using described
First photographic head capture includes the 3rd image of described object to be measured, and described default after experience adjustment is taken pictures when being spaced,
Include the 4th image of described object to be measured using the capture of described second camera, and according to described 3rd image and described the
The described default displacement taken pictures in interval after the adjustment of object to be measured described in four Image Acquisition, and treated according to described
Test the speed the described default interval of taking pictures after the object described default displacement taken pictures in interval after the adjustment and adjustment, determination
The translational speed of described object to be measured.
The embodiment of the present invention third aspect provides a kind of terminal, comprising: processor, the first photographic head and the second shooting
Head, wherein:
Described processor, for including the first image of object to be measured, and in warp using described first photographic head capture
Go through default take pictures interval when, include the second image of described object to be measured using the capture of described second camera.
Described processor, is additionally operable to according to described first image and object to be measured described in described second Image Acquisition in institute
State the default displacement taken pictures in interval.
Described processor, is additionally operable to determine described object to be measured according to described displacement and described default interval of taking pictures
Translational speed.
In the embodiment of the present invention, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is waiting
Whne default take pictures interval when, include the second image of this object to be measured using second camera capture, according to this first image
This object to be measured can be obtained in this default displacement taken pictures in interval with this second image, thus according to this mobile away from
From the translational speed that can determine that this object to be measured with this default interval of taking pictures, it is possible to use the dual camera of terminal is convenient,
Accurately tested the speed, lifted playability and the practicality of terminal.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of first embodiment schematic flow sheet of speed-measuring method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of image of taking pictures provided in an embodiment of the present invention;
Fig. 3 is another kind of schematic diagram of image of taking pictures provided in an embodiment of the present invention;
Fig. 4 is another schematic diagram of image of taking pictures provided in an embodiment of the present invention;
Fig. 5 is a kind of second embodiment schematic flow sheet of speed-measuring method provided in an embodiment of the present invention;
Fig. 6 is a kind of first embodiment structural representation of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of second embodiment structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Terminal described in the embodiment of the present invention can be specifically possess the smart mobile phone of dual camera, panel computer,
Mobile internet device (mobile internet device, mid) and intelligent wearable device etc..
Refer to Fig. 1, be a kind of first embodiment schematic flow sheet of speed-measuring method provided in an embodiment of the present invention.This reality
Apply the speed-measuring method described in example, comprise the following steps:
101st, terminal utilizes the first photographic head capture to include the first image of object to be measured, and between experience is preset and taken pictures
Every when, include the second image of described object to be measured using second camera capture.
Wherein, terminal can provide multiple scenes that test the speed to supply user to select, and the different scenes that tests the speed can correspond to different
Default interval of taking pictures, can be specifically the faster scene that tests the speed of object movement to be measured, and this default interval of taking pictures is shorter, to ensure
Two photographic head of this terminal can capture the image including this object to be measured, for example, when the scene that tests the speed is measurement joyride
Speed when, this default interval of taking pictures could be arranged to a millisecond ms rank (as 50ms), and the scene that tests the speed is running of measurement pedestrian
During speed, this default interval of taking pictures could be arranged to a second s rank (as 2s).
Specifically, this terminal detects after this user opens speed measuring function, points out this user to select to test the speed scene, and obtains
Scene that what this user selected test the speed this default interval of taking pictures corresponding, this user passes through to adjust the general such as attitude, position of this terminal
First photographic head of this terminal and second camera are directed at this object to be measured, start, this user triggering is detected, instruction of testing the speed
When, for example, this user can by clicking on/length press/button is taken pictures in pressing or the input mode such as voice/gesture triggers out energetically
Begin to test the speed instruction, this terminal utilizes this first photographic head to capture the first image including this object to be measured, and with capture this
The moment of one image starts timing for start time, timing duration reach this default take pictures interval when, using this second shooting
Head capture includes the second image of this object to be measured, thus getting two figures not including this object to be measured in the same time
Picture.
102nd, described terminal according to described first image and object to be measured described in described second Image Acquisition described pre-
If the displacement taken pictures in interval.
Specifically, this terminal can parse this first image, using in the focal length and this first image of this first photographic head
This object to be measured calculates the first distance with this object to be measured when capturing this first image with the distance of this terminal.Equally
Ground, this terminal can parse this second image, using focal length and this object to be measured in this second image of this second camera
Calculate the second distance with this object to be measured when capturing this second image with the distance of this terminal.
Further, this first image and this second image can be synthesized by this terminal, and determine in composograph, and this is eventually
First angle of two lines between end and this object to be measured, thus using the cosine law according to this first distance, this
Two distances and this first angle can be calculated this object to be measured in this default displacement taken pictures in interval.
Wherein, for the calculating of this first angle, this terminal can obtain the coordinate of this terminal in this composograph, with
And this object to be measured is in two coordinates in two moment, this object to be measured in this terminal and this two moment is in this composite diagram
Constitute a triangle, the then coordinate according to this terminal in picture, and this object to be measured is in two coordinates in this two moment
The first angle of two lines between this terminal and this object to be measured can be drawn.
In some feasible embodiments, this terminal capture this first image when can using this infrared sensor to
This object to be measured launches infrared ray, returns to receiving this object reflection to be measured according to from this infrared sensor transmitting infrared ray
The time of infrared ray experience and the light velocity can obtain this terminal when capturing this first image with this object to be measured the
Three distances, profit in the same way, this terminal can obtain when capturing this second image with the 4th of this object to be measured away from
From, and determine the second angle of two lines between this terminal and this object to be measured, thus using the cosine law according to this
3rd distance, the 4th distance and this second angle can be calculated this object to be measured in this default shifting taken pictures in interval
Dynamic distance.
103rd, described terminal determines the shifting of described object to be measured according to described displacement and described default interval of taking pictures
Dynamic speed.
In some feasible embodiments, it is to be measured right including this that this terminal continuously can be captured using the first photographic head
Two images of elephant, numbering by the sequencing of capture time is image 1 and image 2, when in experience, this is preset and takes pictures interval, can
Also continuously to capture, using second camera, two images including this object to be measured, by the sequencing numbering of capture time
For image 3 and image 4, then this terminal can utilize image 1, image 3, and this two groups of images of image 2, image 4 obtain respectively
This object to be measured is in this default two displacement taken pictures in interval.
Further, after this terminal can select get two displacements are averaged, according to displacement
Average and this default interval of taking pictures determine the translational speed of this object to be measured, or it is also possible to respectively according to displacement and
This default interval of taking pictures determines two translational speeds of this object to be measured, then it is to be measured as this that two translational speeds are averaged
The translational speed of fast object.
For example, so that this is to be measured to liking automobile as a example, this default taking pictures is spaced apart δ t, and this terminal is detecting
This user triggers when starting to test the speed instruction, includes the first image of this automobile using the capture of this first photographic head, as shown in Figure 2.
This terminal starts timing with the moment capturing Fig. 2 for start time, when timing duration reaches δ t, using this second camera
Capture includes the second image of this automobile, as shown in Figure 3.This terminal can parse Fig. 2, using this first photographic head focal length and
In Fig. 2, this automobile and the distance of this terminal calculate the actual range b with this automobile when capturing Fig. 2.Similarly, this terminal is permissible
Parsing Fig. 3, using the distance of this automobile in the focal length of this second camera and Fig. 3 and this terminal calculate when capturing Fig. 3 with should
The actual range c of automobile.
Further, Fig. 2 and Fig. 3 synthesis can be obtained composograph by this terminal, as shown in figure 4, this is whole in calculating Fig. 4
The angle a of two lines between end and this automobile, thus can be calculated according to b, c and this angle a using the cosine law
Displacement a in δ t for this automobile,Thus the movement in δ t according to this automobile
Translational speed v of this automobile, v=a/ δ t can be obtained apart from a and δ t.
In the embodiment of the present invention, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is waiting
Whne default take pictures interval when, include the second image of this object to be measured using second camera capture, according to this first image
This object to be measured can be obtained in this default displacement taken pictures in interval with this second image, thus according to this mobile away from
From the translational speed that can determine that this object to be measured with this default interval of taking pictures, it is possible to use the dual camera of terminal is convenient,
Accurately tested the speed, lifted playability and the practicality of terminal.
Refer to Fig. 5, be a kind of second embodiment schematic flow sheet of speed-measuring method provided in an embodiment of the present invention.This reality
Apply the speed-measuring method described in example, comprise the following steps:
501st, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is experiencing described default bat
The second image of described object to be measured during according to interval, is included using second camera capture.
Wherein, terminal can provide multiple scenes that test the speed to supply user to select, and the different scenes that tests the speed can correspond to different
Default interval of taking pictures, can be specifically the faster scene that tests the speed of object movement to be measured, and this default interval of taking pictures is shorter, to ensure
Two photographic head of this terminal can capture the image including this object to be measured, and for example, the scene that tests the speed is car during joyride
When fast, this default interval of taking pictures could be arranged to ms rank (as 50ms), and when the scene that tests the speed is the running speed of pedestrian, this is preset
Interval of taking pictures could be arranged to s rank (as 2s).
502nd, described terminal according to described first image and object to be measured described in described second Image Acquisition described pre-
If the displacement taken pictures in interval.
503rd, whether displacement described in described terminal judges in the range of predeterminable range, if so, then execution step 504;
If it is not, then execution step 505~507.
The scene corresponding predeterminable range scope wherein it is possible to setting difference tests the speed, pre- at this to determine this object to be measured
If whether the displacement taken pictures in interval is rationally, prevents this displacement excessive or the too small result that leads to test the speed is not smart
Really.For example, the scene that tests the speed is that predeterminable range scope can more greatly, for example it is contemplated that speed is very fast during speed during measurement joyride
20m~50m, when the scene that tests the speed is the running speed of measurement pedestrian, predeterminable range scope can be with less, such as 5m~10m.
In implementing, whether this displacement of this terminal judges is in the range of this predeterminable range, if this displacement
In the range of this predeterminable range, then this object to be measured that this terminal obtains is in this default displacement taken pictures in interval more
Rationally, execution step 504;If this displacement is not in the range of this predeterminable range, this of this terminal acquisition is to be measured right
As unreasonable, the execution step 505~507 in this default displacement taken pictures in interval.
504th, described terminal determines the shifting of described object to be measured according to described displacement and described default interval of taking pictures
Dynamic speed.
505th, described terminal adjustment is described presets interval of taking pictures, and is included described to be measured using described first photographic head capture
3rd image of object, described default after experience adjustment take pictures interval when, include institute using the capture of described second camera
State the 4th image of object to be measured.
Specifically, this object to be measured that this terminal obtains is unreasonable in this default displacement taken pictures in interval, then
Directly related with this default interval of taking pictures based on this displacement, this default interval of taking pictures can be adjusted, can be specifically this shifting
Dynamic distance more than this predeterminable range scope the upper limit when, this default interval of taking pictures is turned down, this displacement be less than this default away from
From the lower limit of scope when, this default interval of taking pictures is tuned up.This terminal reuses the capture of this first photographic head, and to include this to be measured
3rd image of fast object, this after experience adjustment be default take pictures interval when, reuse the capture of this second camera and include
4th image of this object to be measured.
In some feasible embodiments, this terminal can also be by judging between this terminal and this object to be measured
Article two, in the range of predetermined angle (such as 30 degree~120 degree) are pre- at this to determine this object to be measured for the angle a of line
If whether the displacement taken pictures in interval rationally, that is, this angle a excessive or too small all it is believed that this object to be measured is at this
The default displacement taken pictures in interval is unreasonable, when can be the upper limit that this angle a is more than this predetermined angle scope, this is pre-
If interval of taking pictures is turned down, when this angle a is less than the lower limit of this predetermined angle scope, this default interval of taking pictures is tuned up, so that
Using this angle a in the image that this default interval of taking pictures after adjustment captures in the range of this predetermined angle.
506th, described terminal is according to described 3rd image and object to be measured described in described 4th Image Acquisition after the adjustment
The described default displacement taken pictures in interval.
507th, described terminal according to described object to be measured the described default displacement taken pictures in interval after the adjustment
Described default interval of taking pictures with after adjustment, determines the translational speed of described object to be measured.
In implementing, this terminal can utilize the method root in the first embodiment step 102 of speed-measuring method shown in Fig. 1
According to the 3rd image and this object to be measured of the 4th Image Acquisition this default displacement taken pictures in interval after the adjustment,
And then this terminal is pre- according to this after this object to be measured this default displacement taken pictures in interval after the adjustment and adjustment
If taking pictures interval, determine the translational speed of this object to be measured.
It should be noted that this terminal can circulate execution step 503,505 and 506, repeatedly adjust this and default take pictures
Interval, until this object to be measured of getting this default displacement taken pictures in interval after the adjustment is in this predeterminable range
In the range of it is ensured that this displacement in the reasonable scope, and then ensures the result precision that tests the speed of this object to be measured.
In the embodiment of the present invention, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is waiting
Whne default take pictures interval when, include the second image of this object to be measured using second camera capture, according to this first image
This object to be measured can be obtained with this second image in this default displacement taken pictures in interval, if this displacement exists
The mobile speed of this object to be measured in the range of predeterminable range, is then directly determined according to this displacement and this default interval of taking pictures
Degree.If this displacement is not in the range of this predeterminable range, this default interval of taking pictures is adjusted, until using adjustment
Afterwards this presets the displacement of this object to be measured that interval of taking pictures redefines in the range of this predeterminable range, and according to this
Object to be measured this default displacement taken pictures in interval after the adjustment should with this default interval calculation of taking pictures after adjustment
The translational speed of object to be measured, such that it is able to the dual camera using terminal convenient, accurately tested the speed, lifting terminal
Playability and practicality.
Refer to Fig. 6, be a kind of first embodiment structural representation of terminal provided in an embodiment of the present invention.The present embodiment
Described in terminal, comprising:
Trapping module 601 for including the first image of object to be measured and pre- in experience using the first photographic head capture
If take pictures interval when, include the second image of described object to be measured using second camera capture.
Acquisition module 602, for according to described first image and object to be measured described in described second Image Acquisition in institute
State the default displacement taken pictures in interval.
Determining module 603, for determining described object to be measured according to described displacement and described default interval of taking pictures
Translational speed.
In some feasible embodiments, described determining module 603, it is additionally operable to the scene that tests the speed according to selecting and determine institute
State default interval of taking pictures.
In some feasible embodiments, described acquisition module 602 includes:
Resolution unit 6020, for parsing described first image, obtains and captures described first image in described trapping module
When with the first distance of described object to be measured.
Described resolution unit 6020, is additionally operable to parse described second image, obtains in described trapping module capture described the
Second distance with described object to be measured during two images.
Acquiring unit 6021, for obtain described trapping module capture described first image when with described object to be measured
Between line and described trapping module capture described second image when and described object to be measured between line first
Angle.
Computing unit 6022, for according to the described first distance, described second distance and described first angle calcu-lation
Object to be measured is in the described default displacement taken pictures in interval.
In some feasible embodiments, described acquisition module 602 includes:
Acquiring unit 6021, in described trapping module capture described first image, being obtained using infrared sensor
The 3rd distance with described object to be measured.
Described acquiring unit 6021, is additionally operable to when described trapping module captures described second image, using described infrared
Sensor obtains the 4th distance with described object to be measured.
Described acquiring unit 6021, is additionally operable to obtain to be measured with described in described trapping module capture described first image
Line between fast object and when described trapping module captures described second image the line and described object to be measured between
The second angle.
Computing unit 6022, for according to the described 3rd distance, described 4th distance and described second angle calcu-lation
Object to be measured is in the described default displacement taken pictures in interval.
In some feasible embodiments, described determining module 603 is taken pictures according to described displacement and described presetting
Interval determines that the concrete mode of the translational speed of described object to be measured is:
Judge described displacement whether in the range of predeterminable range.
If described displacement is in the range of described predeterminable range, according to described displacement and described default take pictures between
Every the translational speed determining described object to be measured.
If described displacement is not in the range of described predeterminable range, adjust described default interval of taking pictures, using described
First photographic head capture includes the 3rd image of described object to be measured, and described default after experience adjustment is taken pictures when being spaced,
Include the 4th image of described object to be measured using the capture of described second camera, and according to described 3rd image and described the
The described default displacement taken pictures in interval after the adjustment of object to be measured described in four Image Acquisition, and treated according to described
Test the speed the described default interval of taking pictures after the object described default displacement taken pictures in interval after the adjustment and adjustment, determination
The translational speed of described object to be measured.
It should be noted that the function of each functional module of the terminal of the embodiment of the present invention and unit can be according to above-mentioned side
Method in method embodiment implements, and it implements the associated description that process is referred to said method embodiment, herein
Repeat no more.
In the embodiment of the present invention, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is waiting
Whne default take pictures interval when, include the second image of this object to be measured using second camera capture, according to this first image
This object to be measured can be obtained in this default displacement taken pictures in interval with this second image, thus according to this mobile away from
From the translational speed that can determine that this object to be measured with this default interval of taking pictures, it is possible to use the dual camera of terminal is convenient,
Accurately tested the speed, lifted playability and the practicality of terminal.
Refer to Fig. 7, be a kind of second embodiment structural representation of terminal provided in an embodiment of the present invention.The present embodiment
Described in terminal, comprising: processor 701, user interface 702, network interface 703 and memorizer 704.Wherein, in terminal
Processor 701, user interface 702, network interface 703 and memorizer 704 can be connected by bus or other modes, at this
In Fig. 7 shown in bright embodiment taking connected by bus as a example.
Wherein, user interface 702 is to realize the medium that user is interacted and information exchanges with terminal, and it embodies can
With include for output display screen (display), touch screen, for input keyboard (keyboard), be used for capture images
Photographic head etc., it should be noted that display screen herein and touch screen can be the integrated design, keyboard both can be real
Body keyboard or touch screen dummy keyboard, the keyboard can also being combined with touch screen virtualphase for entity.Processor 701 (or claim
Cpu (central processing unit, central processing unit)) be terminal calculating core and control core, it can solve
All kinds of instructions in analysis terminal and the Various types of data of processing terminal, for example: cpu can be used for parsing user and sent to terminal
Switching on and shutting down instruction, and control terminal carries out switching on and shutting down operation;For another example: cpu can transmit all kinds of between terminal inner structure
Interaction data, etc..Memorizer (memory) 704 is the memory device in terminal, is used for depositing program data.It is appreciated that
, memorizer 704 herein both can include the internal memory of terminal naturally it is also possible to include the extension that terminal is supported
Memorizer.Memorizer 704 provides memory space, and this memory space stores the operating system of terminal, it may include but be not limited to:
Windows system (a kind of operating system), a kind of android (ARIXTRA, Mobile operating system) system, a kind of ios (moving operation
System) system etc..Processor 701 is used for executing the program of memorizer 704 storage.Wherein:
Processor 701 for including the first image of object to be measured and default in experience using the first photographic head capture
Take pictures interval when, include the second image of described object to be measured using second camera capture.
Described processor 701, is additionally operable to according to described first image and object to be measured described in described second Image Acquisition
In the described default displacement taken pictures in interval.
Described processor 701, is additionally operable to described to be measured according to described displacement and described default interval determination of taking pictures
The translational speed of object.
In some feasible embodiments, described processor 701, it is additionally operable to according to the scene that tests the speed selected determines
Default interval of taking pictures.
In some feasible embodiments, described processor 701 obtains according to described first image and described second image
Take described object to be measured described default take pictures the displacement in interval concrete mode be:
Parsing described first image, obtains the first distance with described object to be measured when capturing described first image.
Parse described second image, obtain the second distance with described object to be measured when capturing described second image.
Obtain capture described image when and described object to be measured between line with capture described second image when
First angle of the line and described object to be measured between.
According to the described first distance, described second distance and object to be measured described in described first angle calcu-lation described pre-
If the displacement taken pictures in interval.
In some feasible embodiments, described processor 701 obtains according to described first image and described second image
Take described object to be measured described default take pictures the displacement in interval concrete mode be:
When capturing described first image, obtain the 3rd distance with described object to be measured using infrared sensor.
When capturing described second image, using described infrared sensor obtain with the 4th of described object to be measured away from
From.
Obtain capture described first image when and described object to be measured between line with capture described second figure
Second angle of the line and described object to be measured between during picture.
According to the described 3rd distance, described 4th distance and object to be measured described in described second angle calcu-lation described pre-
If the displacement taken pictures in interval.
In some feasible embodiments, described processor 701 according to described displacement and described default take pictures between
Every the concrete mode of the translational speed determining described object to be measured it is:
Judge described displacement whether in the range of predeterminable range.
If described displacement is in the range of described predeterminable range, according to described displacement and described default take pictures between
Every the translational speed determining described object to be measured.
If described displacement is not in the range of described predeterminable range, adjust described default interval of taking pictures, using described
First photographic head capture includes the 3rd image of described object to be measured, and described default after experience adjustment is taken pictures when being spaced,
Include the 4th image of described object to be measured using the capture of described second camera, and according to described 3rd image and described the
The described default displacement taken pictures in interval after the adjustment of object to be measured described in four Image Acquisition, and treated according to described
Test the speed the described default interval of taking pictures after the object described default displacement taken pictures in interval after the adjustment and adjustment, determination
The translational speed of described object to be measured.
In implementing, processor 701 described in the embodiment of the present invention, user interface 702, network interface 703 can
The implementation of the terminal described in the speed-measuring method of execution embodiment of the present invention Fig. 1 and Fig. 5 offer, also can perform the present invention
The implementation of the terminal described by embodiment Fig. 6, will not be described here.
In the embodiment of the present invention, terminal utilizes the first photographic head capture to include the first image of object to be measured, and is waiting
Whne default take pictures interval when, include the second image of this object to be measured using second camera capture, according to this first image
This object to be measured can be obtained in this default displacement taken pictures in interval with this second image, thus according to this mobile away from
From the translational speed that can determine that this object to be measured with this default interval of taking pictures, it is possible to use the dual camera of terminal is convenient,
Accurately tested the speed, lifted playability and the practicality of terminal.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible
Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (read-only memory, rom) or random access memory (random access
Memory, abbreviation ram) etc..
A kind of the speed-measuring method above embodiment of the present invention being provided and terminal are described in detail, used herein
Specific case is set forth to the principle of the present invention and embodiment, and the explanation of above example is only intended to help understand
The method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in tool
All will change on body embodiment and range of application, in sum, this specification content should not be construed as to the present invention
Restriction.
Claims (11)
1. a kind of speed-measuring method is it is characterised in that include:
Terminal utilizes the first photographic head capture to include the first image of object to be measured, and when experience is preset and taken pictures interval, profit
Include the second image of described object to be measured with second camera capture;
Described terminal according to described first image and object to be measured described in described second Image Acquisition described default take pictures between
Every interior displacement;
Described terminal determines the translational speed of described object to be measured according to described displacement and described default interval of taking pictures.
2. method according to claim 1 it is characterised in that described terminal utilize first photographic head capture include to be measured
Before first image of object, methods described also includes:
Described terminal determines described default interval of taking pictures according to the scene that tests the speed selected.
3. method according to claim 1 and 2 is it is characterised in that described terminal is according to described first image and described
Object to be measured described in two Image Acquisition is in the described default displacement taken pictures in interval, comprising:
Described terminal parses described first image, obtain when capturing described first image with the first of described object to be measured away from
From;
Described terminal parses described second image, obtain when capturing described second image with the second of described object to be measured away from
From;
Described terminal obtains when capturing described first image the line and described object to be measured between and is capturing described the
First angle of the line and described object to be measured between during two images;
Described terminal is according to the described first distance, described second distance and object to be measured described in described first angle calcu-lation in institute
State the default displacement taken pictures in interval.
4. method according to claim 1 and 2 is it is characterised in that described terminal is according to described first image and described
Object to be measured described in two Image Acquisition is in the described default displacement taken pictures in interval, comprising:
Described terminal when capturing described first image, using infrared sensor obtain with the 3rd of described object to be measured away from
From;
Described terminal, when capturing described second image, obtains the 4th with described object to be measured using described infrared sensor
Distance;
Described terminal obtains when capturing described first image the line and described object to be measured between and is capturing described the
Second angle of the line and described object to be measured between during two images;
Described terminal is according to the described 3rd distance, described 4th distance and object to be measured described in described second angle calcu-lation in institute
State the default displacement taken pictures in interval.
5. method according to claim 1 and 2 is it is characterised in that described terminal is according to described displacement and described pre-
If interval of taking pictures determines the translational speed of described object to be measured, comprising:
Described in described terminal judges, whether displacement is in the range of predeterminable range;
If described displacement is in the range of described predeterminable range, described terminal is according to described displacement and described default bat
Determine the translational speed of described object to be measured according to interval;
If described displacement is not in the range of described predeterminable range, described terminal adjustment is described to preset interval of taking pictures, and utilizes
Described first photographic head capture includes the 3rd image of described object to be measured, the described default interval of taking pictures after experience adjustment
When, the 4th image of described object to be measured is included using the capture of described second camera, and according to described 3rd image and institute
State the described default displacement taken pictures in interval after the adjustment of object to be measured described in the 4th Image Acquisition, and according to institute
Described default interval of taking pictures after stating the object to be measured described default displacement taken pictures in interval after the adjustment and adjusting,
Determine the translational speed of described object to be measured.
6. a kind of terminal is it is characterised in that include:
Trapping module, for including the first image of object to be measured using the first photographic head capture, and is experiencing default taking pictures
The second image of described object to be measured during interval, is included using second camera capture;
Acquisition module, for according to described first image and object to be measured described in described second Image Acquisition in described default bat
According to the displacement in interval;
Determining module, for determining the mobile speed of described object to be measured according to described displacement and described default interval of taking pictures
Degree.
7. terminal according to claim 6 it is characterised in that
Described determining module, is additionally operable to determine described default interval of taking pictures according to the scene that tests the speed selected.
8. the terminal according to claim 6 or 7 is it is characterised in that described acquisition module includes:
Resolution unit, for parsing described first image, obtain in described trapping module capture described first image with described
First distance of object to be measured;
Described resolution unit, is additionally operable to parse described second image, obtains when described trapping module captures described second image
Second distance with described object to be measured;
Acquiring unit, for obtaining the company and described object to be measured between when described trapping module captures described first image
Line and described trapping module capture described second image when and described object to be measured between line the first angle;
Computing unit, for be measured right according to the described first distance, described second distance and described first angle calcu-lation
As in the described default displacement taken pictures in interval.
9. the terminal according to claim 6 or 7 is it is characterised in that described acquisition module includes:
Acquiring unit, in described trapping module capture described first image, being obtained using infrared sensor and treating with described
Test the speed the 3rd distance of object;
Described acquiring unit, is additionally operable to, when described trapping module captures described second image, obtain using described infrared sensor
Take the 4th distance with described object to be measured;
Described acquiring unit, be additionally operable to obtain described trapping module capture described first image when with described object to be measured it
Between line and described trapping module capture described second image when and described object to be measured between line second folder
Angle;
Computing unit, for be measured right according to the described 3rd distance, described 4th distance and described second angle calcu-lation
As in the described default displacement taken pictures in interval.
10. the terminal according to claim 6 or 7 is it is characterised in that described determining module is according to described displacement and institute
State default interval of taking pictures and determine that the concrete mode of the translational speed of described object to be measured is:
Judge described displacement whether in the range of predeterminable range;
If described displacement is in the range of described predeterminable range, true according to described displacement and described default interval of taking pictures
The translational speed of fixed described object to be measured;
If described displacement is not in the range of described predeterminable range, adjust described default interval of taking pictures, using described first
Photographic head capture includes the 3rd image of described object to be measured, described default after experience adjustment take pictures interval when, utilization
Described second camera capture includes the 4th image of described object to be measured, and according to described 3rd image and described 4th figure
As obtaining the described object to be measured described default displacement taken pictures in interval after the adjustment, and according to described to be measured
Described default interval of taking pictures after the object described default displacement taken pictures in interval after the adjustment and adjustment, determine described in
The translational speed of object to be measured.
A kind of 11. terminals are it is characterised in that include: processor, the first photographic head and second camera, wherein:
Described processor for including the first image of object to be measured and pre- in experience using described first photographic head capture
If take pictures interval when, include the second image of described object to be measured using the capture of described second camera;
Described processor, is additionally operable to according to described first image and object to be measured described in described second Image Acquisition described pre-
If the displacement taken pictures in interval;
Described processor, is additionally operable to determine the shifting of described object to be measured according to described displacement and described default interval of taking pictures
Dynamic speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796173.8A CN106370883B (en) | 2016-08-31 | 2016-08-31 | Speed measurement method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796173.8A CN106370883B (en) | 2016-08-31 | 2016-08-31 | Speed measurement method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106370883A true CN106370883A (en) | 2017-02-01 |
CN106370883B CN106370883B (en) | 2020-05-19 |
Family
ID=57899952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610796173.8A Active CN106370883B (en) | 2016-08-31 | 2016-08-31 | Speed measurement method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106370883B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107255812A (en) * | 2017-06-30 | 2017-10-17 | 努比亚技术有限公司 | Speed-measuring method, mobile terminal and storage medium based on 3D technology |
CN108398574A (en) * | 2018-01-19 | 2018-08-14 | 张家港工领信息科技有限公司 | A kind of positioning and monitoring method based on infrared ray |
CN111307047A (en) * | 2020-03-19 | 2020-06-19 | 南京信息工程大学 | Portable dual-purpose instrument for measuring height and speed and use method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005260885A (en) * | 2004-03-15 | 2005-09-22 | Kyocera Mita Corp | Communication terminal device |
CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
CN104155470A (en) * | 2014-07-15 | 2014-11-19 | 华南理工大学 | Detecting method and system based on binocular camera for real-time vehicle speed |
-
2016
- 2016-08-31 CN CN201610796173.8A patent/CN106370883B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005260885A (en) * | 2004-03-15 | 2005-09-22 | Kyocera Mita Corp | Communication terminal device |
CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
CN104155470A (en) * | 2014-07-15 | 2014-11-19 | 华南理工大学 | Detecting method and system based on binocular camera for real-time vehicle speed |
Non-Patent Citations (1)
Title |
---|
H.ABDUL SHABEERA,: "《Averting mobile phone use while driving and technique to》", 《PROCEDIA ENGINEERING》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107255812A (en) * | 2017-06-30 | 2017-10-17 | 努比亚技术有限公司 | Speed-measuring method, mobile terminal and storage medium based on 3D technology |
CN108398574A (en) * | 2018-01-19 | 2018-08-14 | 张家港工领信息科技有限公司 | A kind of positioning and monitoring method based on infrared ray |
CN111307047A (en) * | 2020-03-19 | 2020-06-19 | 南京信息工程大学 | Portable dual-purpose instrument for measuring height and speed and use method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106370883B (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105827951B (en) | A kind of Moving Objects photographic method and mobile terminal | |
CN108989678B (en) | Image processing method and mobile terminal | |
CN110169056A (en) | A kind of method and apparatus that dynamic 3 D image obtains | |
CN108600612B (en) | Photographing method and mobile terminal | |
CN108777766B (en) | Multi-person photographing method, terminal and storage medium | |
CN110059686B (en) | Character recognition method, device, equipment and readable storage medium | |
CN103838367A (en) | Orientation correction method for electronic device used to perform facial recognition and electronic device thereof | |
WO2016078296A1 (en) | Garment try-on method and apparatus | |
CN106716989A (en) | Imaging device, imaging method, and program | |
CN102004906A (en) | Face identification system and method | |
CN103017730A (en) | Single-camera ranging method and single-camera ranging system | |
CN110933303A (en) | Photographing method and electronic equipment | |
CN111752817A (en) | Method, device and equipment for determining page loading duration and storage medium | |
CN106370883A (en) | Speed measurement method and terminal | |
CN107255813A (en) | Distance-finding method, mobile terminal and storage medium based on 3D technology | |
EP2606469B1 (en) | Input method | |
CN102984369A (en) | Method and system for viewing photo album in mobile terminal | |
JP2017227466A (en) | Measurement support device, and measurement support method | |
CN103369127B (en) | Electronic installation and image pickup method | |
CN110519517B (en) | Copy guiding method, electronic device and computer readable storage medium | |
CN111953964A (en) | Ambiguity detection method, electronic device and storage medium | |
CN107124547A (en) | Double-camera photographing method and device | |
CN104601884B (en) | A kind of camera control method and terminal | |
CN107952240B (en) | Game control method and device realized by using selfie stick and computing equipment | |
CN105227844A (en) | image acquiring method and device, mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |