A comprehensive web application for learning sign language using Python Flask, OpenCV, and AI.
Recently Updated: This project has been refactored to support Offline Mode (SQLite) and Online Mode (Firebase) automatically.
Double-click run_app.bat.
python run.pyOpen your browser at http://localhost:5000
- Hybrid Database: Automatically uses SQLite if Firebase credentials are missing. No setup required!
- Robust Camera: Improved camera handling that won't crash your app.
- Modular Code: Cleaned up into
camera_handler.py,db_handler.py, andapp.py.
pip install -r requirements.txt- Offline Mode: Works out of the box!
- Online Mode:
- Add
firebase-credentials.jsonto the root folder. - Update
.envwith yourGEMINI_API_KEYfor AI features.
- Add
app.py: Main Web Applicationcamera_handler.py: Computer Vision Logic (OpenCV/MediaPipe)db_handler.py: Database Logic (SQLite/Firebase)run.py: Startup Scripttemplates/: HTML Frontend
- Register an account (Local or Cloud).
- Go to Start Exercise.
- Allow Camera access.
- Follow the instructions on screen (e.g., "Show Letter A").
- The AI will detect your hand and give feedback!