from face_sdk_3divi import FacerecService # FacerecService creates service
service = FacerecService.create_service(
sdk_dll_path,
sdk_conf_dir,
f'{sdk_path}/license'
)
face_detector = service.create_processing_block({"unit_type": "FACE_DETECTOR"})
face_template_extractor = service.create_processing_block({"unit_type": "FACE_TEMPLATE_EXTRACTOR"})
face_fitter = service.create_processing_block({"unit_type": "FACE_FITTER"})
input_image_path = "{path_to_image}"
image_data = bytes()
with open(input_image_path, "rb") as image_file:
image_data = image_file.read()
ioData = service.create_context_from_encoded_image(image_data)
face_detector(ioData)
face_fitter(ioData)
face_template_extractor(ioData)
Face recognition SDK features
Need a custom build? Our engineers can adapt 3DiVi Face SDK to your requirements.
Face-based employee attendance tracking in remote locations
Developer resources
3DiVi Face SDK pricing calculator