Go to documentation repository
Documentation for Axxon One 2.0. Documentation for other versions of Axxon One is available too.
Previous page Next page
Starting with DetectorPack 3.10, a utility was added to the VT LPR add-on (see Installing DetectorPack add-ons), which allows you to create GPU neural network caches without using Axxon One. The presence of the cache speeds up the initialization and optimizes video memory consumption.
To optimize the operation of the License plate recognition VT on GPU, do the following:
- Stop the server (see Starting and stopping the Axxon One Server in Linux OS).
Attention!
If the system has the software running on GPU, you must stop its operation.
Login as ngp superuser:
In the command prompt, run the command:
sudo su ngp
Enter the password for the superuser.
Create a folder with a custom name to store the cache. For example:
mkdir /opt/AxxonSoft/AxxonOne/gpucache
Change folder permissions:
chmod -R 777 /opt/AxxonSoft/AxxonOne/gpucache
Go to the /opt/AxxonSoft/AxxonOne folder:
cd /opt/AxxonSoft/AxxonOne
Open the server configuration file for editing:
nano instance.conf
Attention!
When you use the server in failover mode, you must:
- Open the /etc/AxxonSoft folder:
cd /etc/AxxonSoft
- Open the server configuration file for editing:
nano axxon-one.conf
Note
Before you make the changes to the axxon-one.conf file, we recommend reading the instructions on the page Creating system variables for the Axxon One server in the failover mode in Linux OS.
- Add the GPU_CACHE_DIR system variable in the configuration file, where the value will specify the path to the cache location folder. For example:
export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
- Save the changes in the file.
- Add the GPU_CACHE_DIR system variable in the /etc/profile file.
export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
- Run the command:
source /etc/profile
- Open the /etc/AxxonSoft folder:
Add the GPU_CACHE_DIR system variable, where the value will specify the path to the cache location folder. For example:
export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
Save the server configuration file using the Ctrl+O keyboard shortcut.
Exit file editing mode using the Ctrl+X keyboard shortcut.
Attention!
When you change the server configuration (see Changing the configuration of the Axxon One Server in Linux OS) or update to the new Axxon One version, the system variables previously added to the instance.conf configuration file will be deleted (see Creating system variables for the Axxon One server in Linux OS).
- In the command prompt, run the command that was used to add the system variable with the path to the cache location folder. For example:
export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
Go to the /opt/AxxonSoft/DetectorPack/ folder:
cd /opt/AxxonSoft/DetectorPack
Run the following command:
./VTGpuCacheGenerator
- Enter the required countries in the numeric or alphabetic form.
- After you select all required countries, enter done.
- The default frame width is 1920 pixels. If necessary, enter the y value and the required frame width. For example, 2048.
- To leave the default value, enter n.
- Specify the minimum width of the license plate according to the actual size of the license plate in the frame as a percentage. The minimum allowed value is 0, the maximum value is 100.
- Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).
- Press Enter.
As a result, the process of creating cache starts, which takes about 30 minutes. The duration of the process depends on the selected types of cache, number of countries, and Nvidia GPU model
Optimizing the operation of the License plate recognition VT on GPU is complete.
Attention!
Cache must be recreated:
- if you update the VT LPR add-on (see Installing DetectorPack add-ons),
- if you change the Nvidia GPU model,
- if you update Nvidia GPU drivers,
- if you change the previously specified parameters (for example, the list of countries, resolution, and so on).