How to Integrate Face Recognition With Access Control

July 13, 2020

8minute read

Hello there!

Surely you have heard lately in the news of some federal or international facial recognition projects that have been launched. Indeed, there has been a lot of news on the subject, and while it seems that this technology is already available to the private sector, it’s only available to some multimillion-dollar companies with large numbers of employees.

In this text, we want to show you that facial recognition solutions are already available for all companies, even the smallest. In addition, we want to explain how many telecommunications operators, integrators, and installers can expand their range of services and open a new market that is showing great demand and popularity, and that consequently can generate a significant new income source for them.

Here at Flussonic, for more than a decade, we have been developing software to launch video subscriber services. And some time ago, we started developing our own video analytics modules, one of the first being the facial recognition module. The development process was complex and in order to explain it, we would need another article. But today we will concentrate on how we became clients of the Access Control System (ACS), how much it costed us to install the system, and how the integration of the face recognition and ACS was configured.

This journey started because we, as in the case of most businesses in the world, have a physical office where, in addition to our ever-growing number of employees, we are constantly receiving visitors. Unfortunately, we began to notice that the greater the number of visitors, the greater the number of robberies and acts of vandalism. It was for this reason that we decided to install an ACS at the main entrance to the office.

We chose a system, one of the most popular on the market at that particular time, and bought a single door access control kit consisting of:

  • controller to control the door lock
  • An electromagnetic lock to hold the door
  • A door closer, so we did not have to worry about the door being closed
  • An access card reader that reads employee IDs
  • Exit buttons, so that the door can be exited freely
  • An intercom IP call panel
  • A small tablet at the reception, to control the IP intercom and open the door
  • A power supply unit
  • Access control software, to control the controller, its settings, view reports, etc.

The total cost of the installed system was $700. However, it is important to keep in mind that we did not have to buy an additional server for the control access system since we deployed a virtual one in our local network. No one outside of Flussonic was involved in the deployment, we did it ourselves in one day. Teamwork!

When everything was ready to go, we collected all the pass data that was issued in our building, added everyone in our team to the system, and, in a matter of a few hours, we turned off our ACS. The reason for that was the extreme inconvenience of having to carry the access cards. Cards can be forgotten at home, forgotten on the desk when leaving the office, and they are very easy to break. About half of our employees faced these problems and in order to save everyone’s nerves, we decided to turn off the ACS until better times.

Why didn’t we create rules and force employees to carry their cards all the time? Simple, it’s bad practice. It is much better to provide additional automation and focus the employee’s attention on their work duties than on the fact that they must always carry the badge. At that time, we already had a high degree of readiness for face recognition and we decided that access to the office would be exclusively by face recognition.

At that time, our recognition module had not yet gone into production but was fully ready for the integration task with the office ACS. So, we began the integration process.

The recognition module allows you to create lists of individuals, assign each employee a photo and a unique identifier.

Update How to integrate face recognition with access control

Adding a person to the list

At the time of recognition, an event remains in the system where a person has been recognized and a report can be viewed of these events. This is not enough to implement integration with the ACS. Separately, during the development of the recognition module, we developed scenarios for integration with other systems where the recognition event should trigger a reaction from the system being integrated. In order to implement this logic, we have provided a mechanism to subscribe to events within Flussonic Watcher. Through the API, you can specify the URL to which Flussonic Watcher will send JSON with the recognized face data.

The method of sending recognition events to a given URL is called this way:

  • http://host/vsaas/api/v2/my/ subscriptions with parameters:
-event_type = push_person_list

-notification_type - id of the list of persons created in advance

-notify_url - url where to send notifications

There may be two notifications:

  • About the appearance of a specific person:

-event_type = push_person_single

-notification_type - id персоны

-notify_url - url that will be notified of the recognition event
  • About any person from the category
-event_type = push_person_category

-notification_type = category id

After the subscription is completed, the specified URL at the time of recognition will be sent in JSON format:

{"registration_ids": [],

"priority": "high",

"notification": {

		"id": "person.detection.test.camera-7d8ea4ebf2",

		"body": "Person detected",

		"group": "camera1_group1"

		},

		"data": {

				"targetScreen": "camera_events",

				"event": "person",

				"person_look_took": 0,

				"event_start_at": 1593706529,

				"camera": "person.detection.test.camera-7d8ea4ebf2",

				"person": {

						"id": 135,

						"first_seen_at": "2020-06-23 14:18:31",

						"last_seen_at": "2020-06-25 17:09:36",

						"person_list_id": 1,

						"name": "Person 135"},

 "camera_id": "person.detection.test.camera-7d8ea4ebf2",

 "utc": "1593706530"}

This JSON has all the information you need about a person to make a decision about whether to allow access to the office or not.

The next step was to contact the developer of the ACS that we had installed in our office and request the API of their system. Their integration protocol turned out to be somewhat different. It was not the HTTP API we were used to. To communicate with the access control system, we need to establish a TCP connection to its server, pass authorization, and send commands of the specified format. From the whole list of commands we need only one, the essence of which is to tell which access point which object is trying to pass through.

"ALLOWPASS" <ap-id> <obj> <direction>

Further, the decision on the persons admission, on opening the door, is already taken care of by the ACS server. On the whole, it is also easy.

So, we approached the very process of integration. Our recognition module was able to send events, and the ACS had the ability to receive commands. The task was very simple: we had to write a small integration module that triggers the web server, receives events from our event recognition module, establishes a connection with the ACS server, and sends a command to the connection established with the ACS server.

We have synchronized the identifiers in both systems. Thus, the integration module simply translated the persons identifier into the ACS. It took us about one day to create the integration module.

Ok, all is running! Let’s test it!

An employee comes to the office, pull at the door, and, within seconds, the facial recognition system is triggered. The employee is identified by a list of persons, an event about the facial recognition fact is sent to the integration module server, where it is unpacked and the identifier of the recognized person is sent as a command to request access to the ACS, which decides whether to let the employee in or not based on access rules. The door gets unlocked. The opening is accompanied by an acoustic alarm and a green glow on the access card reader. The integration works!

All new faces recognized by the system are listed separately and assigned a unique identifier. At any time, we can see the guest list with photos of visitors coming to see us. And if a new employee comes to the office, the system will automatically create a profile and ask for the necessary data, we only need to assign them an identifier in the ACS and specify the name of the employee to generate reports.

EIVKO :: 614123

Update How to integrate face recognition with access control

Detailed information about the person

You can also view a list of recognition events with screenshots of recognized faces and their date and time of recognition in the Flussonic Watcher user interface.

Update How to integrate face recognition with access control

Face recognition events

Now let’s talk a little bit about the economic side. A few lines above we mentioned the fact that the equipment of the ACS for one door cost us $700. However, as we also mentioned at the beginning of this article, a couple of our employees spent one day installing the system. We also used one developer’s full day to write the integration module. Thus, the total cost of deploying the ACS integrated with face recognition was roughly $900.

The good news for you is that you don’t have to spend all that time or the same amount of money. Our standard Flussonic Watcher license already includes facial recognition analytics. We want to make this service popular and cost-effective for end users. Let’s work together!

Contact us today and we will show you the complete access control and management solution. We will also:

  • Give you a chance to test the system
  • Provide professional advice on the deployment of such systems
  • Provide all the necessary software
  • We will give you the integration module and tell you how to integrate with any other ACS
  • We will recommend the necessary physical equipment

What are you waiting for? Talk to you soon!

Keywords:
Watcher

Flussonic Media Server trial

By sending you request you agree to our terms and conditions

Our experts will contact you shortly, offer tech advice and consultation, and send you a trial license..

Fill out the form to receive a free Flussonic Media Server trial key.

If you do not receive an email from us within one hour, please check your spam folder and add Flussonic to your trusted contacts list.

Email: support@flussonic.com Phone: +1 (778) 716-2080 (United States)