codeproject / CodeProject.AI-ALPR

An ALPR module for CodeProject.AI Server
https://www.codeproject.com/ai
Other
5 stars 1 forks source link
alpr artificial-intelligence codeproject codeproject-ai ocr python

ALPR Module for CodeProject.AI Server

This is an Automatic License Plate Recognition (ALPR) module for CodeProject.AI Server. The actual module itself is downloadable via the CodeProject.AI Server's dashboard.

To develop and debug this code

  1. Clone the main server repo into a directory such as CodeProject/CodeProject.AI-Server

  2. Clone this ALPR repo into a separate folder CodeProject/CodeProject.AI-Modules

    You should now have

    CodeProject
      - CodeProject.AI-Server
         - src
           - demos
           - server
           - ... etc
         - tests
      - CodeProject.AI-Modules
         - CodeProject.AI-ALPR (this repo)
         ...
  3. If you have NOT run dev setup on the server Run the server dev setup scripts by opening a terminal in CodeProject.AI-Server/src/ then, for Windows, run setup.bat, or for Linux/macOS run bash setup.sh.
    This will setup the server, and will also setup this module as long as this module sits under a folder named CodeProject.AI-Modules, with CodeProject.AI-Modules being at the same folder level as CodeProject.AI-Server.

    If you have already setup the server You can run the setup for just this module running the setup script from a terminal opened in this folder

    REM For Windows
    ..\..\CodeProject.AI-Server\src\setup.bat
    # For Linux/macOS
    bash ../../CodeProject.AI-Server/src/setup.sh
  4. Open the server repo in Visual Studio Code (or Visual Studio) and build and launch the server (Build and Launch server in the Run and Debug menu in VS Code). This will start the server, which in turn will load the settings file from this module.
    You can start this module directly from the CodeProject.AI Server dashboard, or you can run this module as a separate process via the 'Launch ALPR' Debug and Run option in VS Code.

To create a package for this module

Assuming the folder structure outlined above, run

   REM For Windows
   ..\..\CodeProject.AI-Server\devops\build\create_packages.bat
   # For Linux/macOS
   bash ../../CodeProject.AI-Server/devops/build/create_packages.sh