CN105301279B - A kind of speed measurement method based on camera, device and mobile terminal - Google Patents
A kind of speed measurement method based on camera, device and mobile terminal Download PDFInfo
- Publication number
- CN105301279B CN105301279B CN201510650089.0A CN201510650089A CN105301279B CN 105301279 B CN105301279 B CN 105301279B CN 201510650089 A CN201510650089 A CN 201510650089A CN 105301279 B CN105301279 B CN 105301279B
- Authority
- CN
- China
- Prior art keywords
- distance
- imaging
- displacement
- under test
- camera
- 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.)
- Expired - Fee Related
Links
- 238000000691 measurement method Methods 0.000 title claims abstract description 15
- 238000003384 imaging method Methods 0.000 claims abstract description 82
- 238000006073 displacement reaction Methods 0.000 claims abstract description 75
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000005259 measurement Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000009347 mechanical transmission Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明公开了一种基于摄像头的速度测量方法、装置及移动终端,其中,方法包括:在摄像头对焦且位置固定不动后,获取待测物体在摄像头感光面上的两次成像,感光面平行于待测物体的行进路线;根据两次成像在感光面上的位置,计算出两次成像之间的距离,作为待测物体的成像位移;根据像距和镜头的焦距计算出物距;根据成像位移、像距和物距计算出待测物体的实际位移;根据实际位移和两次成像的时间间隔计算出待测物体的速度。本发明基于移动终端自带的摄像头,对运动物体进行速度测量,无需添加硬件设备,解决了测速设备结构复杂的问题,本发明的测速装置结构简单,成本低廉。
The invention discloses a camera-based speed measurement method, device and mobile terminal, wherein the method includes: after the camera is focused and its position is fixed, acquiring two imaging images of the object to be measured on the photosensitive surface of the camera, and the photosensitive surface is parallel Based on the travel route of the object to be measured; according to the position of the two images on the photosensitive surface, calculate the distance between the two images as the imaging displacement of the object to be measured; calculate the object distance according to the image distance and the focal length of the lens; The actual displacement of the object to be measured is calculated by imaging displacement, image distance and object distance; the speed of the object to be measured is calculated according to the actual displacement and the time interval between two imaging. Based on the built-in camera of the mobile terminal, the present invention measures the speed of moving objects without adding hardware equipment, and solves the problem of complex structure of the speed measuring device. The speed measuring device of the present invention has a simple structure and low cost.
Description
技术领域technical field
本发明属于移动终端技术领域,涉及一种基于摄像头的速度测量方法、装置及移动终端。The invention belongs to the technical field of mobile terminals, and relates to a camera-based speed measurement method, device and mobile terminal.
背景技术Background technique
在交通工程上,速度是计量与评估道路绩效和交通状况的基本重要数据之一。速度数据的搜集方法有许多种,包括人工测量固定距离行驶时间法、压力皮管法、线圈法、影像处理法、雷达测速法与雷射测速法等。其中雷达测速法属于精确度高的方法,因此被广泛采用。In traffic engineering, speed is one of the basic important data for measuring and evaluating road performance and traffic conditions. There are many ways to collect speed data, including manual measurement of fixed distance travel time, pressure tube method, coil method, image processing method, radar speed measurement method and laser speed measurement method. Among them, the radar speed measurement method is a method with high accuracy, so it is widely used.
但是,雷达是一个复杂的电子机械机构,其包括天线、雷达罩、馈线、天线座、雷达伺服机械传动装置、雷达发射机、雷达机箱、机柜及其附件、特种机电装置,为保证雷达性能和质量,对雷达制造工艺的要求也十分严格,因此,雷达测速设备的制造成本较高。However, radar is a complex electromechanical mechanism, which includes antenna, radome, feeder, antenna base, radar servo mechanical transmission, radar transmitter, radar case, cabinet and its accessories, special electromechanical devices, in order to ensure radar performance and The quality and the requirements for the radar manufacturing process are also very strict. Therefore, the manufacturing cost of radar speed measuring equipment is relatively high.
发明内容Contents of the invention
有鉴于此,本发明的目的是提出一种基于摄像头的速度测量方法、装置及移动终端,以解决测速设备结构复杂的问题,降低制造成本。In view of this, the object of the present invention is to propose a camera-based speed measurement method, device and mobile terminal to solve the problem of complex structure of speed measurement equipment and reduce manufacturing costs.
为实现上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:
第一方面,本发明实施例提供了一种基于摄像头的速度测量方法,包括:In a first aspect, an embodiment of the present invention provides a camera-based speed measurement method, including:
在摄像头对焦且位置固定不动后,获取待测物体在摄像头感光面上的两次成像,所述感光面平行于所述待测物体的行进路线;After the camera is focused and the position is fixed, two images of the object to be measured are obtained on the photosensitive surface of the camera, and the photosensitive surface is parallel to the traveling route of the object to be measured;
根据所述两次成像在所述感光面上的位置,计算出所述两次成像之间的距离,作为所述待测物体的成像位移;According to the positions of the two imagings on the photosensitive surface, calculate the distance between the two imagings as the imaging displacement of the object to be measured;
根据像距和镜头的焦距计算出物距;Calculate the object distance according to the image distance and the focal length of the lens;
根据所述成像位移、像距和物距计算出所述待测物体的实际位移;calculating the actual displacement of the object to be measured according to the imaging displacement, image distance and object distance;
根据所述实际位移和所述两次成像的时间间隔计算出所述待测物体的速度。The velocity of the object to be measured is calculated according to the actual displacement and the time interval between the two imagings.
第二方面,本发明实施例提供了一种基于摄像头的速度测量装置,包括:In a second aspect, an embodiment of the present invention provides a camera-based speed measurement device, including:
成像获取模块,用于在摄像头对焦且位置固定不动后,获取待测物体在摄像头感光面上的两次成像,所述感光面平行于所述待测物体的行进路线;An imaging acquisition module, configured to obtain two images of the object to be measured on the photosensitive surface of the camera after the camera focuses and the position is fixed, and the photosensitive surface is parallel to the traveling route of the object to be measured;
成像位移计算模块,用于根据所述两次成像在所述感光面上的位置,计算出所述两次成像之间的距离,作为所述待测物体的成像位移;An imaging displacement calculation module, configured to calculate the distance between the two imagings according to the positions of the two imagings on the photosensitive surface as the imaging displacement of the object to be measured;
物距计算模块,用于根据像距和镜头的焦距计算出物距;The object distance calculation module is used to calculate the object distance according to the image distance and the focal length of the lens;
实际位移计算模块,用于根据所述成像位移、像距和物距计算出所述待测物体的实际位移;An actual displacement calculation module, configured to calculate the actual displacement of the object to be measured according to the imaging displacement, image distance and object distance;
速度计算模块,用于根据所述实际位移和所述两次成像的时间间隔计算出所述待测物体的速度。A velocity calculation module, configured to calculate the velocity of the object to be measured according to the actual displacement and the time interval between the two imagings.
第三方面,本发明实施例提供了一种移动终端,所述移动终端包括上述第二方面所述的基于摄像头的速度测量装置和摄像头。In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes the camera-based speed measurement device and a camera described in the second aspect above.
本发明的有益效果是:本发明提供的一种基于摄像头的速度测量方法、装置及移动终端,在测待测物体的速度时,使移动终端的摄像头镜面平行于待测物体的行进路线,并进行对焦,完成对焦后,迅速对待测物体进行连拍,且拍照过程中移动终端固定不动,获取待测物体在摄像头感光面上的两次成像;根据计算出的成像位移、物距、像距以及可以预先设置的连拍时间间隔,即两次成像的时间间隔,计算出待测物体的速度,解决了测速设备结构复杂的问题,无需增加硬件装置,降低了制造成本。The beneficial effect of the present invention is: a camera-based speed measurement method, device and mobile terminal provided by the present invention, when measuring the speed of the object to be measured, make the camera mirror surface of the mobile terminal parallel to the travel route of the object to be measured, and Carry out focusing, after finishing focusing, quickly take continuous shooting of the object to be measured, and the mobile terminal is fixed during the shooting process, and obtain two imaging images of the object to be measured on the photosensitive surface of the camera; according to the calculated imaging displacement, object distance, and image distance And the continuous shooting time interval that can be set in advance, that is, the time interval between two imaging, calculates the speed of the object to be measured, solves the problem of complex structure of the speed measuring equipment, does not need to increase the hardware device, and reduces the manufacturing cost.
附图说明Description of drawings
下面将通过参照附图详细描述本发明的示例性实施例,使本领域的普通技术人员更清楚本发明的上述及其他特征和优点,附图中:Exemplary embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those of ordinary skill in the art will be more aware of the above-mentioned and other features and advantages of the present invention. In the accompanying drawings:
图1是本发明实施例一提供的基于摄像头的速度测量方法的流程示意图;FIG. 1 is a schematic flowchart of a camera-based speed measurement method provided in Embodiment 1 of the present invention;
图2是本发明实施例一提供的利用移动终端的摄像头测速时的示意图;FIG. 2 is a schematic diagram of speed measurement using a camera of a mobile terminal provided by Embodiment 1 of the present invention;
图3是本发明实施例一提供的摄像头中的马达受力发生位移变化的示意图;Fig. 3 is a schematic diagram of displacement changes of the motor in the camera provided by Embodiment 1 of the present invention under force;
图4是本发明实施例一提供的透镜与感光面位置关系示意图;4 is a schematic diagram of the positional relationship between the lens and the photosensitive surface provided by Embodiment 1 of the present invention;
图5是本发明实施例一提供的待测物体成像示意图;Fig. 5 is a schematic diagram of the imaging of the object to be measured provided by Embodiment 1 of the present invention;
图6是本发明实施例二提供的基于摄像头的速度测量装置的结构框图。Fig. 6 is a structural block diagram of a camera-based speed measuring device provided in Embodiment 2 of the present invention.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图1是本发明实施例一提供的基于摄像头的速度测量方法的流程示意图。该方法适用于测量可视距离内物体的直线移动速度的情况,该方法可以由设置在移动终端中的基于摄像头的速度测量装置来执行。该装置可以由软件和/或硬件的方式来实现。如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a camera-based speed measurement method provided by Embodiment 1 of the present invention. The method is suitable for measuring the linear moving speed of an object within a visible distance, and the method can be executed by a camera-based speed measuring device set in a mobile terminal. The device can be realized by software and/or hardware. As shown in Figure 1, the method includes:
步骤110、在摄像头对焦且位置固定不动后,获取待测物体在摄像头感光面上的两次成像,其中,感光面平行于待测物体的行进路线。Step 110 , after the camera is focused and its position is fixed, acquire two images of the object to be measured on the photosensitive surface of the camera, wherein the photosensitive surface is parallel to the traveling route of the object to be measured.
示例性的,在测量待测物体的速度时,点击移动终端上速度测量的图标,移动终端自动开启摄像头;参见图2,由于待测物体15到摄像头的距离不远,感光面与待测物体15的行进路线之间小的角度偏差,对测量结果影响不大,因此,在实际操作中,应尽量使移动终端的平面与待测物体15的行进路线(图中待测物体15经过的箭头线)平行,以保证摄像头感光面尽可能平行于待测物体15的行进路线;在待测物体15进入镜头视野范围内,完成对焦后,保持移动终端固定不动,迅速对待测物体15进行连拍,上述速度测量装置获取待测物体15在摄像头感光面上的两次成像。Exemplarily, when measuring the speed of the object to be measured, click the icon of speed measurement on the mobile terminal, and the mobile terminal automatically turns on the camera; referring to FIG. The small angular deviation between the travel routes of 15 has little influence on the measurement results. Therefore, in actual operation, the plane of the mobile terminal should be as close as possible to the travel route of the object to be measured 15 (the arrow passing through the object to be measured 15 in the figure line) parallel to ensure that the photosensitive surface of the camera is as parallel as possible to the traveling route of the object 15 to be measured; when the object 15 to be measured enters the field of view of the lens and after focusing is completed, keep the mobile terminal fixed and quickly connect the object 15 to be measured. The above-mentioned speed measurement device acquires two images of the object to be measured 15 on the photosensitive surface of the camera.
步骤120、根据两次成像在感光面上的位置,计算出两次成像之间的距离,作为待测物体的成像位移。Step 120 , according to the positions of the two imagings on the photosensitive surface, calculate the distance between the two imagings as the imaging displacement of the object to be measured.
由于感光面保持不动,因此,对于运动的待测物体来说,其在不同时刻在感光面上成像的位置也不同,速度测量装置获取两次成像在感光面上的位置,根据两次成像在感光面上的位置,计算出两次成像之间的距离,将该距离作为待测物体的成像位移。Since the photosensitive surface remains still, for a moving object to be measured, its imaging position on the photosensitive surface is different at different times. At the position on the photosensitive surface, the distance between the two imaging is calculated, and the distance is taken as the imaging displacement of the object to be measured.
优选的,该步骤可包括:分析对比两次成像,选取两次成像对应位置处的像点作为两个参考点;计算出两个参考点之间的距离,作为待测物体的成像位移。将两次成像进行图像处理,在其中一次成像中选取一像点作为参考点,对另一次成像与上述其中一次成像进行对比分析,选取对应位置处的像点作为另一参考点,计算两个参考点之间的距离,得到待测物体的成像位移。通过参考点计算成像位移,使得测量结果更准确。Preferably, this step may include: analyzing and comparing the two imagings, selecting image points at corresponding positions of the two imagings as two reference points; calculating the distance between the two reference points as the imaging displacement of the object to be measured. Perform image processing on the two imaging, select an image point in one of the imaging as a reference point, compare and analyze the other imaging with the above-mentioned one of the imaging, select the image point at the corresponding position as another reference point, and calculate two The distance between the reference points is used to obtain the imaging displacement of the object to be measured. The imaging displacement is calculated through the reference point, which makes the measurement result more accurate.
步骤130、根据像距和镜头的焦距计算出物距。Step 130, calculate the object distance according to the image distance and the focal length of the lens.
其中,像距可以根据驱动电流的大小计算出来。本实施例中,参见图3和图4,马达10设置在摄像头的支架12内,并通过弹簧11牵引,以平衡马达10受到的磁场力F,使马达10可以固定在支架12某个位置,以此来带动摄像头中的透镜13伸缩。其中,支架12的位置及其长度限制了透镜13到感光面14的距离即像距的最小值xmin和最大值xmax,透镜13的初始位置在像距最小值处。Wherein, the image distance can be calculated according to the magnitude of the driving current. In this embodiment, referring to Fig. 3 and Fig. 4, the motor 10 is arranged in the bracket 12 of the camera, and is pulled by a spring 11 to balance the magnetic field force F received by the motor 10, so that the motor 10 can be fixed at a certain position of the bracket 12, This drives the lens 13 in the camera to expand and contract. Wherein, the position and length of the bracket 12 limit the distance from the lens 13 to the photosensitive surface 14 ie the minimum value x min and maximum value x max of the image distance, and the initial position of the lens 13 is at the minimum value of the image distance.
具体的,摄像头支架12内分布有小型磁场,移动终端中的控制器控制驱动电路,通过驱动电路为马达10提供大小为I的驱动电流,驱动电流通过马达10线圈,使通电线圈在磁场中受到磁场力F,且该磁场力大小F=KBI,其中,K为常数,B为磁场强度,I为驱动电流。此时,马达10还受到与磁场力方向相反的弹簧牵引力F弹的作用,且该弹簧牵引力大小F弹=kX,其中,k为弹簧系数,X为马达10发生的位移。当F弹与F平衡时,马达10固定在支架12内,透镜13停止移动,由此,F弹=F,可得像距因此,基于摄像头的速度测量装置获取驱动电流的大小,便可计算出像距。Specifically, a small magnetic field is distributed in the camera bracket 12, and the controller in the mobile terminal controls the drive circuit to provide the motor 10 with a drive current of 1 through the drive circuit, and the drive current passes through the coil of the motor 10, so that the energized coil is subjected to Magnetic field force F, and the magnitude of the magnetic field force F=KBI, wherein, K is a constant, B is the magnetic field strength, and I is the driving current. At this time, the motor 10 is also affected by the spring traction force F spring opposite to the direction of the magnetic field force, and the magnitude of the spring traction force F spring =kX, where k is the spring coefficient, and X is the displacement of the motor 10 . When the F bullet and F balance, the motor 10 is fixed in the bracket 12, and the lens 13 stops moving, thus, F bullet =F, it can be obtained image distance Therefore, the image distance can be calculated by obtaining the magnitude of the driving current based on the speed measuring device of the camera.
具体的,基于摄像头的速度测量装置获得像距和焦距后,基于下述公式计算物距:Specifically, after the camera-based speed measurement device obtains the image distance and focal length, the object distance is calculated based on the following formula:
其中,u为物距,表示待测物体到摄像头透镜的距离;v为像距,表示透镜到感光面的距离;f为焦距,表示透镜中心到焦点的距离。Among them, u is the object distance, which means the distance from the object to be measured to the camera lens; v is the image distance, which means the distance from the lens to the photosensitive surface; f is the focal length, which means the distance from the lens center to the focal point.
本实施例中,移动终端镜头的焦距可以是一个常数。In this embodiment, the focal length of the lens of the mobile terminal may be a constant.
需要说明的是,本实施例中的像距还可以通过摄像头模组自测,基于摄像头的速度测量装置直接获取测量结果。It should be noted that the image distance in this embodiment can also be self-tested by the camera module, and the measurement result can be directly obtained by the camera-based speed measurement device.
步骤140、根据成像位移、像距和物距计算出待测物体的实际位移。Step 140, calculate the actual displacement of the object to be measured according to the imaging displacement, image distance and object distance.
进一步的,基于摄像头的速度测量装置可根据成像位移、像距和物距计算出待测物体的实际位移。参见图5,第一次拍照时,待测物体15透过透镜13在感光面14上成第一次成像16,第二次拍照时,待测物体15透过透镜13在感光面14上成第二次成像17,第一次成像16到第二次成像17的位移为成像位移,由于感光面14平行于待测物体15的行进路线,因此,成像位移y平行于待测物体15的实际位移x,由相似三角形判定定理,具体可基于下述公式计算待测物体的实际位移大小:Further, the camera-based speed measurement device can calculate the actual displacement of the object to be measured according to the imaging displacement, image distance and object distance. Referring to Fig. 5, when taking a photo for the first time, the object to be measured 15 passes through the lens 13 and forms an image 16 on the photosensitive surface 14 for the first time, and when taking a photo for the second time, the object to be measured 15 passes through the lens 13 and forms an image 16 on the photosensitive surface 14. The second imaging 17, the displacement from the first imaging 16 to the second imaging 17 is the imaging displacement. Since the photosensitive surface 14 is parallel to the travel path of the object to be measured 15, the imaging displacement y is parallel to the actual distance of the object to be measured 15. The displacement x is determined by the similar triangle theorem, and the actual displacement of the object to be measured can be calculated based on the following formula:
其中,x为待测物体的实际位移;y为待测物体的成像位移。Among them, x is the actual displacement of the object to be measured; y is the imaging displacement of the object to be measured.
步骤150、根据实际位移和两次成像的时间间隔计算出待测物体的速度。Step 150, calculate the velocity of the object to be measured according to the actual displacement and the time interval between two imagings.
示例性的,在连拍前可设定连拍的时间间隔,根据连拍的时间间隔确定两次成像的时间间隔,最后根据实际位移和两次成像的时间间隔计算出待测物体的速度,具体可基于下述公式计算待测物体的速度:Exemplarily, the time interval of continuous shooting can be set before the continuous shooting, the time interval between two imaging is determined according to the time interval of continuous shooting, and finally the speed of the object to be measured is calculated according to the actual displacement and the time interval between two imaging, Specifically, the speed of the object to be measured can be calculated based on the following formula:
其中,V为待测物体的速度,Δt为两次成像的时间间隔。Among them, V is the speed of the object to be measured, and Δt is the time interval between two imaging.
本发明实施例一提供的基于摄像头的速度测量方法,在测待测物体的速度时,使移动终端的摄像头镜面平行于待测物体的行进路线,在待测物体进入摄像头镜头视野时进行对焦,完成对焦后,迅速对待测物体进行连拍,且拍照过程中移动终端固定不动,获取待测物体在摄像头感光面上的两次成像;根据计算出的成像位移、物距、像距以及可以预先设置的连拍时间间隔,即两次成像的时间间隔,计算出待测物体的速度,解决了测速设备结构复杂的问题,无需增加硬件装置,降低了制造成本。In the camera-based speed measurement method provided by Embodiment 1 of the present invention, when measuring the speed of the object to be measured, the camera mirror surface of the mobile terminal is parallel to the traveling route of the object to be measured, and the focus is performed when the object to be measured enters the field of view of the camera lens. After the focus is completed, the object to be measured is quickly taken continuously, and the mobile terminal is fixed during the shooting process to obtain two images of the object to be measured on the photosensitive surface of the camera; according to the calculated imaging displacement, object distance, image distance and The set continuous shooting time interval, that is, the time interval between two imagings, calculates the speed of the object to be measured, which solves the problem of complex structure of the speed measuring device, does not need to increase hardware devices, and reduces the manufacturing cost.
实施例二Embodiment two
图6是本发明实施例二提供的基于摄像头的速度测量装置的结构框图。如图6所示,该装置包括:成像获取模块20、成像位移计算模块21、物距计算模块22、实际位移计算模块23和速度计算模块24。Fig. 6 is a structural block diagram of a camera-based speed measuring device provided in Embodiment 2 of the present invention. As shown in FIG. 6 , the device includes: an imaging acquisition module 20 , an imaging displacement calculation module 21 , an object distance calculation module 22 , an actual displacement calculation module 23 and a speed calculation module 24 .
其中,成像获取模块20用于在摄像头对焦且位置固定不动后,获取待测物体在摄像头感光面上的两次成像,其中,感光面平行于待测物体的行进路线;Wherein, the imaging acquisition module 20 is used to obtain two imaging images of the object to be measured on the photosensitive surface of the camera after the camera is focused and the position is fixed, wherein the photosensitive surface is parallel to the traveling route of the object to be measured;
成像位移计算模块21用于根据两次成像在感光面上的位置,计算出两次成像之间的距离,作为待测物体的成像位移;The imaging displacement calculation module 21 is used to calculate the distance between the two imagings according to the positions of the two imagings on the photosensitive surface as the imaging displacement of the object to be measured;
物距计算模块22用于根据像距和镜头的焦距计算出物距;The object distance calculation module 22 is used to calculate the object distance according to the focal length of the image distance and the lens;
实际位移计算模块23用于根据成像位移、像距和物距计算出待测物体的实际位移;The actual displacement calculation module 23 is used to calculate the actual displacement of the object to be measured according to the imaging displacement, image distance and object distance;
速度计算模块24用于根据实际位移和两次成像的时间间隔计算出待测物体的速度。The velocity calculation module 24 is used to calculate the velocity of the object to be measured according to the actual displacement and the time interval between two imagings.
优选的,上述方案中,成像位移计算模块21包括:Preferably, in the above scheme, the imaging displacement calculation module 21 includes:
参考点选取单元,用于分析对比两次成像,选取两次成像对应位置处的像点作为两个参考点;The reference point selection unit is used to analyze and compare the two imagings, and select the image points at the corresponding positions of the two imagings as two reference points;
成像位移计算单元,用于计算出两个参考点之间的距离,作为待测物体的成像位移。The imaging displacement calculation unit is used to calculate the distance between two reference points as the imaging displacement of the object to be measured.
进一步的,上述方案中,物距计算模块22具体用于:Further, in the above scheme, the object distance calculation module 22 is specifically used for:
基于下述公式计算物距:The object distance is calculated based on the following formula:
其中,u为物距,表示摄像头透镜到待测物体行进路线的距离;v为像距,表示透镜到感光面的距离;f为焦距,表示透镜中心到焦点的距离。Among them, u is the object distance, indicating the distance from the camera lens to the traveling route of the object to be measured; v is the image distance, indicating the distance from the lens to the photosensitive surface; f is the focal length, indicating the distance from the lens center to the focal point.
进一步的,上述方案中,实际位移计算模块23具体用于:Further, in the above scheme, the actual displacement calculation module 23 is specifically used for:
基于下述公式计算待测物体的实际位移:Calculate the actual displacement of the object to be measured based on the following formula:
其中,x为待测物体的实际位移;y为待测物体的成像位移。Among them, x is the actual displacement of the object to be measured; y is the imaging displacement of the object to be measured.
本发明实施例二所提供的基于摄像头的速度测量装置可以用于执行本发明实施例所提供的基于摄像头的速度测量方法,具备相应的功能和有益效果。The camera-based speed measurement device provided in Embodiment 2 of the present invention can be used to execute the camera-based speed measurement method provided in the embodiment of the present invention, and has corresponding functions and beneficial effects.
实施例三Embodiment Three
本发明实施例三提供的移动终端,包括本发明实施例二提供的基于摄像头的速度测量装置和摄像头。该移动终端可通过本发明提供的基于摄像头的速度测量装置,采用相应的速度测量方法对可视范围内物体的移动速度进行测量。The mobile terminal provided in the third embodiment of the present invention includes the camera-based speed measuring device and the camera provided in the second embodiment of the present invention. The mobile terminal can use the camera-based speed measurement device provided by the present invention to measure the moving speed of objects within the visible range by using a corresponding speed measurement method.
其中,移动终端可以为智能手机、平板电脑或个人数字助理等。Wherein, the mobile terminal may be a smart phone, a tablet computer, or a personal digital assistant.
本发明实施例三所提供的移动终端,包括本发明实施例所提供的基于摄像头的速度测量装置,具备相应的功能和有益效果。The mobile terminal provided by Embodiment 3 of the present invention includes the camera-based speed measuring device provided by the embodiment of the present invention, and has corresponding functions and beneficial effects.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510650089.0A CN105301279B (en) | 2015-10-09 | 2015-10-09 | A kind of speed measurement method based on camera, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510650089.0A CN105301279B (en) | 2015-10-09 | 2015-10-09 | A kind of speed measurement method based on camera, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105301279A CN105301279A (en) | 2016-02-03 |
CN105301279B true CN105301279B (en) | 2018-06-01 |
Family
ID=55198783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510650089.0A Expired - Fee Related CN105301279B (en) | 2015-10-09 | 2015-10-09 | A kind of speed measurement method based on camera, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105301279B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109856422B (en) * | 2019-02-19 | 2022-03-22 | 成都京东方光电科技有限公司 | Acceleration sensor, acceleration measuring device and method |
CN111896766A (en) * | 2020-07-08 | 2020-11-06 | 谢超奇 | Group migration speed measuring system and method |
CN111899525A (en) * | 2020-08-18 | 2020-11-06 | 重庆紫光华山智安科技有限公司 | Distance measuring method, distance measuring device, electronic device, and storage medium |
CN114125305A (en) * | 2021-12-01 | 2022-03-01 | 西安维沃软件技术有限公司 | Shooting method, device and equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7330569B2 (en) * | 2004-10-08 | 2008-02-12 | Huei-Yung Lin | Measurement method using blurred images |
CN101753708A (en) * | 2008-12-22 | 2010-06-23 | 康佳集团股份有限公司 | Mobile phone capable of measuring velocity and method for measuring movement velocity of object by mobile phone |
CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
CN102798347A (en) * | 2012-08-28 | 2012-11-28 | 上海金玺实验室有限公司 | Measurement method of displacement and speed |
CN102980561A (en) * | 2012-11-30 | 2013-03-20 | 广东欧珀移动通信有限公司 | Distance measuring method and distance measuring device of mobile terminal |
CN103063138A (en) * | 2013-01-24 | 2013-04-24 | 惠州Tcl移动通信有限公司 | Methods for measuring size and speed of object by camera of mobile terminal, and mobile terminal |
CN103969466A (en) * | 2014-05-09 | 2014-08-06 | 中国联合网络通信集团有限公司 | Method for measuring speed of vehicle and corresponding terminal |
CN104133076A (en) * | 2014-07-30 | 2014-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Speed measurement device and method and terminal |
-
2015
- 2015-10-09 CN CN201510650089.0A patent/CN105301279B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7330569B2 (en) * | 2004-10-08 | 2008-02-12 | Huei-Yung Lin | Measurement method using blurred images |
CN101753708A (en) * | 2008-12-22 | 2010-06-23 | 康佳集团股份有限公司 | Mobile phone capable of measuring velocity and method for measuring movement velocity of object by mobile phone |
CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
CN102798347A (en) * | 2012-08-28 | 2012-11-28 | 上海金玺实验室有限公司 | Measurement method of displacement and speed |
CN102980561A (en) * | 2012-11-30 | 2013-03-20 | 广东欧珀移动通信有限公司 | Distance measuring method and distance measuring device of mobile terminal |
CN103063138A (en) * | 2013-01-24 | 2013-04-24 | 惠州Tcl移动通信有限公司 | Methods for measuring size and speed of object by camera of mobile terminal, and mobile terminal |
CN103969466A (en) * | 2014-05-09 | 2014-08-06 | 中国联合网络通信集团有限公司 | Method for measuring speed of vehicle and corresponding terminal |
CN104133076A (en) * | 2014-07-30 | 2014-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Speed measurement device and method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105301279A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103591894B (en) | The method and apparatus of object length is measured by camera | |
US10061182B2 (en) | Systems and methods for autofocus trigger | |
CN108020827B (en) | Mobile imaging platform calibration | |
CN102980561B (en) | A kind of mobile terminal distance-finding method and device | |
CN105301279B (en) | A kind of speed measurement method based on camera, device and mobile terminal | |
CN105763869B (en) | Test, method of adjustment and the adjusting apparatus of photographic device | |
CN104469168A (en) | Shooting module and automatic focusing method thereof | |
CN104469169A (en) | Phase ranging camera shooting module and automatic focusing method thereof | |
US20180184070A1 (en) | Method and system for depth estimation based upon object magnification | |
CN105136042A (en) | A height measurement method, device and mobile terminal | |
JP2018509657A (en) | Extended search range for depth-assisted autofocus | |
CN105635570B (en) | Shooting preview method and system | |
CN104764401B (en) | A kind of engine flexible angle of cant and center of oscillation measuring method | |
CN105227835A (en) | A kind of assisted focused method and apparatus | |
CN102853810A (en) | Method and system for measuring object distance by mobile terminal | |
CN101191979A (en) | Autofocus method and system | |
CN107025666A (en) | Single-camera-based depth detection method, device, and electronic device | |
WO2017117749A1 (en) | Follow focus system and method based on multiple ranging approaches, and photographing system | |
CN103676455B (en) | Automatic debugging method and system for optical shockproof camera module | |
CN105827937A (en) | Imaging device and imaging method | |
CN103791891A (en) | Device and method for testing electric appliance three-dimensional dynamic characteristics based on one camera | |
CN103606155B (en) | Camera view field calibration method and device | |
JP2012113204A (en) | Imaging device | |
KR101674298B1 (en) | Method for distance calculation using a camera lens focal length information | |
TWI553395B (en) | Camera module testing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180601 |
|
CF01 | Termination of patent right due to non-payment of annual fee |