setupTrackerWithRetries(maxRetries)
Run the full tracker setup flow — webcam view, calibration, and validation — with automatic retry logic. If all attempts fail, an error message is shown and the function throws.
await chiasm.setupTrackerWithRetries(3);
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
maxRetries | number | No | 3 | Maximum number of retry attempts before giving up |
This function sequentially:
- Shows the webcam preview (
showWebcamView) - Runs calibration and validation (
setupTracker) - On failure, retries up to
maxRetriestimes with a 2-second delay between attempts