<?php
// Author: Sergi Diaz Planas
/*
Configuration parameteres of the server.
*/

class Config
{
    // Relative paths to the resouces
    public static $classifierPath = "./resources/haarcascade_frontalface_alt.xml";
    public static $predictorPath  = "./resources/shape_predictor_5_face_landmarks.dat";
    public static $netPath        = "./resources/dlib_face_recognition_resnet_model_v1.dat";
    public static $tessdataPath   = "./resources/";
    
    // Names used to refer to objects stored in session
    public static $referenceSessionName = "Reference";
    public static $detectorSessionName = "WFDetector";
    public static $verifierSessionName = "WFVerifier";
    public static $readerSessionName = "WFReader";

    // Change the following parameters to force the server to instantiate new computer vision components
    // each time a request is recieved.
    public static $detectorStoreInSession = false;
    public static $verifierStoreInSession = false;
    public static $readerStoreInSession = false;

    // The Y tolerance is the maximum distance in the y-axis that is allowed to be between the left
    // eye and the right eye in the reference face image. It defines how restrictive is the server to
    // rotation of the document.
    public static $yTolerance = 1;
}

?>