feat(v1): chinese screenshot labels via Pillow with ASCII fallback

annotate_frame draws Chinese labels (e.g. '确认摔倒 P-0001') using a CJK
font via Pillow when available (Windows uses Microsoft YaHei), and falls
back to the ASCII cv2 label when Pillow or a CJK font is missing. 86 tests
pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ila
2026-07-22 00:10:07 +08:00
co-authored by Claude Opus 4.8
parent c5e4d87b42
commit 8b33f61112
6 changed files with 129 additions and 9 deletions
+1
View File
@@ -2,4 +2,5 @@ numpy==1.24.4
opencv-python==4.6.0.66
ultralytics==8.3.205
PyQt5==5.15.9
Pillow==9.5.0
pytest==8.3.5