def ocr_file(client, filepath):
    """
    Calls Azure Computer Vision API to read a file stream
    Returns the result object
    """

    with open(filepath, "rb") as image_stream:
        recognize_printed_results = client.batch_read_file_in_stream(
            image_stream, raw=True
        )

        return recognize_printed_results