API Reference

init_sdk

def init_sdk(key_path: str) -> int:

get_attribute

def get_attribute(image: np.ndarray, width: int, height: int, face_bbox: np.ndarray, attribute: np.ndarray, angles: np.ndarray, liveness: np.ndarray, age: np.ndarray, gender: np.ndarray, mask: np.ndarray, template: np.ndarray, template_len: np.ndarray, mode: int) -> int:

calculate_similarity

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

Last updated