Webcam ExtensionSame API, different input source

Webcam mode is an extension, not the template main story.

The repo stays detection-first with image upload as the clearest onboarding path. This page just proves that once the contract is clean, capturing a live frame in the browser becomes a frontend concern instead of a backend rewrite.

Optional Modechecking backend

Reuse the detection contract from a live camera frame.

Webcam mode stays intentionally secondary. It proves you can capture a frame in the browser and still send it through the same inference endpoint instead of splitting your app into two incompatible flows.

Camera state: idle

Keep upload as the main path

Public templates are easier to understand when image upload is still the default. Webcam mode is here to prove the architecture stretches naturally once the main detection flow already feels solid.

Back to upload mode

Starter Detection

Detection-first sample pipeline that returns object-style boxes and confidence scores.

Response Shape

Typed detections, segmentations, metrics, and image metadata.

Waiting For Webcam Capture

Start the camera and capture a detection frame.

Enable the camera, capture one frame, and compare the returned boxes and metrics to the upload flow. The point is not a second product path. The point is one reusable contract.