 Your NameandClaude Opus 4.5
|
8c297ff640
|
feat: 实现 AI 服务模块 (ASR/OCR/Logo检测)
新增 AI 服务模块,全部测试通过 (215 passed, 92.41% coverage):
- asr.py: 语音识别服务
- 支持中文普通话/方言/中英混合
- 时间戳精度 ≤ 100ms
- WER 字错率计算
- ocr.py: 文字识别服务
- 支持复杂背景下的中文识别
- 水印检测
- 批量帧处理
- logo_detector.py: 竞品 Logo 检测
- F1 ≥ 0.85 (含 30% 遮挡场景)
- 新 Logo 即刻生效
- 跨帧跟踪
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-02 17:48:28 +08:00 |
|
 Your NameandClaude Opus 4.5
|
040aada160
|
feat: 添加全面的 TDD 测试套件框架
基于项目需求文档(PRD.md, FeatureSummary.md, DevelopmentPlan.md,
UIDesign.md, User_Role_Interfaces.md)编写的 TDD 测试用例。
后端测试 (Python/pytest):
- 单元测试: rule_engine, brief_parser, timestamp_alignment,
video_auditor, validators
- 集成测试: API Brief, Video, Review 端点
- AI 模块测试: ASR, OCR, Logo 检测服务
- 全局 fixtures 和 pytest 配置
前端测试 (TypeScript/Vitest):
- 工具函数测试: utils.test.ts
- 组件测试: Button, VideoPlayer, ViolationList
- Hooks 测试: useVideoAudit, useVideoPlayer, useAppeal
- MSW mock handlers 配置
E2E 测试 (Playwright):
- 认证流程测试
- 视频上传流程测试
- 视频审核流程测试
- 申诉流程测试
所有测试当前使用 pytest.skip() / it.skip() 作为占位符,
遵循 TDD 红灯阶段 - 等待实现代码后运行。
验收标准覆盖:
- ASR WER ≤ 10%
- OCR 准确率 ≥ 95%
- Logo F1 ≥ 0.85
- 时间戳误差 ≤ 0.5s
- 频次统计准确率 ≥ 95%
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-02 17:22:24 +08:00 |
|