text opimage2d → scalarimport fullseye as fs; fs.ledger.text_line_orientation(image, max_angle=30.0, step=0.25) (実装を直接呼ぶなら import mvtext; mvtext.text_line_orientation(image, max_angle=30.0, step=0.25)、台帳から引くなら opsmv.get("text_line_orientation"))text_line_orientation(意味・パラメータは HALCON リファレンスが参考になる)文字行の傾きを射影の鋭さの最大で求める(度)。
行の射影は傾きが合うと階段が最も鋭くなる。その鋭さ(隣り合う射影の差の 2 乗和)を
-max_angle .. max_angle で走査する。角度の向きはこの repo の矩形と同じで、右へ進むと行
が増える向きが正。インクが無い画像は 0.0 を返す(理由: 傾きを決める手がかりが無い)。
空の入力(image が 0 要素)は ValueError。
Args: image: 灰色画像か bool の領域 (H, W)。灰色は Otsu のしきい値で二値にする。 max_angle: 走査の範囲(度、> 0)。 step: 走査の刻み(度、> 0)。
Returns: 傾き(度)。
py -3.11 examples/machine_vision_tour.pyscalar を入力に取れる)—
text)text_line_slant · segment_characters · select_characters
Provenance: mvtext.py — MV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.