TWI597471B - Use of image processing hanger detection device - Google Patents

Use of image processing hanger detection device Download PDF

Info

Publication number
TWI597471B
TWI597471B TW105107245A TW105107245A TWI597471B TW I597471 B TWI597471 B TW I597471B TW 105107245 A TW105107245 A TW 105107245A TW 105107245 A TW105107245 A TW 105107245A TW I597471 B TWI597471 B TW I597471B
Authority
TW
Taiwan
Prior art keywords
image
gsth
hanger
processing
line
Prior art date
Application number
TW105107245A
Other languages
Chinese (zh)
Other versions
TW201636572A (en
Inventor
Makoto Niwakawa
Yusuke Watabe
Takuro Kawabata
Original Assignee
Meidensha Electric Mfg Co Ltd
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 Meidensha Electric Mfg Co Ltd filed Critical Meidensha Electric Mfg Co Ltd
Publication of TW201636572A publication Critical patent/TW201636572A/en
Application granted granted Critical
Publication of TWI597471B publication Critical patent/TWI597471B/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60MPOWER SUPPLY LINES, AND DEVICES ALONG RAILS, FOR ELECTRICALLY- PROPELLED VEHICLES
    • B60M1/00Power supply lines for contact with collector on vehicle
    • B60M1/12Trolley lines; Accessories therefor
    • B60M1/28Manufacturing or repairing trolley lines
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques

Description

利用影像處理之吊架檢測裝置 Hanger detection device using image processing

本發明係關於一種利用影像處理檢測吊架,且檢測電車車輛之行駛位置或吊架之角度異常之利用影像處理之吊架檢測裝置。 The present invention relates to a hanger detecting device using image processing for detecting a hanger by image processing and detecting an abnormal position of a traveling position of a trolley vehicle or an angle of a hanger.

首先對檢測吊架之必要性進行說明。 First, the necessity of detecting the hanger will be described.

鐵道業者於行駛中將電車線路進行錄影,且自錄影影像確定電車之行駛位置。先前,作為確定電車之行駛位置之技術有GPS(Global Positioning System:全球定位系統)或ATC(Automatic Train Control:列車自動控制)技術,該等雖然具有無電車運行障礙之一定程度之精度,但於自影像中確定電車之行駛位置之情形時,要求進一步正確地掌握行駛位置。 The railway operator records the tram line while driving and determines the driving position of the tram from the video image. Previously, as a technique for determining the traveling position of a train, there is a GPS (Global Positioning System) or ATC (Automatic Train Control) technology, which has a certain degree of accuracy without a running obstacle of the electric train, but When determining the driving position of the train from the image, it is required to further correctly grasp the driving position.

又,正常之吊架係鉛直地架設,但若因溫度變化等而相對於鉛直方向具有傾斜,會使電車之集電特性劣化,故掌握吊架之角度亦變得重要。先前,作為檢測吊架之技術,下述專利文獻1、2為眾所周知。專利文獻1係利用自拍攝到之影像進行模板匹配處理或鉛直之邊緣檢測處理而檢測吊架之專利。又專利文獻2係自拍攝到之影像進行霍夫變換處理或亮度柱狀圖處理、或檢測2根直線之交點而檢測吊架之專利。 Further, since the normal hanger is vertically erected, if the inclination is inclined with respect to the vertical direction due to temperature changes or the like, the current collecting characteristics of the electric train are deteriorated, and it is important to grasp the angle of the hanger. Conventionally, the following Patent Documents 1 and 2 are well known as techniques for detecting a hanger. Patent Document 1 is a patent for detecting a hanger using a template matching process or a vertical edge detection process from a captured image. Further, Patent Document 2 is a patent for detecting a hanger from a captured image by performing a Hough transform process or a luminance histogram process, or detecting an intersection of two straight lines.

[先前技術文獻] [Previous Technical Literature] [專利文獻] [Patent Literature]

[專利文獻1]日本專利5402096號公報 [Patent Document 1] Japanese Patent No. 5402096

[專利文獻2]日本專利5402096號公報 [Patent Document 2] Japanese Patent No. 5402096

[專利文獻3]日本特開2013-015336號公報 [Patent Document 3] Japanese Laid-Open Patent Publication No. 2013-015336

上述專利文獻1、2所揭示之發明係只要為單純之線條構成則可進行吊架檢測,但於相交線、或重疊部位等,於圖8所示般複數根線條4、5交叉之部位,則難以檢測吊架6。 The invention disclosed in the above-mentioned Patent Documents 1 and 2 can perform the hanger detection as long as it is a simple line configuration, but the intersection of the plurality of lines 4 and 5 as shown in FIG. 8 at the intersection line or the overlapping portion. It is difficult to detect the hanger 6.

專利文獻1係利用鉛直之邊緣檢測而檢測吊架。一般而言邊緣檢測係將2像素間微分值較大之部位作為邊緣而檢測。2像素之局部性檢測有誤檢測較多之問題。 Patent Document 1 detects a hanger by using vertical edge detection. In general, the edge detection system detects a portion having a large differential value between two pixels as an edge. The locality detection of 2 pixels has a problem of more false detection.

專利文獻2係以霍夫變換檢測吊架之專利。由於霍夫變換係使用影像整體之特徵與吊架特徵之相對之投票量而找出吊架,故難以如圖8般檢測相對於影像整體顯得較小之吊架6。 Patent Document 2 is a patent for detecting a hanger by Hough transform. Since the Hough transform finds the hanger using the relative feature of the image and the voting amount of the hanger feature, it is difficult to detect the hanger 6 which is small relative to the entire image as shown in FIG.

作為關聯專利,有上述專利文獻3。此係測定架空線之磨損之發明,為以GSTH處理(參照圖4、5)進行背景去除且自動檢測架空線之磨損之部位之專利。專利文獻3之GSTH處理之特徵在於利用架空線之下表面之照明光反射為白色之點。由於作為本案之目的之吊架無反射為白色之部位,故難以使用專利文獻3而檢測吊架。 As a related patent, there is Patent Document 3 mentioned above. This invention is an invention for measuring the wear of overhead lines, and is a patent for GSTH processing (refer to Figs. 4 and 5) for background removal and automatic detection of the wear of overhead lines. The GSTH process of Patent Document 3 is characterized by the point at which the illumination light on the lower surface of the overhead line is reflected as white. Since the hanger which is the object of the present invention is not reflected as a white portion, it is difficult to detect the hanger using Patent Document 3.

鑑於此種狀況而完成之本發明,其目的在於提供一種可進一步高精度地檢測吊架之利用影像處理之吊架檢測裝置。 The present invention has been made in view of such circumstances, and an object thereof is to provide a hanger detecting device that can detect a hanger using image processing with higher precision.

為了解決上述之問題之第1發明之利用影像處理之吊架檢測裝置,其特徵在於具備線性感測器相機及影像處理部而檢測影像中之吊架,該線性感測器相機係自車輛之車頂上拍攝等間隔地設置且支持架空線之吊架;及該影像處理部,其係設置於上述車輛之內部,且解析利用上述線性感測器相機而獲得之上述影像;且 上述影像處理部包含: GSTH處理部,其對於自上述線性感測器相機輸入之線性感測器影像,於上述線性感測器相機之攝影線方向及時間方向依序進行GSTH處理,而取得強調上述影像中之上述吊架之GSTH影像;及 吊架檢測部,其自上述GSTH影像檢測吊架。 In order to solve the above-mentioned problem, the hanger detecting device using the image processing according to the first aspect of the invention is characterized in that the line sensor camera and the image processing unit are provided to detect the hanger in the image, and the line sensor camera is from the vehicle. a ceiling mounted on the roof at equal intervals and supporting the overhead line; and the image processing unit disposed inside the vehicle and analyzing the image obtained by using the line sensor camera; The image processing unit includes: The GSTH processing unit performs GSTH processing on the line sensor direction image input from the line sensor camera in sequence, and sequentially obtains the hang in the image in the photographic line direction and the time direction of the line sensor camera. GSTH imagery; and A hanger detecting unit that detects the hanger from the GSTH image.

又,第2發明之影像處理之利用影像處理之吊架檢測裝置係於第1發明中,上述GSTH處理部作為上述GSTH處理,對於上述線性感測器影像,就上述線性感測器相機之攝影線方向進行收縮處理後進行膨脹處理而取得第一GSTH影像,且取得上述線性感測器影像與上述第一GSTH影像之差分而取得差分影像,且對於上述差分影像,就時間方向進行收縮處理後進行膨脹處理而取得強調上述線性感測器影像中之上述吊架之第二GSTH影像,且 上述吊架檢測部自上述第二GSTH影像檢測上述吊架。 Further, in the first aspect of the invention, in the first aspect of the invention, the GSTH processing unit performs the imaging of the line sensor camera as the GSTH processing. After the shrinking process is performed in the line direction, the first GSTH image is obtained, and the difference between the line sensor image and the first GSTH image is obtained to obtain a difference image, and the difference image is subjected to shrink processing in the time direction. Performing an expansion process to obtain a second GSTH image that emphasizes the hanger in the line sensor image, and The hanger detecting unit detects the hanger from the second GSTH image.

又,第3發明之利用影像處理之吊架檢測裝置係於第1發明中,上述GSTH處理部作為上述GSTH處理,對於上述線性感測器影像,僅就上述線性感測器相機之攝影線方向進行收縮處理而取得gsth影像,且對於上述gsth影像,就時間方向進行收縮處理後進行膨脹處理,而取得強調上述線性感測器影像中之上述吊架之上述GSTH影像,且 上述吊架檢測部自上述GSTH影像檢測上述吊架。 According to a third aspect of the invention, in the first aspect of the invention, the GSTH processing unit is configured to perform the GSTH processing, and the line sensor direction of the line sensor camera is the photographic line direction of the line sensor camera. Performing a shrinking process to obtain a gsth image, and performing a shrinking process on the gsth image in the time direction, and then performing an expansion process to obtain the GSTH image that emphasizes the hanger in the line sensor image, and The hanger detecting unit detects the hanger from the GSTH image.

又,第4發明之影像處理之吊架檢測裝置係如於第1至3任一發明中,上述GSTH處理部係對於上述線性感測器影像進行如下之亮度反轉處理後,進行上述GSTH處理;該亮度反轉處理係針對上述線性感測器相機之攝影線方向,當該攝影線方向上主成分之亮度值為淡色之情形時,逐行將亮度值反轉,而當主成分之亮度值為濃色之情形時不反轉亮度值。 According to a fourth aspect of the invention, the GSTH processing unit performs the GSTH processing on the line sensor image by performing the following brightness inversion processing as described in any one of the first to third aspects of the invention. The brightness inversion processing is directed to the line direction of the line sensor camera, and when the brightness value of the main component in the direction of the line is light, the brightness value is inverted row by row, and the brightness of the main component is When the value is dark, the brightness value is not inverted.

根據本發明,可僅提取作為於影像中特定之方向且較特定之細度更細之直線而存在之吊架,故可高精度地檢測出僅設置角度位於管理值內之正常之吊架。 According to the present invention, it is possible to extract only the hanger which is present in a specific direction in the image and which is thinner than the specific fineness. Therefore, it is possible to accurately detect a normal hanger in which only the angle is set within the management value.

1‧‧‧車輛 1‧‧‧ Vehicles

2‧‧‧線性感測器相機 2‧‧‧Line sensor camera

3‧‧‧影像處理部 3‧‧‧Image Processing Department

4‧‧‧架空線 4‧‧‧ overhead lines

5‧‧‧吊線 5‧‧‧ hanging wire

6‧‧‧吊架 6‧‧‧ hanger

7‧‧‧結構物 7‧‧‧structures

11‧‧‧原始影像 11‧‧‧ original image

12‧‧‧收縮處理影像 12‧‧‧Shrinking images

12-m‧‧‧收縮處理緩衝區 12-m‧‧‧Shrinking buffer

13‧‧‧開影像 13‧‧‧Open image

13-m‧‧‧膨脹處理緩衝區 13-m‧‧‧Expansion processing buffer

14‧‧‧GSTH影像 14‧‧‧GSTH imagery

31‧‧‧運算裝置 31‧‧‧ arithmetic device

31a‧‧‧GSTH處理部 31a‧‧‧GSTH Processing Department

31b‧‧‧吊架檢測部 31b‧‧‧swing detection department

31c‧‧‧記憶體 31c‧‧‧ memory

32‧‧‧記錄裝置 32‧‧‧recording device

I‧‧‧線性感測器影像 I‧‧‧ line sensor image

IA‧‧‧亮度反轉影像 I A ‧‧‧Brightness reversal image

IB‧‧‧第一GSTH影像 I B ‧‧‧First GSTH image

IC‧‧‧差分影像、gsth影像 I C ‧‧‧Differential image, gsth image

ID‧‧‧第二GSTH影像、GSTH影像 I D ‧‧‧Second GSTH image, GSTH image

SD‧‧‧探索範圍 S D ‧‧‧Exploration

SL‧‧‧探索範圍 S L ‧‧‧Exploration

S1~S6‧‧‧步驟 S1~S6‧‧‧Steps

S11~S15‧‧‧步驟 S11~S15‧‧‧Steps

圖1係顯示本發明之實施例1之利用影像處理之吊架檢測裝置之設置例之說明圖。 Fig. 1 is an explanatory view showing an installation example of a hanger detecting device using image processing according to the first embodiment of the present invention.

圖2係顯示本發明之利用影像處理之吊架檢測裝置之裝置構成之方塊圖。 Fig. 2 is a block diagram showing the configuration of a device for detecting a hanger using image processing according to the present invention.

圖3係顯示用以說明GSTH處理之原始影像之例之說明圖。 Fig. 3 is an explanatory view showing an example of an original image for explaining GSTH processing.

圖4係顯示GSTH處理之收縮處理之一例之說明圖。 Fig. 4 is an explanatory view showing an example of shrinkage processing by GSTH processing.

圖5係顯示GSTH處理之膨脹處理之一例之說明圖。 Fig. 5 is an explanatory view showing an example of expansion processing of GSTH processing.

圖6係顯示將圖3所示之原始影像進行GSTH處理之結果獲得之轉換影像之說明圖。 Fig. 6 is an explanatory view showing a converted image obtained by performing GSTH processing on the original image shown in Fig. 3.

圖7係顯示本發明之實施例1之吊架檢測之流程之流程圖。 Fig. 7 is a flow chart showing the flow of the hanger detection in the first embodiment of the present invention.

圖8係顯示線性感測器影像之一例之示意圖。 Fig. 8 is a schematic view showing an example of a line sensor image.

圖9係顯示將圖8所示之線性感測器影像亮度反轉之影像之示意圖。 Fig. 9 is a view showing an image in which the brightness of the line sensor shown in Fig. 8 is inverted.

圖10係顯示將圖9所示之影像於x方向較長之區域進行GSTH處理之例之示意圖。 Fig. 10 is a view showing an example in which the image shown in Fig. 9 is subjected to GSTH processing in a region where the image is long in the x direction.

圖11係顯示取得圖9所示之影像與圖10所示之影像之差分之影像之示意圖。 Fig. 11 is a view showing an image in which the difference between the image shown in Fig. 9 and the image shown in Fig. 10 is obtained.

圖12係顯示將圖11所示之影像於y方向較長之區域進行GSTH處理之例之示意圖。 Fig. 12 is a view showing an example in which the image shown in Fig. 11 is subjected to GSTH processing in a region where the image is long in the y direction.

圖13係顯示本發明之實施例2之吊架檢測流程之流程圖。 Figure 13 is a flow chart showing the flow of the hanger detection in the second embodiment of the present invention.

以下,一面參照圖式一面對本發明之利用影像處理之吊架檢測 裝置進行說明,但本發明並非限定於以下之實施例者。 Hereinafter, the hanger detection using the image processing of the present invention will be described with reference to the drawings. The device will be described, but the present invention is not limited to the following embodiments.

於以下之說明中,記作GSTH處理之處理係顯示進行圖4所示之收縮處理後進行圖5所示之膨脹處理者,記作gsth處理之處理係將GSTH處理簡化之處理,其為顯示不進行圖5所示之膨脹處理,而僅進行圖4所示之收縮處理者。 In the following description, the processing referred to as GSTH processing shows that the expansion processing shown in FIG. 5 is performed after the shrinking processing shown in FIG. 4, and the processing described as the gsth processing is a process of simplifying the GSTH processing, which is a display. The expansion process shown in Fig. 5 is not performed, and only the shrinkage process shown in Fig. 4 is performed.

[實施例1] [Example 1] 〔使用GSTH處理之吊架檢測裝置:GSTH(A-GSTH(A))〕 [Use of GSTH-treated hanger detection device: GSTH (A-GSTH (A))]

使用自圖1至圖12,對本發明之實施例1之利用影像處理之吊架檢測裝置之詳細進行說明。 The details of the hanger detecting device using image processing according to the first embodiment of the present invention will be described with reference to Figs. 1 to 12 .

如圖1所示般,本實施例之利用影像處理之吊架檢測裝置具備設置於電車車輛1之車頂之線性感測器相機2、與設置於車輛1之內部之影像處理部3。 As shown in FIG. 1, the hanger detecting device using image processing of the present embodiment includes a line sensor camera 2 provided on the roof of the train car 1, and an image processing unit 3 provided inside the vehicle 1.

又,架空線4係由大致等間隔地設置於吊線5之複數個吊架6而支持。 Further, the overhead line 4 is supported by a plurality of hangers 6 that are provided at substantially equal intervals on the suspension wire 5.

線性感測器相機2係設置於車輛1之車頂上之側方,以其光軸正交於車輛1之行進方向之方式,且以其視野中容納一個吊架6之方式對設置角度及仰角進行設定。此處,圖1中之一點鏈線表示攝影線。利用線性感測器相機2取得之圖8所示之影像(以下、稱為線性感測器影像)I被輸入至影像處理部3。 The line sensor camera 2 is disposed on the side of the roof of the vehicle 1 in such a manner that its optical axis is orthogonal to the traveling direction of the vehicle 1 and the angle and elevation angle of the hanger 6 are accommodated in the field of view. Make settings. Here, one of the dot chain lines in Fig. 1 indicates a photographing line. The image (hereinafter referred to as a line sensor image) I shown in FIG. 8 obtained by the line sensor camera 2 is input to the image processing unit 3.

另,於圖8所示之例中於線性感測器影像I,顯示有架空線4、吊線5、及四個吊架6。 Further, in the example shown in FIG. 8, the line sensor image I is displayed with the overhead line 4, the hanging line 5, and the four hangers 6.

影像處理部3係解析線性感測器影像I而檢測吊架6者,由運算裝置31與記錄裝置32構成。 The image processing unit 3 analyzes the line sensor image I and detects the hanger 6 , and the arithmetic unit 31 and the recording device 32 are configured.

如圖2所示般,運算裝置31具備GSTH處理部31a、吊架檢測部31b、及記憶體31c。 As shown in FIG. 2, the arithmetic unit 31 includes a GSTH processing unit 31a, a hanger detecting unit 31b, and a memory 31c.

GSTH處理部31a基於自記錄裝置32經由記憶體31c而輸入之參數 與自線性感測器相機2經由記憶體31c而輸入之線性感測器影像I,相對於線性感測器影像I而進行影像亮度反轉處理及GSTH處理。 The GSTH processing unit 31a inputs parameters based on the self-recording device 32 via the memory 31c. The line sensor image I input from the line sensor camera 2 via the memory 31c is subjected to image brightness inversion processing and GSTH processing with respect to the line sensor image I.

此處,所謂影像亮度反轉處理係相對於線性感測器影像I對x方向之每1行反轉亮度值之處理。惟於在x方向主成分之亮度值為濃色之情形時,判定為夜間或隧道且設為不進行亮度反轉處理者。 Here, the image brightness inversion processing is processing for inverting the luminance value for each line in the x direction with respect to the line sensor image I. However, when the luminance value of the main component in the x direction is a rich color, it is determined that it is nighttime or tunnel and is not subjected to the luminance inversion processing.

又,所謂GSTH處理係灰階頂帽處理(Gray Scale-Top Hat処理),即如其名般對灰階影像施加頂帽處理者。所謂頂帽處理係對原始影像將開(opening)影像(以相同次數收縮→膨脹處理後之影像)進行減去處理者。 Further, the GSTH processing is a grayscale top hat processing (Gray Scale-Top Hat processing), that is, a top hat handler is applied to a grayscale image as its name suggests. The top hat processing is performed by subtracting the image from the original image (the image is shrunk by the same number of times → the image after the expansion process).

以下,使用自圖3至圖6對GSTH處理部31a所為之GSTH處理簡單地進行說明。GSTH處理係由以下之流程進行。 Hereinafter, the GSTH process for the GSTH processing unit 31a will be briefly described using FIGS. 3 to 6. The GSTH process is performed by the following process.

(1)如圖4所示般,對於圖3所示之原始影像11,進行一面將N像素(於圖3中為三像素)之範圍(以下、稱為探索範圍)SD-m(m=1~M)偏移、一面分別將最暗之像素之亮度值寫入至其他緩衝區(buffer)(收縮處理緩衝區)12-m之收縮處理,而作成收縮處理影像12(12-M)。 (1) As shown in FIG. 4, for the original image 11 shown in FIG. 3, a range of N pixels (three pixels in FIG. 3) (hereinafter referred to as a search range) S D -m (m) is performed. =1~M) Offset, one side writes the brightness value of the darkest pixel to the other buffer (shrink processing buffer) 12-m shrink processing, and creates the shrink processing image 12 (12-M ).

(2)接著,如圖5所示般,相對於收縮處理影像12,進行一面將N像素(於本實施例中為三像素)之範圍(以下為探索範圍)SL-m偏移、一面分別將最亮之像素之亮度值寫入至其他緩衝區(膨脹處理緩衝區)13-m之膨脹處理,而作成開影像13(13-M)。 (2) Next, as shown in FIG. 5, the range of the N pixels (three pixels in the present embodiment) (hereinafter referred to as the search range) S L -m is shifted with respect to the contraction processed image 12 The brightness value of the brightest pixel is respectively written into the expansion processing of the other buffer (expansion processing buffer) 13-m, and the open image 13 (13-M) is created.

(3)接著自原始影像減去以(2)作成之開影像13(13-M)。 (3) Then, the open image 13 (13-M) created by (2) is subtracted from the original image.

藉由進行以上之處理,可獲得如圖6所示般強調被影像內之較暗部分包圍之較亮之像素之GSTH影像14。 By performing the above processing, a GSTH image 14 that emphasizes brighter pixels surrounded by darker portions of the image as shown in FIG. 6 can be obtained.

於GSTH處理部31a中經影像亮度反轉處理後、經實施GSTH處理之圖12所示之GSTH影像(轉換影像)ID,經由記憶體31c而被輸入至吊架檢測部31b。 The GSTH image (converted image) I D shown in FIG. 12 subjected to the GSTH processing after the image brightness inversion processing in the GSTH processing unit 31a is input to the hanger detecting unit 31b via the memory 31c.

吊架檢測部31b基於自記錄裝置32經由記憶體31c而輸入之參數與 自GSTH處理部31a經由記憶體31c而輸入之轉換影像,利用二元化處理等而檢測吊架6。 The hanger detecting unit 31b inputs parameters based on the self-recording device 32 via the memory 31c. The converted image is input from the GSTH processing unit 31a via the memory 31c, and the hanger 6 is detected by a binarization process or the like.

此處,由於架設之吊架6係以特定之等間距(距離)設置,故可藉由將檢測之吊架6之數量進行計數而掌握影像中之位置。 Here, since the erected hangers 6 are disposed at a specific equidistant distance (distance), the position in the image can be grasped by counting the number of the detected hangers 6.

又,如圖12所示般,於本實施例中僅檢測鉛直地設置之吊架6,不檢測傾斜之吊架6。又電桿間之吊架6之數量係預先作為設備資料而管理。因此藉由另行與電桿檢測信號連動,可於每個電桿之吊架6之根數較少之情形時,作為異常角度之吊架6而檢測出。 Further, as shown in Fig. 12, in the present embodiment, only the hanger 6 which is vertically disposed is detected, and the inclined hanger 6 is not detected. The number of hangers 6 between the poles is managed in advance as equipment information. Therefore, by interlocking with the pole detection signal, it can be detected as the hanger 6 of the abnormal angle when the number of the hangers 6 of each pole is small.

利用吊架檢測部31b而檢測之吊架6之資訊係作為吊架檢測結果而向記憶體31c輸出。 The information of the hanger 6 detected by the hanger detecting unit 31b is output to the memory 31c as a result of the hanger detection.

記憶體31c將各種資料暫時地保管。於記錄裝置32中儲存各種資料。另,上述之參數係用以設定探索範圍之像素數N、於進行GSTH處理時必須之像素數w、h或、二元化臨限值等。 The memory 31c temporarily stores various materials. Various materials are stored in the recording device 32. In addition, the above parameters are used to set the number of pixels N of the search range, the number of pixels w, h or the binarization threshold value necessary for performing GSTH processing.

以下,基於圖7說明本實施例之利用影像處理之吊架檢測裝置之處理之流程。 Hereinafter, the flow of processing of the hanger detecting device using image processing of the present embodiment will be described based on FIG.

如圖7所示般,於本實施例之利用影像處理之吊架檢測裝置中,首先自線性感測器相機2輸入如圖8示出一例之線性感測器影像I(步驟S1)。另,圖8所示之x方向與圖1之線性感測器相機2之攝影線對應。又,圖8所示之y方向係以線性感測器相機2逐行地進行拍攝之時間。自等速行駛之車輛1拍攝到之影像如圖8所示。 As shown in FIG. 7, in the hanger detecting device using image processing of the present embodiment, first, an example of the line sensor image I shown in FIG. 8 is input from the line sensor camera 2 (step S1). In addition, the x direction shown in FIG. 8 corresponds to the photographing line of the line sensor camera 2 of FIG. Moreover, the y direction shown in FIG. 8 is the time when the line sensor camera 2 performs shooting line by line. The image captured by the vehicle 1 at constant speed is shown in Fig. 8.

接著,於GSTH處理部31a進行相對於線性感測器影像I反轉亮度值之處理(步驟S2)。藉此,獲得如圖9所示之亮度反轉影像IA。另,如上述般亮度反轉係就線性感測器影像I之x方向之每1行進行處理,且於x方向上主成分之亮度值為濃色之情形時,判定為夜間或隧道且不進行亮度反轉,故可使圖8之上部所示之背景為濃色之隧道部位與天空等之背景為淡色之區間同化。 Next, the GSTH processing unit 31a performs a process of inverting the luminance value with respect to the line sensor image I (step S2). Thereby, the luminance inversion image I A as shown in FIG. 9 is obtained. Further, as described above, the luminance inversion is processed every line of the x-direction of the line sensor image I, and when the luminance value of the main component in the x direction is dark, it is determined to be nighttime or tunnel and not Since the brightness is reversed, the tunnel portion where the background shown in the upper portion of Fig. 8 is dark and the background of the sky or the like is assimilated.

接著,同樣於GSTH處理部31a中,將圖8所示之亮度反轉影像IA向x方向進行GSTH處理(步驟S3)。即,實施在x方向上較長之w×1[像素]之區域內取得最暗之像素之圖4所示之收縮處理,且接著實施取得最亮像素之圖5所示之膨脹處理。藉此獲得將圖10所示之白色部位就x方向以寬度w以下提取出之第一GSTH影像IB。又w係與架空線4等之線條之寬度對應,且實驗性算出。於圖10所示之例中,第一GSTH影像IB成為相對於亮度反轉影像IA將吊架6及電桿或建築物等之結構物(以下、稱為干擾)7去除後之影像。 Next, in the GSTH processing unit 31a, the luminance inversion image I A shown in FIG. 8 is subjected to GSTH processing in the x direction (step S3). That is, the shrinking process shown in FIG. 4 in which the darkest pixel is obtained in the region of w × 1 [pixel] which is long in the x direction is performed, and then the expansion process shown in FIG. 5 for obtaining the brightest pixel is performed. Thereby, the first GSTH image I B obtained by extracting the white portion shown in FIG. 10 in the x direction by the width w or less is obtained. Further, w is corresponding to the width of the line of the overhead line 4, and is experimentally calculated. In the example shown in FIG. 10, the first GSTH image I B is an image obtained by removing the structure of the hanger 6 and the pole or the building (hereinafter referred to as interference) 7 with respect to the brightness inversion image I A . .

接著,同樣於GSTH處理部31a中,自亮度反轉影像IA減去第一GSTH影像IB,獲得圖11所示之差分影像IC(步驟S4)。於圖11所示之例中,差分影像IC成為將吊架6及電桿或建築物等之干擾提取後之影像。又於以差分處理可能產生負的區域之情形時,將0以下進位為0。 Next, similarly to the GSTH processing unit 31a, the first GSTH image I B is subtracted from the luminance inverted image I A to obtain the difference image I C shown in FIG. 11 (step S4). In the example shown in FIG. 11, the difference image I C is an image obtained by extracting interference from the hanger 6 and a pole or a building. Further, when the differential processing may result in a negative region, the carry below 0 is 0.

接著,同樣於GSTH處理部31a中,將差分影像IC向y方向進行GSTH處理(步驟S5)。即,於在y方向較長之1×h[像素]之區域內實施取得最暗之像素之圖4所示之收縮處理,接著實施取得最亮像素之圖5所示之膨脹處理。藉此如圖12所示獲得將白色部於y方向且以h以下之長度提取出之影像(以下為第二GSTH影像)ID。另h係與吊架6之直徑對應,且實驗性地算出。於圖12所示之例中,第二GSTH影像ID成為相對於差分影像IC僅提取出吊架6之影像。 Next, similarly to the GSTH processing unit 31a, the difference image I C is subjected to GSTH processing in the y direction (step S5). That is, the shrinking process shown in FIG. 4 for obtaining the darkest pixel is performed in the region of 1×h [pixel] which is longer in the y direction, and then the expansion process shown in FIG. 5 for obtaining the brightest pixel is performed. Thereby, as shown in FIG. 12, an image (hereinafter referred to as a second GSTH image) I D obtained by extracting the white portion in the y direction and having a length of h or less is obtained. The other h corresponds to the diameter of the hanger 6 and is experimentally calculated. In the example shown in FIG. 12, the second GSTH image I D is an image in which only the hanger 6 is extracted with respect to the difference image I C .

第二GSTH影像ID係作為轉換影像經由記憶體31c向吊架檢測部31b輸入。 The second GSTH image I D is input as a converted image to the hanger detecting unit 31b via the memory 31c.

接著,於吊架檢測部31b中,自圖12所示之第二GSTH影像ID,使用二元化處理等而檢測吊架6(步驟S6)。由於架設之吊架6係以特定之等間隔(距離)設置,故將檢測之吊架6之數量進行計數且掌握影像中之位置。 Next, in the hanger detecting unit 31b, the hanger 6 is detected using the binarization processing or the like from the second GSTH image I D shown in FIG. 12 (step S6). Since the erected hangers 6 are arranged at specific intervals (distances), the number of the detected hangers 6 is counted and the position in the image is grasped.

進行以上之步驟P1~步驟P6之處理直到全部之線性感測器影像I 之輸入結束為止。 Perform the above steps P1 to P6 until all the line sensor images I The input is completed.

於如此構成之本實施例之利用影像處理之吊架檢測裝置中,GSTH處理藉由組合圖4所示之收縮處理與圖5所示之膨脹處理,且自w×1[像素]與1×h[像素]之區域求出直線,可自亮度反轉影像IA中顯現之直線之中,僅提取特定之方向且較特定之細度更細之直線。 In the hanger detecting apparatus using image processing of the present embodiment thus constituted, the GSTH processing is combined with the contraction processing shown in FIG. 4 and the expansion processing shown in FIG. 5, and from w×1 [pixel] and 1×. A straight line is obtained in the area of h [pixel], and only a straight line which is specific to the specific direction and is finer than the specific fineness can be extracted from the straight line appearing in the luminance inversion image I A .

因此,於本實施例之利用影像處理之吊架檢測裝置有活用GSTH之特徵之以下優點。 Therefore, the hanger detecting device using image processing in the present embodiment has the following advantages in utilizing the feature of GSTH.

.可僅檢測以特定之方向與特定之粗細拍攝到之吊架6。 . It is possible to detect only the hanger 6 photographed in a specific direction and a specific thickness.

.可排除隧道坑道口或電桿7等與吊架6具有不同之特徵之干擾7而僅檢測吊架6。 . It is possible to eliminate the disturbance 7 of the tunnel tunnel opening or the pole 7 and the like having different characteristics from the hanger 6, and only detect the hanger 6.

.於本實施例中僅檢測設置於鉛直方向之正常之吊架6,不檢測設置角度為管理值外之非正常之傾斜之吊架6。因此,藉由將於本實施例中檢測之吊架6之根數、與預先作為設備資料予以管理之每根電桿之正常之吊架6之根數進行比較,亦可檢測異常之吊架6。 . In the present embodiment, only the normal hanger 6 disposed in the vertical direction is detected, and the hanger 6 having an abnormal inclination other than the management value is not detected. Therefore, by comparing the number of the hangers 6 to be detected in the present embodiment with the number of the normal hangers 6 of each of the poles previously managed as the equipment data, the abnormal hanger can also be detected. 6.

[實施例2] [Embodiment 2] 〔使用簡化之GSTH處理之吊架檢測裝置:GSTH(gsth(A))〕 [A hanger detection device using simplified GSTH processing: GSTH (gsth(A))]

以下,使用自圖1至圖6及自圖8至圖13,對本發明之實施例2之利用影像處理之吊架檢測裝置進行說明。本實施例之利用影像處理之吊架檢測裝置係於GSTH處理部31a之處理經簡化之點與實施例1不同。關於裝置構成係與實施例1之影像處理之吊架檢測裝置相同,以下,省略重複之說明,以影像處理部3之處理為中心進行說明。 Hereinafter, a hanger detecting device using image processing according to a second embodiment of the present invention will be described with reference to FIGS. 1 to 6 and FIGS. 8 to 13. The hanger detection device using image processing in the present embodiment is different from the first embodiment in that the processing by the GSTH processing unit 31a is simplified. The device configuration is the same as that of the image processing device of the first embodiment, and the description of the image processing unit 3 will be mainly described below.

基於圖13,對本實施例之影像處理之吊架檢測裝置之處理之流程進行說明。 The flow of the processing of the hanger detecting device for image processing of the present embodiment will be described based on Fig. 13 .

如圖13所示般,於本實施例之利用影像處理之吊架檢測裝置中,首先自線性感測器相機2輸入於圖8顯示一例之線性感測器影像I(步驟S11),接著,於GSTH處理部31a中,進行對於線性感測器影像 I、針對x方向上主成分之亮度值為淡色之攝影線將亮度值反轉之處理(步驟S12)。藉此,獲得圖9所示之亮度反轉影像IAAs shown in FIG. 13, in the hanger detecting device using image processing of the present embodiment, first, an example of the line sensor image I is shown in FIG. 8 from the line sensor camera 2 (step S11), and then, In the GSTH processing unit 31a, a process of inverting the luminance value for the line sensor image I and the photographic line whose luminance value of the main component in the x direction is light is inverted (step S12). Thereby, the luminance inversion image I A shown in FIG. 9 is obtained.

接著,同樣於GSTH處理部31a中,將圖8所示之亮度反轉影像IA沿x方向進行gsth處理(步驟S13)。即,實施於x方向上較長之w×1[像素]之區域內取得最暗之像素之圖4所示之收縮處理,另一方面不實施取得最亮之像素之圖5所示之膨脹處理。藉此獲得圖11所示之將白色部位就x方向以寬度w以下提取出之第一gsth影像IC。另w係與架空線4等之線條之寬度對應,且實驗性地算出。 Then, similarly to the GSTH processing unit 31a, the luminance inversion image IA shown in FIG. 8 is subjected to gsth processing in the x direction (step S13). That is, the shrinking process shown in FIG. 4 for obtaining the darkest pixel in the region of w×1 [pixel] which is long in the x direction is performed, and the expansion shown in FIG. 5 for obtaining the brightest pixel is not performed. deal with. Thereby, the first gsth image I C extracted from the white portion in the x direction by the width w or less as shown in FIG. 11 is obtained. The other w is corresponding to the width of the line of the overhead line 4 and the like, and is experimentally calculated.

接著,同樣於GSTH處理部31a,將gsth影像IC向y方向進行GSTH處理(步驟S14)。即,實施於y方向上較長之1×h[像素]之區域內取得最暗像素之圖4所示之收縮處理,接著實施取得最亮像素之圖5所示之膨脹處理。藉此獲得圖12所示之將白色部位就y方向且以h以下之長度提取出之GSTH影像ID。又h係與吊架6之直徑對應,且實驗性算出。 Next, similarly to the GSTH processing unit 31a, the gsth image I C is subjected to GSTH processing in the y direction (step S14). That is, the shrinking process shown in FIG. 4 in which the darkest pixel is obtained in the region of 1×h [pixel] which is long in the y direction is performed, and then the expansion process shown in FIG. 5 for obtaining the brightest pixel is performed. Thereby, the GSTH image I D obtained by extracting the white portion in the y direction and having a length of h or less as shown in FIG. 12 is obtained. Further, the h system corresponds to the diameter of the hanger 6, and is experimentally calculated.

GSTH影像ID係作為轉換影像經由記憶體31c而向吊架檢測部31b輸入。 The GSTH image I D is input as a converted image to the hanger detecting unit 31b via the memory 31c.

接著,於吊架檢測部31b中,自圖12所示之GSTH影像ID,使用二元化處理等而檢測吊架6(步驟S15)。由於吊架6係以特定之間隔(距離)設置,故可藉由將檢測出之吊架6進行計數而掌握車輛1之現在位置,又,由於吊架6之設置角度有管理值,故檢查是否為特定之設置角度。 Next, in the hanger detecting unit 31b, the hanger 6 is detected from the GSTH image I D shown in FIG. 12 using a binarization process or the like (step S15). Since the hangers 6 are arranged at a specific interval (distance), the current position of the vehicle 1 can be grasped by counting the detected hangers 6, and since the installation angle of the hangers 6 has a management value, inspection is performed. Whether to set the angle for a specific one.

進行以上之步驟P11~步驟P15之處理直到全部之線性感測器影像I之輸入結束為止。 The above steps P11 to P15 are performed until the input of all the line sensor images I is completed.

於如此構成之本實施例之利用影像處理之吊架檢測裝置中,藉由將亮度反轉影像IA向x方向進行gsth處理(僅實施圖4所示之收縮處理)而將處理簡化,與實施例1相比有可將吊架檢測處理高速化之優點。另,藉由進行gsth處理,雖然於影像上檢測出之吊架6會變短, 但本實施例係以判定吊架6之有無為目的,故即使檢測之吊架6變短亦無影響。 In the hanger detecting apparatus using image processing according to the present embodiment configured as described above, the processing is simplified by performing the gsth processing (only performing the contraction processing shown in FIG. 4) in the x direction in the luminance inversion image I A , and Compared with the first embodiment, there is an advantage that the hanger detection processing can be speeded up. Further, by performing the gsth processing, although the hanger 6 detected on the image is shortened, the present embodiment is intended to determine the presence or absence of the hanger 6, so that the hanger 6 is detected to have a short effect.

[產業上之可利用性] [Industrial availability]

本發明係較佳應用於利用影像處理之吊架檢測裝置者。 The present invention is preferably applied to a hanger detecting device using image processing.

2‧‧‧線性感測器相機 2‧‧‧Line sensor camera

31a‧‧‧GSTH處理部 31a‧‧‧GSTH Processing Department

31b‧‧‧吊架檢測部 31b‧‧‧swing detection department

31c‧‧‧記憶體 31c‧‧‧ memory

Claims (4)

一種利用影像處理之吊架檢測裝置,其特徵在於具備線性感測器相機及影像處理部而檢測影像中之吊架,上述線性感測器相機係自車輛之車頂上拍攝等間隔地設置且支持架空線之吊架;上述影像處理部係設置於上述車輛之內部,且解析利用上述線性感測器相機而獲得之上述影像;且上述影像處理部包含:GSTH處理部,其對於自上述線性感測器相機輸入之線性感測器影像,於上述線性感測器相機之攝影線方向及時間方向依序進行GSTH處理,而取得強調上述影像中之上述吊架之GSTH影像;及吊架檢測部,其自上述GSTH影像檢測吊架。 A hanger detecting device using image processing, comprising: a line sensor camera and an image processing unit for detecting a hanger in an image, wherein the line sensor camera is set at an equal interval from a roof of a vehicle and supports a hangar for an overhead line; the image processing unit is disposed inside the vehicle and analyzes the image obtained by using the line sensor camera; and the image processing unit includes a GSTH processing unit for sexy from the line The line sensor sensor image input by the camera is sequentially subjected to GSTH processing in the direction and time direction of the line of the line sensor camera, and obtains the GSTH image of the hanger in the image; and the hanger detecting unit It detects the hanger from the above GSTH image. 如請求項1之利用影像處理之吊架檢測裝置,其中上述GSTH處理部作為上述GSTH處理,對於上述線性感測器影像,就上述線性感測器相機之攝影線方向進行收縮處理後進行膨脹處理而取得第一GSTH影像,且取得上述線性感測器影像與上述第一GSTH影像之差分而取得差分影像,且對於上述差分影像,就時間方向進行收縮處理後進行膨脹處理而取得強調上述線性感測器影像中之上述吊架之第二GSTH影像,且上述吊架檢測部自上述第二GSTH影像檢測上述吊架。 The hanger detecting device using image processing according to claim 1, wherein the GSTH processing unit performs the expansion processing on the line sensor image in the direction of the photographing line of the line sensor camera as the GSTH processing. And obtaining a first GSTH image, obtaining a difference image between the line sensor image and the first GSTH image, and obtaining a difference image in the time direction, performing a shrinking process on the difference image, and performing an expansion process to obtain the line sexy a second GSTH image of the hanger in the image of the detector, and the hanger detecting unit detects the hanger from the second GSTH image. 如請求項1之利用影像處理之吊架檢測裝置,其中上述GSTH處理部作為上述GSTH處理,對於上述線性感測器影像,僅就上述線性感測器相機之攝影線方向進行收縮處理而取得gsth影像,且對於上述gsth影像,就時間方向進行收縮處理後進行膨脹處理,而取得強調上述線性感測器影像中之上述吊架之上述GSTH影 像,且上述吊架檢測部自上述GSTH影像檢測上述吊架。 The hanger detecting device using image processing according to claim 1, wherein the GSTH processing unit performs the GSTH processing, and the line sensor image is subjected to contraction processing only in the line direction of the line sensor camera to obtain gsth And for the above-mentioned gsth image, the shrinking process is performed in the time direction, and then the expansion process is performed, and the GSTH image of the hanger in the image of the line sensor is obtained. For example, the hanger detecting unit detects the hanger from the GSTH image. 如請求項1至3中任一項之利用影像處理之吊架檢測裝置,其中上述GSTH處理部對於上述線性感測器影像,進行如下之亮度反轉處理後,進行上述GSTH處理;上述亮度反轉處理係針對上述線性感測器相機之攝影線方向,當該攝影線方向上主成分之亮度值為淡色之情形時,逐行將亮度值反轉,而當主成分之亮度值為濃色之情形時不反轉亮度值。 The hanger detecting device using image processing according to any one of claims 1 to 3, wherein the GSTH processing unit performs the GSTH processing on the line sensor image by performing the following brightness inversion processing; The rotation processing is directed to the photographic line direction of the above-mentioned line sensor camera. When the luminance value of the main component in the direction of the photographic line is light, the luminance value is inverted line by line, and when the luminance value of the main component is dark In the case of the case, the brightness value is not inverted.
TW105107245A 2015-03-13 2016-03-09 Use of image processing hanger detection device TWI597471B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015050139A JP6427797B2 (en) 2015-03-13 2015-03-13 Hanger detection device by image processing

Publications (2)

Publication Number Publication Date
TW201636572A TW201636572A (en) 2016-10-16
TWI597471B true TWI597471B (en) 2017-09-01

Family

ID=56919976

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105107245A TWI597471B (en) 2015-03-13 2016-03-09 Use of image processing hanger detection device

Country Status (6)

Country Link
JP (1) JP6427797B2 (en)
CN (1) CN107428261B (en)
MY (1) MY186370A (en)
SG (1) SG11201707279TA (en)
TW (1) TWI597471B (en)
WO (1) WO2016147899A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6644720B2 (en) * 2017-01-20 2020-02-12 公益財団法人鉄道総合技術研究所 Train wire fitting detection system and its detection method
JP7043761B2 (en) * 2017-09-06 2022-03-30 株式会社明電舎 Utility pole distance measuring device
JP6920979B2 (en) * 2017-12-25 2021-08-18 株式会社明電舎 Overhead wire fitting detection device and method
CN109019335B (en) * 2018-09-04 2019-10-11 大连理工大学 A kind of Hoisting Security distance detection method based on deep learning
JP2020149286A (en) * 2019-03-13 2020-09-17 株式会社明電舎 Overhead wire fitting detection device and overhead wire fitting detection method
JP7299041B2 (en) * 2019-03-13 2023-06-27 株式会社明電舎 Overhead wire fitting detection device and overhead wire fitting detection method
CN112150544B (en) * 2020-09-24 2024-03-19 西门子(中国)有限公司 Hook in-place detection method, device and computer readable medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4635657B2 (en) * 2005-03-11 2011-02-23 株式会社明電舎 Trolley wire wear measuring device by image processing
JP2007271446A (en) * 2006-03-31 2007-10-18 Meidensha Corp Instrument for measuring abrasion in trolley wire by imaging processing
CN101562691B (en) * 2008-04-17 2010-12-08 鸿富锦精密工业(深圳)有限公司 Image processing device and method
JP5402272B2 (en) * 2009-06-11 2014-01-29 株式会社明電舎 Vehicle position measuring device for electric railway maintenance
CN201534503U (en) * 2009-06-15 2010-07-28 湖南科创信息技术股份有限公司 Dynamic deviation detector for key parts of overhead contact line
JP5423567B2 (en) * 2010-04-30 2014-02-19 株式会社明電舎 Vehicle position measuring device for electric railway maintenance
JP5811637B2 (en) * 2011-06-30 2015-11-11 株式会社明電舎 Trolley wire wear measuring device by image processing

Also Published As

Publication number Publication date
WO2016147899A1 (en) 2016-09-22
TW201636572A (en) 2016-10-16
MY186370A (en) 2021-07-18
JP2016168937A (en) 2016-09-23
CN107428261B (en) 2019-12-24
CN107428261A (en) 2017-12-01
SG11201707279TA (en) 2017-10-30
JP6427797B2 (en) 2018-11-28

Similar Documents

Publication Publication Date Title
TWI597471B (en) Use of image processing hanger detection device
JP5494286B2 (en) Overhead position measuring device
TWI480502B (en) According to the image processing of the overhead line wear measurement device
JP2008299458A (en) Vehicle monitoring apparatus and vehicle monitoring method
JP2004145501A (en) Road white line recognizing device
JP2536986B2 (en) Inter-vehicle distance detector
JP6920979B2 (en) Overhead wire fitting detection device and method
JP5629478B2 (en) Pantograph monitoring device
JP7043787B2 (en) Object detection system
JP2020149286A (en) Overhead wire fitting detection device and overhead wire fitting detection method
US20150139530A1 (en) Apparatus and method for detecting defect of image having periodic pattern
JP2020004171A (en) Line detection apparatus for vehicle and method thereof
JP2008225953A (en) White line recognition device and method
JP2014067320A (en) Stereo camera device
JP5945780B2 (en) Trolley wire illumination reflected light distribution map creation method and trolley wire wear measuring device using the method
JP6852472B2 (en) Sliding surface width detection device and method for trolley wire
JP2009198280A (en) Overhead electric wire measurement apparatus
JP2004185537A (en) System for detecting moving vehicle
Kim et al. A feasibility study on crack identification utilizing images taken from camera mounted on a mobile robot
JP5470719B2 (en) Image processing device
JP5835287B2 (en) Image analysis apparatus and image analysis method
TWI679137B (en) Telephone pole distance measuring device
JP2779624B2 (en) Stoppage vehicle detection method
JPH09212791A (en) Method and device for monitoring road surface
JP6841096B2 (en) Sliding surface width detection device and method for trolley wire