lane op• Data kinds: rgbimage × table → table
• Call: import fullseye as fs; fs.ledger.color_rule_mask(image, rules=None) (implementation को सीधे call करना हो तो import laneops; laneops.color_rule_mask(image, rules=None), registry से लेना हो तो opsdrive.get("color_rule_mask"))
• GPU: नहीं (केवल CPU reference implementation)
स्पष्ट HSV नियमों से RGB को सफेद रेखा, पीली रेखा या अज्ञात में वर्गीकृत कर masks और confidence लौटाता है।
> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।
trans_from_rgb の既存実装でRGB→HSVに変換する。白と黄のscoreを独立に計算して最大scoreを採るため、rulesをlistで渡した順序には依存しない。scoreが min_class_confidence未満、または上位2色の差がambiguity_margin以下なら unknownに棄却する。影・逆光・濡れ路面に合わせた自動較正はしない。
image : (H, W, 3) rgbimage
0..1の有限なRGB画像。
rules : table or None
名前付きしきい値の上書き。[{"name":"white", "min_value":...}, ...]も可。
table
labels(0 unknown, 1 white, 2 yellow)、各mask、confidence、色ごとのscore、HSV、使った規則。
English: classify finite RGB pixels as white, yellow or unknown with explicit HSV thresholds after the existing trans_from_rgb conversion. Ambiguous pixels are rejected. White additionally requires local value contrast, so a uniformly bright road is not a white line; this is a fixed classical rule, not an illumination estimator.
呼び出し例::
import numpy as np
import laneops
rgb = np.array([[[0.9, 0.9, 0.9], [0.9, 0.75, 0.05], [0.3, 0.3, 0.3]]])
out = laneops.color_rule_mask(rgb, {})
assert out["labels"].tolist() == [[1, 2, 0]]
• 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 में दिए गए हैं।
• lane_ops_tour — py -3.11 examples/lane_ops_tour.py
table को input के रूप में लेते हैं)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
lane)plane_topview_color · lane_boundary_fit · lane_center_path · stop_line_detect
*Provenance: laneops.py — DRIVE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.