CN1254956C - Calibrating method of pick-up device under condition of traffic monitering - Google Patents
Calibrating method of pick-up device under condition of traffic monitering Download PDFInfo
- Publication number
- CN1254956C CN1254956C CN200410017703.1A CN200410017703A CN1254956C CN 1254956 C CN1254956 C CN 1254956C CN 200410017703 A CN200410017703 A CN 200410017703A CN 1254956 C CN1254956 C CN 1254956C
- Authority
- CN
- China
- Prior art keywords
- camera
- lines
- calibration
- straight line
- coordinates
- 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
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000003287 optical effect Effects 0.000 claims description 3
- 230000009466 transformation Effects 0.000 claims description 2
- 241000283070 Equus zebra Species 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000009434 installation Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Traffic Control Systems (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
一种交通监视环境下的摄像机标定方法,从交通场景中选择出一组彼此间隔已知的三条平行边和一条斜率已知的与平行线相交的直线作为所需要的标定目标,找到它们在图像中所对应的各投影直线并求出各投影直线的所有交点坐标,根据这些数据求得摄像机的焦距、方向和位置参数。本发明可以利用城市交通场景内类似斑马线以及包含道路两侧边缘在内的车道线等易于提取的典型特征,根据路面上诸多特殊直线的分布信息,进行摄像机相关参数的确定,方法实现简单,针对性和通用性好,且具有线性计算复杂度,可应用于传统标定方法不可能应用的诸多交通监控场合下完成摄像机标定。
A camera calibration method in a traffic surveillance environment, select a group of three parallel sides with known intervals from each other and a straight line intersecting the parallel lines with a known slope from the traffic scene as the required calibration targets, find them in the image Each projected straight line corresponding to , and all intersection coordinates of each projected straight line are obtained, and the focal length, direction and position parameters of the camera are obtained according to these data. The present invention can use the typical features that are easy to extract, such as zebra crossings and lane lines including the edges on both sides of the road, in the urban traffic scene, and determine the relevant parameters of the camera according to the distribution information of many special straight lines on the road surface. The method is simple to implement and is aimed at It has good performance and versatility, and has linear computational complexity. It can be applied to complete camera calibration in many traffic monitoring situations where traditional calibration methods cannot be applied.
Description
技术领域technical field
本发明涉及一种交通监视环境下的摄像机标定方法,主要用于交通监视环境下摄像机方位参数和焦距的求取,为基于视频的各种交通信息的实时准确检测提供基本保证。属于智能交通技术领域。The invention relates to a camera calibration method in a traffic monitoring environment, which is mainly used for obtaining camera orientation parameters and focal lengths in a traffic monitoring environment, and provides a basic guarantee for real-time and accurate detection of various traffic information based on video. It belongs to the field of intelligent transportation technology.
背景技术Background technique
通过交通智能监控系统实现交通信息的自动采集和处理是各国乃至全球智能交通系统(ITS,Intelligent Transportation System)中最基本要素之一,随着传感器技术、通信与网络技术以及模式识别、图像处理与计算机视觉等高新技术的发展,智能交通信息监测技术也得到长足的进展。一般说来,交通状态和交通流量数据可通过各种类型的传感器获得,如埋藏于路面下的电感传感器和设置于路面上的雷达、红外线、超声波、微波传感器等等。但是由于这些“点”传感器所获取的信号不直观,检测精度不高而且监测范围和检测参数都非常有限,不能提供全面而直接的交通信息。近年来,以摄像机等视觉传感器和计算机视觉理论为基础的车辆识别与交通运行状态检测技术已经逐渐成熟,开始应用于交通信息的自动采集与处理过程中,在不需要人的干预、或者只需要很少干预的情况下,通过对摄像机拍录的视频序列分析实现动静态车辆的检测、分割、识别和跟踪,判断车辆的行为,提取交通状态信息并予以适当控制和诱导,实现对交通系统的有效管理。摄像机标定是一个必要和基本的处理步骤,它可以确定两维图像坐标和三维世界坐标之间的映射关系,是车速、车型、事故勘察等与空间尺寸相关的交通信息有效提取的前提和基本保证。The automatic collection and processing of traffic information through the traffic intelligent monitoring system is one of the most basic elements in the intelligent transportation system (ITS, Intelligent Transportation System) of various countries and even the world. With the development of sensor technology, communication and network technology, pattern recognition, image processing and With the development of high technology such as computer vision, intelligent traffic information monitoring technology has also made great progress. Generally speaking, traffic status and traffic flow data can be obtained through various types of sensors, such as inductive sensors buried under the road surface and radar, infrared, ultrasonic, microwave sensors, etc. installed on the road surface. However, because the signals obtained by these "point" sensors are not intuitive, the detection accuracy is not high, and the monitoring range and detection parameters are very limited, they cannot provide comprehensive and direct traffic information. In recent years, vehicle recognition and traffic operation status detection technology based on cameras and other visual sensors and computer vision theory has gradually matured, and has begun to be applied to the automatic collection and processing of traffic information, without human intervention or only With little intervention, the detection, segmentation, identification and tracking of dynamic and static vehicles can be realized by analyzing the video sequence recorded by the camera, the behavior of the vehicle can be judged, the traffic status information can be extracted and properly controlled and induced, and the traffic system can be realized. effective management. Camera calibration is a necessary and basic processing step. It can determine the mapping relationship between two-dimensional image coordinates and three-dimensional world coordinates. It is the premise and basic guarantee for the effective extraction of traffic information related to spatial dimensions such as vehicle speed, vehicle type, and accident investigation. .
在计算机视觉、工业测量、智能机器人导航以及质量控制等领域,针对各种具体应用场合,人们常用的摄像机标定方法有以下几种:(1)利用三维结构的标定块与图像点的对应点进行标定的方法;(2)利用消失点标定的方法,这种方法利用平行线在图像中形成的消失点和消失线的性质来求解摄像机参数;(3)利用平面对应矩阵标定的方法;(4)基于对应点的自标定方法,该方法利用摄像机在两组平移或旋转中拍摄的序列图像之间的对应关系求取摄像机的内参数等等。这些方法由于没有考虑交通场景的特殊性和交通景物的具体特点,当用在视频交通监控场合时存在一定的缺点,缺乏具体的针对性和通用性。对于交通场景中的摄像机标定过程而言,标定目标的方便快捷地提取和辨识是一个必不可少的步骤和要求。基于路面上相邻车道线段的几何特性,Nelson,Grantham,和George等人曾引入了一种新型的交通视频监控系统摄像机标定方法(“Anovel camera calibration technique for visual traffic surveillance,”Proc.7th World Congress on Intelligence Transportation Systems,paperno.3024,2000)。由于在很多情况下,相邻两车道线段平行且各端点顺时针递次相连所成四边形往往为矩形,该方法充分利用此类矩形目标四个顶点的空间位置关系以及它们在图像平面中的投影所成对应点的图像坐标,在车道间距已知的前提下,可以直接导出求取摄像机焦距和方位参数的解析表达式。它实现简单,具有线性时间计算复杂度,能够简单、快速地完成摄像机标定并且具有相当的针对性,不失为一种高效的标定方法。然而,在很多交通场合,矩形标定目标并不是很容易被发现的,比如在城市交通路口的视频监控场景下就很难直接找到类似的目标,这是一个不容忽视的局限性,因此该方法在交通监视环境下必然缺乏通用性。In the fields of computer vision, industrial measurement, intelligent robot navigation, and quality control, for various specific applications, the commonly used camera calibration methods are as follows: (1) use the calibration block of the three-dimensional structure and the corresponding points of the image points to carry out The method of calibration; (2) utilize the method of vanishing point calibration, this method utilizes the vanishing point that parallel lines form in image and the property of vanishing line to solve camera parameter; (3) utilize the method of plane correspondence matrix calibration; (4 ) A self-calibration method based on corresponding points, which uses the corresponding relationship between the sequence images captured by the camera in two sets of translation or rotation to obtain the internal parameters of the camera and so on. Because these methods do not consider the particularity of traffic scenes and the specific characteristics of traffic scenes, there are certain shortcomings when used in video traffic monitoring occasions, and they lack specific pertinence and versatility. For the camera calibration process in traffic scenes, the convenient and quick extraction and identification of calibration targets is an essential step and requirement. Based on the geometric characteristics of adjacent lane segments on the road, Nelson, Grantham, and George et al. have introduced a new camera calibration method for traffic video surveillance systems (“Anovel camera calibration technique for visual traffic surveillance,” Proc.7 th World Congress on Intelligence Transportation Systems, paper no. 3024, 2000). Since in many cases, the quadrilateral formed by two adjacent lane segments parallel and each end point connected clockwise is often a rectangle, this method makes full use of the spatial position relationship of the four vertices of such a rectangular object and their projection on the image plane The image coordinates of the corresponding points can be directly derived to obtain the analytical expressions for the camera focal length and orientation parameters under the premise that the distance between the lanes is known. It is simple to implement, has linear time computational complexity, can complete camera calibration simply and quickly, and is quite pertinent, so it is an efficient calibration method. However, in many traffic situations, the rectangular calibration target is not easy to be found. For example, it is difficult to directly find similar targets in the video surveillance scene of urban traffic intersections. This is a limitation that cannot be ignored. Therefore, this method is used in There is necessarily a lack of versatility in a traffic surveillance environment.
发明内容Contents of the invention
本发明的目的在于针对现有摄像机标定技术的不足,提供一种新的交通监视环境下的摄像机标定方法,实现容易,能充分保证交通监视环境下的针对性或通用性,满足智能交通信息视频监测系统交通参数准确提取的实际需要。The purpose of the present invention is to provide a new camera calibration method in the traffic monitoring environment, which is easy to implement, can fully ensure the pertinence or versatility in the traffic monitoring environment, and meet the needs of intelligent traffic information video. The actual need for accurate extraction of traffic parameters in the monitoring system.
为实现这样的目的,本发明利用了城市交通场景内易于提取的一些典型特征,根据路面上诸多特殊直线的分布信息,进行摄像机相关参数的确定。本发明作为一种通用的交通场景摄像机标定新方法,无需一个规则的标定矩形,仅需要路面上一组彼此间隔已知的三条平行边和一条斜率已知的与平行线相交的直线以及它们在图像平面上的投影来求取摄像机焦距长度和方位参数。该组平行边彼此之间的距离需要预先确定,所选用相交直线及其斜率也需要被事先选择并计算出来。在实际应用场合中,类似斑马线以及包含道路两侧边缘在内的车道线可能是所需要平行边集合的良好选择,也是城市交通场景中非常有代表性的典型特征。斜率已知且与三平行边相交的直线在交通场景中同样很容易被找到或者被预置,这充分保证了交通监视环境下本发明所提出摄像机标定方法的针对性和通用性。要完成摄像机标定,本发明首先从交通场景中选择出所需要的标定目标,测量路面上三平行线彼此间距并计算出与它们相交直线的空间斜率,同时找到它们在图像中所对应的各投影直线并求出各投影直线的所有交点坐标,将这些数据作为原始输入,最终可求得摄像机的焦距、方向和位置参数。In order to achieve such a purpose, the present invention utilizes some typical features that are easy to extract in the urban traffic scene, and determines camera-related parameters according to the distribution information of many special straight lines on the road surface. As a general new method for calibrating traffic scene cameras, the present invention does not require a regular calibration rectangle, but only needs a set of three parallel sides with known intervals on the road surface and a straight line intersecting the parallel lines with known slope and the distance between them. The projection on the image plane is used to obtain the focal length and orientation parameters of the camera. The distance between the parallel sides of the group needs to be determined in advance, and the selected intersecting straight line and its slope also need to be selected and calculated in advance. In practical applications, lane lines like zebra crossings and the edges on both sides of the road may be a good choice for the required set of parallel edges, and they are also very representative typical features in urban traffic scenes. Straight lines with known slopes and intersecting three parallel sides are also easy to find or preset in traffic scenes, which fully guarantees the pertinence and versatility of the camera calibration method proposed in the present invention in the traffic surveillance environment. To complete the camera calibration, the present invention first selects the required calibration target from the traffic scene, measures the distance between the three parallel lines on the road surface and calculates the spatial slope of the straight line intersecting them, and finds their corresponding projected straight lines in the image And calculate all intersection coordinates of each projected straight line, take these data as the original input, and finally obtain the focal length, direction and position parameters of the camera.
本发明方法的具体步骤如下:The concrete steps of the inventive method are as follows:
(1)标定目标的选取和相关坐标系的建立:在交通场景中选择路面上一组彼此间隔已知的三条平行线、一条斜率已知并与三条平行线相交的直线作为标定目标,并确定标定目标在图像中的各投影对应直线和对应交点。建立世界坐标系,设定世界坐标系原点位于中间一条平行线与相交直线的交点,Y轴正向沿中间平行线指向前方,正Z轴垂直于地面方向向上,X轴正向水平指向右方。建立以摄像机为中心的坐标系,该坐标系以透镜中心为原点,摄像机的光轴作为V轴,并使U-W坐标轴的平面平行于图像平面,且与透镜中心间距为摄像机焦距。(1) Selection of the calibration target and establishment of the relevant coordinate system: in the traffic scene, select a group of three parallel lines with a known distance from each other on the road surface, and a straight line with a known slope that intersects the three parallel lines as the calibration target, and determine Each projection of the calibration target in the image corresponds to a straight line and a corresponding intersection point. Establish a world coordinate system, set the origin of the world coordinate system at the intersection of a parallel line in the middle and the intersecting straight line, the positive Y axis points forward along the middle parallel line, the positive Z axis is vertical to the ground, and the positive X axis points to the right horizontally . Establish a coordinate system centered on the camera, the coordinate system takes the center of the lens as the origin, the optical axis of the camera is the V axis, and the plane of the U-W coordinate axis is parallel to the image plane, and the distance from the center of the lens is the focal length of the camera.
(2)标定输入数据初始化:相对于以摄像机为中心的坐标系,用最小二乘法计算出标定目标在图像中各投影对应直线的所有交点的坐标,同时求出它们在图像平面上的斜率。(2) Calibration input data initialization: Relative to the camera-centered coordinate system, use the least squares method to calculate the coordinates of all intersection points of the calibration targets in the image corresponding to the projections, and at the same time calculate their slopes on the image plane.
(3)关于地面所对应消失线和相交直线所对应消失点的计算:根据三平行线中相邻两直线间距、相交直线与三平行线空间交点坐标、以及相对于以摄像机为中心的坐标系得到的三平行线和相交直线在图像平面上相应投影直线的各交点坐标参数,得到地面所对应消失线斜率和一般式方程,求出相交直线在图像平面上的投影直线与消失线的交点坐标,即求得相交直线在图像平面上所对应的消失点坐标。(3) Calculation of the vanishing line corresponding to the ground and the vanishing point corresponding to the intersecting straight line: according to the distance between two adjacent straight lines in the three parallel lines, the coordinates of the intersection point between the intersecting straight line and the three parallel lines, and the coordinate system centered on the camera The coordinate parameters of each intersection of the three parallel lines and the intersecting straight lines corresponding to the projected straight lines on the image plane are obtained, and the slope of the corresponding disappearing line on the ground and the general formula equation are obtained, and the intersection coordinates of the projected straight lines and the vanishing lines of the intersecting straight lines on the image plane are obtained , that is to obtain the coordinates of the vanishing point corresponding to the intersecting straight line on the image plane.
(4)摄像机参数标定:由三平行线中相邻两直线间距、相交直线与三平行线空间交点坐标、三平行线和相交直线在图像中投影直线的各交点坐标、消失线斜率以及相交直线的投影直线与消失线的交点坐标求得摄像机的旋转角、偏角、俯仰角以及摄像机焦距,最后根据本发明所定义两坐标系的相关变换关系得到摄像机镜头中心的三维位置坐标,完成摄像机标定。(4) Camera parameter calibration: the distance between two adjacent straight lines among the three parallel lines, the coordinates of the intersecting points between the intersecting straight lines and the three parallel lines, the coordinates of the intersection points of the three parallel lines and the intersecting straight lines projected in the image, the slope of the vanishing line, and the intersecting straight line The intersection coordinates of the projected straight line and the disappearing line obtain the rotation angle, deflection angle, pitch angle and camera focal length of the camera, and finally obtain the three-dimensional position coordinates of the camera lens center according to the correlation transformation relationship of the two coordinate systems defined by the present invention, and complete the camera calibration .
本发明的方法实现简单,针对性和通用性好,且具有线性计算复杂度,可应用于传统标定方法不可能应用的诸多交通监控场合下完成摄像机标定。The method of the invention is simple to realize, has good pertinence and versatility, and has linear calculation complexity, and can be applied to complete camera calibration in many traffic monitoring occasions where traditional calibration methods cannot be applied.
附图说明Description of drawings
图l为本发明中世界坐标系和标定目标的关系示意图。FIG. 1 is a schematic diagram of the relationship between the world coordinate system and the calibration target in the present invention.
图2为本发明中标定目标投影图像与地面消失线的示意图。Fig. 2 is a schematic diagram of the projected image of the calibration target and the vanishing line on the ground in the present invention.
图3为本发明的摄像机坐标系。Fig. 3 is the camera coordinate system of the present invention.
图4为本发明实施例所采用的交通场景原始图像。Fig. 4 is the original image of the traffic scene used in the embodiment of the present invention.
图5为本发明实施例从原始图像中选择的标定目标示意图。Fig. 5 is a schematic diagram of a calibration target selected from an original image according to an embodiment of the present invention.
具体实施方式Detailed ways
为了更好地理解本发明的技术方案,以下结合附图和实施例作进一步详细描述。In order to better understand the technical solution of the present invention, a further detailed description will be made below in conjunction with the accompanying drawings and embodiments.
1)标定目标的选取和相关坐标系的建立:1) Selection of calibration target and establishment of relevant coordinate system:
在交通场景中选择标定目标即一组彼此间距己知的三条平行线以及一条与该组平行线相交的已知斜率的直线。它们在实际路面上分别被表示为a,b,c,d,直线a,b,c表示三条平行线,直线d与它们相交,三条平行线与直线d的交点分别被表示为A,O,B,如图1所示。这里,直线d的斜率已经预先测出,表示为m,直线a,b,c中两相邻平行线的间距顺次表示为d1,d2。本发明将标定目标在图像中所对应的投影直线分别表示为a',b',c',d',并将直线d'与直线a',b',c'的交点相应表示为A',O',B',如图2所示。需要说明的是,图2中直线 表示图像中路面平面所对应的消失线。其中,点VD表示平行线组投影a',b',c'所对应的消失点,而VO表示直线d'所对应消失点。In the traffic scene, the calibration target is selected, which is a set of three parallel lines with a known distance from each other and a straight line with a known slope intersecting the set of parallel lines. They are respectively represented as a, b, c, d on the actual road surface, the straight line a, b, c represents three parallel lines, the straight line d intersects them, and the intersection points of the three parallel lines and the straight line d are respectively represented as A, O, B, as shown in Figure 1. Here, the slope of the straight line d has been measured in advance, expressed as m, and the distance between two adjacent parallel lines in the straight lines a, b, c is expressed as d 1 , d 2 in sequence. In the present invention, the projection straight lines corresponding to the calibration target in the image are represented as a', b', c', d' respectively, and the intersection point of the straight line d' and the straight line a', b', c' is correspondingly represented as A' , O', B', as shown in Figure 2. It should be noted that the straight line in Figure 2 Indicates the vanishing line corresponding to the road plane in the image. Among them, the point V D represents the vanishing point corresponding to the parallel line group projection a', b', c', and V O represents the vanishing point corresponding to the straight line d'.
为了标定摄像机的方向和焦距参数,需要定义两个右手坐标系:世界坐标系和以摄像机为中心的坐标系。假定世界坐标系的原点位于直线b和d的交点O,Y轴正向沿直线b指向前方,正Z轴垂直于地面方向向上,而X轴正向则水平指向右方,则交点A,O,B坐标可以被表示为(xA=-d1,yA,zA=0),(xo=0,yo=0,zo=0),(xB=+d2,yB,zB=0),计算路面直线d斜率m=(yB-yA)/(d2+d1)。In order to calibrate the direction and focal length parameters of the camera, two right-handed coordinate systems need to be defined: the world coordinate system and the camera-centered coordinate system. Assuming that the origin of the world coordinate system is located at the intersection point O of straight lines b and d, the positive direction of the Y axis points forward along the line b, the positive direction of the Z axis is vertical to the ground, and the positive direction of the X axis points horizontally to the right, then the intersection points A and O , B coordinates can be expressed as (x A =-d 1 , y A , z A =0), (x o =0, y o =0, z o =0), (x B =+d 2 , y B , z B =0), calculate the road surface straight line d slope m=(y B -y A )/(d 2 +d 1 ).
摄像机坐标系以透镜中心为原点如图3所示。V轴是摄像机的光轴,位于V=f处的U-W平面平行于图像平面,其中-f表示摄像机焦距。假设图像平面上的任一点的坐标相对于摄像机坐标系而言,用(u,w)表示。The camera coordinate system takes the center of the lens as the origin as shown in Figure 3. The V axis is the optical axis of the camera, and the U-W plane located at V=f is parallel to the image plane, where -f represents the camera focal length. Assume that the coordinates of any point on the image plane are represented by (u, w) relative to the camera coordinate system.
2)标定输入数据初始化:2) Calibration input data initialization:
用最小二乘法计算图像中投影直线a′,b′,c′的公共交点VD的坐标为(uD,wD),同时得到它们与直线d′交点A′,O′,B′坐标分别为(uA′,wA′),(uo′,wo′),(uB′,wB′),假设直线a′,b′,c′,d′斜率分别为k-1、k0和k1和k2,则有Use the least squares method to calculate the coordinates of the public intersection point V D of the projected straight lines a', b', c' in the image as (u D , w D ), and at the same time obtain the coordinates of their intersection with the straight line d'A',O',B' are (u A′ , w A′ ), (u o′ , w o′ ), (u B′ , w B′ ), assuming that the slopes of the straight lines a′, b′, c′, and d′ are k - 1 , k 0 and k 1 and k 2 , then there are
3)关于消失线和相交直线消失点的计算:3) Calculation of vanishing line and vanishing point of intersecting straight line:
计算中间变量X45,X56,X46,X456D值分别为Calculate intermediate variable X 45 , X 56 , X 46 , X 456D values are respectively
X46=X45·X56 X 46 =X 45 ·X 56
X456D=uD·X56-wD·X46 X 456D = u D X 56 -w D X 46
则路面直线在图像中投影所对应的消失线方程为Then the equation of the vanishing line corresponding to the projection of the road straight line in the image is
k·u-w+(wD-k·uD)=0,其中k=-X45,为消失线斜率。k·u-w+(w D -k·u D )=0, where k=-X 45 is the slope of the vanishing line.
直线d′通过O′(uo′,wo′)点,且已求得斜率为k2,其方程可表示为The straight line d' passes through the point O'(u o' , w o' ), and the obtained slope is k 2 , its equation can be expressed as
k2·u-w+(wo′-k2·uo′)=0k 2 ·u-w+(w o′ -k 2 ·u o′ )=0
则通过消失线和直线d′方程能够计算出消失线的交点坐标(u,w);Then the coordinates (u, w) of the intersection of the vanishing line can be calculated by the equation of the vanishing line and the straight line d';
4)摄像机参数标定:4) Camera parameter calibration:
假定摄像机镜头中心位于空间点(xc,yc,zc),并且摄像机的偏角(Pan),俯仰角(Tilt)和旋转角(Swing)分别被表示为θ,,Ψ,则Assuming that the center of the camera lens is located at the spatial point (x c , y c , z c ), and the camera’s deflection angle (Pan), pitch angle (Tilt) and rotation angle (Swing) are denoted as θ, , Ψ respectively, then
计算旋转角(Swing)Ψ。公式为Calculate the rotation angle (Swing) Ψ. The formula is
Ψ=arctg(X45)Ψ=arctg(X 45 )
计算摄像机的偏角(Pan)θ为Calculate the deflection angle (Pan) θ of the camera as
k1,k2=…-1,0,1,2…,-π/2≤θ≤π/2}k 1 , k 2 =...-1, 0, 1, 2..., -π/2≤θ≤π/2}
其中
计算俯仰角(Tilt)φ为:φ=arcsin(tgθ/X456D)Calculate the pitch angle (Tilt) φ as: φ=arcsin(tgθ/X 456D )
计算摄像机焦距为:
考虑世界坐标系中地面上的一点P(x,y,z),假定它在图像平面上的投影点是P'=(u,w),并定义Consider a point P(x, y, z) on the ground in the world coordinate system, assume its projection point on the image plane is P'=(u, w), and define
A=cosθcosψ+sinθsinφsinΨ,B=sinθcosΨ-cosθsinφsinψ,C=cosφsinΨ,A=cosθcosψ+sinθsinφsinΨ, B=sinθcosΨ-cosθsinφsinψ, C=cosφsinΨ,
D=-sinθcosφ,E=cosθcosφ,F=sinφ,D=-sinθcosφ, E=cosθcosφ, F=sinφ,
G=sinθsinφcosΨ-cosθsinΨ,H=-cosθsinφcosψ-sinθsinΨ,I=cosφcosΨ,则摄像机透镜中心的实际坐标可由如下方程式给出(L.L.Wang,and W.H.Tsai,“Camera Calibration by Vanishing Lines for 3-D Computer Vision,”IEEE Transactions on Pattern Analysis and Machine Intelligence,vol.13,no.4,pp.370-376,April 1991.):G=sinθsinφcosΨ-cosθsinΨ, H=-cosθsinφcosψ-sinθsinΨ, I=cosφcosΨ, then the actual coordinates of the camera lens center can be given by the following equation (L.L.Wang, and W.H.Tsai, "Camera Calibration by Vanishing Lines for 3-D Computer Vision, "IEEE Transactions on Pattern Analysis and Machine Intelligence, vol.13, no.4, pp.370-376, April 1991.):
其中,h为摄像机的安装高度。Among them, h is the installation height of the camera.
根据式(1)中关于xc的表达式,计算摄像机安装高度为According to the expression about x c in formula (1), the installation height of the camera is calculated as
h=(d1+d2)/(a-b),其中h=(d 1 +d 2 )/(ab), where
a=(uA′A+fD+wA′G)/(uA′C+fF+wA′I),a=( uA'A +fD+ wA'G )/( uA'C +fF+ wA'I ),
b=(uB′A+fD十wB′G)/(uB′C+fF+wB′I)b=(u B′ A+fD+w B′ G)/(u B′ C+fF+w B′ I)
由于O点坐标为(xo=0,yo=0,zo=0),根据式(1)计算摄像机镜头中心三维位置坐标为:Since the coordinates of point O are (x o = 0, y o = 0, z o = 0), the coordinates of the three-dimensional position of the camera lens center are calculated according to formula (1):
根据A到I定义计算A,B,C,D,E,F,G,H,I的值并取验证式Calculate the value of A, B, C, D, E, F, G, H, I according to the definition of A to I and take the verification formula
以检验所得多组θ,φ,Ψ,f的值,最终选择出摄像机方位参数准确解组。In order to test the obtained multiple sets of θ, φ, Ψ, f values, and finally select the camera orientation parameters for accurate ungrouping.
为了验证本发明所提出方法的有效性,本发明的一个实施例采用了以图4所示的实际交通场景图像,并在此实际交通场景图像中选择了标定目标,如图5所示。选择图像中共点于VD的三条相邻车道线作为标定所需要的一组平行线,分别标识为a′,b′,c′,以停车线作为相交直线d′,它们在世界坐标系中的实际对应直线分别表示为a,b,c,d,其中直线d斜率m=0,直线a和b以及直线b与c之间的距离也事先已知。In order to verify the effectiveness of the method proposed in the present invention, an embodiment of the present invention uses the actual traffic scene image shown in FIG. 4 , and selects a calibration target in the actual traffic scene image, as shown in FIG. 5 . Select three adjacent lane lines whose common point is at V D in the image as a set of parallel lines required for calibration, respectively marked as a', b', c', and take the parking line as the intersecting straight line d', which are in the world coordinate system The actual corresponding straight lines are denoted as a, b, c, d respectively, where the slope of the straight line d is m=0, and the distances between the straight lines a and b and the straight lines b and c are also known in advance.
实验结果表明,标定参数的求取与四条直线选择的精度有密切关系,但是经过仔细选择,可以得到平均浮动误差约为5%的稳定结果,如表1所列为焦距f和摄像机安装高度h的标定值和实际值的比较(摄像机方向数据因无法测量,难以给出实际值予以比较,故从略),这说明本方法完全能够满足交通监控系统的精度要求,该实验在一定程度上证明了本发明所提出方法的有效性。The experimental results show that the calculation of the calibration parameters is closely related to the accuracy of the selection of the four straight lines, but after careful selection, a stable result with an average floating error of about 5% can be obtained, as listed in Table 1 for the focal length f and the camera installation height h The comparison between the calibration value and the actual value (the camera direction data cannot be measured, it is difficult to give the actual value for comparison, so it is omitted), this shows that this method can fully meet the accuracy requirements of the traffic monitoring system, and this experiment proves to a certain extent The effectiveness of the method proposed in the present invention has been confirmed.
表1摄像机焦距和安装高度的实验标定结果
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200410017703.1A CN1254956C (en) | 2004-04-15 | 2004-04-15 | Calibrating method of pick-up device under condition of traffic monitering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200410017703.1A CN1254956C (en) | 2004-04-15 | 2004-04-15 | Calibrating method of pick-up device under condition of traffic monitering |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1564581A CN1564581A (en) | 2005-01-12 |
CN1254956C true CN1254956C (en) | 2006-05-03 |
Family
ID=34479113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200410017703.1A Expired - Fee Related CN1254956C (en) | 2004-04-15 | 2004-04-15 | Calibrating method of pick-up device under condition of traffic monitering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1254956C (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3903062B2 (en) * | 2004-02-03 | 2007-04-11 | 松下電器産業株式会社 | Surveillance system and camera terminal |
CN1294533C (en) * | 2005-05-19 | 2007-01-10 | 上海交通大学 | Calibration method of pick up camera or photographic camera geographic distortion |
US7853038B2 (en) * | 2007-01-04 | 2010-12-14 | Industrial Technology Research Institute | Systems and methods for object dimension estimation |
JP4861850B2 (en) * | 2007-02-13 | 2012-01-25 | アイシン・エィ・ダブリュ株式会社 | Lane determination device and lane determination method |
CN101408423B (en) * | 2007-10-09 | 2011-05-18 | 财团法人工业技术研究院 | Image capture device angle detection method and its vehicle collision warning system |
CN101488222B (en) * | 2008-01-16 | 2011-02-09 | 中国科学院自动化研究所 | A Camera Self-Calibration Method Based on Moving Object Appearance and Motion Information |
CN101414380B (en) * | 2008-11-07 | 2011-05-04 | 浙江大学 | Method for calibrating simple graph of panorama camera |
CN101763632B (en) * | 2008-12-26 | 2012-08-08 | 华为技术有限公司 | Method for demarcating camera and device thereof |
CN102222332A (en) * | 2011-05-19 | 2011-10-19 | 长安大学 | Geometric calibration method of camera under linear model |
CN102223483B (en) * | 2011-06-25 | 2013-06-26 | 北京汉王智通科技有限公司 | Method and device for adjusting position of road traffic monitoring equipment |
JP5898475B2 (en) * | 2011-11-28 | 2016-04-06 | クラリオン株式会社 | In-vehicle camera system, calibration method thereof, and calibration program thereof |
CN103927748B (en) * | 2014-04-09 | 2016-08-17 | 东南大学 | A kind of coordinate scaling method based on many rectangular images distance transformation model |
CN108805934B (en) * | 2017-04-28 | 2021-12-28 | 华为技术有限公司 | External parameter calibration method and device for vehicle-mounted camera |
CN107481291B (en) * | 2017-08-16 | 2020-04-03 | 长安大学 | Calibration method and system of traffic monitoring model based on physical coordinates of marked dotted line |
CN110349219A (en) * | 2018-04-04 | 2019-10-18 | 杭州海康威视数字技术股份有限公司 | A kind of Camera extrinsic scaling method and device |
CN109685855B (en) * | 2018-12-05 | 2022-10-14 | 长安大学 | A camera calibration optimization method under the road cloud monitoring platform |
CN111508027B (en) * | 2019-01-31 | 2023-10-20 | 杭州海康威视数字技术股份有限公司 | Method and device for calibrating external parameters of camera |
CN110490936B (en) * | 2019-07-15 | 2021-09-07 | 杭州飞步科技有限公司 | Calibration method, device and equipment of vehicle camera and readable storage medium |
CN110926405B (en) * | 2019-12-04 | 2022-02-22 | 中科新松有限公司 | ARV attitude measurement method based on monocular vision vanishing point detection |
CN112950725B (en) * | 2021-03-22 | 2024-11-26 | 深圳市城市交通规划设计研究中心股份有限公司 | A monitoring camera parameter calibration method and device |
-
2004
- 2004-04-15 CN CN200410017703.1A patent/CN1254956C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1564581A (en) | 2005-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1254956C (en) | Calibrating method of pick-up device under condition of traffic monitering | |
CN101727671B (en) | Single camera calibration method based on road surface collinear three points and parallel line thereof | |
CN107229908B (en) | A kind of method for detecting lane lines | |
CN105261020B (en) | A kind of express lane line detecting method | |
CN101608924B (en) | Method for detecting lane lines based on grayscale estimation and cascade Hough transform | |
CN102682292B (en) | Road edge detection and rough positioning method based on monocular vision | |
CN109685855B (en) | A camera calibration optimization method under the road cloud monitoring platform | |
Huang et al. | Lane detection based on inverse perspective transformation and Kalman filter | |
CN111968177A (en) | Mobile robot positioning method based on fixed camera vision | |
CN107284455B (en) | An ADAS system based on image processing | |
CN101118648A (en) | Road Condition Camera Calibration Method in Traffic Surveillance Environment | |
JP2002352225A (en) | Obstacle detection apparatus and method | |
CN103206957B (en) | The lane detection and tracking method of vehicular autonomous navigation | |
CN102867414A (en) | Vehicle queue length measurement method based on PTZ (Pan/Tilt/Zoom) camera fast calibration | |
CN112037159A (en) | A method and system for cross-camera road space fusion and vehicle target detection and tracking | |
Luo et al. | Multiple lane detection via combining complementary structural constraints | |
CN109448046B (en) | A fast extraction method of semi-automatic road centerline based on multiple descriptors | |
CN109685827B (en) | Target detection and tracking method based on DSP | |
CN110930365B (en) | Orthogonal vanishing point detection method under traffic scene | |
CN102156977A (en) | Vision-based road detection method | |
CN116503818A (en) | A multi-lane vehicle speed detection method and system | |
Zhang et al. | An improved vehicle panoramic image generation algorithm | |
CN114022860A (en) | Target detection method, device and electronic device | |
Liu et al. | Lane detection based on straight line model and k-means clustering | |
CN1584915A (en) | Human iris identifying 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060503 |