JP6717666B2 - Inspection image generator - Google Patents

Inspection image generator Download PDF

Info

Publication number
JP6717666B2
JP6717666B2 JP2016109682A JP2016109682A JP6717666B2 JP 6717666 B2 JP6717666 B2 JP 6717666B2 JP 2016109682 A JP2016109682 A JP 2016109682A JP 2016109682 A JP2016109682 A JP 2016109682A JP 6717666 B2 JP6717666 B2 JP 6717666B2
Authority
JP
Japan
Prior art keywords
image
inspection
railway vehicle
vehicle
captured image
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
JP2016109682A
Other languages
Japanese (ja)
Other versions
JP2017215823A (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.)
East Japan Railway Co
Original Assignee
East Japan Railway Co
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 East Japan Railway Co filed Critical East Japan Railway Co
Priority to JP2016109682A priority Critical patent/JP6717666B2/en
Publication of JP2017215823A publication Critical patent/JP2017215823A/en
Application granted granted Critical
Publication of JP6717666B2 publication Critical patent/JP6717666B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Description

本発明は、鉄道車両の外観検査用に撮影画像を生成する検査用画像生成装置に関する。 The present invention relates to an inspection image generation device that generates a captured image for a visual inspection of a railway vehicle.

以前より、鉄道機関では鉄道車両の外観に異常がないか定期的に検査が行われている。外観検査では、検査員が車両の下に潜ったり、屋根上に登ったりして、主に目視により異常がないか確認が行われる。異常が認められた場合には、速やかに関係部署に連絡がなされ、修復の手配がなされる。このような検査作業は、多くの手間を要し、検査員の危険を伴うものであった。 Traditionally, railway organizations regularly inspect the appearance of railway cars for abnormalities. In the visual inspection, the inspector dives under the vehicle or climbs on the roof, and it is checked mainly by visual inspection whether there is any abnormality. If an abnormality is found, the relevant departments will be contacted immediately and repairs will be arranged. Such inspection work requires a lot of trouble and is dangerous for the inspector.

そこで、従来、撮影装置を用いて鉄道車両を撮影し、撮影画像から鉄道車両の外観の検査を行うことが提案されている(例えば特許文献1、2を参照)。特許文献1の技術は、鉄道車両の特定部位を所定のアングルから専用のカメラで撮影し、その撮影画像を基準画像と比較して異常の有無を判別するものである。特許文献2の技術は、線路上を走る列車を撮影して列車全体の画像を合成し、その中に所定の検査領域を設定して正常な列車画像と比較することで、異常の有無を判別するものである。列車全体の画像は、列車の側方から高速連写して得た複数の画像を切り貼りして作成される。 Therefore, conventionally, it has been proposed to photograph a railway vehicle using a photographing device and inspect the appearance of the railway vehicle from the photographed image (see, for example, Patent Documents 1 and 2). The technique of Patent Document 1 is for photographing a specific portion of a railway vehicle from a predetermined angle with a dedicated camera, and comparing the photographed image with a reference image to determine whether there is an abnormality. The technology of Patent Document 2 determines the presence or absence of an abnormality by photographing a train running on a track, synthesizing an image of the entire train, setting a predetermined inspection area in the image, and comparing the image with a normal train image. To do. The image of the entire train is created by cutting and pasting a plurality of images obtained by high-speed continuous shooting from the side of the train.

他方、工業製品等の外観検査の分野において、ラインスキャンカメラを用いた検査システムが一般に知られている。ラインスキャンカメラは、移動する被写体の映像を1ラインの光学像ごと取り込み、取り込まれた1ラインの撮影画像を連続的につなぎ合わせて二次元画像を得る。ラインスキャンカメラによれば、一方向に長い被写体の撮影を連続的に行える。加えて、光学像を電気信号に変える撮像処理を一次元の光学像ごとに行うため、二次元の撮像を行うエリアカメラと比べて非常に高い分割能が得られるという特徴がある。 On the other hand, an inspection system using a line scan camera is generally known in the field of appearance inspection of industrial products and the like. The line scan camera captures an image of a moving subject together with one line of an optical image and continuously captures the captured one line of captured images to obtain a two-dimensional image. According to the line scan camera, it is possible to continuously shoot a subject long in one direction. In addition, since the imaging process of converting an optical image into an electric signal is performed for each one-dimensional optical image, it is possible to obtain a very high division ability as compared with an area camera that performs two-dimensional imaging.

特開平5−143714号公報JP-A-5-143714 特開2013−53875号公報JP, 2013-53875, A

撮影装置を用いて鉄道車両の外観検査を行う上記従来の提案には、幾つかの課題があった。例えば特許文献1の検査装置では、鉄道車両の画像を特定の部位ごとに専用のカメラで所定のアングルから撮影するため、必要な撮影機材が多く、コストが高騰するという課題がある。加えて、検査部位を個別に撮影するため撮影処理が非常に煩雑になるという課題がある。鉄道車両の検査箇所が増えると、それに伴ってコストと煩雑さが倍増する。 The above-mentioned conventional proposals for inspecting the appearance of a railway vehicle using an image capturing device have some problems. For example, in the inspection device of Patent Document 1, since an image of a railway vehicle is taken from a predetermined angle with a dedicated camera for each specific part, there is a problem that a large amount of imaging equipment is required and the cost increases. In addition, there is a problem that the imaging process becomes very complicated because the inspection region is individually imaged. As the number of inspection points on railway vehicles increases, the cost and complexity increase accordingly.

また、特許文献2の検査装置では、撮影処理は比較的に容易になるが、分割能が高く歪みの少ない列車の画像を得ることが難しく、目視による検査と比較して、検査精度が低くなるという課題がある。特許文献2に示されるように、列車の走行中に高速連写を行うと、列車の移動速度と撮影タイミングのばらつき等により、1つの撮影画像の中心に写る箇所と、中心から外れた横方に写る箇所とが、撮影のたびに異なることになる。一般的な撮影画像では、画像中心部分はその箇所を真っ直ぐ見た形状を表示するが、横方の部分はその箇所を左右斜めから見た形状を表示することになり、形状の相違が生じる。このため、このような画像を合成して得た列車の撮影画像には、部分的に形状の歪みが表れ、さらに、形状の歪みの表れる箇所が撮影のたびごとに異なり一定しない。遠目から列車を撮影することでこのような形状の歪みを小さくできるが、その場合、撮影画像の分割能が非常に低くなる。 Further, with the inspection device of Patent Document 2, although the imaging process is relatively easy, it is difficult to obtain an image of a train with high dividing ability and little distortion, and the inspection accuracy is lower than that of visual inspection. There is a problem called. As shown in Patent Document 2, when high-speed continuous shooting is performed while a train is running, a portion that appears in the center of one captured image and a lateral position that is off the center due to variations in the moving speed of the train and the shooting timing. Each time you take a picture, it will be different from the part shown in. In a general captured image, the central part of the image displays the shape of the part viewed straight, but the lateral part displays the shape of the part viewed diagonally from left to right, resulting in a difference in shape. For this reason, in a trained image obtained by synthesizing such images, shape distortion partially appears, and the location where the shape distortion appears is different for each shooting and is not constant. The distortion of such a shape can be reduced by photographing the train from a distance, but in that case, the dividing ability of the photographed image becomes extremely low.

一方、ラインスキャンカメラを用いることで、左右斜めから見た形状が画像に含まれることを回避することができる。しかしながら、ラインスキャンカメラは、例えばライン生産工程などで一様に照らされ且つ正確な速度で搬送されてくる工業製品など、撮影環境が整った状況の被写体を撮影対象とするのが一般的であった。そして、このように環境の整った状況での撮影により、歪みのない高分割能の撮影画像が得られていた。 On the other hand, by using the line scan camera, it is possible to avoid that the shape viewed from the left and right sides is included in the image. However, a line scan camera generally targets a subject in a shooting environment, such as an industrial product that is uniformly illuminated and conveyed at an accurate speed in a line production process. It was Then, a photographed image with high resolution without distortion has been obtained by photographing in such an environment.

撮影画像により外観検査を行う場合、例えば鉄道車両が車両基地へ入区する際などに撮影を行えると、検査のためだけに車両を動かす手間と時間とが省けて都合がよい。しかしながら、このような条件では鉄道車両を正確に一定の速度で移動することは難しい。また、レールが敷設される地盤には強固な箇所と比較的に軟弱な箇所とが存在する。このため、レール上を鉄道車両が走行する際、鉄道車両は自重によって僅かに上下に変位する。さらに、台車と車体との間には空気バネなどのサスペンションが設けられているので、サスペンションの作用に起因する車体の上下動も生じる。従って、何ら工夫がないと、このように走行する鉄道車両をラインスキャンカメラにより撮影しても、高い分解能で且つ歪みの少ない撮影画像を得ることは困難であった。 When an appearance inspection is performed by using a captured image, it is convenient to take an image when a railway vehicle enters a vehicle depot, for example, because the time and effort of moving the vehicle only for the inspection can be saved. However, under such conditions, it is difficult to move the railway vehicle accurately at a constant speed. Further, the ground on which the rail is laid has a strong portion and a relatively soft portion. Therefore, when the railway vehicle travels on the rail, the railway vehicle is slightly displaced vertically due to its own weight. Furthermore, since a suspension such as an air spring is provided between the bogie and the vehicle body, the vehicle body also moves up and down due to the action of the suspension. Therefore, if no measures are taken, it is difficult to obtain a captured image with high resolution and little distortion even if the railway vehicle running in this way is captured by a line scan camera.

本発明は、外観検査用に、不規則な歪みがなく、高い分割能で、レール上を走行する鉄道車両の撮影画像を得ることのできる検査用画像生成装置を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an inspection image generating apparatus capable of obtaining a captured image of a railroad vehicle traveling on a rail with no irregular distortion and a high dividing ability for visual inspection.

本発明の検査用画像生成装置は、上記目的を達成するため、
線路上を移動する鉄道車両を上下方向に走査して撮影画像を得るラインスキャン型の撮影手段と、
上下方向の基準位置が示された表示面を有し且つ前記撮影手段の撮影箇所と重なる位置で線路に固定された基準器と、
鉄道車両の上下動に起因する前記撮影画像の形状の歪みを補正する歪み補正手段とを備え、
前記歪み補正手段は、
前記撮影画像に連続的に写り込んだ前記基準位置を示す線が直線状になるように前記撮影画像を部分毎に上下方向にずらすレール歪み補正手段と、
前記撮影画像のうち、鉄道車両の台車およびレールが写される領域の画像を除いて、鉄道車両の車体および前記車体に固定的に接続された付属物が写される領域の画像を部分毎に上下方向にずらす車体歪み補正手段と、
を有することを特徴としている。
The inspection image generating apparatus of the present invention, in order to achieve the above object,
A line scan type photographing means for obtaining a photographed image by vertically scanning a railroad vehicle moving on a track,
A reference device having a display surface showing a reference position in the up-down direction and fixed to the railroad track at a position overlapping with a shooting location of the shooting means;
Distortion correcting means for correcting the distortion of the shape of the photographed image caused by the vertical movement of the railway vehicle,
The distortion correction means,
Rail distortion correction means for shifting the photographed image vertically for each part so that a line indicating the reference position continuously reflected in the photographed image becomes linear.
Of the photographed image, except for the image of the region where the bogie of the railway vehicle and the rail are imaged, the image of the region where the body of the railway vehicle and the accessories fixedly connected to the vehicle body are imaged Vehicle body distortion correction means for shifting in the vertical direction,
It is characterized by having.

このような構成によれば、ラインスキャン型の撮影手段によって、分解能が高く、何れの箇所でも一定方向から見たときの形状が示された鉄道車両の撮影画像が得られる。さらに、歪み補正手段により、撮影画像から、レールの沈み込みに起因する撮影画像の形状の歪みと、サスペンションの作用による車体の上下振動に起因する撮影画像の形状の歪みとが修正される。よって、不規則な歪みのない、外観検査に適した鉄道車両の撮影画像を提供できる。 According to such a configuration, the line-scan type photographing means can obtain a photographed image of the railway vehicle having a high resolution and showing the shape when viewed from a fixed direction at any location. Further, the distortion correction means corrects the distortion of the shape of the captured image due to the sinking of the rail and the distortion of the shape of the captured image due to the vertical vibration of the vehicle body due to the action of the suspension from the captured image. Therefore, it is possible to provide a photographed image of a railway vehicle that is suitable for visual inspection without irregular distortion.

ここで、前記車体歪み補正手段は、
前記撮影画像のうち、鉄道車両の台車およびレールが写される領域を隠し、鉄道車両の車体および前記車体に固定的に接続された付属物が写される領域の画像を抽出するマスク手段と、
前記マスク手段により抽出された画像を上下方向に長い矩形状の画像要素に分割する歪み画像分割手段と、
前記矩形状の画像要素を鉄道車両の基準画像と比較して上下方向のズレを修正する画像修正手段と、
前記画像修正手段により修正された画像に前記マスク手段により隠された領域の画像を復元するマスク解除手段と、
を含んでいるとよい。
このような構成により、空気バネなどのサスペンションの作用による車体の上下振動に起因する撮影画像の歪みを綺麗に修正することができる。
Here, the vehicle body distortion correction means,
Of the captured image, a mask means for hiding a region in which a bogie and a rail of a railway vehicle are imaged, and extracting an image of a region in which a vehicle body of a railway vehicle and an accessory fixedly connected to the vehicle body are imaged,
A distorted image division unit that divides the image extracted by the mask unit into rectangular image elements that are long in the vertical direction;
Image correction means for correcting the vertical shift by comparing the rectangular image element with the reference image of the railroad vehicle,
A mask releasing means for restoring the image of the area hidden by the masking means to the image corrected by the image correcting means,
Should be included.
With such a configuration, it is possible to cleanly correct the distortion of the captured image caused by the vertical vibration of the vehicle body due to the action of the suspension such as the air spring.

また、本発明に係る検査用画像生成装置は、
鉄道車両の移動速度に起因する前記撮影画像の各部の縦横比のばらつきを補正する速度伸縮補正手段をさらに備え、
前記速度伸縮補正手段は、
前記撮影画像のエッジ抽出を行って鉄道車両の特徴部分を抽出する特徴部分抽出手段と、
前記撮影画像を上下方向に長い矩形状の画像要素に分割する伸縮画像分割手段と、
鉄道車両の特徴部分の基準的な形状が示された基準プロファイルと、前記特徴部分抽出手段により抽出された特徴部分とを比較して撮影画像の各部の縦横比のズレを計算する縦横比計算手段と、
前記縦横比計算手段が計算した縦横比のズレがなくなるように前記伸縮画像分割手段により分割された画像要素を横方向に伸縮する画像伸縮手段と、
を含んでいるとよい。
このような構成により、鉄道車両の移動速度に起因した画像の歪みを綺麗に修正することができる。
Further, the inspection image generating apparatus according to the present invention is
Further comprising speed expansion/contraction correction means for correcting the variation in the aspect ratio of each part of the captured image due to the moving speed of the railway vehicle,
The speed expansion/contraction correction means,
Characteristic portion extracting means for extracting the characteristic portion of the railway vehicle by performing edge extraction of the photographed image,
A stretchable image dividing unit that divides the captured image into rectangular image elements that are long in the vertical direction,
Aspect ratio calculation means for comparing the reference profile showing the reference shape of the characteristic portion of the railway vehicle with the characteristic portion extracted by the characteristic portion extraction means to calculate the deviation of the aspect ratio of each part of the captured image. When,
An image expansion/contraction means for expanding/contracting the image elements divided by the expansion/contraction image division means in the horizontal direction so that the deviation of the aspect ratio calculated by the aspect ratio calculation means is eliminated.
Should be included.
With such a configuration, it is possible to cleanly correct the distortion of the image due to the moving speed of the railway vehicle.

さらに、本発明に係る検査用画像生成装置は、前記レール歪み補正手段、前記速度伸縮補正手段、前記車体歪み補正手段の順で、前記撮影画像の補正処理を行うように構成するとよい。
この構成によれば、先ず、レール歪み補正手段により、画像の全域に対する縦方向の補正が行われるので、速度伸縮補正手段の補正処理の際、撮影画像内の各部の縦横比の計算を容易に且つ精度高く行うことができる。よって、移動速度に起因する撮影画像の歪みを綺麗に修正できる。さらに、レール歪み補正手段および速度伸縮補正手段により、画像の全域に対する縦方向の補正と横方向の補正とが行われた後に、車体歪み補正手段の補正処理が行われるので、撮影画像中の車体と台車との切り分けを容易に且つ精度高く行うことができる。これにより、空気バネなどのサスペンションによる車体の上下振動に起因する画像の歪みをより綺麗に修正することができる。
Further, the inspection image generating apparatus according to the present invention may be configured to perform the correction processing of the captured image in the order of the rail distortion correction means, the speed expansion/contraction correction means, and the vehicle body distortion correction means.
According to this configuration, first, the rail distortion correction unit corrects the entire area of the image in the vertical direction. Therefore, when the correction processing of the speed expansion/contraction correction unit is performed, the aspect ratio of each part in the captured image can be easily calculated. And it can be performed with high accuracy. Therefore, the distortion of the captured image caused by the moving speed can be corrected neatly. Further, the rail distortion correction means and the speed expansion/contraction correction means perform the vertical correction and the horizontal correction for the entire area of the image, and then the correction processing of the vehicle body distortion correction means is performed. It is possible to easily and accurately separate the car from the carriage. As a result, the distortion of the image caused by the vertical vibration of the vehicle body due to the suspension such as the air spring can be corrected more beautifully.

さらに、本発明に係る検査用画像生成装置は、
前記基準器の前記表示面に、さらに複数階調の明度が示される明度表示部が含まれ、
前記撮影画像に含まれる前記明度表示部の複数階調の明度に基づいて前記撮影画像の輝度を補正する輝度補正手段をさらに備えるとよい。
この構成によれば、基準器の明度表示部を用いた輝度補正によって撮影画像ごとの明度のばらつきを抑えることができる。また、1つの基準器で、レール歪み補正の指標と、輝度補正の指標との両方を与えることができる。
Furthermore, the inspection image generating apparatus according to the present invention is
The display surface of the reference unit further includes a lightness display section showing lightness of a plurality of gradations,
It is preferable to further include a brightness correction unit that corrects the brightness of the captured image based on the brightness of a plurality of gradations of the brightness display unit included in the captured image.
According to this configuration, it is possible to suppress the variation in the brightness for each captured image by the brightness correction using the brightness display unit of the reference device. Further, one reference device can provide both an index for rail distortion correction and an index for brightness correction.

本発明によれば、外観検査用に、不規則な歪みがなく、高い分割能で、レール上を走行する鉄道車両の撮影画像を得ることのできる検査用画像生成装置を提供できる。 According to the present invention, it is possible to provide an inspection image generation apparatus capable of obtaining a captured image of a railroad vehicle traveling on a rail with a high dividing ability without irregular distortion for visual inspection.

本発明の実施形態に係る鉄道車両の外観検査装置の全体構成を示すブロック図である。1 is a block diagram showing an overall configuration of a railway vehicle appearance inspection device according to an embodiment of the present invention. 実施形態の外観検査装置の幾つかの構成要素の配置例を示す図である。It is a figure which shows the example of arrangement|positioning of some components of the visual inspection apparatus of embodiment. 基準器を示す正面図である。It is a front view which shows a reference|standard. 検査処理装置により実行される検査処理の手順を示すフローチャートである。It is a flow chart which shows the procedure of the inspection processing performed by the inspection processing device. 図4のステップS2で実行されるレール歪み補正処理の一例を説明する図で、(a)は補正前の撮影画像図、(b)は補正後の撮影画像図である。4A and 4B are diagrams illustrating an example of rail distortion correction processing executed in step S2 of FIG. 4, where FIG. 6A is a photographed image diagram before correction and FIG. 4B is a photographed image diagram after correction. 図4のステップS3で実行される輝度補正処理の一例を示す説明図である。It is explanatory drawing which shows an example of the brightness correction process performed by step S3 of FIG. 図4のステップS4で実行される速度伸縮補正処理の詳細な手順を示すフローチャートである。5 is a flowchart showing a detailed procedure of a speed expansion/contraction correction process executed in step S4 of FIG. 4. 速度伸縮補正処理の一例を説明する図で、(a)は鉄道車両の特徴部分の基準的な形状が示される基準プロファイルの画像図、(b)は補正前の撮影画像図、(c)は補正後の撮影画像図である。6A and 6B are diagrams illustrating an example of speed expansion/contraction correction processing, FIG. 7A is an image view of a reference profile showing a reference shape of a characteristic portion of a railway vehicle, FIG. It is a picked-up image figure after correction. 図4のステップS5で実行される車体歪み補正処理の詳細な手順を示すフローチャートである。6 is a flowchart showing a detailed procedure of a vehicle body distortion correction process executed in step S5 of FIG. 4. 車体歪み補正処理の一例を説明する図で、(a)は補正前の撮影画像図、(b)はマスク画像図、(c)は矩形状に分割された画像要素のズレ量の検出処理の説明図、(d)は画像要素をずらす処理の説明図である。6A and 6B are diagrams illustrating an example of a vehicle body distortion correction process, in which FIG. 7A is a photographed image diagram before correction, FIG. 9B is a mask image diagram, and FIG. 9C is a process of detecting a deviation amount of image elements divided into rectangular shapes. Explanatory drawing, (d) is explanatory drawing of the process which shifts an image element.

以下、本発明の実施の形態について図面を参照して詳細に説明する。
図1は、本発明の実施形態に係る鉄道車両の外観検査装置の全体構成を示すブロック図である。図2は、実施形態の外観検査装置の幾つかの構成要素の配置例を示す図である。図3は、基準器を示す正面図である。
本発明の実施形態の外観検査装置1は、外観検査用に適した鉄道車両の撮影画像を生成し、この撮影画像に基づいて鉄道車両の外観の検査を行う装置である。外観検査装置1に含まれる撮影画像の生成手段が、本発明に係る検査用画像生成装置の一例に相当する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing an overall configuration of a railway vehicle appearance inspection device according to an embodiment of the present invention. FIG. 2 is a diagram showing an arrangement example of some components of the appearance inspection apparatus of the embodiment. FIG. 3 is a front view showing the reference device.
The visual inspection apparatus 1 according to the embodiment of the present invention is an apparatus that generates a captured image of a railway vehicle suitable for visual inspection and inspects the external appearance of the railway vehicle based on the captured image. The captured image generating means included in the visual inspection apparatus 1 corresponds to an example of the inspection image generating apparatus according to the present invention.

外観検査装置1は、図1および図2に示すように、車両近接検知装置11、撮影装置12、背景板14、画像処理装置15、基準器17、および検査処理装置20を備えている。これらのうち、車両近接検知装置11、撮影装置12、背景板14、画像処理装置15、および基準器17は、図2に示すように、例えば車両基地の入区用又は出区用の線路の傍らに配置される。検査処理装置20は、屋内に配置され、車両近接検知装置11および画像処理装置15と有線または無線により接続されている。外観検査装置1は、鉄道車両の左側および右側を撮影できるように、線路を挟んだ一方と他方とにそれぞれ配置された2組の撮影装置12を備えている。 As shown in FIGS. 1 and 2, the visual inspection device 1 includes a vehicle proximity detection device 11, a photographing device 12, a background plate 14, an image processing device 15, a reference device 17, and an inspection processing device 20. Among these, the vehicle proximity detection device 11, the image capturing device 12, the background plate 14, the image processing device 15, and the reference device 17 are, for example, as shown in FIG. It is placed by the side. The inspection processing device 20 is arranged indoors and is connected to the vehicle proximity detection device 11 and the image processing device 15 by wire or wirelessly. The visual inspection apparatus 1 includes two sets of imaging devices 12 arranged on one side and the other side of the railroad track so that the left side and the right side of the railway vehicle can be imaged.

車両近接検知装置11は、例えば光学的なセンサ或いは軌道回路を利用した電気的なセンサにより、鉄道車両が撮影区間に進入することを検知し、検知信号を撮影装置12へ出力する。さらに、車両近接検知装置11は、RFID(radio frequency identifier)の受信機を有し、鉄道車両に搭載されたRFIDと通信を行って鉄道車両の車号情報を読み出し、この情報を検査処理装置20へ送信する。検査処理装置20は車号情報から車種を特定できる。 The vehicle proximity detection device 11 detects, for example, an optical sensor or an electric sensor using a track circuit that the railway vehicle enters the photographing section, and outputs a detection signal to the photographing device 12. Further, the vehicle proximity detection device 11 has a receiver of an RFID (radio frequency identifier), communicates with the RFID mounted on the railway vehicle to read the vehicle number information of the railway vehicle, and uses this information as the inspection processing device 20. Send to. The inspection processing device 20 can specify the vehicle type from the vehicle number information.

撮影装置12は、撮影手段としてラインスキャンカメラ13を有し、線路上を走行する鉄道車両をラインスキャン方式で側方から撮影する。ラインスキャンカメラ13とは、一方向の走査すなわちライン状の撮像を一定の周波数で繰り返し行っていくラインスキャン型の撮影装置である。ラインスキャンカメラ13は、所定方向に移動する撮影対象に対して、移動方向と交差する方向のライン状の撮像を繰り返し、ライン状の撮像データを逐次出力する。逐次出力された複数のライン状の撮像データを二次元方向に並べることで面状に広がった撮影画像が得られる。ライン状の撮像とは、例えば縦方向2000画素×横方向1画素の撮像など、縦方向に画素数が大きく横方向の画素数が単一の撮像を意味する。以下、ライン状の撮像のことを「ラインスキャン」と呼び、ラインスキャンにより撮像される画素列の方向を「ラインスキャン方向」と呼ぶ。 The image capturing device 12 has a line scan camera 13 as an image capturing unit, and captures an image of a railway vehicle traveling on a track from the side by a line scan method. The line scan camera 13 is a line scan type imaging device that repeats unidirectional scanning, that is, line-shaped imaging at a constant frequency. The line scan camera 13 repeats line-shaped image pickup in a direction intersecting the moving direction with respect to an image pickup target moving in a predetermined direction, and sequentially outputs line-shaped image pickup data. By arranging a plurality of line-shaped image pickup data that are sequentially output in a two-dimensional direction, a plane-shaped spread image can be obtained. The line-shaped image pickup means an image pickup having a large number of pixels in the vertical direction and a single pixel in the horizontal direction, for example, image pickup of 2000 pixels in the vertical direction×1 pixel in the horizontal direction. Hereinafter, line-shaped imaging is referred to as “line scan”, and the direction of the pixel row imaged by line scanning is referred to as “line scan direction”.

ラインスキャンカメラ13は、ラインスキャン方向が、例えば上下方向など線路と交差する方向に向くように設定される。撮影装置12は、車両近接検知装置11からの近接信号に基づいて自動的に撮影を開始する。撮影装置12は、ライン状の撮像データを連続的に取り込んで画像処理装置15へ送信する。ラインスキャン方式の撮影では、撮影対象がラインスキャン方向と直交する方向へ一定の速度で移動するとき、歪みのない高分割能の撮影画像が得られる。一方、撮影対象に速度のばらつき又はラインスキャン方向の変位があれば、これらが形状の歪みとなって撮影画像に表れる。 The line scan camera 13 is set such that the line scan direction is a direction that intersects with the line, such as the vertical direction. The photographing device 12 automatically starts photographing based on the proximity signal from the vehicle proximity detection device 11. The imaging device 12 continuously captures the line-shaped imaging data and transmits the imaging data to the image processing device 15. In line-scan photography, when the object to be photographed moves at a constant speed in a direction orthogonal to the line-scan direction, a photographed image with high resolution without distortion can be obtained. On the other hand, if the object to be photographed has variations in speed or displacement in the line scan direction, these appear as distortions in the shape in the photographed image.

背景板14は、単色で単一明度の背景表示面を有する構造物である。背景板14は、ラインスキャンカメラ13がラインスキャンする箇所に背景表示面が重なるように、線路を挟んで撮影装置12と対向する位置に配置される。背景板14は、線路に鉄道車両が進入したときに、車体下部又は台車の周辺など車両の向う側が写り込む領域で、背景としてラインスキャンカメラ13の撮影画像に写り込む。 The background plate 14 is a structure having a background display surface of a single color and a single brightness. The background plate 14 is arranged at a position facing the image capturing device 12 with the line in between so that the background display surface overlaps the position where the line scan camera 13 scans the line. The background plate 14 is an area in which the other side of the vehicle, such as the lower part of the vehicle body or the periphery of the bogie, is reflected when the railway vehicle enters the railroad track, and is reflected in the image captured by the line scan camera 13 as the background.

画像処理装置15は、ラインスキャンカメラ13により連続的に取り込まれたライン状の撮像データをフレームメモリ16に展開して線路方向に長い鉄道車両全体の撮影画像データを生成し、これを検査処理装置20へ送信する。鉄道車両の撮影画像には、周囲の明るさに起因する輝度ばらつきが含まれる。また、この撮影画像には、鉄道車両の移動速度のばらつき、レールの沈み込みによる鉄道車両の上下振動、鉄道車両の空気バネ(サスペンション)の作用による車体の上下振動にそれぞれ起因する複数系統の形状歪みが含まれる。 The image processing device 15 expands the line-shaped image data continuously captured by the line scan camera 13 into the frame memory 16 to generate the image data of the entire railway vehicle which is long in the track direction. Send to 20. The captured image of the railroad vehicle includes brightness variations due to ambient brightness. In addition, in this captured image, the shapes of multiple systems are caused by variations in the moving speed of the railway vehicle, vertical vibration of the railway vehicle due to sinking of the rail, and vertical vibration of the vehicle body due to the action of the air spring (suspension) of the railway vehicle. Includes distortion.

基準器17は、図3にも示すように、複数階調の明度が段階的に示された表示面17aを有し、鉄道車両と干渉しないようにレール90に固定的に接続される。基準器17は、ラインスキャンカメラ13の撮影箇所に表示面17aが重なるように配置される。表示面17aは、明度の表示とともに、例えば複数階調の明度の境界線によって上下方向の基準位置を示すことができる。 As shown in FIG. 3, the reference unit 17 has a display surface 17a in which the brightness of a plurality of gradations is shown stepwise, and is fixedly connected to the rail 90 so as not to interfere with the railway vehicle. The reference unit 17 is arranged so that the display surface 17a overlaps with the shooting location of the line scan camera 13. The display surface 17a can display the reference position in the vertical direction by the boundary line of the brightness of a plurality of gradations as well as the display of the brightness.

検査処理装置20は、制御プログラムを実行するCPU(中央演算処理装置)21と、CPU21に作業用のメモリ空間を提供するRAM(random access memory)22と、外部の機器と信号をやり取りするインタフェース23と、制御プログラムおよび制御データを記憶した記憶装置24と有するコンピュータである。記憶装置24には、制御プログラムとして撮影画像に基づき鉄道車両の外観検査を行う外観検査プログラム24Aが記憶されている。また、記憶装置24には、外観検査の際に比較基準となる正常な鉄道車両の外観画像が蓄積される正常画像データベース(正常画像記憶手段)24Bと、鉄道車両の外観異常を示す撮影画像が蓄積される異常画像データベース(異常画像記憶手段)24Cとが設けられている。 The inspection processing device 20 includes a CPU (central processing unit) 21 that executes a control program, a RAM (random access memory) 22 that provides a memory space for work to the CPU 21, and an interface 23 that exchanges signals with external devices. And a storage device 24 that stores a control program and control data. The storage device 24 stores a visual inspection program 24A as a control program for performing a visual inspection of the railway vehicle based on the captured image. In addition, the storage device 24 stores a normal image database (normal image storage means) 24B in which appearance images of normal railway vehicles that serve as a comparison reference at the time of appearance inspection are stored, and a captured image showing abnormal appearance of the railway vehicles. An abnormal image database (abnormal image storage means) 24C to be stored is provided.

続いて、検査処理装置20により実行される検査処理について説明する。
図4は、検査処理装置により実行される検査処理の手順を示すフローチャートである。
検査処理は、画像処理装置15から検査処理装置20へ鉄道車両の撮影画像が受信されることで開始される。検査処理が開始されると、先ず、検査処理装置20は、画像処理装置15から鉄道車両の撮影画像を入力する(ステップS1)。
Next, the inspection processing executed by the inspection processing device 20 will be described.
FIG. 4 is a flowchart showing the procedure of the inspection process executed by the inspection processing apparatus.
The inspection process is started when the image processing device 15 receives the captured image of the railway vehicle from the inspection processing device 20. When the inspection process is started, the inspection processing device 20 first inputs the captured image of the railway vehicle from the image processing device 15 (step S1).

撮影画像を入力すると、検査処理装置20は、この撮像画像の歪みを修正する複数の補正処理(ステップS2〜S5)を行う。これらの補正処理の詳細については後述する。これらの各補正処理によって、鉄道車両および撮影環境の変動要素に起因する撮影画像のばらつきが補正されて歪みの修正された鉄道車両の撮影画像が得られる。
これらの補正処理は、CPU21、RAM22、記憶装置24などのハードウェアと、外観検査プログラム24Aに含まれるソフトウェアとの協働により実現される。ステップS2、S3、S4、S5の補正処理を実現する構成が、それぞれ本発明に係るレール歪み補正手段、輝度補正手段、速度伸縮補正手段、車体歪み補正手段の一例に相当する。また、ステップS2、S5の補正処理を実現する構成が、本発明に係る歪み補正手段の一例に相当する。
When the captured image is input, the inspection processing device 20 performs a plurality of correction processes (steps S2 to S5) for correcting the distortion of the captured image. Details of these correction processes will be described later. By each of these correction processes, the captured image of the railway vehicle in which the variations in the captured image due to the variable elements of the railway vehicle and the capturing environment are corrected and the distortion is corrected is obtained.
These correction processes are realized by the cooperation of the hardware such as the CPU 21, the RAM 22, and the storage device 24, and the software included in the appearance inspection program 24A. The configuration that realizes the correction processing in steps S2, S3, S4, and S5 corresponds to an example of the rail distortion correction unit, the brightness correction unit, the speed expansion/contraction correction unit, and the vehicle body distortion correction unit according to the present invention, respectively. The configuration that realizes the correction processing in steps S2 and S5 corresponds to an example of the distortion correction means according to the present invention.

補正処理が終了したら、検査処理装置20は、撮影画像に基づき異常の有無を検査するループ処理(図3のステップS6〜S11)を実行する。ループ処理に移行すると、検査処理装置20は、先ず、予め設定されている複数の検査対象領域の中から各検査対象領域を順に選択する(ステップS6)。
検査対象領域は、例えば鉄道車両の台車、台車内の各部品、車体下部に設けられたエア通路のコック、ブレーキ装置、ブレーキ装置のレバーなど、外観検査を行うべき箇所を囲うように予め設定されている。検査対象領域を示す座標情報は、例えば記憶装置24に設けられた座標情報データベース24Dに記憶されており、検査処理装置20は、ここから情報を読み出して1つずつ検査対象領域を選択する。
When the correction process is completed, the inspection processing device 20 executes a loop process (steps S6 to S11 in FIG. 3) for inspecting the presence or absence of abnormality based on the captured image. When shifting to the loop processing, the inspection processing device 20 first sequentially selects each inspection target area from among a plurality of preset inspection target areas (step S6).
The area to be inspected is set in advance so as to surround a portion to be inspected for visual inspection, such as a bogie of a railway vehicle, each part in the bogie, a cock of an air passage provided at a lower portion of a vehicle body, a brake device, a lever of a brake device, and the like. ing. The coordinate information indicating the inspection target area is stored in, for example, the coordinate information database 24D provided in the storage device 24, and the inspection processing device 20 reads the information from this and selects the inspection target areas one by one.

1つの検査対象領域を選択したら、検査処理装置20は、撮影画像からこの検査対象領域の画像を抽出し(ステップS7)、正常画像データベース24Bに格納されている正常な鉄道車両の画像(以下、「正常画像」と呼ぶ)と比較する(ステップS8)。正常画像データベース24Bには、車種毎に1つ又は複数の正常な鉄道車両の画像が蓄積されており、検査処理装置20は、ステップS8において、検査対象の鉄道車両と同一車種の1つの正常画像を正常画像データベース24Bから読み出して比較する。比較処理では、例えば、撮影画像と正常画像との各画素の色合いおよび明度の差異が数値化され、比較対象領域の全画素における差異の総和が距離値として計算される。なお、各画素の差異を数値化する際、明度又は色合いの差を二乗して差異値としたり、明度又は色合いに応じて重み付けを行って差異値を計算してもよいなど、具体的な計算手法は適宜変更可能である。また、比較の前、両者の間の小さな位置ズレを解消する処理を行ってから比較処理を行ってもよいし、比較する位置を少しずつずらして複数回の比較を行い最少の距離値を比較結果として採用するようにしてもよい。 When one inspection target area is selected, the inspection processing device 20 extracts an image of this inspection target area from the captured image (step S7), and an image of a normal railway vehicle stored in the normal image database 24B (hereinafter, (Referred to as “normal image”) (step S8). The normal image database 24B stores one or a plurality of normal railway vehicle images for each vehicle type, and the inspection processing device 20 determines, in step S8, one normal image of the same vehicle type as the inspection target railway vehicle. Is read from the normal image database 24B and compared. In the comparison process, for example, the difference in hue and brightness of each pixel between the captured image and the normal image is digitized, and the sum of the differences in all pixels in the comparison target area is calculated as the distance value. It should be noted that when the difference between each pixel is quantified, the difference between lightness or hue may be squared to obtain a difference value, or the difference value may be calculated by weighting according to the lightness or hue. The method can be changed appropriately. In addition, before the comparison, the process of eliminating the small positional deviation between the two may be performed before performing the comparison process, or the positions to be compared may be shifted little by little and a plurality of comparisons may be performed to compare the minimum distance value. It may be adopted as a result.

続いて、検査処理装置20は、正常画像データベース24Bに蓄積されている同一車種の全ての正常画像との比較を完了したか判別し(ステップS9)、未だであればステップS8に戻って、次の正常画像を読み出して比較処理を繰り返すループ処理を続ける。一方、完了していれば、検査処理装置20はループ処理を抜けて次のステップに処理を移行する。ステップS8、S9のループ処理により、1つの検査対象領域の撮影画像が、正常画像データベース24Bに蓄積されている同一車種の全ての正常画像と比較される。 Then, the inspection processing device 20 determines whether or not the comparison with all the normal images of the same vehicle type accumulated in the normal image database 24B is completed (step S9), and if not yet, returns to step S8, and next. The normal loop image is read and the comparison process is repeated to continue the loop process. On the other hand, if completed, the inspection processing apparatus 20 exits the loop processing and shifts the processing to the next step. By the loop processing of steps S8 and S9, the captured image of one inspection target area is compared with all the normal images of the same vehicle type stored in the normal image database 24B.

全ての正常画像との比較が完了したら、検査処理装置20は、複数回の画像比較で得られた距離値と閾値との比較を行って、検査対象領域の異常の有無を判定する(ステップS10)。異常の有無を判定するための閾値は、正常な画像同士の比較で計算される平均的な距離値よりも大きく、且つ、正常が画像同士の比較では余り生じない距離値になるように設定される。このような閾値は、検査対象領域ごとに適宜設定され、記憶装置24に設けられた判定閾値データベース24Eに記憶されている。 When the comparison with all the normal images is completed, the inspection processing apparatus 20 compares the distance value obtained by a plurality of image comparisons with the threshold value to determine whether there is an abnormality in the inspection target area (step S10). ). The threshold value for determining the presence or absence of abnormality is set to be larger than the average distance value calculated by comparison between normal images, and normality is a distance value that rarely occurs in comparison between images. It Such a threshold value is appropriately set for each inspection target area, and is stored in the determination threshold value database 24E provided in the storage device 24.

なお、ステップS10の判定処理では、複数回の画像比較でそれぞれ得られた複数の距離値のうち、最も小さい距離値が使用されて閾値との比較が行われるとよい。このような判定処理により、正常画像データベースに蓄積されている複数の正常画像のうち、検査対象領域の画像が最も近い正常画像と撮影画像との比較が行われて、この比較に基づいて異常の有無が判定されることになる。 In the determination process of step S10, the smallest distance value among the plurality of distance values obtained by the plurality of image comparisons may be used for comparison with the threshold value. By such a determination process, among the plurality of normal images accumulated in the normal image database, the normal image having the closest image in the inspection area and the captured image are compared, and based on this comparison, the abnormal image is detected. The presence or absence will be determined.

鉄道車両は、同一車種であっても、例えばケーブルなど僅かに部品の配置が異なったり、経年による正常な色褪せが生じたりして、完全に同一にはならない。よって、検査対象領域の比較を行う場合でも、上述のように複数の同一車種の正常画像を用いて比較を行い、異常か否かの判断を行うことで、正常な範囲での小さな差分を除外して検査対象の異常の有無を高精度に判断することができる。なお、異常の有無を判断する部分が微細でその画像の差異が比較的に小さくなる場合には、小さく絞った比較対象領域を設定しておくことで、正常な範囲での差分があっても異常の有無を見逃すことなく高精度に判断することができる。 Even if the railroad vehicles are of the same type, they may not be completely the same because, for example, the arrangement of parts such as cables is slightly different and normal fading occurs over time. Therefore, even when the inspection target areas are compared, a small difference in a normal range is excluded by performing comparison using the normal images of a plurality of the same vehicle types as described above and determining whether there is an abnormality. Therefore, it is possible to highly accurately determine whether or not there is an abnormality in the inspection target. If the portion that determines the presence or absence of an abnormality is minute and the difference between the images is relatively small, by setting a comparatively small area for comparison, even if there is a difference in the normal range. It is possible to judge with high accuracy without missing the presence or absence of abnormality.

ステップS10の判定処理の結果、距離値が閾値より小さくて正常と判定されたら、検査処理装置20はステップS12へ処理を進める。一方、距離値が閾値以上となって異常と判定されたら、検査処理装置20は、異常と判定された鉄道車両の撮影画像を異常画像データベース24Cに登録する(ステップS11)。登録する際、異常と判定された検査対象領域が分かるように、該当する検査対象領域を示すデータが付加されてもよい。また、同一の撮影画像の複数の検査対象領域で異常と判定された場合には、同じ撮影画像が二重に登録されないように、1つの撮影画像と異常と判定された複数の検査対象領域を示す情報とが蓄積されるようにするとよい。 When the distance value is smaller than the threshold value and is determined to be normal as a result of the determination process in step S10, the inspection processing apparatus 20 advances the process to step S12. On the other hand, when the distance value is equal to or greater than the threshold value and is determined to be abnormal, the inspection processing device 20 registers the captured image of the railroad vehicle determined to be abnormal in the abnormal image database 24C (step S11). When registering, data indicating the corresponding inspection target area may be added so that the inspection target area determined to be abnormal can be known. In addition, when it is determined that an abnormality has occurred in a plurality of inspection target areas of the same captured image, one captured image and a plurality of inspection target areas determined to be abnormal are registered so that the same captured image is not registered twice. The information to be shown and the information to be shown may be accumulated.

異常と判定された撮影画像を蓄積することで、その後、これらの撮影画像の解析により、劣化の経年変化を分析したり、車種ごとの異常の傾向を分析したり、様々な異常の分析を行うことができる。そして、これらの分析結果に合わせて効率的なメンテナンス体系を実現できる。
なお、ステップS11の異常登録処理では、検査処理装置20が、係員へ異常を知らせる通知処理を行ってもよい。通知処理では、鉄道車両の撮影画像上に異常と判断された検査対象領域を識別可能な態様で表示して通知するようにするとよい。
By accumulating captured images that have been determined to be abnormal, after that, by analyzing these captured images, the deterioration over time is analyzed, the tendency of abnormalities for each vehicle type is analyzed, and various abnormalities are analyzed. be able to. Then, an efficient maintenance system can be realized according to these analysis results.
In the abnormality registration process of step S11, the inspection processing device 20 may perform a notification process of notifying an employee of the abnormality. In the notification process, the inspection target area determined to be abnormal may be displayed on the captured image of the railway vehicle in a distinguishable manner to notify the inspection target area.

正常又は異常の判定がなされたら、検査処理装置20は、全ての検査対象領域についての処理が完了したか判別し(ステップS12)、未だであればステップS6に戻ってループ処理を続ける。一方、完了していればループ処理を抜けて、次のステップに処理を移行する。上述したステップS6〜ステップS12のループ処理により、鉄道車両の異常の有無の判定が、撮影画像中の複数の検査対象領域について行われる。 When it is determined that the inspection process is normal or abnormal, the inspection processing apparatus 20 determines whether or not the processes for all the inspection target areas are completed (step S12). If not yet, the process returns to step S6 to continue the loop process. On the other hand, if the processing is completed, the loop processing is exited and the processing moves to the next step. Through the loop processing of steps S6 to S12 described above, the presence/absence of abnormality of the railway vehicle is determined for a plurality of inspection target areas in the captured image.

ループ処理を抜けると、検査処理装置20は、全ての検査対象領域の画像比較の結果が正常であるか判別し(ステップS13)、否であれば、この検査処理を終了する。一方、全て正常であれば、検査処理装置20は、撮影画像が正常画像データベース24Bへの登録条件を満たしているか判別し(ステップS14)、満たしていれば、撮影画像を車種情報とともに正常画像データベース24Bに登録する(ステップS15)。登録する撮影画像は、補正処理後の画像のみとしてもよいし、補正処理の前後両方の画像としてもよい。正常と判定された撮影画像が蓄積されることで、検査回数を重ねることで正常画像データベース24Bの正常画像が増す。これにより、異常の有無を判定する様々な手法を取り入れることが可能となり、さらに高い精度の検査を行うことが可能となる。 After exiting the loop processing, the inspection processing apparatus 20 determines whether the results of image comparison of all the inspection target areas are normal (step S13), and if not, terminates this inspection processing. On the other hand, if all are normal, the inspection processing device 20 determines whether the captured image satisfies the registration condition in the normal image database 24B (step S14), and if satisfied, the captured image together with the vehicle type information in the normal image database. It is registered in 24B (step S15). The captured image to be registered may be only the image after the correction process or both images before and after the correction process. By accumulating the picked-up images determined to be normal, the number of normal images in the normal image database 24B is increased by stacking the inspection times. As a result, various methods for determining the presence/absence of abnormality can be incorporated, and inspection with higher accuracy can be performed.

撮影画像の登録条件としては、例えばステップS8の画像比較で計算された距離値の最大値或いは平均値が正常な範囲にあるという条件、或いは、正常画像データベース24Bに蓄積された同一車種の撮影画像数が上限に達していないという条件など、様々な条件を適用してよい。
正常画像を登録したら、検査処理装置20は、図4の検査処理を終了する。また、ステップS14で、登録条件を満たしていないと判別したら、そのまま図4の検査処理を終了する。
As the registration condition of the captured image, for example, the condition that the maximum value or the average value of the distance values calculated by the image comparison in step S8 is within a normal range, or the captured image of the same vehicle model stored in the normal image database 24B Various conditions may be applied, such as the condition that the number has not reached the upper limit.
When the normal image is registered, the inspection processing device 20 ends the inspection process of FIG. If it is determined in step S14 that the registration condition is not satisfied, the inspection process of FIG.

続いて、図4のステップS2〜S5で実行される複数の補正処理について詳細に説明する。
<レール歪み補正処理>
図5は、図4のステップS2で実行されるレール歪み補正処理の一例を説明する図である。図5(a)は補正前の撮影画像を示し、図5(b)は補正後の撮影画像を示す。なお、図5(a)、(b)において、鉄道車両の速度ばらつきに起因する縦横比の歪みは省略されている。
Subsequently, a plurality of correction processes executed in steps S2 to S5 of FIG. 4 will be described in detail.
<Rail distortion correction processing>
FIG. 5 is a diagram illustrating an example of rail distortion correction processing executed in step S2 of FIG. FIG. 5A shows a photographed image before correction, and FIG. 5B shows a photographed image after correction. Note that, in FIGS. 5A and 5B, the distortion of the aspect ratio due to the speed variation of the railway vehicle is omitted.

レール歪み補正処理は、鉄道車両通過時のレール90の沈み込みに起因する撮影画像の形状歪みを修正する処理である。レール90が敷設される地盤には強固な箇所と比較的に軟弱な箇所とが存在する。このため、レール90上を鉄道車両が走行する際、鉄道車両の重量によってレール90の沈み込みが生じ、鉄道車両は僅かに上下に変位する。撮影時に、鉄道車両が上下動することで、鉄道車両の撮影画像に形状歪みが生じる。レール90の沈み込みに起因する形状歪みは、主に、レール90に直接支えられる台車81の部分に生じる。 The rail distortion correction processing is processing for correcting the shape distortion of the captured image due to the sinking of the rail 90 when the rail vehicle is passing. The ground on which the rail 90 is laid has a strong portion and a relatively weak portion. Therefore, when the railcar travels on the rail 90, the rail 90 sinks due to the weight of the railcar, and the railcar is slightly displaced vertically. When the railway vehicle moves up and down during shooting, the captured image of the railway vehicle is distorted. The shape distortion due to the sinking of the rail 90 mainly occurs in the portion of the carriage 81 directly supported by the rail 90.

ラインスキャンカメラ13は基準器17の表示面17aを含むようにラインスキャンを行っている。よって、図5(a)に示すように、鉄道車両の撮像画像には、始端から終端にかけて引き伸ばされたように写り込んだ表示面17aの画像が含まれる。また、基準器17はレール90に固定されているので、レール90の沈み込みが生じたときには基準器17も同様に沈み込む。よって、レール90の沈み込みによる形状歪みは基準器17の線の歪みとなって表れる。従って、この形状歪みの修正は、撮影画像の始端から終端にかけて、表示面17aの基準点を示す線が直線になるように、上下に長い幅1画素の画素列をラインスキャン方向にずらすことで達成される。続いて、具体的な処理手順を説明する。 The line scan camera 13 performs a line scan so as to include the display surface 17a of the reference device 17. Therefore, as shown in FIG. 5A, the captured image of the railway vehicle includes an image of the display surface 17a that is reflected as if it was stretched from the start end to the end. Further, since the reference device 17 is fixed to the rail 90, when the rail 90 is depressed, the reference device 17 is similarly depressed. Therefore, the shape distortion due to the sinking of the rail 90 appears as the distortion of the line of the reference unit 17. Therefore, the correction of this shape distortion is performed by shifting the pixel row of 1 pixel in the vertical direction in the line scan direction so that the line indicating the reference point of the display surface 17a becomes a straight line from the start end to the end of the captured image. To be achieved. Subsequently, a specific processing procedure will be described.

レール歪み補正処理に移行すると、先ず、検査処理装置20は、撮影画像から基準器17の表示面17aのエッジを抽出するエッジ抽出処理を行う。表示面17aには明度が段階的に変化する箇所があるため、この部分のエッジを高感度に高い精度で抽出することができる。
次いで、検査処理装置20は、撮影画像に高さ一定の基準直線L0(図5(a))を設定し、上下方向に長い幅1画素の画素列を、表示面17aのエッジ部分が基準直線L0に重なるようにずらす。検査処理装置20は、このような画素列のずらしを撮影画像の始端から終端にかけて行う。これにより、レール歪み補正処理が完了する。
When shifting to the rail distortion correction process, the inspection processing device 20 first performs an edge extraction process for extracting an edge of the display surface 17a of the reference device 17 from the captured image. Since the display surface 17a has a portion where the brightness changes stepwise, the edge of this portion can be extracted with high sensitivity and high accuracy.
Next, the inspection processing device 20 sets a reference straight line L0 (FIG. 5A) having a constant height in the captured image, and a pixel line having a width of 1 pixel, which is long in the vertical direction, and the edge portion of the display surface 17a is the reference straight line. Slide it so that it overlaps L0. The inspection processing apparatus 20 shifts such pixel rows from the start end to the end of the captured image. This completes the rail distortion correction process.

図5(b)に示すように、補正後の撮影画像では、レールおよび基準器17の表示面17aの線が直線状に修正され、これに伴い、主に鉄道車両の台車81の部分の形状歪みが修正される。なお、図5(b)において、車体80の部分に形状歪みが残っているが、これは台車81と車体80との間に空気バネなどのサスペンションが介在し、車体80が台車81に対して相対的に上下振動することに起因する。この形状歪みは後述する補正処理で修正される。 As shown in FIG. 5B, in the captured image after the correction, the lines of the rail and the display surface 17a of the reference unit 17 are corrected to be linear, and along with this, the shape of the portion of the bogie 81 of the railway vehicle is mainly formed. The distortion is corrected. In FIG. 5B, the shape distortion remains in the vehicle body 80. This is because a suspension such as an air spring is interposed between the carriage 81 and the vehicle body 80, and It is caused by relative vertical vibration. This shape distortion is corrected by the correction processing described later.

<輝度補正>
図6は、図4のステップS3で実行される輝度補正処理の一例を示す説明図である。
輝度補正処理は、撮影時の環境の明るさに起因する撮影画像の輝度のばらつきを補正する処理である。鉄道車両の外観検査の際、検査処理装置20は撮影画像と正常画像とを画素ごとに比較し相関値を計算して異常の有無を判断する。よって、撮影画像の輝度ばらつきは小さいと好ましい。なお、エッジ抽出とエッジ比較によって撮影画像と正常画像との比較を行って外観検査を行う構成としても、エッジ抽出の感度および精度のばらつきを抑えるためにも、撮影画像の輝度補正は有効である。
<Brightness correction>
FIG. 6 is an explanatory diagram showing an example of the brightness correction processing executed in step S3 of FIG.
The brightness correction process is a process of correcting variations in the brightness of a captured image due to the brightness of the environment at the time of shooting. During the visual inspection of the railway vehicle, the inspection processing device 20 compares the photographed image and the normal image for each pixel and calculates the correlation value to determine whether there is an abnormality. Therefore, it is preferable that the brightness variation of the captured image is small. Even if the appearance inspection is performed by comparing the captured image with the normal image by edge extraction and edge comparison, the brightness correction of the captured image is effective in order to suppress variations in sensitivity and accuracy of edge extraction. ..

検査処理装置20は、撮影画像に写り込んでいる基準器17の表示面17aの画像を利用して輝度補正を行う。検査処理装置20には、図6(a)に示すように、撮影環境が標準の明るさのときに得られる表示面17aの輝度値が制御データとして保持されている。表示面17aには複数階調の明度が表示されているので、検査処理装置20には、これらにそれぞれ対応する階調1〜階調5の輝度値が保持されている。 The inspection processing device 20 performs brightness correction using the image of the display surface 17a of the reference device 17 reflected in the captured image. As shown in FIG. 6A, the inspection processing device 20 holds, as control data, the brightness value of the display surface 17a obtained when the shooting environment has standard brightness. Since the display surface 17a displays the luminosity of a plurality of gradations, the inspection processing apparatus 20 holds the luminance values of gradations 1 to 5 respectively corresponding to these.

輝度補正処理に移行すると、図6(b)に示すように、検査処理装置20は、先ず、撮影画像における表示面17aの階調1〜階調5の輝度値を求める。撮影画像はグレースケールで表わされ、最大輝度となる白から最小輝度となる黒までを256段階に分割している。最大輝度値が“255”となり最小輝度値が“0”となる。次に、図6(c)に示すように、撮影画像中の階調1〜階調5の輝度値(実線のグラフ線)と、標準の明るさであれば得られる階調1〜階調5の輝度値(破線のグラフ線)とを比較し、図6(d)に示すように、補正用のガンマ曲線を得る。次いで、検査処理装置20は、ガンマ曲線をルックアップテーブルに展開し、ルックアップテーブルに従って撮影画像の全画素の輝度を補正する。これにより、輝度補正処理が完了する。 When shifting to the brightness correction processing, as shown in FIG. 6B, the inspection processing device 20 first obtains the brightness values of gradation 1 to gradation 5 of the display surface 17a in the captured image. The photographed image is represented in gray scale, and white from maximum brightness to black at minimum brightness is divided into 256 levels. The maximum brightness value is "255" and the minimum brightness value is "0". Next, as shown in FIG. 6C, luminance values (solid line graph line) of gradation 1 to gradation 5 in the captured image and gradation 1 to gradation obtained with standard brightness. 5 is compared with the luminance value of 5 (broken line in the graph) to obtain a correction gamma curve as shown in FIG. Next, the inspection processing device 20 develops the gamma curve into a look-up table and corrects the brightness of all pixels of the captured image according to the look-up table. This completes the brightness correction process.

<速度伸縮補正処理>
図7は、図4のステップS4で実行される速度伸縮補正処理の詳細な手順を示すフローチャートである。図8は、速度伸縮補正処理の一例を説明する図で、(a)は鉄道車両の特徴部分の基準的な形状が示される基準プロファイルの画像図、(b)は補正前の撮影画像図、(c)は補正後の撮影画像図である。
速度伸縮補正処理は、鉄道車両の移動速度のばらつきに起因する鉄道車両の形状歪みを補正する処理である。鉄道車両の移動速度が早ければ、撮影画像中の鉄道車両の縦横比は横の比が相対的に小さくなり、鉄道車両の移動速度が遅ければ、横の比が相対的に大きくなる。撮影途中に鉄道車両の移動速度が変われば、鉄道車両の縦横比は1つの撮影画像内で変化する。
<Speed expansion/contraction correction processing>
FIG. 7 is a flowchart showing a detailed procedure of the speed expansion/contraction correction processing executed in step S4 of FIG. 8A and 8B are views for explaining an example of the speed expansion/contraction correction processing. FIG. 8A is an image view of a reference profile showing a reference shape of a characteristic portion of a railway vehicle, and FIG. 8B is a captured image view before correction. (C) is a photographed image diagram after correction.
The speed expansion/contraction correction processing is processing for correcting the shape distortion of the railway vehicle due to the variation in the moving speed of the railway vehicle. If the moving speed of the railway vehicle is high, the aspect ratio of the railway vehicle in the captured image becomes relatively small in the horizontal direction, and if the moving speed of the railway vehicle is slow, the horizontal ratio becomes relatively large. If the moving speed of the railcar changes during shooting, the aspect ratio of the railcar changes within one captured image.

図7のフローチャートに示すように、速度伸縮補正処理へ移行すると、先ず、検査処理装置20は、撮影画像のエッジ抽出を行って鉄道車両の形状的な特徴部分を抽出し(ステップS21:特徴部分抽出手段に相当)、一例として、抽出した特徴部分から鉄道車両のプロファイル線P1を作成する(ステップS22)。プロファイル線P1とは、図8(b)に示すように、鉄道車両の形状の特徴を先頭から終端まで連続的に表わすもので、特に制限されないが、一例として、エッジ抽出された特徴部分の所定の点を連続的に結んだ線などを適用できる。
続いて、検査処理装置20は、撮影画像を始端から終端にかけてラインスキャン方向に長い矩形状の領域fごとに複数の画像要素に分割する(ステップS23:伸縮画像分割手段に相当)。以下では、この画像要素のことを「短冊画像要素」と呼ぶ。矩形状の領域fは、例えば横5〜10画素×縦全画素などの領域とすれば良い。
As shown in the flowchart of FIG. 7, when the process proceeds to the speed expansion/contraction correction process, first, the inspection processing device 20 extracts an edge of the captured image to extract a geometrical characteristic portion of the railway vehicle (step S21: characteristic portion). (Corresponding to the extracting means), for example, the profile line P1 of the railway vehicle is created from the extracted characteristic portion (step S22). As shown in FIG. 8(b), the profile line P1 is a continuous representation of the characteristics of the shape of the railcar from the beginning to the end, and is not particularly limited, but as an example, a predetermined edge extracted feature portion is specified. It is possible to apply a line that connects the points of.
Subsequently, the inspection processing device 20 divides the captured image into a plurality of image elements for each rectangular region f that is long in the line scan direction from the start end to the end (step S23: corresponds to a stretchable image dividing unit). Hereinafter, this image element will be referred to as a “strip image element”. The rectangular area f may be, for example, an area of 5 to 10 horizontal pixels×all vertical pixels.

分割したら、検査処理装置20は、1つの短冊画像要素ごとにプロファイル線P1を基準プロファイル線RPと比較し、プロファイル線P1の傾斜度合の差から短冊画像要素の縦横比のズレを計算する(ステップS24:縦横比計算手段に相当)。基準プロファイル線RPとは、比較基準となる歪みのない鉄道車両の画像データから求められるプロファイル線のことである。検査処理装置20は、予め制御データとして、図8(a)に示すように比較基準となる歪みのない鉄道車両の画像データと、この鉄道車両の形状の特徴を表わす基準プロファイル線RPのデータとを保持している。比較基準の画像データと基準プロファイル線RPとは鉄道車両の車種毎に保持されている。 After the division, the inspection processing device 20 compares the profile line P1 with the reference profile line RP for each strip image element, and calculates the deviation of the aspect ratio of the strip image element from the difference in the inclination degree of the profile line P1 (step S24: Corresponds to aspect ratio calculation means). The reference profile line RP is a profile line that is obtained from image data of a railway vehicle without distortion that serves as a comparison reference. The inspection processing device 20 previously uses, as control data, image data of a railroad vehicle without distortion, which serves as a comparison reference, and data of a reference profile line RP representing characteristics of the shape of the railroad vehicle, as shown in FIG. 8A. Holding The image data of the comparison reference and the reference profile line RP are held for each vehicle model of the railway vehicle.

縦横比のズレを計算すると、検査処理装置20は、ズレがなくなるように短冊画像要素を横方向に伸縮する(ステップS25:画像伸縮手段に相当)。伸縮する処理は、ラインスキャン方向に長い1画素幅の画素列を間引いたり、画素列を追加したりすることで行われるが、その際、隣接する一対の画素列間で画像が連続するように補間処理を加えてもよい。
全領域fの短冊画像要素の伸縮処理を行ったら、検査処理装置20は、伸縮処理後の短冊画像要素を順に貼り合せる合成処理を行う(ステップS26)。これにより、速度伸縮補正処理が完了する。これにより、図8(c)に示すように、縦横比にばらつきのない鉄道車両の撮影画像が得られる。
After calculating the deviation of the aspect ratio, the inspection processing apparatus 20 expands/contracts the strip image element in the horizontal direction so as to eliminate the deviation (step S25: corresponds to image expanding/contracting means). The expansion/contraction processing is performed by thinning out a pixel row having a width of one pixel in the line scan direction or adding a pixel row. At this time, the image is made continuous between a pair of adjacent pixel rows. Interpolation processing may be added.
After performing the expansion/contraction process of the strip image elements of the entire area f, the inspection processing apparatus 20 performs a combining process of sequentially attaching the strip image elements after the expansion/contraction process (step S26). This completes the speed expansion/contraction correction processing. As a result, as shown in FIG. 8C, a captured image of the railway vehicle having a uniform aspect ratio can be obtained.

<車体歪み補正処理>
図9は、図4のステップS5で実行される車体歪み補正処理の詳細な手順を示すフローチャートである。図10は、車体歪み補正処理の一例を説明する図で、(a)は補正前の撮影画像図、(b)はマスク画像図、(c)は矩形状に分割された画像要素のズレ量の検出処理の説明図、(d)は画像要素をずらす処理の説明図である。
<Vehicle distortion correction processing>
FIG. 9 is a flowchart showing the detailed procedure of the vehicle body distortion correction process executed in step S5 of FIG. 10A and 10B are diagrams illustrating an example of the vehicle body distortion correction process. FIG. 10A is a photographed image diagram before correction, FIG. 10B is a mask image diagram, and FIG. 10C is a shift amount of image elements divided into rectangular shapes. 2D is an explanatory diagram of the detection processing of FIG.

車体歪み補正処理は、空気バネなどのサスペンションの作用により鉄道車両の車体80(図10(a)を参照)に生じる振動に起因する撮影画像の形状歪みを補正する処理である。サスペンションは、鉄道車両の台車81と車体80との間に設けられるので、サスペンションの作用に起因した撮影画像の形状歪みは、台車81やレールの部分に表れず、車体80および車体80の下部に固定的に接続されている付属物82の部分に表れる。
車体歪み補正処理に移行すると、先ず、検査処理装置20は、図10(b)のマスク画像m1を用いて撮影画像にマスク処理を行う(ステップS31:マスク手段に相当)。マスク画像m1は、台車81およびレール90以下の部分を隠すように予め設けられ、制御データとして検査処理装置20に保持されている。
The vehicle body distortion correction processing is processing for correcting the shape distortion of the captured image due to the vibration generated in the vehicle body 80 (see FIG. 10A) of the railway vehicle by the action of the suspension such as the air spring. Since the suspension is provided between the bogie 81 of the railway vehicle and the vehicle body 80, the shape distortion of the photographed image due to the action of the suspension does not appear on the bogie 81 or the rail portion, and the vehicle body 80 and the lower portion of the vehicle body 80 are not affected. It appears on the part of the attachment 82 that is fixedly connected.
When the process shifts to the vehicle body distortion correction process, the inspection processing device 20 first performs a mask process on the captured image using the mask image m1 in FIG. 10B (step S31: corresponding to a mask unit). The mask image m1 is provided in advance so as to hide the carriage 81 and the portion below the rail 90, and is held in the inspection processing device 20 as control data.

次いで、検査処理装置20は、マスク処理された撮影画像をラインスキャン方向に長い矩形状の領域ごとに分割して、複数の画像要素を生成する(ステップS32:歪み画像分割手段に相当)。分割される領域は、図8(b)に示した領域fと同様であり、以下、分割により生成された画像要素のことを「短冊画像要素」と呼ぶ。
撮影画像を短冊画像要素に分割したら、検査処理装置20は、分割された複数の短冊画像要素について1つずつ順に処理を繰り返すループ処理(ステップS33〜S37)を実行する。ループ処理に移行すると、検査処理装置20は、1つの短冊画像要素を選択し(ステップS33)、図10(c)に示すように、縦h画素×横w画素の矩形画像g2を切り出し(ステップS34)、切り出した矩形画像g2を比較基準の鉄道車両画像の同一箇所の矩形画像Rgと比較する(ステップS35)。矩形領域g2は、マスク画像m1のマスク部分と非マスク部分の境界線L2を含むように選択してもよい。この矩形画像g2には、例えば車体80の下縁を示すエッジなどが含まれているので、このエッジを矩形画像g2、Rgで比較することで、比較基準からの矩形画像g2のズレ量が計算される。
Then, the inspection processing apparatus 20 divides the masked photographed image into rectangular regions that are long in the line scan direction to generate a plurality of image elements (step S32: corresponding to a distorted image dividing unit). The area to be divided is similar to the area f shown in FIG. 8B, and hereinafter, the image element generated by the division is referred to as a “strip image element”.
After dividing the captured image into strip image elements, the inspection processing apparatus 20 executes a loop process (steps S33 to S37) in which the process is repeated one by one for each of the plurality of divided strip image elements. When shifting to the loop processing, the inspection processing device 20 selects one strip image element (step S33), and cuts out a rectangular image g2 of vertical h pixels×horizontal w pixels as shown in FIG. 10C (step S33). S34), the cut-out rectangular image g2 is compared with the rectangular image Rg of the same position of the comparison reference railcar image (step S35). The rectangular area g2 may be selected so as to include the boundary line L2 between the masked portion and the non-masked portion of the mask image m1. Since this rectangular image g2 includes, for example, an edge indicating the lower edge of the vehicle body 80, by comparing this edge with the rectangular images g2 and Rg, the deviation amount of the rectangular image g2 from the comparison reference is calculated. To be done.

次に、図10(d)に示すように、検査処理装置20は、マスク画像m1のマスク部分の境界線L2に基づき、1つの短冊画像要素のうちマスク部分は固定とし、非マスク部分g1だけズレ量の移動を行わせる(ステップS36:画像修正手段に相当)。この移動の際、移動する領域の上端又は下端に画素が不足するが、検査処理装置20は、例えば影部分と同じ明度の画素を埋めるなどの補間処理を行って画素の不足を補う。
1つの短冊画像要素についてズレ量を補正する処理を行ったら、検査処理装置20は、全ての短冊画像要素について処理を完了したか判別し(ステップS37)、否であれば、処理をステップS33に戻してループ処理を続ける。ループ処理が繰り返されることで、撮影画像内の全ての短冊画像要素の補正処理が達成される。そして、完了となったら、ループ処理を抜けて次のステップに処理を進める。
Next, as shown in FIG. 10D, the inspection processing apparatus 20 fixes the mask portion of one strip image element based on the boundary line L2 of the mask portion of the mask image m1 and only the non-mask portion g1. The shift amount is moved (step S36: equivalent to image correction means). At the time of this movement, there is a shortage of pixels at the upper or lower end of the moving area, but the inspection processing device 20 compensates for the shortage of pixels by performing interpolation processing such as filling in the pixels of the same brightness as the shadow portion.
After performing the process of correcting the deviation amount for one strip image element, the inspection processing apparatus 20 determines whether the process has been completed for all strip image elements (step S37). If not, the process proceeds to step S33. Return and continue loop processing. By repeating the loop processing, the correction processing of all the strip image elements in the captured image is achieved. When the processing is completed, the loop processing is exited and the processing proceeds to the next step.

次のステップに移行すると、検査処理装置20は、処理後の全ての短冊画像要素を順に貼り合わすように合成処理を行い(ステップS38)、さらにマスク画像m1によるマスクの解除を行う(ステップS39:マスク解除手段に相当)。そして、車体歪み補正処理を終了する。このような処理により、車体80とその下部の付属物82との形状歪みが修正された鉄道車両の撮影画像が得られる。 When moving to the next step, the inspection processing apparatus 20 performs a combining process so that all the processed strip image elements are attached in order (step S38), and further releases the mask by the mask image m1 (step S39: Equivalent to the mask release means). Then, the vehicle body distortion correction process ends. Through such processing, a photographed image of the railway vehicle in which the shape distortion of the vehicle body 80 and the accessory 82 below the vehicle body is corrected is obtained.

以上のように、本実施の形態の検査処理装置20の鉄道車両の撮影画像の生成機能によれば、先ず、ラインスキャンカメラ13によって、分解能が高く、何れの箇所でも一定方向から見たときの形状が示された鉄道車両の撮影画像が得られる。さらに、撮影画像の補正機能(図4のステップS2〜ステップS5)によって、撮影画像から、レールの沈み込みに起因する撮影画像の形状の歪みと、サスペンションの作用による車体の上下振動に起因する撮影画像の形状の歪みと、鉄道車両の移動速度に起因した撮影画像の形状の歪みとが補正され、さら、撮影環境の明るさに起因した撮影画像の輝度のばらつきを抑えることができる。よって、不規則な歪みのない、外観検査に適した鉄道車両の撮影画像を提供できる。 As described above, according to the generation function of the captured image of the railway vehicle of the inspection processing apparatus 20 of the present embodiment, first, the line scan camera 13 has high resolution, and when the line scanning camera 13 is seen from a certain direction at any position. A captured image of the railroad vehicle whose shape is shown can be obtained. Furthermore, by the correction function of the captured image (steps S2 to S5 in FIG. 4), the captured image is distorted from the captured image due to the sinking of the rails, and the vertical vibration of the vehicle body due to the action of the suspension captures the image. The distortion of the shape of the image and the distortion of the shape of the captured image due to the moving speed of the railway vehicle are corrected, and further, the variation in the brightness of the captured image due to the brightness of the capturing environment can be suppressed. Therefore, it is possible to provide a photographed image of a railway vehicle that is suitable for visual inspection without irregular distortion.

また、本実施の形態の検査処理装置20の鉄道車両の撮影画像の生成機能によれば、先ず、レール歪み補正処理(図4のステップS2)により、画像の全域に対する縦方向の補正が行われるので、速度伸縮補正処理(図4のステップS4)の際、撮影画像内の各部の縦横比の計算を容易に且つ精度高く行うことができる。よって、鉄道車両の移動速度に起因する撮影画像の形状の歪みを綺麗に修正できる。さらに、レール歪み補正処理と速度伸縮補正処理により、撮影画像の全域に対する縦方向の補正と横方向の補正とが行われた後に、車体歪み補正処理(図4のステップS5)が行われるので、撮影画像中の車体と台車との切り分けを容易に且つ精度高く行うことができる。これにより、空気バネなどのサスペンションによる車体の上下振動に起因する画像の歪みをより綺麗に修正することができる。 Further, according to the function of generating the captured image of the railway vehicle of the inspection processing apparatus 20 of the present embodiment, first, the rail distortion correction processing (step S2 in FIG. 4) is performed to correct the entire area of the image in the vertical direction. Therefore, in the velocity expansion/contraction correction process (step S4 in FIG. 4), the aspect ratio of each part in the captured image can be easily and accurately calculated. Therefore, the distortion of the shape of the captured image caused by the moving speed of the railway vehicle can be corrected neatly. Further, the vehicle body distortion correction processing (step S5 in FIG. 4) is performed after the vertical distortion correction and the horizontal distortion correction are performed on the entire area of the captured image by the rail distortion correction processing and the speed expansion/contraction correction processing. It is possible to easily and accurately separate the vehicle body and the carriage from the captured image. As a result, the distortion of the image caused by the vertical vibration of the vehicle body due to the suspension such as the air spring can be corrected more beautifully.

以上、本発明の実施の形態について説明したが、本発明は上記の実施の形態に限られるものではない。例えば、上記の実施形態では、鉄道車両の左右の側面を撮影して外観検査用の撮影画像を生成する方法を説明したが、例えば鉄道車両の上部を斜め下方に撮影、または鉄道車両の下部を斜め上方に撮影して、車体上部又は車体下部の外観検査を行う撮影画像を生成してもよい。また、上記実施の形態では、各補正処理の具体的な手順の一例を説明したが、補正処理の細部は発明の趣旨を逸脱しない範囲で適宜変更可能である。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments. For example, in the above-described embodiment, the method of capturing the left and right side surfaces of the railway vehicle to generate the captured image for the visual inspection has been described. However, for example, the upper portion of the railway vehicle is captured obliquely downward, or the lower portion of the railway vehicle is captured. You may generate|occur|produce image|photographed diagonally upward and perform the visual inspection of a vehicle upper part or a vehicle lower part, and produce|generate the imaged image. Further, in the above embodiment, an example of a specific procedure of each correction process has been described, but the details of the correction process can be appropriately changed without departing from the spirit of the invention.

また、上記実施形態では、検査処理装置20内の記憶装置24に、正常画像データベース24Bと異常画像データベース24Cとを設けた例を示した。しかしながら、正常画像データベース24Bと異常画像データベース24Cとは別の記憶装置内に設け、例えばLANにより検査処理装置20(コンピュータ)と接続される構成としてもよい。
また、上記実施形態では、画像の補正処理および異常検出を行う検査処理装置が撮影手段から離れて配置される例を示した。しかしながら、検査処理装置は撮影手段と同様に線路の傍らに配置されてもよいし、その場合、検査処理装置(20)に画像処理装置(15)の機能を組み込んで、両者を一体的に構成してもよい。
Further, in the above embodiment, an example in which the normal image database 24B and the abnormal image database 24C are provided in the storage device 24 in the inspection processing device 20 has been shown. However, the normal image database 24B and the abnormal image database 24C may be provided in different storage devices and connected to the inspection processing apparatus 20 (computer) by, for example, a LAN.
Further, in the above-described embodiment, the example in which the inspection processing device that performs the image correction process and the abnormality detection is arranged apart from the imaging unit has been described. However, the inspection processing device may be arranged beside the line similarly to the photographing means. In that case, the function of the image processing device (15) is incorporated in the inspection processing device (20) to integrally configure both. You may.

1 外観検査装置
11 車両近接検知装置
13 ラインスキャンカメラ(撮影手段)
14 背景板
15 画像処理装置
17 基準器
17a 表示面
20 検査処理装置(歪み補正手段、レール歪み補正手段、車体歪み補正手段、速度伸縮補正手段、輝度補正手段)
21 CPU
22 RAM
23 インタフェース
24 記憶装置
24A 外観検査プログラム
f 矩形状の領域
RP 基準プロファイル線
P1 プロファイル線
m1 マスク画像
1 Appearance inspection device 11 Vehicle proximity detection device 13 Line scan camera (imaging means)
14 background plate 15 image processing device 17 reference device 17a display surface 20 inspection processing device (distortion correction means, rail distortion correction means, vehicle body distortion correction means, speed expansion/contraction correction means, brightness correction means)
21 CPU
22 RAM
23 interface 24 storage device 24A appearance inspection program f rectangular area RP reference profile line P1 profile line m1 mask image

Claims (5)

線路上を移動する鉄道車両を上下方向に走査して撮影画像を得るラインスキャン型の撮影手段と、
上下方向の基準位置が示された表示面を有し且つ前記撮影手段の撮影箇所と重なる位置で線路に固定された基準器と、
鉄道車両の上下動に起因する前記撮影画像の形状の歪みを補正する歪み補正手段とを備え、
前記歪み補正手段は、
前記撮影画像に連続的に写り込んだ前記基準位置を示す線が直線状になるように前記撮影画像を部分毎に上下方向にずらすレール歪み補正手段と、
前記撮影画像のうち、鉄道車両の台車およびレールが写される領域の画像を除いて、鉄道車両の車体および前記車体に固定的に接続された付属物が写される領域の画像を部分毎に上下方向にずらす車体歪み補正手段と、
を有することを特徴とする検査用画像生成装置。
A line scan type photographing means for obtaining a photographed image by vertically scanning a railroad vehicle moving on a track,
A reference device having a display surface showing a reference position in the up-down direction and fixed to the railroad track at a position overlapping with a shooting location of the shooting means;
Distortion correcting means for correcting the distortion of the shape of the photographed image caused by the vertical movement of the railway vehicle,
The distortion correction means,
Rail distortion correction means for shifting the photographed image vertically for each part so that a line indicating the reference position continuously reflected in the photographed image becomes linear.
Of the photographed image, except for the image of the region where the bogie of the railway vehicle and the rail are imaged, the image of the region where the body of the railway vehicle and the accessories fixedly connected to the vehicle body are imaged Vehicle body distortion correction means for shifting in the vertical direction,
An image generation apparatus for inspection, comprising:
前記車体歪み補正手段は、
前記撮影画像のうち、鉄道車両の台車およびレールが写される領域を隠し、鉄道車両の車体および前記車体に固定的に接続された付属物が写される領域の画像を抽出するマスク手段と、
前記マスク手段により抽出された画像を上下方向に長い矩形状の画像要素に分割する歪み画像分割手段と、
前記矩形状の画像要素を鉄道車両の基準画像と比較して上下方向のズレを修正する画像修正手段と、
前記画像修正手段により修正された画像に前記マスク手段により隠された領域の画像を復元するマスク解除手段と、
を含んでいることを特徴とする請求項1記載の検査用画像生成装置。
The vehicle body distortion correction means,
Of the captured image, a mask means for hiding a region in which a bogie and a rail of a railway vehicle are imaged, and extracting an image of a region in which a vehicle body of a railway vehicle and an accessory fixedly connected to the vehicle body are imaged,
A distorted image division unit that divides the image extracted by the mask unit into rectangular image elements that are long in the vertical direction;
Image correction means for correcting the vertical shift by comparing the rectangular image element with the reference image of the railroad vehicle,
A mask releasing means for restoring the image of the area hidden by the masking means to the image corrected by the image correcting means,
The inspection image generating apparatus according to claim 1, further comprising:
鉄道車両の移動速度に起因する前記撮影画像の各部の縦横比のばらつきを補正する速度伸縮補正手段をさらに備え、
前記速度伸縮補正手段は、
前記撮影画像のエッジ抽出を行って鉄道車両の特徴部分を抽出する特徴部分抽出手段と、
前記撮影画像を上下方向に長い矩形状の画像要素に分割する伸縮画像分割手段と、
鉄道車両の特徴部分の基準的な形状が示された基準プロファイルと、前記特徴部分抽出手段により抽出された特徴部分とを比較して撮影画像の各部の縦横比のズレを計算する縦横比計算手段と、
前記縦横比計算手段が計算した縦横比のズレがなくなるように前記伸縮画像分割手段により分割された画像要素を横方向に伸縮する画像伸縮手段と、
を含んでいることを特徴とする請求項1又は請求項2記載の検査用画像生成装置。
Further comprising speed expansion/contraction correction means for correcting the variation in the aspect ratio of each part of the captured image due to the moving speed of the railway vehicle,
The speed expansion/contraction correction means,
Characteristic portion extracting means for extracting the characteristic portion of the railway vehicle by performing edge extraction of the photographed image,
A stretchable image dividing unit that divides the captured image into rectangular image elements that are long in the vertical direction,
Aspect ratio calculation means for comparing the reference profile showing the reference shape of the characteristic portion of the railway vehicle with the characteristic portion extracted by the characteristic portion extraction means to calculate the deviation of the aspect ratio of each part of the captured image. When,
An image expansion/contraction means for expanding/contracting the image elements divided by the expansion/contraction image division means in the horizontal direction so that the deviation of the aspect ratio calculated by the aspect ratio calculation means is eliminated.
The inspection image generating apparatus according to claim 1 or 2, further comprising:
前記レール歪み補正手段、前記速度伸縮補正手段、前記車体歪み補正手段の順で、前記撮影画像の補正処理を行うことを特徴とする請求項3記載の検査用画像生成装置。 The inspection image generation apparatus according to claim 3, wherein the rail image distortion correction unit, the speed expansion/contraction correction unit, and the vehicle body distortion correction unit perform the correction process of the captured image in this order. 前記基準器の前記表示面には、さらに複数階調の明度が示される明度表示部が含まれ、
前記撮影画像に含まれる前記明度表示部の複数階調の明度に基づいて前記撮影画像の輝度を補正する輝度補正手段をさらに備えることを特徴とする請求項1から請求項4の何れか一項に記載の検査用画像生成装置。
The display surface of the reference unit further includes a lightness display unit showing lightness of a plurality of gradations,
The brightness correction unit that corrects the brightness of the captured image based on the brightness of a plurality of gradations of the brightness display unit included in the captured image, further comprising: a brightness correction unit. The image generation device for inspection according to [4].
JP2016109682A 2016-06-01 2016-06-01 Inspection image generator Active JP6717666B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016109682A JP6717666B2 (en) 2016-06-01 2016-06-01 Inspection image generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016109682A JP6717666B2 (en) 2016-06-01 2016-06-01 Inspection image generator

Publications (2)

Publication Number Publication Date
JP2017215823A JP2017215823A (en) 2017-12-07
JP6717666B2 true JP6717666B2 (en) 2020-07-01

Family

ID=60577092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016109682A Active JP6717666B2 (en) 2016-06-01 2016-06-01 Inspection image generator

Country Status (1)

Country Link
JP (1) JP6717666B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7179571B2 (en) * 2018-10-16 2022-11-29 株式会社日立ハイテクソリューションズ Vehicle inspection device and method
JP7334753B2 (en) * 2020-03-27 2023-08-29 Jfeスチール株式会社 Rail subsidence prediction method, prediction device, rail repair time determination method, and rail subsidence abnormality time determination method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4818747B2 (en) * 2006-02-23 2011-11-16 公益財団法人鉄道総合技術研究所 Railway vehicle inspection method and apparatus using long images
JP2009174923A (en) * 2008-01-22 2009-08-06 Mitsubishi Electric Corp Surface inspection device and surface inspection method

Also Published As

Publication number Publication date
JP2017215823A (en) 2017-12-07

Similar Documents

Publication Publication Date Title
JP6737638B2 (en) Appearance inspection device for railway vehicles
JP7050824B2 (en) Image processing device and image processing method
CN107316047B (en) Image processing apparatus, image processing method, and storage medium
KR101205428B1 (en) Target position identifying apparatus
JP6875836B2 (en) Wire rope measuring device and method
RU2478489C1 (en) Device to measure current collector height
JP6524529B2 (en) Building limit judging device
JP6717666B2 (en) Inspection image generator
JP7017207B2 (en) Image inspection device and its image inspection method
KR101227343B1 (en) Inspection system
CN109493418B (en) Three-dimensional point cloud obtaining method based on LabVIEW
CN113465541A (en) Contact line abrasion measuring method and system
US20120158358A1 (en) Three-dimensional shape measurement method and three-dimensional shape measurement system
JP2009174923A (en) Surface inspection device and surface inspection method
RU2650857C1 (en) System for determining geometric parameters of three-dimensional objects
JP6944355B2 (en) Railroad vehicle image generator and railroad vehicle visual inspection system
JP4248212B2 (en) Stereo image processing apparatus and stereo image processing method
JP4062100B2 (en) Shape measuring device
CN112710662A (en) Generation method and device, generation system and storage medium
JP5206499B2 (en) Measuring method, measuring device, measurement control program
CN113853515A (en) Stress analysis device for moving object
JP2010266308A (en) Welding workpiece shape measuring device and program for the same
JP5156211B2 (en) Distance measurement method from vehicle to traffic light
KR101412480B1 (en) A method of measuring full and shawl width of tread of tire
JP2019128294A (en) Shape measuring device and shape measuring method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200527

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200609

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200611

R150 Certificate of patent or registration of utility model

Ref document number: 6717666

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250