diff --git a/README.md b/README.md new file mode 100644 index 0000000..9606385 --- /dev/null +++ b/README.md @@ -0,0 +1,99 @@ +# video-product-snapshot + +Detect ecommerce products in video frames using Claude Vision, extract the best product snapshot, and optionally search for matching products via image-search API. + +## How it works + +1. Extracts frames from the video at a configurable interval using `ffmpeg` +2. Sends each frame to a vision model to detect whether a product is visible and rate confidence +3. Picks the highest-confidence frame as the best snapshot +4. Optionally calls an image-search API with the snapshot to find matching products + +## Install + +```bash +bun install +bun run build # outputs dist/run.js +``` + +## Usage + +```bash +bun dist/run.js [options] +``` + +### Commands + +| Command | Description | +|---------|-------------| +| `detect