Skip to the content.
English 한국어 日本語 Tiếng Việt

Odin example

https://github.com/bobhyun/TS-ANPR/tree/main/examples/Odin/anpr

1. Copying the Engine Files

[Note] In this example, the engine file is extracted to the examples/bin/ directory to share it with other examples. However, for actual deployment, the engine file is typically copied to the directory where the application’s executable file is located.

2. How to Run

  1. Install Odin

    # Windows (using Scoop)
    scoop install odin
    
    # macOS (using Homebrew)
    brew install odin
    
    # Linux (Arch Linux)
    pacman -S odin
    
    # Linux (Ubuntu/Debian - build from source)
    sudo apt install llvm clang
    git clone https://github.com/odin-lang/Odin.git
    cd Odin && make release
    echo 'export PATH=$PATH:$HOME/Odin' >> ~/.bashrc && source ~/.bashrc
    
  2. Build and Run anpr

    The build script compiles the stb_image C library and then builds the Odin project.

    cd examples/Odin/anpr
    
    # Windows (requires Visual Studio or MinGW)
    build.bat
    anpr.exe
    
    # Linux/macOS (requires cc/gcc/clang)
    chmod +x build.sh
    ./build.sh
    ./anpr