Silhouette Recognition

To collect real-time statistics on human silhouettes, you first have to enable silhouette recognition.

In this section:

Enable Silhouette Recognition

To enable automatic recognition of human silhouettes, do the following:

  1. Open the /etc/findface-extraction-api configuration file and add a new detector delta (delta.cpu.fnk/delta.gpu.fnk) with relevant settings, as shown in the example below.

    sudo vi /etc/findface-extraction-api.ini
    
    detectors:
      max_batch_size: 1
      instances: 1
      models:
        cheetah:
          model: facedet/cheetah.cpu.fnk
          options:
            min_object_size: 32
            resolutions:
            - 256x256
            - 384x384
            - 512x512
            - 768x768
            - 1024x1024
            - 1536x1536
            - 2048x2048
        delta:
          model: pedet/delta.cpu.fnk
          options:
            min_object_size: 32
            resolutions:
            - 256x256
            - 384x384
            - 512x512
            - 768x768
            - 1024x1024
            - 1536x1536
            - 2048x2048
    
  2. Restart findface-extraction-api.

sudo systemctl restart findface-extraction-api