annotate_legend — ANNOTATE paper op

• Data kinds: image2d → image2d

• Call: import fullseye as fs; fs.ledger.annotate_legend(img, labels, xy, anchor='lt', start=1, radius=7.0, color='emphasis', text_color=None, font_size=12, pad=8, row_gap=4, box_color=None, box_alpha=0.72, border=1, border_color='neutral', scheme='okabe_ito', font_path=None, min_font_size=9, numbers=None) (implementation को सीधे call करना हो तो import annotate; annotate.annotate_legend(img, labels, xy, anchor='lt', start=1, radius=7.0, color='emphasis', text_color=None, font_size=12, pad=8, row_gap=4, box_color=None, box_alpha=0.72, border=1, border_color='neutral', scheme='okabe_ito', font_path=None, min_font_size=9, numbers=None), registry से लेना हो तो opsannotate.get("annotate_legend"))

उपयोग

image (image2d) लौटाता है: क्रमांक वाले गोल marker × विवरण की legend (annotate_markers का जोड़ीदार)।

box की ऊँचाई closed form 2*pad + n*row_h + (n-1)*row_gap है (row_h = max(2r, text height))।

Parameters

labels : sequence of str

हर row का विवरण।

numbers : sequence of str or None

हर row का marker text। None हो तो start से क्रमागत नंबर।

Raises

ValueError

labels खाली, box image से बाहर निकलता है, negative margin।

उपयोग की विस्तृत guide

• figure_annotation family guide

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• dataset_conventions — Training dataset के conventions — COCO / YOLO / VOC और visual inspection में सावधानियाँ

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• paper_figure — py -3.11 examples/paper_figure.py

• poc_real_defect_floor — py -3.11 examples/poc_real_defect_floor.py

वे अगले ops जिनसे type जुड़ता है (image2d को input के रूप में लेते हैं)

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

इसी category के (paper)

annotate_leader_layout · annotate_leader · annotate_markers · annotate_dimension_layout · annotate_dimension · annotate_angle_layout · annotate_angle · annotate_scale_bar_layout


*Provenance: annotate.py — ANNOTATE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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