Spaces:
Paused
Paused
Download hf_workspace/backend/common.py from modventures/iris: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/spaces/modventures/iris/resolve/main/hf_workspace/backend/common.py
- Command line
-
hf download hf://spaces/modventures/iris/hf_workspace/backend/common.py
-
curl -L -o common.py https://huggingface.co/spaces/modventures/iris/resolve/main/hf_workspace/backend/common.py
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) | |