Camera Device
Index of the camera device to use.Default:
0 (first camera detected by the system)If you have multiple cameras, you can select which one Klaus uses:0= First camera1= Second camera2= Third camera, etc.
Resolution
Camera capture width in pixels.Default:
1920 (Full HD width)Camera capture height in pixels.Default:
1080 (Full HD height)Klaus defaults to 1920×1080 (1080p) for optimal text clarity. Lower resolutions may reduce OCR accuracy for small text.
Supported Resolutions
Common resolution presets:| Resolution | Width | Height | Notes |
|---|---|---|---|
| 1080p (default) | 1920 | 1080 | Best quality, recommended |
| 720p | 1280 | 720 | Good quality, faster |
| 480p | 640 | 480 | Low quality, not recommended |
Rotation
How to rotate camera frames before sending to Claude.Options:
auto: Automatically rotate portrait frames to landscape (default)none: No rotation, use image as-is90: Rotate 90° clockwise180: Rotate 180°270: Rotate 270° clockwise (same as 90° counter-clockwise)
- Detects portrait orientation (height > width)
- Rotates 90° clockwise to landscape
- Useful for phone cameras in portrait mode
When to Use Each Setting
| Setting | Use Case |
|---|---|
auto | Phone camera or any camera that might be in portrait orientation |
none | Document camera or webcam that’s always landscape |
90 | Image is rotated 90° and auto-detection fails |
180 | Camera is upside-down |
270 | Image is rotated 270° and auto-detection fails |
Example Configuration
config.toml
Camera Setup Recommendations
Document Cameras (Recommended)
USB document cameras (also called visualisers) provide the best experience:- Stable mounting
- Good lighting (many have built-in lights)
- Clear view of the full page
- 1080p or higher resolution
Phone as Camera
You can use your phone as a webcam with a gooseneck mount ($10-15):| Platform | App | Notes |
|---|---|---|
| macOS + iPhone | Continuity Camera | Built-in, no install needed (iOS 16+, macOS Ventura+) |
| macOS + Android | Camo | Free, 1080p, install on phone + Mac |
| Windows + Android | DroidCam | Free, connect via Wi-Fi or USB |
| Windows + iPhone | Camo | Free, 1080p, install on phone + PC |
Platform-Specific Notes
macOS
- Camera names use AVFoundation for friendly display names (e.g., “FaceTime HD Camera” instead of “device 0”)
- Klaus automatically detects and displays all connected cameras in the Settings dialog
Windows
- Uses DirectShow (DSHOW) backend for camera access
- Camera enumeration may show generic names like “USB Camera” or “Integrated Webcam”
Camera Preview
Klaus displays a live camera preview in the main window at approximately 30 FPS:- The preview helps you position your document correctly
- Frame capture for Claude happens on-demand when you ask a question
- Preview and capture use the same resolution settings
Troubleshooting
Camera Not Detected
- Check physical connection: Ensure the camera is plugged in via USB
- Check system permissions:
- macOS: Grant camera access in System Settings → Privacy & Security → Camera
- Windows: Grant camera access in Settings → Privacy → Camera
- Try a different USB port: Some USB hubs may not provide enough power
- Restart Klaus: Camera devices may not be detected if connected after Klaus starts
Wrong Camera Selected
- Open Klaus Settings dialog
- Go to Camera tab
- Select the correct camera from the dropdown
- Settings are applied immediately and saved to config.toml
Image is Rotated Incorrectly
- Try
automode first: This handles most portrait/landscape cases - If auto fails: Manually set rotation to
90,180, or270 - Test rotation: Check the camera preview to confirm correct orientation
Poor Image Quality / Blurry Text
- Check resolution: Ensure you’re using at least 1280×720 (720p)
- Adjust camera focus: Some document cameras have manual focus rings
- Improve lighting: Add more light or use a camera with a built-in light
- Clean the lens: Fingerprints or dust can reduce clarity
- Check camera distance: Position the camera close enough to read small text
Camera Settings Not Saved
- Camera index is saved immediately when changed in the Settings dialog
- Manual edits to config.toml require a Klaus restart to take effect
- Check file permissions on
~/.klaus/config.toml