def send_video_file_to_rekognition()

in src/rekognition_call/main.py [0:0]


def send_video_file_to_rekognition(bucket_name, object_key):
    print(f'Sending the following to Rek: bucket {bucket_name} object {object_key} in region {region}')
    print(f'Using IAM role {role_arn} and SNS topic {sns_topic_arn}')

    rek = boto3.client('rekognition', region_name=region)
    response = rek.start_text_detection(
        Video={'S3Object': {'Bucket': bucket_name, 'Name': object_key}},
        NotificationChannel={'RoleArn': role_arn, 'SNSTopicArn': sns_topic_arn},
        Filters={
            "WordFilter": {"MinConfidence": min_confidence},
            "RegionsOfInterest": [{
                "BoundingBox": {
                    "Width": text_search_width,
                    "Height": text_search_height,
                    "Left": text_search_left,
                    "Top": text_search_top
                }
            }]
        })
    startJobId = response['JobId']
    print(f'Rekognition start_text_detection launched.  Job Id: {startJobId}')