File size: 250 Bytes
b5af7d6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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)