| English | 한국어 | 日本語 | Tiếng Việt |
Pascal example
https://github.com/bobhyun/TS-ANPR/tree/main/examples/Pascal/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.
- For Windows x86 64-bit
Extract the engine file to the
examples/bin/windows-x86_64directory7z x tsanpr*-windows-x86_64.7z - For Windows x86 32-bit
Extract the engine file to the
examples/bin/windows-x86directory7z x tsanpr*-windows-x86.7z - For Linux x86 64-bit
Extract the engine file to the
examples/bin/linux-x86_64directorytar xvf tsanpr*-linux-x86_64.tar.xz - For Linux arm 64-bit
Extract the engine file to the
examples/bin/linux-aarch64directorytar xvf tsanpr*-linux-aarch64.tar.xz - Directory structure
examples ├── bin │ ├─── windows-x86_64 # engine directory for Windows (x86_64) │ │ ├── tsanpr.dll │ │ ├── tsanpr-2505M.eon │ │ └── tshelper.exe │ ├─── windows-x86 # engine directory for Windows (x86) │ │ ├── tsanpr.dll │ │ ├── tsanpr-2505M.eon │ │ └── tshelper.exe │ ├── linux-x86_64 # engine directory for Linux (x86_64) │ │ ├── libtsanpr.so │ │ ├── tsanpr-2505M.eon │ │ └── tshelper │ └── linux-aarch64 # engine directory for Linux (arm64) │ ├── libtsanpr.so │ ├── tsanpr-2505M.eon │ └── tshelper ├── img # image directory └── Pascal └── anpr # project directory ├── src # main source directory │ └── anpr.pas # main program ├── units # unit directory │ ├── tsanpr.pas # TSANPR unit │ └── stb_image.pas # stb_image bindings ├── lib # external library source │ ├── stb_image.h # stb_image header │ └── stb_image_lib.c # stb_image shared library source ├── bin # output directory (generated) ├── compile.bat ├── compile.sh └── Makefile
2. Build and Run
2.1 Windows
-
Free Pascal Installation
- Download and install Free Pascal
- Add Free Pascal bin directory to PATH
-
How to Build
compile.bat -
How to Run
cd bin anpr.exe
2.2 Linux
-
Dependency Installation
-
Debian / Ubuntu Linux
sudo apt-get update sudo apt-get install fpc -
Oracle Linux / RedHat (RHEL) / CentOS
sudo yum install fpc -
Fedora
sudo dnf install fpc
-
-
How to Build
chmod +x compile.sh ./compile.shOr using Make:
make -
How to Run
cd bin ./anpr