Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AI-FanGe/OpenAIglasses_for_Navigation
/ functions
Functions
403 in github.com/AI-FanGe/OpenAIglasses_for_Navigation
⨍
Functions
403
◇
Types & classes
31
↳
Endpoints
3
↓ 1 callers
Method
drawPolygon
(points, color, lineWidth = 2)
static/vision_renderer.js:348
↓ 1 callers
Method
drawProgressBars
(tracking, width, height)
static/visualizer.js:375
↓ 1 callers
Method
drawSegmentMode
(width, height)
static/visualizer.js:158
↓ 1 callers
Method
drawStats
(width, height)
static/visualizer.js:438
↓ 1 callers
Method
drawStatusMessage
(message)
static/vision_renderer.js:424
↓ 1 callers
Method
drawTargetMarker
(x, y)
static/vision_renderer.js:352
↓ 1 callers
Method
drawTargetMarker
(x, y)
static/visualizer.js:475
↓ 1 callers
Method
drawTargetObject
(obj)
static/vision.js:265
↓ 1 callers
Method
drawTechProgressBars
(alignScore, rangeScore)
static/vision_renderer.js:268
↓ 1 callers
Method
drawTrackMode
(width, height)
static/visualizer.js:257
↓ 1 callers
Function
draw_command_pill
统一改为右上角白色文案。不再绘制底部圆角按钮。
yolomedia.py:80
↓ 1 callers
Function
draw_hand_contour
绘制手部landmarks的凸包轮廓
yolomedia.py:489
↓ 1 callers
Function
draw_hands_mono
(img_bgr, hand_lms, color=(0, 255, 255), r=2, t=2)
yolomedia.py:187
↓ 1 callers
Function
estimate_translation_flow
估计两帧之间的平移光流 :param prev_gray: 前一帧灰度图 :param curr_gray: 当前帧灰度图 :param mask: 可选的掩码 :return: (中位光流幅度, 平移矩阵)
utils.py:124
↓ 1 callers
Function
extract_english_label
返回 (label_en, source);source ∈ {'local', 'qwen', 'fallback'}
qwen_extractor.py:33
↓ 1 callers
Function
formatTime
(timestamp = Date.now())
static/main.js:154
↓ 1 callers
Function
gen
()
audio_stream.py:134
↓ 1 callers
Method
getModeText
(mode)
static/vision.js:195
↓ 1 callers
Function
get_center_guidance
判断物体是否在画面中心,返回引导方向 返回: (方向文字, 是否已居中)
yolomedia.py:612
↓ 1 callers
Method
get_compression_stats
获取压缩统计信息
audio_compressor.py:418
↓ 1 callers
Function
get_guidance_direction
根据手心和物体中心位置,以及面积比,返回引导方向 返回: (方向文字, 是否需要前后调整)
yolomedia.py:543
↓ 1 callers
Method
get_visualization_data
获取可视化数据 返回包含所有可视化元素的字典
crosswalk_awareness.py:295
↓ 1 callers
Function
gpu_infer_slot
统一管理 GPU 并发限流 + inference_mode + AMP autocast
obstacle_detector_client.py:37
↓ 1 callers
Method
history
(self)
navigation_master.py:53
↓ 1 callers
Function
imu_broadcast
(msg: str)
app_main.py:1089
↓ 1 callers
Method
initUI
()
static/vision.js:24
↓ 1 callers
Function
init_model
初始化YOLO模型(单帧处理模式)
trafficlight_detection.py:477
↓ 1 callers
Method
init_traffic_light_detector
初始化红绿灯检测器
workflow_blindpath.py:263
↓ 1 callers
Function
keepalive_loop
()
app_main.py:759
↓ 1 callers
Method
load_and_compress
加载并压缩音频文件(统一转换为8kHz)
audio_compressor.py:322
↓ 1 callers
Function
load_navigation_models
加载盲道导航所需的模型
app_main.py:119
↓ 1 callers
Function
load_wav_file
加载WAV文件并返回PCM数据(自动转换为8kHz)
audio_player.py:65
↓ 1 callers
Function
main
红绿灯检测主函数 参数: headless: 是否无头模式(不显示OpenCV窗口) stop_event: threading.Event,用于停止检测
trafficlight_detection.py:184
↓ 1 callers
Function
main
(headless: bool = False, prompt_name: str = None, stop_event=None)
yolomedia.py:637
↓ 1 callers
Method
majority
(self)
navigation_master.py:43
↓ 1 callers
Function
norm_name
(s: str)
yolomedia.py:203
↓ 1 callers
Method
on_voice_command
(self, text: str)
navigation_master.py:353
↓ 1 callers
Method
pcm16_to_adpcm
将16位PCM转换为4位ADPCM 压缩率:75%(16bit -> 4bit) 保持较好的语音质量
audio_compressor.py:105
↓ 1 callers
Method
pcm16_to_ulaw
将16位PCM转换为8位μ-law 压缩率:50%(16bit -> 8bit)
audio_compressor.py:20
↓ 1 callers
Function
post
(coro)
app_main.py:797
↓ 1 callers
Function
preload_all_audio
预加载所有音频文件到内存
audio_player.py:136
↓ 1 callers
Method
process_frame
(self, bgr: np.ndarray)
navigation_master.py:420
↓ 1 callers
Function
process_imu_and_maybe_store
(d: Dict[str, Any])
app_main.py:1130
↓ 1 callers
Function
process_queue
()
audio_player.py:183
↓ 1 callers
Function
register_stream_route
(app)
audio_stream.py:120
↓ 1 callers
Method
renderFlashAnimation
(progress)
static/vision_renderer.js:250
↓ 1 callers
Method
renderFrame
(data)
static/vision_renderer.js:99
↓ 1 callers
Method
reset
重置状态
workflow_crossstreet.py:277
↓ 1 callers
Method
reset
重置导航器状态
workflow_blindpath.py:3115
↓ 1 callers
Function
set_current_command
(text: str)
yolomedia.py:72
↓ 1 callers
Method
set_text_classes
(self, names: List[str])
yoloe_backend.py:23
↓ 1 callers
Method
setupCanvas
()
static/vision_renderer.js:36
↓ 1 callers
Method
setupCanvas
()
static/visualizer.js:36
↓ 1 callers
Function
shouldShowTimestamp
()
static/main.js:145
↓ 1 callers
Function
split_combined_voice
将组合语音拆分为多个独立语音 例如:"远处发现斑马线,在画面左侧" → ["远处发现斑马线", "在画面左侧"]
crosswalk_awareness.py:333
↓ 1 callers
Method
startRenderLoop
()
static/vision_renderer.js:81
↓ 1 callers
Function
start_ai_with_text
硬重置后,开启新的 AI 语音输出。
app_main.py:611
↓ 1 callers
Function
start_ai_with_text_custom
扩展版的AI启动函数,支持识别特殊命令
app_main.py:410
↓ 1 callers
Method
start_blind_path_navigation
启动盲道导航模式
navigation_master.py:293
↓ 1 callers
Method
start_crossing
启动过马路模式
navigation_master.py:307
↓ 1 callers
Method
start_item_search
启动找物品模式,暂停当前导航
navigation_master.py:323
↓ 1 callers
Method
start_traffic_light_detection
启动红绿灯检测模式
navigation_master.py:314
↓ 1 callers
Function
start_yolomedia_with_target
启动yolomedia线程,搜索指定物品
app_main.py:358
↓ 1 callers
Function
stop_current_recognition
()
asr_core.py:79
↓ 1 callers
Method
stop_item_search
停止找物品模式
navigation_master.py:335
↓ 1 callers
Function
stream_chat
发起一轮 Omni-Turbo ChatCompletions 流式对话: - content_list: OpenAI chat 的 content,多模态(image_url/text) - 以 stream=True 返回 - 增量产出:OmniStreamP
omni_client.py:27
↓ 1 callers
Function
ui_reset_overlay
每帧调用一次,重置叠加行计数
trafficlight_detection.py:91
↓ 1 callers
Function
ui_reset_overlay
每帧调用一次,重置叠加行计数(改为右上角布局)。
yolomedia.py:55
↓ 1 callers
Method
ulaw_to_pcm16
将8位μ-law转换回16位PCM
audio_compressor.py:37
↓ 1 callers
Function
updateDataPanel
(roll, pitch, yaw, gx, gy, gz, ax, ay, az)
static/main.js:438
↓ 1 callers
Method
updateDataPanel
(data)
static/vision.js:188
↓ 1 callers
Function
updateLighting
()
static/main.js:617
↓ 1 callers
Method
updateProgress
(data)
static/vision.js:174
↓ 1 callers
Method
updateStatus
(data)
static/vision.js:154
↓ 1 callers
Function
warp_mask
使用仿射变换对掩码进行变换 :param mask: 输入掩码 :param M: 2x3的仿射变换矩阵 :param output_shape: 输出形状 (width, height) :return: 变换后的掩码
utils.py:101
Method
ICM42688
compile/ICM42688.cpp:4
Method
__init__
初始化录制器 :param output_dir: 输出目录 :param fps: 视频帧率(默认15fps)
sync_recorder.py:18
Method
__init__
(self, model_path: Optional[str] = None, device: Optional[Union[str, int]] = None)
yoloe_backend.py:18
Method
__init__
(self, seg_model=None, coco_model=None, obs_model=None, device_id: str = "esp32")
workflow_crossstreet.py:205
Method
__init__
(self, yolo_model)
workflow_crossstreet.py:1794
Method
__init__
(self)
workflow_crossstreet.py:1810
Method
__init__
( self, on_sdk_error: Callable[[str], None], post: Callable[[asyncio.Future], None],
asr_core.py:99
Method
__init__
compression_type: "none", "ulaw", "adpcm"
audio_compressor.py:313
Method
__init__
(self, text_delta: Optional[str] = None, audio_b64: Optional[str] = None)
omni_client.py:23
Method
__init__
(self)
crosswalk_awareness.py:19
Method
__init__
(self, size: int = 8)
navigation_master.py:37
Method
__init__
(self)
navigation_master.py:67
Method
__init__
(self, blind_nav: BlindPathNavigator, cross_nav: CrossStreetNavigator,
navigation_master.py:246
Method
__init__
(self, enable=True)
yolomedia.py:208
Method
__init__
(self, model_path: str = 'models/yoloe-11l-seg.pt')
obstacle_detector_client.py:50
Method
__init__
初始化导航器 :param yolo_model: YOLO分割模型(可选) :param obstacle_detector: 障碍物检测器(可选)
workflow_blindpath.py:89
Method
__post_init__
(self)
workflow_crossstreet.py:117
Method
__post_init__
(self)
workflow_blindpath.py:81
Function
_audio_worker
音频播放工作线程
audio_player.py:162
Method
_binarize
(mask)
workflow_blindpath.py:911
Function
_draw_badge
(img, text, pos=(10, 28), fg="white", bg="blue")
navigation_master.py:219
Method
_draw_data_panel
绘制数据面板(需要Pillow)
workflow_blindpath.py:3065
Function
_draw_frame_border
(img, color=(0,255,0), thickness=3)
navigation_master.py:233
Function
_draw_progress_bar
(img, ratio: float, pos=(10, 90), size=(180, 10), color="cyan")
navigation_master.py:237
Function
_draw_state_panel
(img, kv: Dict[str, Any], pos=(10, 60))
navigation_master.py:227
← previous
next →
201–300 of 403, ranked by callers