image processing based parking lot …ceg.annauniv.edu/internship/2018/intern_one/ist/ist4.pdfimage...

19
IMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submied by S.JAYAPRAKASH 2016115034 S.JAYA PRAKASH 2016115033 B.ABINASH 2016115002 S.SUSIL 2016115102 To DEAN OFFICE, ANNA UNIVERSITY For compleon of summer Internship for Second Years MAY 2018

Upload: others

Post on 25-Apr-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

IMAGE PROCESSING BASED PARKING LOT MONITORING

INTERN PROJECT REPORT

Submitted by

S.JAYAPRAKASH 2016115034

S.JAYA PRAKASH 2016115033

B.ABINASH 2016115002

S.SUSIL 2016115102

To

DEAN OFFICE, ANNA UNIVERSITY

For completion of summer

Internship for Second Years

MAY 2018

Page 2: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

ANNA UNIVERSITY CHENNAI

CHENNAI – 600 025

Page 3: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

BONAFIDE CERTIFICATE

This is to certify that this project “IMAGE PROCESSING BASED PARKING LOT

MONITORING”, is a bonafide work of “S.JAYAPRAKASH (2016115034), S.SUSIL

(2016115102), S.JAYA PRAKASH (2016115033) and B.ABINASH (2016115002)” who

carried out this project under my supervision.

SIGNATURE SIGANTURE

Dr. SASWATI MUKHERJEE DR. P. SHUNMUGA PERUMALHEAD OF THE DEPARTMENT PROJECT GUIDEDEPARTMENT OF INFORMATION DEPARTMENT OF INFORMATION SCIENCE AND TECHNOLOGY SCIENCE AND TECHNOLOGYCOLLEGE OF ENGINEERING GUINDY COLLEGE OF ENGINEERING GUINDYANNA UNIVERSITY ANNA UNIVERSITYCHENNAI – 600 025 CHENAI – 600 025

Page 4: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Abstract:

The main objective of this project is to monitor parked vehicles in the

parking lot. This helps the authority to identify the authenticated and

unauthenticated vehicles parked in the parking lots.

Working principle:

Image capturing & Image processing (authenticated /

unauthenticated vehicles)-Camera

Remote Monitoring station (cloud DB based monitoring system)

Hardware Components: (describe the following in detail)Raspberry Pi3 (Model B+):

Raspberry Pi is a low-cost, basic computer that was originally

intended to help spur interest in computing among school-aged children.

All the hardware components of our project is mostly connected through

the Raspberry Pi board and the connection becomes closed connection

using a breadboard The Raspberry Pi is contained on a single circuit

board and features ports for:

HDMI

USB 2.0

Composite video

Page 5: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Analog audio

Power

Internet

SD Card

The computer runs entirely on open-source software and gives students

the ability to mix and match software according to the work they wish to

do.

Pi camera module:

The Pi camera module v2 replaced the original camera module. The

Raspi camera will act as like the inbuilt camera as like in laptops. It helps

in capturing pictures, recording videos as per our wish and save those

images and videos in the specified path.

Desktop computer (HDMI) - Pi console monitoring:

The desktop computer act as the monitor which monitors the

complete usage of our Raspberry Pi board.

Breadboard:

Most of our projects are tested using a small piece of plastic

known as a breadboard. Officially, it’s known as a ‘solderless breadboard’

because it enables you to use circuit parts without soldering them

Page 6: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

together.This board helps to make the connection between the hardware

and the board closed.

Firebase - cloud (real-time database):

Firebase is a real time database used for storing and retrieving

the data when needed. In this database the vehicle number, Vehicle

parked time and the vehicles owners roll numbers are stored. It will be

referred and authenticated later.

Software components: (describe the following in

detail)

Raspbian OS:

Raspbian is a free operating system based on Debian optimized

for the Raspberry Pi hardware. An operating system is the set of basic

programs and utilities that make your Raspberry Pi run

Python (2.7):

The python version used here is 2.7. Some of the improvements

comparing with the previous version is

A much faster i/o module

New syntax for nested with statements

Automatic numbering of fields in the str.format() method

Page 7: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

New unittest features including test skipping, test discovery

etc.

PIP:

PIP stands for Preferred Installer Program. PIP is used to install and

manage the software packages written in python.PIP also means that PIP

Install Packages.

OpenCV:

Opencv-Python is a library of python that we mainly used for

image processing in machine learning.OpenCV supports a wide variety of

programming languages such as C++, Python, Java, etc., and is available

on different platforms including Windows, Linux, OS X, Android, and

iOS.OpenCV-Python is the Python API for OpenCV, combining the best

qualities of the OpenCV C++ API and the Python language.

Tesseract OCR (Pi):

Python-tesseract is an optical character recognition (OCR) tool

for python. That is, it will recognize and "read" the text embedded in

images. ... The images we give as input will be processed and the

tesseract will return the text in the image as string.Here no code is

required, just we need the tesseract and should know its command

Matplotlib:

Page 8: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Matplotlib is a plotting library for the Python programming

language and its numerical mathematics extension NumPy. It provides an

object-oriented API for embedding plots into applications using general-

purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+.

pyplot is matplotlib’s plotting framework. That specific import line merely

imports the module "matplotlib.pyplot" and binds that to the name "plt".

The following are equivalent (assuming x and y are already

defined). The first two are the most directly relevant to your question.

import matplotlib.pyplot as plt

plt.plot(x, y)

Numpy:

NumPy is the fundamental package for scientific computing with

Python. It contains among other things: a powerful N-dimensional array

object.

Pillow:

Pillow is also called PIL. It is used for opening, saving and

manipulating many different image file formats.

Datasets:

Page 9: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Datasets is the source for all programs, that is without datasets

no programs will run. Datasets include .csv file, xml file, images, videos

etc.

Page 10: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Screenshots (outcomes of the project):

Testing and matching of number plates

Detection and tracking of vehicle

Page 11: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Testing of number plates in database

Page 12: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Use of Space bar to take picture

Page 13: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

How to enable raspi-camera

Page 14: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Connect raspberry pi camera to raspberry pi board

Page 15: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Enable camera module in raspberry pi

Page 16: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

Identification and Seperation of number plate

Page 17: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH

\

We can also test the cars by feeding the video as input not only image.

Page 18: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH
Page 19: IMAGE PROCESSING BASED PARKING LOT …ceg.annauniv.edu/internship/2018/intern_one/IST/IST4.pdfIMAGE PROCESSING BASED PARKING LOT MONITORING INTERN PROJECT REPORT Submitted by S.JAYAPRAKASH