Skip to content

richcahill/poetic-camera

Repository files navigation

Poetic Camera

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.

Features

  • 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

Technologies Used

  • 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

Getting Started

  1. Clone the repository
  2. Install dependencies: npm install
  3. Set up your Anthropic API key in the .env file
  4. Run the development server: npm run dev
  5. Open your browser and navigate to http://localhost:5173

Usage

  1. Click the "Start" button to activate your camera
  2. When you see a scene you'd like to capture, click the circular button at the bottom of the screen
  3. Wait a moment as the image is processed and sent to Claude AI
  4. Read the generated haiku overlaid on your image

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.