Creating system variables for the Axxon One server in Linux OS Creating system variables for the Axxon One server in the failover mode in Linux OS |
Starting with DetectorPack 3.10, a utility was added to the RR 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 RR—Search in archive detector on GPU, do the following:
Stop the server (see Starting and stopping the Axxon One Server in Linux OS).
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 |
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:
sudo nano instance.conf |
When you use the server in failover mode, you must:
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). |
Create 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.
export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache" |
Go to the /opt/AxxonSoft/DetectorPack/ folder:
cd /opt/AxxonSoft/DetectorPack |
Run the following command:
./RRGpuCacheGenerator |
Select the required cache sets by specifying the y value:
AM (Armenia) |
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 RR—Search in archive detector on GPU is complete.
You must recreate the cache:
|