Git Product home page Git Product logo

atcc_yolov5's Introduction

ATCC : YOLOv5+Deep Sort with PyTorch+ Easy OCR(*) + ESRGAN

Hits

Introduction

This repository contains a moded version of PyTorch YOLOv5 (https://github.com/ultralytics/yolov5) It filters out every detection that is not a Number Plate. The detections of Vehicle Number Plates are then passed to a Deep Sort algorithm (https://github.com/ZQPei/deep_sort_pytorch) which tracks the same along with Pytorch 1.7. The main reason to only detect Number plates is that the deep association metric is trained on a Vehicle Number Plate ONLY dataset.The detections are then cropped and subjected to Super Resolution Technique ESRGAN ( Training of the ESRGAN to get better Resolution Number Plate is done) to get high resolution number plates followed by application of EasyOCR on the same images.The registration number plates after being read are then logged into a CSV .

TODO

Going forward , the crux of the solution is to detect track and identify the vehicles which have crossed the speed thresholds of the area. In the event of such an occurence, a Chalan is expected to be shot to the holder of the registration. Multi-Camera feed is also in the road map with Amazon Textract at the OCR department and also an integration with vahan.com for chalan propagation.

Description

The implementation is based on the following:

Requirements

Python 3.8 or later with all environment.yml dependencies installed, including torch>=1.7. To install run:

conda env create -f environment.yml

All dependencies are included in the environment.yml file.

Pre-requisites before running the Driver Script (Track.py)

  1. Clone the repository recursively: git clone --recurse-submodules https://github.com/mikel-brostrom/Yolov5_DeepSort_Pytorch.git If you already cloned and forgot to use --recurse-submodules you can run git submodule update --init

  2. Github block pushes of files larger than 100 MB (https://help.github.com/en/github/managing-large-files/conditions-for-large-files). Hence you need to download two different weights: the ones for yolov5 and the ones for deep sort.

Running

Running can be run on most video formats (or RTSP Camera feeds)

python3 track.py --source ...
  • Video: --source fileName.mp4
  • Webcam: --source 0
  • RTSP stream: --source rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa
  • HTTP stream: --source http://wmccpinetop.axiscam.net/mjpg/video.mjpg

Note: However, some default values set. Like TestVideo.mp4 is what is used for the demonstration.

Multi Object compliant results can be saved to inference/output by

python3 track.py --source ... --save-txt

Other information

For further details, please refer the research papers.

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.