Vechicle number plate detection using python and cv ppt
Vechicle number plate detection using python and cv ppt
BRIGHTNESS THRESHOLDING
DETECTING EDGES
FILTER FUNCTION
PYTHON
(PROGRAMMING LANGUAGE) Python is a widely used high-level programming language
for general-purpose programming, created by Guido van Rossum and first released in
1991. An interpreted language, Python has a design philosophy which emphasizes code
readability (notably using whitespace indentation to delimit code blocks rather than curly
brackets or keywords), and a syntax which allows programmers to express concepts in
fewer lines of code than possible in languages such as C++ or Java. The language provides
constructs intended to enable writing clear programs on both a small and large scale.
Python features a dynamic type system and automatic memory management and
supports multiple programming paradigms, including object-oriented, imperative, 12
functional programming, and procedural styles. It has a large and comprehensive
standard library. Python interpreters are available for many operating systems, allowing
Python code to run on a wide variety of systems. CPython, the reference implementation
of Python, is open source software and has a community-based development model, as
do nearly all of its variant implementations. CPython is managed by the non-profit Python
Software Foundation
OPENCV OpenCV (Open source computer vision) is a library of
programming functions mainly aimed at real-time computer vision.
Originally developed by Intel, it was later supported by Willow
Garage then Itseez (which was later acquired by Intel). The library is
cross-platform and free for use under the open-sourceBSD license.
OpenCV supports the deep learning frameworks TensorFlow,
Torch/PyTorch and Caffe
OCR is formerly known as Optical Character Recognition which is revolutionary for the
digital world nowadays. OCR is actually a complete process under which the
images/documents which are present in a digital world are processed and from the text are
being processed out as normal editable text. Purpose of OCR OCR is a technology that
enables you to convert different types of documents, such as scanned paper documents,
PDF files, or images captured by a digital camera into editable and searchable data.
EasyOCR is actually a python package that holds PyTorch as a backend handler. EasyOCR
like any other OCR(tesseract of Google or any other) detects the text from images but in
my reference, while using it I found that it is the most straightforward way to detect text
from images also when high end deep learning library(PyTorch) is supporting it in the
backend which makes it accuracy more credible. EasyOCR supports 42+ languages for
detection purposes. EasyOCR is created by the company named Jaided AI company
Sample code :
img = cv2.imread(IMAGE_PATH) spacer =
100 for detection in result: top_left =
tuple(detection[0][0]) bottom_right =
tuple(detection[0][2]) text = detection[1]
31 img =
cv2.rectangle(img,top_left,bottom_right,
(0,255,0),3) img = cv2.putText(img,text,
(20,spacer), font, 0.5,
(0,255,0),2,cv2.LINE_AA) spacer+=15
plt.figure(figsize=(10,10)) plt.imshow(img)
plt.show()
Out put: