Get your Vision-based Personal Memory Assistant running in 5 minutes!
- Python 3.8 or higher
- Webcam (for image capture)
- OpenAI API key (for natural language processing)
# Navigate to your project directory
cd MemoryAssistant
# Run the setup script
python setup.py- Edit the
.envfile:
nano .env- Replace
your_openai_api_key_herewith your actual OpenAI API key:
OPENAI_API_KEY=sk-your-actual-api-key-here
streamlit run app.pyThe application will open in your browser at http://localhost:8501
- Manual Capture: Click "πΈ Capture Image Now" in the sidebar
- Search Memories: Try queries like:
- "When did I last see my laptop?"
- "Show me when I was working at my desk"
- "Find memories from today"
- Natural language queries
- Object-based search
- Time-based filtering
- AI-powered responses
- Total memories captured
- Most common objects
- Search history
- Daily activity tracking
- Browse all captured images
- View scene descriptions
- See detected objects
Edit .env file to customize:
# Capture settings
CAPTURE_INTERVAL=300 # Capture every 5 minutes
CAPTURE_ACTIVE_HOURS_START=8 # Start at 8 AM
CAPTURE_ACTIVE_HOURS_END=22 # Stop at 10 PM
# AI settings
OPENAI_MODEL=gpt-3.5-turbo # Use GPT-3.5 for faster responses
CONFIDENCE_THRESHOLD=0.5 # Object detection confidence- Ensure your webcam is connected and accessible
- Check camera permissions in your OS
- Try different camera index in
.envfile
- Verify your API key is correct
- Check your OpenAI account has credits
- Ensure you're using a supported model
- Use
yolov8n.pt(nano) model for faster processing - Reduce capture frequency in
.env - Close other applications using the webcam
- Start the app:
streamlit run app.py - Capture some images: Click "Capture Image Now" a few times
- Search for objects: "When did I last see my phone?"
- Browse recent captures: Check the "Recent Captures" tab
- View statistics: See your memory patterns in the "Statistics" tab
- Enable auto-capture for continuous monitoring
- Customize capture intervals based on your needs
- Add more objects to the detection vocabulary
- Integrate with cloud storage for backup
- Check the main
README.mdfor detailed documentation - Run
python test_setup.pyto diagnose issues - Review logs in the terminal for error messages
Happy memory hunting! π§ β¨