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

Zig example

https://github.com/bobhyun/TS-ANPR/tree/main/examples/Zig/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 Zig (latest stable version recommended)

    Windows:

    # Download from https://ziglang.org/download/
    # Or using Scoop
    scoop install zig
    

    Linux:

    # Download from https://ziglang.org/download/
    # Or using package manager (varies by distribution)
    sudo snap install zig --classic --beta
    
  2. Verify installation

    zig version
    

3. How to Run

  1. Navigate to the Zig example directory

    cd Zig/anpr
    
  2. Build and run the example

    # Build and run
    zig build run
    
    # Build only
    zig build
    
    # Build with optimizations
    zig build -Doptimize=ReleaseFast
    
    # Run tests
    zig build test
    

4. Notes

5. Features

6. API Reference

TSANPR Functions

The Zig implementation provides the following functions through C interop:

Initialization:

Core Functions:

Recognition Options

Output Formats