Skip to content

Add full-featured example with person detection, AI prompts, and file upload#2

Merged
tomershlasky merged 7 commits intomainfrom
add-full-featured-example
Feb 26, 2026
Merged

Add full-featured example with person detection, AI prompts, and file upload#2
tomershlasky merged 7 commits intomainfrom
add-full-featured-example

Conversation

@tomershlasky
Copy link
Collaborator

@tomershlasky tomershlasky commented Feb 25, 2026

Summary

  • Adds a 4th example (examples/full-featured/) that combines all features from the existing 3 examples
  • Person detection — auto-connects/disconnects using MediaPipe pose detection, saves credits when no one is in frame
  • AI-enhanced prompts — GPT-4o-mini generates descriptive try-on prompts from garment image + camera frame
  • File upload — users can upload their own garment images and get AI-generated prompts automatically
  • Product catalog sidebar with editable prompt bar
  • Updates root README to reference the new 4th example

Test plan

  • next build compiles successfully
  • Open http://localhost:3000, verify sidebar with upload button + product grid renders
  • Step in front of camera, verify person detection triggers connection
  • Click a product, verify AI prompt is generated and garment is applied
  • Upload a custom garment image, verify it gets an AI-generated prompt
  • Step away from camera, verify disconnection; step back, verify reconnect + last garment re-applied
  • Edit prompt text and click Apply, verify garment updates

@tomershlasky tomershlasky merged commit 1dcdeec into main Feb 26, 2026
@tomershlasky tomershlasky deleted the add-full-featured-example branch February 26, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant