Versions Compared

Key

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


Tip

Video stream and scene requirements for the Visitors counter

Image Camera requirements for the Visitors counter operation

Note
titleAttention!
  • The Visitors counter
  • detection tool may
  • detector can have a margin of error and is suitable for counting the average number of visitors.
  • We cannot guarantee the correct operation of the
  • Visitors counter detection tool with fish-eye video cameras
  • detector with a fisheye lens.

To configure the Visitors counter detection tool, do the following:

...

Click the Image Removed button and specify the size of a human (4). You can do this by dragging the anchor points of the rectangular area. You can also specify the size of a human manually by entering into the Human size field (9) the area of the rectangle around a human as a percentage of the frame area. Consider that to calculate the size, the size of the compressed frame is taken into account (7) and not the original size of the video stream. The value should be in the range [1; 75].

Note
titleAttention!

When specifying the size of a human, consider the Requirements for the person size in the frame.

Image Removed

...

  1. Go to the Detectors tab.
  2. Below the required camera, click Create…  Category: Retail  Visitors counter.

By default, the detector is enabled and set to count the number of people in a queue.

If necessary, you can change the settings of the detector parameters given in the table:

ParameterValueDescription
Object features
Video streamMain streamIf the camera supports multistreaming, select the stream for which detection is needed
Other
EnableYesBy default, the detector is enabled. To disable, select the No value
No
NameVisitors counterEnter the detector name or leave the default name
Decoder modeAuto

...

Select a processing resource for decoding video

...

. When you select a GPU, a stand-alone graphics card takes priority (when decoding

...

with Nvidia NVDEC chips). If there

...

is no appropriate GPU, the decoding will use the Intel Quick Sync Video technology. Otherwise, CPU resources will be used for decoding

...

CPU
GPU
HuaweiNPU
Number of frames processed per second25Specify the number of frames for the detector to process per second. The larger the value, the greater the load on the CPU. The value must

...

be in the range [

...

0.016;

...

100]
TypeVisitors counterName of the detector type (non-editable field)
Advanced settings
Frame size change 640

The analyzed frames are scaled down to a specified resolution (by default, 1920 pixels on the longer side) by default. The following algorithm is used:

  1. If the

...

  1. longer side of the

...

  1. source image exceeds the value specified in

...

  1. the Frame size change

...

  1.  field,

...

  1. it is divided

...

  1. by two.
  2. If the resulting resolution

...

  1. falls below the specified

...

  1. value,

...

  1. the algorithm stops and this resolution

...

  1. will be used further.
  2. If the resulting resolution

...

  1. still

...

  1. exceeds the specified

...

  1. value,

...

  1. it is divided

...

  1. by two until it

...

  1. is less than the specified resolution.
Info
titleNote

For example, the

...

source image resolution is 2048*1536, and the specified value is set to 1000. In this case, the

...

source resolution will be halved

...

two times (512*384),

...

as after the first division, the

...

number of pixels on the

...

longer side

...

exceeds the specified value (1024 > 1000). If detection is performed on a higher resolution stream and detection errors occur,

...

we recommend reducing the compression.

Number of people indoor

...

0

...

Enter the number of

...

people indoor at the time you are configuring the detector. The value must be in the range [0

...

, 100000]
People indoor counterYesBy default, the

...

parameter is disabled. The detector generates events: Camera. Visitor access in the direction of "Entrance" and Camera. Visitor access in the direction of "Exit"

...

. If you also want to count visitors at the facility

...

and

...

generate an event when the threshold value is exceeded,

...

select the Yes value
No
People indoor counter

...

threshold10000Specify the threshold value of the number of people indoor. If this value is exceeded, the detector generates an event. The value must be in the range [0

...

, 100000]
Basic settings
Person size20
Note
titleAttention!

You must specify the size of a person taking into account Video stream and scene requirements for the Visitors counter and Image requirements for the Visitors counter.

Specify the area of the rectangle around a person as a percentage of the frame area. Note that the size is calculated based on the compressed frame size, not the original size of the video stream. The value must be in the range [1, 75].

Info
titleNote

It is better to specify the minimum size of a person graphically, the number in the Person size field is a conditional value.

Click the Image Added button in the preview window and specify the size of a person. To do this, move the anchor points of the rectangular area:

Image Added

In the preview window, specify the detection area. The detection area is divided into two sectors—area 1 and area 2. The transition from area 1 to area 2 is the visitor's passage in the "Exit" direction. The transition from area 2 to area 1 is the visitor's passage in the "Entrance" direction. If the People indoor counter parameter is enabled:

  • Transition from area 1 to area 2—minus one to the visitors counter.
  • Transition from area 2 to area 1—plus one to the visitors counter.

You can configure the sectors, using the anchor points Image Added or lines. To swap sectors, click inside one of them.

Image Added

Info
titleNote

For convenience of configuration, you can "freeze" the frame. Click the Image Added button. To cancel the action, click this button again.

Sectors are displayed by default. To hide them, click the Image Added button. To cancel the action, click this button again.

To save the parameters of the detector, click the Apply Image Added button. To cancel the changes, click the Cancel Image Added button.

Configuration of the Visitors counter is

...

Configuration of the Visitors counter detection tool is now complete.