Calibration Process
Process.
1. Start Calibration
- Start the calibration by calling the
startCalibration
function.
2. Calibrating
2-1. Receive Coordinates of the calibration points
- The coordinate of each calibration point is passed through the
onCalibrationNextPoint
callback function. - By using the coordinate, draw calibration point on UI.
2-2. Draw Calibration Point
- In order to induce the user to look at the UI by drawing the received coordinates.
2-3. Start Collect Data
- Inform the SDK that the UI has been drawn at those coordinates by calling
StartCollectSamples
. SDK calibrates the coordinates passed from the time of the call.
2-4 Collecting Datas and calculating.
- The calibration progress of the coordinates is notified through callback.
- If there are more coordinates of the required location, repeat steps 2-1 to 2-4.(For example, repeat 5 times for 5-point calibration.)
3. Finish Calibration
- The
onCalibrationFinished
callback is called when all calibration processes are finished. - This callback will pass created
calibrationData
. - This
calibrationData
can be used to save/load user's calibration data.
State Diagram.
- The black arrow indicates a function called by the developer.
- The green arrow means the callback function.