Welcome to your AI-powered polyp detection tool for colonoscopy images and videos! π
- πΌοΈ Image & Video Upload: Detect polyps in images and videos
- π₯ Live Stream Analysis: Real-time polyp detection from camera
- β‘ Fast & Accurate: Deep learning model (PyTorch)
- π Modern Web UI: Easy-to-use, responsive interface
- Install dependencies
pip install -r requirements.txt
- Run the app
python app.py
- Open in browser
- Home: http://localhost:5000/
- Upload Image:
/upload.html - Upload Video:
/upload_video.html - Live Stream:
/live_stream.html
GP_APP/
βββ app.py # Main Flask app
βββ model/
β βββ polyp_det.py # Model code
β βββ best_polyp_segmentation_model_e15.pth # Trained weights
βββ templates/
β βββ upload.html
β βββ upload_video.html
β βββ live_stream.html
βββ index.html # Home page
βββ assets/ # CSS & images
βββ requirements.txt # Python dependencies
βββ README.md
- Python, Flask, PyTorch, OpenCV
- HTML, CSS, JavaScript
- Model and code are separated for clarity
- All HTML except
index.htmlis intemplates/ - Static files are in
assets/
Pull requests and feedback are welcome!
Early detection saves lives! π©Ίβ¨