Quick Start
Installation
GUI Application
# Clone the repository
git clone https://github.com/cramke/camera-optics.git
cd camera-optics
# Install frontend dependencies
pnpm install
# Run in development mode
pnpm tauri:dev
# Build for production
pnpm tauri:build
CLI Tool
The CLI is included with the application:
cd src-tauri
cargo build --release --bin camera-optics-cli
# The binary will be at:
# target/release/camera-optics-cli
First Calculation
Using the GUI
- Launch the app:
pnpm tauri:dev - Enter sensor dimensions (e.g., 36×24mm for full frame)
- Enter pixel resolution (e.g., 6000×4000)
- Enter focal length (e.g., 50mm)
- Enter working distance (e.g., 5000mm = 5 meters)
- Click "Calculate FOV"
Using the CLI
Calculate FOV for a full-frame camera with 50mm lens at 5m distance:
cargo run --bin camera-optics-cli -- fov \
-w 36 -H 24 \
-x 6000 -y 4000 \
-f 50 \
-d 5000
Next Steps
- Learn about the GUI interface
- Explore CLI commands
- Understand optical calculations