| English | 한국어 | 日本語 | Tiếng Việt |
Mojo example
https://github.com/bobhyun/TS-ANPR/tree/main/examples/Mojo/anpr
1. Copying the Engine Files
[Note] Mojo currently only supports Linux. 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 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 │ ├── 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 └── Mojo └── anpr # project directory ├── pixi.toml └── src # source directory ├── anpr.mojo ├── webcam.mojo └── tsanpr.mojo
2. How to Run
-
Install Mojo SDK
- Install pixi (package manager)
curl -fsSL https://pixi.sh/install.sh | sh source ~/.bashrc # or ~/.zshrc - Install Mojo using pixi (already configured in pixi.toml)
cd examples/Mojo/anpr pixi install
For more details, see: https://docs.modular.com/mojo/manual/install/
- Install pixi (package manager)
-
Run
anprpixi run anpr -
Run
webcampixi run webcam