Giter Club home page Giter Club logo

uk-anpr-demo's Introduction

Code deployment

Table of contents

Introduction

Example of an ANPR model trained on UK number plates.

Note: This is only the detection part, it does not do the OCR part.

Prerequisites

  • Python 3.8
  • Check the latest version of the Intel Geti SDK for the full Python compatibility chart

Installation

  1. Install prerequisites. You may also need to install pip. For example, on Ubuntu execute the following command to install Python and pip:

    sudo apt install python3-dev python3-pip
    

    If you already have installed pip before, make sure it is up to date by doing:

    pip install --upgrade pip
    
  2. Create a clean virtual environment:

    One of the possible ways for creating a virtual environment is to use virtualenv:

    python -m pip install virtualenv
    python -m virtualenv <directory_for_environment>
    

    Before starting to work inside the virtual environment, it should be activated:

    On Linux and macOS:

    source <directory_for_environment>/bin/activate
    

    On Windows:

    .\<directory_for_environment>\Scripts\activate
    

    Please make sure that the environment contains wheel by calling the following command:

    python -m pip install wheel
    

    NOTE: On Linux and macOS, you may need to type python3 instead of python.

  3. Install requirements in the environment:

    python -m pip install -r requirements.txt
    

Usage

Local inference

Make sure to activate your virtual environment

  1. Edit inferece_demo.py to specify your media source. Use an index for cameras or supply a path to a video file. Then run!
    python inference_demo.py
    

Troubleshooting

  1. If you use Anaconda as environment manager, please consider that OpenVINO has limited Conda support. It is still possible to use conda to create and activate your python environment, but in that case please use only pip (rather than conda) as a package manager for installing packages in your environment.

  2. If you have problems when you try to use the pip install command, please update pip version as per the following command:

    python -m pip install --upgrade pip
    

uk-anpr-demo's People

Contributors

olkham avatar

Watchers

 avatar

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.