[go: up one dir, main page]

CN110533627A - Method for detecting nettle fracture - Google Patents

Method for detecting nettle fracture Download PDF

Info

Publication number
CN110533627A
CN110533627A CN201910611969.5A CN201910611969A CN110533627A CN 110533627 A CN110533627 A CN 110533627A CN 201910611969 A CN201910611969 A CN 201910611969A CN 110533627 A CN110533627 A CN 110533627A
Authority
CN
China
Prior art keywords
line segment
feasible
target object
network
rope
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.)
Granted
Application number
CN201910611969.5A
Other languages
Chinese (zh)
Other versions
CN110533627B (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.)
TIANJIN OPTICAL ELECTRICAL GAOSI COMMUNICATION ENGINEERING TECHNOLOGY Co Ltd
Tianjin University of Commerce
Original Assignee
TIANJIN OPTICAL ELECTRICAL GAOSI COMMUNICATION ENGINEERING TECHNOLOGY Co Ltd
Tianjin University of Commerce
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 TIANJIN OPTICAL ELECTRICAL GAOSI COMMUNICATION ENGINEERING TECHNOLOGY Co Ltd, Tianjin University of Commerce filed Critical TIANJIN OPTICAL ELECTRICAL GAOSI COMMUNICATION ENGINEERING TECHNOLOGY Co Ltd
Priority to CN201910611969.5A priority Critical patent/CN110533627B/en
Publication of CN110533627A publication Critical patent/CN110533627A/en
Application granted granted Critical
Publication of CN110533627B publication Critical patent/CN110533627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30236Traffic on road, railway or crossing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

本发明公开了一种用于检测网绳断裂的方法,所述方法包括:基于识别算法提取输入图像中所包括的目标对象;根据提取到的目标对象,将其区分为线段和线段端部的连接点;根据所有连接点间的连接关系形成拓扑网络;根据所述拓扑网络,确定拓扑网络中所有的可行路径;根据所述可行路径,确定是否有可行但实际不存在的路径。本申请提供的用于检测铁路货车网绳断裂的方法和装置,采用LSD算法提前输入图像中网绳骨架,根据拓扑网络结构确定是否有实际不存在但可行的路径,从而判断是否有断裂的网绳,计算量较小,能够快速、准确地识别出图像中存在网绳断裂的位置,提升检测目标对象的效率和精度。

The invention discloses a method for detecting the breakage of a net rope. The method comprises: extracting a target object included in an input image based on a recognition algorithm; according to the extracted target object, distinguishing it into a line segment and an end of the line segment. connection point; forming a topology network according to the connection relationship between all the connection points; determining all feasible paths in the topology network according to the topology network; determining whether there is a feasible but actually nonexistent path according to the feasible path. The method and device for detecting the broken wire rope of a railway freight car provided by this application adopts the LSD algorithm to input the wire rope skeleton in the image in advance, and determines whether there is an actual non-existent but feasible path according to the topology network structure, so as to determine whether there is a broken wire rope. The rope has a small amount of calculation, and can quickly and accurately identify the position where the net rope is broken in the image, improving the efficiency and accuracy of detecting the target object.

Description

用于检测网绳断裂的方法Method for detecting breakage of net rope

技术领域technical field

本发明涉及轨道交通、图像处理及模式识别的技术领域,具体说是一种用于检测铁路货车网绳断裂的方法。The invention relates to the technical fields of rail transit, image processing and pattern recognition, in particular to a method for detecting the breakage of a railway freight car net rope.

背景技术Background technique

轨道交通安全规范中要求货车篷布需要用网绳进行加固,若网绳断裂,则存在篷布飘起的风险,所以需要对网绳是否存在断裂进行检测,若网绳断裂则需要进行提醒和警报。铁路货车上的网绳都是在车体下部固定点打结,并覆盖至整个车体。目前对网绳断裂的检测方法,一般都是通过人工进行肉眼判断。货运火车长度长,人工检测十分费时,另外,网绳展开时形成大量重复的四边形格子,肉眼识别难度高,很难及时确找到断裂的部位。Rail traffic safety regulations require that the truck tarpaulin need to be reinforced with net ropes. If the net rope breaks, there is a risk of the tarpaulin floating. Therefore, it is necessary to detect whether the net rope is broken. If the net rope breaks, it is necessary to remind and alarm. The net ropes on the railway freight car are all knotted at the fixed point at the lower part of the car body and cover the whole car body. At present, the detection method for the breakage of the net rope is generally judged manually by the naked eye. The length of the freight train is long, and manual inspection is very time-consuming. In addition, a large number of repeated quadrilateral lattices are formed when the net rope is unfolded, which is difficult to identify with the naked eye, and it is difficult to find the broken part in time.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于提供一种用于检测网绳断裂的方法,来解决以上背景技术部分提到的技术问题。The purpose of the present application is to provide a method for detecting the breakage of a net rope, so as to solve the technical problems mentioned in the above background art section.

第一方面,本申请提供了一种用于检测网绳断裂的方法,所述方法包括:基于识别算法提取输入图像中所包括的目标对象;根据提取到的目标对象,将其区分为线段和线段端部的连接点;根据所有连接点间的连接关系形成拓扑网络;根据所述拓扑网络,确定拓扑网络中所有的可行路径;根据所述可行路径,确定是否有可行但实际不存在的路径,若有则说明网绳断裂,反之则网绳完好。In a first aspect, the present application provides a method for detecting a net rope breakage, the method comprising: extracting a target object included in an input image based on a recognition algorithm; distinguishing the extracted target object into line segments and The connection point at the end of the line segment; a topology network is formed according to the connection relationship between all the connection points; according to the topology network, all feasible paths in the topology network are determined; according to the feasible path, it is determined whether there is a feasible but not actually existing path , if there is, the net rope is broken, otherwise the net rope is intact.

在一些实施例中,所述的识别算法采用LSD算法,还包括在提取输入图像中所包括的目标对象之后对图像进行二值化,绳索部分为前景,其余部分为背景。In some embodiments, the recognition algorithm adopts the LSD algorithm, and further includes binarizing the image after extracting the target object included in the input image, and the rope part is the foreground and the rest part is the background.

在一些实施例中,还包括在上述二值化之后,对所述线段的缺失部分进行线段修复。In some embodiments, the method further includes performing line segment repair on the missing part of the line segment after the above binarization.

在一些实施例中,所述线段修复的方法包括:选取所有孤立线段上的端点,以上述端点沿线段方向延伸设定长度,判断延长后的线段与其他线段上的端点的欧氏距离是否大于设定的阈值,是则两条线段的关系为不相连,否则相连。In some embodiments, the method for repairing a line segment includes: selecting endpoints on all isolated line segments, extending a set length along the line segment with the endpoints, and judging whether the Euclidean distance between the extended line segment and endpoints on other line segments is greater than If the threshold is set, the relationship between the two line segments is not connected, otherwise they are connected.

在一些实施例中,所述形成拓扑网络包括:根据线段修复后的线段数据形成连接点之间的连接关系数据,并建立树形拓扑关系网,将连接点区分为根节点和叶节点,根节点为网绳末端固定点,叶节点为网绳之间的连接处。In some embodiments, the forming a topology network includes: forming connection relationship data between connection points according to the line segment data after repairing the line segment, and establishing a tree-shaped topology relationship network, and distinguishing the connection points into root nodes and leaf nodes. The node is the fixed point at the end of the net rope, and the leaf node is the connection between the net ropes.

在一些实施例中,所述寻找拓扑网络中所有的可行路径包括:根据树形拓扑网的结构,寻找一条从根节点延伸至输入图像上部的可行路径。In some embodiments, the searching for all feasible paths in the topological network includes: searching for a feasible path extending from the root node to the upper part of the input image according to the structure of the tree-shaped topological network.

第二方面,本申请提供了一种用于检测铁路货车网绳断裂的装置,所述装置包括:提取单元,用于提取输入图像中所包括的目标对象,目标对象分为线段和线段端部的连接点;拓扑网络单元,用于根据所有连接点的连接关系建立拓扑网络;路径规划单元,用于确定拓扑网中所有的可行路径;判断单元,用于确定拓扑网络中是否有可行但实际不存在的路径。In a second aspect, the present application provides a device for detecting a broken wire rope of a railway wagon, the device comprising: an extraction unit for extracting a target object included in an input image, and the target object is divided into a line segment and an end of the line segment The topological network unit is used to establish a topological network according to the connection relationship of all the connection points; the path planning unit is used to determine all feasible paths in the topological network; the judgment unit is used to determine whether there are feasible but practical paths in the topological network nonexistent path.

第三方面,本申请提供了一种计算机设备,其特征在于,包括:存储器,存储可执行指令;一个或多个处理器,与存储器通信以执行可执行指令从而完成以下操作:基于识别算法提取输入图像中所包括的目标对象;根据提取到的目标对象,将其区分为线段和线段端部的连接点;根据所有连接点间的连接关系形成拓扑网络;根据所述拓扑网络,确定拓扑网络中所有的可行路径;根据所述可行路径,确定是否有可行但实际不存在的路径。In a third aspect, the present application provides a computer device, which is characterized by comprising: a memory, which stores executable instructions; one or more processors, which communicate with the memory to execute the executable instructions to complete the following operations: extracting based on an identification algorithm Input the target object included in the image; according to the extracted target object, distinguish it into line segments and connection points at the end of the line segment; form a topological network according to the connection relationship between all the connection points; determine the topological network according to the topological network All feasible paths in; according to the feasible paths, determine whether there is a feasible path that does not actually exist.

本申请提供的用于检测铁路货车网绳断裂的方法和装置,采用LSD算法提前输入图像中网绳骨架,根据拓扑网络结构确定是否有实际不存在但可行的路径,从而判断是否有断裂的网绳,计算量较小,能够快速、准确地识别出图像中存在网绳断裂的位置,提升检测目标对象的效率和精度。The method and device for detecting the broken wire rope of a railway freight car provided by this application adopts the LSD algorithm to input the wire rope skeleton in the image in advance, and determines whether there is a practical non-existent but feasible path according to the topology network structure, so as to judge whether there is a broken wire rope. The rope has a small amount of calculation, and can quickly and accurately identify the position where the net rope is broken in the image, improving the efficiency and accuracy of detecting the target object.

附图说明Description of drawings

图1是本申请的检测铁路货车网绳断裂方法的流程图;Fig. 1 is the flow chart of the method for detecting the broken wire rope of railway freight car of the present application;

图2是根据本申请的检测铁路货车网绳断裂方法的一个应用场景的示意图:Fig. 2 is a schematic diagram of an application scenario of the method for detecting the broken wire rope of a railway freight car according to the present application:

图3是根据本申请的检测方法的一个实施例的经识别算法提取后的目标对象示意图;3 is a schematic diagram of a target object extracted by an identification algorithm according to an embodiment of the detection method of the present application;

图4是图3根据本申请提供的检测方法经线段修复之后的目标对象示意图。FIG. 4 is a schematic diagram of the target object after line segment repairing according to the detection method provided in the present application.

图5是根据本申请的检测铁路货车网绳断裂装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of a device for detecting a broken wire rope of a railway freight car according to the present application;

图6是适于用来实现本申请实施例的终端设备或服务器的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device suitable for implementing a terminal device or a server according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而并非对该发明的限定。另外还需说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

图1示出了根据本申请的用于检测铁路货车网绳断裂的方法的一个实施例流程100。所述的方法包括以下步骤:FIG. 1 illustrates a flow 100 of one embodiment of a method for detecting a rope break in a railway wagon according to the present application. The method includes the following steps:

步骤101,基于识别算法提取输入图像中所包括的目标对象,将提取到的目标对象区分为线段和线段端部的连接点,参见图2、图3。Step 101 , extracting the target object included in the input image based on the recognition algorithm, and distinguishing the extracted target object into a line segment and a connection point at the end of the line segment, see FIG. 2 and FIG. 3 .

在本实施例中,所述的识别算法采用LSD算法,LSD算法的实施步骤:In the present embodiment, the described identification algorithm adopts the LSD algorithm, and the implementation steps of the LSD algorithm:

①以S=0.8的尺度对输入图像进行高斯下采样。① Gaussian downsampling of the input image with a scale of S=0.8.

②计算每一个点的梯度值以及梯度方向(level-line orientation)。② Calculate the gradient value and gradient direction of each point (level-line orientation).

③根据梯度值对所有点进行伪排序(pseudo-ordered),建立状态列表,所有点初始状态设置为UNUSED。③ According to the gradient value, all points are pseudo-ordered (pseudo-ordered), a state list is established, and the initial state of all points is set to UNUSED.

④将梯度值小于ρ的点状态设置为USED。④ Set the state of the point whose gradient value is less than ρ to USED.

⑤取出列表中梯度最大(伪排列的首位)的点作为种子点(seed),状态列表中设为USED,循环进行以下操作:⑤ Take the point with the largest gradient (the first position of the pseudo-arrangement) in the list as the seed point (seed), set it as USED in the state list, and perform the following operations in a loop:

a.以seed为起点,搜索周围UNUSED并且方向在阈值范围内的点,状态改为USED。a. Using seed as the starting point, search for points around UNUSED and the direction is within the threshold range, and the status is changed to USED.

b.生成包含所有满足点的矩形R。b. Generate a rectangle R containing all satisfying points.

c.判断同性点(aligned pt)密度是否满足阈值D,若不满足,截断R变为多个矩形框,直至满足。NFAIεc. Determine whether the density of the aligned pts satisfies the threshold D, if not, truncate R into multiple rectangular boxes until it is satisfied. NFAIε

d.计算NFA。d. Calculate the NFA.

e.改变R使NFA的值更小直至,R加入输出列表。e. Change R to make the value of NFA smaller until R is added to the output list.

⑥输出所有同性点并将灰度值置为255,其余点置为0。⑥ Output all the points of the same sex and set the gray value to 255, and set the rest points to 0.

在本实施例中,在提取输入图像中所包括的目标对象之后对图像进行二值化,绳索部分为前景,其余部分为背景。In this embodiment, after extracting the target object included in the input image, the image is binarized, the rope part is the foreground, and the rest is the background.

步骤102,在上述二值化之后,对所述线段的缺失部分进行线段修复,修复结果参见图4。Step 102: After the above binarization, line segment repair is performed on the missing part of the line segment, and the repair result is shown in FIG. 4 .

在本实施例中所述线段修复的方法包括:选取所有孤立线段上的端点,以上述端点沿线段方向延伸一定长度l,本发明中l取值为200像素,判断延长后的线段与其他线段上的端点的欧氏距离是否大于设定的阈值ε,本发明中ε取值为50像素,是则两条线段的关系为不相连,否则相连。延长线方向范围为,本发明中θ取值为5’。The method for repairing a line segment in this embodiment includes: selecting endpoints on all isolated line segments, extending a certain length l along the line segment direction with the endpoints, where l is 200 pixels in the present invention, and judging whether the extended line segment is different from other line segments Whether the Euclidean distance of the upper end points is greater than the set threshold ε, the value of ε in the present invention is 50 pixels, if yes, the relationship between the two line segments is not connected, otherwise they are connected. The extension line direction range is, in the present invention, the value of θ is 5'.

步骤103,根据所有连接点间的连接关系形成拓扑网络;Step 103, forming a topology network according to the connection relationship between all the connection points;

在本实施例中,所述形成拓扑网络包括:根据线段修复后的线段数据形成连接点之间的连接关系数据,并建立树形拓扑关系网,将连接点区分为根节点和叶节点,根节点为网绳末端固定点,叶节点为网绳之间的连接处。In this embodiment, the forming a topology network includes: forming connection relationship data between connection points according to line segment data after line segment repair, and establishing a tree-shaped topology relationship network, and distinguishing connection points into root nodes and leaf nodes. The node is the fixed point at the end of the net rope, and the leaf node is the connection between the net ropes.

步骤104,根据所述拓扑网络,确定拓扑网络中所有的可行路径。Step 104: Determine all feasible paths in the topological network according to the topological network.

在本实施例中,所述寻找拓扑网络中所有的可行路径包括:根据树形拓扑网的结构,寻找一条从根节点延伸至输入图像上部的可行路径。In this embodiment, the searching for all feasible paths in the topological network includes: searching for a feasible path extending from the root node to the upper part of the input image according to the structure of the tree-shaped topological network.

步骤105,根据所述可行路径,确定是否有可行但实际不存在的路径,若有则说明网绳断裂,反之则网绳完好。Step 105, according to the feasible path, determine whether there is a feasible but non-existent path, if there is, it means that the net rope is broken, otherwise, the net rope is intact.

如图5所示,本发明实施例还提供了一种用于检测铁路货车网绳断裂的装置,所述装置600包括:提取单元601,用于提取输入图像中所包括的目标对象,目标对象分为线段和线段端部的连接点;602,线段修复单元,用于对提取单元提取到的线段的缺失部分进行修复;拓扑网络单元603,用于根据所有连接点的连接关系建立拓扑网络;路径规划单元604,用于确定拓扑网中所有的可行路径;判断单元605,用于确定拓扑网络中是否有可行但实际不存在的路径。As shown in FIG. 5 , an embodiment of the present invention further provides a device for detecting a broken rope of a railway freight car. The device 600 includes: an extraction unit 601 for extracting a target object included in an input image. The target object Divided into line segments and connection points at the ends of the line segments; 602, a line segment repair unit, for repairing the missing part of the line segment extracted by the extraction unit; a topology network unit 603, for establishing a topology network according to the connection relationship of all the connection points; The path planning unit 604 is used for determining all feasible paths in the topological network; the judging unit 605 is used for determining whether there are feasible but non-existing paths in the topological network.

本发明实施例还提供了一种电子设备,例如可以是移动终端、个人计算机(PC)、平板电脑、服务器等。下面参考图6,其示出了适于用来实现本申请实施例的终端设备或服务器的电子设备700的结构示意图:计算机系统700包括一个或多个处理器、通信部等,所述一个或多个处理器例如:一个或多个中央处理单元(CPU)701,和/或一个或多个图像处理器(GPU)713等,处理器可以根据存储在只读存储器(ROM)702中的可执行指令或者从存储部分708加载到随机访问存储器(RAM)703中的可执行指令而执行各种适当的动作和处理。通信部712可包括但不限于网卡,所述网卡可包括但不限于IB(Infiniband)网卡,The embodiment of the present invention also provides an electronic device, which may be, for example, a mobile terminal, a personal computer (PC), a tablet computer, a server, and the like. 6 , which shows a schematic structural diagram of an electronic device 700 suitable for implementing a terminal device or a server according to an embodiment of the present application: the computer system 700 includes one or more processors, a communication part, etc., the one or more Multiple processors such as: one or more central processing units (CPUs) 701 , and/or one or more graphics processing units (GPUs) 713 , etc., the processors may Various suitable actions and processes are performed by executing instructions or executable instructions loaded from storage section 708 into random access memory (RAM) 703 . The communication part 712 may include, but is not limited to, a network card, and the network card may include, but is not limited to, an IB (Infiniband) network card,

处理器可与只读存储器702和/或随机访问存储器630中通信以执行可执行指令,通过总线704与通信部712相连、并经通信部712与其他目标设备通信,从而完成本申请实施例提供的任一项方法对应的操作,例如,基于识别算法提取输入图像中所包括的目标对象;根据提取到的目标对象,将其区分为线段和线段端部的连接点;根据所有连接点间的连接关系形成拓扑网络;根据所述拓扑网络,确定拓扑网络中所有的可行路径;根据所述可行路径,确定是否有可行但实际不存在的路径。The processor can communicate with the read-only memory 702 and/or the random access memory 630 to execute executable instructions, connect with the communication part 712 through the bus 704, and communicate with other target devices through the communication part 712, so as to complete the provision of the embodiments of the present application. The operation corresponding to any one of the methods, for example, extracting the target object included in the input image based on the recognition algorithm; according to the extracted target object, distinguish it into a line segment and a connection point at the end of the line segment; The connection relationship forms a topological network; according to the topological network, all feasible paths in the topological network are determined; according to the feasible paths, it is determined whether there is a path that is feasible but does not actually exist.

此外,在RAM703中,还可存储有装置操作所需的各种程序和数据。CPU701、 ROM702以及RAM703通过总线704彼此相连。在有RAM703的情况下,ROM702 为可选模块。RAM703存储可执行指令,或在运行时向ROM702中写入可执行指令,可执行指令使处理器701执行上述通信方法对应的操作。输入/输出(I/O)接口705也连接至总线704。通信部712可以集成设置,也可以设置为具有多个子模块(例如多个IB 网卡),并在总线链接上。In addition, in the RAM 703, various programs and data necessary for the operation of the apparatus can also be stored. The CPU 701 , the ROM 702 and the RAM 703 are connected to each other through a bus 704 . In the case of RAM 703, ROM 702 is an optional module. The RAM 703 stores executable instructions, or writes executable instructions into the ROM 702 at runtime, and the executable instructions enable the processor 701 to perform operations corresponding to the above communication methods. An input/output (I/O) interface 705 is also connected to bus 704 . The communication part 712 may be integrated, or may be configured to have multiple sub-modules (eg, multiple IB network cards) and be connected to the bus.

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

需要说明的,如图6所示的架构仅为一种可选实现方式,在具体实践过程中,可根据实际需要对上述图6的部件数量和类型进行选择、删减、增加或替换;在不同功能部件设置上,也可采用分离设置或集成设置等实现方式,例如GPU和CPU可分离设置或者可将GPU集成在CPU上,通信部可分离设置,也可集成设置在CPU或GPU 上,等等。这些可替换的实施方式均落入本发明公开的保护范围。It should be noted that the architecture shown in FIG. 6 is only an optional implementation. In the specific practice process, the number and type of components in the above-mentioned FIG. 6 can be selected, deleted, added or replaced according to actual needs; For the setting of different functional components, separate settings or integrated settings can also be adopted. For example, the GPU and the CPU can be set separately or the GPU can be integrated on the CPU, and the communication department can be set separately or integrated on the CPU or GPU. and many more. These alternative embodiments all fall within the protection scope of the present disclosure.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,计算机程序包含用于执行流程图所示的方法的程序代码,程序代码可包括对应执行本申请实施例提供的方法步骤对应的指令,例如,基于识别算法提取输入图像中所包括的目标对象;根据提取到的目标对象,将其区分为线段和线段端部的连接点;根据所有连接点间的连接关系形成拓扑网络;根据所述拓扑网络,确定拓扑网络中所有的可行路径;根据所述可行路径,确定是否有可行但实际不存在的路径。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program tangibly embodied on a machine-readable medium, the computer program including program code for performing the methods illustrated in the flowcharts, the program code may include corresponding Execute the instructions corresponding to the method steps provided by the embodiments of the present application, for example, extract the target object included in the input image based on the recognition algorithm; according to the extracted target object, distinguish it into a line segment and a connection point at the end of the line segment; The connection relationship between the connection points forms a topological network; according to the topological network, all feasible paths in the topological network are determined; according to the feasible paths, it is determined whether there is a feasible path that does not actually exist. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the method of the present application are performed.

可能以许多方式来实现本发明的方法和装置、设备。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本发明的方法和装置、设备。用于方法的步骤的上述顺序仅是为了进行说明,本发明的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本发明实施为记录在记录介质中的程序,这些程序包括用于实现根据本发明的方法的机器可读指令。因而,本发明还覆盖存储用于执行根据本发明的方法的程序的记录介质。The method and apparatus, apparatus of the present invention may be implemented in many ways. For example, the method, apparatus, and apparatus of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of the steps of the method is for illustration only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present invention can also be implemented as programs recorded in a recording medium, the programs comprising machine-readable instructions for implementing the methods according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.

本发明的描述是为了示例和描述起见而给出的,而并不是无遗漏的或者将本发明限于所公开的形式。很多修改和变化对于本领域的普通技术人员而言是显然的。选择和描述实施例是为了更好说明本发明的原理和实际应用,并且使本领域的普通技术人员能够理解本发明从而设计适于特定用途的带有各种修改的各种实施例。The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or to limit the invention to the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to better explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use.

Claims (9)

1.一种用于检测网绳断裂的方法,所述方法包括:1. A method for detecting a net rope breakage, the method comprising: 基于识别算法提取输入图像中所包括的目标对象,将目标对象区分为线段和线段端部的连接点;Extract the target object included in the input image based on the recognition algorithm, and divide the target object into line segments and connection points at the ends of the line segments; 根据所有连接点间的连接关系形成拓扑网络;Form a topological network according to the connection relationship between all connection points; 根据所述拓扑网络,确定拓扑网络中所有的可行路径;According to the topological network, determine all feasible paths in the topological network; 根据所述可行路径,确定是否有可行但实际不存在的路径,若有则说明网绳断裂,反之则网绳完好。According to the feasible path, it is determined whether there is a path that is feasible but does not actually exist. If there is, it means that the net rope is broken, otherwise, the net rope is intact. 2.根据权利要求1所述的方法,其特征在于,所述的识别算法采用LSD算法,还包括在提取输入图像中所包括的目标对象之后对图像进行二值化,绳索部分为前景,其余部分为背景。2. method according to claim 1, is characterized in that, described identification algorithm adopts LSD algorithm, also comprises after extracting the target object included in the input image, the image is binarized, the rope part is foreground, the rest part of the background. 3.根据权利要求2所述的方法,其特征在于,还包括在上述对图像进行二值化之后,对所述线段的缺失部分进行线段修复。3 . The method according to claim 2 , further comprising performing line segment repair on the missing part of the line segment after the binarization of the image. 4 . 4.根据权利要求3所述的方法,其特征在于,所述线段修复的方法包括:4. The method according to claim 3, wherein the method for repairing the line segment comprises: 选取所有孤立线段上的端点,以上述端点沿线段方向延伸设定长度,判断延长后的线段与其他线段上的端点的欧氏距离是否大于设定的阈值,是则两条线段的关系为不相连,否则相连。Select the endpoints on all isolated line segments, extend the above endpoints along the line segment to set the length, and judge whether the Euclidean distance between the extended line segment and the endpoints on other line segments is greater than the set threshold. If yes, the relationship between the two line segments is not. connected, otherwise connected. 5.根据权利要求4所述的方法,其特征在于,所述形成拓扑网络包括:根据线段修复后的线段数据形成连接点之间的连接关系数据,并建立树形拓扑关系网,将连接点区分为根节点和叶节点,根节点为网绳末端固定点,叶节点为网绳之间的连接处。5. The method according to claim 4, wherein the forming a topology network comprises: forming connection relationship data between the connection points according to the line segment data after repairing the line segment, and establishing a tree-shaped topology relationship network, connecting the connection points It is divided into root node and leaf node. The root node is the fixed point at the end of the net rope, and the leaf node is the connection between the net ropes. 6.根据权利要求5所述的方法,其特征在于,所述寻找拓扑网络中所有的可行路径包括:根据树形拓扑网的结构,寻找一条从根节点延伸至输入图像上部的可行路径。6 . The method according to claim 5 , wherein the searching for all feasible paths in the topological network comprises: searching for a feasible path extending from the root node to the upper part of the input image according to the structure of the tree-shaped topological network. 7 . 7.一种用于检测铁路货车网绳断裂的装置,其特征在于,所述装置包括:7. A device for detecting the breakage of a railway wagon net rope, characterized in that the device comprises: 提取单元,用于提取输入图像中所包括的目标对象,目标对象分为线段和线段端部的连接点;The extraction unit is used to extract the target object included in the input image, and the target object is divided into a line segment and a connection point at the end of the line segment; 拓扑网络单元,用于根据所有连接点的连接关系建立拓扑网络;The topology network unit is used to establish a topology network according to the connection relationship of all the connection points; 路径规划单元,用于确定拓扑网中所有的可行路径;A path planning unit, used to determine all feasible paths in the topology network; 判断单元,用于确定拓扑网络中是否有可行但实际不存在的路径。The judgment unit is used to determine whether there is a feasible but non-existent path in the topology network. 8.根据权利要求7所述的装置,其特征在于:还包括线段修复单元,用于对提取单元提取到的线段的缺失部分进行修复。8 . The device according to claim 7 , further comprising a line segment repairing unit for repairing the missing part of the line segment extracted by the extraction unit. 9 . 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 存储器,存储可执行指令;memory, which stores executable instructions; 一个或多个处理器,与存储器通信以执行可执行指令从而完成以下操作:One or more processors, in communication with the memory to execute executable instructions to: 基于识别算法提取输入图像中所包括的目标对象,将目标对象区分为线段和线段端部的连接点;Extract the target object included in the input image based on the recognition algorithm, and divide the target object into line segments and connection points at the ends of the line segments; 根据所有连接点间的连接关系形成拓扑网络;Form a topological network according to the connection relationship between all connection points; 根据所述拓扑网络,确定拓扑网络中所有的可行路径;According to the topological network, determine all feasible paths in the topological network; 根据所述可行路径,确定是否有可行但实际不存在的路径。According to the feasible path, it is determined whether there is a feasible path that does not actually exist.
CN201910611969.5A 2019-07-08 2019-07-08 Method for detecting net rope breakage Active CN110533627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611969.5A CN110533627B (en) 2019-07-08 2019-07-08 Method for detecting net rope breakage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611969.5A CN110533627B (en) 2019-07-08 2019-07-08 Method for detecting net rope breakage

Publications (2)

Publication Number Publication Date
CN110533627A true CN110533627A (en) 2019-12-03
CN110533627B CN110533627B (en) 2023-02-24

Family

ID=68659851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611969.5A Active CN110533627B (en) 2019-07-08 2019-07-08 Method for detecting net rope breakage

Country Status (1)

Country Link
CN (1) CN110533627B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330630A (en) * 2020-11-05 2021-02-05 北京格灵深瞳信息技术有限公司 A method and electronic device for identifying wire breakage
WO2022007127A1 (en) * 2020-07-08 2022-01-13 胡飞青 System and method for identifying fracture state of protective rope body

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586254A (en) * 1992-02-13 1996-12-17 Hitachi Software Engineering Co., Ltd. System for managing and operating a network by physically imaging the network
US20090316602A1 (en) * 2008-06-18 2009-12-24 Biswajit Nandy Method and System for Network Topology Discovery
US20090326404A1 (en) * 2002-05-03 2009-12-31 Paul Sajda Single trial detection in encephalography
US7983174B1 (en) * 2005-12-19 2011-07-19 Cisco Technology, Inc. Method and apparatus for diagnosing a fault in a network path
US20130114462A1 (en) * 2011-11-04 2013-05-09 Cisco Technology, Inc. Sub-Topology Discovery for Operating Hybrid Solutions
US9525598B1 (en) * 2014-11-13 2016-12-20 Amazon Technologies, Inc. Network testing device for automated topology validation
CN108038846A (en) * 2017-12-04 2018-05-15 国网山东省电力公司电力科学研究院 Transmission line equipment image defect detection method and system based on multilayer convolutional neural networks
CN109165781A (en) * 2018-08-15 2019-01-08 山东鲁能软件技术有限公司 Calculate the method, apparatus and terminal device in electric system line chart connecting line path
CN109768883A (en) * 2018-12-21 2019-05-17 华为技术服务有限公司 A method, device and terminal device for determining a network topology path

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586254A (en) * 1992-02-13 1996-12-17 Hitachi Software Engineering Co., Ltd. System for managing and operating a network by physically imaging the network
US20090326404A1 (en) * 2002-05-03 2009-12-31 Paul Sajda Single trial detection in encephalography
US7983174B1 (en) * 2005-12-19 2011-07-19 Cisco Technology, Inc. Method and apparatus for diagnosing a fault in a network path
US20090316602A1 (en) * 2008-06-18 2009-12-24 Biswajit Nandy Method and System for Network Topology Discovery
US20130114462A1 (en) * 2011-11-04 2013-05-09 Cisco Technology, Inc. Sub-Topology Discovery for Operating Hybrid Solutions
US9525598B1 (en) * 2014-11-13 2016-12-20 Amazon Technologies, Inc. Network testing device for automated topology validation
CN108038846A (en) * 2017-12-04 2018-05-15 国网山东省电力公司电力科学研究院 Transmission line equipment image defect detection method and system based on multilayer convolutional neural networks
CN109165781A (en) * 2018-08-15 2019-01-08 山东鲁能软件技术有限公司 Calculate the method, apparatus and terminal device in electric system line chart connecting line path
CN109768883A (en) * 2018-12-21 2019-05-17 华为技术服务有限公司 A method, device and terminal device for determining a network topology path

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
JIE TIAN 等: ""Literature Review of Research on the Technology of Wire Rope Nondestructive Inspection in China and Abroad"", 《HTTPS://DOI.ORG/10.1051/MATECCONF/20152203025》 *
宋蓓蓓等: "基于脉冲耦合神经网络的路面裂缝提取", 《长安大学学报(自然科学版)》 *
左志权等: "DSM辅助下城区大比例尺正射影像镶嵌线智能检测", 《测绘学报》 *
彭向阳等: "变电站机器人智能巡检技术及应用效果", 《高压电器》 *
李苹: "上海铁路局网络拓扑的安全性研究", 《上海铁道科技》 *
王海明: ""SNS柔性防护网在公路高边坡的应用及施工安装方法和注意事项"", 《居舍》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022007127A1 (en) * 2020-07-08 2022-01-13 胡飞青 System and method for identifying fracture state of protective rope body
CN112330630A (en) * 2020-11-05 2021-02-05 北京格灵深瞳信息技术有限公司 A method and electronic device for identifying wire breakage

Also Published As

Publication number Publication date
CN110533627B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN112560862B (en) Text recognition method and device and electronic equipment
JP6126671B2 (en) File identification method and apparatus
CN109872303B (en) Surface defect visual inspection method, device and electronic equipment
CN104657706B (en) The fracture of high ferro circuit line bar and draw bail body method for detecting abnormality based on image
CN110287932A (en) Road Blocking Information Extraction Based on Deep Learning Image Semantic Segmentation
CN109543647B (en) Road abnormity identification method, device, equipment and medium
WO2019104780A1 (en) Laser radar point cloud data classification method, apparatus and device, and storage medium
WO2022036919A1 (en) Defect detection method and apparatus, and electronic device and computer storage medium
CN113688887A (en) Training and image recognition method and device of image recognition model
CN113033431B (en) Optical character recognition model training and recognition method, device, equipment and medium
CN112329881B (en) License plate recognition model training method, license plate recognition method and device
CN116403083A (en) Image processing method and device, electronic equipment and storage medium
CN108595544A (en) A kind of document picture classification method
CN110533627B (en) Method for detecting net rope breakage
CN113657248B (en) Training method, device and computer program product for face recognition model
CN112200225A (en) Steel rail damage B display image identification method based on deep convolutional neural network
CN109446061A (en) A kind of page detection method, computer readable storage medium and terminal device
CN113361420B (en) Mine fire monitoring method, device, equipment and storage medium based on robot
CN113378834B (en) Object detection method, device, apparatus, storage medium, and program product
CN114155589B (en) An image processing method, device, equipment and storage medium
CN115937868A (en) Cigarette packet label information matching method and device, electronic equipment and storage medium
CN118365990B (en) Model training method and device applied to contraband detection and electronic equipment
CN112102298B (en) Image recognition method and device, electronic device and storage medium
CN114120109A (en) Detection method of belt longitudinal tearing based on neural network
CN116129271B (en) Method and device for detecting integrity of goods shelf, electronic equipment and storage medium

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