iris / hf_workspace /backend /common.py
github-actions[bot]
Automated Deploy: 2845ef877db9dd2af4e8ee9da6d857c78ef513f2
b5af7d6
Raw History Blame Contribute Delete
250 Bytes
import cv2
class RegistrationError(ValueError):
def __init__(self, message, diagnostics=None):
super().__init__(message)
self.diagnostics = diagnostics or {}
def gray(image):
return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)