Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

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:

    Enter the password for the root superuser
  1. Stop the server (see  Starting and stopping the Axxon One Server in Linux OSStopping the server).

    Note
    titleAttention!

    If the system has the software running on GPU, you must stop its operation.

  2. Login as ngp superuser:

  3. In the command prompt, run the command:

    Code Block
    languagebash
    sudo su ngp
  4. .

  5. Create

  6. a folder with a custom name to store the cache. For example:
    Code Block
    languagebash
    mkdir /opt/AxxonSoft/AxxonOne/gpucache
  7. Change folder permissions:

    Code Block
    languagebash
    chmod -R 777 /opt/AxxonSoft/AxxonOne/gpucache
  8. Go to the /opt/AxxonSoft/AxxonOne/ folder:

    Code Block
    languagebash
    cd /opt/AxxonSoft/AxxonOne
  9. Open the server configuration file for editing:

    Code Block
    languagebash
    sudo nano instance.conf
    Note
    titleAttention!

    When you use the server in failover mode, you must:

  10. Open the /etc/AxxonSoft/ folder:
    Code Block
    cd /etc/AxxonSoft/
  11. Open the server configuration file for editing:
    Code Block
    sudo nano axxon-one.conf
    Info
    titleNote
    Before you make the changes to the axxon-one.conf file, we recommend reading the instructions on Add the
  12. the

  13. page Creating system variables for the Axxon One server in the failover mode in Linux OS.
  14. GPU_CACHE_DIR system variable

  15.  in the configuration file, wherethevaluewillspecify the pathto the cachelocationfolder. For example:
    Code Block
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  16. Save the changes in the file.
  17. Add the GPU_CACHE_DIR system variable in the /etc/profile file.
    Code Block
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  18. Run the command:
    Code Block
    source /etc/profile
  19. 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,wherethevaluewillspecify
  20. (see Appendix 9. Creating system variable) by specifying in the Variable value field the path to the cache location with an arbitrary folder name. For example

  21. :
    Code Block
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  22. , D:\AO_GPU_cache. The specified directory will store the cache for all used detectors and neural networks.

  23. To call the utility, open in the command line: C:\Program Files\Common Files\AxxonSoft\DetectorPack\RRGpuCacheGenerator.exe and press Enter.

  24. Save the server configuration file using the Ctrl+O keyboard shortcut.

  25. Exit file editing mode using the Ctrl+X keyboard shortcut.

  26. In the command prompt, run the command that was usedtoadd the systemvariablewiththepathto the cache location folder. For example:
    Code Block
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  27. Go to the /opt/AxxonSoft/DetectorPack/ folder:

    Code Block
    cd /opt/AxxonSoft/DetectorPack
  28. Run the following command:

    Code Block
    languagebash
    ./RRGpuCacheGenerator
  29. Select the required cache sets by specifying the y or n value:

    1. lpr recognition—recognition of a vehicle license plate;
    2. vehicle recognition—recognition of a vehicle;
      Note
      titleAttention!

      Vehicle recognition isn't available for the License plate recognition RR—Search in archive. Specify the n value for this item.

    3. When you select the lpr recognition cache set, you need to specify the required countries in the numeric or alphabetic form. After you select all required countries, enter the done value.
      Expand
      titleExpand the list of countries

      AM (Armenia)
      AR (Argentina)
      AT (Austria)
      AZ (Azerbaijan)
      BE (Belgium)
      BG (Bulgaria)
      BN (Brunei)
      BR (Brazil)
      BY (Belarus)
      CI (Ivory Coast)
      CN (China)
      CO (Colombia)
      CY (Cyprus)
      CZ (Czech Republic)
      DE (Germany)
      DK (Denmark)
      EE (Estonia)
      EG (Egypt)
      ES (Spain)
      FI (Finland)
      FR (France)
      GE (Georgia)
      GR (Greece)
      HR (Croatia)
      HU (Hungary)
      ID (Indonesia)
      IE (Ireland)
      IT (Italy)
      KG (Kyrgyzstan)
      KZ (Kazakhstan)
      LT (Lithuania)
      LU (Luxembourg)
      LV (Latvia)
      MD (Moldova)
      MM (Myanmar)
      MT (Malta)
      MX (Mexico)
      MY (Malaysia)
      NL (Netherlands)
      PE (Peru)
      PL (Poland)
      PT (Portugal)
      PA (Panama)
      PY (Paraguay)
      RO (Romania)
      RS (Serbia)
      RU (Russia)
      SE (Sweden)
      SI (Slovenia)
      SK (Slovakia)
      TJ (Tajikistan)
      TM (Turkmenistan)
      UA (Ukraine)
      UZ (Uzbekistan)
      UY (Uruguay)
      VN (Venezuela)
      VN (Vietnam)
      US (USA)
      LK (Sri Lanka)
      CL (Chile)
      TN (Tunisia)

    4. When you select the vehicle recognition cache set without lpr recognition, you must specify the territory where vehicle recognition is going to be performed:
      1. CIS countries1;
      2. Other countries2.
  30. Select one of the accuracy and performance values by specifying the corresponding number:
    1. Medium accuracy, high performance1, provides medium recognition accuracy and high performance of the GPU (less load on the GPU);
    2. High accuracy, medium performance2, provides high recognition accuracy and medium performance of the GPU (high load on the GPU).
  31. Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).
  32. Press Enter.

...

Note
titleAttention!

You must recreate the cache:

  • if you update the RR 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, accuracy value, and so on).