plan.tex 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. \documentclass[a4paper]{article}
  2. \title{Using local binary patterns to read license plates in photographs}
  3. \date{November 17th, 2011}
  4. % Paragraph indentation
  5. \setlength{\parindent}{0pt}
  6. \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
  7. \begin{document}
  8. \maketitle
  9. \section*{Project members}
  10. Gijs van der Voort\\
  11. Richard Torenvliet\\
  12. Jayke Meijer\\
  13. Tadde\"us Kroes\\
  14. Fabi\'en Tesselaar
  15. \tableofcontents
  16. \setcounter{secnumdepth}{1}
  17. \section{Problem description}
  18. license plates are used for uniquely identifying motorized vehicles and are
  19. made to be read by humans from great distances and in all kinds of weather
  20. conditions.
  21. Reading license plates with a computer is much more difficult. Our dataset
  22. contains photographs from license plates from all sorts of angles and distance.
  23. Meaning that not only do we have to implement a method to read the actual
  24. characters, but also have to determine the location of the license plate and its
  25. transformation due to different angles.
  26. We will focus our research in reading the transformed characters of the
  27. lisence plate, on which we know where the letters are located. This is because
  28. Microsoft recently published a new and effective method to find the location of
  29. text in an image.
  30. In short our program must be able to do the following:
  31. \begin{enumerate}
  32. \item Use perspective transformation to obtain an upfront view of license plate.
  33. \item Reduce noise where possible.
  34. \item Extract each character using the location points in the info file.
  35. \item Transform character to a normal form.
  36. \item Create a local binary pattern histogram vector.
  37. \item Match the found vector with the learning set.
  38. \end{enumerate}
  39. \section{Solution}
  40. Now that we know the problem we can start with stating our solution. This will
  41. come in a few steps as well.
  42. \subsection{Transformation}
  43. A simple perspective transformation will be sufficient to transform and resize
  44. the plate to a normalized format. Corners of license plates can be found in the
  45. data files.
  46. \subsection{Reducing noise}
  47. Small amounts of noise will probably be suppressed by usage of a Gaussian
  48. filter. A real problem occurs in very dirty license plates, where branches and
  49. dirt over a letter could radically change the local binary pattern. A question
  50. we can ask ourselves here, is whether we want to concentrate ourselves on
  51. these exceptional cases. By law, license plates have to be readable. Therefore,
  52. we will first direct our attention at getting a higher score in the 'regular'
  53. test set before addressing these cases. Looking at how LBP work, there is a good
  54. change that our features are, to a certain degree, indifferent to noise on the
  55. plates.
  56. \subsection{Extracting a letter}
  57. Because we are already given the locations of the characters, we only need to
  58. transform those locations using the same perspective transform used to to
  59. create a front facing license plate.
  60. \begin{enumerate}
  61. \item Crop the image in such a way that the character precisely fits the image.
  62. \item Scale the image to a standard height.
  63. \item Extend the image on either the left or right side to a certain width.
  64. \end{enumerate}
  65. The resulting image will always have the same size, the character contained will
  66. always be of the same height, and the character will alway be positioned at
  67. either the left of right side of the image.
  68. \subsection{Local binary patterns}
  69. Once we have separate digits and characters, we intend to use Local Binary
  70. Patterns to determine what character or digit we are dealing with. Local Binary
  71. Patters are a way to classify a texture, because it can create a histogram which
  72. describes the distribution of line directions in the image. Since letters on a
  73. license plate are mainly build up of straight lines and simple curves, it should
  74. theoretically be possible to identify these using Local Binary Patterns.
  75. This will actually be the first thing we implement, since it is not known if it
  76. will give the desired results. Our first goal is therefore a proof of concept
  77. that using LBP's is a good way to determine which character we are dealing with.
  78. Important to note is that by now, we have transformed this letter to a standard
  79. size, which eliminates the need to normalize the histograms generated by the
  80. algorithm.
  81. Once we have a Local Binary Pattern of the character, we use a Support Vector
  82. Machine to determine what letter we are dealing with. For this, the feature
  83. vector of the image will be a concatenation of the histograms of the cells in
  84. the image.
  85. \subsection{Matching the database}
  86. In order to determine what character we are dealing with, we use a SVM, as said
  87. before. To prevent us from having to teach this SVM each time we start the
  88. program, we are going to save the SVM to a pickle object, which packs an object
  89. in Python to a certain data format, so it can be unpacked somewhere else, or, in
  90. our case, when executing the program to identify a character.
  91. \end{document}