This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| 健診OCR(Pythonista3・堅牢版) | |
| - 写真 1〜複数選択(HEIC/JPEG/PNG) | |
| - Vision APIでOCR+判定 | |
| - 前処理: RGB化 → 最大辺2600px → 自動コントラスト → コントラスト×1.6 → 軽いシャープ | |
| - エンコード: 常にPNG(JPEGエラーを完全排除) | |
| - 正常スキップをローカル保証(判定や陰性語で除外) | |
| - '行全文' に測定値が厳密一致しない要素は再確認対象 | |
| - 尿酸/LDL/HbA1c はピンポイント再読(1回)してから採否決定 |