text_line_slant — MV text op

• Data kinds: image2d → scalar

• Call: import fullseye as fs; fs.ledger.text_line_slant(image, max_angle=45.0, step=0.5) (to call the implementation directly, import mvtext; mvtext.text_line_slant(image, max_angle=45.0, step=0.5); from the registry, opsmv.get("text_line_slant"))

• HALCON equivalent: text_line_slant (the HALCON reference is a useful guide to its meaning and parameters)

• GPU: none (CPU reference implementation only)

Usage

Find the character slant of a horizontal text line in degrees by maximizing the sharpness of the column projection.

> The detailed description below is the original text — the summary and the headings are translated.

せん断 col' = col + (row - row0) tan(a) で縦の字画が立つと列の射影が最も鋭くなる。正の角度は下へ行くほど左へ寄った字(上が右へ倒れた字)。インクが無い画像は 0.0 を返す(理由: 斜体角を決める手がかりが無い)。空の入力(image が 0 要素)は ValueError。

Args:

image: 灰色画像か bool の領域 (H, W)。文字行は水平に直しておく。

max_angle: 走査の範囲(度、0 より大きく 90 未満)。

step: 走査の刻み(度、> 0)。

Returns:

斜体角(度)。

Detailed usage guide

• machine_vision_classics family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

• poc_real_typewritten_ocr — py -3.11 examples/poc_real_typewritten_ocr.py

Ops the type connects to (they accept scalar as input)

—

Same category (text)

text_line_orientation · segment_characters · select_characters


*Provenance: mvtext.py — MV operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.