Poetic Camera is a web application that captures images through your device's camera and generates haikus based on the visual content. This unique blend of technology and poetry offers a creative way to interpret and appreciate the world around you.
- Real-time camera feed
- Capture still images from the video stream
- Generate haikus using Claude AI based on the captured images
- Stylish, minimalist user interface
- Svelte: Front-end framework
- TypeScript: Programming language
- Anthropic's Claude API: AI-powered image analysis and haiku generation
- HTML5 Canvas: For image processing and display
- Clone the repository
- Install dependencies:
npm install
- Set up your Anthropic API key in the
.env
file - Run the development server:
npm run dev
- Open your browser and navigate to
http://localhost:5173
- Click the "Start" button to activate your camera
- When you see a scene you'd like to capture, click the circular button at the bottom of the screen
- Wait a moment as the image is processed and sent to Claude AI
- Read the generated haiku overlaid on your image
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.