import typing


def detect_document(client: typing.Any, image: typing.Any):
    """
    Detects text data in a document.
    """
    response = client.document_text_detection(image=image)
    return response.full_text_annotation.text