Code Monkey home page Code Monkey logo

opencv-plate-number-detector's Introduction

OPENCV-Plate-Number-Detector

Program that detects and stores images of Russian car plate numbers, using OpenCV, Haarcascades and Python

This software uses OpenCV library to detect Russian car plate numbers using camera.

Program is written in plateDetector.py file.

Default camera is your laptop's webcam, set in the instruction "cap = cv2.VideoCapture(0)", 0 stands for default webcam.

You may change the camera setting to another camera. To do so, please read the OpenCV documentation.

Project structure

The project consists of plateDetector.py file where entire logic for the plate detection is placed and Resources folder.

Resources folder consists of a single haarcascade_russian_plate_number.xml file, which is used to detect the Russian car plate numbers, and two folders: Images and Scanned

Images folder contains three testing images of cars bearing Russian plates, we will use those to test our software.

Scanned folder is currently empty. Once we run the program we will be able to scan the plate numbers and store those images here in Scanned folder.

How to use

run the plateDetector.py file

Your webcam will turn ON

I have provided 3 testing images of cars with Russian plate numbers. Personally, I've uploaded those images on my smartphone and simply pointed the screen of my smartphone towards te webcam, to allow the software to see the test image and recognize the plate number. However, feel free to use the testing images as you see fit to test out this program.

The plateDetector will detect the plate numbers and highlight them with a purple square around them and text "Number Plate" next to the square.

The second window will open containing only plate number that is visible.

Press "s" to scan the plate number. You will see a large writting "SCAN SAVED" across the screen. The program will take the screenshot of the plate number only (as seen in the second window containing only the number plate) and save the image in Scanned subfolder of Resources folder. Images will be marked with a serial number and stored in .jpg format.

Press "q" to close all windows.

opencv-plate-number-detector's People

Contributors

sjuras avatar

Watchers

 avatar  avatar

Forkers

zgaily

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.