BQAT CLI
Table of contents
🚀 Introducing the new BQAT entry point! It is a python based CLI interface to replace the legacy scripts.
Setup
Prerequisites:
- Docker
- Python
- x86 CPU
You may use the legacy shell script which does not require Python.
Download BQAT CLI
Python wheel
pip install bqat-*-py3-none-any.whl
Install from source
pip install git+https://github.com/Biometix/bqat-cli.git#subdirectory=cli
Pre-built executable
For offline deployment on Linux server.
# Grant execution permission to the EXE
sudo chmod +x bqat
Usage
-
Check if the installation is successful.
bqat --verison -
(Optional) Run a benchmark test against your system.
bqat -B -
Create a folder named
dataunder your working directory and put your input files in this folder.mkdir data -
Enter the command below to run BQAT.
Examples:
# Process all face images in 'data/' folder
bqat --input data/ --mode face
# Process iris images in 'data/iris/' folder
bqat --input data/iris/ --mode iris
Note: If there is any space along the filepath, wrap it with double quotes and escape the space.
Please refer to the example below: e.g. input folder isdata/iris folder/bqat --input "data/iris\ folder/" --mode iris
Get BQAT-CLI Update if available:
bqat --update
Uninstall
bqat --uninstall
Legacy CLI
Setup
This tool is designed to be run as a Docker container via command line interface (terminal). For ease of use, a convenience script is provided.
Download the script
Linux
Windows
Usage
- Download the script above into your working directory.
- Create a folder named
dataunder your working directory and put your input files in this folder.
After the aforementioned steps, you should have a folder like this:

# Grant execution permission to the script (for Linux shell script)
sudo chmod +x run.sh
- Open your CLI and navigate to this directory.
- Enter the command below to run BQAT.
For Bash (Linux, macOS):
# Process all face images in 'data/' folder
./run.sh --input data/ --mode face
# Process iris images in 'data/iris/' folder
./run.sh --input data/iris/ --mode iris
Note: If there is any space along the filepath, wrap it with double quotes and escape the space.
Please refer to the example below: e.g. input folder isdata/iris folder/./run.sh --input "data/iris\ folder/" --mode iris
Note: The path format of the mounted volumes in the run.sh may need modification for the specific shell (e.g. under Windows. Or you can use the powershell script as follows).
For PowerShell (Windows):
# Process all face images in 'data/' folder
.\run.ps1 --input data/ --mode face
# Process iris images in 'data/iris/' folder
.\run.ps1 --input data/iris/ --mode iris
Get BQAT-CLI Update if available:
# Linux
./run.sh --update
# Windows
.\run.ps1 --update
Output
The outputs will be saved at: data/output/.
Further details about the command and other option flags
Note: The tool is designed to be executed with a
/datafolder in your working directory. The/datafolder (where all the images are stored) will be mounted to the container. “Read and write” permission is required for this folder. It should work as long as the folder was created before spinning up the server. Otherwise, the ownership of the folder will need to be changed.