Skip to content

Computer Vision with IoT for an automated vehicle toll system

License

Notifications You must be signed in to change notification settings

mnthnx64/iot-vehicle-toll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT Vehicle License plate Detector

Computer Vision with IoT for an automated vehicle toll system

Introduction

This project uses the inbulit cv2.ml module to detect the license plate of vehicles. It also uses pytesseract as the OCR engine to extract the text in the detected license plate. A flask encapsulation is provided to ease the usage of the application.

Installation

The project was solely built in python 3.6.8 at the time of release. Install the dependencies by running pip install -r requirements.txt. To upload an image use the following format:

import requests
import cv2

BASE_IP = 'https://mnthnx64-iot.herokuapp.com/'
url = 'post_image'

img = cv2.imread('path_to_image.png')
_, data = cv2.imencode('.jpg',img)

response = requests.post(BASE_IP + url, data=data.tostring())
print(response.json())

About

Computer Vision with IoT for an automated vehicle toll system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages