Crates.io | eyeris |
lib.rs | eyeris |
version | 0.1.1 |
source | src |
created_at | 2024-11-25 08:23:32.46786 |
updated_at | 2024-11-25 08:30:09.441828 |
description | A high-performance image analysis service with AI provider support |
homepage | |
repository | https://github.com/scald/eyeris |
max_upload_size | |
id | 1460049 |
size | 104,346 |
A high-performance image analysis service that leverages AI models to provide detailed analysis of images. Supports multiple AI providers (currently OpenAI and Ollama).
# Clone the repository
git clone https://github.com/scald/eyeris
# Navigate to project directory
cd eyeris
# Configure OpenAI API key (if using OpenAI)
echo "OPENAI_API_KEY=your_key_here" > .env
# Run the service
cargo run
Send an image for analysis:
curl -X POST http://localhost:3000/process \
-F "image=@path/to/your/image.jpg" \
-F "provider=ollama" \
-F "model=moondream" \
-F "format=json"
The service is optimized for performance through:
src/
├── processor.rs # Core processing logic
├── providers/ # AI provider implementations
├── prompts.rs # Analysis prompt templates
└── main.rs # Service entry point
Contributions are welcome! Please:
MIT License
Built with Rust 🦀