Making prescriptions smarter and healthcare more accessible.
Dawy is a mobile application that leverages modern computer vision and natural language processing techniques to digitize handwritten medical prescriptions. It helps users understand, manage, and schedule their medications effortlessly—especially in environments where prescriptions are written in mixed Arabic and English text.
With Dawy, patients can:
- Scan and interpret handwritten prescriptions
- Receive extracted medication names and dosage instructions
- Locate nearby pharmacies
- Manage and schedule medication intake
- Access a user-friendly, multilingual interface
- 🧾 Prescription Scanner: Detect and extract handwritten text using advanced AI models.
- 🌍 Pharmacy Locator: Discover and order from nearby pharmacies via geolocation services.
- 🕓 Medication Scheduler: Receive reminders and instructions for taking medicine.
- 🔠 Arabic + English OCR: Handles complex prescriptions with mixed-language content.
- 📋 Medicine Info Database: Find detailed info about each prescribed medicine.
Input Image
↓
YOLOv11n (Handwritten Text Detection)
↓
TR-OCR (Text Recognition)
↓
Post-processing:
- Region Sorting (Natural reading order)
- Spell Correction (Levenshtein distance)
- Term Matching (Pharmaceutical DB)
- Classification (Medicine vs. Instructions)
- Pairing (Dosages with medicines)
Follow these steps to set up and run the project locally:
git clone https://github.com/ismaeeelxd/stp_macathon.git
cd stp_macathonpython -m venv venv
source venv/bin/activate # For Linux/macOS
venv\Scripts\activate # For Windowspip install -r requirements.txt📌 Make sure you have Python 3.8+ and CUDA 11.7+ (if using GPU) for compatibility with YOLO and TrOCR.
Depending on the module structure (e.g., mobile app and backend), run the appropriate entry script or refer to individual module READMEs if available.
- Precision: 0.937
- Recall: 0.913
- F1-Score (base): 29%
- F1-Score (large): 44%
- Accurately processed unseen handwritten prescriptions
- Successfully handled bilingual (Arabic-English) text
- User-friendly UI praised in initial tests
- Robust model performance despite small dataset (500 samples)
- Effective medicine-instruction pairing logic
- YOLOv11n: Object detection
- TrOCR: Text recognition
- Python, PyTorch: Core modeling
- Flutter: Mobile app development
- Firebase / Firestore: Backend integration
- Roboflow, IAM, KHATT: Data sources
- Mazin Mahmoud
- Ismail
- David Magdy Nagib
- Ahmed Wahdan
Full technical and implementation documentation is available in this
📄 Google Drive PDF – Dawy Documentation
- Medicine Marketplace: A "Talabat for Medicine" for on-demand delivery
- Privacy-Preserving Dataset Growth: Opt-in image contribution with anonymization
- Global Access: Offline mode, low-end device support, NGO partnerships
داوي - صحتك أذكى وأقرب "Dawy – Smarter and Closer Healthcare."