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

Ruby example

https://github.com/bobhyun/TS-ANPR/tree/main/examples/Ruby/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. Dependency Installation and Execution

  1. Dependency Installation

    1. Windows

      # It is recommended to use Chocolatey.
      choco install vips
      gem install ffi ruby-vips
      
    2. Linux

      # Debian / Ubuntu Linux
      sudo apt-get install -y libvips
      
      # Oracle Linux / RedHat (RHEL) / CentOS
      sudo yum install vips
      
      sudo gem install ffi ruby-vips
      
  2. How to Run

    ruby anpr.rb