automatic vehicle entry exit log - senior year project

34
AUTOMATIC VEHICLE ENTRY/EXIT LOG Ahmad Azhar Umer Numan Guraya Umar Tabish Haque Taiyaba Saeed Advisor Dr. Jahangir Ikram Co-Advisor: Dr. Tariq Jadoon Dr. Murtaza Taj

Upload: ahmad-azhar

Post on 13-Apr-2017

126 views

Category:

Engineering


6 download

TRANSCRIPT

Page 1: Automatic Vehicle Entry Exit Log - Senior Year Project

AUTOMATIC VEHICLE

ENTRY/EXIT LOG Ahmad AzharUmer Numan Guraya Umar Tabish Haque Taiyaba Saeed

AdvisorDr. Jahangir Ikram

Co-Advisor:Dr. Tariq JadoonDr. Murtaza Taj

Page 2: Automatic Vehicle Entry Exit Log - Senior Year Project

Project statement:The motivation for our project stems from a demand in the market to develop a system which can:

• Maintain an online log for entry/exit time of vehicles in a certain premises (factory etc)

• Maintain an online record with pictures for vehicles entering/exiting the premises

• Extract the number from these pictures through ANPR(Automatic Number Plate Recognition)

• ANPR should work on all legal number plates within Pakistan. E.g. Lahore, Karachi and Islamabad number plates

• Provide complete record of vehicles inside a premises at any given time, time of entry and exit of vehicle, setting up an action upon entry or exit of a vehicle (SMS etc – future additions)

• Provide vehicle count for past 10, 30 and 60 minutes.

Page 3: Automatic Vehicle Entry Exit Log - Senior Year Project

Aim of Project• Maintains a data for the entry/exit time of vehicles.

• Solves administrative issues by generating a text log for vehicles entering/ exiting the premises. This helps keep track of vehicle inflow, outflow and no. of vehicles in the premises which is helpful in fleet management.

• The system has a provision of keeping a record for a given period of time (e.g. 1 month).

• The system allows the user to ascertain the status of vehicles online, to know whether the vehicle is present in the premises or not.

• Provides a fast, efficient and reliable method of identifying presence of vehicles in a premises compared to traditional methods

Page 4: Automatic Vehicle Entry Exit Log - Senior Year Project

HOW THE SYSTEM WORKS

Page 5: Automatic Vehicle Entry Exit Log - Senior Year Project

Sends Signal

Trigger Camera

Send Image to Raspberry Pi

To ANPR System

Extracted Number

Info to WebsiteTo

server

Page 6: Automatic Vehicle Entry Exit Log - Senior Year Project

“AVELOG” is divided into three main parts

• Vehicle detection

• Database development and online log

• Number plate Identification via ANPR

Page 7: Automatic Vehicle Entry Exit Log - Senior Year Project

Vehicle Detection

Page 8: Automatic Vehicle Entry Exit Log - Senior Year Project

Vehicle Detection

Loop Specifications

1. 40/76 wire2. 4 turns3. Rectangular Octagon4. Twisted cable

Page 9: Automatic Vehicle Entry Exit Log - Senior Year Project

Vehicle Detection – the circuit

Page 10: Automatic Vehicle Entry Exit Log - Senior Year Project

Vehicle Detection – loop response• Change in voltage transmitted as car passes over

Page 11: Automatic Vehicle Entry Exit Log - Senior Year Project

Vehicle Detection• Voltage change ~0.2V

• Amplification of voltage change using ADC

• Setting upper and lower threshold

• Extensive testing to ensure no false readings

𝑈𝑝𝑝𝑒𝑟 h h𝑇 𝑟𝑒𝑠 𝑜𝑙𝑑❑

Page 12: Automatic Vehicle Entry Exit Log - Senior Year Project

Image Capture

• Image initially saved in RaspberryPI

• Image later transferred to Server using SSH communication

• Automatically run code every time RaspberryPI restarts using crontab

• Image name taken to be date and time i.e. 2016-04-22.09:00:00.jpeg

Page 13: Automatic Vehicle Entry Exit Log - Senior Year Project

SSH Communication

• Assign a static IP to both devices

• Use keyless SSH entry for communication between RaspberryPI and Server

• Generate public keys for both devices and share public keys among them

• Using crontab, send all images saved in RaspberryPI to Server every minute

• Delete image from RaspberryPI after sending image to Server

• Allows user access to Raspberry PI from Server

Page 14: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development• Images recived in html folder of Server, where website is being hosted

• Installation of following softwares:• Apache• PHP• html• Mysql• Phpmyadmin; GUI for databases• Nodejs

• traffic.lums.edu.pk

Page 15: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development – Main Page

Page 16: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development – 10 min

Page 17: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development – 60 min

Page 18: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development – No image

Page 19: Automatic Vehicle Entry Exit Log - Senior Year Project

Website Development

• Storing name directly into database

• Breaking name to get time and date and storing it into database

• Make four variables:

• Start_time; gives initial time

• end_time; gives end time

• date_start;

• date_end;

Page 20: Automatic Vehicle Entry Exit Log - Senior Year Project

Database

Page 21: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using WebcamImage from Current Position Image from Up Close

Page 22: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using WebcamGray Scale Image

Page 23: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using WebcamBinary image

Page 24: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using WebcamBounding Boxes plotted around the connected components

Page 25: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using Webcam

LED 7658 LE 5033

Objects Extraction using Template Matching

Page 26: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using Phone CameraImage from Current Position Image from Up Close

Page 27: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using Phone CameraIdentification of the Connected Components

Page 28: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR using Phone Camera

LEB 8936 LEB 9493

Objects Extraction using Template Matching

Page 29: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR- ConclusionThe analysis on the mentioned methods leads to following conclusion:

• The camera must be of high quality

1.3MP Night Vision Waterproof License ANPR License Plate Capture(LPR) 1080P IP Camera

Plate Recognition Camera

US $ 275.00 US $255.00

Page 30: Automatic Vehicle Entry Exit Log - Senior Year Project

ANPR- Conclusion• Camera Positioning

• Ideal position is at road level

• Single camera covering one lane

• Distance of the camera from the vehicle should be kept minimum

Page 31: Automatic Vehicle Entry Exit Log - Senior Year Project

Hardware InstallationThe system was deployed at the out gate of LUMS. The following were included in it:

1. Webcam 2. Raspberry Pi (controller/client)3. Loop controlling circuit

Page 32: Automatic Vehicle Entry Exit Log - Senior Year Project

Cost Analysis

ITEM COST(PKR)

Raspberry Pi 5000

Webcam 8000

Wire (for loop) 1000

Labor 700

Hardware 1600

Total 16300

Page 33: Automatic Vehicle Entry Exit Log - Senior Year Project

ETAG and our system • No initial cost and logistics required to paste sticker on every vehicle

• No need to bring all vehicles within the system for system to work

Page 34: Automatic Vehicle Entry Exit Log - Senior Year Project

Future Work

• The proposed design is a prototype of cost effective solution to address an

important administrative issue. Potential future work on this project

includes:

• Application of same system on the entrance of LUMS.

• Improved image processing techniques for number plate identification

• An SMS alert system to inform arrival/exit of vehicle of choice