【Android自動化】OCRを使用して画像内の文字を認識し、座標を取得する関数【Python】
この関数は、デバイスの解像度を使用し、画像内の特定のテキストを認識、そのテキストの中央の座標を返すために設計されています。以下はこの関数の詳細な説明です。
関数の定義
def recognize_text_with_coordinates(image_path, target_text, screen_width, screen_height):
image_path:テキストを認識する対象の画像ファイルのパス。
target_text:認識したいテキスト。
scr