[go: up one dir, main page]

CN104766086B - The monitoring and managing method and system of a kind of way mark - Google Patents

The monitoring and managing method and system of a kind of way mark Download PDF

Info

Publication number
CN104766086B
CN104766086B CN201510176310.3A CN201510176310A CN104766086B CN 104766086 B CN104766086 B CN 104766086B CN 201510176310 A CN201510176310 A CN 201510176310A CN 104766086 B CN104766086 B CN 104766086B
Authority
CN
China
Prior art keywords
real
time
image
information
standard
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.)
Active
Application number
CN201510176310.3A
Other languages
Chinese (zh)
Other versions
CN104766086A (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.)
Hunan Normal University
Original Assignee
Hunan Normal 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 Hunan Normal University filed Critical Hunan Normal University
Priority to CN201510176310.3A priority Critical patent/CN104766086B/en
Publication of CN104766086A publication Critical patent/CN104766086A/en
Application granted granted Critical
Publication of CN104766086B publication Critical patent/CN104766086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

一种公路标识的监管方法和系统,该方法包括:首先,由已有的公路标准GPS和图像数据,通过标注单序列方式建立起预处理标准模型;其次,通过巡检操作获取最新实时GPS和图像数据,通过标注双序列方式建立实时模型;然后,将实时模型数据经过双序列匹配搜索与标准模型数据进行比对,将由实时模型中获取的实时最佳图像与标准模型中的标准图像进行匹配;进而,利用图像匹配算法对比标准模型图像数据,从而确定标识损坏的具体类型;最后,根据识别结果、维修状态更新标准模型。本发明依据公路标识位置和图像间内在关联关系,周期性实时采集、自动识别和定位公路标识损坏及其类型,提高了公路资产检测效率,降低了维护工作量。

A method and system for supervising highway markings, the method comprising: firstly, establishing a preprocessing standard model by marking a single sequence from existing highway standard GPS and image data; secondly, obtaining the latest real-time GPS and Image data, establish a real-time model by marking the double sequence; then, compare the real-time model data with the standard model data through double-sequence matching search, and match the real-time best image obtained from the real-time model with the standard image in the standard model ; Furthermore, use the image matching algorithm to compare the image data of the standard model, so as to determine the specific type of mark damage; finally, update the standard model according to the recognition result and maintenance status. According to the internal relationship between the position of the road mark and the image, the invention periodically collects in real time, automatically identifies and locates the damage and the type of the road mark, improves the detection efficiency of the road assets, and reduces the maintenance workload.

Description

一种公路标识的监管方法和系统Supervision method and system for highway signage

技术领域technical field

本发明涉及计算机信息技术领域,特别是一种采用信息化系统对公路标识进行监管的方法和系统。The invention relates to the field of computer information technology, in particular to a method and a system for supervising road signs by using an information system.

背景技术Background technique

道路作为基础建设之一是公共资产的重要组成部分,道路建设完成之后,需要对其进行实时监管与养护才能保证道路的正常使用,同时实时监管与养护也是保护公路资产的最基本手段之一。目前用于道路监管与养护的系统主要有路面管理系统和桥梁管理系统等,而这些系统仅用于对地质以及公路路面进行检测与养护,无法实现公路标识的监管。As one of the basic constructions, roads are an important part of public assets. After road construction is completed, real-time supervision and maintenance are required to ensure the normal use of roads. At the same time, real-time supervision and maintenance are also one of the most basic means to protect road assets. At present, the systems used for road supervision and maintenance mainly include pavement management system and bridge management system, etc., and these systems are only used to detect and maintain the geology and road surface, and cannot realize the supervision of road signs.

公路标识通常设置在公路的两侧或公路上方,对其监护时需要工作人员沿途进行现场的数据采集和录入,不仅耗费大量的人力、物力、时间及资源,容易出现漏检、漏记等情况,而且由于检测周期耗费时间长,会出现损毁的公路标识得不到及时发现与更换,影响了道路的规范、美观及安全指数,对人们的出行指示产生消极的影响;另外,由于人为判断的差异性,容易造成标准不统一等问题出现。高速公路上公路标识的完好对驾驶员安全行使的重要性更是不言而喻,如在高速公路上出现公路标识的缺失很容易导致高速行驶的车辆出现飞车等严重交通事故;再加上高速公路的长距离性和车辆行使速度过快等特点,还会对工作人员的作业效率产生影响,更重要的是还会危及工作人员的自身安全。Highway signs are usually set on both sides of the highway or on the top of the highway. When monitoring them, staff need to collect and input data on the spot along the way, which not only consumes a lot of manpower, material resources, time and resources, but is prone to missed inspections and missing records. , and because the detection cycle takes a long time, the damaged road signs will not be found and replaced in time, which will affect the specification, appearance and safety index of the road, and have a negative impact on people's travel instructions; in addition, due to human judgment Differences can easily lead to problems such as inconsistent standards. It is self-evident that the integrity of the road signs on the expressway is important to the safe driving of drivers. For example, the lack of road signs on the expressway can easily lead to serious traffic accidents such as speeding of high-speed vehicles; The long distance of the road and the excessive speed of the vehicle will also affect the working efficiency of the staff, and more importantly, it will also endanger the safety of the staff.

发明内容Contents of the invention

本发明需要解决的技术问题是提供一种无需工作人员到现场即可对公路标识进行实时监测并对故障标识进行准确定位的监管方法和监管系统。The technical problem to be solved by the present invention is to provide a monitoring method and a monitoring system that can monitor road signs in real time and accurately locate fault signs without the need for staff to go to the scene.

为解决上述技术问题,本发明所采取的技术方案如下。In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.

一种公路标识的监管方法,其特征在于具体包括以下步骤:A method for supervising highway signs, characterized in that it specifically comprises the following steps:

S101.建立公路标识的预处理标准模型;S101. Establishing a preprocessing standard model of road signs;

S102.获取公路标识的实时信息,并建立实时模型;S102. Acquiring real-time information of highway signs, and building a real-time model;

S103.通过专家算法获取步骤S102采集到的实时信息中公路标识的实时最佳图像;S103. Obtain the best real-time image of the road sign in the real-time information collected in step S102 through an expert algorithm;

S104.对步骤S103中得到的实时最佳图像与步骤S101中预处理标准模型的标准图像通过序列搜索进行匹配,通过专家算法得出实际公路标识损坏的具体分类,并存储;S104. The real-time optimal image obtained in step S103 is matched with the standard image of the preprocessed standard model in step S101 through sequence search, and the specific classification of actual road sign damage is obtained by expert algorithm, and stored;

S105.根据识别结果来判断是否需要维修,并根据反馈的维修结果来确定是否需要更新预处理标准模型中的标准图像;S105. Determine whether maintenance is required according to the recognition result, and determine whether the standard image in the pre-processing standard model needs to be updated according to the feedback maintenance result;

S106.建立数据库,对步骤S101~S104中的数据进行管理;S106. Establish a database to manage the data in steps S101 to S104;

S107.设计上位机界面,以直观的方式将数据进行显示,实现人们对公路标识监管的实际需求。S107. Design the host computer interface, display the data in an intuitive way, and realize people's actual needs for highway sign supervision.

本发明步骤S101具体包括以下内容:Step S101 of the present invention specifically includes the following content:

S1011.确定摄像头型号,并根据公路标识的高度位置等参数计算,在巡检车上的合适位置安装摄像头;S1011. Determine the model of the camera, and calculate according to parameters such as the height and position of the road sign, and install the camera at a suitable position on the inspection vehicle;

S1012.采集公路标识的标准图像;S1012. Collecting standard images of road signs;

S1013.采集公路标识的标准GPS定位信息;S1013. Collect standard GPS positioning information of road signs;

S1014.根据步骤S1012和S1013采集的结果,通过标注单序列方式建立预处理标准模型。S1014. According to the results collected in steps S1012 and S1013, a preprocessing standard model is established by labeling a single sequence.

本发明步骤S102具体包括以下内容:Step S102 of the present invention specifically includes the following content:

S1021.采用相机的视频模式获取公路标识的实时图像信息;S1021. Obtain real-time image information of road signs by using the video mode of the camera;

S1022.对公路标识进行实时GPS定位,获得公路标识的实时GPS信息;S1022. Carry out real-time GPS positioning on the road signs, and obtain real-time GPS information of the road signs;

S1023.将实时GPS信息与相应的实时图像进行匹配,并通过标注双序列方式建立实时模型。S1023. Match the real-time GPS information with the corresponding real-time image, and establish a real-time model by marking the double sequence.

本发明步骤S1023具体包括以下内容:Step S1023 of the present invention specifically includes the following content:

首先,对公路标识的实时GPS信息逐条进行采集,并进行序列标记;Firstly, collect the real-time GPS information of road signs one by one and mark them sequentially;

其次,计算公路标识实时图像信息的采样频率,并对采样图像进行双序列标记;Secondly, calculate the sampling frequency of the real-time image information of the road sign, and perform double-sequence marking on the sampled image;

然后,判断公路标识的实时图像信息和实时GPS信息的首序列是否匹配,如匹配,则建立实时模型。Then, it is judged whether the real-time image information of the highway sign matches the first sequence of the real-time GPS information, and if they match, a real-time model is established.

本发明步骤S103具体包括以下内容:Step S103 of the present invention specifically includes the following content:

S1031.图像进行初步处理;S1031. Preliminary image processing;

S1032.挑选含有公路标识的实时最佳图像。S1032. Select the best real-time image containing road signs.

本发明步骤S1031中采用专家算法对图像进行初步处理,处理内容包括对S102中采集到的图像进行的初步去噪、滤波、还原、倾斜矫正、运动模糊消除的处理步骤。In the step S1031 of the present invention, an expert algorithm is used to preliminarily process the image, and the processing content includes the processing steps of preliminary denoising, filtering, restoration, tilt correction, and motion blur elimination of the image collected in S102.

本发明步骤S1032具体包括以下内容:Step S1032 of the present invention specifically includes the following content:

首先,对实时图像经过初步处理后获得的n帧图像进行检测(n=1...5);First, detect n frames of images obtained after preliminary processing of real-time images (n=1...5);

其次,根据公路标识颜色的特殊性,将RGB转换为HSV颜色空间;Secondly, according to the particularity of the road sign color, convert RGB to HSV color space;

然后,通过HSV颜色空间来判定当前图像中是否含有特殊颜色;Then, use the HSV color space to determine whether the current image contains a special color;

再次,通过颜色区域对图像进行进一步分割;Again, the image is further segmented by the color region;

最后,比较不同图像之间的分割区域大小,选取分割区域最大的作为实时最佳图像。Finally, compare the size of the segmented regions between different images, and select the one with the largest segmented region as the real-time best image.

本发明步骤S104具体包括以下内容:Step S104 of the present invention specifically includes the following content:

S1041,计算阈值,使实时GPS信息与标准GPS经纬信息进行匹配;S1041, calculating a threshold to match the real-time GPS information with the standard GPS latitude and longitude information;

S1042,保存在阈值范围内的实时GPS信息,并保存与之匹配的预处理标准模型的GPS单序列与实时模型中的GPS双序列;S1042, saving the real-time GPS information within the threshold range, and saving the matched GPS single sequence of the preprocessing standard model and the GPS double sequence in the real-time model;

S1043,根据阈值要求,将匹配的实时GPS信息再与预处理标准模型对应的标准图像以及实时模型中对应的实时最佳图像进行匹配;S1043, according to the threshold requirement, match the matched real-time GPS information with the standard image corresponding to the pre-processing standard model and the corresponding real-time best image in the real-time model;

S1044,通过专家算法得出实时最佳公路标识损坏的具体分类,并存储。S1044. Obtain the specific classification of the real-time best road sign damage through expert algorithm, and store it.

一种公路标识的监管系统,该系统包括:A system for supervising highway signs, the system comprising:

图像采集模块101,用于对公路标识进行图像采集;An image collection module 101, configured to collect images of road signs;

GPS信息采集模块102,用于对公路标识的GPS定位信息进行采集;GPS information collection module 102, used for collecting the GPS positioning information of road signs;

预处理标准模型与实时模型建立模块103,用于通过图像采集模块101、GPS信息采集模块102对定点公路标识的标准图像信息以及标准GPS经纬信息分别进行同步序列标记,建立标准图像信息与标准GPS经纬信息序列一一对应的公路标识预处理标准模型;Preprocessing standard model and real-time model building module 103 are used to carry out synchronous sequence marking respectively to standard image information of fixed-point road signs and standard GPS longitude and latitude information by image acquisition module 101 and GPS information acquisition module 102, to establish standard image information and standard GPS One-to-one correspondence of latitude and longitude information sequence road sign preprocessing standard model;

通过图像采集模块101、GPS信息采集模块102对公路标识的实时GPS信息和实时图像进行采集,提取公路标识的实时GPS信息以及实时GPS信息对应的图像信息,通过图像采样及双序列标记建立公路标识的实时模型;The real-time GPS information and real-time images of the road signs are collected by the image acquisition module 101 and the GPS information acquisition module 102, the real-time GPS information of the road signs and the image information corresponding to the real-time GPS information are extracted, and the road signs are established by image sampling and double-sequence marking real-time model of

两模型匹配模块104,对预处理标准模型与实时模型建立模块103中通过序列匹配及阈值删选提取关键图像,将选取的关键图像通过参数计算和专家算法控制,对定点GPS对应的含有公路标识的关键图像进行处理,并通过处理从中得出实时最佳图像;The two-model matching module 104 extracts key images through sequence matching and threshold value deletion in the pre-processing standard model and real-time model building module 103, and controls the selected key images through parameter calculation and expert algorithm control, and the road signs corresponding to fixed-point GPS process the key image and get the real-time best image from it;

图像处理与识别模块105,用于将两模型匹配模块104中通过专家算法统计后得出的含有公路标识的实时最佳图像和预处理标准模型与实时模型建立模块103中统计的标准图像信息进行模式匹配,通过专家算法匹配训练,得出实际匹配后的公路标识的损坏类型,并进行分类存储;The image processing and recognition module 105 is used to compare the real-time optimal image and the pre-processing standard model obtained by the expert algorithm statistics in the two model matching modules 104 with the standard image information in the real-time model building module 103 Pattern matching, through expert algorithm matching training, to obtain the damage type of the road sign after the actual matching, and classify and store;

数据库模块106,用于对系统中的数据信息进行有序、有效的监管,建立数据库机制;The database module 106 is used to carry out orderly and effective supervision on the data information in the system, and establish a database mechanism;

上位机控制模块107,与数据库模块中数据库进行链接,直观显示处理后的数据。The upper computer control module 107 is linked with the database in the database module to visually display the processed data.

上述一种公路标识的监管系统,所述上位机控制模块显示的信息主要包括定点公路标识的GPS经纬度信息、定点公路标识的图像、图像识别后的具体类别、公路标识的损坏状态信息以及维修是否完成的标识信息。The information displayed by the control module of the upper computer mainly includes the GPS latitude and longitude information of the fixed-point road sign, the image of the fixed-point road sign, the specific category after image recognition, the damage status information of the road sign and whether the maintenance is required. Completed identification information.

由于采用了以上技术方案,本发明所取得技术进步如下。Due to the adoption of the above technical solutions, the technological progress achieved by the present invention is as follows.

本发明集公路标识资产信息获取、检测、识别、定位功能于一体,能够对公路标识是否损坏、损毁类型以及损毁地点进行自动检测,缩短了公路资产的检测周期,提高了检测效率,减少了安全隐患,有效保证了公路的行驶安全。The invention integrates the functions of acquiring, detecting, identifying and locating highway sign asset information, can automatically detect whether the highway sign is damaged, the type of damage and the location of the damage, shortens the detection period of the road asset, improves the detection efficiency, and reduces the safety. Hidden dangers have effectively ensured the driving safety of the highway.

本发明的应用为高速公路的资产情况采集提供了便捷的采集路径,为高速公路的资产清理提供了简单的通道,为工作人员维护高速公路的行驶安全带来了极大的便利,对减少公路行驶安全事故有一定的积极作用,相比传统的资产清理系统更为高效,节省了人力、财力、物力。本发明GPS定位系统能够对公路标识故障点的位置进行定位和统计,实现智能定位,能准确获得损毁公路标识的具体位置,且对于GPS覆盖的任意路段均实用,适用范围广。图像处理过程采用先进的专家算法,保证了处理结果的准确性;同时,对各种可能出现的故障均进行了特征提取和计算,能够识别多种由于不同因素引起的公路标识故障,涵盖范围广,识别性能高。本发明将GPS与图像的集成信息以及识别后的各类数据,形成数据库,能对数据进行共享、恢复、统一和完整的控制。本发明还提供了合理的交互界面,使工作人员可以直接在交互界面上了解公路标识的具体情况并进行相关操作,方便实用。The application of the present invention provides a convenient collection path for the asset situation collection of the expressway, provides a simple channel for the asset cleaning of the expressway, and brings great convenience for the staff to maintain the driving safety of the expressway, and is beneficial to the reduction of road traffic. Driving safety accidents have certain positive effects. Compared with the traditional asset clearing system, it is more efficient and saves manpower, financial and material resources. The GPS positioning system of the present invention can locate and count the position of the fault point of the road mark, realize intelligent positioning, can accurately obtain the specific position of the damaged road mark, is practical for any road section covered by the GPS, and has a wide application range. The image processing process uses advanced expert algorithms to ensure the accuracy of the processing results; at the same time, various possible faults are extracted and calculated, and can identify a variety of road marking faults caused by different factors, covering a wide range , high recognition performance. The invention forms the integrated information of GPS and images and various types of data after identification into a database, and can share, restore, unify and completely control the data. The invention also provides a reasonable interactive interface, so that the staff can directly understand the specific conditions of the road signs on the interactive interface and perform related operations, which is convenient and practical.

附图说明Description of drawings

图1是本发明的整体实现框图;Fig. 1 is the overall realization block diagram of the present invention;

图2是本发明所述系统的总体结构框图;Fig. 2 is the overall structural block diagram of system of the present invention;

图3是本发明所述方法的流程图;Fig. 3 is a flowchart of the method of the present invention;

图4是本实施例中摄像头的安装位置示意图;Fig. 4 is a schematic diagram of the installation position of the camera in the present embodiment;

图5为本实施例中巡检车的行进范围示意图;Fig. 5 is a schematic diagram of the travel range of the inspection vehicle in this embodiment;

图6是本发明实现实时运行中从摄取图像中提取关键帧的流程图;Fig. 6 is the flow chart that the present invention realizes extracting key frame from ingested image in real-time operation;

图7是本发明实现图像整体处理的流程图;Fig. 7 is the flow chart that the present invention realizes the overall image processing;

图8是本发明实时GPS信息与实时图像匹配的实现框图;Fig. 8 is the realization block diagram of real-time GPS information and real-time image matching of the present invention;

图9是本发明实时最佳图像与标准图像匹配的实现框图;Fig. 9 is a realization block diagram of real-time best image and standard image matching of the present invention;

图10是本发明实现实时图像初步处理的流程图;Fig. 10 is a flow chart of the present invention to realize preliminary processing of real-time images;

图11是本发明挑选含有公路标识实时最佳图像的流程图;Fig. 11 is a flow chart of the present invention selecting the real-time best image containing road signs;

图12是本发明以点模式匹配为例的实时图像识别流程图;Fig. 12 is a real-time image recognition flowchart of the present invention taking point pattern matching as an example;

图13是本发明数据库的结构框图;Fig. 13 is a structural block diagram of the database of the present invention;

图14是本发明上位机控制模块交互界面的示意图。Fig. 14 is a schematic diagram of the interactive interface of the upper computer control module of the present invention.

具体实施方式detailed description

下面将结合附图和具体实施例对本发明进行进一步详细说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

一种公路标识的监管系统,其结构框图如图2所示,包括图像采集模块101、GPS信息采集模块102、预处理标准模型与实时模型建立模块103、两模型匹配模块104、图像处理与识别模块105、数据库模块106以及上位机控制模块107。各个模块的功能及模块间信息的传输如下所述。A monitoring system for highway signs, its structural block diagram is shown in Figure 2, including an image acquisition module 101, a GPS information acquisition module 102, a preprocessing standard model and real-time model building module 103, a two-model matching module 104, image processing and recognition Module 105, database module 106 and host computer control module 107. The functions of each module and the transmission of information between modules are as follows.

图像采集模块101,用于对公路标识进行图像采集。图像采集模块101包括两部分内容:一是通过车载工业相机对定点公路标识的标准图像进行采集存储,二是对行进过程中公路标识的实时图像进行采集。The image collection module 101 is configured to collect images of road signs. The image collection module 101 includes two parts: one is to collect and store standard images of fixed-point road signs through the vehicle-mounted industrial camera, and the other is to collect real-time images of road signs during the traveling process.

在本实施例中,采用Z30M工业相机对图像进行采集,Z30M相机支持视频与拍照两种模式,因此在建立预处理标准模型对定点公路标识标准图像进行采集时,可以采用拍照模式手动采集。而在对公路标识进行实时采集的操作中,则可采用视频模式对沿途公路标识进行整体采集。In this embodiment, the Z30M industrial camera is used to collect images, and the Z30M camera supports two modes of video and photo. Therefore, when the preprocessing standard model is established to collect standard images of fixed-point road signs, the photo mode can be used for manual collection. In the real-time collection of highway signs, the video mode can be used to collect the road signs along the way as a whole.

GPS信息采集模块102,用于对公路标识的GPS定位信息进行采集。The GPS information collection module 102 is configured to collect GPS positioning information of road signs.

GPS信息采集模块102包括两部分内容:一是对建立预处理标准模型中公路标识的标准GPS定位信息进行采集、标记、存储,形成公路标识的标准GPS经纬信息;二是对沿途行进过程中公路标识的实时GPS信息进行采集。The GPS information acquisition module 102 includes two parts: the one is to collect, mark and store the standard GPS positioning information of the highway identification in the preprocessing standard model to form the standard GPS longitude and latitude information of the highway identification; The identified real-time GPS information is collected.

预处理标准模型与实时模型建立模块103,用于通过图像采集模块101、GPS信息采集模块102对定点公路标识的标准图像信息以及标准GPS经纬信息进行统计,并分别进行同步单序列标记,建立公路标识的预处理标准模型,以此模型作为现实依据,实现其与公路标识的实时统计信息进行匹配。The preprocessing standard model and real-time model building module 103 are used to carry out statistics on the standard image information and standard GPS longitude and latitude information of fixed-point highway signs through the image acquisition module 101 and GPS information acquisition module 102, and perform synchronous single-sequence marking respectively to establish highways The preprocessing standard model of the sign is used as a realistic basis to match it with the real-time statistical information of the road sign.

通过图像采集模块101、GPS信息采集模块102对公路标识的实时GPS信息和实时图像进行采集,提取公路标识的实时GPS信息以及实时GPS信息对应的图像信息,通过图像采样及双序列标记,两者首序列一一对应,并在此基础上建立公路标识的实时模型。Collect real-time GPS information and real-time images of highway signs by image acquisition module 101 and GPS information acquisition module 102, extract real-time GPS information of highway signs and image information corresponding to real-time GPS information, and through image sampling and double-sequence marking, both The first sequence is one-to-one correspondence, and on this basis, a real-time model of the road sign is established.

两模型匹配模块104,根据GPS信息采集模块102采集的参数计算得出的GPS阈值范围,比对预处理标准模型中公路标识的标准GPS经纬信息,保存阈值范围内有效的实时GPS信息条,并同样进行序列标记和存储,用于为实时图像和实时GPS信息的匹配做准备。The two model matching modules 104, according to the GPS threshold value range calculated by the parameters collected by the GPS information collection module 102, compare the standard GPS longitude and latitude information of the highway identification in the preprocessing standard model, save the effective real-time GPS information in the threshold range, and Sequence labeling and storage are also performed to prepare for the matching of real-time images and real-time GPS information.

本发明中,两模型匹配模块104能够根据GPS信息采集模块102采集的参数计算得出的GPS阈值范围,比对预处理标准模型中公路标识的标准GPS经纬信息,保存阈值范围内有效的实时GPS信息条。提取最小范围内存在公路标识的图像,减少了存储空间和处理数量,提高了实时匹配的效率以及实时采集过程中对可能存在公路标识路段图像提取的准确率。In the present invention, the two model matching modules 104 can compare the standard GPS longitude and latitude information of the highway identification in the pre-processing standard model with the GPS threshold range calculated according to the parameters collected by the GPS information collection module 102, and save the effective real-time GPS within the threshold range. information strip. Extract images with road signs in the minimum range, reduce the storage space and processing quantity, improve the efficiency of real-time matching and the accuracy of image extraction for road sections that may have road signs in the real-time acquisition process.

能对预处理标准模型与实时模型建立模块103中的实时信息通过序列匹配及阈值删选提取关键图像,将选取的关键图像通过参数计算和专家算法控制,对定点GPS对应的含有公路标识的关键图像进行处理,并通过处理从中得出实时最佳图像。Key images can be extracted from the real-time information in the preprocessing standard model and real-time model building module 103 through sequence matching and threshold value deletion, and the selected key images can be controlled by parameter calculation and expert algorithm. The image is processed and the best image in real time is derived from it.

图像处理与识别模块105,处理包括对提取的图像信息进行帧标记、还原、去噪等初步处理,对带有公路标识信息的图像进行检测、分割等,获得能够与预处理标准模型中的公路标识标准图像进行匹配的实时最佳图像。Image processing and recognition module 105, the processing includes preliminary processing such as frame labeling, restoration, and denoising of the extracted image information, detection and segmentation of images with road identification information, etc., to obtain roads that can be compared with the pre-processing standard model Identify the real-time best image for matching against a standard image.

将两模型匹配模块104中通过专家算法统计后得出的含有公路标识的实时最佳图像与预处理标准模型与实时模型建立模块103中统计的标准图像信息进行模式匹配,通过专家算法匹配训练,得出实际匹配后的公路标识的损坏类型,并进行分类存储。The real-time optimal image containing the road sign obtained after the statistics of the expert algorithm in the two model matching modules 104 and the preprocessing standard model and the statistical standard image information in the real-time model building module 103 are pattern-matched, and trained by expert algorithm matching, The damage type of the actually matched road sign is obtained and classified and stored.

数据库模块106,用于对系统中的数据信息进行有序、有效的监管,建立数据库机制,便于数据提取、查看。The database module 106 is used to conduct orderly and effective supervision on the data information in the system, establish a database mechanism, and facilitate data extraction and viewing.

上位机控制模块107,与数据库模块中数据库进行链接,对本发明整体系统进行直观展示,便于工作人员操作。上位机控制模块以友好的交互界面将处理后的数据更加直观地供相关人员使用,显示信息主要包括定点公路标识的GPS经纬度信息、定点公路标识的图像、图像识别后的具体类别、公路标识的损坏状态以及维修是否完成的标识信息等信息,以便于工作人员及时采取相应的更换或维护措施。The upper computer control module 107 is linked with the database in the database module to visually display the overall system of the present invention, which is convenient for staff to operate. The host computer control module uses a friendly interactive interface to make the processed data more intuitive for relevant personnel to use. The displayed information mainly includes GPS latitude and longitude information of fixed-point road signs, images of fixed-point road signs, specific categories after image recognition, and road signs. Information such as the damage status and the identification information of whether the repair is completed, so that the staff can take corresponding replacement or maintenance measures in time.

本发明实现图像处理的整体流程图如图7所示,具体为:1)对公路标识的标准图像和标准GPS定位信息进行采集形成预处理集成信息,再从该预处理集成信息中获取公路标准的标准图像特征;2)通过标准GPS经纬信息设定阈值;3)获取公路标识的实时图像信和实时GPS信息,并根据阈值选取匹配的实时图像和实时GPS信息,并形成实时集成信息;4)对获取的匹配的实时图像经过预处理、检测、分割等一系列操作后,得到满足需求的实时最佳图像;5)将实时最佳图像与预处理标准模型中的标准图像进行比对识别,得出公路标识实时状态信息,并进行分类存储。The overall flow chart of the image processing of the present invention is shown in Figure 7, specifically: 1) collect the standard image of the road sign and the standard GPS positioning information to form pre-processing integrated information, and then obtain the road standard from the pre-processing integrated information 2) Set thresholds through standard GPS longitude and latitude information; 3) Obtain real-time image information and real-time GPS information of highway signs, and select matching real-time images and real-time GPS information according to thresholds, and form real-time integrated information; 4) After a series of operations such as preprocessing, detection, and segmentation, the obtained matched real-time images are subjected to a series of operations to obtain the real-time best images that meet the requirements; 5) The real-time best images are compared and identified with the standard images in the pre-processing standard model, Get the real-time status information of road signs and store them in categories.

一种公路标识监管的方法,其流程图如图1所示,该方法包括:首先,由已有的公路标准GPS和图像数据,通过标注单序列方式建立预处理标准模型;其次,确定优化采样频率并通过公路巡检操作自动获取最新GPS和图像数据,通过标注双序列方式建立实时模型;然后将实时模型数据经双序列匹配搜索与预处理标准模型数据进行比对,由实时模型获取实时最佳图像与标准图像进行匹配;进而利用点模式图像匹配算法对比标准数据确定公路标识损坏的具体类型;最后根据识别结果、维修状态更新预处理标准模型。A method for supervising highway signs, the flow chart of which is shown in Figure 1. The method includes: firstly, establishing a preprocessing standard model by labeling a single sequence from the existing highway standard GPS and image data; secondly, determining the optimal sampling Frequency and automatically obtain the latest GPS and image data through highway inspection operations, and establish a real-time model by marking the double sequence; The best image is matched with the standard image; then the point pattern image matching algorithm is used to compare the standard data to determine the specific type of road sign damage; finally, the preprocessing standard model is updated according to the recognition result and maintenance status.

本方法的具体流程图如图3所示,包括以下步骤:The concrete flowchart of this method is shown in Figure 3, comprises the following steps:

S101.建立公路标识的预处理标准模型。S101. Establish a preprocessing standard model of road signs.

通过选定工具对标准公路标识的图像进行采集,并同步获取当前图像的GPS定位信息,对所得数据进行存储,建立预处理标准模型。预处理标准模型的建立具体包括以下步骤。The image of the standard road sign is collected through the selected tool, and the GPS positioning information of the current image is obtained synchronously, the obtained data is stored, and the preprocessing standard model is established. The establishment of the preprocessing standard model specifically includes the following steps.

S1011.确定摄像头型号,并根据公路标识的高度位置在巡检车上的合适位置安装摄像头。S1011. Determine the camera model, and install the camera at a proper position on the inspection vehicle according to the height of the road sign.

首先确定摄像头型号,从而确定焦距、帧率等参数,根据实际单位时间所摄取的视频帧,获得相应的实际距离,进而确定巡检车的车速,使之得到匹配,同时也避免对同一路段的重复判断;在巡检车的特定位置安装摄像头,标准情况下公路标识的高度位置都有一定的规定,因此根据该高度位置可以确定摄像头在巡检车上的安装位置及安装角度,以及巡检车运行轨道,以便摄像头摄取公路标识的实时最佳图像。First determine the camera model, so as to determine the focal length, frame rate and other parameters, and obtain the corresponding actual distance according to the video frame captured in the actual unit time, and then determine the speed of the inspection vehicle to make it match, and at the same time avoid the same road section. Repeat the judgment; install the camera at a specific position of the inspection vehicle. Under standard conditions, the height and position of the road signs have certain regulations. Therefore, according to the height position, the installation position and installation angle of the camera on the inspection vehicle can be determined, and the inspection The car runs on the track so that the camera can capture the best real-time image of the road markings.

本实施例中,具体摄像头型号的选择以及安装位置的计算如下。In this embodiment, the selection of the specific camera model and the calculation of the installation position are as follows.

本实施例中,摄像头采用Z30M彩色相机,像素36万,分辨率可提供752*480(54帧/秒)、640×480(60帧/秒)或320×240(60帧/秒),帧率可根据需要进行设置;相机镜头的传感器为1/3CMOS(黑白/彩色),传感器大小为4510um*2880um(宽*高),Z30M/Z30C默认安装座为CS型号。In this embodiment, the camera adopts a Z30M color camera with 360,000 pixels, and the resolution can provide 752*480 (54 frames/second), 640×480 (60 frames/second) or 320×240 (60 frames/second), and the frame The rate can be set according to needs; the sensor of the camera lens is 1/3CMOS (black and white/color), the sensor size is 4510um*2880um (width*height), and the default mount of Z30M/Z30C is CS model.

根据标准公路标识的最高安装高度为10m,公路标识的最大尺寸为4*3m,巡检车高度为1.5m,且巡检车的速度为14m/s,为确保公路标识能在拍摄范围内,本实施例选择在距离公路标识14m处为相机的拍摄距离。According to the maximum installation height of the standard road sign is 10m, the maximum size of the road sign is 4*3m, the height of the inspection vehicle is 1.5m, and the speed of the inspection vehicle is 14m/s, in order to ensure that the road sign can be within the shooting range, In this embodiment, 14m away from the road sign is selected as the shooting distance of the camera.

1、相机安装的仰视角度根据下式计算。1. The upward viewing angle of camera installation is calculated according to the following formula.

经计算可得tanθ=0.82,进而得出θ≈40°,即相机安装时其仰视角设置约为40°。本实施例摄像头的安装位置示意图如图4所示。After calculation, tanθ=0.82 can be obtained, and then θ≈40°, that is, the elevation angle setting of the camera is about 40° when it is installed. The schematic diagram of the installation position of the camera in this embodiment is shown in FIG. 4 .

2、相机镜头的广角范围要求根据下式计算。2. The wide-angle range of the camera lens is required to be calculated according to the following formula.

则θ3=θ12=49°-31°=18°,即镜头广角范围至少需达到18°。Then θ 312 =49°-31°=18°, that is, the wide-angle range of the lens must reach at least 18°.

3、相机镜头型号的选择。3. The choice of camera lens model.

根据选择镜头的传感器型号1/3COMS可知,传感器尺寸为4510um*2880um(宽*高),由下式计算镜头的垂直焦距和水平焦距:According to the sensor model 1/3COMS of the selected lens, the sensor size is 4510um*2880um (width*height), and the vertical focal length and horizontal focal length of the lens are calculated by the following formula:

其中,fw为水平焦距,fh为水平焦距,w为传感器宽度,L为被摄物体距镜头的距离,W为被摄物体的宽度,h为传感器高度,H为被摄物体的高度。Among them, f w is the horizontal focal length, f h is the horizontal focal length, w is the width of the sensor, L is the distance from the subject to the lens, W is the width of the subject, h is the height of the sensor, and H is the height of the subject.

本实施例中,被摄物体即公路标识的最大宽度为4m,被摄物体的最大高度为3m,则:In this embodiment, the maximum width of the subject, namely the road sign, is 4m, and the maximum height of the subject is 3m, then:

由于本实施例中,首先假设了被摄物体与镜头最小距离需达到14m,而实际的拍摄过程中则可能远大于此,因此可得焦距的最小范围为13.44mm~15.785mm。根据选择的镜头的最小视野角度以及最小焦距范围,本实施例选取的镜头型号为0660MV。In this embodiment, it is first assumed that the minimum distance between the subject and the lens needs to be 14m, but the actual shooting process may be much larger than this, so the minimum range of available focal length is 13.44mm-15.785mm. According to the minimum viewing angle and the minimum focal length range of the selected lens, the lens model selected in this embodiment is 0660MV.

Z30M工业相机可以提供一个或多个USB高速接口与PC进行连接,接线简单,数据传输便利,无需另外增加连接线,使用方便,即插即用,支持热插拔,铝合金外壳,抗震能力强,具有强大的抗电磁干扰能力,参数满足本发明图像采集的要求。该相机镜头的焦距可以在6~60mm之间进行调节,调节范围广,水平视场角Angle of View:44.5~4.6,满足多角度的需求,而且Z30M工业相机能在拍照与视频之间进行转换,对本发明中预处理标准模型的建立以及后续实时检测中的视频采集均能满足。Z30M industrial camera can provide one or more USB high-speed interfaces to connect with PC, simple wiring, convenient data transmission, no need to add additional connecting lines, easy to use, plug and play, support hot swap, aluminum alloy shell, strong shock resistance , has a strong ability to resist electromagnetic interference, and the parameters meet the requirements of the image acquisition of the present invention. The focal length of the camera lens can be adjusted between 6mm and 60mm, with a wide range of adjustment, and the horizontal field of view Angle of View: 44.5~4.6, which meets the needs of multiple angles, and the Z30M industrial camera can switch between taking photos and videos , which can satisfy the establishment of the preprocessing standard model in the present invention and the video acquisition in the subsequent real-time detection.

高速公路道路宽敞、车辆繁多,巡检车辆不可能在固定车道上行进,而图像的摄取范围却存在一定的限制,因此,本发明需要对巡检车的行进范围进行确定,巡检车运行轨道的确定方法如下。The expressway road is spacious and there are many vehicles. It is impossible for the inspection vehicle to travel on a fixed lane, but there is a certain limit in the range of image capture. Therefore, the present invention needs to determine the travel range of the inspection vehicle. The determination method of is as follows.

设公路标牌的尺寸为l*w,选取的工业相机视野角度为θ1,最佳距离L,如图5所示。由于公路标识按国标应安装在道路的右侧,l1为相机中心线至标牌左边线的距离,那么,则有:Suppose the size of the road sign is l*w, the field of view angle of the selected industrial camera is θ 1 , and the optimal distance is L, as shown in Figure 5. Since the road sign should be installed on the right side of the road according to the national standard, l 1 is the distance from the center line of the camera to the left line of the sign, then:

由此便可以得出巡检车辆可以偏移道路边缘的交通标牌的具体范围。From this, it can be obtained that the inspection vehicle can deviate from the specific range of the traffic sign on the edge of the road.

确定了图像摄取的最佳位置范围,便可以对图像进行实际采集。而在实际的定点采集中,对定点位置如何确定也需要一定的辅助设备,本发明利用红外传感器对实际的相机距离公路标识的距离S以及车辆的运行范围l1进行测量,当达到设定数值时,则可以通过巡检车内的控制手柄按下相机快门,获取当前图像。After determining the optimal position range for image capture, the image can be actually collected. However, in the actual fixed-point collection, how to determine the fixed-point position also needs certain auxiliary equipment. The present invention utilizes an infrared sensor to measure the distance S between the actual camera and the road sign and the operating range l of the vehicle. When the set value is reached , you can press the camera shutter through the control handle in the inspection vehicle to obtain the current image.

S1012.采集公路标识的标准图像。S1012. Collecting standard images of road signs.

对公路标识的标准图像采用相机的拍照模式、以定点拍照的形式进行采集。本发明中只需要采集一次便可以完成,采集的公路标识的标准图像用于建立预处理标准模型。The standard image of the road sign is collected in the form of fixed-point photography using the camera's photography mode. In the present invention, it only needs to be collected once, and the collected standard image of the road sign is used to establish a preprocessing standard model.

S1013.采集公路标识的标准GPS定位信息。S1013. Collect standard GPS positioning information of road signs.

对公路标识进行GPS定位,获得公路标识的标准GPS定位信息。本发明中只需要采集一次便可以完成,采集的公路标识的标准GPS定位信息用于建立预处理标准模型。Carry out GPS positioning on road signs, and obtain standard GPS positioning information of road signs. The present invention only needs to be collected once, and the collected standard GPS positioning information of road signs is used to establish a preprocessing standard model.

S1014.根据步骤S1012和S1013采集的结果,通过标注单序列方式建立预处理标准模型。所述单序列标记方式为对同步采集的标准图像与GPS信息根据采集顺序逐次标记。S1014. According to the results collected in steps S1012 and S1013, a preprocessing standard model is established by labeling a single sequence. The single-sequence marking method is to mark the synchronously collected standard images and GPS information successively according to the collection order.

预处理标准模型中的标准GPS与标准图像不可能实现自动采集,需要工作人员手动进行操作,本发明在相关传感器的配合下确定图像的最佳采集点,当巡检车辆运行至最佳采集点范围内时,经工作人员确定后手动采集标准GPS及图像,并对两者分别进行单序列标记,通过标准图像的定点采集并对图像进行逐次序列标记,同步获取标准GPS定位信息并逐次标记序列,由于在此过程中标准图像与标准GPS定位信息获取同步,标记序列也就保持一致,通过序列号的匹配,将标准图像信息与标准GPS定位信息进行集成融合从而建立预处理标准模型。The standard GPS and standard images in the preprocessing standard model cannot be automatically collected, and manual operations are required by the staff. The present invention determines the best collection point of the image with the cooperation of relevant sensors. When the inspection vehicle runs to the best collection point When within the range, the standard GPS and images are manually collected after the staff confirms, and a single sequence is marked for the two respectively, and the images are sequentially marked through the fixed-point collection of the standard images, and the standard GPS positioning information is obtained synchronously and the sequence is marked sequentially , because the standard image and the standard GPS positioning information are synchronized during this process, the marking sequence is also consistent. Through the matching of the serial number, the standard image information and the standard GPS positioning information are integrated and fused to establish a preprocessing standard model.

S102.获取公路标识的实时信息,并建立实时模型。S102. Acquiring real-time information of highway signs, and building a real-time model.

获取巡检车行进过程中,公路标识的实时视频信息和实时GPS信息,通过参数计算,确定GPS阈值,得出需要进行定位的路段,获取定位路段的公路标识的实时图像,确保所提取的图像信息中包含公路标识。实时信息的获取具体包括以下步骤。Obtain the real-time video information and real-time GPS information of the road sign during the inspection vehicle's travel, determine the GPS threshold through parameter calculation, obtain the road section that needs to be positioned, obtain the real-time image of the road sign for the positioning section, and ensure the extracted image Information includes road signs. The acquisition of real-time information specifically includes the following steps.

S1021.采用相机的视频模式获取公路标识的实时图像信息。S1021. Acquire the real-time image information of the road sign by using the video mode of the camera.

公路标识实时图像的采集采用相机的视频模式,根据实际监管计划的需求,可以随时进行。视频采集是通过工业数字相机与PC进行连接,通过USB接口将信息直接传至PC,并进行存储。视频采集时需考虑相机的安装位置,相机各参数的计算,镜头以及Sensor(传感器)的选择;同时需要考虑到车辆巡检时速度的改变对视频图像的影响,所以本发明中巡检车采用的是定速巡检,当出现超车等意外现象时,则可以人为地操作刹车或换挡,解除出现的情况时再进行定速巡检。The collection of real-time images of highway signs adopts the video mode of the camera, which can be carried out at any time according to the needs of the actual supervision plan. The video acquisition is connected with the PC through the industrial digital camera, and the information is directly transmitted to the PC through the USB interface for storage. Need to consider the installation position of camera during video collection, the calculation of each parameter of camera, the selection of camera lens and Sensor (sensor); Need to consider the impact of the change of speed on video image when vehicle inspection simultaneously, so inspection vehicle adopts in the present invention The most important thing is the constant speed inspection. When there is an accident such as overtaking, you can manually operate the brakes or shift gears, and then perform the constant speed inspection when the situation is resolved.

S1022.对公路标识进行实时GPS定位,获得公路标识的实时GPS信息。S1022. Perform real-time GPS positioning on the road sign, and obtain real-time GPS information of the road sign.

公路标识实时GPS信息的采集,可根据实际监管计划的需求,可以随时进行。公路标识实时GPS信息的实时采集过程中,如果当前GPS位置处存在标准公路标识时进行序列匹配标记即可。The collection of real-time GPS information on highway signs can be carried out at any time according to the needs of the actual supervision plan. In the process of real-time collection of real-time GPS information of highway signs, if there is a standard highway sign at the current GPS position, it is sufficient to perform sequence matching marking.

由于公路路段的长距离性,本发明GPS定位采用误差在一定范围内的GPS定位系统,采用专家算法保证GPS定位信息获取的完整性、可靠性,并将实时GPS信息存储至相应位置。Due to the long-distance nature of highway sections, the GPS positioning of the present invention adopts a GPS positioning system with an error within a certain range, uses expert algorithms to ensure the integrity and reliability of GPS positioning information acquisition, and stores real-time GPS information to corresponding locations.

S1023.将实时GPS信息(包括时间、经度、纬度)与相应的实时图像进行匹配,并通过标注双序列方式建立实时模型。所述双序列标记方式为以实时信息的采集时间为序列标记实时GPS信息;对根据一定采样频率采集的实时图像首先以实时时间为序进行首序列标记,其次对具有同一实时时间序号的多帧实时图像按照采样顺序再进行次序列标记,从而建立实时模型。S1023. Match real-time GPS information (including time, longitude and latitude) with corresponding real-time images, and establish a real-time model by marking double sequences. The double-sequence marking method is to mark the real-time GPS information with the collection time of the real-time information as a sequence; firstly carry out the first sequence mark in real-time time for the real-time images collected according to a certain sampling frequency, and secondly mark the multi-frames with the same real-time time sequence number The real-time images are marked in sequence according to the sampling order, so as to establish a real-time model.

下面结合图6对如何从实时摄取的图像中提取对应实时GPS信息的含有公路标识的图像进行说明。How to extract the image containing the road sign corresponding to the real-time GPS information from the image captured in real time will be described below with reference to FIG. 6 .

首先,对公路标识的实时GPS信息逐条进行采集,并进行双序列标记。对实时GPS信息逐条进行序列标记时,所标记序列为GPS的实时获取时间:年、月、日、时、分、秒,即长度为14位的序列字段。First of all, the real-time GPS information of road signs is collected one by one, and double-sequence marking is carried out. When the real-time GPS information is serially marked one by one, the marked sequence is the real-time acquisition time of GPS: year, month, day, hour, minute, second, that is, a sequence field with a length of 14 bits.

本实施例中,对GPS频率与图像帧率通过标记,进行专家算法设计,使两者之间达到一一匹配的效果。GPS通过USB串口与PC连接,通过VB接收和提取GPS经纬度信息的实现过程如下:In this embodiment, the GPS frequency and the image frame rate are marked, and an expert algorithm is designed to achieve a one-to-one matching effect between the two. The GPS is connected to the PC through the USB serial port, and the implementation process of receiving and extracting the GPS latitude and longitude information through VB is as follows:

//获取经纬度信息// Get latitude and longitude information

//判断何时开始接收GPS信息//Determine when to start receiving GPS information

If Strnum=vbLf Then'当遇到回车换行时If Strnum=vbLf Then' when a carriage return is encountered

If(StrArray(0)="$")Then'遇到字符串开始的第一个字符“$”If(StrArray(0)="$")Then'Encounter the first character "$" at the beginning of the string

g=g+1//对采集的GPS信息条数进行统计g=g+1//to count the number of GPS information collected

MyY1=TStrGps(5)'提取字符串中的经度MyY1=TStrGps(5)' extract the longitude in the string

MyY=""&Mid(MyY1,1,2)&"'"&Mid(MyY1,3,3)&"”"&Mid(MyY1,7,4)MyY=""&Mid(MyY1,1,2)&"'"&Mid(MyY1,3,3)&"""&Mid(MyY1,7,4)

Text4.Text=g&MyY//将提取的纬度信息进行标记并存至Text4.text中Text4.Text=g&MyY//mark the extracted latitude information and store it in Text4.text

Open"C:\GPS\纬度"&d&".txt"For Append As#4Open "C:\GPS\Latitude"&d&".txt"For Append As#4

Print#4,Text3.TextPrint#4, Text3. Text

Close#4//将存有纬度信息存至电脑相应位置Close#4//Save the stored latitude information to the corresponding location on the computer

MyX1=TStrGps(3)'提取字符串中的纬度MyX1=TStrGps(3)' extract the latitude in the string

MyX=""&Mid(MyX1,1,2)&"'"&Mid(MyX1,3,2)&"”"&Mid(MyX1,6,4)MyX=""&Mid(MyX1,1,2)&"'"&Mid(MyX1,3,2)&"""&Mid(MyX1,6,4)

Text3.Text=g&MyX//将提取的经度信息进行标记并存至Text3.text中Text3.Text=g&MyX//Mark the extracted longitude information and store it in Text3.text

Open"C:\GPS\经度"&d&".txt"For Append As#5Open "C:\GPS\Longitude"&d&".txt"For Append As#5

Print#5,Text4.TextPrint#5, Text4. Text

Close#5//将存有经度信息的文档存至电脑相应位置。Close#5//Save the file with longitude information to the corresponding location on the computer.

其次,计算公路标识实时图像信息的采样频率,并对采样图像进行双序列标记;标记过程中,需要对采集的公路标识图像信息的每帧图片信息逐帧进行双序列标记,所标记的双序列分为首序列、次序列,其中首序列为图像帧获取的实时时间:年、月、日、时、分、秒,长度为14位的序列字段,次序列为同一首序列号下多帧图像的采样顺序。Secondly, calculate the sampling frequency of the real-time image information of the highway sign, and perform double-sequence marking on the sampled image; It is divided into the first sequence and the second sequence. The first sequence is the real-time time of image frame acquisition: year, month, day, hour, minute, second, and the length is a sequence field of 14 bits. The second sequence is the multi-frame image under the same first sequence number. Sampling order.

实时模型中图像采集以视频形式不间断进行采集,由于相机的采集频率较高,如果对每一帧图像均进行处理,对处理速度和磁盘存储都提出了较高要求。基于此,本发明通过计算采样频率,对实时图像进行采样,减少图像处理量,同时保证处理结果。设相机采样频率为X帧/S,车辆行进速度为Vm/s,则采样频率F可设定如下:In the real-time model, the image acquisition is continuously collected in the form of video. Due to the high acquisition frequency of the camera, if each frame of image is processed, higher requirements are placed on the processing speed and disk storage. Based on this, the present invention samples the real-time image by calculating the sampling frequency, reduces the amount of image processing, and guarantees the processing result at the same time. Assuming that the camera sampling frequency is X frame/S, and the vehicle travel speed is Vm/s, then the sampling frequency F can be set as follows:

根据本发明Z30M相机拍摄频率X=60帧/S,V=14m/s,计算可得:F=5帧/m。According to the shooting frequency of the Z30M camera of the present invention X=60 frames/s, V=14m/s, the calculation can be obtained: F=5 frames/m.

然后,从实时GPS信息与图像获取途径可得知图片信息与实时GPS信息的获取时间保持一致,通过时间序列匹配,实现实时模型的建立。Then, from the real-time GPS information and image acquisition methods, it can be known that the acquisition time of the picture information and real-time GPS information is consistent, and the establishment of a real-time model is realized through time series matching.

S103.通过专家算法获取步骤S102采集到的实时信息中公路标识的实时最佳图像。S103. Obtain the best real-time image of the road sign in the real-time information collected in step S102 through an expert algorithm.

对于步骤S102中采集到的实时图像进行初步处理,并通过专家算法获取含有公路标识的实时最佳图像信息,并进行标记、存储。图像的初步处理包括对S102中采集到的图像进行初步去噪、滤波、还原、倾斜矫正、运动模糊消除等处理步骤,从而获得含有公路标识且能与预处理标准模型中的标准图像进行匹配的实时最佳图像。具体步骤如下。Preliminary processing is performed on the real-time images collected in step S102, and the best real-time image information containing road signs is acquired through an expert algorithm, marked and stored. The preliminary processing of the image includes processing steps such as preliminary denoising, filtering, restoration, tilt correction, and motion blur elimination on the image collected in S102, so as to obtain a road image that contains road signs and can be matched with the standard image in the pre-processing standard model. Best images in real time. Specific steps are as follows.

S1031.图像进行初步处理。S1031. Preliminary image processing.

实际应用中,噪声和运动模糊造成的初级图像问题很容易影响后续的图像处理,因此需要对图像首先进行初步处理。本发明实现图像初步处理的流程图如图10所示。In practical applications, primary image problems caused by noise and motion blur can easily affect subsequent image processing, so preliminary image processing is required first. The flow chart of the present invention for realizing preliminary image processing is shown in FIG. 10 .

首先,根据巡检车车速、拍摄相机帧率、GPS定位频率等参数进行计算,获得关键帧匹配参数;其次,将采集的视频图像转换为JPG格式图片;然后,对JPG格式图片进行图片去噪、滤波、运动模糊消除、倾斜矫正等处理。图片去噪采用去噪效果良好的中值滤波改进算法消除噪声影响,运动模糊消除采用维纳滤波及改进算法进行处理,倾斜矫正采用专家算法对倾斜图片进行矫正。First, calculate according to parameters such as the speed of the inspection vehicle, the frame rate of the shooting camera, and the frequency of GPS positioning to obtain the key frame matching parameters; secondly, convert the collected video images into JPG format images; then, perform image denoising on the JPG format images , filtering, motion blur removal, tilt correction and other processing. Image denoising adopts improved median filter algorithm with good denoising effect to eliminate noise influence, motion blur elimination uses Wiener filter and improved algorithm for processing, and tilt correction uses expert algorithm to correct tilted pictures.

本实施例中,通过保存的实时GPS信息对应获取的实时图像,根据Z30M的参数可知,在此对应GPS的保存图像为5帧,而在后续具体识别中,本发明只需要其中一帧实时最佳图像来实现。In this embodiment, the saved real-time GPS information corresponds to the acquired real-time image. According to the parameters of Z30M, the saved image corresponding to GPS is 5 frames, and in the subsequent specific identification, the present invention only needs one of the real-time most to achieve the best images.

S1032.挑选含有公路标识的实时最佳图像S1032. Select the best real-time image containing road signs

本发明挑选含有公路标识实时最佳图像的流程图如图11所示,具体实现过程为:The present invention selects the flow chart that contains the real-time best image of the road sign as shown in Figure 11, and the specific implementation process is:

首先,对实时图像经过初步处理后获得的5帧图像进行检测。First, detect the 5 frames of images obtained after preliminary processing of real-time images.

其次,根据公路标识颜色的特殊性,将RGB转换为HSV颜色空间。Second, convert RGB to HSV color space according to the particularity of road sign colors.

然后,通过HSV颜色空间来判定当前图像中是否含有特殊颜色。特殊颜色是指红、蓝、黄色对应HSV空间的颜色;如果含有其中一种,则认为当前图像中含有公路标识的摄取,对该图片进行标记存储。Then, use the HSV color space to determine whether the current image contains a special color. The special colors refer to the colors of red, blue, and yellow corresponding to the HSV space; if one of them is included, it is considered that the current image contains the ingestion of road signs, and the image is marked and stored.

再次,通过颜色区域对图像进行进一步分割。Again, the image is further segmented by color regions.

最后,比较不同图像之间的分割区域大小,选取分割区域最大的作为实时最佳图像。Finally, compare the size of the segmented regions between different images, and select the one with the largest segmented region as the real-time best image.

在实际应用中,由于拍摄距离和其它因素影响,公路标识拍摄的效果不尽相同。本发明认定分割区域范围最大的为实时最佳图像,因为分割区域越大,则证明相机距离实际公路标识的位置更接近,所摄取的图像中公路标识所占区域也就越大,越清晰,即图像效果越接近本发明所理想的实时最佳图像。In practical applications, due to the influence of shooting distance and other factors, the effects of road sign shooting are not the same. The present invention determines that the best real-time image is the one with the largest segmented area, because the larger the segmented area, the closer the camera is to the actual road sign, and the larger and clearer the area occupied by the road sign in the captured image. That is, the closer the image effect is to the ideal real-time optimal image of the present invention.

S104.对步骤S103中得到的实时最佳图像与步骤S101中预处理标准模型的标准图像进行匹配,通过专家算法得出公路标识损坏的具体分类,并存储。S104. Match the real-time optimal image obtained in step S103 with the standard image of the preprocessed standard model in step S101, and obtain a specific classification of road sign damage through an expert algorithm, and store it.

S1041,计算阈值,使实时GPS信息与标准的标准GPS经纬信息进行匹配。S1041. Calculate a threshold, so that real-time GPS information is matched with standard standard GPS latitude and longitude information.

由前面可知,本发明在预处理标准模型与实时模型中提取GPS信息时均对两者分别进行了序列标记,通过参数计算可获得两者能实现匹配的阈值范围,具体计算过程如下。As can be seen from the foregoing, when the present invention extracts GPS information from the preprocessing standard model and the real-time model, both of them are sequentially marked, and the threshold range within which the two can achieve matching can be obtained through parameter calculation. The specific calculation process is as follows.

已知A点与B点两点的经、纬度信息,根据有关圆以及三角的知识进行推导,得出地球表面点距离的公式如下:Knowing the longitude and latitude information of point A and point B, based on the knowledge of circle and triangle, the formula for the distance on the surface of the earth is as follows:

C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)

Distance=R*Arccos(C)*π/180Distance=R*Arccos(C)*π/180

由上式可以得到:Arccos(C)=Distance*180/(R*π)It can be obtained from the above formula: Arccos(C)=Distance*180/(R*π)

其中,R和Distance的单位相同。Among them, the units of R and Distance are the same.

本实施例中,公路标识巡检车速为14m/s,GPS定位频率为1S/次,因此本发明选择阈值地球表面距离为15m,即Dis tan ce=15(m)计算可得Arccos(C)=1.34×10-4,进一步可得C=cos(1.34×10-4)≈1。In the present embodiment, the inspection speed of the highway sign is 14m/s, and the GPS positioning frequency is 1S/time, so the present invention selects the threshold value earth surface distance as 15m, that is, Dis tan ce=15(m) can be calculated to obtain Arccos(C) =1.34×10 -4 , and it can be further obtained that C=cos(1.34×10 -4 )≈1.

而又由以上公式可知,当A点与B点处于同一经度时:And it can be seen from the above formula that when point A and point B are at the same longitude:

C=sin(MLatA)*sin(MLatB)*cos(0°)+cos(MLatA)*cos(MLatB)C=sin(MLatA)*sin(MLatB)*cos(0°)+cos(MLatA)*cos(MLatB)

C=sin(MLatA)*sin(MLatB)*1+cos(MLatA)*cos(MLatB)C=sin(MLatA)*sin(MLatB)*1+cos(MLatA)*cos(MLatB)

由C≈1,以及数学三角函数定理可知,当MLatA≈MLatB时,According to C≈1 and the theorem of mathematical trigonometric functions, when MLatA≈MLatB,

C≈sin2(MLatA)+cos2(MLatA)=1,C≈sin 2 (MLatA)+cos 2 (MLatA)=1,

因此,当A点与B点纬度也处于同一位置,即纬度阈值达到0时,能达到地面距离阈值15m的要求,但是在实际应用过程中不能有如此准确的阈值范围,因此,要使得Therefore, when the latitude of point A and point B is also at the same position, that is, when the latitude threshold reaches 0, the ground distance threshold of 15m can be met, but such an accurate threshold range cannot be found in the actual application process. Therefore, to make

C=sin(MLatA)*sin(MLatB)*1+cos(MLatA)*cos(MLatB)≈C=sin(MLatA)*sin(MLatB)*1+cos(MLatA)*cos(MLatB)≈

sin2(MLatA)+cos2(MLatA)=1sin 2 (MLatA)+cos 2 (MLatA)=1

即sin(MLatA)≈sin(MLatB)、cos(MLatA)≈cos(MLatB)That is, sin(MLatA)≈sin(MLatB), cos(MLatA)≈cos(MLatB)

根据正余弦以及实验数据检测,当经度一致时,假设取小数点两位为有效计算,经查阅数据手册可得sin(θ)=0.0044,取小数点后两位有效,sin(θ)≈0,而此时θ≈0.25°=15”,因此,将纬度阈值范围确定在0.25°,可以得到有效定位。同理,当两点处于同一纬度时,经度阈值的确定也可以通过以上方法实现,经计算经度阈值也确定为0.25°。According to the detection of sine and cosine and experimental data, when the longitude is consistent, it is assumed that taking two decimal places is an effective calculation. After consulting the data sheet, sin(θ)=0.0044, taking two decimal places is valid, sin(θ)≈0, and At this time θ≈0.25°=15", therefore, setting the latitude threshold range at 0.25° can obtain effective positioning. Similarly, when two points are at the same latitude, the longitude threshold can also be determined by the above method. After calculation The longitude threshold was also determined to be 0.25°.

S1042,保存在阈值范围内的实时GPS信息,并保存与之匹配的预处理标准模型的GPS单序列与实时模型中的GPS双序列。S1042. Save the real-time GPS information within the threshold range, and save the matched GPS single sequence of the preprocessed standard model and the GPS double sequence in the real-time model.

当两者之间的匹配在阈值范围内时,对当前提取的实时GPS信息进行保存,同时将与之匹配的预处理标准模型中的GPS序列进行对应存储;而保存下来的实时GPS信息所对应的地面范围内一定存在公路标识。因此根据开始的标记序列接口很容易找到此条保留的实时GPS信息所对应的含有公路标识的实时图像,完成实时信息的获取。When the matching between the two is within the threshold range, the currently extracted real-time GPS information is saved, and at the same time, the GPS sequence in the pre-processed standard model matched with it is stored correspondingly; and the saved real-time GPS information corresponds to Road signs must exist within the ground extent of . Therefore, according to the initial marking sequence interface, it is easy to find the real-time image containing the road sign corresponding to the retained real-time GPS information, and complete the acquisition of real-time information.

S1043,根据阈值要求,将匹配的实时GPS信息再与预处理标准模型对应的标准图像以及实时模型中对应的实时最佳图像进行匹配。S1043. Match the matched real-time GPS information with the standard image corresponding to the pre-processed standard model and the corresponding real-time best image in the real-time model according to the threshold requirement.

当公路标识的实时图像信息的首序列与实时GPS信息的首序列匹配时,则将与实时GPS定位信息首序列匹配的实时图像信息定义为关键帧图像,并进行保存,这些图像中定含有公路标识;同时将预处理标准模型中标准GPS定位信息的序列再一次进行对应存储,便实现了实时运行中定点GPS处含有公路标识的图像采集。When the first sequence of the real-time image information of the highway sign matches the first sequence of the real-time GPS information, the real-time image information matching the first sequence of the real-time GPS positioning information is defined as a key frame image and saved. These images must contain roads At the same time, the sequence of standard GPS positioning information in the pre-processing standard model is correspondingly stored again, so that the image acquisition containing road signs at fixed-point GPS locations in real-time operation is realized.

本实施例中,实现实时GPS信息与实时图像的一一匹配的流程图如图8所示。首先对于提取的公路标识实时图像以双序列形式逐帧进行标记,即形如:ij.jpg(i为14位的实时时间序列,j=1....5)。而对应的实时GPS信息以序列逐条标记为k.GSA.GSV(k为14位实时时间序列),其中GSA表示经度,GSV表示纬度。提取实时图像与实时GPS标记信息,对首字符进行匹配,如果匹配,则当前图片对应匹配后的GPS信息,从而实现了实时图像与实时GPS信息的配对。In this embodiment, a flow chart for realizing one-to-one matching of real-time GPS information and real-time images is shown in FIG. 8 . Firstly, the extracted real-time image of the road sign is marked frame by frame in the form of a double sequence, that is, the shape is as follows: ij.jpg (i is a 14-bit real-time time sequence, j=1...5). The corresponding real-time GPS information is marked as k.GSA.GSV (k is a 14-bit real-time time sequence) in sequence, where GSA represents longitude and GSV represents latitude. Extract the real-time image and real-time GPS tag information, and match the first character. If it matches, the current picture corresponds to the matched GPS information, thus realizing the pairing of real-time image and real-time GPS information.

在本实施例中,采用C语言实现图像双序列排序过程如下:In this embodiment, the process of sorting images in two sequences using C language is as follows:

本发明中实时GPS信息与实时图像实现匹配时:即i=g,则两者之间进行匹配,实现过程为:When real-time GPS information and real-time image realize matching among the present invention: promptly i=g, then carry out matching between the two, and realization process is:

ifstream in("5.txt");//读取含有经度信息的txt文档ifstream in("5.txt");//Read the txt file containing longitude information

string string;string string;

while(getline(in,string))//着行读取数据并存于string中,直至数据全部读取while(getline(in,string))//Read data in line and store in string until all data is read

char c1=string[0];//读取字符串string首字符char c1=string[0];//read the first character of the string string

int g=atoi(c1);//将首字符c1转成数字值int g=atoi(c1);//Convert the first character c1 into a digital value

If(i==g)//判断GPS首字符与图片名称首字符是否匹配。If(i==g)//Judge whether the first character of GPS matches the first character of the picture name.

上述实时采集后提取的实时最佳图像与预处理标准模型中的对应图像进行模式匹配的流程图如图9所示。本发明是通过实时采集后提取的实时最佳图像与预处理标准模型中的对应图像进行模式匹配后进行公路标识损坏类型的识别,因此如何确保两者之间的匹配也就尤为重要。The flow chart of pattern matching between the real-time optimal image extracted after the above-mentioned real-time acquisition and the corresponding image in the preprocessing standard model is shown in FIG. 9 . The present invention performs pattern matching on the extracted real-time optimal image after real-time acquisition and the corresponding image in the pre-processing standard model to identify the damage type of the road sign, so how to ensure the matching between the two is particularly important.

本发明在建立预处理标准模型和处理实时信息时,便分别对标准GPS定位信息、标准图像、实时GPS信息和实时图像分别进行了标记,其中标准图像与实时GPS信息对应一致,实时图像与实时GPS信息对应一致。因此当实时GPS信息与标准GPS定位信息匹配完成时,便可以实现实时GPS信息与标准图像的对应,而实时GPS信息与实时图像序列保持一致,从而可以实现实时提取的实时最佳图像与标准图像实现对应,为后续的模式识别提供基础。When the present invention establishes a preprocessing standard model and processes real-time information, it marks the standard GPS positioning information, standard image, real-time GPS information and real-time image respectively, wherein the standard image is consistent with the real-time GPS information, and the real-time image is consistent with the real-time The GPS information corresponds to the same. Therefore, when the real-time GPS information is matched with the standard GPS positioning information, the correspondence between the real-time GPS information and the standard image can be realized, and the real-time GPS information is consistent with the real-time image sequence, so that the real-time optimal image and the standard image can be extracted in real time Realize the correspondence and provide the basis for subsequent pattern recognition.

S1044,通过专家算法得出实时最佳公路标识损坏的具体分类,并存储。S1044. Obtain the specific classification of the real-time best road sign damage through expert algorithm, and store it.

步骤S103中得到的实时最佳图像与步骤S101中预处理标准模型的标准图像的序列标记一致,因此将序列标记一致的两者图像进行专家算法控制下的模式匹配,得到实际的识别结果,并进行分类存储。The real-time optimal image obtained in step S103 is consistent with the sequence label of the standard image of the preprocessed standard model in step S101, so the two images with the same sequence label are subjected to pattern matching under the control of the expert algorithm to obtain the actual recognition result, and Classified storage.

实时图像模式匹配下的图像识别流程图参见图12。实际的公路标识可能存在的损坏形式各种各样,在本实施例中,以点模式匹配为例进行说明。See Figure 12 for the flow chart of image recognition under real-time image pattern matching. The actual road signs may be damaged in various forms. In this embodiment, point pattern matching is used as an example for illustration.

矩形公路标识的标准角点为四个角点,首先借以SUSAN算法对标准公路标识的角点进行提取,建立标准模型;其次,提取处理后的实时最佳图像中提取实时图像的角点;然后,将两者经由点模式匹配训练,得出最终的匹配结果;如两者角点数和角点位置一致,则判定当前实时公路标识正常,如不一致则认定当前公路标识存在损坏部位,作为故障点,结合GPS位置,归类为不正常类别。本实施例中,具体实现方法如下。The standard corner points of the rectangular road sign are four corner points. First, the corner points of the standard road sign are extracted by SUSAN algorithm to establish a standard model; secondly, the corner points of the real-time image are extracted from the processed real-time best image; and then , the two are trained through point pattern matching to get the final matching result; if the number and position of the corner points of the two are consistent, it is determined that the current real-time road sign is normal; , combined with GPS location, classified as abnormal. In this embodiment, the specific implementation method is as follows.

srcImage=cvLoadImage("图片存储位置",1);//加载图片srcImage=cvLoadImage("image storage location", 1);//load image

grayImage=cvCreateImage(cvGetSize(srcImage),IPL_DEPTH_8U,1);grayImage = cvCreateImage(cvGetSize(srcImage), IPL_DEPTH_8U, 1);

//将原图灰度化// grayscale the original image

cvCvtColor(srcImage,grayImage,CV_BGR2GRAY);cvCvtColor(srcImage, grayImage, CV_BGR2GRAY);

//创建连个与原图大小相同的临时图像//Create a temporary image with the same size as the original image

corners1=cvCreateImage(cvGetSize(srcImage),IPL_DEPTH_32F,1);corners1 = cvCreateImage(cvGetSize(srcImage), IPL_DEPTH_32F, 1);

corners2=cvCreateImage(cvGetSize(srcImage),IPL_DEPTH_32F,1);corners2 = cvCreateImage(cvGetSize(srcImage), IPL_DEPTH_32F, 1);

//角点检测// corner detection

cvGoodFeaturesToTrack(grayImage,corners1,corners2,corners,cvGoodFeaturesToTrack(grayImage, corners1, corners2, corners,

&cornerCount,qualityLevel,minDistance,0);&cornerCount,qualityLevel,minDistance,0);

printf("num corners found:%d\n",cornerCount);printf("num corners found:%d\n", cornerCount);

//在原图中将角点标记出来//Mark the corner points in the original image

对标准图像经过上述算法计算后得出实际的公路标识边缘角点,对实时图像也可以同样得到实时的边缘角点,然后统计两者的角点数量,如果一致,则保留标准图像,判断公路标识为正常标识,如果角点数量不一致,则公路标识非正常。The actual road sign edge corners can be obtained after the calculation of the standard image by the above algorithm, and the real-time edge corner points can also be obtained for the real-time image, and then the number of corner points of the two is counted. If they are consistent, the standard image is retained and the road is judged. The identification is a normal identification, if the number of corner points is inconsistent, the road identification is abnormal.

S105.根据步骤S104获得的识别结果来判断是否需要维修,并根据反馈的维修结果来确定是否需要更新预处理标准模型中的标准图像;S105. Determine whether maintenance is required according to the recognition result obtained in step S104, and determine whether it is necessary to update the standard image in the pre-processing standard model according to the feedback maintenance result;

通过后台工作人员是否维修完成来判断原图像的更新与否,维修没有完成,则不处理,维修完成,则将当前维修后的完整图像用以更新预处理标准模型中的标准图像。Whether the original image is updated or not is judged by whether the maintenance is completed by the background staff. If the maintenance is not completed, no processing is performed. If the maintenance is completed, the current complete image after maintenance is used to update the standard image in the pre-processing standard model.

S106.建立数据库,对步骤S101~S104中的数据进行管理。S106. Establish a database to manage the data in steps S101-S104.

由于图像处理的数据量庞大,简单的存储不能满足人们对数据的需求,数据库的构建,为相关人员做出正确决策、为数据进行高效处理提供保证。Due to the huge amount of data in image processing, simple storage cannot meet people's needs for data. The construction of the database provides guarantees for relevant personnel to make correct decisions and efficiently process data.

本发明将采集信息及处理数据并入数据库进行管理,数据库导入信息包括:公路标识的标准图像、公路标识的标准GPS定位信息、公路标识的实时图像视频信息、公路标识的实时GPS信息、GPS与图像的匹配集成信息、专家算法计算得出的包含公路标识图像的最佳实时图像帧、元数据库(即用以训练生成分类器的标准图像库)、分类识别后存在障碍的公路资产图像集成信息等。The present invention integrates the collected information and processed data into the database for management. The information imported into the database includes: standard images of road signs, standard GPS positioning information of road signs, real-time image and video information of road signs, real-time GPS information of road signs, GPS and Image matching integration information, the best real-time image frame containing road sign images calculated by expert algorithms, metadata database (that is, the standard image library used to train and generate classifiers), and road asset image integration information with obstacles after classification and recognition Wait.

本发明中数据库的结构框图如图13所示,数据库包含元数据库、实时数据库、图像管理库、后台人员管理库以及时间管理库五个分库,各个分库的功能如下所述。The structural block diagram of the database in the present invention is shown in Figure 13. The database includes five sub-databases, namely meta database, real-time database, image management database, background personnel management database and time management database. The functions of each sub-database are as follows.

元数据库:存储有预处理标准模型中定点公路标识的标准图像的标记序列、存储位置、以及以二进制格式存储在数据库中的具体图像;标准GPS定位信息的标记序列以及对应的经度、纬度;每一条对应图像与GPS集成信息的生成时间等。Metadata base: store the tag sequence, storage location, and specific image stored in the database in binary format of the standard image of the fixed-point road sign in the preprocessing standard model; the tag sequence of the standard GPS positioning information and the corresponding longitude and latitude; One corresponding to the generation time of the image and GPS integration information, etc.

实时数据库:对实时模型中采集的视频段和周期GPS信息、处理后的关键视频帧及标记序列、采样的定位信息(经、纬度)及标记序列的管理,根据前文对关键帧及采样定位信息的提取可知,这两者之间能够实现很好的匹配直接关系到最终处理结果,因此实时模型的管理不容出错。Real-time database: manage the video segments and periodic GPS information collected in the real-time model, processed key video frames and marker sequences, sampled positioning information (longitude, latitude) and marker sequences, and key frames and sampled positioning information according to the previous article It can be seen from the extraction that a good match between the two is directly related to the final processing result, so the management of the real-time model cannot be wrong.

图像管理库:在预处理标准模型与实时模型中都有着图像的存在,在实时模型中的图像根据序列找到与之对应的预处理标准模型中的图像后,在专家算法的控制下,将会得到一个最终结果。本发明的图像管理功能便是根据识别结果来对图像库进行进一步的管理,识别结果正常,则预处理标准模型中的图像不进行处理,保留标准图像;如果非正常,则需要对预处理标准模型中的图像进行更新。而此更新又与维修与否挂钩,维修完成则对维修后的标牌进行图像提取,更新预处理图像,如果没有维修,则保持待定。Image management library: There are images in both the pre-processing standard model and the real-time model. After the images in the real-time model find the corresponding images in the pre-processing standard model according to the sequence, under the control of the expert algorithm, it will be get a final result. The image management function of the present invention is to further manage the image library according to the recognition result. If the recognition result is normal, the image in the preprocessing standard model will not be processed, and the standard image will be reserved; The images in the model are updated. And this update is linked to whether it is repaired or not. After the repair is completed, the image will be extracted from the repaired sign, and the pre-processed image will be updated. If there is no repair, it will remain pending.

后台工作人员管理库。后台工作人员包括:预处理标准模型采集人员、实时巡检人员、统计故障点及故障类型的统计及联系维修的中间过渡人员、维修人员、根据维修人员反馈结果认定维修结果的核对人员。对非正常标识经由维修人员维修后,对维修结果进行确定,并对完成维修的非正常标识进行标记,从而确定对预处理标准模型中的标准图像进行更新,以保证元数据库的实时跟进。A background worker manages the library. The background staff includes: pre-processing standard model collection personnel, real-time inspection personnel, statistics of fault points and fault types and intermediate transition personnel for contact maintenance, maintenance personnel, and check personnel for confirming maintenance results based on the feedback results of maintenance personnel. After the abnormal signs are repaired by the maintenance personnel, the maintenance results are determined, and the abnormal signs that have been repaired are marked, so as to determine the update of the standard image in the pre-processing standard model to ensure the real-time follow-up of the metadata database.

时间管理库:由于公路标牌的正常与否严重关系到人们的人身、财产安全,因此时间也就是工作的效率特别重要。时间包括:预处理标准模型建立时间、实时巡检时间、结果鉴定时间、维修人员联系时间以及维修完成时间等。在本发明中实时巡检时间可以根据经验设定巡检周期,从而设定巡检日期,到期如果没有及时巡检可以提出警示;对维修完成时间可以限定期限,逾期则处以一定处罚。Time management library: Since the normality of road signs is seriously related to people's personal and property safety, time is particularly important for work efficiency. The time includes: preprocessing standard model establishment time, real-time inspection time, result identification time, maintenance personnel contact time and maintenance completion time, etc. In the present invention, the real-time inspection time can be set according to the inspection cycle based on experience, thereby setting the inspection date, and a warning can be given if the inspection is not timely when it expires; the time limit for maintenance completion can be limited, and a certain penalty will be imposed if it is overdue.

S107.设计上位机控制模块界面,以直观的方式将数据进行显示,实现人们对公路标识监管的实际需求,体现本发明的人性化与智能化。S107. Design the interface of the upper computer control module, display the data in an intuitive manner, realize people's actual needs for highway sign supervision, and embody the humanization and intelligence of the present invention.

本发明中,上位机控制模块与数据库通过串口之间的硬件连接及通信协议的制定,保证存储的数据可以准确上传至上位机控制模块交互界面,为人们的查询、报表打印等提供便利。In the present invention, the hardware connection between the upper computer control module and the database and the formulation of the communication protocol through the serial port ensure that the stored data can be accurately uploaded to the upper computer control module interaction interface, which provides convenience for people's query and report printing.

本实施例中上位机控制模块界面参照图如图14所示,可以将公路标识的实时图像、实时GPS信息以及图像实际分类结果进行显示,方便工作人员对照信息对公路资产进行相关维护。The interface reference diagram of the host computer control module in this embodiment is shown in Figure 14, which can display real-time images of road signs, real-time GPS information, and actual image classification results, so that staff can compare information to maintain road assets.

Claims (10)

1.一种公路标识的监管方法,其特征在于具体包括以下步骤:1. A method for supervising highway signs, characterized in that it specifically comprises the following steps: S101.建立公路标识的预处理标准模型;S101. Establishing a preprocessing standard model of road signs; S102.获取公路标识的实时信息,并建立实时模型;S102. Acquiring real-time information of highway signs, and building a real-time model; S103.通过专家算法获取步骤S102采集到的实时信息中公路标识的实时最佳图像;S103. Obtain the best real-time image of the road sign in the real-time information collected in step S102 through an expert algorithm; S104.对步骤S103中得到的实时最佳图像与步骤S101中预处理标准模型的标准图像通过序列搜索进行匹配,通过专家算法得出实际公路标识损坏的具体分类,并存储;S104. The real-time optimal image obtained in step S103 is matched with the standard image of the preprocessed standard model in step S101 through sequence search, and the specific classification of actual road sign damage is obtained by expert algorithm, and stored; S105.根据识别结果来判断是否需要维修,并根据反馈的维修结果来确定是否需要更新预处理标准模型中的标准图像;S105. Determine whether maintenance is required according to the recognition result, and determine whether the standard image in the pre-processing standard model needs to be updated according to the feedback maintenance result; S106.建立数据库,对步骤S101~S104中的数据进行管理;S106. Establish a database to manage the data in steps S101 to S104; S107.设计上位机界面,以直观的方式将数据进行显示,实现人们对公路标识监管的实际需求。S107. Design the host computer interface, display the data in an intuitive way, and realize people's actual needs for highway sign supervision. 2.根据权利要求1所述的一种公路标识的监管方法,其特征在于步骤S101具体包括以下内容:2. A method for supervising highway signs according to claim 1, characterized in that step S101 specifically includes the following: S1011.确定摄像头型号,并根据公路标识的高度位置计算,在巡检车上的合适位置安装摄像头;S1011. Determine the camera model, and calculate according to the height position of the road sign, and install the camera at a suitable position on the inspection vehicle; S1012.采集公路标识的标准图像;S1012. Collecting standard images of road signs; S1013.采集公路标识的标准GPS定位信息;S1013. Collect standard GPS positioning information of road signs; S1014.根据步骤S1012和S1013采集的结果,通过标注单序列方式建立预处理标准模型;所述单序列标记方式为对同步采集的标准图像与GPS信息根据采集顺序逐次标记。S1014. According to the results collected in steps S1012 and S1013, establish a preprocessing standard model by marking a single sequence; the single sequence marking method is to mark the synchronously collected standard images and GPS information sequentially according to the collection order. 3.根据权利要求1所述的一种公路标识的监管方法,其特征在于步骤S102具体包括以下内容:3. A method for supervising highway signs according to claim 1, characterized in that step S102 specifically includes the following: S1021.采用相机的视频模式获取公路标识的实时图像信息;S1021. Obtain real-time image information of road signs by using the video mode of the camera; S1022.对公路标识进行实时GPS定位,获得公路标识的实时GPS信息;S1022. Carry out real-time GPS positioning on the road signs, and obtain real-time GPS information of the road signs; S1023.将实时GPS信息与相应的实时图像进行匹配,并通过标注双序列方式建立实时模型;所述双序列标记方式为以实时信息的采集时间为序列标记实时GPS信息;对根据一定采样频率采集的实时图像首先以实时时间为序进行首序列标记,其次对具有同一实时时间序号的多帧实时图像按照采样顺序再进行次序列标记。S1023. Match the real-time GPS information with the corresponding real-time image, and establish a real-time model by marking the double-sequence method; the double-sequence marking method is to mark the real-time GPS information with the collection time of the real-time information as a sequence; collect according to a certain sampling frequency The real-time images of the real-time images are firstly marked in the order of real-time time, and then the multi-frame real-time images with the same real-time time sequence number are marked in the second sequence according to the sampling order. 4.根据权利要求3所述的一种公路标识的监管方法,其特征在于步骤S1023具体包括以下内容:4. A method for supervising highway signs according to claim 3, characterized in that step S1023 specifically includes the following: 首先,对公路标识的实时GPS信息逐条进行采集,并进行序列标记;Firstly, collect the real-time GPS information of road signs one by one and mark them sequentially; 其次,计算公路标识实时图像信息的采样频率,并对采样图像进行双序列标记;Secondly, calculate the sampling frequency of the real-time image information of the road sign, and perform double-sequence marking on the sampled image; 然后,判断公路标识的实时图像信息和实时GPS信息的首序列是否匹配,如匹配,则建立实时模型。Then, it is judged whether the real-time image information of the highway sign matches the first sequence of the real-time GPS information, and if they match, a real-time model is established. 5.根据权利要求1所述的一种公路标识的监管方法,其特征在于步骤S103具体包括以下内容:5. A method for supervising highway signs according to claim 1, characterized in that step S103 specifically includes the following: S1031.图像进行初步处理;S1031. Preliminary image processing; S1032.挑选含有公路标识的实时最佳图像。S1032. Select the best real-time image containing road signs. 6.根据权利要求5所述的一种公路标识的监管方法,其特征在于:步骤S1031中采用专家算法对图像进行初步处理,处理内容包括对S102中采集到的图像进行的初步去噪、滤波、还原、倾斜矫正、运动模糊消除的处理步骤。6. A method for supervising highway signs according to claim 5, characterized in that: in step S1031, an expert algorithm is used to perform preliminary processing on the image, and the processing content includes preliminary denoising and filtering of the image collected in S102 , restoration, tilt correction, motion blur removal processing steps. 7.根据权利要求5所述的一种公路标识的监管方法,其特征在于步骤S1032具体包括以下内容:7. A method for supervising highway signs according to claim 5, characterized in that step S1032 specifically includes the following: 首先,对实时图像经过初步处理后获得的n帧图像进行检测;First, detect n frames of images obtained after preliminary processing of real-time images; 其次,根据公路标识颜色的特殊性,将RGB转换为HSV颜色空间;Secondly, convert RGB to HSV color space according to the particularity of road sign color; 然后,通过HSV颜色空间来判定当前图像中是否含有特殊颜色;Then, use the HSV color space to determine whether the current image contains a special color; 再次,通过颜色区域对图像进行进一步分割;Again, the image is further segmented by the color region; 最后,比较不同图像之间的分割区域大小,选取分割区域最大的作为实时最佳图像。Finally, compare the size of the segmented regions between different images, and select the one with the largest segmented region as the real-time best image. 8.根据权利要求1所述的一种公路标识的监管方法,其特征在于步骤S104具体包括以下内容:8. A method for supervising highway signs according to claim 1, characterized in that step S104 specifically includes the following: S1041,计算阈值,使实时GPS信息与标准GPS经纬信息进行匹配;S1041, calculating a threshold to match the real-time GPS information with the standard GPS latitude and longitude information; S1042,保存在阈值范围内的实时GPS信息,并保存与之匹配的预处理标准模型的GPS单序列与实时模型中的GPS双序列;S1042, saving the real-time GPS information within the threshold range, and saving the matched GPS single sequence of the preprocessing standard model and the GPS double sequence in the real-time model; S1043,根据阈值要求,将匹配的实时GPS信息再与预处理标准模型对应的标准图像以及实时模型中对应的实时最佳图像进行匹配;S1043, according to the threshold requirement, match the matched real-time GPS information with the standard image corresponding to the pre-processing standard model and the corresponding real-time best image in the real-time model; S1044,通过专家算法得出实时最佳公路标识损坏的具体分类,并存储。S1044. Obtain the specific classification of the real-time best road sign damage through expert algorithm, and store it. 9.一种公路标识的监管系统,其特征在于:该系统包括9. A supervision system for highway signs, characterized in that: the system includes 图像采集模块101,用于对公路标识进行图像采集;An image collection module 101, configured to collect images of road signs; GPS信息采集模块102,用于对公路标识的GPS定位信息进行采集;GPS information collection module 102, used for collecting the GPS positioning information of road signs; 预处理标准模型与实时模型建立模块103,用于通过图像采集模块101、GPS信息采集模块102对定点公路标识的标准图像信息以及标准GPS经纬信息分别进行同步单序列标记,并建立预处理标准模型;所述单序列标记方式为对同步采集的标准图像与GPS信息根据采集顺序逐次标记;The preprocessing standard model and real-time model building module 103 are used to carry out synchronous single-sequence marking on the standard image information of fixed-point road signs and the standard GPS longitude and latitude information through the image collection module 101 and the GPS information collection module 102, and establish a preprocessing standard model ; The single-sequence marking method is to mark the synchronously collected standard images and GPS information successively according to the collection order; 通过图像采集模块101、GPS信息采集模块102对公路标识的实时GPS信息和实时图像进行采集,提取公路标识的实时GPS信息以及实时GPS信息对应的图像信息,通过图像采样及双序列标记,建立实时模型;所述双序列标记方式为以实时信息的采集时间为序列标记实时GPS信息;对根据一定采样频率采集的实时图像首先以实时时间为序进行首序列标记,其次对具有同一实时时间序号的多帧实时图像按照采样顺序再进行次序列标记;Collect real-time GPS information and real-time images of highway signs through image acquisition module 101 and GPS information acquisition module 102, extract real-time GPS information of highway signs and image information corresponding to real-time GPS information, and establish real-time model; the double-sequence marking method is to mark the real-time GPS information with the collection time of real-time information as a sequence; to the real-time images collected according to a certain sampling frequency, the first sequence is marked in order of real-time time; Multi-frame real-time images are marked sequentially according to the sampling order; 两模型匹配模块104,对预处理标准模型与实时模型建立模块103中的实时信息通过序列匹配及阈值删选提取关键图像,将选取的关键图像通过参数计算和专家算法控制,对定点GPS对应的含有公路标识的关键图像进行处理,并通过处理从中得出实时最佳图像;The two-model matching module 104 extracts key images through sequence matching and threshold value deletion for the real-time information in the preprocessing standard model and real-time model building module 103, and controls the selected key images through parameter calculation and expert algorithm. Process the key images containing road signs, and obtain the best real-time images through processing; 图像处理与识别模块105,通过两模型匹配模块104中得出的含有公路标识的实时最佳图像和预处理标准模型与实时模型建立模块103中统计的标准图像信息进行模式匹配,通过专家算法匹配训练,得出实际匹配后的公路标识的损坏类型,并进行分类存储;The image processing and recognition module 105 performs pattern matching on the real-time optimal image containing road signs obtained in the two model matching modules 104 and the preprocessing standard model and the statistical standard image information in the real-time model building module 103, and is matched by an expert algorithm. Training to obtain the damage type of the road sign after the actual matching, and classify and store it; 数据库模块106,用于对系统中的数据信息进行有序、有效的监管,建立数据库机制;The database module 106 is used to carry out orderly and effective supervision on the data information in the system, and establish a database mechanism; 上位机控制模块107,与数据库模块中数据库进行链接,直观显示处理后的数据。The upper computer control module 107 is linked with the database in the database module to visually display the processed data. 10.根据权利要求9所述的一种公路标识的监管系统,其特征在于:所述上位机控制模块显示的信息主要包括定点公路标识的GPS经纬度信息、定点公路标识的图像、图像识别后的具体类别、公路标识的损坏状态信息以及维修是否完成的标识信息。10. The supervision system of a road sign according to claim 9, characterized in that: the information displayed by the host computer control module mainly includes the GPS latitude and longitude information of the fixed-point road sign, the image of the fixed-point road sign, and the image after image recognition. The specific category, information on the damage status of road signs, and information on whether repairs are complete.
CN201510176310.3A 2015-04-15 2015-04-15 The monitoring and managing method and system of a kind of way mark Active CN104766086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510176310.3A CN104766086B (en) 2015-04-15 2015-04-15 The monitoring and managing method and system of a kind of way mark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510176310.3A CN104766086B (en) 2015-04-15 2015-04-15 The monitoring and managing method and system of a kind of way mark

Publications (2)

Publication Number Publication Date
CN104766086A CN104766086A (en) 2015-07-08
CN104766086B true CN104766086B (en) 2017-08-25

Family

ID=53647900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510176310.3A Active CN104766086B (en) 2015-04-15 2015-04-15 The monitoring and managing method and system of a kind of way mark

Country Status (1)

Country Link
CN (1) CN104766086B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI736245B (en) 2020-05-04 2021-08-11 覺華工程科技股份有限公司 Artificial intelligence road inspection and detection system

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105375392B (en) * 2015-12-04 2017-10-24 中国南方电网有限责任公司超高压输电公司检修试验中心 A kind of helicopter power line inspection implementation method and realize system
CN105807682A (en) * 2016-03-07 2016-07-27 福建亿通软件有限公司 Intelligent place name sign board, place name sign board monitoring system and place name sign board daily maintenance method
CN106127169A (en) * 2016-06-28 2016-11-16 广州地铁集团有限公司 Train running information analyzes system and method
CN107357894B (en) * 2017-07-13 2020-06-02 杭州智诚惠通科技有限公司 Road traffic facility data acquisition and correction method and system
CN109426822B (en) * 2017-08-25 2022-03-11 无锡市明大交通科技咨询有限公司 Traffic facility checking system and checking method thereof
CN107590511A (en) * 2017-08-30 2018-01-16 武汉华星光电技术有限公司 A kind of defect identification method and identifying system the defects of for automatic check machine
CN108460465A (en) * 2017-12-29 2018-08-28 福建工程学院 A kind of method of rapid-maintenance road
CN108803312B (en) * 2018-04-19 2021-07-09 西安交通大学 A Novel Road Damage Detection System
CN109033199A (en) * 2018-06-29 2018-12-18 珠海爱路达信息科技有限公司 Patrol video synchronous playing and intelligent comparison method and device
CN109639966B (en) * 2018-12-11 2021-02-26 四川睿盈源科技有限责任公司 Vehicle-mounted control method based on highway asset supervision
CN109782364B (en) * 2018-12-26 2021-08-24 华设设计集团股份有限公司 Traffic sign board missing detection method based on machine vision
CN110006897A (en) * 2019-03-15 2019-07-12 上海电气集团股份有限公司 A kind of flow battery system monitoring device and application method
CN110188889A (en) * 2019-04-28 2019-08-30 温州市兴海市政建设有限公司 A kind of urban road surfaces maintenance management system based on preventative maintenance
CN112926371B (en) * 2019-12-06 2023-11-03 中国移动通信集团设计院有限公司 Road survey methods and systems
CN111652940B (en) * 2020-04-30 2024-06-04 平安国际智慧城市科技股份有限公司 Target abnormality recognition method, target abnormality recognition device, electronic equipment and storage medium
CN113033493B (en) * 2021-04-27 2025-06-27 腾讯科技(深圳)有限公司 Target inspection method, device, electronic equipment and storage medium
CN113936278B (en) * 2021-09-30 2025-08-15 杭州飞步科技有限公司 Wear determination method, device and equipment for positioning mark
CN116203877A (en) * 2023-02-09 2023-06-02 南通大学 BIM and Internet of things-based management information system and implementation method thereof
CN117475388A (en) * 2023-12-08 2024-01-30 江苏天空智慧城市运营有限公司 Road sign line detection method and detection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458871A (en) * 2008-12-25 2009-06-17 北京中星微电子有限公司 Intelligent traffic analysis system and application system thereof
CN102853821A (en) * 2012-08-31 2013-01-02 浙江中是科技有限公司 Ship GPS positioning and checking method and ship GPS interactive system
CN103699108A (en) * 2014-01-03 2014-04-02 中天新能源农业科技投资有限公司 Motor vehicle real-time monitoring system based on OBD technology
US8989914B1 (en) * 2011-12-19 2015-03-24 Lytx, Inc. Driver identification based on driving maneuver signature

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8818695B2 (en) * 2009-02-23 2014-08-26 Hti Ip, L.L.C. Method for reporting traffic conditions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458871A (en) * 2008-12-25 2009-06-17 北京中星微电子有限公司 Intelligent traffic analysis system and application system thereof
US8989914B1 (en) * 2011-12-19 2015-03-24 Lytx, Inc. Driver identification based on driving maneuver signature
CN102853821A (en) * 2012-08-31 2013-01-02 浙江中是科技有限公司 Ship GPS positioning and checking method and ship GPS interactive system
CN103699108A (en) * 2014-01-03 2014-04-02 中天新能源农业科技投资有限公司 Motor vehicle real-time monitoring system based on OBD technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于GPS数据的城市交通分析系统的研究与实现;郑哲;《中国优秀硕士学位论文全文数据库 工程科技||辑》;20150115(第1期);C034-347 *
基于区间数群决策矩阵的专家权重确定方法及其算法实现;陈晓红等;《系统工程与电子技术》;20101031;第32卷(第10期);第2128-2131页 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI736245B (en) 2020-05-04 2021-08-11 覺華工程科技股份有限公司 Artificial intelligence road inspection and detection system

Also Published As

Publication number Publication date
CN104766086A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104766086B (en) The monitoring and managing method and system of a kind of way mark
CN102867417B (en) Taxi anti-forgery system and taxi anti-forgery method
CN110660222B (en) Intelligent environment-friendly electronic snapshot system for black-smoke road vehicle
CN103186982B (en) Intelligent access system for public security
CN110717433A (en) A traffic violation analysis method and device based on deep learning
CN109782364B (en) Traffic sign board missing detection method based on machine vision
CN102708378B (en) Method for diagnosing fault of intelligent traffic capturing equipment based on image abnormal characteristic
CN116824859B (en) Intelligent traffic big data analysis system based on Internet of things
CN109887343B (en) Automatic acquisition and monitoring system and method for flight ground service support nodes
CN110197203A (en) Crack Classification and Recognition Method of Bridge Pavement Based on Width Learning Neural Network
CN103640595B (en) A kind of railway protective hurdle net automatic detection system and failure evaluation method
CN105654732A (en) Road monitoring system and method based on depth image
CN102426785B (en) Traffic flow information perception method and system based on contour and local feature points
CN105046966A (en) System and method for automatically detecting illegal parking behaviors in drop-off areas
CN112633722A (en) Vehicle-mounted road safety risk assessment system and method
CN105046948A (en) System and method of monitoring illegal traffic parking in yellow grid line area
CN113903008A (en) Ramp exit vehicle violation identification method based on deep learning and trajectory tracking
CN103076007A (en) Side parking detecting system and method
CN104834932A (en) Matlab algorithm of automobile license plate identification
CN116682268A (en) Portable urban road vehicle violation inspection system and method based on machine vision
CN204856897U (en) It is detection device violating regulations in abscission zone territory that motor vehicle stops promptly
CN117746649A (en) Tunnel traffic flow detection system and method based on YOLOv8 algorithm
CN113177508B (en) Method, device and equipment for processing driving information
CN204884166U (en) Regional violating regulations parking monitoring devices is stopped to traffic taboo
CN106548627A (en) A kind of RFID sensing road monitoring systems based on car networking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20150708

Assignee: Changsha Chaolei Intelligent Technology Co.,Ltd.

Assignor: HUNAN NORMAL University

Contract record no.: X2023980033667

Denomination of invention: A Supervision Method and System for Highway Signs

Granted publication date: 20170825

License type: Common License

Record date: 20230316