Automatic Number Plate Recognition using TensorFlow and EasyOCR PDF

Title Automatic Number Plate Recognition using TensorFlow and EasyOCR
Author Dhruv Kshatriya
Course Computer Science
Institution Somaiya Vidyavihar University
Pages 79
File Size 3.4 MB
File Type PDF
Total Downloads 69
Total Views 155

Summary

Automatic Number Plate Recognition (ANPR) is a mass surveillance system that captures the image of vehicles and recognizes their license number. ANPR can be assisted in the detection of stolen vehicles....


Description





ANPR 



AUTOMATICNUMBERPLATE RECOGNITION

ANPR



ABSTRACT  This final project develops an algorithm for automatic number plate recognition(ANPR).ANPRhasgainedmuchinterestduringthelast decade along withtheimprovementofdigitalcamerasandthegainincomputationalcapacity. Thetextisdividedinfourchapters.Thefirst,introducestheoriginsofdigital image processing, also a little resume about the following algorithms that are neededfordevelopthesystemANPR. Thesecondchapterpresentstheobjectives to be achieved in this project, as well as, the program used for his development. Thefollowingchapterexplainsthedifferentalgorithmsthatcompoundthesystem, whichisbuiltinfivesections;thefirstistheinitialdetectionofapossiblenumber plateusingedgeandintensitydetectiontoextractinformationfromtheimage.The secondandthethirdstep,thresholdingandnormalization,arenecessarytousethe imagesinthefollowingstages;thetextoftheplateisfoundandnormalized.With the segmentation, each character of the plate is isolated for subsequent recognition. The last step reads the characters by correlation template matching, whichisasimplebutrobustwayofrecognizingstructuredtextwithasmallsetof characters. It is evaluated the system’s speed and his error rate. Finally, the conclusionsandfutureworksareshowninthechapterfour. The databases used consist of images under normal conditions and only Bulgarian’snumbersplate.           



 LourdesJiménezZozaya

i

ANPR



ACKNOWLEDGMENTS  Idedicateespeciallythisfinalprojectformyfather,Roberto,whodespitenot beingamonguswasthepersonwhowasmoreexcitedtoseethisprojectfinished and my mother,Julia, for the effort they have made over of theirlives to offerall the possibilities of which I enjoyed as well as education and values they have taughtmesincechildhoodtothepresent. AlsoIwanttodedicatethetexttomyoldersister,Silvia,forthesupportthat gives me, both professionally and academically. At my younger brother, Roberto, forthelettersandnocturnaltalksthroughSkype,whichmakemefeellikeIwasat home.Iextendthisdedicationtotherestofmyimmediatefamily,andfriendswho haveaccompaniedmeduringthistime. Ofcourse,acknowledgetohalfofmyself,myboyfriend,Iñaki,thankstohimI decided to accept a scholarship Erasmus and taught me that there isn`t sufficient sacrificefortherewardthatawaitsme. Ontheotherhand,notleast,tothePublicUniversityofNavarre by training and acceptance of scholarship Erasmus and my mentor here at the Technical University of Sofia, Milena Lazarova, that despite her great contribution and professionaldedicationalwaysfindsaplaceformydoubts. 



LourdesJiménezZozaya

ii

ANPR



iii

CONTENTS  CHAPTER1–INTRODUCTION 1.1

1

DIGITALIMAGEPROCESSING (DIP)

1

1.1.1

IMPORTANCEOFTHEIMAGES

1

1.1.2

ORIGINS

2

1.1.3

DIPPROCESSES

3

1.2

AUTOMATICNUMBERPLATERECOGNITION

3

1.2.1

INTRODUCTIONTOTHETOPIC

3

1.2.2

APPLICATIONS 

6

1.2.3

WORKINTHEMARKET

6

1.3

IMAGEPROCESSINGALGORITHMS

1.3.1

MATHEMATICALMORPHOLOGICAL

1.3.2

DETECTIONOFDISCONTINUITIES

7 7 9

1.3.2.1 GRADIENTOPERATOR

10

1.3.2.2 LAPLACIANOPERATOR

11

1.3.2.3 CANNYDETECTOR 1.3.3

THRESHOLDING

13 14

1.3.3.1 CHOICEOFTHRESHOLD

14

1.3.3.2 OTSUALGORITHM 

15

1.3.4

HOUGHTRANSFORM 

17

1.3.5

BOUNDARYANDREGIONALDESCRIPTORS

18

1.3.6

OBJECTRECOGNITION 

19

 CHAPTER2–OBJECTIVESANDTOOLSUSED

22

2.1

MATLAB,DEVELOPMENT TOOL

22

2.2

PROJECTOBJECTIVES

24

2.3

SCHEMATICOFTHESYSTEM

24

 



LourdesJiménezZozaya

ANPR

 CHAPTER3–DESIGNANDRESOLUTION

25

3.1

THEBASISOFTHEALGORITHM

25

3.2

MAIN FUNCTIONS

26

3.2.1

LOCATIONPLATE

26

3.2.2

SEGMENTATION

31

3.2.3

RECOGNITION

35

3.2.4

ANPR

3.3

40

RESULTS

41

3.3.1

TABLES 

41

3.3.2

SUCCESSIMAGES 

46

3.3.3

ERRORIMAGES

49

3.3.3.1 LOCATIONPLATEMISTAKES 

49

3.3.3.2 SEGMENTATIONMISTAKES

51

3.3.3.3 RECOGNITIONMISTAKES

13

3.3.3.4 ANPRMISTAKES 13  CHAPTER4–REVIEWS56 4.1

CONCLUSIONS56

4.2

FUTUREWORKS56

 BIBLIOGRAPHY57

 



LourdesJiménezZozaya

iv

ANPR



v

LISTOFFIGURES  

Figure1.1.aImageofsquaresofsize1,3,5,7,9and15pixelsontheside8 Figure1.1.bErosionoffig.1.1.awithasquarestructuringelement 

8

Figure1.1.cDilationoffig.1.1.bwithasquarestructuringelement 

8

Figure1.2.aOriginalimage 

9

Figure1.2.bOpeningoffig.1.2.a 

9

Figure1.2.cClosingoffig.1.2.a 

9

Figure1.3.aGenericmask3×310 Figure1.3.bGenericimageneighborhood10 Figure1.4.aHorizontalSobelmask 

11

Figure1.4.bVerticalSobelmask 

11

Figure1.5.aHorizontalPrewittmask 

11

Figure1.5.bVerticalPrewittmask 

11

Figure1.6.aMaskofLaplacian 

12

Figure1.7.aOriginalimage 

12

Figure1.7.bFilteredoffig.1.7.abySobelmask 

12

Figure1.7.cLaplacianoffig.1.7.abyLaplacianmask 

12

Figure1.8.aOriginalimage 

14

Figure1.8.bFilteredoffig.1.8.abyCannydetector 

14

Figure1.9.aOriginalimage 

17

Figure1.9.bGrayscaleimageoffig.1.9.a 

17

Figure1.9.cResulttoapplymethod'sOtsuoffig.1.9.a 17  Figure1.10.axy‐plane 

18

Figure1.10.bParameterspace 

18

Figure1.11.a(ρ,θ)paramerizationoflinesinthexy‐plane 

18

Figure1.11.bSinusoidalcurvesintheρθ‐plane 

18

Figure1.11.cDivisionofρθ‐planeintoaccumulatorcells 

18

Figure1.12MatLabmainwindow 

22

Figure1.13Schematicofthesystem 24 Figure1.14Image'130.jpg'  45  Figure1.15Image'13.jpg'

45 LourdesJiménezZozaya

ANPR



vi

Figure1.16Image'9.jpg' 45 Figure1.17Image'11.jpg'

46

Figure1.18Image'40.jpg'  46 Figure1.19Image'77.jpg'

46

Figure1.20Image'97.jpg'

47

Figure1.21Image'114.jpg'47 Figure1.22Image'141.jpg'

47

Figure1.23Image'111.jpg' 

48

Figure1.24Image'43.jpg' 

49

Figure1.25Image'78.jpg' Figure1.26Image'119.jpg'

49 50

Figure1.27Image'46.jpg' 51 Figure1.28Image'56.jpg' 

51

Figure1.29Image'81.jpg'

52

Figure1.30Image'14.jpg' 

52

Figure1.31Image'2.jpg'

53

Figure1.32Image'28.jpg' 

54



  



LourdesJiménezZozaya

ANPR



vii

LISTOFTABLES  

Table1.1Tableofimages142  Table1.2Tableofimages243 Table1.3Tableofimages3

44

Table1.4Tableofimages4 45 Table1.5Tableofresults 46  



LourdesJiménezZozaya

ANPR



CHAPTER1–INTRODUCTION 

1.1 DIGITALIMAGEPROCESSING(DIP) It refers to process real world images digitally by a computer. It is a broad topic, which includes studies in physics, mathematics, electrical engineering, computer science. It studies the conceptual foundations of the acquisition and deployment of images and in detail the theoretical and algorithmic processing as such. It also aims to improve the appearance of the images and make them more evidentincertaindetailsthatyouwanttonote. Thischapterdoesn'tintendtoprovideadetailedexplanationofdigitalimage processing, but yes an overview of those concepts and methods more important fortherealizationofthisproject. 

1.1.1 IMPORTANCEOFTHEIMAGES The human uses the senses to iterate with the world they live. The senses allowyoutoknowreality.Thiswaywegraspinformationabouttheworldaround us. We can feel objects, identify smells, hear sounds, detect flavors and most importantlywecanseethespaceinwhichwelive. Ofallthesensesthemostdevelopedisinsight.Itisthemeansbywhichwe receiveinformation.Itallowsustoperceiveandunderstandtheworldaroundus andaccountsfornearlyseventypercentoftheinformationwereceive.Amongthis typeofinformationincludetheidentificationoffaces,reading,images,etc... Thescenesareoftenperceivethree‐dimensional(3D)and whenwecapture by devices (cameras or video, X‐ray screens, etc...) we obtain two‐dimensional images(2D).Thehumaninteractswithathree‐dimensionalworld,whenwewant tocaptureapiecebysomedeviceusuallywegettwo‐dimensionalimages. For all these reasons, the images are becoming more prominent role in our society. Personal photographs, video conferencing, real maps, movies, news and audio; all these elements have in common that store images. Therefore we are keentoinvestigateanddevelopgoodsystemsforimageprocessing. 





LourdesJiménezZozaya

1



ANPR

1.1.2 ORIGINS Thefirstknownapplicationofdigitalimageswasinthenewspaperindustry, wheretheimagesweresentthroughacablebetweenLondonandNewYork.The introduction of image transmission through the cable was in early 1920. During this period, the time for sending images was reduced from a week to less than threehours. The history of PDI is directly related to the development and evolution of computers.Hisprogresshasgonehandinhandwiththedevelopmentofhardware technologies, requiring a high computational power and resources to store and process the images. Similarly, the development of programming languages and operating systems have made possible the continued growth of applications related to image processing, such as medical imaging, satellite, astronomical, geographical, archaeological, biological, industrial applications. The most have commongoal toextract specificinformation froman image,whetherforsecurity, control,monitoring,identification,registrationandmonitoring,amongothers. The early work on artificial vision dating from the early 1950. The initial enthusiasm was so great mainly due to greater confidence in the possibilities of computers. Years later, that enthusiasm disappeared due to the limited progress andthefewexistingapplications.Althoughinthesixtiesdevelopedalgorithmsthat are used today, such as edge detectors Roberts (1965), Sobel (1970) and Prewitt (1970), its operation was limited to a small number of images and cases. That is whyintheseventiestherewasagradualabandonmentinresearch. Since the eighties we start to focus on feature extraction. So there is the detectionof textures(Haralik,1979), andobtain theshape through them (Witkin (1981)). In the same year, 1981, articles were published Stereo vision (Mayhew and Frisby), motion detection (Horn), interpretation of forms (Steven) and lines (Hanade)orcornerdetectors(RosendfeldKitchen(1982)). ThemostimportantworkofthisdecadeisthebookbyDavidMarr(Vision:a Computational Investigation Into the human representation information and processingofcasualinformation(1982)),whichwasaddressedforthefirsttimea completemethodologyofimageanalysisbycomputer. The main reasons for this growth is due in large part to a more realistic approachtosolvingtheproblem(forexample,beginstobecalledcomputervision ratherthanartificialvision),thedevelopmentofcomputers(increasedcalculation capacityanddecreaseintheprice)andspecializationinprocessinghardwareand imaging.



LourdesJiménezZozaya

2

ANPR



1.1.3 DIPPROCESSES  The capture or acquisition is the process through which a digital image is obtained using a capture device like a digital camera, video camera, scanner, satellite,etc... The preprocessing includes techniques such as noise reduction, contrast enhancement,enhancementofcertaindetails,orfeaturesoftheimage. Thedescriptionistheprocessthatgetsconvenientfeaturestodifferentiate oneobjectfromanothertype,suchas:shape,size,area,etc... The segmentation is the process which divides an image into objects that areofinteresttoourstudy. The recognition identifies the objects, for example, a key, a screw, money, car,etc... The interpretation is the process that associates a meaning to a set of recognizedobjects(keys,screws,tools,etc...)andtriestoemulatecognition.



1.2 AUTOMATICNUMBERPLATERECOGNITION  1.2.1 INTRODUCTIONTOTHETOPIC Due to the mass integration of information technology in all aspects of modern life, there is a demand for information systems for data processing in respectofvehicles. Thesesystemsrequiredatatobearchivedorbyahumanorbyaspecialteam whichisabletorecognizevehiclesbytheirlicenseplatesinreal‐timeenvironment andreflectthefactsofrealityintheinformationsystem. Therefore, several techniques have been developed recognition and recognitionsystemsarelicenseplatesusedtodayinmanyapplications. In most cases, vehicles are identified by their license plate numbers, which are easily readable by humans but not machines. For machines, a registration numberplateisjustadarkspotthatiswithinaregionofan imagewithacertain intensity and luminosity. Because of this, it is necessary to design a robust mathematicalsystemabletoperceiveandextractwhatwewantfromthecaptured image. 



LourdesJiménezZozaya

3

ANPR



Thesefunctionsareimplementedormathematicalpatternsinwhatiscalled "ANPR Systems" (Automatic Numbers Plate Recognition) and mean a transformation between the real environment is perceived and information systemsneedtostoreandmanageallthatinformation. Thedesign of these systemsis one ofthe areas of researchinare...


Similar Free PDFs