Crack Detection in Railway Tracks Using Image Processing
Crack Detection in Railway Tracks Using Image Processing
https://doi.org/10.22214/ijraset.2022.43829
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Abstract: In this project, a computer-based methodology (i.e. image processing in MATLAB) has been discussed which will
helped in detecting the cracks on the tracks appropriately with less human intervention. A system will be there to capture the
images of the track and send it to the server .i.e. to the computer of the rail employee. The employee just has to browse that
image. However, no special knowledge is required to detect cracks which will definitely help the employees of the railway. Also,
the overall cost of the project is less with less maintenance. However, no special efforts are needed to detect cracks which will
certainly benefit the employees of the railway. In addition,with less maintenance, the project's total cost is lower.
Keywords: Railway tracks, image processing, MATLAB, drone.
I. INTRODUCTION
Most of the people travel by railway and also mostly the goods transportation is also done by railway. The railway is faster than the
bus and safer plus economical than an airplane and hence mostly used by all and is the biggest means of transportation. But the
problems with the railways are the increasingnumber of accidents which are caused by the number of reasons such as:-
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 696
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
B. Proposed Method
In this project, we have proposed a computerized method to detect cracks which require very less cost or even we can say that to
detect crack we require no cost at all and also no manual inspection to detect thecrack.
This method is based on MATLAB. We have use image processing in MATLAB. In this, first of all a reference image without crack
is provided in the MATLAB. This image is always same. Then there is a need to capture the image of the track. This captured
image is then provided to the server i.e., somewhere in the nearby station where an employee is sitting to monitor the operation.
This employee has to do just certain operations such as giving a name to the images or browsing the files of the image which
requires no special knowledge. After browsing the images in MATLAB, the program file for the crack detection which is already
stored there in MATLAB needs to open. Then the image name only has to put in proper format into that program. We can make
another arrangement by writing certain different commands for this due to which there will be no need to write the name every time
and then the program is run and browse the file of the captured image. The following figure shows the direct browsing window of
the file.
Fig 1
By just clicking the appropriate image file, then open that file. The algorithm i.e., all the operations mentioned in the program are
applied to this captured image and show the output result.In this project , we will plot the histograms of the reference image which is
without a crack and one capture image which can be with or without a crack. After plotting the histograms for both if both
histograms are same then there will be no crack present and if histograms are different then there is a presence of a crack. But the
main questionarises how to capture the images?
To implement this project there is a need to observe the tracks continuously by’ capturing the images. Also, another need is that we
want only the top view of the track. So it s a difficult taskto capture images manually.
In this project, we have mentioned two ways to capture images. Both ways use modern technology. To capture images continuously
place cameras after certain distance on the poles and allot a particular range for that camera means the range in which only it has to
capture images. After capturing the images, the images are then sent to the server. However, this method requires lots of cameras
and hence expensive and requires also a lot of maintenance. So we have mentioned this idea but use this when having sufficient
budget.
Fig 2
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 697
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
The method which we are going to use to capture the images is to use Drone camera. The image for the drone with a camera is
shown in the following figure:-
The drone will have transmitter-receiver and this transmitter-receiver is used to send information to drone and as well to send
images to the server when it captures the image. The camera being used must be powerful with the great image capturing
capabilities. For capturing the images at night time is a big task but we will use infrared cameras.
Another question arises that how many drone cameras required? If we consider the railway line of 20 Km and drone have a range to
travel 20 km. The drone will first capture the images till first 10 Km and send to the server. Then captures for the next 10 Km
and that images send to the server. This drone camera is very useful to capture images because in area likes Mumbai where
continuouslytrains are moving. It is very difficult to monitor tracks manually with a walking stick or inspection vehicle.
Fig 3
Every thirty minutes or before the train moves over the track. This drone camera s operation is also very fast and not involves a lot
of machinery. Another advantage of using it is that it can use for other purposes such as security.
This is totally dependent on the railway authority to allot ranges or decide the policy; we have just given arough idea here.
This drone camera will capture the image and send to the server where the employee is sitting. Hence the employee will put the
images in MATLAB and run the program. As soon as he gets the result if the employee finds the crack present, the employee can
also be able to find the location of the crack immediately in which range it lies and send information to the appropriate authority.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 698
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
III. FLOWCHART
The explanation for a flowchart:-
In this first, the captured image and reference image of the track are browsed into the MATLAB. Then start the writing of the
commands in the editor of MATLAB. These images are read into theMATLAB. These images are RGB images.
Now we have to apply the algorithm to these images. The algorithm can only apply to two-dimensional images rather than three-
dimensional images in MATLAB.
Since RGB image is three-dimensional image so we cannot apply algorithms to these images and hence we convert these images
into grayscale images.
The X-axis is the intensity value from 0 to 255(these images are uint8). The Y-axis varies depending on the number of a number
of pixels in the image and how their intensities are distributed.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 699
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
V. WORKING
A. Phases Of Image Processing
• ACQUISITION– It mainly involves converting an image into a digital form. The main work involves: i) Scaling ii) Color
conversion (RGB to Gray or vice-versa)
• IMAGE ENHANCEMENT–It is used to extract some hidden details from an image and is subjective.
• IMAGE RESTORATION– Restoration is based on mathematical or probabilistic models or image degradation.
• COLOR IMAGE PROCESSING– It deals with full color image processing.
• WAVELETS AND MULTI-RESOLUTION PROCESSING– It is the process of representing images in various forms.
• MORPHOLOGICAL PROCESSING-It deals with tools that are very useful in description of shape.
• SEGMENTATION PROCEDURE-It includes partitioning an image into its integral components.
• REPRESENTATION & DESCRIPTION- It transforms raw data into processed data.
• OBJECT DETECTION AND RECOGNITION-It labels an object based on its descriptor.
Now load the capture image in MATLAB first andread this image.
This RGB image is then converted into GRAY imageand the commands for this are as follows:-
b=rgb2gray(im);imshow(b);title('gray image oforiginal capture image');
This GRAY image is then converted into histogram equalized image. The need for histogram equalization is that track is brighter
than the background due to sunlight. Hence to observe track clearly histogram equalization is required and the commands for
thisare as follows:-
c=histeq(b);imshow(c);title('histogram equalizedof input captured image');
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 700
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Then the histogram of this above image is plotted. The reference image without crack is provided. Similarly it is converted into
gray image and then into histogram equalized image. After this histogramsfor both images are plotted.
image'); subplot(2,2,4);imhist(n);
title('histogram of reference image');The result for this is follows:-
The whole program is shown ones again:-
[fname path]=uigetfile('*.*','Enter an
image');
fname=strcat(path,fname);im=imread(fname);
imshow(im);
title('original captured image');b=rgb2gray(im);
c=histeq(b); subplot(2,2,1);imshow(c);
title('histogram equalized of capturedimage');
subplot(2,2,2);imhist(c);
title('histogram of input capturedimage'); REF=imread('rail2.jpg'); m=rgb2gray(REF); n=histeq(m);
subplot(2,2,3);imshow(n);
title('histogram equalized image ofreference image');
subplot(2,2,4);imhist(n);
title('histogram of reference image');
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 701
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
If we observe the above two histograms then it is clear that both are different and hence we can come o the decision that there
is a crack on a track. The employee of the railway just has to identify the histograms and then can give the decision about the
presence of the crack.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 702
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
VII. CONCLUSION
In this paper, a method to detect cracks in railway tracks has been presented using image processing techniques. The proposed
method helps to detect cracks with some manual working on the computer. Pictures of the tracks are taken with drone and given as
input to the suggested system to detect cracks. This will help to detect cracks immediately and reduce the possibilities of accidents.
The proposed method detects cracks with accuracy and hence the utmost efficiency of the system can be ensured. So with the help
of image processing in MATLAB, it is able to find the cracks in the tracks easily.
REFERENCES
[1] Rizvi Aliza Raza, Khan Pervez Rauf, Ahmed shafeeq, crack detection in tracks using MATLAB , International Journal of Advance Research, Ideas and
innovations in technology ( VOLUME 3, ISSUE 4).
[2] Gonzalez, R. C., R. E. Woods, and S. L. Eddins, Digital Image Processing Using MATLAB, New Jersey, Pearson Prentice Hall, 2004. ’
[3] Image Processing Toolbox User s Guide, version 5, by The MathWorks, Inc.
[4] https://www..mathworks..com
[5] An Introduction to Digital Image Processing with Matlab, Notes for SCM2511 ImageProcessing 1, Semester 1, 2004, Alasdair McAndrew, School of
Computer Science and Mathematics, Victoria University of Technology
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 703