Allocate findface-video-worker
to Camera Group¶
In distributed architectures, it is often necessary that video streams from a group of cameras be processed in situ, without being redistributed across remote findface-video-worker
instances by the main server.
Note
Among typical use cases are hotel chains, chain stores, several security checkpoints in the same building, etc.
In this case, simply allocate the local findface-video-worker
to the camera group.
Do the following:
Navigate to the Preferences tab. Click Camera Groups.
Open the camera group settings.
In the Labels, create or select one or several allocation labels. Save changes.
If you use the CPU-accelerated version, open the
findface-video-worker
configuration file and specify the allocation labels in the following format:label_name=true
(labelterminal_1
in the example below).sudo vi /etc/findface-video-worker.ini wrk-labels=terminal_1=true
If you use the GPU-accelerated version, open the
findface-video-worker-gpu
configuration file and specify the allocation labels as such:sudo vi /etc/findface-video-worker-gpu.ini labels = terminal_1=true
Restart
findface-video-worker(-gpu)
.sudo systemctl restart findface-video-worker.service sudo systemctl restart findface-video-worker-gpu.service
Note
If a camera is assigned an allocation label, its video stream can be processed by a findface-video-worker(-gpu)
instance with the same label, as well as by all unlabeled findface-video-worker(-gpu)
instances.
Warning
If a labeled camera is processed by an unlabeled findface-video-worker(-gpu)
instance and a free similar-labeled instance appears, the camera won’t automatically switch to the latter. To switch the camera, restart the similar-labeled findface-video-worker(-gpu)
instance.