MCPcopy Create free account

hub / github.com/AI-FanGe/OpenAIglasses_for_Navigation / functions

Functions403 in github.com/AI-FanGe/OpenAIglasses_for_Navigation

↓ 23 callersFunctiondraw_text_cn
统一的文本绘制: - 默认采用前端风格:小字体、左下角按行堆叠(ui_hint=True)。 - 若 ui_hint=False 则按传入 xy 精确定位(用于贴近目标的小标注)。
yolomedia.py:265
↓ 22 callersFunctionui_broadcast_final
(text: str)
app_main.py:313
↓ 18 callersFunction$
static/main.js:679
↓ 12 callersMethodclear
(self)
navigation_master.py:56
↓ 12 callersMethodget_state
(self)
navigation_master.py:290
↓ 11 callersMethod_parse_color
解析颜色字符串,返回BGR格式
workflow_blindpath.py:2643
↓ 10 callersMethod_add_data_panel
添加数据面板
workflow_blindpath.py:2357
↓ 9 callersMethoddrawTextWithBg
(text, x, y, fontSize = 18, color = this.colors.white, bgColor = this.colors.glassBg)
static/vision_renderer.js:218
↓ 9 callersFunctionupdateSlider
(idBase,v)
static/main.js:680
↓ 8 callersMethodpush
(self, v: str)
navigation_master.py:40
↓ 8 callersFunctionsetBadge
(el, ok, text)
static/main.js:204
↓ 6 callersMethod_parse_color
解析颜色字符串,返回BGR格式
workflow_crossstreet.py:870
↓ 6 callersFunctionaddMessage
(text, isUser = false)
static/main.js:169
↓ 6 callersFunctioninner_offset_edge
(mask_bin, offset_px=5, edge_dilate_px=2)
yolomedia.py:388
↓ 6 callersFunctionmkMed
()
static/main.js:712
↓ 6 callersFunctionplay_voice_text
传入中文提示,自动匹配 voice 映射并播放。 - 尝试原文 - 尝试补全/去除句末标点(。.!!??) - 若包含“前方有…注意避让”但未命中,降级到“前方有障碍物,注意避让。”
audio_player.py:327
↓ 5 callersFunction_color_bgr
(name: str)
navigation_master.py:199
↓ 5 callersMethod_say
(self, now: float, text: str)
navigation_master.py:389
↓ 5 callersMethoddrawStatusText
(mainText, subText, x, y, color)
static/visualizer.js:523
↓ 5 callersFunctionplay_audio_threadsafe
线程安全的音频播放函数
audio_player.py:262
↓ 5 callersMethodreset
(self)
navigation_master.py:369
↓ 5 callersFunctionstop_yolomedia
停止yolomedia线程
app_main.py:390
↓ 4 callersMethod_add_navigation_info_visualization
添加导航计算信息的可视化
workflow_blindpath.py:2248
↓ 4 callersMethod_add_obstacle_visualization
添加障碍物可视化(简化版:仅边框,近红远黄)
workflow_blindpath.py:2210
↓ 4 callersMethod_detect_obstacles
检测障碍物
workflow_blindpath.py:1930
↓ 4 callersMethod_get_pixel_domain_features
提取像素域特征
workflow_blindpath.py:1732
↓ 4 callersFunction_put_text
(img, text, org, color=(255,255,255), scale=0.7, thick=2, outline=True)
navigation_master.py:211
↓ 4 callersFunction_wrap180
(a: float)
app_main.py:1124
↓ 4 callersFunctioncreateAxisLabel
(text, position, color)
static/main.js:462
↓ 4 callersMethoddrawCircle
(x, y, radius, color, fill = true)
static/vision_renderer.js:312
↓ 4 callersFunctionget_recorder
获取全局录制器实例
sync_recorder.py:293
↓ 4 callersFunctionplay_guidance_audio
播放方向引导音频
yolomedia.py:600
↓ 4 callersMethodsegment
返回: dict{ 'masks': List[np.uint8(H,W)], # 0/1 mask 'boxes': List[Tuple[x1,y1,x2,y2]], 'cls
yoloe_backend.py:27
↓ 4 callersFunctionsetImuBadge
(ok, text)
static/main.js:739
↓ 4 callersFunctionstop_rec
(send_notice: Optional[str] = None)
app_main.py:739
↓ 4 callersFunctionwrap180
static/main.js:717
↓ 3 callersMethod_draw_chinese_text
绘制中文文本,使用微软雅黑字体,白字黑边
workflow_blindpath.py:3004
↓ 3 callersMethod_predict_mask_with_flow
使用Lucas-Kanade光流预测掩码位置(改进版)
workflow_blindpath.py:992
↓ 3 callersMethod_speech_for_obstacle
(self, name: str)
workflow_blindpath.py:2542
↓ 3 callersMethod_sync_audio_to_video
同步音频到视频时长(填充静音) :param video_time: 当前视频时长(秒)
sync_recorder.py:193
↓ 3 callersFunctioncheck_hand_object_contact
检测手的边界框和物体多边形是否有重叠 返回: (是否接触, 重叠比例)
yolomedia.py:506
↓ 3 callersMethoddetect
使用 predict 方法并转换为 detect 格式
workflow_crossstreet.py:1797
↓ 3 callersFunctiondraw_dashed_line
绘制虚线
yolomedia.py:464
↓ 3 callersFunctionensureChatContainer
()
static/main.js:18
↓ 3 callersFunctionfitCanvas
()
static/main.js:219
↓ 3 callersFunctionhard_reset_audio
**一键清场**:丢弃所有播放器连接(abort_event置位)+ 取消当前AI任务。 这样旧的音频不会再有任何去处,也没有任何任务继续产出。
audio_stream.py:59
↓ 3 callersFunctioninitialize_audio_system
初始化音频系统
audio_player.py:234
↓ 3 callersFunctionmk
(c)
static/main.js:486
↓ 3 callersFunctionon_sdk_error
(_msg: str)
app_main.py:756
↓ 3 callersMethodscalePoint
(point, width, height)
static/visualizer.js:458
↓ 3 callersMethodscalePoints
(points, width, height)
static/visualizer.js:466
↓ 3 callersMethodstop_navigation
停止导航,回到对话模式
navigation_master.py:300
↓ 2 callersMethod_add_mask_visualization
添加掩码可视化(增加描边)
workflow_blindpath.py:1195
↓ 2 callersMethod_check_occlusion
检查斑马线是否被盲道遮挡
crosswalk_awareness.py:105
↓ 2 callersMethod_classify_color_hsv
对 ROI 做 HSV 基于阈值的红/黄/绿简单判定;取面积最大的主色。
navigation_master.py:137
↓ 2 callersMethod_get_position_description
获取方位描述(3分法)
crosswalk_awareness.py:120
↓ 2 callersMethod_handle
(self, event: Any)
asr_core.py:145
↓ 2 callersFunction_in_set
检查名称是否在集合中
workflow_crossstreet.py:137
↓ 2 callersFunction_norm_name
标准化名称
workflow_crossstreet.py:133
↓ 2 callersFunction_normalize_cn
(s: str)
asr_core.py:61
↓ 2 callersFunction_safe_to_dict
(x: Any)
asr_core.py:13
↓ 2 callersFunction_score_of
兼容不同检测结构,取出置信度;取不到就给 0.0(保守)
workflow_crossstreet.py:122
↓ 2 callersFunction_ui_next_y_top
返回右上角下一行的y(顶部对齐),并推进行计数。
yolomedia.py:63
↓ 2 callersFunctionbroadcast_pcm16_realtime
以 20ms 节拍把 pcm16 发送给所有仍存活的连接;队列满丢尾,保持实时。
audio_stream.py:79
↓ 2 callersFunctionclamp01
(x)
yolomedia.py:314
↓ 2 callersFunctionconnectASR
()
static/main.js:264
↓ 2 callersFunctionconnectCamera
()
static/main.js:252
↓ 2 callersMethoddetect
总入口:先尝试后端;失败则在上半屏自行找“亮色灯团”(无需框)。
navigation_master.py:175
↓ 2 callersFunctiondetect_grasp
(hand_lms, W, H)
yolomedia.py:362
↓ 2 callersMethoddrawContour
(points, color, lineWidth = 2)
static/vision_renderer.js:333
↓ 2 callersMethoddrawProgressBar
(x, y, width, height, value, label, color)
static/vision_renderer.js:286
↓ 2 callersMethoddrawProgressBar
(x, y, width, height, value, label, color)
static/visualizer.js:412
↓ 2 callersFunctionend_cap
(pt, size=8, color=(255,255,255), t=1)
yolomedia.py:439
↓ 2 callersMethodforce_state
(self, s: str)
navigation_master.py:349
↓ 2 callersMethodgetContourCenter
(points)
static/visualizer.js:470
↓ 2 callersFunctionhand_bbox_and_area
(lms, W, H)
yolomedia.py:346
↓ 2 callersFunctionnavLabelAndText
(raw)
static/main.js:209
↓ 2 callersFunctionpolygon_center_and_area
(poly)
yolomedia.py:333
↓ 2 callersFunctionrad2deg
static/main.js:716
↓ 2 callersMethodrender
()
static/visualizer.js:67
↓ 2 callersFunctionrequestSync
()
static/main.js:428
↓ 2 callersFunctionset_current_recognition
(r)
asr_core.py:74
↓ 2 callersMethodstart_recording
开始新的录制会话
sync_recorder.py:62
↓ 2 callersMethodstop_recording
停止录制并保存文件
sync_recorder.py:212
↓ 2 callersFunctionui_broadcast_partial
(text: str)
app_main.py:308
↓ 2 callersFunctionui_broadcast_raw
(msg: str)
app_main.py:297
↓ 2 callersMethodupdateConnectionStatus
(connected)
static/vision_renderer.js:73
↓ 1 callersMethod_add_crosswalk_info_visualization
添加斑马线检测信息的精美可视化
workflow_blindpath.py:2365
↓ 1 callersMethod_add_obstacle_visualization
添加障碍物可视化(简化版:仅边框,近红远黄)
workflow_crossstreet.py:888
↓ 1 callersMethod_add_traffic_light_visualization
添加红绿灯状态可视化
workflow_blindpath.py:2480
↓ 1 callersFunction_broadcast
()
app_main.py:1249
↓ 1 callersFunction_broadcast_audio_optimized
优化的音频广播:单次调用由底层按20ms节拍发送,移除重复节拍和Python层sleep
audio_player.py:201
↓ 1 callersMethod_calculate_line_x_at_y
计算直线在特定y坐标的x值
workflow_blindpath.py:1914
↓ 1 callersMethod_check_and_set_obstacle_voice
检查障碍物并设置待播报的语音
workflow_blindpath.py:2014
↓ 1 callersMethod_check_obstacles
检查并处理障碍物
workflow_blindpath.py:2056
↓ 1 callersFunction_cls_of
提取检测对象的类别ID
workflow_crossstreet.py:191
↓ 1 callersMethod_compute_angle_and_offset
计算斑马线的角度和偏移(PCA 回退用)
workflow_crossstreet.py:545
↓ 1 callersMethod_compute_远_distance_alignment
计算远距离对准的角度和偏移(基于mask几何,不依赖条纹)
workflow_crossstreet.py:449
↓ 1 callersMethod_detect_obstacles
检测障碍物,调用 ObstacleDetectorClient.detect(与 blindpath 同步)
workflow_crossstreet.py:778
↓ 1 callersMethod_detect_path_and_crosswalk
检测盲道和斑马线
workflow_blindpath.py:783
next →1–100 of 403, ranked by callers