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

Fortran example

https://github.com/bobhyun/TS-ANPR/tree/main/examples/Fortran/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. Prerequisites

  1. Install Fortran compiler and build tools

    Ubuntu/Debian:

    sudo apt-get update
    sudo apt-get install gfortran build-essential
    

    CentOS/RHEL/Fedora:

    # CentOS/RHEL 7
    sudo yum install gcc-gfortran make
    
    # CentOS/RHEL 8+ / Fedora
    sudo dnf install gcc-gfortran make
    

    Windows (MinGW/MSYS2):

    # Install MSYS2 first, then:
    pacman -S mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-make
    
  2. Verify installation

    gfortran --version
    make --version
    

3. How to Build

  1. Navigate to the Fortran example directory

    cd Fortran/anpr
    
  2. Build the example

    make all
    
  3. Clean build artifacts (if needed)

    make clean
    

4. How to Run

  1. Run anpr example

    ./build/anpr
    

    Or on Windows:

    build/anpr.exe
    

5. Notes

6. Features

7. API Reference

TSANPR Module

The tsanpr_module provides the following types and procedures:

Types:

Initialization:

Core Functions:

Recognition Options

Output Formats