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 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:

  1. Stop the server (see 
  2. Stopping the server
  3. Starting and stopping the Axxon One Server in Linux OS).
    Note
    titleAttention!

    If the system has the software running on GPU,

  4. it is necessary to
  5. you must stop its operation. 

  6. Login as ngp superuser:

    1. In the command prompt, run the command:

      Code Block
      languagebash
      sudo su ngp
    2. Enter the password for the

  7. root
    1. superuser.

  8. Create a folder with a custom name to store the cache. For example:

    Code Block
    languagebash
    mkdir /opt/AxxonSoft/AxxonOne/gpucache
  9. Change folder permissions:

    Code Block
    languagebash
    chmod -R 777 /opt/AxxonSoft/AxxonOne/gpucache
  10. Create the GPU_CACHE_DIR system variable:
  11. Go to the /opt/AxxonSoft/AxxonOne

  12. / folder
  13.  folder:

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

    Code Block
    languagebash
    nano instance.conf
    Note
    title
  16. NoteFor the Axxon One 
  17. Attention!

    When you use the server in

  18. the
  19. failover mode,

  20. go to
  21. you must:

    1. Open the /etc/AxxonSoft
  22. /AxxonOne/ directory.
    1.  folder:
      Code Block
      cd /etc/AxxonSoft
    2. Open the
  23. instance.conf
    1. server configuration file for editing:
      Code Block
  24. languagebash
    nano instance.conf

    Add the following line to the file:

    1. nano axxon-one.conf
      Info
      titleNote

      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.

    2. Add the GPU_CACHE_DIR system variable in the configuration file, wherethevaluewillspecify the pathto the cachelocationfolder. For example:
      Code Block
      export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
    3. Save the changes in the file.
    4. Add the GPU_CACHE_DIR system variable in the /etc/profile file.
      Code Block
      export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
    5. Run the command:
      Code Block
      source /etc/profile
  25. Add the GPU_CACHE_DIR system variable,wherethevaluewillspecify the pathto the cachelocationfolder. For example:

    Code Block
  26. Code Blocklanguagebash
  27. export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  28. Save the server configuration file using the Ctrl+O keyboard shortcut.

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

    Note
    titleAttention!
  30. If
  31. When you change the server configuration (

  32. see 
  33. see Changing the configuration of the Axxon One Server in Linux OS) or update to

  34. a
  35. the new

  36. version of
  37. Axxon One version, the system variables previously added to the instance.conf configuration file will be deleted (

  38. see 
  39. see Creating system variables for the Axxon One server in Linux OS).

  40. Save the file using the Ctrl+O keyboard shortcut.

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

  42. Run the following command in the terminal
  43. In the command prompt, run the command that was usedtoadd the systemvariablewiththepathto the cache location folder. For example:
    Code Block
  44. languagebash
  45. export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  46. Go to the /opt/AxxonSoft/DetectorPack/ folder:

    Code Block
  47. languagebash
  48. cd /opt/AxxonSoft/DetectorPack
  49. Run the following command:

    Code Block
    languagebash
    ./VTGpuCacheGenerator
  50. Enter the required
  51. countries in
  52. countries in the numeric or alphabetic form.
    Expand
    titleExpand the list of countries

    0. ad (Andorra)
    1. al (Albania)
    2. am (Armenia)
    3. ar (Argentina)
    4. at (Austria)
    5. au (Australia)
    6. az (Azerbaijan)
    7. ba (Bosnia and Herzegovina)
    8. be (Belgium)
    9. bg Bulgaria
    10. bh (Bahrain)
    11. bn (Brunei)
    12. bo (Bolivia)
    13. br (Brazil)
    14. bw (Botswana)
    15. by (Belarus)
    16. ca (Canada)
    17. ch (Switzerland)
    18. cl (Chile)
    19. co (Colombia)
    20. cz (Czech Republic)
    21. de (Germany)
    22. dk (Denmark)
    23. dz (Algeria)
    24. ec (Ecuador)
    25. ee (Estonia)
    26. es (Spain)
    27. fi (Finland)
    28. fr (France)
    29. gb (Great Britain)
    30. ge (Georgia)
    31. gr (Greece)
    32. gt (Guatemala)
    33. hk (Hong Kong)
    34. hn (Honduras)
    35. hr (Croatia)
    36. hu (Hungary)
    37. id (Indonesia)
    38. il (Israel)
    39. in (India)
    40. ir (Iran)
    41. it (Italy)
    42. jo (Jordan)
    43. ke (Kenya)
    44. kg (Kyrgyzstan)
    45. kr (Republic of Korea)
    46. kz (Kazakhstan)
    47. li (Liechtenstein)
    48. lk (Sri Lanka)
    49. lt (Lithuania)
    50. lu (Luxembourg)
    51. lv (Latvia)
    52. mc (Monaco)
    53. md (Moldavia)
    54. me (Montenegro)
    55. mn (Mongolia)
    56. mt (Malta)
    57. mx (Mexico)
    58. my (Malaysia)
    59. ng (Nigeria)
    60. ni (Nicaragua)
    61. nl (Netherlands)
    62. no (Norway)
    63. nz (New Zealand)
    64. pa (Panama)
    65. pe (Peru)
    66. ph (Philippines)
    67. pl (Poland)
    68. pt (Portugal)
    69. py (Paraguay)
    70. ro (Romania)
    71. rs (Serbia)
    72. ru (Russia)
    73. se (Sweden)
    74. sg (Singapore)
    75. si (Slovenia)
    76. sk (Slovakia)
    77. su (USSR)
    78. sv (El Salvador)
    79. tj (Tajikistan)
    80. tm (Turkmenistan)
    81. tn (Tunisia)
    82. tr (Turkey)
    83. tw (Taiwan)
    84. ua (Ukraine)
    85. us (USA)
    86. uy (Uruguay)
    87. uz (Uzbekistan)
    88. vn (Vietnam)
    89. za (Republic of South Africa)
    90. zm (Jamaica)

  53. After you select all required countries, enter done.
  54. The default
  55. resolution
  56. frame width is
  57. 1920x1080
  58. 1920 pixels. If
  59. you want to change the resolution
  60. necessary, enterthe y value and the required
  61. resolution
  62. frame width. For example,
  63.  
  64. 2048.
  65. To leave the default value, enter n.
  66. 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.
  67. Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).
  68. 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.

Note
titleAttention!

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).