import time


def take_photo(camera):
    """
    Captures an image from a web camera using OpenCV
    """

    # Wait, otherwise the image will be over-dark
    time.sleep(0.3)
    return_value, image = camera.read()

    ### imageT = transpose_photo(image)

    return image