Secure Access Solution Guide
This solution guide describes how set up a fully functional door entry system. People enrolled in your SAFR system will be able to gain access through a door by being recognized by SAFR.
This guide is written for Windows users. Linux users can achieve the same functionality, but they need to use the Web Console and VIRGO instead of the Desktop Client & SAFR Actions GUI.
For simplicity's sake, this guide assumes that you're using a SAFR Cloud License. If you're using a SAFR On-Premises License, you'll also need to install and manage the SAFR Server.
- One Android tablet for every entrance door you want secured. iOS tablets could also be used, although pose liveness detection would be used instead of RGB liveness detection. See the Mobile tab of SAFR System Requirements for recommended tablet specifications.
- One X-410 relay per entrance door you want secured.
- One PC that meets the minimum specifications needed to run the SAFR Desktop Client.
Download and install the SAFR Desktop Universal Edition installer for Windows from the SAFR Download Portal. The SAFR Desktop installer includes both the SAFR Desktop Client and SAFR Actions. Note that when you install SAFR Actions, both of the following are installed:
- Actions Relay Event Service (ARES) - A Java application that acts as an event listener that dispatches configured actions in response to events.
- SAFR Actions GUI - A GUI that helps users manage ARES.
Face recognition panels are mobile devices upon which the SAFR Mobile Client has been installed and configured. To create a face recognition panel on Android tablets, do the following:
- Download and install the SAFR Mobile installer for Android from the SAFR Download Portal.
- You'll get a pop-up dialog asking if you want to allow SAFR to take pictures and record video. You should allow SAFR to take pictures and record videos.
- Enter your SAFR credentials when prompted.
- Tap on the Operator Mode (the text enclosed in the green rectangle) and select Secure Access with RGB Liveness from the pop-up menu.
- Choose whether to use your tablet's default camera (i.e. the camera pointed at the tablet's operator) or its front-facing camera. You can do this by tapping on the camera selection icon (outlined by the blue rectangle). Because we want users to be able to see feedback from the tablet, select your tablet's default camera.
- Configure your client's preference settings by tapping on the hamburger icon (outlined by the red rectangle), and then selecting App Settings. You'll be taken to the preference menus; you can change which preference menu you're configuring by selecting the appropriate icon along the bottom.
Configure the following settings:
- General Menu:
- User Source - Specifies the name by which this tablet will appear in SAFR. You should name each tablet based on the entrance it will be securing. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- Detection Menu:
- Enable Liveness Detector - Enable.
- Recognition Menu:
- Detect Gender - Disable.
- Detect Age - Disable.
- Detect Sentiment - Disable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- Detect RGB Liveness Action - Enable.
- Events Menu:
- Report events - Enable.
- Listen For Event Replies - Enable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- Display Reply Message - Enable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- User Interface Menu:
- Enable Registration - Disable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- Show Video - Enable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- Average Age & Gender - Disable. This setting can be exposed by clicking on the icon in the upper right corner and selecting Show Advanced Preferences.
- To prevent unauthorized access to the tablet, lock the screen by tapping on the icon outlined by the purple rectangle.
- Your tablet can now function as a face recognition panel.
You should create one face recognition panel for each entrance that you want secured.
For each doorway into your facility that you want to secure, do the following:
- Connect an X-410 relay, as described in the X-410 relay documentation.
- Create a face recognition panel, as described above.
- Ideally, place the face recognition panel behind a glass window so that subjects can see feedback from the tablet, but they can't touch the tablet or interfere with its functionality.
Configure SAFR so that it can use a short message service (SMS) server to send SMS messages.
- Go to the Web Console's Status Page.
- In the Configuration section, click on Set up SMS. You'll be presented with the following dialog.
- SMS Provider: Your SMS Provider. You can select either SAFR Cloud or Amazon SNS from the drop-down menu. The SAFR Cloud provider is much easier to set up however, so you should probably select the default SMS Provider, SAFR Cloud.
- Test Message: Send a test message to verify that your SMS is properly configured.
- To Phone Number: The phone number to which the test message will be sent. The number should be in the E.164 format. (e.g. +12065551313)
- Message: The text message that will be sent.
- Click Apply.
- Verify that the specified phone received a test SMS message.
Optionally, you can also send email notifications.
If you want your system to send emails, you'll need to configure SAFR so that it can use an email server to send email messages.
- Get an SMTP Server account you can use to send emails.
- Go to the Web Console's Status Page.
- In the Configuration section, click on Set up SMTP Email Service. You'll be presented with the following dialog.
- Email Server: The address of the SMTP email server.
- Server Port: The email server port. The default port for SMTP is 587.
- Sender Email: The email username of the SMTP account. (e.g. Susan.Johnson@gmail.com)
- Password: The password for the SMTP account.
- From Email Address: The email address that will appear on the "From" line. This feature isn't supported by all email servers; if this field isn't used then the Sender Email value is used for the "From" line.
- Sender Name: The display name on the "From" line. (e.g. Susan Johnson)
- Test Email: Configure the test email that will be sent after you finish setting up the SMTP email service.
- To Email: The email address to which the test email will be sent.
- Subject: The test email's subject.
- Body: The test email's body.
- Click Apply.
- Verify that the specified email address received a test email.
The actions you'll configure in this section will cause secured doors to electronically open when a registered person is recognized by an installed face recognition panel and passes an RGB liveness detection attempt.
When a subject fails to pass the RGB liveness detection, the subject doesn't receive any feedback. Instead, email and SMS notifications are sent to the specified recipient(s), and the door will remain locked.
Note: Make sure the SAFR Actions GUI is not running during steps 1-5 below.
On the PC where ARES is installed:
Delete the default SAFRActions.config file located at C:\ProgramData\RealNetworks\SAFR\ares\config
.
Save SecureSAFRActions.config to C:\ProgramData\RealNetworks\SAFR\ares\config
.
Rename the config file you just saved to SAFRActions.config.
Open SAFRActions.config for editing using Notepad.
- Right click on SAFRActions.config and select Open with
- Select Notepad if it appears in the list of the programs.
- If Notepad isn't listed, select Choose another app
- Select More apps.
- Notepad should be listed among the apps.
For each door you want to secure beyond the first, copy the highlighted text and paste it on the line below the highlighted text.
For example, if you wanted to secure a total of 3 doors, your SAFRActions.config should look like this:
{
"directory": "main",
"emailDef": [
{
"label": "livenessFailed",
"message": "<h1>Someone failed a liveness test at camera: #S<\/h1>",
"recipients": [
"yourname@yourcompany.com"
],
"subject": "Liveness Failed!"
}
],
"environment": "PROD",
"rules": [
{
"event": {
"actionId": [
"rgbLiveness"
],
"hasPersonId": true,
"livenessConfirmed": true,
"personType": [
"staff",
"exec"
],
"source": "Door1",
"type": [
"action"
]
},
"triggers": [
{
"actions": [
"python .\/scripts\/relay-x410.py 192.168.1.2 1"
],
"daysOfWeek": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri"
],
"reply": {
"message": "Welcome!"
},
"timesOfDay": [
{
"end": "23:00",
"start": "06:30"
}
]
}
]
},
{
"event": {
"actionId": [
"rgbLiveness"
],
"hasPersonId": true,
"livenessConfirmed": true,
"personType": [
"staff",
"exec"
],
"source": "Door1",
"type": [
"action"
]
},
"triggers": [
{
"actions": [
"python .\/scripts\/relay-x410.py 192.168.1.2 1"
],
"daysOfWeek": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri"
],
"reply": {
"message": "Welcome!"
},
"timesOfDay": [
{
"end": "23:00",
"start": "06:30"
}
]
}
]
},
{
"event": {
"actionId": [
"rgbLiveness"
],
"hasPersonId": true,
"livenessConfirmed": true,
"personType": [
"staff",
"exec"
],
"source": "Door1",
"type": [
"action"
]
},
"triggers": [
{
"actions": [
"python .\/scripts\/relay-x410.py 192.168.1.2 1"
],
"daysOfWeek": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri"
],
"reply": {
"message": "Welcome!"
},
"timesOfDay": [
{
"end": "23:00",
"start": "06:30"
}
]
}
]
},
{
"event": {
"actionId": [
"rgbLiveness"
],
"livenessConfirmed": false,
"type": [
"action"
]
},
"triggers": [
{
"actions": [
"@smsSend livenessFailed",
"@emailSend livenessFailed"
]
}
]
}
],
"smsDef": [
{
"label": "livenessFailed",
"message": "<h1>Someone failed a liveness test at camera: #S<\/h1>",
"recipients": [
"+12065551313"
]
}
],
"userId": "your_user_id",
"userPwd": "y5Evq0qjArRTj8DX\/XbMTw=="
}
Start the SAFR Actions GUI.
Within the SAFR Actions GUI, within the Rules node, you'll see Items 1 through N, where N = the number of doors you want to secure. Those items tell your SAFR system to open the various doors that you're securing. (Each item corresponds to one of your doors.) You'll also see an Item N+1, which sends email & SMS notifications when somebody fails the RGB liveness test. We won't change any fields within Item N+1.
For each Item 1 through N, set the following fields to the specified values:
- Item X -> event -> Source: The User Source name you chose when you created the face recognition panels as described above.
- Item X -> triggers -> Item 1 -> actions -> Item 1: Update this field so it applies to the door secured by the face recognition panel specified by this item.
- Change 192.168.1.2 to the URL for the X-410 relay responsible for opening the appropriate secured door.
- Change the final 1 to the relayNumber responsible for opening the secured door. By default the relayNumber will be 1.
Again within the SAFR Actions GUI, set the following fields to the specified values:
- userId: Your username.
- userPwd: Your password.
- smsDef -> Item 1 -> recipients -> Item 1: The phone number of whomever you want to receive SMS notifications. It should be in the E.164 format. (e.g. +12065551313) If you want more than 1 person to receive SMS notifications, do the following:
- Hover your mouse over recipients.
- Press the + button to create additional recipients.
- Set the newly created item(s) to the additional phone number(s).
If you chose to configure SAFR to send email notifications, set the following field within the SAFR Actions GUI:
- emailDef -> Item 1 -> recipients -> Item 1: The email address of whomever you want to receive email notifications. If you want more than 1 person to receive email notifications, do the following:
- Hover your mouse over recipients.
- Press the + button to create additional recipients.
- Set the newly created item(s) to the additional email address(es).
If you didn't configure SAFR to send email notifications, you should instead remove the references to emails within the SAFR Actions GUI.
- Within the Item N+1 section of the rules section, (i.e. the last defined rule) hover your mouse over the rules -> Item N+1 -> triggers -> Item 1 -> actions -> Item 2 field. Press the - button. This should make the key whose value was @emailSend livenessFailed disappear.
- Hover your mouse over the emailDef field, and press the - button. This should make the entire emailDef section disappear.
At the top of the SAFR Actions GUI, choose File > Save to save your changes.
Note: Make sure the system clocks on the PC and the Android tablets are within a few seconds of each other. If the system clocks differ by more than a few seconds, events may not trigger.
To register a person using an Android tablet, do the following:
- Open the SAFR Mobile Client.
- Tap on the Operator Mode (the text at the center of the ribbon along the top of the screen) and select Registration Kiosk from the drop-down menu.
- Show the subject's face to the tablet's camera and wait for a purple oval to appear around the face. You should also see the text "Tap face to register" below the face.
- Enter the subject's name, select noconcern for the ID Class, and tap Register.
- Set the newly registered person's Person Type to either Staff or Exec.
- Enter the Person Directory by tapping on the hamburger icon in the upper left corner, and then selecting Enrolled People.
- Tap the face image of the newly registered person.
- Tap Edit in the upper right corner of the screen.
- Change the ID Class field to No-Concern.
- Change the Person Type field to either Staff or Exec.
- Tap Save in the upper right corner of the screen.
- If this Android tablet is going to be used to secure an entrance, change the Operator Mode back to Secure Access with RGB Liveness.
To register a person from a photo, do the following:
- Open the SAFR Desktop Client.
- Navigate to the People Window by selecting Peopleā¦ from the Tools drop-down menu.
- Click the Add face button near the top of the People Window.
- Select the photo image located on your hard drive.
- Any photo that has sufficient quality for recognition will show a purple oval around the face with the option to click and add a name. Enter their name when prompted.
- Within the People Window, double click on the facial image of the newly registered person.
- Change the ID Class field to No-Concern.
- Change the Person Type field to either Staff or Exec.
- Click on Save Changes.
Note: It's very helpful to use as high quality a photo as possible.
To test the secure access entrances that you have just set up, do the following:
- Show your face to a face recognition panel that's being used to secure an entrance into your facility.
- A purple oval should appear around your face, and nothing else should happen. (Right now you're not registered with SAFR, so the secure access system shouldn't let you enter the facility.)
- Register yourself with SAFR as described above.
- Hide your face from all face recognition panels.
- Show your face to a face recognition panel that's being used to secure an entrance into your facility.
- Upon recognition, the face recognition panel should display a "Welcome!" message and the door should electronically unlock.
Now test the notification system when someone fails the RGB liveness test.
- Use your tablet's camera to take a photo of your face.
- Display the photo of your face fullscreen on your tablet.
- Hold up your photo to a face recognition panel that's securing an entrance.
- The secured entrance should remain locked. In addition, you should receive an SMS notification warning you that someone failed a liveness test. If you chose to configure SAFR to send email notifications, you should also receive an email notification.