@modelhealth/modelhealth
    Preparing search index...

    Type Alias CalibrationStatus

    CalibrationStatus:
        | { type: "recording" }
        | { total: number; type: "uploading"; uploaded: number }
        | { percent?: number; type: "processing" }
        | { type: "done" }

    The current status of a calibration process.

    Reported during both camera calibration and subject calibration, tracking recording, uploading and processing stages.

    Type Declaration

    • { type: "recording" }

      All connected cameras are actively recording.

    • { total: number; type: "uploading"; uploaded: number }

      Videos are being uploaded from cameras.

    • { percent?: number; type: "processing" }

      The server is processing the uploaded videos.

    • { type: "done" }

      Calibration has completed successfully.

    await client.calibrateSubject(subject, session, (status) => {
    switch (status.type) {
    case "recording":
    console.log("Recording...");
    break;
    case "uploading":
    console.log(`Uploading: ${status.uploaded}/${status.total}`);
    break;
    case "processing":
    console.log(`Processing: ${status.percent ?? 0}%`);
    break;
    case "done":
    console.log("Complete!");
    break;
    }
    });