CV4VI is an acronym for "Computer Vision For Visually Impaired".
This is a proof of concept allowing the user to interface with a web app to work as a simulated environment for an application on an edge device that has practical use of AI models. The AI-powered assistant that helps visually impaired individuals determine if it's safe to cross the street at specific intersections in New York City.
-
Clone the repo
git clone https://github.com/ithllc/CV4VI.git -
Navigate to the directory
cd CV4VI -
Install dependencies
pip install -r requirements.txtAlternatively, use Conda:
conda env create -f environment.yml conda activate hackathon -
Install Git LFS and initialize it if not already done
git lfs install -
Clone the repo for Moondream2 vision model
git clone https://huggingface.co/vikhyatk/moondream2 -
In the file moondream_analyzer.py, change the current directory path on line 15 to the directory path of your cloned Moondream2 vision model
/python_code_src/moondream2
To start the app:
python app.py
This will launch a Streamlit web interface where you can:
- Press the microphone button to record your voice
- Ask if it's safe to cross at a specific NYC intersection (e.g., "I'm at 1st Avenue and 110th Street, can I cross?")
- View the traffic camera feed from that location
- Receive an AI analysis of the intersection safety
- Hear the spoken response through your speakers
- Natural language processing to extract street intersections from spoken queries
- Automated web scraping of NYC Traffic Management Center (NYCTMC) cameras
- Real-time camera feed access for any monitored NYC intersection
- Computer vision analysis using the Moondream2 vision language model
- Spoken responses for visually impaired users using OpenAI's TTS technology
- User-friendly Streamlit interface for demonstration purposes
- Python 3.11
- Streamlit for the web interface
- Selenium for web automation and camera feed access
- OpenAI APIs for speech-to-text and text-to-speech
- Hugging Face Transformers with Moondream2 vision language model
- WebDriver Manager for seamless browser automation
For a quick test of the system:
- Start the application
- Click the microphone button
- Say "I'm at 1st Avenue and 110th Street, can I cross?"
- Wait for the system to process and respond
To Demo:
- Go to the URL (https://huggingface.co/spaces/AU2003USD2024/ai-street-crossing-assistant)
- Follow the instructions on quick test
This project is licensed under GNU AFFERO GENERAL PUBLIC LICENSE - see the LICENSE file for details.
- Advanced location matching with geocoding API
- Depth perception using LiDAR technology
- Selenium hardening for better web automation
- Configuration management improvements
- Evaluation of different Vision Language Models
- Image pre-processing for better analysis in low-light conditions
- Confidence scoring for safety recommendations
- Lower latency through optimization
- Interactive map showing camera locations
- Additional accessibility improvements
- AI Tinkerers of NYC for hosting the hackathon on June 21, 2025 to June 22, 2025 (https://nyc.aitinkerers.org/)
- Moondream for sponsoring the hackathon event (https://moondream.ai/)
- New York City Department of Transportation (https://www.nyc.gov/html/dot/html/home/home.shtml)