leader_line — ANNOTATE pointer op

• 資料種類:image2d × text → image2d

• 呼叫: import fullseye as fs; fs.ledger.leader_line(img, anchor_xy, target_xy, text=None, color='emphasis', width=2, cap='dot', cap_size=4, elbow=True, scheme='okabe_ito', style=None, **text_kw)(要直接呼叫實作,import annotate; annotate.leader_line(img, anchor_xy, target_xy, text=None, color='emphasis', width=2, cap='dot', cap_size=4, elbow=True, scheme='okabe_ito', style=None, **text_kw);從台帳取用則 opsannotate.get("leader_line"))

用法

引出線 —— 從註記位置(anchor_xy)指向對象(target_xy)。

elbow=True 時以水平 → 斜線的 2 折繪製(註記不易遮住主體)。端點放置 cap 的標記('dot'/'arrow'/'cross'/'none')。傳入 text 時,在 anchor_xy 一側放置 text_box。額外的 **text_kw 原樣傳給 text_box。

Raises

ValueError

未知的 cap、非有限的座標、線在影像外。

詳細使用指南

• figure_annotation 族使用指南

背景知識指南(該運算子背後的物理與規範)

• dataset_conventions — 訓練資料集規範知識 —— COCO / YOLO / VOC 及外觀檢測中的陷阱

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者、年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• annotate_gallery — py -3.11 examples/annotate_gallery.py

• poc_kendama — py -3.11 examples/poc_kendama.py

型別可銜接的下一個運算子(可接受 image2d 作為輸入)

text_box · arrow · label_points · crosshair · legend_box · color_bar · scale_bar · axes_frame

同類別(pointer)

arrow · label_points · crosshair


*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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