detect_tilt
Determine image roll angle using dominant line detection, refined below 0.1° with separate horizontal/vertical estimates to differentiate perspective from true tilt. Read-only, returns null if no correction is needed.
Instructions
Detect the tilt (roll) of a revision: Canny + Hough dominant lines for coarse candidates, refined below 0.1 degree with an edge projection-profile search. Horizontal-only and vertical-only estimates are reported separately so a disagreement can be read as perspective/camera position rather than roll, Set include_score_curve=true to also get the whole search range as a score curve (omitted by default to keep the answer small). Read-only: it never modifies the image. A null recommended angle means "do not correct".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision_id | Yes | 対象 revision ID("rev_...")。 | |
| max_abs_angle | No | 探索する最大傾き角(度、0.5..=45)。省略時は 15。 | |
| include_score_curve | No | 探索範囲全体のスコア曲線(最大 300 点)を結果に含めるか。既定 false。 ピークの鋭さ・多峰性を自分で読みたいときだけ true にする(既定では省かれる)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detection | Yes | 検出結果。`score_curve` は `include_score_curve: true` のときだけ載る。 | |
| revision_id | Yes |