Open
Conversation
Add --enable-tcy flag to detect and correctly OCR horizontal text embedded in vertical lines (tate-chuu-yoko), commonly found in newspaper headlines (e.g. "4317" in "全国4317人不足"). - TateChuYokoWrapper segments vertical line images into blocks and identifies TCY regions by horizontal component analysis - Filter noise blocks (height < seg_min_gap) from TCY detection - Use max_aspect_ratio=0.75 to avoid false positives on regular kanji - All TCY parameters are tunable via --tcy-* flags
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
縦書きテキスト中に含まれる横書き部分(縦中横)を検出・認識する機能を追加しました。新聞などで数字や英字が横書きで組まれているケースに対応します。
--enable-tcyフラグで有効化するオプトインになっているので既存の動作には影響しません。また指定しない時はロードすらされません。指定すると以下
tcy_wrapper.pyをロードし PARSEQ をラップします。--enable-tcy指定時のみ--tcy-*パラメータで検出の閾値等を調整できます。この機能を使う場合には cv2 が必要になります。