はじめに 今回は画像からテキストを分析するDetect Textを使ってみる。 準備 下記のプログラムを用意する。 detect_text.py.py from PIL import Image, ImageDraw, ImageFont import boto3, sys, json, os, traceback #画像の分析結果を返す def detect_text(image): client=boto3.client('rekognition') #写真を読み出して、Byte変換してdetect_faces送信 file = open(image,'rb') response = cl…