DOCUMENT INDEX : 
This document guides the user in how to setup Tamper detection.

1. TAMPER SETUP
This section describes the minimum requirement to setup tamper detection.
It shows the user how to "Pull" or initialize the tamper images.

2. TAMPER ENABLED
This section describes how to activate the tamper functionality on each channel.
Once all tampers are Initialised, the user should enable "Tamper" and "Tamper Restored"

3. ADVANCED TAMPER EXPLANATION
This section describes how the tamper detection system works and how to analyse false tamper detections.

1. TAMPER SETUP:

The Tamper configuration is applied through the Web User Interface of each Device.

From the device web user interface, click on Camera Configuration on the Left side bar.


Next, Select the Channel and INCLUDE SNAPSHOTS then Click load Config. 

The Channel configuration for the selected channel will be populated on the Web Interface.

The Region and Tamper snapshot's can be seen at the bottom of the page that just loaded.


The System saves a Snapshot every time a user clicks on the "Load Config" Button.
The Snapshots are saved in a FIFO manner with a maximum of 5 Tamper Images.
Latest Snapshot | tamper 1 | tamper 2 | tamper 3 | tamper 4 | tamper 5

Any of these snapshots can be deleted, by clicking on the X next to the tamper selected.
The best results are achieved when ensuring that day samples and night samples are saved as tamper images.

The System analyses these snapshots and creates a watermark of the merged view of all snapshots.
The watermark is compared to the current visuals of the channel ever 1 Minute ( configurable ) .

To view all tamper images per channel, the user can navigate to the Tamper menu item on the Device's web interface.

This page shows all the Tamper images that are loaded per channel.
For Tamper detection to function, there must be at least 5 Images per channel. 


2. TAMPER ENABLED

Once Tamper Images are initialised, navigate to the Seeing AME Hub and enable Tamper per channel from the Channel Configuration menu.


After completing Steps 1 and 2 , Tamper detection is ready.
The Following section is only a description of how the tamper system works.


3. ADVANCED TAMPER EXPLANATION:  

To visualize the tamper functionality in action, you can open the Maintenance Tab on the Left Side bar.

The Username for the Maintenance Tool is     :  admin
The Password is your full Client_ID                  : intertrade_*

Example of Client ID is intertrade_PAUL

On the Maintenance Menu Item there are a number of rows with various graphs and tools.
The Tamper logic can be seen in operation by selecting the Time period in the top right corner,
( ie. last 5 minutes , or last 12 Hours etc..)
Select a Channel from the Channel Dropdown menu ( top left )
The Tamper logic has three Values.

1) TAMPER ALERT : This is either 1 or 0
1 = The channel is currently in a tamper condition.
0 = The channel is not experiencing a tamper condition.

2) TAMPER PIXEL SCORE : This can range from 0 to 20 000
The tamper images are merged and each pixel's intensity is measured with this metric.

3) TAMPER STRUCTURE SCORE: This can range from 0 to 1
The Structure score evaluates the merged tampers and gives a base line value for the current field of view based on various structures detected.

If the PIXEL SCORE or the STRUCTURE Score deviates from the base line, A tamper condition is raised.

The Pixel score measures the intensity of each pixel which means the logic is able to determine if a bright light shines on the camera or if the camera is covered with a cloth or other object. 


The Structure score will deviate if the camera position is moved in any way.

This gives us two measurements to determine if a Tamper condition should be raised.
This logic provides protection against covering of cameras, moving of cameras, shining a torch into a camera.

If the Camera is removed from its position either a Tamper or a Stream_timeout condition is raised.
The Default tamper thresholds are :
TAMPER PIXEL SCORE : 10 000
TAMPER STRUCTURE SCORE : 0.3
TAMPER CHECKING INTERVAL : 60 Seconds