def __init__(self, options):
    '\n        Constructor\n        '
    '\n        Initialize ROC SDK. looks for the license file and optionally we can provide a log file. If it cannot find the license then it will quit. Roc_ensure catches the error and aborts.\n        '
    global roc
    import roc as _local_roc
    roc = _local_roc
    if (os.environ.get('ROC_LIC') is not None):
        roc.roc_ensure(roc.roc_initialize(None, None))
    else:
        self.license_file = (roc.__file__.split('python')[0] + 'ROC.lic')
        roc.roc_ensure(roc.roc_initialize(self.license_file.encode('utf-8'), None))
    print('ROC SDK Initialized')
    self.img_quality = options.img_quality
    self.num_faces = options.num_faces
    self.min_face_size = options.min_face_size
    self.detection_threshold = self.recommendedDetectionThreshold()
    if (self.img_quality is None):
        self.img_quality = self.recommendedImgQuality()
    if (self.num_faces is None):
        self.num_faces = self.recommendedMaxFacesDetected()
    '\n        ROC_Frontal : ROC frontal face detector (-30 to +30 degress yaw)\n        ROC_FR : Represent in-the-wild-faces for comparison\n        Note : Non-frontal faces detected by ROC_FULL and ROC_PARTIAL are not reliable for recognition.\n        Therefore we advise against using ROC_FULL or ROC_PARTIAL in conjunction with ROC_FR or ROC_ID.\n        ROC_FULL : ROC face detector (-100 to +100 degrees yaw)\n        ROC_DEMOGRAPHICS - Return age, gender, sex\n        ROC_PITCHYAW - Returns yaw and pitch\n        '
    self.algorithm_id_detect = roc.ROC_FULL
    self.algorithm_id_extract = ((((roc.ROC_MANUAL | roc.ROC_FR) | roc.ROC_DEMOGRAPHICS) | roc.ROC_LANDMARKS) | roc.ROC_PITCHYAW)
    roc.roc_ensure(roc.roc_preload(self.algorithm_id_detect))
    roc.roc_ensure(roc.roc_preload(self.algorithm_id_extract))
Constructor
def __init__(self, options):
    '\n        \n        '
    '\n        Initialize ROC SDK. looks for the license file and optionally we can provide a log file. If it cannot find the license then it will quit. Roc_ensure catches the error and aborts.\n        '
    global roc
    import roc as _local_roc
    roc = _local_roc
    if (os.environ.get('ROC_LIC') is not None):
        roc.roc_ensure(roc.roc_initialize(None, None))
    else:
        self.license_file = (roc.__file__.split('python')[0] + 'ROC.lic')
        roc.roc_ensure(roc.roc_initialize(self.license_file.encode('utf-8'), None))
    print('ROC SDK Initialized')
    self.img_quality = options.img_quality
    self.num_faces = options.num_faces
    self.min_face_size = options.min_face_size
    self.detection_threshold = self.recommendedDetectionThreshold()
    if (self.img_quality is None):
        self.img_quality = self.recommendedImgQuality()
    if (self.num_faces is None):
        self.num_faces = self.recommendedMaxFacesDetected()
    '\n        ROC_Frontal : ROC frontal face detector (-30 to +30 degress yaw)\n        ROC_FR : Represent in-the-wild-faces for comparison\n        Note : Non-frontal faces detected by ROC_FULL and ROC_PARTIAL are not reliable for recognition.\n        Therefore we advise against using ROC_FULL or ROC_PARTIAL in conjunction with ROC_FR or ROC_ID.\n        ROC_FULL : ROC face detector (-100 to +100 degrees yaw)\n        ROC_DEMOGRAPHICS - Return age, gender, sex\n        ROC_PITCHYAW - Returns yaw and pitch\n        '
    self.algorithm_id_detect = roc.ROC_FULL
    self.algorithm_id_extract = ((((roc.ROC_MANUAL | roc.ROC_FR) | roc.ROC_DEMOGRAPHICS) | roc.ROC_LANDMARKS) | roc.ROC_PITCHYAW)
    roc.roc_ensure(roc.roc_preload(self.algorithm_id_detect))
    roc.roc_ensure(roc.roc_preload(self.algorithm_id_extract))