pikvm_auto_calibrate
Automatically calibrates mouse coordinates by detecting cursor position through screenshot comparison. Improves accuracy over manual calibration by moving the mouse multiple times and computing calibration factors.
Instructions
Automatically calibrate mouse coordinates by detecting the cursor position via screenshot diffing. This is more accurate than manual calibration. Moves the mouse multiple times, compares screenshots to find the cursor, and computes calibration factors. Other tools are blocked during calibration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rounds | No | Number of sampling rounds (default: 5) | |
| verifyRounds | No | Number of verification rounds (default: 5) | |
| moveDelayMs | No | Delay in ms after each mouse move for capture to settle (default: 300). Increase if calibration fails on slow connections. | |
| mergeRadius | No | Radius in pixels for merging nearby clusters (e.g., cursor + drop shadow). Default: 30. | |
| minSamples | No | Minimum valid samples required for calibration to succeed. Default: 3. | |
| maxRatioDivergence | No | Maximum allowed divergence between X and Y ratios within a single round. Rejects noisy rounds where ratios are incoherent. Default: 0.5. | |
| verbose | No | Log per-round debug data (centroid positions, accept/reject reasons). Default: false. |