Professional Documents
Culture Documents
PREPARED BY ID
Ermias Amare 4402/08
Surafel Kebede 4901/08
Melkamu Feye 5705/08
Mekonen Ayanaw 4688/08
Submitted to: MR.Belayneh
Project scope………………………………………………………………………………………………………………………….1
Chapter 2................................................................................................................................................. 2
Related works...................................................................................................................................... 2
Chapter 3………………………………………………………………………………………………………………………………………3
Objectives
This project has its own objectives:
The main objective is to detect the defects such as cracks in ceramic tiles.
To save time ,endurance and do efficient works.
Motivation
Because of our teacher, we were motivated to do this project since he gave us the project to
do as assignment. After that, when we go to started the project, we become mostly
interested to improve the problem of defect detection in ceramic tiles for our country.
Project scope
The scope of the project will be wide as much as the ceramic factories exist. Since
construction is a basic thing in our world use of ceramics is also very significant in
construction sites. So the manufacture of defect less ceramics is recommended for good
construction. Means ceramics has a lot of uses in many areas of construction so its scope is
very wide.
1
Beneficiary body from the project
The beneficiary bodies from the project are ceramic tile fabrics or companies I which they
can identify the defects on the ceramic tiles easily and in more systematic way.
Indirectly the users who need ceramic tiles in their work will be beneficiary since all the
defected materials or ceramics are identified and will not be out for sale so the construction
will be better.
Chapter 2
There are a lot of related works like wall crack detection which is used for identification of
cracked walls, and also bone fracture detection used in medical purposes to find out if a bone
is broken or not.
There are also a lot of ceramic crack, defect detection projects in another methods such as by
morphological methods.
Chapter 3
Project Methodology
We used a matlab programing language to perform defect detection process of ceramic tiles.
As we are asked to detect the defection of ceramic tiles, first we have used defect detection
by black pixel counting method. We insertedreference image and test image. This is because
we detect the test image in reference to our reference image. Then we convert both images
means the reference and the test images to grey scale. After that we calculated the black
pixels for both images. As we have mentioned above, we had taken two images which both of
them had white and black pixels. Thus we represented them by a1 and a2 for reference and
then compare the black pixel count of the images.
If a1=a2, then we will have ‘No defect’ since the black pixel value is equal means
2
the two ceramics are perfectly identical.
If the black pixel count value is different there must be some defect in the test
image with reference to the reference image, so defect is found
Finally the resulting message will pop up in a matlab command window.
Chapter 4
SYSTEM DESIGN
system specifications
the specifications of this system is it must have a reference image in order to operate. since
companies have their own quality measurement value our program must have a reference
image as an input and it evaluates the all the test images according to the reference that is
given.
The system is designed using matlab software using black pixel counting comparison
method.
We calculated the black pixel of the reference image and the test image and compare if the
counts are equal. If they are equal the test image has no defect in relation to the reference
image if not the test image has defects on its surface.
3
• Load reference
and test images
• convert both
images to gray
scale
• Calculate
black pixel of
both images
Defect No
found defect
Figure 1 flow chart of system design found
4
Chapter 5
Figure 2 shows the user interface in which the user can insert the reference image by clicking
“LOAD REFERENCE IMAGE” button and test image by clicking “LOAD TEST IMAGE”
button.
5
Fig 4:Testing image
Finally the results will come up with the calculated black pixel count and with message in command
window
6
If the images are perfectly the same
Chapter 6
Conclusion
Generally our project is used for detecting ceramic tiles whether they are defected or notIt
uses black pixel comparison method to detect the defections the exist in the ceramic. The
system will input two images of the ceramic as one the test and one as a reference image.
Then turn the images to grey scale and calculate the black pixels and decide whether the test
image has defect or not.
Its strength is since the calculation is very sensitive even a little defect will not be passed. In
order to not have a defect the tiles must be perfectly the same. This also can be regarded as a
weak side of the project since nothing is perfectly the same.
Sample code
imO=imread('refer.jpg');
bO=rgb2gray(imO);
bvO=im2bw(bO);
white0=sum(imO(:));
black0=numel(imO)-white0;
imT=imread('test.jpg');
bT=rgb2gray(imT);
bvT=im2bw(bT);
whiteT=sum(imT(:));
7
blackT=numel(imT)-whiteT;
subplot(2,2,1)
imshow(imO);
title('reference image');
subplot(2,2,2)
imshow(bvO);
title(['black pixel of reference image is =',num2str(black0)]);
subplot(2,2,3)
imshow(imT);
title('test image');
subplot(2,2,4)
imshow(bvO);
title(['black pixel of test image is =',num2str(blackT)]);
a1=blackT;
a2=black0;
if a1>a2
disp('defect is found');
else
disp('defect is not found')'
end
References
Youtube
Google
Digital signal processing books