Skip to content

Cup Detection — Compare All Models ​

This example demonstrates how to use Tzara to compare four detection models side by side on a live webcam stream. YOLOX, RF-DETR, Grounding DINO, and Qwen run in parallel on each frame, with results displayed in a 2×2 grid and saved as PNG frames.

Cup detection compared across four models in a 2x2 grid

Four detection models compared side by side: Grounding DINO, YOLOX, RF-DETR, and Qwen

The Natural Language Instructions ​

Prompt 1: Capture an image with a webcam and detect the cup in the image
Prompt 2: Add visualization using OpenCV
Prompt 3: Also add YOLOX, RF-DETR, and Qwen so that I can compare the results — run on a video stream
Prompt 4: Save the video output
Prompt 5: Save images instead of the video

About this demonstration

This demonstration used an earlier SDK version. Breaking API changes have made the original code incompatible with the current SDK, so we have temporarily removed it. Updated code is coming soon.

Try It Yourself ​

Set up Tzara, open it in your configured workspace, and use the instructions above as a starting prompt. Review the generated code before running it.

For current APIs and examples, see Object Detection.