Commit History
-
feat(ui): Record-sign tab β multi-frame burst capture for full ASL wordsβ
Two-tab Gradio layout: - Tab 1: existing snapshot mode for fingerspelled letters (A-Z, 0-9). - Tab 2: 'Record sign' video capture; user records 1.5-2s of webcam, presses Submit, and the app extracts 4 evenly-spaced frames via OpenCV and POSTs them to recognize_sign_from_frames. This lifts SignBridge from 'spells letters' to 'translates ASL words' β the demo now handles motion-dependent signs (HELLO, THANK_YOU, PLEASE, EAT, ...) which a single still frame fundamentally cannot capture. New _sample_frames_from_video helper uses cv2.CAP_PROP_FRAME_COUNT and CAP_PROP_POS_FRAMES to fetch evenly-spaced frames; lazy-imports cv2 so the module still loads if opencv isn't available.9b576b6 -
feat(backend): /recognize accepts frames list + body-size capβ
deep-check audit B.F3 + new feature: - RecognizeRequest now accepts either 'frame' (single) or 'frames' (list). Exactly one of the two must be provided; validator returns 4xx if both or neither are supplied. - Per-frame base64 size cap of 3 MB (well above any reasonable webcam frame) and per-burst frame-count cap of 12 β defends /recognize against accidental DoS via huge payloads. - Multi-frame path delegates to recognize_sign_from_frames; single- frame path unchanged.ca5affd -
feat(vlm): add recognize_sign_from_frames for multi-image VLM inputβ
New function takes an ordered list of >=2 frames and sends them in a single OpenAI-compatible chat-completions call with N image_url entries plus the multi-frame prompt. Same vocab filter and confidence semantics as the single-frame path; raises ValueError for <2 frames. Enables the upcoming Hold-to-record demo flow that turns SignBridge from a fingerspelling-only demo into one that handles motion ASL signs (HELLO, THANK_YOU, PLEASE, EAT, ...) which a single still frame fundamentally cannot capture.5fb88cc -
feat(prompts): NVIDIA-pattern single-frame + multi-frame VLM promptsβ
Per the deep-research finding (NVIDIA Vision-Language-Model Prompt Engineering Guide, March 2025): closed-vocabulary forcing + domain priming + sequential frame markers. Builds ASL-specific prompts that explicitly distinguish static fingerspelling from motion-dependent lexical signs. - Single-frame builder (build_single_frame_prompt) replaces the existing inline _PROMPT in vlm.py. Adds the ASL domain-priming preface; same closed-vocabulary forcing and output contract as before. - Multi-frame builder (build_multi_frame_prompt) generates 'Frame 1: ... Frame N: ...' markers so the VLM treats the inputs as a temporal sequence. Used by the upcoming Hold-to-record burst-capture pipeline in Task 4.4838599 -
refactor: extract closed vocabulary into signbridge.vocab moduleβ
Single source of truth eliminates the drift risk between the VLM recognizer (string-prompt vocab) and the trained-classifier head (list order maps to logit indices). Also exports VOCAB_PROMPT_LITERAL for prompt embedding and VOCAB_SET for membership checks. Addresses deep-check finding A.F10 / D.F10 (vocab drift across modules).0fb3eb2 -
feat: SignBridge initial scaffold + testsβ
- Gradio HF Space at app.py with snapshot-based capture flow - FastAPI inference backend (/recognize /compose /speak /info /healthz) - VLM-based recognizer (Qwen2-VL via OpenAI-compatible endpoint, default V1 path) - Llama-3.1-8B sentence composer with naive-joiner fallback - Coqui XTTS-v2 lazy-loaded with silent-WAV fallback - MediaPipe Holistic landmarks for the pose-debug overlay - Trained-classifier path preserved for V2 (signbridge/recognizer/classifier.py + scripts/train_classifier.py) - Provider switch: amd | hf | openai - 68 pytest tests, ruff clean - Apache 2.0 license; ready for HF Space deploy18d028b