[go: up one dir, main page]

CN110781896B - Track garbage identification method, cleaning method, system and resource allocation method - Google Patents

Track garbage identification method, cleaning method, system and resource allocation method Download PDF

Info

Publication number
CN110781896B
CN110781896B CN201910989410.6A CN201910989410A CN110781896B CN 110781896 B CN110781896 B CN 110781896B CN 201910989410 A CN201910989410 A CN 201910989410A CN 110781896 B CN110781896 B CN 110781896B
Authority
CN
China
Prior art keywords
garbage
cleaning
image
track
orbital
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
CN201910989410.6A
Other languages
Chinese (zh)
Other versions
CN110781896A (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.)
Jinan University
Original Assignee
Jinan 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 Jinan University filed Critical Jinan University
Priority to CN201910989410.6A priority Critical patent/CN110781896B/en
Publication of CN110781896A publication Critical patent/CN110781896A/en
Application granted granted Critical
Publication of CN110781896B publication Critical patent/CN110781896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • EFIXED CONSTRUCTIONS
    • E01CONSTRUCTION OF ROADS, RAILWAYS, OR BRIDGES
    • E01HSTREET CLEANING; CLEANING OF PERMANENT WAYS; CLEANING BEACHES; DISPERSING OR PREVENTING FOG IN GENERAL CLEANING STREET OR RAILWAY FURNITURE OR TUNNEL WALLS
    • E01H8/00Removing undesirable matter from the permanent way of railways; Removing undesirable matter from tramway rails
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种轨道垃圾识别方法、清洁方法、系统、资源配置方法,所述轨道垃圾识别方法,包括步骤:获取轨道视频流;逐帧分解视频流,并对每帧图像进行预处理以过滤图像噪声,所述预处理包括Cohen‑Sutherland裁剪,将预处理后的图像输入已训练的垃圾识别模型,图像样本特征提取、多尺度预测、边界框预测以识别垃圾;通过多标签分类将识别的垃圾分类;通过非极大值抑制去掉多次检测到的同一垃圾的边界框。本发明通过Cohen‑Sutherland裁剪对图像进行简化,只保留两侧轨道之间的图像信息,移除环境因素对图像的影响,并进一步图像检测度,提高图像检测性能。

Figure 201910989410

The invention discloses a track garbage identification method, cleaning method, system and resource allocation method. The track garbage identification method includes the steps of: acquiring a track video stream; decomposing the video stream frame by frame, and preprocessing each frame of images to Filtering image noise, the preprocessing includes Cohen-Sutherland cropping, inputting the preprocessed image into a trained garbage identification model, image sample feature extraction, multi-scale prediction, and bounding box prediction to identify garbage; garbage classification; remove bounding boxes of the same garbage detected multiple times through non-maximum suppression. The invention simplifies the image through Cohen-Sutherland cropping, only retains the image information between the two sides of the track, removes the influence of environmental factors on the image, further improves the image detection degree, and improves the image detection performance.

Figure 201910989410

Description

一种轨道垃圾识别方法、清洁方法、系统、资源配置方法A track garbage identification method, cleaning method, system, and resource allocation method

技术领域technical field

本发明涉及垃圾识别处理领域,特别涉及一种轨道垃圾识别方法、清洁方法、系统、资源配置方法。The invention relates to the field of garbage identification and treatment, in particular to a track garbage identification method, a cleaning method, a system and a resource allocation method.

背景技术Background technique

目前国内有关现代有轨电车轨道清洁技术和设备研究都处在起步阶段,对于现代有轨电车的轨道清洁主要以人工清洁方式为主,但该方式耗时耗力,效率低,扬尘污染较为严重。时瑞达公司申请的实用新型专利(CN204875654U)与德高洁公司申请的实用新型专利(CN204875656U)所述方案基本相似,国内有轨电车轨道清洁车仍处于人工通过显示屏来控制清洁工具完成动作、并全程开机对轨道进行清扫的阶段,清洁车价格昂贵且无法达到自动化程度。同时由于人工判断时无法准确判断垃圾位置,清洁范围、误差率加大,即耗费清洁资源且无法达到更高效率的清洁。At present, the domestic research on modern tram track cleaning technology and equipment is still in its infancy. For modern tram track cleaning, manual cleaning is the main method, but this method is time-consuming, labor-intensive, low in efficiency, and has serious dust pollution. . The utility model patent (CN204875654U) applied by Shiruida Company is basically similar to the utility model patent (CN204875656U) applied by Degaojie Company. And in the stage of cleaning the track when the whole process is turned on, the cleaning car is expensive and cannot achieve the degree of automation. At the same time, due to the inability to accurately determine the location of garbage during manual judgment, the cleaning range and error rate increase, which means that cleaning resources are consumed and higher efficiency cleaning cannot be achieved.

现在市面上所研制的有轨电车槽型轨道垃圾清洁车,并没有自动检测垃圾的功能,而是需要人工观看屏幕来获取垃圾情况,相较于机器检测,人工处理非常容易因为长时间观看视频造成视觉疲劳进而遗漏掉视频图像中所携带的信息,导致垃圾未清理或是误清理。而如今国内的槽型轨垃圾检测系统多处于起步阶段,目前相对成熟一些的是由中国发明专利CN 104047248A提出的复合式轨道路面自动清洁车,其采用的视觉检测技术是根据垃圾与轨道的色差来检测垃圾位置,然而此方法限制条件是垃圾与轨道的色差梯度必须过大,且因计算量大导致检测速度较慢。The tram trough-type track garbage cleaning vehicles currently developed on the market do not have the function of automatically detecting garbage, but need to manually watch the screen to obtain the garbage situation. Compared with machine detection, manual processing is very easy because of watching videos for a long time. It causes visual fatigue and misses the information carried in the video image, resulting in garbage not being cleaned up or by mistake. Nowadays, most of the domestic trough rail garbage detection systems are in their infancy. At present, the relatively mature one is the composite track road automatic cleaning vehicle proposed by the Chinese invention patent CN 104047248A. The visual detection technology adopted is based on the color difference between the garbage and the track. However, the limitation of this method is that the color difference gradient between the garbage and the track must be too large, and the detection speed is slow due to the large amount of calculation.

垃圾检测相较于普通物体检测的一大难点在于垃圾的定义范围非常广,如在城市路面场景中,塑料袋、水瓶、纸屑、甚至沙石都是垃圾。虽然他们都属于垃圾,但在颜色、纹理、几何形态上的差别非常大,跨越不同的物体类别。Compared with ordinary object detection, a major difficulty in garbage detection is that the definition of garbage is very wide. For example, in urban road scenes, plastic bags, water bottles, paper scraps, and even sand and gravel are garbage. Although they are all garbage, they are very different in color, texture, geometry, and across different object classes.

而传统的图像识别方法提取的特征在代表性和鲁棒性方面都有欠缺,在光照、遮挡、尺度等变化因素的影响下检测精度会大大降低;二是由于视频图像往往受到各种自然环境或人为噪声的干扰,导致程序无法显著清晰地从视频图像中获取运动目标。The features extracted by traditional image recognition methods are lacking in representativeness and robustness, and the detection accuracy will be greatly reduced under the influence of changing factors such as illumination, occlusion, and scale. Second, because video images are often affected by various natural environments Or the interference of man-made noise, which makes the program unable to obtain the moving target from the video image clearly and clearly.

因此,需要提供一种基于深度学习的有轨电车槽型轨道垃圾精准清洁方法,通过对槽型轨垃圾的定位和识别,调用搭载在清洁车上的不同的清洁工具,提高现代有轨电车槽型轨道清洁效率,同时节约清洁资源和人力资源,有效降低现代有轨电车安全事故隐患,保障有轨电车运行安全,令槽型轨清洁车向自动化程度更高的方向发展,促进有轨电车在我国广大城市的推广与发展。Therefore, it is necessary to provide a method for accurate cleaning of tram trough-shaped track garbage based on deep learning. By locating and identifying the trough-shaped track garbage, different cleaning tools mounted on the cleaning vehicle are called to improve the modern tram trough. It can improve the cleaning efficiency of trough rails, save cleaning resources and human resources, effectively reduce the hidden danger of modern tram safety accidents, ensure the safe operation of trams, make trough rail cleaning vehicles develop towards a higher degree of automation, and promote the development of trams in the future. The promotion and development of vast cities in my country.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的缺点与不足,提供一种轨道垃圾识别方法、清洁方法、系统、资源配置方法,此方法及系统通过对轨道垃圾精准识别后驱动清洁系统完成清洁工作,提高清洁效率。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to provide a method for identifying rail waste, a cleaning method, a system, and a method for resource allocation. The method and system drive the cleaning system to complete the cleaning work by accurately identifying the rail waste and improve the cleaning efficiency.

本发明的目的通过以下的技术方案实现:The object of the present invention is achieved through the following technical solutions:

一种轨道垃圾识别方法,包括步骤:A method for identifying orbital garbage, comprising the steps of:

获取轨道视频流;Get the track video stream;

逐帧分解视频流,并对每帧图像进行预处理以过滤图像噪声,所述预处理包括Cohen-Sutherland裁剪,将预处理后的图像输入已训练的垃圾识别模型,图像样本特征提取、多尺度预测、边界框预测以识别垃圾;The video stream is decomposed frame by frame, and each frame of image is preprocessed to filter image noise. The preprocessing includes Cohen-Sutherland cropping, the preprocessed image is input into the trained garbage recognition model, image sample feature extraction, multi-scale Prediction, bounding box prediction to identify garbage;

通过多标签分类将识别的垃圾分类;Sort the identified garbage through multi-label classification;

通过非极大值抑制去掉多次检测到的同一垃圾的边界框。The bounding boxes of the same garbage detected multiple times are removed by non-maximum suppression.

一种轨道垃圾清洁方法,在通过上述轨道垃圾识别方法识别到垃圾后,驱动清洁系统完成清洁工作。A method for cleaning orbital garbage, after the garbage is identified by the above-mentioned method for identifying orbital garbage, the cleaning system is driven to complete the cleaning work.

一种轨道垃圾清洁系统,包括:An orbital trash cleaning system comprising:

清洁模块,为清洁车,用于获取控制指令完成清洁工作;The cleaning module is a cleaning vehicle, which is used to obtain control instructions to complete the cleaning work;

清洁控制模块,与轨道垃圾清洁系统其它模块数据连接并控制其他模块运行,包括MFC程序指令输入单元与物理指令输入单元。The cleaning control module is connected with other modules of the track garbage cleaning system and controls the operation of other modules, including the MFC program command input unit and the physical command input unit.

一种轨道垃圾清洁资源配置方法,包括如下步骤:A method for allocating orbital garbage cleaning resources, comprising the following steps:

将一段轨道等分为若干段,每段等分为若干个采点Divide a track into several segments, and each segment is equally divided into several points

xij(i=1,2,...,n,j=1,2,...,m);x ij (i=1,2,...,n,j=1,2,...,m);

Figure BDA0002237761310000031
Figure BDA0002237761310000031

当清洁车以固定速度由轨道起点出发时,重置计数系数count=1,计时器开始工作;When the cleaning vehicle starts from the starting point of the track at a fixed speed, reset the count coefficient count=1, and the timer starts to work;

定义识别系数flag:Define the identification coefficient flag:

Figure BDA0002237761310000032
Figure BDA0002237761310000032

清洁车行进期间,若识别到垃圾,则flag=1,记录此时位置坐标ycount1During the traveling of the cleaning vehicle, if garbage is identified, then flag=1, and record the position coordinate y count1 at this time;

继续行进,若无识别到垃圾,则flag=0,记录此时位置坐标ycount0,count加1;Continue to move, if no garbage is identified, then flag=0, record the position coordinate y count0 at this time, and add 1 to count;

统计一天中各段轨道的垃圾出现位置;Count the location of garbage in each track of the day;

持续记录每天数据,以若干天的数据来统计各段轨道的各个采样点出现的概率均值,根据季节以及概率均值分配清洁资源。Continuously record daily data, use several days of data to count the probability mean of each sampling point of each segment of the track, and allocate cleaning resources according to the season and the probability mean.

本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1、本发明轨道垃圾识别方法通过Cohen-Sutherland裁剪对图像进行简化,只保留两侧轨道之间的图像信息,移除环境因素对图像的影响,并进一步图像检测速度,提高图像检测性能。1. The track garbage identification method of the present invention simplifies the image through Cohen-Sutherland cropping, only retains the image information between the two tracks, removes the influence of environmental factors on the image, further improves the image detection speed, and improves the image detection performance.

2、本发明轨道垃圾清洁方法通过对轨道垃圾精准识别后驱动清洁系统完成清洁工作,提高清洁效率。2. The track garbage cleaning method of the present invention drives the cleaning system to complete the cleaning work after accurately identifying the track garbage, thereby improving the cleaning efficiency.

3、本发明轨道垃圾清洁系统将物理控制面板与MFC程序指令输入单元分开,避免控制程序之间的冲突。3. The track garbage cleaning system of the present invention separates the physical control panel from the MFC program instruction input unit to avoid conflicts between control programs.

4、本发明通过对清洁资源的合理配置,节约优先的清洁资源。4. The present invention saves priority cleaning resources through rational allocation of cleaning resources.

附图说明Description of drawings

图1是Cohen-Sutherland裁剪算法原理示意图;Figure 1 is a schematic diagram of the principle of the Cohen-Sutherland clipping algorithm;

图2是本发明实施例1利用Cohen-Sutherland裁剪算法预处理示意图;Fig. 2 is the schematic diagram of utilizing Cohen-Sutherland clipping algorithm preprocessing in embodiment 1 of the present invention;

图3是本发明实施例1多尺度预测模块结构示意图;3 is a schematic structural diagram of a multi-scale prediction module in Embodiment 1 of the present invention;

图4是本发明实施例1YOLOv3改进的网络结构图;Fig. 4 is the network structure diagram of embodiment 1 YOLOv3 improvement of the present invention;

图5是本发明实施例1边界框预测示意图;5 is a schematic diagram of bounding box prediction in Embodiment 1 of the present invention;

图6是本发明实施例2主体图;6 is a main body diagram of Embodiment 2 of the present invention;

图7是本发明实施例3轨道垃圾清洁系统工作流程图;Fig. 7 is the working flow chart of the orbital garbage cleaning system according to the third embodiment of the present invention;

图8是本发明实施例4轨道垃圾清洁资源配置方法流程图。FIG. 8 is a flow chart of a method for allocating resources for cleaning wastes on a track according to Embodiment 4 of the present invention.

具体实施方式Detailed ways

为了更好的理解本发明的技术方案,下面结合附图详细描述本发明提供的实施例,但本发明的实施方式不限于此。In order to better understand the technical solutions of the present invention, the embodiments provided by the present invention are described in detail below with reference to the accompanying drawings, but the embodiments of the present invention are not limited thereto.

首先,本发明实施例基于下述原理:First, the embodiments of the present invention are based on the following principles:

(1)Cohen-Sutherland裁剪算法(1) Cohen-Sutherland clipping algorithm

把所采集的图像近似为线段的集合,对单根线段而言,如果完全在边界内,保留线段;如果完全在边界外,舍弃线段;如果一部分线段在边界内,一部分线段在边界外,则保留边界内的部分线段。Approximate the collected image as a set of line segments. For a single line segment, if it is completely within the boundary, keep the line segment; if it is completely outside the boundary, discard the line segment; if some line segments are within the boundary and some are outside the boundary, then Part of the line segment within the boundary is preserved.

通常来说,为使计算机能够快速判断一条直线段与窗口属何种关系,采用如下编码方法:Generally speaking, in order to enable the computer to quickly determine the relationship between a straight line segment and the window, the following coding method is used:

延长窗口的边,将二维平面分成九个区域。如图1所示,以单根线段P1P2为例,中间区域的线段部分保留,即保留P3P4Extend the sides of the window, dividing the 2D plane into nine regions. As shown in FIG. 1 , taking a single line segment P 1 P 2 as an example, the line segment in the middle area is partially reserved, that is, P 3 P 4 is reserved.

(2)YOLOv3特征提取(2) YOLOv3 feature extraction

YOLO是一个全新的方法,把一整张图片一下子应用到一个神经网络中去。网络把图片分成不同的区域,然后给出每个区域的边框预测和概率,并依据概率大小对所有边框分配权重。最后,设置阈值,只输出得分(概率值)超过阈值的检测结果,YOLOv3是YOLO最新版本。YOLO is a brand new method that applies an entire image to a neural network at once. The network divides the image into different regions, then gives the bounding box prediction and probability of each region, and assigns weights to all bounding boxes according to the probability. Finally, set the threshold, and only output the detection results whose score (probability value) exceeds the threshold. YOLOv3 is the latest version of YOLO.

(3)多标签分类(3) Multi-label classification

多标签分类意味着候选集是一个多分类,而不仅仅是二分类——是与否的问题,而是属于多类中哪一类的问题。一个样本属于且只属于多个分类中的一个,一个样本只能属于一个类,不同类之间是互斥的。而对于多标签分类而言,一个样本的标签不仅仅局限于一个类别,可以具有多个类别,不同类之间是有关联的。比如一件衣服,其具有的特征类别有长袖、蕾丝等属性等,这两个属性标签不是互斥的,而是有关联的。Multi-label classification means that the candidate set is a multi-class, not just a binary classification - a question of yes or no, but a question of which of the multiple classes it belongs to. A sample belongs to and only belongs to one of multiple categories, a sample can only belong to one category, and different categories are mutually exclusive. For multi-label classification, the label of a sample is not limited to one category, but can have multiple categories, and different categories are related. For example, a piece of clothing has attributes such as long sleeves and lace. These two attribute tags are not mutually exclusive, but related.

(4)非极sigmoid激活函数(4) Nonpolar sigmoid activation function

sigmoid激活函数一般用来做二分类,假设总共有10个分类,它首先将一个真值转换到[0,1]之间,分别为[0.01,0.05,0.4,0.6,0.3,0.1,0.5,0.4,0.06,0.8],然后设置一个概率阈值,如果大于一个概率阈值(一般是0.5),则认为属于某个类别,否则不属于某个类别。这一属性使得其适合应用于多标签分类之中,本质上其实就是针对logits中每个分类计算的结果分别作用一个sigmoid分类器,分别判定样本是否属于某个类别同样假设,神经网络模型最后的输出是这样一个向量logits=[1,2,3,4,5,6,7,8,9,10],就是神经网络最终的全连接的输出。The sigmoid activation function is generally used for two classifications. Assuming that there are 10 classifications in total, it first converts a true value between [0, 1], which are [0.01, 0.05, 0.4, 0.6, 0.3, 0.1, 0.5, 0.4, 0.06, 0.8], and then set a probability threshold, if it is greater than a probability threshold (usually 0.5), it is considered to belong to a certain category, otherwise it does not belong to a certain category. This property makes it suitable for use in multi-label classification. In essence, it is actually a sigmoid classifier for the results of each classification calculation in logits to determine whether the sample belongs to a certain category. It is also assumed that the final neural network model The output is such a vector logits=[1,2,3,4,5,6,7,8,9,10], which is the final fully connected output of the neural network.

(4)非极大值抑制(NMS)(4) Non-maximum suppression (NMS)

由于探测器会多次检测到同一物体(中心和大小略有不同),而多数情况下只需要少量像素不同的检测,所以需要通过非极大值抑制(NMS)作为后处理算法解决对同一个图像的多次检测的问题。Since the detector will detect the same object multiple times (with slightly different centers and sizes), and in most cases only a small number of pixels with different detections are required, it is necessary to use non-maximum suppression (NMS) as a post-processing algorithm to solve the problem of the same object. The problem of multiple detection of images.

(5)softmax激活函数(5) softmax activation function

Figure BDA0002237761310000061
Figure BDA0002237761310000061

其中,z表示类别神经元;j表示类别中的元素序号;zj表示z类别的第j个元素输出;σ(z)j表示z种神经元的多元输出;zk为z类别的第k个元素输出,k∈[1,K],K表示类别中总共的符号数。Among them, z represents the category neuron; j represents the element number in the category; z j represents the jth element output of the z category; σ(z) j represents the multivariate output of the z category neuron; z k is the kth category of the z category. element output, k ∈ [1, K], where K represents the total number of symbols in the category.

softmax函数用于多分类神经网络输出,即某个zj大于其它z,则此映射的分量逼近于1,其余逼近于0,主要应用于多分类。取指数的原因一是模拟max的行为,二是需要一个可导的函数。The softmax function is used for multi-classification neural network output, that is, if one z j is larger than other z, the component of this map is approximated to 1, and the rest is approximated to 0. It is mainly used in multi-classification. The reason for taking the exponent is to simulate the behavior of max, and the second is to need a derivable function.

实施例1Example 1

一种轨道垃圾识别方法,包括步骤:A method for identifying orbital garbage, comprising the steps of:

S1、获取轨道视频流:通过安装在清洁车上的摄像头获取轨道视频流;S1. Get the track video stream: obtain the track video stream through the camera installed on the cleaning vehicle;

S2、逐帧分解视频流,并对每帧图像进行预处理以过滤图像噪声:所述预处理包括Cohen-Sutherland裁剪,如图2所示,以图像中的轨道为边界将图像分为三个区域,保留中间区域,以单根线段P1P2为例,中间区域的线段部分保留,即保留P3P4S2. Decompose the video stream frame by frame, and preprocess each frame of image to filter image noise: the preprocessing includes Cohen-Sutherland cropping, as shown in Figure 2, the image is divided into three parts with the track in the image as the boundary region, the middle region is reserved, taking a single line segment P 1 P 2 as an example, the line segment part of the middle region is reserved, that is, P 3 P 4 is reserved.

S3、将预处理后的图像输入已训练的垃圾识别模型,图像样本特征提取、多尺度预测、边界框预测以识别垃圾;S3. Input the preprocessed image into the trained garbage identification model, image sample feature extraction, multi-scale prediction, and bounding box prediction to identify garbage;

S4、通过多标签分类将识别的垃圾分类;S4, classify the identified garbage through multi-label classification;

S5、通过非极大值抑制去掉多次检测到的同一垃圾的边界框。S5. Remove the bounding box of the same garbage detected multiple times through non-maximum suppression.

进一步的,所述摄像头包括分别获取左轨和右轨的两组高速摄像头,两组摄像头获取轨道视频后合成为总线轨道视频流。Further, the camera includes two groups of high-speed cameras for obtaining the left track and the right track respectively, and the two groups of cameras obtain the track video and then synthesize it into a bus track video stream.

进一步的,所述对图像进行预处理还包括对图像灰度化、高斯滤波:Further, the preprocessing of the image also includes grayscale and Gaussian filtering of the image:

(1)灰度化:(1) Grayscale:

Pgray=0.11B+0.3R+0.59GP gray = 0.11B+0.3R+0.59G

其中,B代表的是原彩色图像中的蓝色分量的像素值,R代表的是红色分量的像素值,G代表彩色图像中绿色分量的像素值。Pgray为转换后的灰度图像。Among them, B represents the pixel value of the blue component in the original color image, R represents the pixel value of the red component, and G represents the pixel value of the green component in the color image. P gray is the converted grayscale image.

摄像头获取的图片为RGB彩色图像,综合对图像的RGB三个分量进行加权平均得到最终的灰度值;权重的设置参考生理学中人体视觉的特点,人眼对绿色的敏感最高,对蓝色敏感最低。因此对蓝色设定的权重最低,这种比例的组合能更突显出有轨电车轨道,标志线、垃圾等有用的图像信息。The image obtained by the camera is an RGB color image, and the final gray value is obtained by comprehensively weighting the three RGB components of the image; the weight setting refers to the characteristics of human vision in physiology. The human eye is most sensitive to green and sensitive to blue. lowest. Therefore, the weight of blue is set to be the lowest, and this combination of ratios can highlight useful image information such as tram tracks, marking lines, and garbage.

这样的图像保留了本质特征,减少了总信息量,降低了计算量。Such images retain essential features, reduce the total amount of information, and reduce the amount of computation.

(2)高斯滤波:(2) Gaussian filter:

原输入图像尺寸为416×416,为获取更多的横向特征,将图像尺寸改为576×320分辨率图像作为网络输入;The original input image size is 416×416. In order to obtain more horizontal features, the image size is changed to 576×320 resolution image as the network input;

Figure BDA0002237761310000071
Figure BDA0002237761310000071

其中,x表示坐标点的横坐标;y表示坐标点的纵坐标;σ2表示随机变量的方差;G(x,y)表示坐标点(x,y)出现的概率。Among them, x represents the abscissa of the coordinate point; y represents the ordinate of the coordinate point; σ 2 represents the variance of the random variable; G(x, y) represents the probability of the coordinate point (x, y).

受到光线、雾霾、机器本身等外界条件的影响,图像往往会出现很多噪声干扰,通过使用去噪技术可以较好的去除干扰信息,还原图像基本信息。Affected by external conditions such as light, haze, and the machine itself, images often have a lot of noise interference. By using denoising technology, the interference information can be better removed and the basic information of the image can be restored.

高斯滤波是一种线性平滑滤波器,能够有效的抑制噪声。高斯滤波是对整幅图像进行加权平均的一个过程。每一个像素点的值,都由其本身和邻域内的其他像素点值经过加权平均后得到。也就是说,使用一个模板(或称卷积、掩模)扫描图像中的每一个像素,用模板确定的邻域内像素的加权平均灰度值去替代模板中心像素点的值,高斯滤波器的模板系数,是随着距离模板中心的增大而系数减小,因此图像整体滤波后清晰程度变化不大。Gaussian filtering is a linear smoothing filter that can effectively suppress noise. Gaussian filtering is a process of weighted averaging of the entire image. The value of each pixel is weighted and averaged by itself and other pixels in the neighborhood. That is to say, a template (or convolution, mask) is used to scan each pixel in the image, and the weighted average gray value of the pixels in the neighborhood determined by the template is used to replace the value of the center pixel of the template. The template coefficient decreases as the distance from the template center increases, so the overall image clarity after filtering does not change much.

由于一段视频中分解出的图像中的垃圾的尺寸为不变值,垃圾的横向特征表达比纵向特征少,增加横向特征表达有助于垃圾识别。本发明实施例中采用改变网络模型输入的长宽比例,利用矩形输入网络提取更多的横向特征,考虑到尽量降低图像分辨率的改变对网络的影响,将原网络输入图像尺寸416×416改为576×320分辨率图像作为网络输入。一方面能够更精确地提取横向特征;另一方面二者具有相近的像素数,对检测实时性没有太大影响。Since the size of the garbage in the decomposed image in a video is a constant value, the horizontal feature expression of garbage is less than the vertical feature, and increasing the horizontal feature expression is helpful for garbage identification. In the embodiment of the present invention, the aspect ratio of the input of the network model is changed, the rectangular input network is used to extract more lateral features, and the original network input image size is changed to 416×416 in consideration of reducing the influence of the change of image resolution on the network as much as possible. A 576×320 resolution image is used as the network input. On the one hand, the lateral features can be extracted more accurately; on the other hand, the two have a similar number of pixels, which has little impact on the real-time detection.

进一步的,所述垃圾识别模型由以下步骤训练而得:Further, the garbage identification model is trained by the following steps:

S3.1、收集轨道垃圾图像样本;S3.1. Collect orbital garbage image samples;

S3.2、重复输入垃圾图像样本至YOLOv3网络结构,通过图像样本特征提取、多尺度预测、边界框预测和训练过程,得到垃圾识别模型;S3.2. Repeatedly input garbage image samples to the YOLOv3 network structure, and obtain a garbage identification model through image sample feature extraction, multi-scale prediction, bounding box prediction and training process;

所述YOLOv3网络结构采用全卷积结构,包括用于特征提取的特征提取模块、用于多尺度预测的多尺度预测模块、用于边界框预测的边界框预测模块,YOLOv3网络结构图如图4所示,该结构使用一系列的3*3和1*1卷积核的卷积层;The YOLOv3 network structure adopts a full convolution structure, including a feature extraction module for feature extraction, a multi-scale prediction module for multi-scale prediction, and a bounding box prediction module for bounding box prediction. The YOLOv3 network structure diagram is shown in Figure 4 As shown, the structure uses a series of convolutional layers with 3*3 and 1*1 convolution kernels;

所述特征提取模块的具有相同特征图大小和相同个数的卷积核的残差网络层之间设置快捷链路(shortcut connections);这种Res(残差网络residual network)结构可以很好的控制梯度的传播,避免出现梯度消失或者爆炸等不利于训练的情形。所学习的特征会被传递到分类器/回归器用于进行边界框的坐标、类别标签等预测。Shortcut connections are set between the residual network layers of the feature extraction module with the same feature map size and the same number of convolution kernels; this Res (residual network residual network) structure can be very good Control the propagation of gradients to avoid situations such as gradient disappearance or explosion that are not conducive to training. The learned features are passed to the classifier/regressor for prediction of bounding box coordinates, class labels, etc.

所述多尺度预测模块包括依次排列三层卷积层,如图3所示,三层卷积层可从上至下依次排列,将中间卷积层再分为第一部分和第二部分,压缩第一部分的网络压缩成较浅的(低层次的)网络(如图3所示的排列方式时,第一部分和第二部分为上下排列,第一部分为卷积层上半部分,第二部分为卷积层下半部分),将第二部分网络间权重小于设定值的连接截断,获得稀疏连接的网络并重新训练,使用权重共享量化连接的权重,再对量化后的权重和码本采用预测编码和游程编码结合的编码方式进行压缩;所述权重共享量化本质在于先通过聚类方法得到该层权重的聚类中心,然后通过聚类中心值来表示原权重值;所述预测编码是根据数据的统计特性得到预测值,然后传输图像像素与其预测值的差值信号,使传输的码率降低,达到压缩的目的;所述游程编码是一种存储一个像素值及其具有相同颜色的像素数目的编码方式。将上述两种编码方式结合可进一步提高压缩率;The multi-scale prediction module includes arranging three convolution layers in sequence. As shown in Figure 3, the three convolution layers can be arranged in order from top to bottom, and the middle convolution layer is subdivided into a first part and a second part. The first part of the network is compressed into a shallower (low-level) network (in the arrangement shown in Figure 3, the first part and the second part are arranged up and down, the first part is the upper half of the convolutional layer, and the second part is The lower half of the convolutional layer), truncate the connection between the second part of the network whose weight is less than the set value, obtain a sparsely connected network and retrain it, use the weight to share the weight of the quantized connection, and then use the quantized weight and codebook. The coding method combining predictive coding and run-length coding is used for compression; the essence of the weight sharing quantization is to first obtain the cluster center of the weight of the layer through the clustering method, and then use the cluster center value to represent the original weight value; the predictive coding is The predicted value is obtained according to the statistical characteristics of the data, and then the difference signal between the image pixel and its predicted value is transmitted, so as to reduce the transmission code rate and achieve the purpose of compression; The encoding of the number of pixels. Combining the above two encoding methods can further improve the compression rate;

在卷积神经网络中,更多的卷积层与更深的网络结构往往对目标特征有更好的提取效果。但另一方面,在网络加深的同时,额外的卷积层会造成网络模型参数过多,从而增加网络的运算量。与此同时,在物体检测领域,深层网络虽然能响应语义特征,但是含有的几何信息并不多,不利于物体检测;浅层网络虽然包含比较多的几何信息,但是图像的语义特征并不多,不利于图像的分类,因此,采用三个尺度(13*13、26*26、52*52)融合的方式做预测,加强了改进的YOLO算法对小目标检测的精确度。In convolutional neural networks, more convolutional layers and deeper network structures tend to have better extraction effects on target features. But on the other hand, when the network is deepened, the additional convolutional layers will cause too many network model parameters, thus increasing the computational load of the network. At the same time, in the field of object detection, although the deep network can respond to semantic features, it does not contain much geometric information, which is not conducive to object detection; although the shallow network contains more geometric information, there are not many semantic features of the image. , which is not conducive to the classification of images. Therefore, three scales (13*13, 26*26, 52*52) are used to make predictions, which enhances the accuracy of the improved YOLO algorithm for small target detection.

进一步的,如图5所示,所述边界框预测模块的anchor boxes通过聚类的方法得到,对每个bounding box预测四个坐标值(tx,ty,tw,th),将每幅图像划分为S×S个网格cell,对于预测的cell,结合bounding box的宽pw和高ph可以对bounding box进行预测;Further, as shown in Figure 5, the anchor boxes of the bounding box prediction module are obtained by clustering, and four coordinate values (t x , t y , t w , th ) are predicted for each bounding box, and the Each image is divided into S×S grid cells. For the predicted cell, the bounding box can be predicted by combining the width p w and height p h of the bounding box;

bx=σ(tx)+cx b x =σ(t x )+c x

by=σ(ty)+cy b y =σ(t y )+ cy

Figure BDA0002237761310000091
Figure BDA0002237761310000091

Figure BDA0002237761310000092
Figure BDA0002237761310000092

在训练bounding box几个坐标值的时候采用了sum of squared error loss(平方和距离误差损失),这种方式的误差可以很快的计算出来,增大检测效率。YOLOv3对每个bounding box通过逻辑回归预测一个物体的得分,若所预测bounding box与真实的边框值的重合部分大于其他所有预测的bounding box,设定其值为1。如果重合部分没有达到预设的阈值(这里设定的阈值是0.5),那么这个预测的bounding box将会被忽略,也即显示成没有损失值。When training several coordinate values of the bounding box, the sum of squared error loss (sum of squared distance error loss) is used. The error of this method can be quickly calculated and the detection efficiency is increased. YOLOv3 predicts the score of an object through logistic regression for each bounding box. If the overlap between the predicted bounding box and the actual bounding box value is greater than all other predicted bounding boxes, set its value to 1. If the overlapping part does not reach the preset threshold (the threshold set here is 0.5), then the predicted bounding box will be ignored, that is, there is no loss value.

进一步的,所述通过多标签分类将识别的垃圾分类的具体步骤为:Further, the specific steps for classifying the identified garbage through multi-label classification are:

通过softmax激活函数把一个k维的真值矢量(a1,a2,a3,…)映射成一个(b1,b2,b3,…),其中bi是一个0~1的常数,输出神经元之和为1.0,相当于概率值,根据bi的概率大小来进行多分类的任务;softmax激活函数主要用于计算交叉熵,将logits转换成一个概率分布后再来计算,然后取概率分布中最大的作为最终的分类结果;softmax的输入为图像特征值,输出为垃圾属于每个类别的概率。A k-dimensional ground truth vector (a1, a2, a3, ...) is mapped to a (b1, b2, b3, ...) through the softmax activation function, where bi is a constant from 0 to 1, and the sum of the output neurons is 1.0, equivalent to the probability value, the multi-classification task is carried out according to the probability of bi; the softmax activation function is mainly used to calculate the cross entropy, convert the logits into a probability distribution and then calculate, and then take the largest probability distribution as the final. Classification results; the input of softmax is the image feature value, and the output is the probability that the garbage belongs to each category.

激活函数给神经元引入了非线性因素,使得神经网络可以任意逼近任何非线性函数,这样神经网络就可以应用到众多的非线性模型中。The activation function introduces nonlinear factors to the neurons, so that the neural network can approximate any nonlinear function arbitrarily, so that the neural network can be applied to many nonlinear models.

进一步的,由于探测器会多次检测到同一物体(中心和大小略有不同),而多数情况下只需要少量像素不同的检测,所述去掉多次检测到的同一垃圾的边界框的步骤为:Further, since the detector will detect the same object (slightly different in center and size) multiple times, and in most cases only a small number of different pixels are required for detection, the step of removing the bounding box of the same garbage detected multiple times is as follows: :

初始化,设定检测阈值;Initialize, set detection threshold;

根据目标垃圾的objectness分数过滤边界框;分数低于设定阈值的边界框会被忽略;Filter bounding boxes based on the objectness score of the target garbage; bounding boxes with scores lower than the set threshold will be ignored;

根据候选框的类别分类概率做排序,然后根据以下步骤保留所需边界框:Sort the candidate boxes according to the class classification probability, and then keep the required bounding boxes according to the following steps:

标记需要保留的最大概率边界框;Mark the maximum probability bounding box that needs to be preserved;

从最大概率矩形框开始,分别判断其他概率矩形框与最大概率边界框的重叠度IOU是否大于设定的阈值,扔掉重叠度超过阈值的矩形框;Starting from the maximum probability rectangle, determine whether the overlap IOU of other probability rectangles and the maximum probability bounding box is greater than the set threshold, and discard the rectangle whose overlap exceeds the threshold;

从未扔掉的边界框中,选择最大概率边界框,标记为要保留下来的边界框,然后判断此时最大概率边界框与其他边界框的重叠度,扔掉重叠度超过设定阈值的边界框;In the bounding box that has never been thrown away, select the bounding box with the maximum probability, mark it as the bounding box to be retained, and then judge the overlap between the bounding box with the maximum probability and other bounding boxes at this time, and throw away the boundary whose overlap exceeds the set threshold. frame;

重复上述操作,直到去除所有剩下的边界框,标记完所有要保留下来的边界框。Repeat the above operation until all remaining bounding boxes are removed and all bounding boxes to be kept are marked.

据轨道周边的实际情况将垃圾图像大致分为了六大类:第一类是树叶,第二类是饮料,第三类是塑料袋,第四类是食物残渣(香蕉皮),第五类是食物残渣(苹果核),第六类是烟头。采集的图像经过旋转,裁剪,颜色转化来扩充样本集,数据样本集总共有4068张图片,涉及六个类别。According to the actual situation around the track, the garbage images are roughly divided into six categories: the first category is leaves, the second category is beverages, the third category is plastic bags, the fourth category is food residues (banana peels), and the fifth category is Food scraps (apple cores), the sixth category is cigarette butts. The collected images are rotated, cropped, and color converted to expand the sample set. The data sample set has a total of 4068 images, involving six categories.

当迭代次数小于1000时,每100次保存一次,大于1000时,每5000次保存一次。When the number of iterations is less than 1000, it is saved every 100 times, and when it is greater than 1000, it is saved every 5000 times.

通过改进的YOLOv3算法训练出来的模型能极大地提高垃圾检测和分类的速度,使得调用所需清洁工具时更加迅速,通讯更加高效。The model trained by the improved YOLOv3 algorithm can greatly improve the speed of garbage detection and classification, making the invocation of the required cleaning tools faster and the communication more efficient.

实施例2Example 2

一种轨道垃圾清洁方法,在通过所述权利要求1-5任一项所述的轨道垃圾识别方法识别到垃圾后,驱动清洁系统完成清洁工作。A method for cleaning rail garbage, after the garbage is identified by the method for identifying rail garbage according to any one of claims 1-5, a cleaning system is driven to complete the cleaning work.

进一步的,所述驱动指令通过操作员物理指令或指令库调用获取。Further, the drive instruction is obtained through an operator physical instruction or an instruction library call.

实施例3Example 3

一种轨道垃圾清洁系统,包括:An orbital trash cleaning system comprising:

清洁模块,为清洁车,用于获取控制指令完成清洁工作;The cleaning module is a cleaning vehicle, which is used to obtain control instructions to complete the cleaning work;

清洁控制模块,与轨道垃圾清洁系统其它模块数据连接并控制其他模块运行,包括MFC程序指令输入单元与物理指令输入单元;The cleaning control module is connected with other modules of the orbital garbage cleaning system and controls the operation of other modules, including the MFC program command input unit and the physical command input unit;

具体而言,所述清洁控制模块包括:Specifically, the cleaning control module includes:

(1)PLC程序设计模块(1) PLC programming module

本发明实施例中清洁车的下位机PLC梯形图程序主要被分为三大部分来编写的,分别为通讯程序、主程序(物理按键程序)、触摸屏虚拟按键程序。In the embodiment of the present invention, the PLC ladder diagram program of the lower computer of the cleaning vehicle is mainly divided into three parts to write, namely the communication program, the main program (physical button program), and the touch screen virtual button program.

1.通讯程序设计模块1. Communication programming module

本发明实施例中工业触屏工控机作为上位机,PLC作为下位机,因此PLC是从站,PLC作为从站时,通讯程序的编程方法及步骤如下:In the embodiment of the present invention, the industrial touch screen industrial computer is used as the upper computer, and the PLC is used as the lower computer. Therefore, when the PLC is a slave station, and the PLC is used as a slave station, the programming method and steps of the communication program are as follows:

1)在首次扫描中,对相关的通信参数进行严格的设置;1) Strictly set relevant communication parameters in the first scan;

2)在首次扫描中,连接“接收完成中断”与“发送消息中断”;2) In the first scan, connect "receive complete interruption" and "send message interruption";

3)开启接收指令RCV,等待主站的发送请求;3) Turn on the receiving command RCV and wait for the sending request from the master station;

4)在接收完成中断程序中,判断接收数据是否正确,如果正确判断请求指令,则组织相应的数据到缓冲区里,调用发送指令XMT;如果不正确,重新调用接收指令RCV;4) In the receiving completion interrupt program, judge whether the received data is correct, if the request command is judged correctly, organize the corresponding data into the buffer, and call the sending command XMT; if it is not correct, call the receiving command RCV again;

5)发送完成中断程序中,调用RCV接收指令。5) In the sending completion interrupt program, call RCV to receive the instruction.

通讯参数设置程序中采用无奇偶校验,每个字符8个数据位,通讯波特率为9600bps,自由口通讯协议,通过端口port0传输。No parity is used in the communication parameter setting program, each character has 8 data bits, the communication baud rate is 9600bps, and the free port communication protocol is transmitted through the port port0.

2.物理按键主程序设计模块2. Physical button main programming module

主程序的设计中通过输入信号I0.0与I0.1来选择手动模式或自动模式,同时这两个网络采用起保停电路并实现了相互间的自锁,即松开输入信号,输出信号仍保持。同时利用停止开关I2.0的上升沿开关在激活复位指令时,将所有输出信号(除高压水回水信号)、中间继电器和输入寄存器复位。另外,自动模式与手动模式下通过物理按键来触发上升沿与下降沿来实现各个部件的开关动作。In the design of the main program, the manual mode or the automatic mode is selected by inputting the signals I0.0 and I0.1. At the same time, the two networks use a start-stop circuit and realize mutual self-locking, that is, release the input signal and output the signal. still remain. At the same time, when the reset command is activated by the rising edge switch of the stop switch I2.0, all output signals (except the high-pressure water return signal), the intermediate relay and the input register are reset. In addition, in the automatic mode and the manual mode, the physical buttons are used to trigger the rising edge and the falling edge to realize the switching action of each component.

3.触摸屏虚拟键程序设计模块3. Touch screen virtual key programming module

触摸屏程序是在物理按键主程序的基础上改变输入区而来。为了防止物理控制面板与触摸屏之间出现控制冲突,需要将两者严格区分开来,本发明实施例中的触摸屏按键程序只需将主程序的外部输入I区的输入点另外设定即可。The touch screen program is based on the physical button main program to change the input area. In order to prevent control conflicts between the physical control panel and the touch screen, it is necessary to strictly distinguish the two. The touch screen key program in the embodiment of the present invention only needs to set the input point of the external input area I of the main program separately.

(2)工控机触摸屏程序设计模块(2) IPC touch screen programming module

触摸屏程序采用Visual Studio平台进行开发,通过建立一个MFC工程来完成编程工作。MFC(Microsoft Foundation Classes)是微软基础类库的简称,是微软公司实现的一个C++类库,主要封装了大部分的windows API函数,能大量的减少程序的开发周期。The touch screen program is developed using the Visual Studio platform, and the programming work is completed by establishing an MFC project. MFC (Microsoft Foundation Classes) is the abbreviation of Microsoft Foundation Class Library. It is a C++ class library implemented by Microsoft. It mainly encapsulates most of the windows API functions, which can greatly reduce the development cycle of the program.

触摸屏程序的工作原理大致如下,当使用工控机上的MFC程序进行输入时,用户可根据需要在工控机的触摸屏上按下控制按钮,控制清洁工具启动或者关闭,当按下按钮,MFC程序将利用支持以字节为单位动态建立数组的CByteArray类串联控制信号后,再使用MSCOMM控件下的信息发送函数,将组合好的控制信息发送给PLC并执行操作。The working principle of the touch screen program is roughly as follows. When using the MFC program on the industrial computer for input, the user can press the control button on the touch screen of the industrial computer to control the cleaning tool to start or close. When the button is pressed, the MFC program will use the After the serial control signal of CByteArray class that supports dynamic establishment of an array in bytes, the information sending function under the MSCOMM control is used to send the combined control information to the PLC and execute the operation.

由于上位机与下位机之间的编程语言不同,无法直接被通信识别,为了保证数据传输的正确性与完整性,程序中还设置了循环冗余校验算法(CRC),上位机应按通讯协议的格式发送数据指令。循环冗余校验是一种根据网络数据包或计算机文件等数据产生简短固定位数校验码的一种散列函数,主要用来校验数据传输或保存后可能会出现的差错。任何一个由二进制位串构成的数据代码都能与一个系数为‘0’或‘1’的多项式进行逐一对应,利用这个性质,MFC发送的二进制位串控制信息可以计算出CRC校验码,并随控制信息一同发往PLC,PLC接收到控制信息后,再次计算CRC校验码,仅当PLC利用梯形图计算出的CRC校验码和上位机发送来的校验码一致时,才认为该控制信息有效,随后将数据存储到数据缓存区中,并开始执行相应的操作。Due to the different programming languages between the upper computer and the lower computer, they cannot be directly identified by communication. In order to ensure the correctness and integrity of data transmission, a Cyclic Redundancy Check (CRC) algorithm is also set in the program. The format of the protocol sends data commands. Cyclic redundancy check is a hash function that generates a short fixed-digit check code based on data such as network packets or computer files. It is mainly used to check errors that may occur after data transmission or storage. Any data code composed of a binary bit string can correspond to a polynomial with a coefficient of '0' or '1' one by one. Using this property, the binary bit string control information sent by MFC can calculate the CRC check code, and It is sent to the PLC together with the control information. After the PLC receives the control information, it calculates the CRC check code again. Only when the CRC check code calculated by the PLC using the ladder diagram is consistent with the check code sent by the upper computer, it is considered that the CRC check code is the same. The control information is valid, then the data is stored in the data buffer and the corresponding operation is started.

用户在界面上向PLC发送的信号使用由I10.0开始的一段连续的内置输入触点,这些触点不占用外置输入触点,也不可以由外部物理输入,以保证MFC程序与物理按键的独立性。物理输入面板控制子系统仅在紧急情况下使用。The signal sent by the user to the PLC on the interface uses a continuous built-in input contact starting from I10.0. These contacts do not occupy the external input contact, nor can they be input by external physical, so as to ensure the MFC program and physical keys independence. The physical input panel control subsystem is for emergency use only.

在工控机上打开MFC程序后,按照预先设定的程序逻辑,先打开串口通过RS485与PLC进行串口通讯,根据Modbus协议,自拟定通讯协议,同时RS485将接在PLC的0端口,可对PLC采用自由口编程,以适应定义的通讯协议。After opening the MFC program on the industrial computer, according to the preset program logic, first open the serial port to communicate with the PLC through RS485. According to the Modbus protocol, the communication protocol is customized. At the same time, the RS485 will be connected to the 0 port of the PLC, which can be used for the PLC. Freeport programming to accommodate defined communication protocols.

通讯通道搭建完成后,首先发送模式选择信息,用户可以选择自动或手动模式,选择模式后,MFC程序将向PLC发送一系列控制信息,该控制信息表示启动自动模式。After the communication channel is set up, the mode selection information is sent first. The user can choose the automatic or manual mode. After selecting the mode, the MFC program will send a series of control information to the PLC. The control information indicates that the automatic mode is activated.

利用CRC校验码的性质,MFC发送的二进制位串控制信息可以计算出CRC校验码,并随控制信息一同发往PLC,PLC接收到控制信息后,再次计算CRC校验码,仅当PLC利用梯形图计算出的CRC校验码和工控机发送来的校验码相同时,才认为该控制信息有效,随后将数据存储到数据缓存区中,并开始执行相应的操作。Using the nature of the CRC check code, the binary bit string control information sent by the MFC can calculate the CRC check code, and send it to the PLC together with the control information. After the PLC receives the control information, it calculates the CRC check code again. Only when the PLC When the CRC check code calculated by the ladder diagram is the same as the check code sent by the industrial computer, the control information is considered valid, and then the data is stored in the data buffer area, and the corresponding operation is started.

当PLC接收控制信息并进行了CRC校验确定该信息有效后,将该数据串存放至数据寄存区,PLC在读取数据时采用开关量,直接读取已存在数据寄存区的数据位,并根据数据位为置位或复位决定对应的内置输入触点为置位或复位,随后交由梯形图逻辑判断,再刷新输出触点,此外,模式选择信息将打开中间继电器,如果没有发送模式选择信息,即未选择模式的情况下,所有对清洁装置的操作将视为无效。When the PLC receives the control information and performs a CRC check to determine that the information is valid, it stores the data string in the data storage area. When the PLC reads the data, the switch value is used to directly read the data bits that already exist in the data storage area, and According to whether the data bit is set or reset, the corresponding built-in input contact is set or reset, and then it is judged by the ladder logic, and then the output contact is refreshed. In addition, the mode selection information will open the intermediate relay, if there is no mode selection information, that is, when no mode is selected, all operations on the cleaning device will be considered invalid.

当MFC程序发送完与手动、自动模式所相关的信息后,若清洁车工作在自动模式,MFC程序将自动打开摄像头,并将摄像头采集到的图像交予槽型轨垃圾精准检测与定位算法进行图像处理,在槽型轨垃圾精准检测与定位算法处理后,会标识出垃圾所在位置与大小,并在识别到垃圾后立即向PLC发送控制信号,自动启动高压水枪等清洁装置进行清洁,直至在监控界面检测不到垃圾后,才会再次向PLC发送控制信号,关闭高压水枪等清洁装置。若清洁车工作在手动模式,用户可以自行打开摄像头,同样的,槽型轨垃圾精准检测与定位算法也会标识出垃圾所在位置与大小,用户按下对应的控制按钮,操控清洁装置进行清洁,若需要清洁第三轨,用户也可以打开前扫盘旋转、前扫盘降尘、第三轨吸口降尘对第三轨进行清洁。After the MFC program has sent the information related to the manual and automatic modes, if the cleaning vehicle is working in the automatic mode, the MFC program will automatically turn on the camera, and hand over the images collected by the camera to the trough rail garbage accurate detection and positioning algorithm. Image processing, after the accurate detection and positioning algorithm of the trough rail garbage, the location and size of the garbage will be identified, and a control signal will be sent to the PLC immediately after the garbage is identified, and the cleaning devices such as high-pressure water guns will be automatically activated for cleaning. When the monitoring interface cannot detect garbage, it will send a control signal to the PLC again to turn off cleaning devices such as high-pressure water guns. If the cleaning truck works in manual mode, the user can turn on the camera by himself. Similarly, the precise detection and positioning algorithm of the trough rail garbage will also identify the location and size of the garbage. The user presses the corresponding control button to control the cleaning device to clean. If the third rail needs to be cleaned, the user can also turn on the rotation of the front sweeping disc, the front sweeping disc for dust reduction, and the third rail suction port for dust reduction to clean the third rail.

当PLC接收到MFC程序发送的模式信息等控制信息时,将通过内部载入的梯形图进行逻辑判断,使对应的外置输出触点接通或者断开,PLC具有很强的带负载能力,可以直接驱动一般的电磁阀和交流接触器,当外置输出触点接通时,电隔膜泵、电磁阀、电磁离合器等控制器得电,当继电器吸合时电磁阀得电,当继电器不吸合时电磁阀失电,进而驱动液动执行器和电动执行器使相应的清洁装置进行工作。When the PLC receives the control information such as mode information sent by the MFC program, it will make a logical judgment through the internally loaded ladder diagram to make the corresponding external output contact on or off. The PLC has a strong load capacity. It can directly drive the general solenoid valve and AC contactor. When the external output contact is turned on, the electric diaphragm pump, solenoid valve, electromagnetic clutch and other controllers are energized. When the relay is pulled in, the solenoid valve is energized. When pulling in, the solenoid valve loses power, and then drives the hydraulic actuator and the electric actuator to make the corresponding cleaning device work.

进一步的,所述清洁模块的清洁车的车头底部设有吸尘口,清洁车的车厢中装有清水箱与污水箱;Further, the bottom of the front of the cleaning vehicle of the cleaning module is provided with a dust suction port, and a clean water tank and a sewage tank are installed in the compartment of the cleaning vehicle;

所述轨道垃圾清洁系统还包括:The orbital trash cleaning system also includes:

风压监测模块,本实施例选用风压传感器,设于吸尘口处,用于测量吸尘口处压力,只有当压力值足够大才能将槽型轨上的尘埃、落叶和泥沙等污垢清理干净,风压过大将造成不必要的电能损耗;水路监测模块,用于分别检测清水箱与污水箱的水位。The wind pressure monitoring module, in this embodiment, selects the wind pressure sensor, which is installed at the suction port to measure the pressure at the suction port. Only when the pressure value is large enough, can the dust, leaves, and sediment on the grooved rail be removed. Clean up, excessive wind pressure will cause unnecessary power loss; waterway monitoring module is used to detect the water level of the clean water tank and the sewage tank respectively.

进一步的,所述水路监测模块为液位变送器,安装在清水箱或污水箱侧面底部以便于维修更换,开孔位置与水管出水口处于同一平面。Further, the waterway monitoring module is a liquid level transmitter, which is installed at the bottom of the side of the clean water tank or the sewage tank for easy maintenance and replacement, and the opening position is on the same plane as the water outlet of the water pipe.

进一步的,所述轨道垃圾清洁系统还包括温度监测模块,具体为温度传感器,可选用DS18B20数字温度传感器,安装于空气流通的清洁车车头进风栅格处;所述清洁车装有喷雾器,安装于清洁车发动机水箱附近,当温度传感器所检测温度高于设定阈值,说明清洁车工作环境温度过高,则通过清洁控制模块开启喷雾器喷雾。Further, the rail garbage cleaning system also includes a temperature monitoring module, specifically a temperature sensor, and a DS18B20 digital temperature sensor can be selected, which is installed at the air inlet grille at the front of the air-circulating cleaning vehicle; the cleaning vehicle is equipped with a sprayer, which is installed Near the engine water tank of the cleaning vehicle, when the temperature detected by the temperature sensor is higher than the set threshold, indicating that the working environment temperature of the cleaning vehicle is too high, the sprayer will be turned on through the cleaning control module.

进一步的,所述轨道垃圾清洁系统通过发动机驱动,所述发动机由清洁控制模块控制Further, the rail garbage cleaning system is driven by an engine, and the engine is controlled by a cleaning control module

所述轨道垃圾清洁系统还包括液压模块,具体为机油压力传感器,用于测量机油压力,安装于发动机侧面的发动机主油道上,当低于某一规定值时,点亮机油压力警告灯。The rail garbage cleaning system also includes a hydraulic module, specifically an oil pressure sensor, which is used to measure the oil pressure and is installed on the engine main oil passage on the side of the engine. When the oil pressure is lower than a certain value, the oil pressure warning light is turned on.

具体包括液压泵、油缸、液压摆线马达,整个液压模块为这类开式单泵多执行元件的液压系统,通过所述清洁控制模块对机构进行控制与换向,包括完成扫盘的提升降落、扫盘的旋转、前导向清扫机构升降、后导向清扫机构升降、垃圾箱的倾翻、垃圾箱门的开闭、槽型轨清扫装置翻转这7部分动作。在本系统中可采用机油压力传感器测量机油压力,将机油压力传感器安装在发动机侧面的发动机主油道上,用于监测发动机润滑系统的供油压力,判断润滑系统工作是否正常,防止缺油导致发动机损坏。Specifically, it includes hydraulic pumps, oil cylinders, and hydraulic cycloid motors. The entire hydraulic module is an open-type single-pump multi-actuator hydraulic system. The cleaning control module controls and reverses the mechanism, including completing the lifting and lowering of the sweeping disc. , the rotation of the sweeping disc, the lifting and lowering of the front-guided cleaning mechanism, the lifting of the rear-guided cleaning mechanism, the tipping of the garbage bin, the opening and closing of the garbage bin door, and the overturning of the grooved rail cleaning device. In this system, the oil pressure sensor can be used to measure the oil pressure, and the oil pressure sensor can be installed on the main oil passage of the engine on the side of the engine to monitor the oil supply pressure of the engine lubrication system, judge whether the lubrication system works normally, and prevent the engine from being caused by lack of oil. damage.

进一步的,所述轨道垃圾清洁系统包括副发动机,用于驱动液压泵和风机,能收放工作装置、举升垃圾箱,以满足风机和液压泵的功率需求而副发动机的水温如果过高将可能导致副发动机停止工作;Further, the rail garbage cleaning system includes an auxiliary engine, which is used to drive the hydraulic pump and the fan, and can retract the working device and lift the garbage box to meet the power requirements of the fan and the hydraulic pump. If the water temperature of the auxiliary engine is too high, it will be May cause the auxiliary engine to stop working;

所述轨道垃圾清洁系统还包括副发动机监测模块,具体为温度传感器,可选用DS18B20数字温度传感器,放置于副发动机的水箱中以测量副发动机水箱水温,所述温度传感器的每个引脚均用热缩管隔开以防止短路,内部封胶以防水防潮。The rail garbage cleaning system also includes an auxiliary engine monitoring module, specifically a temperature sensor, and a DS18B20 digital temperature sensor can be selected, which is placed in the water tank of the auxiliary engine to measure the water temperature of the auxiliary engine water tank, and each pin of the temperature sensor is used. Heat shrink tubing is spaced to prevent short circuits, and the interior is sealed to prevent water and moisture.

进一步的,所述轨道垃圾清洁系统包括车外环境监测模块,具体包括用于检测清洁车与障碍物之间的距离的距离监测模块、用于定位的定位模块;Further, the rail garbage cleaning system includes an external environment monitoring module, specifically a distance monitoring module for detecting the distance between the cleaning vehicle and an obstacle, and a positioning module for positioning;

所述定位模块可选超声波传感器,清洁车在实地工作过程中,通过超声波传感器通过晶振向外发射25~40kHz的高频超声波,然后通过控制模块检测反射波的频率,如果区域内有物体运动,反射波频率就会有轻微的波动,即多普勒效应,以此来测量清洁车与障碍物的距离并实时传输给工控机系统。当检测到与障碍物的距离小于预定安全距离时,自动启动相应报警装置提示工作人员注意行驶安全或使清洁车采取紧急制动。The positioning module can choose an ultrasonic sensor. During the field work of the cleaning vehicle, the ultrasonic sensor emits high-frequency ultrasonic waves of 25-40 kHz through the crystal oscillator, and then the frequency of the reflected wave is detected by the control module. If there is an object moving in the area, The frequency of the reflected wave will fluctuate slightly, that is, the Doppler effect, so as to measure the distance between the cleaning vehicle and the obstacle and transmit it to the industrial computer system in real time. When it is detected that the distance from the obstacle is less than the predetermined safety distance, the corresponding alarm device is automatically activated to prompt the staff to pay attention to driving safety or make the cleaning vehicle take emergency braking.

在清洁车上安装定位模块(如GPS),有利于了解清洁车实时位置,具体记录清洁车每次工作的路线,便于远程控制中心了解清洁车的状态。若发生意外事故,可在第一时间确定清洁车精准位置。Installing a positioning module (such as GPS) on the cleaning vehicle is conducive to understanding the real-time location of the cleaning vehicle, specifically recording the route of each work of the cleaning vehicle, and facilitating the remote control center to understand the status of the cleaning vehicle. In the event of an accident, the precise location of the cleaning vehicle can be determined as soon as possible.

基于包括上述模块的轨道垃圾清洁系统,工控机接收数据及处理方式如下:Based on the rail garbage cleaning system including the above modules, the industrial computer receives data and processes it as follows:

根据实际情况和对多种数据传输方式的比较,可选取GPRS(General PacketRadio Service通用分组无线服务技术)作为传输数据的方法,负责将数据信息发送至工控机模块。According to the actual situation and the comparison of various data transmission methods, GPRS (General Packet Radio Service) can be selected as the method of data transmission, which is responsible for sending data information to the industrial computer module.

当使用连续式的实时数据传输时需要设计好传输的数据格式。在数据传输过程中,采用TCP/IP协议(Internet Protocol Suite互联网协议)以达到数据传输频率要求高且完整可靠传输至工控机的目的。When using continuous real-time data transmission, it is necessary to design the transmission data format. In the process of data transmission, the TCP/IP protocol (Internet Protocol Suite) is used to achieve the purpose of high data transmission frequency and complete and reliable transmission to the industrial computer.

工控机需要快速、准确识别从下位机传输过来的不同类型的数据。分别将风压传感器、液位变送器、机油压力传感器、温度传感器、超声波传感器实时数据进行识别,并转存到数据库中,对数据进行检查判断,如果参数异常就在界面上显示报警信息提醒工作人员及时处理。The industrial computer needs to quickly and accurately identify different types of data transmitted from the lower computer. Identify the real-time data of the air pressure sensor, liquid level transmitter, oil pressure sensor, temperature sensor, and ultrasonic sensor, respectively, and transfer them to the database to check and judge the data. If the parameters are abnormal, an alarm message will be displayed on the interface. The staff dealt with it in a timely manner.

利用上述清洁控制模块可将系统所获取到的参数存入其中。当数据进入到数据库之后,根据正常数据的标准进行判断,并存储至相应的数据表Table中,以便后续的处理与应用。The parameters obtained by the system can be stored in the above cleaning control module. After the data enters the database, it is judged according to the standard of normal data and stored in the corresponding data table Table for subsequent processing and application.

工控机上的状态监测界面设计可基于上述槽型轨垃圾精准清洁控制系统的MFC工程进行进一步设计。状态监测界面设计将包含传感器所测的风压、液压、油压、温度、GPS位置在内的各项数据进行显示。在上述MFC工程已设计出的主对话框内,创建一个新的子线程窗口,并在此子窗口建立基本的状态监测界面框架,添加所需要的控件,再通过添加相应的控件响应函数,调用与数据库操作有关的API接口函数,引入数据库中已储存的数据,从而通过此界面显示各个参数曲线的动态变化图,并采用系统评估方法中的专家评估系统对这些参数及其变化曲线和知识库中的规则进行比较分析。系统根据清洁车正常工作状态下每个参数预先设置的警告线给出有关清洁车运行安全提示、警告等信息以保障清洁车安全运行。The design of the condition monitoring interface on the industrial computer can be further designed based on the MFC project of the above-mentioned trough rail garbage precise cleaning control system. The state monitoring interface is designed to display various data including wind pressure, hydraulic pressure, oil pressure, temperature, and GPS position measured by the sensor. In the main dialog box that has been designed in the above MFC project, create a new sub-thread window, and establish a basic status monitoring interface framework in this sub-window, add the required controls, and then add the corresponding control response function to call The API interface functions related to database operation import the data stored in the database, so as to display the dynamic change diagram of each parameter curve through this interface, and use the expert evaluation system in the system evaluation method to evaluate these parameters and their change curves and knowledge base. The rules in the comparison analysis. According to the warning line preset by each parameter in the normal working state of the cleaning vehicle, the system gives information about the operation safety prompts and warnings of the cleaning vehicle to ensure the safe operation of the cleaning vehicle.

将综合了多个功能的两大应用集成到一个控制面板,减少应用控制过程中的操作步骤,节省清洁装置控制过程中用户的操作时间,使得控制过程更加便捷;同时,清洁装置的各个模块分工明确,协同操作,使得清洁过程更加高效、智能化。Integrate two major applications that integrate multiple functions into one control panel, reduce the operation steps in the application control process, save the user's operation time during the cleaning device control process, and make the control process more convenient; at the same time, the various modules of the cleaning device are divided into labor Clear, collaborative operation makes the cleaning process more efficient and intelligent.

实施例4Example 4

一种轨道垃圾清洁资源配置方法,包括如下步骤:A method for allocating orbital garbage cleaning resources, comprising the following steps:

将一段轨道等分为若干段,每段等分为若干个采点Divide a track into several segments, and each segment is equally divided into several points

xij(i=1,2,...,n,j=1,2,...,m);x ij (i=1,2,...,n,j=1,2,...,m);

Figure BDA0002237761310000181
Figure BDA0002237761310000181

当清洁车以固定速度由轨道起点出发时,重置计数系数count=1,计时器开始工作;When the cleaning vehicle starts from the starting point of the track at a fixed speed, reset the count coefficient count=1, and the timer starts to work;

定义识别系数flag:Define the identification coefficient flag:

Figure BDA0002237761310000191
Figure BDA0002237761310000191

清洁车行进期间,若识别到垃圾,则flag=1,记录此时位置坐标ycount1During the traveling of the cleaning vehicle, if garbage is identified, then flag=1, and record the position coordinate y count1 at this time;

继续行进,若无识别到垃圾,则flag=0,记录此时位置坐标ycount0,count加1。Continue to travel, if no garbage is identified, flag=0, record the position coordinate y count0 at this time, and add 1 to count.

统计一天中各段轨道的垃圾出现位置;Count the location of garbage in each track of the day;

持续记录每天数据,以若干天的数据来统计各段轨道的各个采样点出现的概率均值,根据季节以及概率均值分配清洁资源。Continuously record daily data, use several days of data to count the probability mean of each sampling point of each segment of the track, and allocate cleaning resources according to the season and the probability mean.

进一步的,在配置前输入过去一周采集点数据、季节量S(S=1,2,3,4分别表示春季、夏季、秋季、冬季),所统计的一天中各段轨道的垃圾出现位置时,计算垃圾概率均值

Figure BDA0002237761310000192
统计用水量Q=Pij*Zs,ZS表示季节S时的用水量。Further, input the data of the collection points in the past week and the seasonal amount S (S=1, 2, 3, and 4 represent spring, summer, autumn, and winter, respectively) before the configuration, and the statistics of the garbage occurrence positions of each track in a day. , calculate the mean value of garbage probability
Figure BDA0002237761310000192
Statistical water consumption Q=P ij *Z s , Z S represents the water consumption in season S.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited by the above-mentioned embodiments, and any other changes, modifications, substitutions, combinations, The simplification should be equivalent replacement manners, which are all included in the protection scope of the present invention.

Claims (9)

1.一种轨道垃圾识别方法,其特征在于,包括步骤:1. a method for identifying orbital garbage, comprising the steps of: 获取轨道视频流;Get the track video stream; 逐帧分解视频流,并对每帧图像进行预处理以过滤图像噪声,所述预处理包括Cohen-Sutherland裁剪,将预处理后的图像输入已训练的垃圾识别模型,图像样本特征提取、多尺度预测、边界框预测以识别垃圾;The video stream is decomposed frame by frame, and each frame of image is preprocessed to filter image noise. The preprocessing includes Cohen-Sutherland cropping, the preprocessed image is input into the trained garbage recognition model, image sample feature extraction, multi-scale Prediction, bounding box prediction to identify garbage; 垃圾识别模型由以下步骤训练而得:The spam identification model is trained by the following steps: 收集轨道垃圾图像样本;Collect orbital garbage image samples; 重复输入垃圾图像样本至YOLOv3网络结构,通过图像样本特征提取、多尺度预测、边界框预测和训练过程,得到垃圾识别模型;Repeatedly input garbage image samples into the YOLOv3 network structure, and obtain the garbage identification model through image sample feature extraction, multi-scale prediction, bounding box prediction and training process; 所述YOLOv3网络结构采用全卷积结构,包括用于特征提取的特征提取模块、用于多尺度预测的多尺度预测模块、用于边界框预测的边界框预测模块;The YOLOv3 network structure adopts a full convolution structure, including a feature extraction module for feature extraction, a multi-scale prediction module for multi-scale prediction, and a bounding box prediction module for bounding box prediction; 所述特征提取模块的具有相同特征图大小和相同个数的卷积核的残差网络层之间设置快捷链路;A shortcut link is set between the residual network layers of the feature extraction module with the same feature map size and the same number of convolution kernels; 所述多尺度预测模块包括依次排列三层卷积层,将中间卷积层再分为第一部分和第二部分,压缩第一部分的网络,将第二部分网络间权重小于设定值的连接截断,获得稀疏连接的网络并重新训练,使用权重共享量化连接的权重,再对量化后的权重和码本采用预测编码和游程编码结合的编码方式进行压缩;The multi-scale prediction module includes sequentially arranging three convolutional layers, subdividing the intermediate convolutional layer into a first part and a second part, compressing the network of the first part, and truncating the connection between the second part of the network whose weight is less than the set value. , obtain a sparsely connected network and retrain it, use weights to share the weights of quantized connections, and then compress the quantized weights and codebooks using a combination of predictive coding and run-length coding; 通过多标签分类将识别的垃圾分类;Sort the identified garbage through multi-label classification; 通过非极大值抑制去掉多次检测到的同一垃圾的边界框。The bounding boxes of the same garbage detected multiple times are removed by non-maximum suppression. 2.根据权利要求1所述的轨道垃圾识别方法,其特征在于,所述Cohen-Sutherland裁剪以图像中的轨道为边界将图像分为三个区域,保留中间区域。2 . The method for identifying orbital garbage according to claim 1 , wherein the Cohen-Sutherland cropping divides the image into three areas with the orbit in the image as the boundary, and retains the middle area. 3 . 3.根据权利要求1所述的轨道垃圾识别方法,其特征在于,所述对图像进行预处理还包括对图像灰度化、高斯滤波;高斯滤波时,增大图像尺寸横向尺寸。3 . The method for identifying orbital garbage according to claim 1 , wherein the preprocessing of the image further comprises grayscale and Gaussian filtering of the image; during Gaussian filtering, the horizontal size of the image is increased. 4 . 4.一种轨道垃圾清洁方法,其特征在于,在通过所述权利要求1-3任一项所述的轨道垃圾识别方法识别到垃圾后,驱动清洁系统完成清洁工作。4. A method for cleaning rail garbage, characterized in that, after the garbage is identified by the method for identifying rail garbage according to any one of claims 1-3, the cleaning system is driven to complete the cleaning work. 5.根据权利要求4所述的轨道垃圾清洁方法,其特征在于,驱动指令通过操作员物理指令或指令库调用获取。5 . The method for cleaning rail debris according to claim 4 , wherein the driving instruction is obtained through an operator physical instruction or an instruction library call. 6 . 6.一种轨道垃圾清洁系统,其特征在于,系统应用权利要求1-3任一项所述的轨道垃圾识别方法识别垃圾,包括:6. An orbital garbage cleaning system, characterized in that the system uses the orbital garbage identification method described in any one of claims 1-3 to identify garbage, comprising: 清洁模块,为清洁车,用于获取控制指令完成清洁工作;The cleaning module is a cleaning vehicle, which is used to obtain control instructions to complete the cleaning work; 清洁控制模块,与轨道垃圾清洁系统其它模块数据连接并控制其他模块运行,包括MFC程序指令输入单元与物理指令输入单元。The cleaning control module is connected with other modules of the track garbage cleaning system and controls the operation of other modules, including the MFC program command input unit and the physical command input unit. 7.根据权利要求6所述的轨道垃圾清洁系统,其特征在于:7. The rail trash cleaning system according to claim 6, wherein: 所述清洁模块的清洁车的车头底部设有吸尘口,清洁车的车厢中装有清水箱与污水箱;The bottom of the front of the cleaning vehicle of the cleaning module is provided with a dust suction port, and a clean water tank and a sewage tank are arranged in the compartment of the cleaning vehicle; 所述轨道垃圾清洁系统还包括:The orbital trash cleaning system also includes: 风压监测模块,设于吸尘口处,用于测量吸尘口处压力;The wind pressure monitoring module is located at the suction port to measure the pressure at the suction port; 水路监测模块,用于分别检测清水箱与污水箱的水位。The waterway monitoring module is used to detect the water level of the clean water tank and the sewage tank respectively. 8.根据权利要求7所述的轨道垃圾清洁系统,其特征在于,所述水路监测模块为液位变送器,安装在清水箱或污水箱侧面底部,开孔位置与水管出水口处于同一平面。8. The rail garbage cleaning system according to claim 7, wherein the waterway monitoring module is a liquid level transmitter, installed on the bottom of the side of the clean water tank or the sewage tank, and the opening position and the water outlet of the water pipe are on the same plane . 9.一种轨道垃圾清洁资源配置方法,其特征在于,应用权利要求1-3任一项所述的轨道垃圾识别方法识别垃圾,包括如下步骤:9. A method for disposing of orbital garbage cleaning resources, characterized in that, identifying garbage using the orbital garbage identification method described in any one of claims 1-3, comprising the steps of: 将一段轨道等分为若干段,每段等分为若干个采点xij(i=1,2,...,n,j=1,2,...,m);Divide a track into several segments, and each segment is equally divided into several sampling points x ij (i=1, 2,...,n, j=1, 2,...,m);
Figure FDA0003676936630000021
Figure FDA0003676936630000021
当清洁车以固定速度由轨道起点出发时,重置计数系数count=1,计时器开始工作;When the cleaning vehicle starts from the starting point of the track at a fixed speed, reset the count coefficient count=1, and the timer starts to work; 定义识别系数flag:Define the identification coefficient flag:
Figure FDA0003676936630000031
Figure FDA0003676936630000031
清洁车行进期间,若识别到垃圾,则flag=1,记录此时位置坐标ycount1During the traveling of the cleaning vehicle, if garbage is identified, then flag=1, and record the position coordinate y count1 at this time; 继续行进,若无识别到垃圾,则flag=0,记录此时位置坐标ycount0,count加1;Continue to move, if no garbage is identified, then flag=0, record the position coordinate y count0 at this time, and add 1 to count; 统计一天中各段轨道的垃圾出现位置;Count the location of garbage in each track of the day; 持续记录每天数据,以若干天的数据来统计各段轨道的各个采样点出现的概率均值,根据季节以及概率均值分配清洁资源。Continuously record daily data, use several days of data to count the probability mean of each sampling point of each segment of the track, and allocate cleaning resources according to the season and the probability mean.
CN201910989410.6A 2019-10-17 2019-10-17 Track garbage identification method, cleaning method, system and resource allocation method Active CN110781896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910989410.6A CN110781896B (en) 2019-10-17 2019-10-17 Track garbage identification method, cleaning method, system and resource allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910989410.6A CN110781896B (en) 2019-10-17 2019-10-17 Track garbage identification method, cleaning method, system and resource allocation method

Publications (2)

Publication Number Publication Date
CN110781896A CN110781896A (en) 2020-02-11
CN110781896B true CN110781896B (en) 2022-07-19

Family

ID=69385854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910989410.6A Active CN110781896B (en) 2019-10-17 2019-10-17 Track garbage identification method, cleaning method, system and resource allocation method

Country Status (1)

Country Link
CN (1) CN110781896B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111462103A (en) * 2020-04-08 2020-07-28 中铁第一勘察设计院集团有限公司 Railway line parameter measuring method
CN111665755B (en) * 2020-06-03 2024-10-11 暨南大学 Remote multi-terminal monitoring system and method for rail cleaning vehicle
CN111797758A (en) * 2020-07-03 2020-10-20 成都理工大学 An identification and positioning technology for plastic bottles
CN112227279A (en) * 2020-09-16 2021-01-15 梁禄灵 Construction waste cleaning vehicle
CN112257623B (en) * 2020-10-28 2022-08-23 长沙立中汽车设计开发股份有限公司 Road surface cleanliness judgment and automatic cleaning method and automatic cleaning environmental sanitation device
CN112560576B (en) * 2020-11-09 2022-09-16 华南农业大学 A garbage classification and intelligent recycling method based on AI image recognition
CN113011315B (en) * 2021-03-16 2022-12-16 华南理工大学 A subway track recognition method based on ultra-fast structure-aware deep network
CN114355907B (en) * 2021-12-22 2024-01-19 东风汽车集团股份有限公司 Cloud-based intelligent garbage identification and cleaning method and system
CN114283400A (en) * 2021-12-27 2022-04-05 上海智楹机器人科技有限公司 An integrated method of intelligent edge sweeping and road cleanliness determination
CN114895900A (en) * 2022-03-03 2022-08-12 南京华易泰电子科技有限公司 Cleaning machine system based on MFC frame design
CN114758258B (en) * 2022-04-12 2025-03-18 北京零点远景网络科技有限公司 A method for inferring garbage location based on geometric appearance features
CN115331129B (en) * 2022-10-14 2023-03-24 彼图科技(青岛)有限公司 Junk data identification method based on unmanned aerial vehicle and artificial intelligence
CN117173703B (en) * 2023-11-02 2024-01-16 温州华嘉电器有限公司 Isolating switch state identification method
CN117368513B (en) * 2023-12-08 2024-02-13 广州泛美实验室系统科技股份有限公司 Rail-changing method for laboratory automation assembly line
CN118799816B (en) * 2024-09-12 2025-02-25 大连源丰智能科技有限公司 A garbage sorting visual system with intelligent inorganic detection function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100091846A1 (en) * 2007-04-09 2010-04-15 Ntt Docomo, Inc Image prediction/encoding device, image prediction/encoding method, image prediction/encoding program, image prediction/decoding device, image prediction/decoding method, and image prediction decoding program
CN106845408A (en) * 2017-01-21 2017-06-13 浙江联运知慧科技有限公司 A kind of street refuse recognition methods under complex environment
CN109063666A (en) * 2018-08-14 2018-12-21 电子科技大学 The lightweight face identification method and system of convolution are separated based on depth
CN109615071A (en) * 2018-12-25 2019-04-12 济南浪潮高新科技投资发展有限公司 A kind of neural network processor of high energy efficiency, acceleration system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241984B (en) * 2018-09-17 2020-11-27 暨南大学 Orbital garbage detection method, computer device, and computer-readable storage medium
CN109389161B (en) * 2018-09-28 2021-08-31 广州大学 Evolutionary learning method, device, system and medium for garbage identification based on deep learning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100091846A1 (en) * 2007-04-09 2010-04-15 Ntt Docomo, Inc Image prediction/encoding device, image prediction/encoding method, image prediction/encoding program, image prediction/decoding device, image prediction/decoding method, and image prediction decoding program
CN106845408A (en) * 2017-01-21 2017-06-13 浙江联运知慧科技有限公司 A kind of street refuse recognition methods under complex environment
CN109063666A (en) * 2018-08-14 2018-12-21 电子科技大学 The lightweight face identification method and system of convolution are separated based on depth
CN109615071A (en) * 2018-12-25 2019-04-12 济南浪潮高新科技投资发展有限公司 A kind of neural network processor of high energy efficiency, acceleration system and method

Also Published As

Publication number Publication date
CN110781896A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110781896B (en) Track garbage identification method, cleaning method, system and resource allocation method
CN110598736B (en) Power equipment infrared image fault positioning, identifying and predicting method
CN109928107B (en) An Automatic Classification System
WO2019179024A1 (en) Method for intelligent monitoring of airport runway, application server and computer storage medium
CN109606991A (en) Smart trash can and garbage classification method based on deep learning
CN110335294B (en) Mine water pump house water leakage detection method based on frame difference method and 3D convolutional neural network
CN110164152A (en) One kind being used for isolated traffic intersection traffic light control system
CN103942557A (en) Coal-mine underground image preprocessing method
CN109034024A (en) Logistics vehicles vehicle classification recognition methods based on image object detection
CN113788051A (en) Train on-station running state monitoring and analyzing system
CN104715264A (en) Method and system for recognizing video images of motion states of vehicles in expressway tunnel
CN113450573A (en) Traffic monitoring method and traffic monitoring system based on unmanned aerial vehicle image recognition
CN110826577A (en) High-voltage isolating switch state tracking identification method based on target tracking
CN111507379A (en) Automatic ore identification and rough sorting system based on deep learning
CN114998715A (en) Training, detection method and system for operating state detection model of transformer equipment
CN110390784A (en) A monitoring system for anti-breakage of transmission lines based on deep learning
CN107358803A (en) A kind of traffic signal control system and its control method
CN111563468B (en) Driver abnormal behavior detection method based on attention of neural network
CN118025920A (en) Elevator fault diagnosis and early warning method and system based on Internet of Things
CN118038232A (en) Vehicle information identification method based on YOLO network
CN114332833A (en) A Binary Differentiable Fatigue Detection Method Based on Face Key Points
CN112801072A (en) Elevator non-flat-layer door opening fault recognition device and method based on computer vision
CN116443682B (en) An intelligent elevator control system
CN118736480A (en) A real-time domestic waste detection system for surveillance cameras
CN204087487U (en) A kind of road traffic acquiring video information and intelligent processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant