

def setUp(self):
    with open('tests/images/people.jpg', 'rb') as f:
        pillow_image = PillowImage.open(JPEGImageFile(f))
        buffer_rgb = pillow_image.to_buffer_rgb()
        colour_image = OpenCVColorImage.from_buffer_rgb(buffer_rgb)
        self.image = OpenCVGrayscaleImage.from_color(colour_image)

dataset/ETHPy150Open torchbox/Willow/tests/test_opencv.py TestOpenCVOperations.setUp/original