• Tidak ada hasil yang ditemukan

UNIVERSITI TEKNIKAL MALAYSIA MELAKA AUTOMATIC VEHICLE PLATE RECOGNITION USING TEMPLATE MATCHING

N/A
N/A
Protected

Academic year: 2022

Membagikan "UNIVERSITI TEKNIKAL MALAYSIA MELAKA AUTOMATIC VEHICLE PLATE RECOGNITION USING TEMPLATE MATCHING"

Copied!
24
0
0

Teks penuh

(1)

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

AUTOMATIC VEHICLE PLATE RECOGNITION USING TEMPLATE MATCHING

This report is submitted in accordance with the requirement of the Universiti Teknikal Malaysia Melaka (UTeM) for the Bachelor of Electronic Engineering

Technology (Telecommunication) with Honours.

by

NUR SYAZA SYAFIQAH BINTI ZULHAMRI B071610273

94080505055544

FACULTY OF ELECTRICAL AND ELECTRONIC ENGINEERING TECHNOLOGY

2019

(2)

ii

Tajuk: AUTOMATIC VEHICLE PLATE RECOGNITION USING TEMPLATE MATCHING

Sesi Pengajian: 2019

Saya NUR SYAZA SYAFIQAH BINTI ZULHAMRI mengaku membenarkan Laporan PSM ini disimpan di Perpustakaan Universiti Teknikal Malaysia Melaka (UTeM) dengan syarat-syarat kegunaan seperti berikut:

1. Laporan PSM adalah hak milik Universiti Teknikal Malaysia Melaka dan penulis.

2. Perpustakaan Universiti Teknikal Malaysia Melaka dibenarkan membuat salinan untuk tujuan pengajian sahaja dengan izin penulis.

3. Perpustakaan dibenarkan membuat salinan laporan PSM ini sebagai bahan pertukaran antara institusi pengajian tinggi.

4. **Sila tandakan (X)

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA

(3)

iii

SULIT*

Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia sebagaimana yang termaktub dalam AKTA RAHSIA RASMI 1972.

TERHAD* Mengandungi maklumat TERHAD yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan.

TIDAK

TERHAD

Yang benar, Disahkan oleh penyelia:

... ...

NUR SYAZA SYAFIQAH BINTI ZULHAMRI

TS DR ROSTAM AFFENDI BIN HAMZAH

Alamat Tetap: Cop Rasmi Penyelia

NO 56 LORONG AZ-ZAHARAH 10/3 BANDAR PUNCAK ALAM 42300 SELANGOR DARUL EHSAN

Tarikh: 16/12/2019 Tarikh: 16/12/2019

*Jika Laporan PSM ini SULIT atau TERHAD, sila lampirkan surat daripada pihak berkuasa/organisasi berkenaan dengan menyatakan sekali sebab dan tempoh laporan PSM ini perlu dikelaskan sebagai SULIT atau TERHAD.

(4)

iv

DECLARATION

I hereby, declared this report entitled AUTOMATIC VEHICLE PLATE

RECOGNITION USING TEMPLATE MATCHING is the results of my own research except as cited in references.

Signature: ………

Author : NUR SYAZA SYAFIQAH BINTI

ZULHAMRI Date:16/12/2019

(5)

v APPROVAL

This report is submitted to the Faculty of Electrical and Electronic Engineering Technology of Universiti Teknikal Malaysia Melaka (UTeM) as a partial fulfilment of the requirements for the degree of Bachelor of Electronic Engineering Technology (Telecommunication) with Honours. The member of the supervisory is as follow:

Signature: ……….

Supervisor : TS DR ROSTAM AFFENDI BIN

HAMZAH

(6)

vi ABSTRAK

Projek ini dapat memberi manfaat kepada Fakulti Teknologi Kejuteraan Elektrik dan Elektronik (FTKEE), UTeM. Tajuk bagi projek ini ialah mengenal pasti plat kenderaan automatik mengunakan padanan templat. Sistem ini diubah suai bagi memenuhi keperluan penguna. Sistem rangkaian yang digunakan dapat membaca nombor pendaftaran kenderaan dengan mengambil gambar mengunakan kamera. Kaedah ini dapat dikemaskini melalui projek ini dengan mengunakan padanaan templat tetapi ia hendaklah dihubungkan dengan mengunakan rangkaain Matlab. Dengan mengunakan rangkaian Matlab ini, ia dapat membantu penguna untuk memasuki rangkaian dengan sendirinya. Justeru ia dapat menjimatkan masa kerana penguna dapat memasuki sistem tanpa had masa. Selain itu, ia juga dapat memberi manfaat khususnya kepada pihak berkuasa melalui penjimatan kos dan ia dapat menjejaki kenderaan yang hilang dengan mengunakan rangkaian dipilih serta dapat menjimatkan tenaga manusia untuk menyelesaikan tugasan yang di berikan.

(7)

vii ABSTRACT

This project is useful for the Faculty of Technology in Electric and Electronic (FTKEE), UTeM. The project title is Automatic Vehicle Plate Recognition using Template Matching. The system is developed to meet the community needs. The system is a systematic software that can read the license plate when the images are taken using camera. The method used in completing this project is template matching but it is implemented using MATLAB software. By using this software, it helps people to access the software by themselves thus it can save their time because they can have an access to the system at any convenient time. It also can be very handy for the authorised party as they can save cost and energy because the vehicle can be tracked only by using the software and does not need man power to carry out the task.

(8)

viii DEDICATION

The biggest dedication would go to Allah who is the Almighty that gives me good health and open up my heart and mind to complete this report and project. Next one is to my supervisor who had helped me a lot during completing this report. Also to my beloved parents who gives me courage and full support to be able to perform this report successfully and lastly to my friends who had contributed direct and indirectly throughout the process of completing this report. The biggest thanks would go to all of them.

(9)

ix

ACKNOWLEDGEMENTS

Firstly, I would like to thank Allah because I can complete all of the chapter of this final year project with success. I also want to express the biggest gratitude to my supervisor TS DR. Rostam Affendi bin Hamzah from University Teknikal Malaysia Melaka for giving me a clear guide line and advices throughout the process of completion of this report. Not forgotten, I want to express my special thanks to my family for providing everything that I need, support me and encourage me to complete this report successfully.

Then, I also want to thank my friends, my special friends for keep on giving me help in terms of guidance regarding the report and project. I really have learned a lot during completing this assignment and report. All the tasks required are all managed to be completed with their help. Lastly, I also want to thank University Teknikal Malaysia Melaka and to everyone who has contributed their energy and time direct and indirectly in the whole journey of completing this project and report.

(10)

x

TABLE OF CONTENTS

PAGE

TABLE OF CONTENTS x

LIST OF TABLES xiv

LIST OF FIGURES xv

LIST OF APPENDICES xviii

LIST OF ABBREVIATIONS xix

INTRODUCTION 1

1.1 Background 1

1.2 Objective 2 1.3 Problem statement 2-3

1.4 Scope 3 1.5 Structure of the report 4

LITERATURE REVIEW Error! Bookmark not defined.

2.1 Introduction 5 2.2 Previous related past project 5 2.2.1 A License Plate Recognition System Based On Colour Features 6-7

(11)

xi

2.2.2 Segmentation- and Annotation-Free License Plate Recognition with Deep Localization and Failure Identification 7-9 2.2.3 Vehicle License Plate Recognition Based on Extremal Regions and Restricted Boltzmann Machines 9-10 2.2.4 Detecting Convoys Using License Plate Recognition Data 10-11 2.2.5 Accurate Detection and Recognition of Dirty Vehicle Plate Numbers for High- Speed Applications 11-12 2.2.6 Riesz Fractional Based Model for Enhancing License Plate Detection and Recognition 12-13 2.2.7 License Plate Recognition Data-Based Traffic Volume Estimation Using Collaborative Tensor Decomposition 14 2.28 Chinese vehicle license plate recognition using kernel-based extreme learning machine with deep convolutional features 14-15 2.2.9 A Robust and Efficient Approach to License Plate Detection 16 2.2.10 Using Radon Transform to Recognize Skewed Images

of Vehicular License Plates 17-18 2.2.11 Toward End-to-End Car License Plate Detection and Recognition with Deep Neural Networks 18-20 2.2.12 Eyes on the Target: Super-Resolution and License-Plate Recognition in Low- Quality Surveillance 21-22 Table 2.1 Comparison of method based on literature review 24-27

METHODOLOGY 28

3.1 Introduction 28

(12)

xii

3.2 Methodology Process 28 3.3 MATLAB Fundamental 29 3.3.1 What is MATLAB 29

3.3.2 Overview of MATLAB 29

3.4 Flowchart of the Project Planning 30

3.5 Block Diagram of Project 31

3.6 Flowchart of Project Execution 32

3.7 Input Image 33

3.7.1 Pre-processing Image 33

3.7.1.1 Grayscale Image 33

3.7.1.2 Median Filter 34

3.7.1.3 Morphological Image Processing 34

3.7.1.4 Grayscale Image to Binary 34

3.8 Character Segmentation 35

3.9 Character Recognition 35 3.10 Template Matching 35-36 3.11 Coding of project and their explanation 37-43

CHAPTER 4 RESULT & DISCUSSION 44 4.0 Introduction 44

4.1 Create Project Command Using MATLAB 44

(13)

xiii

4.2 Simulation Result 45-47 4.3 Result Analysis 47-50

4.4 Discussion 50-52

CHAPTER 5 CONCLUSION & FUTURE WORK 53 5.0 Conclusion 53 5.1 Future Work 53

REFERENCES 54-55

APPENDIX 56

(14)

xiv

LIST OF TABLES

TABLE TITLE PAGE

2.1 Comparison of Methods Used Based On Literature Review 24-29

4.2 Result 1 45

4.2.1 Result 2 46

4.2.2 Result 3 46

4.2.3 Result 4 46

4.2.4 Result 5 47

4.3 Analysis 1 48

4.3.1 Analysis 2 48

4.3.2 Analysis 3 49

4.3.3 Analysis 4 49

4.3.4 Analysis 5 50

(15)

xv

LIST OF FIGURES

FIGURE TITLE PAGE

1.0 The Text Detection Method 2

1.0.1 Extracted images 2

1.0.2 Plate Binarization 2

1.0.3 Recognition of Binarized Plate 2

2.2.1 Extraction of Character 7

2.2.2 Process of Identifying the Failure 8

2.2.2.1 Block Diagram of License Plate 9

2.2.3 Flow chart of the Extremal Regions and Restricted Boltzmann Machines 10 2.2.4 Samples of Group Vehicles 11

2.2.5 Block diagram of Dirty Vehicle Plate 12

2.2.5.1 Category of Plates 12

2.2.6 Sample of Images 13

2.2.7 Process of Reading License Plate Using CTD 14

2.2.8 Deep construction of CNN-KELM 15

2.2.9 Method of License Plate Detection Using Robust and Efficient Approach 16 2.2.10 Radon Transform Geometric Representation 17

2.2.10.1 Process of Detecting Plate Using Skewed License Plate 18

2.2.11 Process of Encoding Plate 19

2.2.12 Outline of The Neural Network Method 21

(16)

xvi

2.2.12.1 Two Stage Method VS. Deep Neural Network 22

3.3.2 MATLAB Interface 30

3.4 Flowchart of The Project Planning 30

3.5 Block Diagram of Project 31

3.6 Flowchart of the Project Process 32

3.7 Input Image 34

3.10 Template Matching 35

3.10.1 Template Matching Hidden Layer 36

3.10.2 Template Matching Working Principle 36

3.11 Project Coding 37

3.11.1 Project Coding 37

3.11.2 Project Coding 38

3.11.3 Project Coding 38

3.11.4 Project Coding 38

3.11.5 Project Coding 38

3.11.6 Project Coding to Reset Command 39

3.11.7 Project Coding for Image Format 40

3.11.8 Project Coding to Remove Small Objects 41

3.11.9 Project Coding to Create Bounding Box 41

3.11.10 Project Coding to Resize 42

3.11.11 Project Coding to Convert Array 43

3.11.11 Project Coding to Produce Output 43

4.1 MATLAB Interface 44

4.1.1 MATLAB with Written Command 45

(17)

xvii

4.3 Template Matching 47

(18)

xviii

LIST OF APPENDICES

APPENDIX TITLE PAGE

Appendix 1 Gant Chart 56 Appendix 2 Gant Chart 56

(19)

xix

LIST OF ABBREVIATIONS

ALPR – Automatic Vehicle License Recognition CNN – Convolutionary Neural Network

LP – License Plate

HMMM – Hidden Markov Models BRNN – Bidirectional Neural Network

HDRBM - Discriminative Restricted Boltzmann Machines U.S – United States

CTD – Collaborative Tensor Decomposition OCR – Optical Character Recognition ELM – Extreme Learning Machine SVM – Support Vector Machine

Display in GUI

(20)

1

INTRODUCTION

1.1 Background

Automated license plate recognition (ALPR) is a need for applications in roadway imaging. License plate recognition are equipped with sensors that comes with the implanted camera to observe the traffic of the road. The vehicle’s license plate, the time and the location of the vehicles will be recorded when it moves near the sensor and that is how the process takes place. Automatic license plate recognition does not need the help of human thus this system can be found very handy in image processing field.

In real world applications like toll collection in highway, management systems in parking lot and traffic roads (S. Yu et al, 2015). Besides that, in in common cases like looking for stolen cars or in the embassies and factories, license plate recognition is system widely used (V. Tadi et al, 2016). In order to meet all the needs of the applications that used license plate recognition, the detection and the recognition rates must be very high.

Although license plate recognition has been used since the last two decades, there are still obstacles in accomplishing the detection and recognition rates (Tian, R. Wang et al, 2015). The major challenge in license plate recognition is the low quality that caused by the lighting and the conditions of where the images were taken.

The license plate itself also can affect the quality as the printed license plate sometimes are not in a good condition or the old one causing unclear images captured. In this case, noise can occur in the images and can cause the images fail to be detected so few approaches were implemented to ensure the quality of the license plate recognition will be in a high resolution (B. Epshtein et al, 2010).

(21)

2

Figure 1.0: The figure shows the text detection method before (on the left side) and the improvement of the license plate image (on the right side).

Figure 1.0.1: The figure shows the extracted images from the first figure

Figure 1.0.2: The figure shows the binarization of the plate number using Howe’s method.

Figure 1.0.3: The figure shows the recognition of the binarized results using Tesseract OCR

1.2 Objective

Due to the development of this project which is Automatic Vehicle Plate Recognition, the objectives were created. The main purposes are:

1. To develop a vehicle plate recognition using template matching.

2. To generate an interface using MATLAB software.

3. To analyse the effectiveness of the result based on the proposed method.

1.3 Problem Statement

Nowadays, the residents in big cities and even in rural area has increased a lot so as the number of residents rise, definitely the number of vehicles will also surge because having a vehicle is a need for everyone. When most of the residents will have more than one

(22)

3

vehicles, it would be very hard to control and observe the incoming and outgoing each of the vehicles and it may lead to the growth of crime cases especially stolen cars because in a place like car parks, basement and lobbies, people tend to share the spot to park their vehicles there. Moreover, in the car parks, the access of the vehicles there can also be tough to be controlled because in such condition at a housing area where the parking space is limited, people might have difficulties on dealing with a problem of a people taking over someone else parking. If the problem is related to the security problems, the case could be referred to the authorised party like police but when it comes to the neighbourhood problems or residential area problems, an initiative to solve the problem needs to be thought.

Having a license plate recognition can be the best way to solve the problem because it is a device where the public users can also have. If there are numerous number of a stolen cars in a day, police or the authorised party might take quite a long time to find the car so here where license plate recognition can be an option because it saves time besides can reduce the crime cases related to the vehicles so all the movements of vehicles can be tinged by reading the plate number of the vehicles. The system can be very handy because it no longer needs security guard or man power to move around to observe the condition.

Hence, it can also save cost from hiring more people.

1.4 Scope

License plate recognition method emphases on large community of people as it includes vehicles usage since most of people in the world have their own vehicles so it can be considered as a prior need. License plate recognition scopes are to display the same car plate that has been captured as an input image accurately.

(23)

4 1.5 Structure of report

There are three chapters in this report where all of them are the important elements of the project. All the processes and the sequence of the project will be discussed clearly in the chapter.

The report starts with chapter 1. In chapter 1, it will cover about the introduction of the proposed method. The basic stage of the project is clearly reviewed. This chapter gives a clear picture of how does the idea of the chapter are generated and what does a problem occur that lead to the project development. Besides that, the measured goals are discussed in objectives and the scope of the project will explain about what the project really does.

After chapter 1, it is followed by chapter 2. Chapter 2 is about the literature review of the related previous projects. The literature review is learning and understanding the method used by other party and the research can be in the forms of journals, paper, news, internet source and others.

The next chapter of the project is chapter 3. If in the chapter 2, other method used by other party is explained and learned, in chapter 3, the proposed method used in the project is discussed. The method used of the project is briefly describe in flowcharts and block diagram of each of the process that takes place would be stated in chapter 3.

Last but not least is about result and discussion. All the results obtained whether they are success or fail and result analysis are in this chapter. The purpose of having a discussion part is to discuss about what lead to the result failure and the root causes of it.

The last chapter is about conclusion and future work.

(24)

5

LITERATURE REVIEW 2.1 What is plate recognition?

In today’s world where technology advancement has becoming a significance in our daily life, a system named License Plate Recognition is an intelligent approach to read and capture vehicle registration plates to trace the location of the vehicles and to obtain the vehicles data.

This system is usually owned by a government that has restricted access and it is hard for the public users to get them because of the expensive price. License Vehicle Plate Recognition has many ways to recognize plates such as digital image processing and neural network. There are four phases in the system which starts with is acquisition of image, extraction, segmentation and recognition but all the methods have the same goal which is to reduce the crime rate among vehicles such as stolen cars, car parks access, ease the process of gathering traffic statistics and monitor highway toll fee collection.

Number plates are the important element of a vehicle all around the world. In order to differentiate from one vehicles to another, unique license is used. Normally the plate numbers are clear and can be read by human directly without the help of machines or any device. An automatic License Car Plate Recognition can be so important in the daily life and acts as a technique to recognize vehicles plate number.

2.2 Previous Related Past Project

During the process of completing this chapter, the literature reviews are discussed and presented in the forms of summarizing the journal. The chapter will cover about the idea of the project that leads to the development of this project. The method used by other projects will be explained in details in the summary of the journals.

Referensi

Dokumen terkait

Gen GH dari ikan nila ( tiGH ) yang dikontrol oleh promoter beta-aktin (mBP) dari ikan medaka ditransfer menggunakan metode mikroinjeksi ke dalam blastodisk embrio ikan

Kopi Panas Production’s tidak memiliki divisi Account Executive (AE). Tujuan Penelitian ini adalah untuk: 1) memahami cara kerja pada biro iklan (advertising agency)

pengaruh variabel kepemimpinan dan lingkungan kerja terhadap efektivitas kerja di PT PLN (Persero) Proyek Induk Pembangkit dan Jaringan Jawa Bali dan Nusa

Hasil analisis menunjukkan bahwa soal tes sumatif bahasa Prancis SMA kelas XI program bahasa semester I tahun ajaran 2004/2005 yang dibuat oleh tim MGMP bahasa

Fraksi nonpolar diuji aktivitas biolarvasidanya pada larva nyamuk Anopheles aconitus dan Aedes aegypti dengan pengamatan setelah 24 jam. Data dianalisis menggunakan analisis

Pengaruh Pola Asuh Orangtua Terhadap Kemandirian Siswa Dalam Belajar Pada Siswa Kelas XI SMA Negeri Sumpiuh Kabupaten Banyumas Tahun Pelajaran 2005/2006. Skripsi ini

Putri Sita Palupi. ANALISIS KEPUASAN PENGGUNA LABORATORIUM PROGRAM STUDI PENDIDIKAN ADMINISTRASI PERKANTORAN FAKULTAS KEGURUAN DAN ILMU PENDIDIKAN UNIVERSITAS SEBELAS

SD Negeri 2 Mojoagung yang berlokasi di kecamatan Karangrayung merupakan salah satu SD yang guru-gurunya mengalami permasalahan dalam hal upaya peningkatan keterampilan