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 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—Parking detector on GPU, do the following:

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

  2. Login as ngp superuser:

    1. In the command prompt, run the command:

      sudo su ngp
    2. Enter the password for the superuser.

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

    mkdir /opt/AxxonSoft/AxxonOne/gpucache
  4. Change folder permissions:

    chmod -R 777 /opt/AxxonSoft/AxxonOne/gpucache
  5. Go to the /opt/AxxonSoft/AxxonOne folder:

    cd /opt/AxxonSoft/AxxonOne
  6. Open the server configuration file for editing:

    nano instance.conf

    Attention!

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

    1. Open the /etc/AxxonSoft folder:
      cd /etc/AxxonSoft
    2. 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.

    3. 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"
    4. Save the changes in the file.
    5. Add the GPU_CACHE_DIR system variable in the /etc/profile file.
      export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
    6. Run the command:
      source /etc/profile
  7. 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"
  8. Save the server configuration file using the Ctrl+O keyboard shortcut.

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

  10. 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"
  11. Go to the /opt/AxxonSoft/DetectorPack/ folder:

    cd /opt/AxxonSoft/DetectorPack
  12. Run the following command:

    ./RRGpuCacheGenerator
  13. Select the required cache sets by specifying the y value:

    1. lpr recognition—recognition of a vehicle license plate;
    2. vehicle recognition—recognition of a vehicle.
      When you select the lpr recognition cache set, you need to specify the required countries in numeric or alphabetic form. After you select all required countries, enter the done value.

      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)

    3. 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.
  14. 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).
  15. Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).
  16. 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 RR—Parking detector on GPU is complete.

Attention!

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


  • No labels