[go: up one dir, main page]

CN1094223C - Automatic testing system for driver pile examination process based on image sequence analysis - Google Patents

Automatic testing system for driver pile examination process based on image sequence analysis Download PDF

Info

Publication number
CN1094223C
CN1094223C CN001091336A CN00109133A CN1094223C CN 1094223 C CN1094223 C CN 1094223C CN 001091336 A CN001091336 A CN 001091336A CN 00109133 A CN00109133 A CN 00109133A CN 1094223 C CN1094223 C CN 1094223C
Authority
CN
China
Prior art keywords
vehicle
image
test
warehouse
difference
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
Application number
CN001091336A
Other languages
Chinese (zh)
Other versions
CN1272666A (en
Inventor
李宛洲
陈江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CN001091336A priority Critical patent/CN1094223C/en
Publication of CN1272666A publication Critical patent/CN1272666A/en
Application granted granted Critical
Publication of CN1094223C publication Critical patent/CN1094223C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

本发明属于计算机与数字图象处理领域。本系统包括:龙门架单元,多个桩杆考试用桩杆;摄象机;LED大屏幕显示器和喇叭;多组红外线接收/发射传感器单元;计算机图象处理单元,无线传送发动机熄火测量单元及开关量采集单元。本发明通过对摄象机拍摄的图象序列进行实时数字图象分析来识别车辆运动轨迹,可完全代替人工监考,可提高考试结果的准确性、客观性,与同类产品相比具有更高的灵活性、可靠性与实用性。

The invention belongs to the field of computer and digital image processing. The system includes: a gantry unit, a plurality of pile poles for examination; video camera; LED large-screen display and loudspeaker; multiple sets of infrared receiving/emitting sensor units; computer image processing unit, wireless transmission engine flameout measurement unit and Switch value acquisition unit. The invention recognizes the vehicle trajectory by real-time digital image analysis of the image sequence captured by the camera, which can completely replace the manual invigilation, improve the accuracy and objectivity of the examination results, and has higher accuracy compared with similar products. Flexibility, reliability and practicality.

Description

基于图象序列分析的驾驶员桩考过程自动测试系统Automatic test system for driver pile test process based on image sequence analysis

技术领域technical field

本发明属于计算机技术与数字图象处理技术领域。特别涉及驾驶员桩考过程自动测试系统设计。The invention belongs to the field of computer technology and digital image processing technology. In particular, it involves the design of an automatic test system for the driver's pile test process.

背景技术Background technique

学习驾驶机动车辆的人员必须进行场地桩考科目训练。传统桩考训练中桩杆为木制,插在一个圆盘底座上,考试前摆放到考试场地。考试时考官坐在场地前方控制室中观察车辆的行驶过程,通过目测和经验判断车辆是否有出线、碰擦桩杆、移库不入、中途停车、熄火以及是否按照规定路线行驶等,当待考车辆较多时,为了加快考试速度,在一个场地上一般有三辆车同时进行考试。这样做存在以下几个缺点:Personnel who learn to drive motor vehicles must undergo training in field pile examination subjects. In the traditional pile test training, the pile rod is made of wood, inserted on a disc base, and placed on the test site before the test. During the test, the examiner sits in the control room in front of the venue and observes the driving process of the vehicle. Through visual inspection and experience, it can be judged whether the vehicle has passed the line, rubbed against the pile pole, failed to move into the warehouse, stopped halfway, turned off the engine, and whether it is driving according to the prescribed route. When there are many vehicles, in order to speed up the test, there are generally three vehicles on one site to take the test at the same time. This has several disadvantages:

(1)桩杆人工随机摆放的位置不准确,导致车库尺寸有误差。(1) The artificial random placement of the piles is inaccurate, resulting in errors in the size of the garage.

(2)目测车身出线的误差。由于车库范围并没有实际的线标出,只能通过桩杆位置判断车库边线,而考官离车库距离有十几米,并且与车库边线不处在一条直线上,所以对于车身越线的判断都是目测加上估计,而对于贴库和移库过程中的车尾出线更是估计的成分大,这样的判断经常是不准确的,尤其是出线不明显时,经常引起争议。(2) Visually inspect the error of the body's outgoing line. Since there is no actual line marked in the garage area, the sideline of the garage can only be judged by the position of the pile poles, and the distance between the examiner and the garage is more than ten meters, and it is not in a straight line with the sideline of the garage, so the judgment of the body crossing the line is all Visual inspection is combined with estimation, and for the rear exit line in the process of posting and moving the warehouse, the estimated component is even more important. Such judgments are often inaccurate, especially when the exit line is not obvious, it often causes controversy.

(3)发动机熄火判断完全是目测,由于考官处于室内,考试场地又比较嘈杂,发动机点火时的声音考官是不可能听到的。学员在发动机熄火后2、3秒钟之内重新点火成功,考官很可能就会判断不出发动机已经熄火。(3) The judgment of engine flameout is completely visual. Since the examiner is indoors and the test site is relatively noisy, it is impossible for the examiner to hear the sound of the engine ignition. If the student re-ignites successfully within 2 or 3 seconds after the engine is turned off, the examiner may not be able to judge that the engine has been turned off.

(4)无法兼顾所有考试车辆,造成漏判。(4) It is impossible to take into account all the test vehicles, resulting in missed judgments.

(5)各考官对考试大纲的标准掌握的尺度会不一致。(5) The standards mastered by each examiner on the syllabus will be inconsistent.

目前在桩考过程中已经开始使用计算机桩考系统,改变了驾驶员场地考试过程中桩考科目一直是考官在场地上目视考试,避免上述受考官观察角度等主、客观因素的限制,造成判断不够及时准确的缺点,可规范场地考试标准减少争议的产生。At present, the computer pile test system has been used in the pile test process, which has changed the pile test subjects in the driver's field test process, which has always been visually tested by the examiner on the field, so as to avoid the above-mentioned limitations caused by subjective and objective factors such as the examiner's observation angle. The shortcoming of not being timely and accurate enough can reduce the occurrence of disputes by standardizing the venue examination standards.

在此类产品中,南京多伦精密系统(远东)有限公司产品主要特点是:Among such products, the main features of the products of Nanjing Duolun Precision System (Far East) Co., Ltd. are:

(1)在考试车上加装一套机械伺服机构,一旦学员违规立即刹车。(1) Install a set of mechanical servo mechanism on the test car, and brake immediately if the students violate the regulations.

(2)在考试车上安装一套无线系统传递控制信号及检测信号到机房。(2) Install a wireless system on the test vehicle to transmit control signals and detection signals to the computer room.

(3)在传动轴上装一套传感器,通过检测传动轴正转、反转、及转速来判别车辆前进、后退及停止状态。(3) Install a set of sensors on the transmission shaft, and judge the forward, backward and stopped states of the vehicle by detecting the forward rotation, reverse rotation, and speed of the transmission shaft.

(4)在发动机扇叶前安装传感器,以测量冷却扇叶的运转来判别是否熄火。(4) Install a sensor in front of the engine fan blade to measure the operation of the cooling fan blade to determine whether the engine is turned off.

(5)在场地上通过6-8对红外传感器标定库房边界,开关信号通过预埋电缆接至机房。(5) On the site, 6-8 pairs of infrared sensors are used to calibrate the boundary of the warehouse, and the switch signal is connected to the machine room through the embedded cable.

(6)在场地上用前后两个龙门架,吊簧悬挂6根桩杆,桩杆底部装入霍尔型接近开关,地面埋入永久磁钢,考车撞开标杆时,磁路的变化控制开关信号通知主机。(6) Two front and rear gantry frames are used on the field, and 6 pile poles are suspended by suspension springs. Hall-type proximity switches are installed at the bottom of the pile poles, and permanent magnetic steel is embedded in the ground. When the test vehicle hits the benchmark pole, the change control of the magnetic circuit The switch signal notifies the host.

南京产品设计比较成熟,系统运转可靠。系统设计的两个关键技术:车辆行驶路线与运动状态判别;发动机熄火判别都需要专用装置改造车辆,在车上安装各类传感器及机械执行机构。产生的弊病是学员平时熟悉的训练用车不能使用,影响考试成绩(绝大部份学员非常依赖熟悉的车辆);另外,车辆行驶路线不能直接测量,通过间接换算模拟得到,对于路线的判断并不准确。而熄火判别也存在一定问题。Nanjing product design is relatively mature, and the system is reliable in operation. The two key technologies of system design: vehicle driving route and motion state discrimination; engine flameout discrimination both require special devices to modify the vehicle, and install various sensors and mechanical actuators on the vehicle. The disadvantages are that the trainees are not able to use the familiar training vehicles, which will affect the test results (most of the trainees are very dependent on the familiar vehicles); in addition, the driving route of the vehicles cannot be directly measured, but can be obtained through indirect conversion simulation, and the judgment of the route is not necessary. Inaccurate. There are also certain problems in flameout discrimination.

北京某公司生产的此类产品与南京产品相比,其特点是:Compared with Nanjing products, the products produced by a company in Beijing have the following characteristics:

(1)在考试车顶上通过吸盘,牵扯一套机械伺服机构传递车辆位置信息到机房,检测车辆前进、后退及停止状态。(1) Through the suction cup on the roof of the test vehicle, a set of mechanical servo mechanism is involved to transmit the vehicle position information to the machine room to detect the forward, backward and stopped status of the vehicle.

(2)点火钥匙上装一传感器监视点火动作,通过重新点火启动过程判别发动机熄火。(2) A sensor is installed on the ignition key to monitor the ignition action, and the engine flameout is judged through the re-ignition start process.

(3)在场地上通过6-8对红外传感器标定库房边界。(3) Mark the boundary of the warehouse by 6-8 pairs of infrared sensors on the field.

(4)在场地上用前后两个龙门架,吊簧悬挂6根桩杆,桩杆底部装入霍尔型接近开关,地面埋入永久磁钢,考车撞开标杆时,磁路的变化控制开关信号通知主机。北京产品在龙门架上加装一套机械伺服机构,可以根据考试车型移动龙门架设置车库大小。(4) Two front and rear gantry frames are used on the field, and 6 pile poles are suspended by suspension springs. Hall-type proximity switches are installed at the bottom of the pile poles, and permanent magnetic steel is embedded in the ground. When the test vehicle hits the benchmark pole, the change control of the magnetic circuit The switch signal notifies the host. Beijing products install a set of mechanical servo mechanism on the gantry, which can move the gantry to set the size of the garage according to the test model.

北京产品设计上取消了专用考试车辆,在车上没有专用机械执行机构适合学员使用。车辆行驶路线通过考试车顶上的吸盘牵扯一套机械伺服机构检测车辆位置信息,而且考试场地可以根据车型设置。实践中反映出来的最大问题是考试时间太慢,仍然使用机械结构测量行车路线,技术含量低,维修复杂。The Beijing product design cancels the special test vehicle, and there is no special mechanical actuator on the car suitable for students to use. The driving route of the vehicle involves a set of mechanical servo mechanisms to detect the position information of the vehicle through the suction cup on the roof of the test vehicle, and the test site can be set according to the vehicle model. The biggest problem reflected in practice is that the test time is too slow, and the driving route is still measured with a mechanical structure, which has low technical content and complicated maintenance.

发明内容Contents of the invention

本发明的目的是为克服已有技术的不足之处,提出一种基于图象序列分析的驾驶员桩考过程自动测试系统,以计算机技术与数字图象处理技术相结合,通过对摄象机拍摄的图象序列进行实时数字图象分析来识别车辆运动轨迹,可完全代替人工监考,可提高考试结果的准确性、客观性,与同类产品相比具有更高的灵活性、可靠性与实用性。The purpose of the invention is to overcome the deficiencies of the prior art, to propose a driver's pile test process automatic test system based on image sequence analysis, combining computer technology with digital image processing technology, through the camera Real-time digital image analysis of the captured image sequence to identify the vehicle trajectory can completely replace manual invigilation, improve the accuracy and objectivity of the test results, and have higher flexibility, reliability and practicality compared with similar products sex.

本发明提出的一种驾驶员桩考过程自动测试系统,其特征在于包括以下几部分:A kind of driver pile test process automatic test system that the present invention proposes is characterized in that comprising the following several parts:

(1)考试场地上的起标识车库尺寸作用的龙门架单元,它是由三角横梁与支撑架组成的两副以上的龙门架;(1) The gantry unit used to mark the size of the garage on the test site is composed of two or more gantry units composed of triangular beams and support frames;

(2)通过吊簧悬挂在该龙门架横梁上的多个桩杆考试用桩杆,它由杆体、连结镙栓、上下调装置及安装在杆体上的霍尔开关组成;(2) A plurality of pile poles used for examination on the beam of the gantry frame suspended by suspension springs, which consist of a pole body, a connecting screw, an up and down adjustment device and a Hall switch installed on the pole body;

(3)安装在考试场地上的摄象机支架及固定在支架上的摄象机;(3) The camera bracket installed on the examination site and the camera fixed on the bracket;

(4)安装在考试场地上用来提示考试信息的LED大屏幕显示器和喇叭;(4) LED large-screen displays and speakers installed on the test site to prompt test information;

(5)设置在考试场地上的用来标识车库边界的多组红外线接收/发射传感器单元;(5) Multiple groups of infrared receiving/emitting sensor units set on the test site to mark the garage boundary;

(6)与该摄象机相连设置在机房内的计算机图象处理单元,它由计算机设备中安装的图象采集卡、以及存储在该计算机存储单元中的图象处理程序软件组成;(6) be connected with this video camera and be arranged on the computer image processing unit in the computer room, it is made up of the image acquisition card installed in the computer equipment and the image processing program software stored in the computer storage unit;

(7)由发射、接收两部分组成的无线传送发动机熄火测量单元,其中,发射部分由电磁传感器及与之相连的信号整形电路、无线电发射机组成,它吸附在考车顶上;接收单元由无线电接收机及与之相连的信号处理电路组成,安装在机房上;(7) The wireless transmission engine flameout measurement unit consisting of two parts: transmitting and receiving, wherein the transmitting part is composed of an electromagnetic sensor and a signal shaping circuit connected to it, and a radio transmitter, which is adsorbed on the roof of the test vehicle; the receiving unit consists of Composed of radio receivers and signal processing circuits connected to them, installed in the machine room;

(8)开关量采集单元,置于机房内由开关量采集卡、转接器、电源所组成,所采集的场地上所有的开关量信号由埋地电缆接入该采集单元。(8) The switching value acquisition unit is placed in the computer room and consists of a switching value acquisition card, an adapter, and a power supply. All the switching value signals collected on the site are connected to the acquisition unit by buried cables.

本发明提出的一种采用如上所述的驾驶员桩考过程自动测试系统的自动测试方法,其特征在于,以数字图象处理与模式识别方法相结合,无机械接触的用计算机自动判别驾驶员是否按考试大纲规定的路线行驶与操作;A kind of automatic test method that the present invention proposes adopts the automatic test system of driver's stake test process as mentioned above, it is characterized in that, combine with digital image processing and pattern recognition method, without mechanical contact, use computer to automatically judge the driver Whether to drive and operate according to the route stipulated in the test syllabus;

所说的数字图象处理方法具体包括以下步骤:Said digital image processing method specifically comprises the following steps:

(1)采用摄像头及图象采集卡获取车辆的图象信息;(1) Obtain the image information of the vehicle by using a camera and an image acquisition card;

(2)再用图象差分、图象二值化、边缘腐蚀与平滑滤波来消除图象信息的噪声干扰;(2) Use image difference, image binarization, edge erosion and smoothing filter to eliminate the noise interference of image information;

(3)最后用重心坐标描述车辆运动轨迹、进而通过方向编码得到数字化运动参数;(3) Finally, use the coordinates of the center of gravity to describe the trajectory of the vehicle, and then obtain the digital motion parameters through direction coding;

所说的模式识别方法具体包括:采用所说的数字图象处理方法进行停车判别;运动中的折反点判别;折反方向与路线结合红外线传感器信号判别运动路线是否按规定在甲库中完成二进二下后进入乙库的判别方法;Said pattern recognition method specifically comprises: adopting said digital image processing method to carry out parking discrimination; Reversal point discrimination in motion; Reversed direction and route in combination with infrared sensor signal to judge whether motion route is completed in the first warehouse as stipulated The identification method of entering into the B library after two entries and two entries;

所说的用计算机自动判别驾驶员是否按考试大纲规定的路线行驶与操作具体包括:利用存储在计算机中的基于图象序列分析的车辆桩考自动测量系统软件对在桩考过程中出现的各种情况实时测量并及时准确的通过LED大屏幕显示器和喇叭提示考试信息。Said using the computer to automatically judge whether the driver is driving and operating according to the route specified in the test outline specifically includes: using the vehicle pile test automatic measurement system software based on image sequence analysis stored in the computer to measure each pile test that occurs during the pile test. This situation is measured in real time and the test information is prompted through the LED large-screen display and the speaker in a timely and accurate manner.

本发明所说的图象差分方法可为用两帧图像的灰度差提取运动目标信息;对于图像序列中固定不动部分其灰度差值为零,而运动部分则呈现出一定的灰度差,因此差分图像只具有运动部分的信息;具体可包括以下三种方式:The image difference method mentioned in the present invention can be used to extract moving target information by using the gray level difference of two frames of images; for the fixed part in the image sequence, the gray level difference value is zero, while the moving part then presents a certain gray level difference, so the difference image only has the information of the moving part; specifically, the following three methods can be included:

(1)用图像序列中每一帧与一个静止的参考帧作图像差分;(1) Use each frame in the image sequence to make image difference with a static reference frame;

(2)用图像序列中相邻两帧进行差分,然后二值化该灰度差分图像来提取运动信息;(2) Differentiate two adjacent frames in the image sequence, and then binarize the grayscale difference image to extract motion information;

(3)用三帧图像计算出两个差分图像,然后再对这两个差分图像进行二次差分。(3) Two difference images are calculated by using three frames of images, and then a second difference is performed on the two difference images.

本发明所说的图象二值化可采用快速固定阈值法进行分割,根据实验选择二值化阈值T,灰度值超过该阈值以上的像素全部置为目标区域的255灰度值,在阈值以下的全部象素的灰度值置为背景区域的零。The said image binarization of the present invention can adopt fast fixed threshold value method to carry out segmentation, selects binarization threshold value T according to experiment, the grayscale value exceeds the 255 grayscale values of target area all to be set as the pixel above this threshold value, at threshold value The gray value of all the following pixels is set to zero of the background area.

本发明所说的边缘腐蚀方法可为:每帧图象的背景由于光线方向及照度的变化产生散粒噪声,利用它在图像中所占的面积比车辆所占的面积小很多的特点,通过边缘腐蚀消除这些散粒噪声的像素;根据其它物体图像的大小及分布情况,进行一维或二维腐蚀消除任意个像素的宽度;所说的平滑滤波方法为:每帧图像重心坐标所构成的序列是车辆运动轨迹,由于现场各种干扰造成计算出的运动轨迹有细节突变,必须对运动轨迹进行平滑滤波,即根据前后4个样本点加权后的均值递推得到当前(x,y)坐标。The said edge erosion method of the present invention can be: the background of each frame of image produces shot noise due to the change of light direction and illumination, utilizes the characteristic that the area occupied by it in the image is much smaller than the area occupied by the vehicle, through Edge erosion eliminates these shot noise pixels; according to the size and distribution of other object images, perform one-dimensional or two-dimensional erosion to eliminate the width of any pixel; the smoothing filtering method is: the coordinates of the center of gravity of each frame of image constitute The sequence is the trajectory of the vehicle. Due to various disturbances on the scene, the calculated trajectory has sudden changes in details. The trajectory must be smoothed and filtered, that is, the current (x, y) coordinates are obtained by recursively recursively based on the weighted average of the four sample points before and after. .

本发明所说的车辆运动轨迹的方向编码可采用图象象素与Kirsch边缘算子的8个卷积核做卷积,可以得到每个核对特定边缘方向的最大响应,所有8个方向中的最大值做为边缘幅度图像的输出,最大响应核的序号构成了边缘方向编码,所说的重心运动轨迹用8自由度编码得方向变化轨迹。The direction coding of the said vehicle trajectory of the present invention can adopt image pixel and 8 convolution kernels of Kirsch edge operator to do convolution, can obtain the maximum response of each checking specific edge direction, all 8 directions The maximum value is used as the output of the edge amplitude image, and the sequence number of the maximum response kernel constitutes the edge direction code, and the so-called center of gravity motion trajectory is coded with 8 degrees of freedom to obtain the direction change trajectory.

本发明所说的停车模式判别方法可为:在限定一域值内将相邻两帧图像差分后二值化,看是否有灰度改变的像素,若没有则间隔4帧后再做差分,如果还是没有变化的像素则可以判定车辆停止。The method for discriminating the parking mode in the present invention can be: within a limited threshold, two adjacent frames of images are differentiated and then binarized to see if there are pixels with gray scale changes, and if not, the difference is made after 4 frames. If there are still no changing pixels, it can be determined that the vehicle is stopped.

本发明所说的行车路线的折返点判别方法可包括:The turning point discrimination method of said driving route of the present invention can comprise:

(1)当车辆进入车库的库底后,从库底向上运动时(车辆前进),记录重心y值的最大值ymax(1) When the vehicle enters the bottom of the garage and moves upward from the bottom of the garage (vehicle advances), record the maximum value y max of the center of gravity y value;

(2)计算出每一帧图像的车辆重心之后,都将y值与ymax值比较,如果y≥ymax,则令ymax=y,如果y<ymax,则看ymax减y的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有折返,如果Δy>Th,则认为车辆已经折返,开始向库底运动(车辆倒车);反之亦然:(2) After calculating the vehicle center of gravity of each frame image, compare the y value with the y max value, if y≥y max , then set y max =y, if y<y max , then look at y max minus y Whether the difference Δy is greater than the preset threshold T h , if Δy≤T h , it is considered that the vehicle has not turned back ; Then:

(3)当车辆达到库顶后,从库顶向下运动时(车辆倒车),通过记录最小的ymin,如果y≤ymin,则令ymin=y,如果y>ymin,则看y减ymin的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有从库底折返,如果Δy>Th,则认为车辆已经从库底折返,开始向库顶运动(车辆前进)。(3) When the vehicle reaches the roof of the warehouse and moves downward from the roof of the warehouse (the vehicle reverses), by recording the minimum y min , if y≤y min , set y min =y, if y>y min , then see Whether the difference Δy between y minus y min is greater than the preset threshold T h , if Δy≤T h , it is considered that the vehicle has not turned back from the bottom of the reservoir; if Δy>T h , it is considered that the vehicle has turned back from the bottom of the reservoir, and the Movement to the top of the warehouse (vehicle advances).

本发明所说的在甲库中完成二进二下后进入乙库的判别方法可为:由路线折反点再结合车辆当前所处的车库位置,可以分析出当前车辆贴库操作是否符合二进二下的标准:According to the present invention, the method of judging entering into the second warehouse after finishing the second entry and the second download in the A warehouse can be: from the route inversion point combined with the current garage position of the vehicle, it can be analyzed whether the current vehicle sticking operation conforms to the two Enter the following standards:

(1)车辆已经进入甲库;(1) The vehicle has entered the warehouse;

(2)车辆向库顶方向前进,检测到一个折反点(一上);(2) The vehicle advances towards the top of the warehouse and detects a turning point (one up);

(3)车辆向库底方向倒车,检测到一个折反点(一下);(3) The vehicle reverses towards the bottom of the warehouse, and a turning point is detected (one click);

(4)车辆向库顶方向前进,检测到一个折反点(二上);(4) The vehicle advances toward the top of the warehouse, and detects a turning point (second upper);

(5)车辆向库底方向倒车,检测到一个折反点(二下);(5) The vehicle reverses toward the bottom of the warehouse, and a turning point is detected (secondary);

(6)此时如果车辆已经在乙库,贴库完成。如果车辆压住了甲乙库中线(挡住中间的红外线),则贴库失败。(6) At this time, if the vehicle is already in the second warehouse, the posting to the warehouse is completed. If the vehicle presses the middle line of A and B warehouses (blocking the infrared rays in the middle), the paste library will fail.

本发明的特点及效果:Features and effects of the present invention:

(1)本发明是以红外传感器探测车身出线,以磁感应传感器检测碰擦桩杆,以电磁传感器检测发动机引擎工作状态,以CCD摄像机将车辆运动图像传送到计算机,通过图像处理检测车辆中途停车和行驶路线是否符合大纲要求。通过摄象机拍摄的车辆运动图象处理自动跟踪测量桩考过程,红外传感器、龙门架和桩杆辅为系统标定车库边界,点火信号检测使用感应发动机点火信号的电磁传感器全程自动测量发动机工作状态。(1) The present invention detects the outgoing line of the vehicle body with an infrared sensor, detects the rubbing pile pole with a magnetic induction sensor, detects the working state of the engine engine with an electromagnetic sensor, and transmits the moving image of the vehicle to the computer with a CCD camera, and detects the parking and parking of the vehicle through image processing. Whether the driving route meets the outline requirements. The process of pile inspection is automatically tracked and measured through the processing of vehicle motion images captured by the camera. Infrared sensors, gantry and pile poles assist the system to calibrate the garage boundary. The ignition signal detection uses the electromagnetic sensor that senses the engine ignition signal to automatically measure the engine working status throughout the process. .

(2)所有测试科目无须改装车辆。(2) All test subjects do not need to modify the vehicle.

(3)实时测量,无须准备时间,考试过程完全由被考车辆运行时间决定。(3) Real-time measurement without preparation time, the test process is completely determined by the running time of the tested vehicle.

(4)本系统在桩考过程中出现的种种各种情况(如,不按规定路线、顺序行驶,碰擦桩杆,移库不入,车身出线,中途停车两次,熄火等)时能及时准确的通过计算机监测指示:(4) The system can detect various situations in the process of pile testing (such as not following the prescribed route and sequence, rubbing pile poles, failing to move into the warehouse, vehicle body going out of the line, stopping twice halfway, turning off the engine, etc.) Timely and accurate computer monitoring instructions:

(5)实现了在野外环境各种天气条件下自动跟踪并识别车辆桩考运动轨迹模式,重点解决了大风、阳光、云层、雨雪等背景干扰下运动车辆差分图象处理及重心提取,进而通过空间平滑滤波去除噪声后,根据设置的8自由度模板匹配目标运动轨迹,实现车辆运动模式的自动识别。(5) Realized the automatic tracking and identification of vehicle pile test movement trajectory mode under various weather conditions in the field environment, focusing on solving the differential image processing and center of gravity extraction of moving vehicles under the background interference of strong wind, sunshine, clouds, rain and snow, etc., and then After the noise is removed by spatial smoothing and filtering, the target motion trajectory is matched according to the set 8-degree-of-freedom template, and the automatic recognition of the vehicle motion mode is realized.

附图说明Description of drawings

图1是本发明的考试单库场地的实施例结构示意图。Fig. 1 is a schematic structural diagram of an embodiment of the examination form library site of the present invention.

图2是本实施例系统电路总体结构框图。Fig. 2 is a block diagram of the overall structure of the system circuit of this embodiment.

图3是本实施例场地上红外传感器、桩杆上霍尔传感器分布位置示意图。Fig. 3 is a schematic diagram of the distribution positions of infrared sensors on the site and Hall sensors on piles in this embodiment.

图4a是本实施例场地与摄像机位置关系示意图之一。Fig. 4a is one of the schematic diagrams showing the positional relationship between the field and the camera in this embodiment.

图4b是本实施例场地与摄像机位置关系示意图之二。Fig. 4b is the second schematic diagram of the positional relationship between the field and the camera in this embodiment.

图5是本实施例熄火检测单元结构框图。Fig. 5 is a structural block diagram of the flameout detection unit in this embodiment.

图6是本实施例发射单元电路原理图。Fig. 6 is a circuit schematic diagram of the transmitting unit of this embodiment.

图7是本实施例接收单元逻辑结构。Fig. 7 is the logical structure of the receiving unit in this embodiment.

图8是本实施例信号调理电路原理。Fig. 8 is the principle of the signal conditioning circuit of this embodiment.

图9是本实施例开关量传感器信号连接关系。Fig. 9 is the signal connection relationship of the switching value sensor in this embodiment.

图10是本实施例图象获取过程。Fig. 10 is the image acquisition process of this embodiment.

图11是本实施例采集卡逻辑结构。Fig. 11 is the logical structure of the acquisition card in this embodiment.

图12(a)是本实施例固定参考帧图象。Fig. 12(a) is a fixed reference frame image in this embodiment.

图12(b)是本实施例运动序列中的一帧图象。Fig. 12(b) is a frame of image in the motion sequence of this embodiment.

图12(c)是(b)与(a)的差分图象。Figure 12(c) is the difference image between (b) and (a).

图12(d)是对(c)在选定域值下做二值化的图象。Fig. 12(d) is the binarized image of (c) under the selected domain value.

图12(e)是由(d)做边缘腐蚀得到的图象。Figure 12(e) is the image obtained by edge erosion in (d).

图13是图12(c)的直方图。Fig. 13 is a histogram of Fig. 12(c).

图14是本实施例测量重心运动方向的8自由度编码模板示意图。Fig. 14 is a schematic diagram of an 8-DOF coding template for measuring the motion direction of the center of gravity in this embodiment.

图15(a)是本实施例测量到的原始重心轨迹。Fig. 15(a) is the track of the original center of gravity measured in this embodiment.

图15(b)是本实施例滤波后重心轨迹。Fig. 15(b) is the locus of the center of gravity after filtering in this embodiment.

图15(c)是本实施例用方向码表示的数字化重心轨迹。Fig. 15(c) is the digitized center-of-gravity track represented by the direction code in this embodiment.

图16是本实施例行车折反点判别程序流程。Fig. 16 is the flow chart of the program for judging the turning point of the vehicle in this embodiment.

图17是本实施例系统调整部分和考试部分两块程序流程。Fig. 17 is the program flow of the system adjustment part and the examination part of the present embodiment.

图18是本实施例车辆行进3D模型图中的一帧,用来分析行车路线中可能发生问题。FIG. 18 is a frame in the 3D model diagram of the vehicle traveling in this embodiment, which is used to analyze possible problems in the driving route.

图19是本实施例考试线程程序流程图。Fig. 19 is a flow chart of the examination thread program in this embodiment.

图20是本实施例系统调整功能的运行画面。Fig. 20 is the operation screen of the system adjustment function in this embodiment.

图21是本实施例系统测量运行画面,红色曲线是实时跟踪测量的车辆运动轨迹。Fig. 21 is the measurement and operation screen of the system of this embodiment, and the red curve is the vehicle motion trajectory tracked and measured in real time.

图22(a)是本实施例标准行车路线。Fig. 22 (a) is the standard driving route of the present embodiment.

图22(b)是本实施例跟踪记录的车辆运动轨迹模式。Fig. 22(b) is the vehicle movement track pattern tracked and recorded in this embodiment.

具体实施方式Detailed ways

本发明设计出一种基于图象序列分析的驾驶员桩考过程自动测试系统的实施例,结合各附图详细说明如下:The present invention designs a kind of embodiment based on the driver pile examination process automatic test system of image sequence analysis, in conjunction with each accompanying drawing, describe in detail as follows:

本实施例的驾驶员桩考过程自动测试系统由以下几部份组成:The driver pile test process automatic test system of the present embodiment is made up of following several parts:

(1)考试场地上的龙门架单元,它通过吊簧悬挂桩杆,起到标识车库尺寸的作用。单库2副而套库是3副。龙门架由三角横梁与支撑架组成,高度3.4米,宽度9米(全长),跨度为8.5米,由钢管焊接而成;支撑架是两根立柱,立柱和三角梁由镙栓紧固件连接在一起。桩杆的悬挂支架也由镙栓紧固件连接在横梁上。(1) The gantry unit on the test site, which hangs the pile pole through the suspension spring, plays the role of marking the size of the garage. There are 2 pairs for a single library and 3 pairs for a set library. The gantry frame consists of a triangular beam and a support frame, with a height of 3.4 meters, a width of 9 meters (full length), and a span of 8.5 meters, welded by steel pipes; the support frame is two columns, and the column and the triangular beam are fastened by screws. connected together. The suspension brackets of the pile rods are also connected to the beams by screw fasteners.

(2)考试用桩杆。由杆体、连结镙栓、上下调装置及霍尔开关组成,杆体为铝合金管所制。霍尔开关安装在桩杆底部,用上下调节装置调节霍尔开关与埋在地面上的磁钢之间的间隙。单库6副而套库是11副。(2) Exam poles. It is composed of rod body, connecting screw, up and down adjustment device and Hall switch. The rod body is made of aluminum alloy tube. The Hall switch is installed at the bottom of the pile, and the gap between the Hall switch and the magnetic steel buried on the ground is adjusted with an up and down adjustment device. There are 6 pairs in a single library and 11 pairs in a set library.

(3)考试场地上的红外线接收/发射传感器单元,用来标识车库边界。单库5组而套库是8组。(3) The infrared receiving/emitting sensor unit on the test site is used to mark the boundary of the garage. There are 5 groups for a single library and 8 groups for a set library.

(4)摄象机支架与摄象机。(4) Camera bracket and camera.

(5)户外LED大屏幕显示器和喇叭,用来提示考试信息。(5) The outdoor LED large-screen display and speakers are used to prompt the examination information.

(6)计算机图象处理单元。由图象采集卡、计算机设备、开发的程序软件组成。(6) Computer image processing unit. It is composed of image acquisition card, computer equipment and developed program software.

(7)无线传送发动机熄火检测单元。其中,发射单元吸附在车顶,由电磁传感器、信号整形电路、无线电发射机组成。接收单元安装在机房,由无线电接收机、信号条理电路组成。(7) Wireless transmission engine flameout detection unit. Among them, the transmitting unit is adsorbed on the roof, and is composed of an electromagnetic sensor, a signal shaping circuit, and a radio transmitter. The receiving unit is installed in the computer room and is composed of a radio receiver and a signal processing circuit.

(8)开关量采集单元。场地上所有的开关量信号由埋地电缆接入位于机房的开关量采集单元,单元由开关量采集卡、转接器、电源组成。(8) Switch value acquisition unit. All the switching signals on the site are connected to the switching value acquisition unit located in the computer room through buried cables. The unit is composed of a switching value acquisition card, an adapter and a power supply.

图1是一种单型号车库场地实施例示意图。为了标识场地共使用了二副龙门架101,6根桩杆102构成两个车库,107是甲库,108是乙库。5套红外线传感器中,发射是103a、接收是103b,它们分别设置在场地的前后左右,场地前部设置车道104,而位于场地后部的摄象机105则用于拍摄车辆运动画面,车道的一侧设有机房106。图中,桩杆102悬挂在龙门架上,当学员碰撞桩杆时,桩杆上的霍尔传感器会通知计算机,由程序检测出来。两横三竖的5对红外传感器标定两个车库边界和中线,车辆运动中如果越界,则红外线被遮断而通知程序处理。Fig. 1 is a schematic diagram of an embodiment of a single type garage site. In order to mark the site, two secondary gantry frames 101 are used, and 6 pile poles 102 form two garages, 107 is a warehouse, and 108 is a second warehouse. Among the 5 sets of infrared sensors, emission is 103a, reception is 103b, they are respectively arranged on the front, rear, left, and right sides of the field, the front of the field is provided with a driveway 104, and the camera 105 positioned at the rear of the field is used to take pictures of vehicle movement. A machine room 106 is provided on one side. In the figure, the pole 102 is suspended on the gantry. When a student collides with the pole, the Hall sensor on the pole will notify the computer and the program will detect it. Two horizontal and three vertical pairs of infrared sensors mark the boundary and center line of the two garages. If the vehicle crosses the boundary during motion, the infrared rays will be blocked and the program will be notified for processing.

图2是本实施例系统电路总体结构,包括:CCD摄像监测单元,红外传感器单元,霍尔传感器单元,熄火检测单元,信号调理电路,计算机图象处理系统,大屏幕显示器,喇叭,打印机。其中,红外传感器检测是否有物体越过边线,霍尔传感器检测是否有物体碰撞桩杆,熄火检测检测单元中的传感器监视发动机是否熄火,而计算机自动跟踪摄象机拍摄画面中车辆的运动轨迹,并识别是否符合考试大纲要求。上述三个单元的输出端与信号调理电路的输入端相连,因为三个单元的传感器信号都是开关量,需要接口电路转换成TTL电平,而熄火检测信号还需要信号整形处理。信号调理电路与传感器进线放在一接线箱内。Fig. 2 is the overall structure of the system circuit of this embodiment, including: CCD camera monitoring unit, infrared sensor unit, Hall sensor unit, flameout detection unit, signal conditioning circuit, computer image processing system, large-screen display, loudspeaker, printer. Among them, the infrared sensor detects whether there is an object crossing the sideline, the Hall sensor detects whether there is an object colliding with the pile pole, the sensor in the flameout detection unit monitors whether the engine is flameout, and the computer automatically tracks the movement trajectory of the vehicle in the camera picture, and Identify compliance with exam syllabus requirements. The output terminals of the above three units are connected to the input terminals of the signal conditioning circuit, because the sensor signals of the three units are all switching values, which need to be converted into TTL level by the interface circuit, and the flameout detection signal also needs signal shaping processing. The signal conditioning circuit and the sensor incoming line are placed in a junction box.

摄像机采集的图象信号是直接连接到计算机内的图象采集卡。The image signal collected by the camera is directly connected to the image acquisition card in the computer.

计算机通过图象处理程序软件把测量结果输出到户外大屏幕显示器,显示合格不合格信息,考试不合格时同时显示出错的6种情况:碰撞桩杆;不按规定路线、顺序行驶;移库不入;车身出线;中途停车两次;熄火。The computer outputs the measurement results to the outdoor large-screen display through the image processing program software, and displays the qualified and unqualified information. When the test is unqualified, 6 kinds of errors are displayed at the same time: collision with piles; driving not in accordance with the prescribed route and sequence; Enter; the body exits the line; stop twice halfway; turn off the engine.

图3是本实施例场地上红外传感器、桩杆上霍尔传感器分布位置示意。它们按场地尺寸分布,用来标识车库边界,图3场地上标记的罗马数字I、II、III、IV、V、VI、VII、VIII是各个红外传感器组编号,而场地上标记的阿拉伯数字1~11是桩杆编码。这是双型号车辆套库的情况,如果是单型号小车库,则传感器II、III、IV,桩杆1、2、4、5、6被忽略;如果是单型号大车库,则传感器VI、VII、VIII,桩杆7、8、9、10、11被忽略。Fig. 3 is a diagram showing the distribution positions of infrared sensors on the field and Hall sensors on piles in this embodiment. They are distributed according to the size of the site and are used to mark the boundary of the garage. The Roman numerals I, II, III, IV, V, VI, VII, and VIII marked on the site in Figure 3 are the numbers of each infrared sensor group, while the Arabic numeral 1 marked on the site is ~11 is pile code. This is the case of double-model vehicle sets. If it is a single-model small garage, sensors II, III, IV, and piles 1, 2, 4, 5, and 6 are ignored; if it is a single-model large garage, sensors VI, VII, VIII, poles 7, 8, 9, 10, 11 are ignored.

本实施例的两个车库宽为2.65m长为12.1m,车道宽为9.075m,摄像机支架距车库一端5m,高5m,如图4所示,图中的109为测试车辆。The two garages of the present embodiment are 2.65m wide and 12.1m long, and the driveway is 9.075m wide. The camera support is 5m away from one end of the garage and 5m high, as shown in Figure 4, 109 among the figures is the test vehicle.

本实施例的各电路组成部分的具体结构详细说明如下;The specific structure of each circuit component of this embodiment is described in detail as follows;

一.CCD摄像监测单元1. CCD camera monitoring unit

摄像机在固定位置对场地进行拍摄,因为平台固定,所以摄像头视角必须覆盖整个场地。考试车辆108中车型最大的是北京1041(宽1.95m,长6m),考虑到被测车辆高度,估算水平视角时不将三角架高度计算在内,则有:

Figure C0010913300101
此时拍摄最远范围是27.75米。如图4a,垂直视角是:
Figure C0010913300102
如图4b。镜头与CCD芯片成像尺寸相同,选用1/2”摄像机则镜头也为1/2”,成象为6.5×4.8mm2。镜头焦距决定视角大小,用6毫米焦距,由透镜成像公式及相似三角形可计算出镜头水平视角为垂直视角为
Figure C0010913300104
均符合计算要求。选用AVENIR的SG0614CSE型6.0mm F1.4自动光圈镜头以适应野外环境下光照条件的变化,而摄像机必须有高分辨率才能检测出车辆微小运动。车辆在摄像机视野最远端纵向移动1米距离时,摄像机垂直视角变化量是
Figure C0010913300105
而摄像机垂直视角为43.6°,即是垂直视角的 ,用MINTRON的MTV-1881EX型600线黑白CCD摄像机,则车辆在最远端纵向移动1米时图象有4个像素的变化量。The camera shoots the site at a fixed position. Because the platform is fixed, the camera angle of view must cover the entire site. The largest model among the test vehicles 108 is Beijing 1041 (1.95m wide, 6m long). Considering the height of the tested vehicle, the height of the tripod is not included in the estimation of the horizontal viewing angle, then:
Figure C0010913300101
At this time, the farthest shooting range is 27.75 meters. As shown in Figure 4a, the vertical viewing angle is:
Figure C0010913300102
Figure 4b. The imaging size of the lens is the same as that of the CCD chip. If a 1/2” camera is used, the lens is also 1/2”, and the image size is 6.5×4.8mm 2 . The focal length of the lens determines the size of the angle of view. With a focal length of 6 mm, the horizontal angle of view of the lens can be calculated from the lens imaging formula and similar triangles as The vertical viewing angle is
Figure C0010913300104
All meet the calculation requirements. AVENIR's SG0614CSE 6.0mm F1.4 automatic aperture lens is selected to adapt to changes in light conditions in the field environment, and the camera must have high resolution to detect the slight movement of the vehicle. When the vehicle moves longitudinally for a distance of 1 meter at the farthest end of the camera field of view, the vertical angle of view of the camera changes by
Figure C0010913300105
The vertical angle of view of the camera is 43.6°, that is, the vertical angle of view , with the MTV-1881EX type 600 black-and-white CCD camera of MINTRON, then the vehicle moves 1 meter longitudinally at the farthest end, and the image has a variation of 4 pixels.

本实施例系统设计的摄象机位置及角度关系,是根据桩考训练标准场地尺寸要求,既保证全场地均在摄象机画面之内,又要有尽可能大的图象边缘分辨率。The position and angle relationship of the camera in the system design of this embodiment is based on the size requirements of the pile test training standard site, which not only ensures that the entire site is within the camera screen, but also has as large an image edge resolution as possible. .

二.熄火检测单元2. Flame-off detection unit

本实施熄火检测单元结构如图5所示。其发射部分装在考试车辆上,电磁传感器获取的发动机点火信号经整形调制处理,调制后通过无线电发射机发射;接收处理部分安装在机房,接收到的无线电信号后经过解调、输出隔离、传送到信号调理电路。The structure of the flameout detection unit in this implementation is shown in FIG. 5 . The transmitting part is installed on the test vehicle, the engine ignition signal obtained by the electromagnetic sensor is processed by shaping and modulation, and then transmitted through the radio transmitter after modulation; the receiving and processing part is installed in the computer room, and the received radio signal is demodulated, output isolated, and transmitted to the signal conditioning circuit.

(1)发射单元工作原理(1) Working principle of the transmitting unit

本实施例的发射部分电路原理如图6所示。汽车途中熄火测量是通过对发动机工作电脉冲检测来实现的。电磁传感器夹在汽车发动机点火线圈高压侧的任意一个汽缸分电器电缆上,探头拾取的工作脉冲电流经LM121放大器放大后只有正脉冲被整形输出去触发单稳74221,这是一个不可重触发单稳,设计脉宽330mS。因为4缸发动机点火信号周期是 ,转数N取值在400~5000,所以工作时发动机点火信号周期在600mS~48mS。另一方面,为防止现场干扰必须使用PT2262无线编码电路,其编码序列动作频率在数Hz,因此不能将发动机点火信号直接应用,而是通过74221单稳限频,转数低时跟随点火信号频率动作,转数高时被限制在3Hz左右动作。发射部件吸附在汽车顶部,不用改装汽车且操作方便。The circuit principle of the transmitting part of this embodiment is shown in FIG. 6 . The flameout measurement of the car is realized by detecting the electrical pulse of the engine. The electromagnetic sensor is clamped on any cylinder distributor cable on the high-voltage side of the ignition coil of the automobile engine. The working pulse current picked up by the probe is amplified by the LM121 amplifier and only the positive pulse is shaped and output to trigger the monostable 74221. This is a non-retriggerable monostable , the design pulse width is 330mS. Because the ignition signal period of the 4-cylinder engine is , the number of revolutions N is between 400 and 5000, so the period of the engine ignition signal is between 600mS and 48mS during operation. On the other hand, in order to prevent on-site interference, PT2262 wireless coding circuit must be used, and its coding sequence action frequency is several Hz, so the engine ignition signal cannot be directly applied, but the frequency is limited by 74221 monostable, and it follows the ignition signal frequency when the number of revolutions is low Action, when the number of revolutions is high, it is limited to around 3Hz. The launching part is adsorbed on the top of the car, no need to modify the car and it is easy to operate.

(2)接收部分工作原理(2) The working principle of the receiving part

本实施例的接收电路逻辑结构如图7所示。其中,TWH9238接收机与PT2262发射机配对使用,接收发动机点火工作信号,经信号调理电路整形、计数后,计数值通过信号转接板ACLD-880与插入计算机PCI插槽的ACLD-7130信号隔离接口板相连的数据总线被程序读入到计算机进行处理。The logical structure of the receiving circuit of this embodiment is shown in FIG. 7 . Among them, the TWH9238 receiver is paired with the PT2262 transmitter to receive the engine ignition signal. After the signal conditioning circuit is shaped and counted, the count value is connected to the ACLD-7130 signal isolation interface inserted into the PCI slot of the computer through the signal adapter board ACLD-880 The data bus connected to the board is read into the computer by the program for processing.

三.信号调理电路3. Signal conditioning circuit

图8是信号调理电路原理。在启动状态线跳低后,闸门信号的正半周与门放开,点火信号进入计数器,闸门信号的下跳沿关闭与门停止计数。因此,在程序指定时间段内可以测量到发动机点火信号工作频率,如果计数值为零,可以断定发动机处于熄火状态。Figure 8 is the principle of the signal conditioning circuit. After the starting status line jumps low, the positive half cycle of the gate signal and the gate are released, the ignition signal enters the counter, and the lower jump edge of the gate signal closes the AND gate to stop counting. Therefore, the operating frequency of the engine ignition signal can be measured within the specified time period of the program, and if the count value is zero, it can be concluded that the engine is in a stalled state.

四.霍尔传感器单元4. Hall sensor unit

图9是开关量传感器信号连接关系。来自场地上的所有开关量传感器信号也通过信号转接板ACLD-880与插入计算机PCI插槽的ACLD-7130信号隔离接口板相连的数据总线被程序读入到计算机进行处理的。Figure 9 is the signal connection relationship of the switch sensor. All the switching sensor signals from the field are also read into the computer by the program through the data bus connected to the ACLD-7130 signal isolation interface board inserted into the PCI slot of the computer through the signal adapter board ACLD-880.

五.数据采集卡5. Data Acquisition Card

为了将各种信号采集到计算机中进行处理,必须使用一块数据采集卡。因为套库具有8路红外线信号、11路磁感应开关信号和1路熄火检测,而熄火险测至少使用5位信号(1位输出、4位输入),一共23位输入,1位输出。本实施例选用能插入计算机PCI插槽的ACL-7130 32通道隔离数字I/O卡,由台湾研祥公司生产。同时在接线箱采用研祥公司的ACLD-880接口板与计算机机箱内的ACL-7130板连接用于信号的输入输出,如图9所示。In order to collect various signals to the computer for processing, a data acquisition card must be used. Because the library has 8 channels of infrared signals, 11 channels of magnetic induction switch signals and 1 channel of flameout detection, and flameout detection uses at least 5-bit signals (1-bit output, 4-bit input), a total of 23-bit input and 1-bit output. This embodiment selects the ACL-7130 32-channel isolated digital I/O card that can be inserted into the PCI slot of a computer, produced by Taiwan EVOC. At the same time, the ACLD-880 interface board of EVOC is used in the junction box to connect with the ACL-7130 board in the computer case for signal input and output, as shown in Figure 9.

本实施例的图像处理方法详细说明如下:The image processing method of this embodiment is described in detail as follows:

野外环境下运用图像处理和模式识别的方法判断车辆行驶状态的难点是野外天气条件的变化,诸如雨、雪、风、云、日照强度、阳光照射角度等都会影响摄取到的图像质量。当光线强度降低时会引起图像整体亮度降低,对比度变差;当摄像机镜头粘上灰尘或在雨雪天气中,图像清晰度会下降,景物边缘会变得模糊;在冬季大风天气中摄像机支架会发生颤动,造成图像序列中背景的颤动。这些因素都对图像分析造成困难。另外,图像序列处理速度必须大于4帧/秒才不会丢失车辆运动状态信息(车速低于10km/h)。因此,动目标处理方法在速度和精度两方面必须都达到要求才能使系统具有实用价值。本系统对各种算法进行了大量试验,提出的实际算法直接在PC机上就可以满足处理速度与精度的要求。The difficulty of using image processing and pattern recognition methods to judge vehicle driving status in the field environment is the change of field weather conditions, such as rain, snow, wind, cloud, sunlight intensity, and sunlight angle, etc. will affect the quality of the captured image. When the light intensity decreases, the overall brightness of the image will decrease, and the contrast will become poor; when the camera lens is covered with dust or in rainy and snowy weather, the image clarity will decrease, and the edge of the scene will become blurred; in winter windy weather, the camera bracket will Vibration occurs, causing the background in the sequence of images to vibrate. These factors all make image analysis difficult. In addition, the image sequence processing speed must be greater than 4 frames per second so as not to lose vehicle motion state information (vehicle speed is lower than 10km/h). Therefore, the moving target processing method must meet the requirements in both speed and precision to make the system have practical value. This system has carried out a lot of experiments on various algorithms, and the actual algorithm proposed can meet the requirements of processing speed and precision directly on the PC.

本实施例的具体的图象处理方法包括:图像获取方法;野外环境下各种天气条件造成的场地背景干扰去除法;用8自由度编码将车辆重心位置变化的方向作成数字化轨迹描述的方法;停车判别的算法;车辆由前进转为后退和由后退转为前进的行车路线的拐点判别方法;通过对红外信号遮挡的变化和重心轨迹综合分析判断行车路线是否符合考试大纲要求的方法,以下进行一一说明。The specific image processing method of this embodiment includes: image acquisition method; field background interference removal method caused by various weather conditions in the field environment; using 8-degree-of-freedom coding to make the direction of vehicle center of gravity position change into a digital trajectory description; The algorithm of parking discrimination; the method of judging the inflection point of the driving route from forward to backward and from backward to forward; the method of judging whether the driving route meets the requirements of the examination outline through the comprehensive analysis of the change of infrared signal occlusion and the trajectory of the center of gravity, as follows Explain one by one.

六.图像获取6. Image acquisition

摄象机的视频信号通过图象采集板送入计算机。摄像头拍摄的图像是标准PAL制式视频,信号通过75欧同轴电缆传送到视频采集卡。采集卡根据程序控制,将视频信号转换为512*512*24bit图像存放在计算机内存,即内存中图像是24bit真彩色,每个像素由R、G、B三原色组成。为便于处理和减少存储空间,本实施例将真彩色图像变为256级灰度图像。为此,任取三原色中的一个原色作为相应像素的灰度值。The video signal of the camera is sent to the computer through the image acquisition board. The image captured by the camera is a standard PAL video, and the signal is transmitted to the video capture card through a 75-ohm coaxial cable. According to the control of the program, the acquisition card converts the video signal into a 512*512*24bit image and stores it in the computer memory, that is, the image in the memory is 24bit true color, and each pixel is composed of three primary colors of R, G, and B. In order to facilitate processing and reduce storage space, this embodiment converts the true color image into a 256-level grayscale image. For this reason, one of the three primary colors is randomly selected as the gray value of the corresponding pixel.

图10是图象获取过程,图11是采集卡逻辑结构,为大恒公司的DH-VRT-CG200/1型24位真彩色单路图像采集卡。通过摄象机与图象卡的连接,程序能读入拍摄的场地画面数字图象,为下一步图象处理提供了基本数据。Fig. 10 is the image acquisition process, and Fig. 11 is the logical structure of the acquisition card, which is a DH-VRT-CG200/1 type 24-bit true-color single-channel image acquisition card of Daheng Company. Through the connection between the camera and the image card, the program can read in the digital image of the shooting scene, which provides basic data for the next image processing.

二.动目标识别2. Moving target recognition

图像序列分析的目的是检测运动信息、识别与跟踪运动目标、估计运动参数。当图像帧之间间隔较短时,假设景物中各部分在图像上的灰度基本不变。设t1时刻图像为g1(x,y),t2时刻图像为g2(x,y),若此期间目标平移(Δx,Δy),根据假定有g2(x,y)=g1(x-Δx,y-Δy),用图像差分由两帧相邻图像的灰度差提取运动目标信息。对于图像序列中固定不动部分其灰度差值为零,而运动部分则呈现出一定的灰度差,因此差分图像只具有运动部分的信息。The purpose of image sequence analysis is to detect motion information, identify and track moving targets, and estimate motion parameters. When the interval between image frames is short, it is assumed that the gray scale of each part of the scene on the image is basically unchanged. Suppose the image at time t 1 is g 1 (x, y), and the image at time t 2 is g 2 (x, y). If the target shifts (Δx, Δy) during this period, it is assumed that g 2 (x, y)=g 1 (x-Δx, y-Δy), using image difference to extract moving target information from the gray level difference of two adjacent images. For the fixed part in the image sequence, the gray level difference is zero, while the moving part shows a certain gray level difference, so the difference image only has the information of the moving part.

图象差分有两类:一类使用图像序列中每一帧gI(x,y)与一个静止的参考帧gR(x,y)(不存在任何运动的物体)作图像差分gI(x,y)=gR(x-ΔxI,y-ΔyI)。但是野外环境随时都在变化(如夏天云层运动造成瞬间背景灰度变化,冬春季场地上的瞬时切变强风使摄象机颤动、场地上其它运动物体的阴影变化等),因此,这种方法计算出的(ΔxI,ΔyI)与实际值有一定偏差。在本实施例系统中经过试验对比,在提取运动轨迹时采用这种方法。There are two types of image difference: one uses the image difference g I ( x, y)=g R (x-Δx I , y-Δy I ). However, the field environment is changing at any time (such as the instantaneous background gray level changes caused by cloud movement in summer, the instantaneous shear strong wind on the field in winter and spring makes the camera tremble, and the shadow changes of other moving objects on the field, etc.). The calculated (Δx I , Δy I ) has a certain deviation from the actual value. In the system of this embodiment, after experiments and comparisons, this method is adopted when extracting motion trajectories.

另一类是用图像序列中相邻两帧进行差分,然后二值化该灰度差分图像来提取运动信息。这种方法的问题是车辆缓慢运动时两帧间车辆的重叠部分不能检测出来;其次是检测出的动目标比真实物体大。但是这种方法对于目标的微小运动反应要比前一种方法灵敏,本实施例将它用于检测车辆运动是否停止。为了解决相邻帧差分存在的问题,可以利用三帧图像计算出两个差分图像,然后再对这两个差分图像进行二次差分,最后得到图像为原来三帧图像的Laplacian图。当运动物体的形状和运动向量在几帧图像中变化不太大时用二次差分(Laplacian)图像就能更好的抽出运动物体。这种方法对于目标的微小运动的反应比两帧相减更加灵敏,但其计算量是两帧相减的三倍,占用空间是两帧相减的两倍。The other is to use the difference between two adjacent frames in the image sequence, and then binarize the gray difference image to extract the motion information. The problem with this method is that the overlapping part of the vehicle between two frames cannot be detected when the vehicle is moving slowly; secondly, the detected moving target is larger than the real object. However, this method is more sensitive than the previous method for the micro-motion response of the target. In this embodiment, it is used to detect whether the vehicle stops moving. In order to solve the problem of the difference between adjacent frames, two difference images can be calculated by using three frames of images, and then the two difference images are subjected to the second difference, and finally the image is the Laplacian image of the original three frames of images. When the shape and motion vector of the moving object do not change too much in several frames of images, the second difference (Laplacian) image can be used to better extract the moving object. This method is more sensitive to the small movement of the target than the subtraction of two frames, but its calculation amount is three times that of the subtraction of two frames, and the space occupied is twice that of the subtraction of two frames.

附图的图12(a)是固定参考帧图象,场地背景右上角为起步车辆。图12(b)运动序列中的图象,此时车辆行进到场地甲库位置。图12(c)是与固定帧的差分图象,图12(d)是选定域值的二值化图象,动目标被清楚的表达出来,图12(e)是进而由图12(d)做边缘腐蚀得到的,起到将一些干扰点去除的效果。Figure 12(a) of the accompanying drawings is a fixed reference frame image, and the upper right corner of the field background is the starting vehicle. Figure 12(b) is the image in the motion sequence, at this time the vehicle is moving to the location of the field A warehouse. Figure 12(c) is the difference image with the fixed frame, Figure 12(d) is the binarized image of the selected domain value, and the moving object is clearly expressed, Figure 12(e) is further obtained from Figure 12( d) It is obtained by edge corrosion, which has the effect of removing some interference points.

三.固定参考帧(背景图)的选取3. Selection of fixed reference frame (background image)

由于考试场地是野外环境,天气环境不断地改变造成背景不断的变化,其中最主要的变化因素是太阳位置改变导致的阴影变化。为了将自然环境变化的影响减小到最低限度,在每次考试之前要重新选取新的固定参考帧,在整个考试过程的几分钟之内,阴影变化很小不会造成影响。以每次考试开始后采集到的第一帧图像作为固定参考帧。在第一帧图像中车辆处于图像右上角,正好被龙门架横梁挡住,所占图像面积很小,与没有车辆图像相比差别不大,实际系统验证将其作为固定参考帧是可行的。Since the test site is an outdoor environment, the background changes continuously due to the constant change of the weather environment, and the main factor of the change is the shadow change caused by the change of the sun's position. In order to minimize the impact of changes in the natural environment, a new fixed reference frame must be reselected before each test. During the entire test process, within a few minutes, small shadow changes will not cause any impact. The first frame of image collected after the start of each test is used as a fixed reference frame. In the first frame image, the vehicle is in the upper right corner of the image, which is just blocked by the gantry beam, and occupies a small image area, which is not much different from the image without the vehicle. It is feasible to use it as a fixed reference frame for actual system verification.

四.图像二值化4. Image binarization

图像差分之后背景部分灰度值应全为零,但实际测量的图像序列中,背景不可能严格的保持不变,受各种因素的影响,序列中每帧图像的背景会有微小变化,反映为相同位置像素灰度值有小幅度变化,其幅度明显地比由于背景被车辆遮盖而引起的灰度变化要小。图12c差分图像经过直方图均衡化后得到图13,从中可以看出在背景上车辆周围有亮区和大量的条纹,这是由干扰产生的。为了消除这种小幅度的灰度变化,需要对图像进行二值化,将车辆和背景分割开。分析差分图像的直方图可以看出,目标与背景没有明显的界限,我们采用快速固定阈值法进行分割,选择的阈值T是经过不断的测试、调整而得到的。After the image difference, the gray value of the background part should be all zero, but in the actual measured image sequence, the background cannot be kept strictly unchanged. Affected by various factors, the background of each frame of the image in the sequence will change slightly, reflecting There is a small change in the gray value of the pixel at the same position, which is obviously smaller than the gray change caused by the background being covered by the vehicle. Figure 13 is obtained after the difference image in Figure 12c is histogram equalized, from which it can be seen that there are bright areas and a large number of stripes around the vehicle on the background, which are caused by interference. In order to eliminate this small grayscale change, the image needs to be binarized to separate the vehicle from the background. Analyzing the histogram of the difference image shows that there is no clear boundary between the target and the background. We use the fast fixed threshold method for segmentation, and the selected threshold T is obtained through continuous testing and adjustment.

附图的图12(c)做直方图均衡化得到图13,水平轴是像素灰度值,垂直轴是某一灰度值的像素个数,显然,灰度值在128附近的像素比较少,是运动目标的像素;大部分像素的灰度值是70以下,应该是背景部份的像素。由此我们可以选择二值化域值,灰度值超过该域值以上像素全部置为目标区域的255灰度值,在域值以下的置为背景区域的全零。Figure 12(c) of the attached drawing is histogram equalized to get Figure 13. The horizontal axis is the pixel gray value, and the vertical axis is the number of pixels with a certain gray value. Obviously, there are fewer pixels with a gray value near 128 , is the pixel of the moving target; the gray value of most of the pixels is below 70, which should be the pixels of the background. Therefore, we can choose a threshold value for binarization, and all pixels with a grayscale value exceeding the threshold value are set to the 255 grayscale value of the target area, and those below the threshold value are set to all zeros in the background area.

五.边缘腐蚀5. Edge corrosion

在测量过程中场地边缘的人会被拍摄到画面上,他的移动会对车辆重心计算和运动轨迹判别造成影响。同时,场地中标杆影子会随着时间的变化而移动,虽然变化角度不大,但如不处理也会造成误差。这些物体的共同特点是在图像中所占的面积都要比车辆所占的面积小很多,所以可以用边缘腐蚀的方法消除。一般的边缘腐蚀方法一次只能将宽度减少2个像素,要将这些小物体消除掉需要经过多次的腐蚀。当物体在某一方向如纵轴上的尺度比较大,而在横轴上尺度很小时,只要在水平方向上进行一维腐蚀就可以消除小物体,而且一次可以将物体腐蚀掉任意个像素的宽度,这样可以大幅度减少处理时间。During the measurement process, the person on the edge of the field will be photographed on the screen, and his movement will affect the calculation of the center of gravity of the vehicle and the identification of the trajectory. At the same time, the shadow of the benchmark pole in the field will move with time. Although the angle of change is not large, it will cause errors if it is not dealt with. The common feature of these objects is that the area occupied by the image is much smaller than the area occupied by the vehicle, so it can be eliminated by edge erosion. The general edge erosion method can only reduce the width by 2 pixels at a time, and it takes multiple erosions to eliminate these small objects. When the scale of an object in a certain direction such as the vertical axis is relatively large, and the scale on the horizontal axis is small, as long as one-dimensional erosion is performed in the horizontal direction, small objects can be eliminated, and the object can be etched away by any number of pixels at a time. width, which can drastically reduce processing time.

附图的图12(e)就是对二值化的图12(d)再进行腐蚀处理的效果,它去除了边缘毛刺噪声。Figure 12(e) of the accompanying drawings is the effect of etching the binarized Figure 12(d), which removes edge burr noise.

六.重心计算与运动轨迹平滑滤波6. Center of gravity calculation and motion trajectory smoothing filter

重心坐标 零阶矩

Figure C0010913300142
一阶矩
Figure C0010913300144
二值化图象其背景灰度值都为零而目标子图灰度值都为1,则零阶矩由像素灰度值的和变为像素和,即区域面积。一阶矩由横、纵坐标分别相加得到。每帧图像重心坐标所构成的序列是车辆运动轨迹。由于现场各种干扰造成计算出的运动轨迹有细节突变,不经处理直接做模式匹配会得出错误的结果,故对运动轨迹进行如下的平滑滤波: { &Delta; y - n = ( y n - y n - 1 ) + ( y n - y n - 2 ) + ( y n - y n - 3 ) 6 &Delta; x - n = ( x n - x n - 1 ) + ( x n - x n - 2 ) + ( x n - x n - 3 ) 6 - - - - - - { y - n = y - n - 1 + &Delta; y - n = &Sigma; i = 1 n &Delta; y - i x - n = x - n - 1 + &Delta; x - n = &Sigma; i = 1 n &Delta; x - i 用( x, y)代替( i, j)得平滑后轨迹,原轨迹形状及变化趋势不变,但消除了突变扰动。Center of gravity coordinates zero moment
Figure C0010913300142
first moment
Figure C0010913300144
The background gray value of the binarized image is zero and the gray value of the target sub-image is 1, then the zero-order moment changes from the sum of pixel gray values to the sum of pixels, that is, the area of the region. The first-order moment is obtained by adding the horizontal and vertical coordinates respectively. The sequence formed by the coordinates of the center of gravity of each frame of image is the trajectory of the vehicle. Due to various disturbances on the scene, the calculated movement trajectory has sudden changes in details, and direct pattern matching without processing will give wrong results. Therefore, the following smoothing filter is performed on the movement trajectory: { &Delta; the y - no = ( the y no - the y no - 1 ) + ( the y no - the y no - 2 ) + ( the y no - the y no - 3 ) 6 &Delta; x - no = ( x no - x no - 1 ) + ( x no - x no - 2 ) + ( x no - x no - 3 ) 6 - - - - - - { the y - no = the y - no - 1 + &Delta; the y - no = &Sigma; i = 1 no &Delta; the y - i x - no = x - no - 1 + &Delta; x - no = &Sigma; i = 1 no &Delta; x - i Replace (i, j) with (x, y) to get the smoothed track, the shape and trend of the original track remain unchanged, but the mutation disturbance is eliminated.

车辆运动模式识别Vehicle Movement Pattern Recognition

以桩考训练标准行车路线对车辆运动特征参数识别与模式匹配方法如下:The method of identification and pattern matching of vehicle motion characteristic parameters based on pile test training standard driving route is as follows:

方向模板与行车轨迹分析Direction template and driving trajectory analysis

用图象象素与Kirsch边缘算子的8个卷积核做卷积,可以得到每个核对特定边缘方向的最大响应,所有8个方向中的最大值做为边缘幅度图像的输出,最大响应核的序号构成了边缘方向编码。同样,重心运动轨迹用8自由度编码得方向变化轨迹,编码模板见图14所示。车辆贴库时轨迹是向左倒车,然后逐渐向下转向,当车进入乙库后就变为向下倒车,最后停在乙库库底,描述是5→6→7→0;移库时轨迹是一上到库顶停车,一下到库底停车,二上到库顶停车,二下到库底停车,描述是3→0→7→0→3→0→7→0;出库和倒库时的轨迹是先向上行驶,因为要穿过乙库出库,所以轨迹要向左上拐,出库后车向左拐停车,然后倒车向右,逐渐向下转向,进入甲库后变为向下到车,直到从甲库库底出库为止,描述是3→4→5→0(出库)→1→8→7。由于摄影机不在目标正上方,且车辆阴影造成重心偏差,所以计算的轨迹方向有小偏差,但趋势不变。By convolving image pixels with 8 convolution kernels of the Kirsch edge operator, the maximum response of each kernel to a specific edge direction can be obtained, and the maximum value of all 8 directions is used as the output of the edge amplitude image, and the maximum response The ordinal number of the core constitutes the edge direction code. Similarly, the trajectory of the center of gravity is coded with 8 degrees of freedom to obtain the direction change trajectory, and the coding template is shown in Figure 14. When the vehicle sticks to the warehouse, the trajectory is to reverse to the left, and then gradually turn downward. When the car enters the second warehouse, it changes to reverse downward, and finally stops at the bottom of the second warehouse. The description is 5→6→7→0; when moving the warehouse The trajectory is to stop at the top of the warehouse, stop at the bottom of the warehouse at the first time, stop at the top of the warehouse at the second time, and stop at the bottom of the warehouse at the second time. The description is 3→0→7→0→3→0→7→0; out of the warehouse and When reversing the warehouse, the trajectory is to drive upwards first, because it needs to pass through the second warehouse to leave the warehouse, so the trajectory should turn to the left and up. For going down to the car until going out of the warehouse at the bottom of the first warehouse, the description is 3→4→5→0 (out of the warehouse)→1→8→7. Since the camera is not directly above the target, and the center of gravity is biased by the shadow of the vehicle, there is a small deviation in the calculated trajectory direction, but the trend remains the same.

图14是重心运动方向8自由度编码模板,图15(a)是测量到的原始重心轨迹,图15(b)是滤波后重心轨迹,图15(c)则是用方向码表示的重心轨迹。明显可见,方向编码的重心轨迹完全匹配于车辆实际运动模式。Figure 14 is the 8-degree-of-freedom encoding template of the center of gravity movement direction, Figure 15(a) is the original measured center-of-gravity trajectory, Figure 15(b) is the center-of-gravity trajectory after filtering, and Figure 15(c) is the center-of-gravity trajectory represented by the direction code . It can be clearly seen that the trajectory of the center of gravity encoded by the direction exactly matches the actual motion pattern of the vehicle.

停车模式判别Parking mode discrimination

移动中由倒退变为前进或由前进变为后退时的停车与行驶中的中途停车区别是前者停车前后运动方向相反,后者停车前后运动方向相同。车辆停止时重心位置保持不变,但速度极慢或转向时,图像处理得到的重心位置也可能不变,因此重心位置不变只是车辆停止的必要条件。为此,将相邻两帧图像差分后二值化,看是否有灰度改变的像素,若没有则间隔4帧后再做差分,如果还是没有变化的像素则可以判定车辆停止。为避免刹车造成的车身颤动影响(颤动引起像素变化可能很大,超过车辆远处行驶时的像素变化),应限定一域值以区分是颤动还是拐点。行车路线的折返点判别The difference between parking when moving from backward to forward or from forward to backward and halfway parking during driving is that the former has the opposite direction of movement before and after parking, and the latter has the same direction of movement before and after parking. The position of the center of gravity remains unchanged when the vehicle stops, but when the speed is extremely slow or turning, the position of the center of gravity obtained by image processing may also remain unchanged, so the position of the center of gravity remains unchanged only for the vehicle to stop. To this end, two adjacent frames of images are differentiated and then binarized to see if there are pixels with grayscale changes. If there are no pixels, the difference is made after 4 frames. If there are still no changed pixels, it can be determined that the vehicle is stopped. In order to avoid the impact of body vibration caused by braking (the pixel change caused by vibration may be large, exceeding the pixel change when the vehicle is driving far away), a threshold value should be limited to distinguish between vibration and inflection point. Discrimination of turning point of driving route

车辆由前进转为后退和由后退转为前进的过程定义为行车路线的折返。我们不能简单的依靠停车前后行驶方向的不同来判断行车路线的折返点。这是因为考试时学员一般都是用刹车来停车的,然后换档、起步。当刹车比较急时会造成车身的颤动。当车辆离摄像机比较近时,这种颤动引起的像素变化可能会很大,这样就会引起误判。如少记一次折返和错判方向等。为了解决这个问题,我们用一种新的方法来判断车辆的转向。The process of the vehicle turning from forward to backward and from backward to forward is defined as the turning back of the driving route. We cannot simply rely on the difference in driving direction before and after parking to judge the turning point of the driving route. This is because during the test, students usually use the brakes to stop, then shift gears and start. When the brakes are relatively sharp, it will cause the body to vibrate. When the vehicle is relatively close to the camera, the pixel changes caused by this vibration may be very large, which will cause misjudgment. Such as missing a return and misjudging the direction. To solve this problem, we use a new method to judge the steering of the vehicle.

经过分析可知:当车身颤抖时其重心是在一个较小的范围内来回变化,其数值范围在2~3,最后它会稳定在其中的一点;而当车辆折返以后,它的重心是持续向相反方向变化,很快就会越过2~3这个范围。根据这个特点就可以采取以下的方法来判断车辆的折返。由于主要关心的是车辆在车库中重心的变化,此时车辆的重心变化基本上是在y方向上的,x方向上的变化很小,对于判断的结果不会产生影响。After analysis, it can be seen that when the vehicle body is trembling, its center of gravity changes back and forth in a small range, and its value ranges from 2 to 3, and finally it will stabilize at one point; If you change in the opposite direction, you will soon cross the range of 2 to 3. According to this feature, the following methods can be adopted to judge the turn-back of the vehicle. Since the main concern is the change of the center of gravity of the vehicle in the garage, the change of the center of gravity of the vehicle is basically in the y direction at this time, and the change in the x direction is very small, which will not affect the judgment result.

当车辆进入车库的库底后,从库底向上运动时(车辆前进),记录重心y值的最大值ymax,计算出每一帧图像的车辆重心之后,都将y值与ymax值比较,如果y≥ymax,则令ymax=y,如果y<ymax,则看ymax减y的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有折返,如果Δy>Th,则认为车辆已经折返,开始向库底运动(车辆倒车);反之亦然:当车辆达到库顶后,从库顶向下运动时(车辆倒车),通过记录最小的ymin,如果y≤ymin,则令ymin=y,如果y>ymin则看y减ymin的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有从库底折返,如果Δy>Th,则认为车辆已经从库底折返,开始向库顶运动(车辆前进)。When the vehicle enters the bottom of the garage and moves upward from the bottom of the garage (the vehicle moves forward), record the maximum value y max of the center of gravity y value, and compare the value of y with the value of y max after calculating the center of gravity of the vehicle for each frame of image , if y≥y max , then let y max =y, if y<y max , check whether the difference Δy between y max minus y is greater than the preset threshold T h , if Δy≤T h , consider the vehicle is still If there is no turning back, if Δy>T h , it is considered that the vehicle has turned back and starts to move toward the bottom of the warehouse (vehicle reverse); The smallest y min , if y≤y min , set y min =y, if y>y min , check whether the difference Δy between y minus y min is greater than the preset threshold T h , if Δy≤T h , It is considered that the vehicle has not turned back from the bottom of the warehouse, and if Δy>T h , it is considered that the vehicle has turned back from the bottom of the warehouse and starts to move toward the top of the warehouse (the vehicle is moving forward).

行车折反点判别程序流程见图16所示。The flow chart of the program for judging the turning point of driving is shown in Figure 16.

行车路线的判别Discrimination of driving route

在本系统中,对红外线信号遮挡的变化和经图像处理得到的重心轨迹进行综合分析,就可以判断出车辆行驶路线是否符合考试大纲的要求。根据车辆对5条红外线信号遮挡情况的变化可以得到车辆行驶的大部分路线,而重心轨迹则主要用来判断车辆的中途停车和在移库过程中的两上两下,这是因为车辆中途停车不会使红外线变化,以及当车辆进入车库后(由红外线的遮挡变化可以判断出),只有在移库过程中会遮挡住中间的红外线,这时候仅根据红外线的情况无法得到车辆具体的位置和移动信息。In this system, by comprehensively analyzing the changes of the infrared signal occlusion and the track of the center of gravity obtained through image processing, it can be judged whether the driving route of the vehicle meets the requirements of the examination outline. According to the change of the vehicle's occlusion of the five infrared signals, most of the vehicle's driving route can be obtained, and the center of gravity trajectory is mainly used to judge the vehicle's midway stop and double up and down during the transfer process. This is because the vehicle stops halfway It will not change the infrared rays, and when the vehicle enters the garage (it can be judged by the change of infrared rays), it will only block the infrared rays in the middle during the process of moving the warehouse. At this time, the specific position and location of the vehicle cannot be obtained only based on the infrared rays. mobile information.

用3DS MAX软件建立车辆、考试场地以及运动路线的3D模型进行模拟分析,从摄象机的视角拍摄场地,车辆在考试期间按照规定路线行驶对于红外线的遮挡是这样的:Use 3DS MAX software to build a 3D model of the vehicle, the test site and the movement route for simulation analysis, and take pictures of the site from the perspective of the camera. During the test, the vehicle travels along the prescribed route to block the infrared rays as follows:

(1)开始考试时,车辆没有遮住红外线;(1) When the test starts, the vehicle does not cover the infrared rays;

(2)车辆贴库,开始先遮住右边的红外线;继续倒车,车身同时挡住右边和中间的红外线;然后是只挡住中间的红外线;车尾进入车库,同时挡住中间和车库前面的红外线;然后是只挡住前面的红外线;(2) When the vehicle is attached to the garage, first cover the infrared rays on the right; continue to reverse, the body blocks the infrared rays on the right and the middle at the same time; then only blocks the infrared rays in the middle; the rear of the car enters the garage, and blocks the infrared rays in the middle and in front of the garage at the same time; then It only blocks the infrared rays in front;

(3)车辆完全进入车库后,没有红外线被遮挡;(3) After the vehicle enters the garage completely, no infrared rays are blocked;

(4)车辆在移库的过程中,要在车库中两上两下,这时会挡住中间的红外线;(4) During the process of moving the vehicle, it has to go up and down in the garage, which will block the infrared rays in the middle;

(5)移库结束后,没有红外线被遮挡。(5) After the storage transfer is completed, no infrared rays are blocked.

(6)车辆出库,先挡住中间的红外线;车头出库,同时挡住了中间和车库前面的红外线;然后是同时挡住左边、中间和车库前面的红外线;然后挡住左边和车库前面的红外线;车尾出库后,只挡住左边的红外线;(6) When the vehicle leaves the warehouse, first block the infrared rays in the middle; when the front of the car leaves the warehouse, block the infrared rays in the middle and in front of the garage at the same time; then block the infrared rays in the left, middle and front of the garage; then block the infrared rays in the left and in front of the garage; After the tail is out of the warehouse, only the infrared rays on the left are blocked;

(7)出库至车道上车停住后,没有红外线被遮挡。(7) After leaving the warehouse and getting on the driveway and stopping, no infrared rays are blocked.

(8)车辆从车道向车库(乙)倒库过程中,遮挡红外线的情况与贴库时是对称的,只不过是由右边变为左边;(8) During the process of reversing the vehicle from the driveway to the garage (B), the situation of blocking infrared rays is symmetrical to that of pasting the warehouse, except that it changes from the right to the left;

(9)考试结束后,车尾出乙库时会遮住车库后面的红外线,整个过程结束。(9) After the test is over, the rear of the car will cover the infrared rays behind the garage when it exits the second garage, and the whole process is over.

根据上述分析,得到按大纲规定的标准行驶路线行驶的车辆在整个过程中对红外线信号遮挡变化情况,即红外传感器逻辑真值表。据此,可以在考试程序中判断车辆所处的路线阶段和一些路线错误。According to the above analysis, the changes in the infrared signal shielding of the vehicles traveling according to the standard driving route stipulated in the outline during the whole process are obtained, that is, the logic truth table of the infrared sensor. According to this, it is possible to judge the route stage of the vehicle and some route errors in the test procedure.

表1是大车库红外信号标准变化状态。罗马数字是红外传感器编号(参见附图的图3),按大纲规定路线行驶时,在阶段一遮挡顺序是II号、V号,车尾进库后II号恢复而I号被遮挡。阶段二是车辆逐渐进入甲库,遮挡顺序是II号、V号,车尾进库后V号恢复而I号被遮挡。依次类推,可以得到各阶段的红外传感器信号状态变化真值表。考试过程中如果不按规定行驶,根据当前重心轨迹位置,结合红外传感器信号状态,可以判断各种类型的错误。Table 1 is the standard change state of the infrared signal of the large garage. Roman numerals are infrared sensor numbering (referring to Fig. 3 of accompanying drawing), when traveling according to outline regulation route, in stage one blocking sequence is No. II, No. V, and No. II recovers and No. I is blocked after the rear of the car enters storage. The second stage is that the vehicles gradually enter the warehouse A, and the blocking sequence is No. II and No. V. After the rear of the car enters the warehouse, No. V recovers and No. I is blocked. By analogy, the truth table of the state change of the infrared sensor signal at each stage can be obtained. If you do not drive according to the regulations during the test, various types of errors can be judged according to the current trajectory position of the center of gravity, combined with the signal status of the infrared sensor.

由路线折反点再结合车辆当前所处的车库位置,可以分析出当前车辆贴库操作是否符合二上二下的标准。Based on the route inversion point combined with the current garage location of the vehicle, it can be analyzed whether the current vehicle sticking operation meets the standard of two up and two down.

由停车与折反点组合可以判断车辆是否中途停车。具体软件流程见后节叙述。附图的图18是3D模型图,我们用它来分析行车路线中可能发生的问题:Whether the vehicle stops halfway can be judged by the combination of parking and inversion point. The specific software process is described in the next section. Figure 18 of the accompanying drawings is a 3D model diagram, which we use to analyze possible problems in the driving route:

(1)这是从场地后方摄象机安装位置看到的视角。(1) This is the angle of view seen from the installation position of the camera at the rear of the venue.

(2)初始时车辆从画面右上角进入,按照车道以倒车方式先左然后向下行进。(2) Initially, the vehicle enters from the upper right corner of the screen, and travels to the left and then down according to the lane in reverse mode.

(3)场地上的轨迹是标准行驶路线。(3) The track on the field is the standard driving route.

(4)场地上的细线是红外传感器射线。(4) The thin lines on the field are infrared sensor rays.

(5)场地上的四角及中间的是桩杆。(5) The four corners and the middle of the field are piles.

(6)因为仿真是动态过程,图18只是其中一个抓拍。系统使用的图象序列分析流程图与程序。(6) Because the simulation is a dynamic process, Figure 18 is just one of the snapshots. The image sequence analysis flow chart and program used by the system.

软件系统分为两个部分:系统调整和考试过程。系统调整是辅助功能部分,表1  红外传感器逻辑状态真值表 序号 I  II  III  IV  V 阶段说明 出错说明 The software system is divided into two parts: system adjustment and examination process. System adjustment is the auxiliary function part, Table 1 Infrared sensor logic state truth table serial number I II III IV V stage description error description

表中:设遮住红外线为1,反之为0;表中灰色底纹的单元格表示遮挡情况发生变化的红外线。用它可以检测红外线的通断、磁感应开关的离合、摄像机的视角、以及熄火检测的无线电信号。这部分功能在以下两个方面使用:一是在设备安装时,需要调整摄像机和校直红外线,根据软件观察各个信号情况帮助调整;二是在考试开始之前,要保证所有的设备运转正常,红外线全部对准,桩杆全部回位,熄火检测信号接收正常。In the table: set 1 to cover the infrared rays, and 0 otherwise; the cells with gray shading in the table represent the infrared rays whose occlusion situation changes. It can be used to detect the on and off of infrared rays, the clutch of magnetic induction switches, the angle of view of cameras, and the radio signal of flameout detection. This part of the function is used in the following two aspects: First, when the equipment is installed, it is necessary to adjust the camera and straighten the infrared rays, and observe the signal conditions according to the software to help adjust; All aligned, all the piles return to their positions, and the flameout detection signal is received normally.

考试过程是主要功能部分,它对整个桩考过程进行检测、判断,给出错误提示和考试成绩,打印成绩卡片。The examination process is the main functional part. It detects and judges the entire pile examination process, gives error prompts and examination results, and prints score cards.

流程图flow chart

软件系统结构见附图的图17,它分成系统调整部分和考试部分两块动作程序流程。考试线程程序流程如图19所示,它完全是根据前述的图象处理步骤进行程序设计的。图19(a)表达的图象处理过程如下:The software system structure is shown in Fig. 17 of the accompanying drawings, and it is divided into two action program flows of a system adjustment part and an examination part. The examination thread program flow is shown in Figure 19, and it is completely programmed according to the aforementioned image processing steps. The image processing process expressed in Fig. 19(a) is as follows:

启动程序后(在计算机屏幕上双击图标),首先采集一幅图象进入计算机内存成为一幅灰度图象,程序进行数字差分形成差分图象,有灰度值的区域就是运动目标物体,其它固定背景物体被相减为零灰度值。因为只需要计算运动物体的重心,把运动物体的区域全部用1表示后,能将某点像素的灰度值与其坐标的乘积运算简化为相加运算,提高处理速度,所以程序对图象做二值化处理。这时,用一个固定灰度域值作为分割目标区域与背景区域的边界,小于这一域值的认为是背景像素,全部置为零;大于这一域值的认为是目标像素,全部置为1。但是,因为环境光线变化噪声的影响,运动车辆周围有一些较强灰度值的像素存在,造成用域值分选后在物体周围有一些零星为1的像素存在(散粒噪声),为此,程序通过边缘腐蚀去除这些噪声。After starting the program (double-click the icon on the computer screen), first collect an image into the computer memory to become a grayscale image, and the program performs digital difference to form a differential image. The area with gray value is the moving target object, and the other Fixed background objects are subtracted to zero gray value. Because only the center of gravity of the moving object needs to be calculated, and the area of the moving object is represented by 1, the product operation of the gray value of a certain point pixel and its coordinate can be simplified to an addition operation to improve the processing speed, so the program does image processing. Binary processing. At this time, a fixed gray scale value is used as the boundary between the target region and the background region, and those smaller than this threshold value are considered as background pixels, and all are set to zero; those greater than this threshold value are considered to be target pixels, and all are set to 1. However, due to the influence of ambient light changes and noise, there are some pixels with strong gray values around the moving vehicle, resulting in the existence of some sporadic pixels with a value of 1 around the object after sorting by threshold value (shot noise). , the program removes these noises by edge erosion.

画面处理干净后,程序用重心公式可以计算出当前运动物体所处的重心坐标,还是因为环境的干扰存在,每次计算出的重心坐标会有扰动,需要进行平滑滤波处理,得到物体运动趋势轨迹坐标,用当前重心坐标的(x,y)值与前次计算的(x,y)值做比较运算求得物体运动方向,由前述的8个自由度方向模板进运动行方向匹配,将最接近的一个自由度方向作为当前物体运动方向,由该方向的数字编码得到当前物体运动方向编码,如向右运动是1;右上是2;向前运动是3;向左上是4;向左是5;左后是6;后向运动是7;右后则是8;零表示停止。After the image is processed cleanly, the program can use the center of gravity formula to calculate the center of gravity coordinates of the current moving object, or because of the interference of the environment, the center of gravity coordinates calculated each time will be disturbed, and smoothing filtering is required to obtain the moving trend trajectory of the object Coordinates, compare the (x, y) value of the current center of gravity coordinates with the (x, y) value calculated last time to obtain the motion direction of the object, and use the aforementioned 8-degree-of-freedom direction template to perform motion direction matching, and the most The direction of a degree of freedom close to the current object is used as the direction of motion of the current object, and the code of the current object’s motion direction is obtained from the digital code of this direction, such as moving to the right is 1; moving to the right is 2; moving forward is 3; moving to the left is 4; moving to the left is 5; left rear is 6; backward movement is 7; right rear is 8; zero means stop.

每次计算得到的物体运动方向编码形成了物体运动数字化轨迹,非常便于程序下一步的运动模式处理。The object movement direction code obtained by each calculation forms the digital trajectory of the object movement, which is very convenient for the next step of the program to process the movement mode.

运动模式处理分解为如下几点:Sports mode processing is broken down into the following points:

(1)全程不能停车2次。(1) You cannot stop twice in the whole journey.

(2)只有在车库中才允许车辆折反。(2) Vehicles are allowed to turn backwards only in the garage.

(3)没有折反点以前不允许车辆越过中线。(3) Vehicles are not allowed to cross the center line before there is no turning point.

(4)全程不能超出边界(根据红外线信号指示)。(4) The whole process cannot exceed the boundary (according to the infrared signal indication).

(5)全程不能碰撞桩杆(根据霍尔传感器信号)。(5) Do not collide with the pile during the whole process (according to the Hall sensor signal).

(6)全程不能熄火(根据熄火检测信号)。(6) The flame cannot be turned off during the whole process (according to the flameout detection signal).

(7)二上二下的4次折反后,车辆必须移库到乙库而不能停留在甲库、不能压住中线。(7) After 4 turns of two ups and two downs, the vehicle must move to the B warehouse and cannot stay in the A warehouse or hold down the center line.

(8)车辆移库到乙库后,越中线进入甲库,再穿出甲库前行到车道顶点。(8) After the vehicle is moved to the second warehouse, it crosses the center line and enters the A warehouse, and then goes out of the A warehouse to the apex of the lane.

(9)由车道顶点倒库进乙库结束考试。(9) From the apex of the lane, turn the library into the second library and end the exam.

程序program

根据前述的图象处理原理及运动模式识别方法,用VC++程序语言在WIN95/98环境下开发了一套基于图象序列分析的车辆桩考自动测量系统软件,程序直接安装在WIN95/98环境下。According to the aforementioned image processing principle and motion pattern recognition method, a set of automatic measurement system software for vehicle pile testing based on image sequence analysis is developed with VC++ programming language under WIN95/98 environment, and the program is directly installed under WIN95/98 environment .

附图的图20是系统调整功能的运行画面,图21是系统测量运行画面,红色曲线是实时跟踪测量的车辆运动轨迹。Figure 20 of the accompanying drawings is the running screen of the system adjustment function, and Figure 21 is the running screen of the system measurement, and the red curve is the vehicle motion trajectory tracked and measured in real time.

发明效果Invention effect

以设计开发车辆桩考科目计算机图象处理识别系统为目的,,本发明提出的基于图像序列分析的野外环境下车辆运动模式识别方法,实现了在野外环境各种天气条件下自动跟踪并识别车辆桩考运动轨迹模式,重点解决了大风、阳光、云层、雨雪等背景干扰下运动车辆差分图象处理及重心提取,进而通过空间平滑滤波去除噪声后,根据设置的8自由度模板匹配目标运动轨迹,实现车辆运动模式的自动识别。通过冬季3个月近2000次北京1041、121和捷达三种车型实验,取得了满意效果。For the purpose of designing and developing a computer image processing and recognition system for vehicle pile examination subjects, the vehicle movement pattern recognition method in the field environment based on image sequence analysis proposed by the present invention realizes automatic tracking and recognition of vehicles in various weather conditions in the field environment The pile test motion trajectory mode focuses on solving the differential image processing and center of gravity extraction of moving vehicles under background interference such as strong wind, sunlight, clouds, rain and snow, and then removes noise through spatial smoothing filtering, and then matches the target motion according to the set 8-degree-of-freedom template Trajectory, to realize the automatic recognition of vehicle movement mode. Through nearly 2,000 experiments on three models of Beijing 1041, 121 and Jetta in three months in winter, satisfactory results have been achieved.

图22是实际测量结果与公安部桩考科目标准路线的比较,可以看出,与图22(a)标准行车路线相比,图22(b)表明系统准确的跟踪记录了车辆运动轨迹模式。Figure 22 is a comparison between the actual measurement results and the standard route of the Ministry of Public Security's post examination subject. It can be seen that compared with the standard driving route in Figure 22(a), Figure 22(b) shows that the system accurately tracks and records the vehicle movement trajectory mode.

系统测试方法System Test Method

传感器系统测试Sensor System Test

(1)启动计算机系统;(1) start the computer system;

(2)在WIN95/98界面下启动系统软件,选择进入系统调整功能界面;(2) Start the system software under the WIN95/98 interface, and choose to enter the system adjustment function interface;

(3)在测试对象选择红外及桩杆检测系统,此时可以根据软件系统提示看见各红外传感器工作状态及桩杆信号状态;(3) Select the infrared and pole detection system for the test object, and at this time, you can see the working status of each infrared sensor and the signal state of the pole according to the software system prompts;

(4)在测试对象选择框中选择CCD摄像监测系统,此时出现考试场地画面,可以检查CCD摄象机是否正常工作;(4) Select the CCD camera monitoring system in the test object selection box, and the test site screen will appear at this time, and you can check whether the CCD camera is working normally;

系统工作性能测试System performance test

(1)启动计算机系统;(1) start the computer system;

(2)在WIN95/98界面下启动系统软件,选择进入系统测量功能界面;(2) Start the system software under the WIN95/98 interface, and choose to enter the system measurement function interface;

(3)输入学员姓名、准考证号码,选择车库类型;(3) Enter the student's name, test admission ticket number, and select the type of garage;

(4)点击“开始”按钮,系统开始工作,从摄象机画面可以监视场地上车辆运行状态;(4) Click the "Start" button, the system starts to work, and the running status of the vehicles on the site can be monitored from the camera screen;

(5)任何时候如果车辆碰杆,系统立刻提示出错,同时停止测试,给出考试成绩不合格信息;(5) If the vehicle touches the bar at any time, the system will immediately prompt an error, stop the test at the same time, and give a message of unqualified test results;

(6)任何时候如果压线(红外线),系统立刻提示出错,同时停止测试,给出考试成绩不合格信息;(6) If the line (infrared) is pressed at any time, the system will prompt an error immediately, stop the test at the same time, and give a message of unqualified test results;

(7)如果移库时二上二下后仍在甲库(包括车辆的一部分在甲库),系统立刻提示出错,同时停止测试,给出考试成绩不合格信息;(7) If the vehicle is still in the A warehouse (including a part of the vehicle in the A warehouse) after two ups and downs when moving the warehouse, the system will immediately prompt an error, stop the test at the same time, and give a message of unqualified test results;

(8)如果中途停车达到2次,系统立刻提示出错,同时停止测试,给出考试成绩不合格信息;(8) If there are 2 stops in the middle, the system will immediately prompt an error, stop the test at the same time, and give a message of unqualified test results;

(9)任何时候如果车辆熄火,系统立刻提示出错,同时停止测试,给出考试成绩不合格信息;(9) If the vehicle is turned off at any time, the system will immediately prompt an error, stop the test at the same time, and give a message of unqualified test results;

(10)如果上述错误都没有发生,则倒车入乙库后,系统立刻提示考试完成,给出考试成绩合格信息,同时系统自动复位(驾驶员把车开出车库到起点);(10) If none of the above errors occurs, after reversing into the second warehouse, the system immediately prompts that the test is completed, and gives the test result passing information, and the system automatically resets simultaneously (the driver drives the car out of the garage to the starting point);

(11)在步骤3处重复。(11) Repeat at step 3.

Claims (9)

1、一种驾驶员桩考过程自动测试系统,其特征在于包括以下几部分:1, a kind of driver pile examination process automatic test system is characterized in that comprising the following several parts: (1)考试场地上的起标识车库尺寸作用的龙门架单元,它是由三角横梁与支撑架组成的两副以上的龙门架;(1) The gantry unit used to mark the size of the garage on the test site is composed of two or more gantry units composed of triangular beams and support frames; (2)通过吊簧悬挂在该龙门架横梁上的多个桩杆考试用桩杆,它由杆体、连结镙栓、上下调装置及安装在杆体上的霍尔开关组成;(2) A plurality of pile poles used for examination on the beam of the gantry frame suspended by suspension springs, which consist of a pole body, a connecting screw, an up and down adjustment device and a Hall switch installed on the pole body; (3)安装在考试场地上的摄象机支架及固定在支架上的摄象机;(3) The camera bracket installed on the examination site and the camera fixed on the bracket; (4)安装在考试场地上用来提示考试信息的LED大屏幕显示器和喇叭;(4) LED large-screen displays and speakers installed on the test site to prompt test information; (5)设置在考试场地上的用来标识车库边界的多组红外线接收/发射传感器单元;(5) Multiple groups of infrared receiving/emitting sensor units set on the test site to mark the garage boundary; (6)与该摄象机相连设置在机房内的计算机图象处理单元,它由计算机设备中安装的图象采集卡、以及存储在该计算机存储单元中的图象处理程序软件组成;(6) be connected with this video camera and be arranged on the computer image processing unit in the computer room, it is made up of the image acquisition card installed in the computer equipment and the image processing program software stored in the computer storage unit; (7)由发射、接收两部分组成的无线传送发动机熄火测量单元,其中,发射部分由电磁传感器及与之相连的信号整形电路、无线电发射机组成,它吸附在考车顶上;接收单元由无线电接收机及与之相连的信号处理电路组成,安装在机房上;(7) The wireless transmission engine flameout measurement unit consisting of two parts: transmitting and receiving, wherein the transmitting part is composed of an electromagnetic sensor and a signal shaping circuit connected to it, and a radio transmitter, which is adsorbed on the roof of the test vehicle; the receiving unit consists of Composed of radio receivers and signal processing circuits connected to them, installed in the machine room; (8)开关量采集单元,置于机房内由开关量采集卡、转接器、电源所组成,所采集的场地上所有的开关量信号由埋地电缆接入该采集单元。(8) The switching value acquisition unit is placed in the computer room and consists of a switching value acquisition card, an adapter, and a power supply. All the switching value signals collected on the site are connected to the acquisition unit by buried cables. 2.一种采用如权利要求1所说的驾驶员桩考过程自动测试系统的自动测试方法,其特征在于,以数字图象处理与模式识别方法相结合,无机械接触的用计算机自动判别驾驶员是否按考试大纲规定的路线行驶与操作;2. an automatic test method that adopts the driver's pile test process automatic test system as claimed in claim 1, is characterized in that, combines with digital image processing and pattern recognition method, automatically discriminates driving with computer without mechanical contact Whether the driver is driving and operating according to the route stipulated in the test outline; 所说的数字图象处理方法具体包括以下步骤:Said digital image processing method specifically comprises the following steps: 1)采用摄像头及图象采集卡获取车辆的图象信息;1) Obtain the image information of the vehicle by using a camera and an image acquisition card; 2)再用图象差分、图象二值化、边缘腐蚀与平滑滤波来消除图象信息的噪声干扰;2) Then use image difference, image binarization, edge erosion and smoothing filter to eliminate the noise interference of image information; 3)最后用重心坐标描述车辆运动轨迹、进而通过方向编码得到数字化运动参数;3) Finally, use the coordinates of the center of gravity to describe the trajectory of the vehicle, and then obtain the digital motion parameters through direction coding; 所说的模式识别方法具体包括:采用所说的数字图象处理方法进行停车判别;运动中的折反点判别;折反方向与路线结合红外线传感器信号判别运动路线是否按规定在甲库完成二进二下后进入乙库的判别方法;Said pattern recognition method specifically comprises: adopt said digital image processing method to carry out parking discrimination; Reversed point discrimination in motion; The method of judging the entry into the B library after entering the second round; 所说的用计算机自动判别驾驶员是否按考试大纲规定的路线行驶与操作具体包括:利用存储在计算机中的基于图象序列分析的车辆桩考自动测量系统软件对在桩考过程中出现的各种情况实时测量并及时准确的通过LED大屏幕显示器和喇叭提示考试信息。Said using the computer to automatically judge whether the driver is driving and operating according to the route specified in the test outline specifically includes: using the vehicle pile test automatic measurement system software based on image sequence analysis stored in the computer to measure each pile test that occurs during the pile test. This situation is measured in real time and the test information is prompted through the LED large-screen display and the speaker in a timely and accurate manner. 3.如权利要求2所说的自动测试方法,其特征在于,所说的图象差分方法为用两帧图像的灰度差提取运动目标信息;对于图像序列中固定不动部分其灰度差值为零,而运动部分则呈现出一定的灰度差,因此差分图像只具有运动部分的信息;具体包括以下三种方式:3. The automatic test method as claimed in claim 2, characterized in that, said image difference method is to extract moving target information with the gray scale difference of two frames of images; for its gray scale difference of fixed part in the image sequence The value is zero, and the moving part shows a certain grayscale difference, so the difference image only has the information of the moving part; specifically, it includes the following three methods: (1)用图像序列中每一帧与一个静止的参考帧作图像差分;(1) Use each frame in the image sequence to make image difference with a static reference frame; (2)用图像序列中相邻两帧进行差分,然后二值化该灰度差分图像来提取运动信息;(2) Differentiate two adjacent frames in the image sequence, and then binarize the grayscale difference image to extract motion information; (3)用三帧图像计算出两个差分图像,然后再对这两个差分图像进行二次差分。(3) Two difference images are calculated by using three frames of images, and then a second difference is performed on the two difference images. 4.如权利要求2所说的自动测试方法,其特征在于,所说的图象二值化采用快速固定阈值法进行分割,根据实验选择二值化阈值T,灰度值超过该阈值以上的像素全部置为目标区域的255灰度值,在阈值以下的全部象素的灰度值置为背景区域的零。4. The automatic testing method as claimed in claim 2, characterized in that, said image binarization adopts the fast fixed threshold method to segment, selects the binarization threshold T according to experiments, and the gray value exceeds the threshold value above the threshold. All pixels are set to the 255 gray value of the target area, and the gray values of all pixels below the threshold are set to zero in the background area. 5.如权利要求2所说的自动测试方法,其特征在于,所说的边缘腐蚀方法为:每帧图象的背景由于光线方向及照度的变化产生散粒噪声,利用它在图像中所占的面积比车辆所占的面积小很多的特点,通过边缘腐蚀消除这些散粒噪声的像素;根据其它物体图像的大小及分布情况,进行一维或二维腐蚀消除任意个像素的宽度;所说的平滑滤波方法为:每帧图像重心坐标所构成的序列是车辆运动轨迹,由于现场各种干扰造成计算出的运动轨迹有细节突变,必须对运动轨迹进行平滑滤波,即根据前后4个样本点加权后的均值递推得到当前坐标。5. The automatic test method as claimed in claim 2, characterized in that, said edge erosion method is: the background of each frame of image produces shot noise due to the variation of light direction and illuminance, and utilizes it to account for in the image. The area occupied by the vehicle is much smaller than the area occupied by the vehicle, and these shot noise pixels are eliminated through edge erosion; according to the size and distribution of other object images, one-dimensional or two-dimensional erosion is performed to eliminate the width of any pixel; The smoothing filtering method is as follows: the sequence formed by the coordinates of the center of gravity of each frame of image is the trajectory of the vehicle. Due to various disturbances on the scene, the calculated trajectory has a sudden change in detail, so the trajectory must be smoothed, that is, according to the four sample points The weighted mean is recursively obtained to obtain the current coordinates. 6.如权利要求2所说的自动测试方法,其特征在于,所说的车辆运动轨迹的方向编码采用图象象素与Kirsch边缘算子的8个卷积核做卷积,可以得到每个核对特定边缘方向的最大响应,所有8个方向中的最大值做为边缘幅度图像的输出,最大响应核的序号构成了边缘方向编码,所说的重心运动轨迹用8自由度编码得方向变化轨迹。6. The automatic testing method as claimed in claim 2, characterized in that, the direction encoding of said vehicle trajectory adopts 8 convolution kernels of image pixels and Kirsch edge operator to do convolution, and each can be obtained Check the maximum response of a specific edge direction, the maximum value of all 8 directions is used as the output of the edge amplitude image, the serial number of the maximum response kernel constitutes the edge direction code, and the trajectory of the center of gravity is coded with 8 degrees of freedom to obtain the direction change trajectory . 7.如权利要求2所说的自动测试方法,其特征在于,所说的停车模式判别方法为:在限定一域值内将相邻两帧图像差分后二值化,看是否有灰度改变的像素,若没有则间隔4帧后再做差分,如果还是没有变化的像素则可以判定车辆停止。7. The automatic testing method as claimed in claim 2, characterized in that, said parking mode discrimination method is: within a limited threshold, two adjacent frames of images are differentiated and then binarized to see if there is a grayscale change If there are no pixels, then make a difference at an interval of 4 frames. If there are still no changing pixels, it can be determined that the vehicle has stopped. 8.如权利要求2所说的自动测试方法,其特征在于,所说的行车路线的折返点判别方法包括:8. The automatic testing method as claimed in claim 2, characterized in that, the turning point discrimination method of said driving route comprises: 1)当车辆进入车库的库底后,从库底向上运动时,即车辆前进,记录重心y值的最大值ymax1) When the vehicle enters the bottom of the garage and moves upward from the bottom of the garage, that is, the vehicle moves forward, record the maximum value y max of the center of gravity y value; 2)计算出每一帧图像的车辆重心之后,都将y值与ymax值比较,如果y≥ymax,则令ymax=y,如果y<ymax则看ymax减y的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有折返,如果Δy>Th,则认为车辆已经折返,开始向库底运动,即车辆倒车;反之亦然:2) After calculating the vehicle center of gravity of each frame image, compare the y value with the y max value, if y≥y max , then set y max =y, if y<y max , then look at the difference between y max minus y Whether Δy is greater than the preset threshold T h , if Δy≤T h , it is considered that the vehicle has not turned back, if Δy>T h , it is considered that the vehicle has turned back, and it starts to move towards the bottom of the reservoir, that is, the vehicle reverses; and vice versa: 3)当车辆达到库顶后,从库顶向下运动时,即车辆倒车,通过记录最小的ymin,如果y≤ymin,则令ymin=y,如果y>ymin,则看y减ymin的差值Δy是否大于预先设定好的阈值Th,如果Δy≤Th,认为车辆还没有从库底折返,如果Δy>Th,则认为车辆已经从库底折返,开始向库顶运动。3) When the vehicle reaches the roof of the warehouse and moves downward from the roof of the warehouse, that is, the vehicle reverses, by recording the minimum y min , if y≤y min , then let y min =y, if y>y min , then look at y Whether the difference Δy minus y min is greater than the preset threshold T h , if Δy≤T h , it is considered that the vehicle has not turned back from the bottom of the storage, if Δy>T h , it is considered that the vehicle has turned back from the bottom of the storage Library top movement. 9.如权利要求2所说的自动测试方法,其特征在于,所说的在甲库完成二进二下后进入乙库的判别方法为,由路线折反点再结合车辆当前所处的车库位置,可以分析出当前车辆贴库操作是否符合二进二下的标准:9. The automatic testing method as claimed in claim 2, characterized in that, the said method of judging entering into the second library after the first library completes the second entry and the second entry is that the route inversion point is combined with the garage where the vehicle is currently located Location, you can analyze whether the current vehicle sticker warehouse operation meets the standard of two-in-two-down: (1)车辆已经进入甲库;(1) The vehicle has entered the warehouse; (2)车辆向库顶方向前进,检测到一个折反点;(2) The vehicle moves toward the top of the warehouse, and a turning point is detected; (3)车辆向库底方向倒车,检测到一个折反点;(3) The vehicle reverses toward the bottom of the warehouse, and a turning point is detected; (4)车辆向库顶方向前进,检测到一个折反点;(4) The vehicle moves toward the top of the warehouse, and a turning point is detected; (5)车辆向库底方向倒车,检测到一个折反点;(5) The vehicle reverses toward the bottom of the warehouse, and a turning point is detected; (6)此时如果车辆已经在乙库,贴库完成。如果车辆压住了甲乙库中线,则贴库失败。(6) At this time, if the vehicle is already in the second warehouse, the posting to the warehouse is completed. If the vehicle presses the middle line of the A and B warehouses, the paste warehouse will fail.
CN001091336A 2000-06-09 2000-06-09 Automatic testing system for driver pile examination process based on image sequence analysis Expired - Fee Related CN1094223C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN001091336A CN1094223C (en) 2000-06-09 2000-06-09 Automatic testing system for driver pile examination process based on image sequence analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN001091336A CN1094223C (en) 2000-06-09 2000-06-09 Automatic testing system for driver pile examination process based on image sequence analysis

Publications (2)

Publication Number Publication Date
CN1272666A CN1272666A (en) 2000-11-08
CN1094223C true CN1094223C (en) 2002-11-13

Family

ID=4579449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN001091336A Expired - Fee Related CN1094223C (en) 2000-06-09 2000-06-09 Automatic testing system for driver pile examination process based on image sequence analysis

Country Status (1)

Country Link
CN (1) CN1094223C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567138B (en) * 2009-05-22 2011-01-05 湖州金博电子技术有限公司 Assembly moving intelligent type driver stake-examination device
CN102005147A (en) * 2010-11-03 2011-04-06 山东科大微机应用研究所有限公司 Portable mobile wireless stake test vehicle tracking system for driver of farm machine

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103606321B (en) * 2013-10-29 2016-01-20 南京多伦科技股份有限公司 Based on video location and the road test judgment method of digital modeling combined technology
CN104008360B (en) * 2014-05-16 2019-06-14 北京致胜宏达科技有限公司 A kind of automatic sensing bar code reading method and automatic sensing barcode reader
CN106033030B (en) * 2015-03-12 2018-08-03 张涛 Convenient adjustable flexibility test equipment and test method
CN108573489B (en) * 2018-04-22 2019-05-07 杭州知桔科技有限公司 Hurdle Integrity Testing Platform
CN113099181B (en) * 2021-04-06 2022-08-19 维迈科建集团有限公司 Urban traffic parking safety intelligent analysis management method based on video monitoring
CN113468666B (en) * 2021-07-08 2024-11-19 义乌吉利动力总成有限公司 Engine crankshaft bearing noise identification method, device, equipment and storage medium
CN114898577B (en) * 2022-07-13 2022-09-20 环球数科集团有限公司 Road intelligent management system and method for peak road management

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798567A1 (en) * 1996-03-26 1997-10-01 EGEMIN, naamloze vennootschap Measuring system for testing the position of a vehicle and sensing device therefor
CN2305719Y (en) * 1997-06-13 1999-01-27 程泽林 Portable field test device for motor vehicle driver

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798567A1 (en) * 1996-03-26 1997-10-01 EGEMIN, naamloze vennootschap Measuring system for testing the position of a vehicle and sensing device therefor
CN2305719Y (en) * 1997-06-13 1999-01-27 程泽林 Portable field test device for motor vehicle driver

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567138B (en) * 2009-05-22 2011-01-05 湖州金博电子技术有限公司 Assembly moving intelligent type driver stake-examination device
CN102005147A (en) * 2010-11-03 2011-04-06 山东科大微机应用研究所有限公司 Portable mobile wireless stake test vehicle tracking system for driver of farm machine

Also Published As

Publication number Publication date
CN1272666A (en) 2000-11-08

Similar Documents

Publication Publication Date Title
CN107462223B (en) A kind of automatic measuring device and measuring method of vehicle sight distance before road turning
CN1804927A (en) Omnibearing visual sensor based road monitoring apparatus
CN102799893B (en) Method for processing monitoring video in examination room
CN110211101A (en) A kind of rail surface defect rapid detection system and method
CN115631138A (en) Zirconium alloy plate laser cutting quality monitoring method and device
CN101047786A (en) Image sensing apparatus, image sensing system, and image sensing method
CN1094223C (en) Automatic testing system for driver pile examination process based on image sequence analysis
CN107392890B (en) FPC copper wire surface oxidation defect detection method and detection system thereof
JP5298969B2 (en) Dust measuring device and generation source estimation method
CN1912950A (en) Violation Vehicle Monitoring Device Based on Omnidirectional Vision Sensor
CN103983426B (en) The detection of a kind of defect of optical fiber based on machine vision and sorting technique
CN109145708A (en) A kind of people flow rate statistical method based on the fusion of RGB and D information
CN114119526A (en) A system and method for detecting and identifying surface defects of steel plates based on machine vision
CN107024491A (en) A kind of X-ray nondestructive detection system and its detection method
CN110853018A (en) Computer vision-based vibration table fatigue crack online detection system and detection method
CN109272552A (en) Laser positioning control system based on image analysis
CN105866241A (en) Machine-vision self-analyzing flaw detection device for shaft parts and machine-vision self-analyzing flaw detection method
CN106290379A (en) Rail surface defects based on Surface scan camera detection device and method
CN110880184A (en) Method and device for carrying out automatic camera inspection based on optical flow field
CN113160132A (en) Detection processing method and system for weld defect image
TW201516397A (en) Bubble inspection system for glass
CN110363706A (en) A large-area bridge deck image stitching method
CN106203351A (en) The method of crack Intelligent Recognition classification
CN114839197A (en) Rice damage detection device and detection method
JP2009239871A (en) Method of detecting object and its device

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee