Skip to main content

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);
ParameterTypeRequiredDefaultDescription
maxRetriesnumberNo3Maximum number of retry attempts before giving up

This function sequentially:

  1. Shows the webcam preview (showWebcamView)
  2. Runs calibration and validation (setupTracker)
  3. On failure, retries up to maxRetries times with a 2-second delay between attempts