API Reference

get_version

def get_version() -> str:

get_device_id

def get_device_id() -> str:

init_sdk

def init_sdk(dict_path: str, online_key: str) -> int:

init_sdk_offline

def init_sdk_offline(dict_path: str, offline_key_path: str) -> int:

extract_template

def extract_template(image: np.ndarray, width: int, height: int, face_bbox: np.ndarray, template: np.ndarray, template_len: np.ndarray) -> int:

calculate_similarity

def calculate_similarity(feature_1: np.ndarray, feature_2: np.ndarray) -> float:

Last updated