Files
recycling-project-solutions/requirements.txt
T
Aherobo Ovie Victor 26a6f6f625 Set confidence threshold to 80% and remove slider from frontend
 Frontend Changes:
- Removed confidence threshold slider from web interface
- Added fixed 80% confidence display with green info box
- Updated JavaScript to use fixed 0.8 threshold
- Removed slider-related CSS styles

 Backend Changes:
- Updated all API endpoints to default to 80% confidence (0.8)
- Modified POST /detect, GET /detect/hardcoded, POST /detect/base64
- Updated comments to reflect new default threshold

 Testing Updates:
- Updated test_api.py to use 80% confidence for all tests
- Ensures consistent testing with new threshold

 Benefits:
- High precision mode (80% confidence) reduces false positives
- Simplified user interface without threshold adjustment
- Consistent detection behavior across all endpoints
2025-07-11 20:47:04 +01:00

31 lines
620 B
Plaintext

# Core ML and Computer Vision
ultralytics==8.0.196
torch>=1.9.0
torchvision>=0.10.0
opencv-python==4.8.1.78
Pillow==10.0.1
# Web Framework
Flask==2.3.3
Flask-CORS==4.0.0
Flask-RESTX==1.3.0
Werkzeug==2.3.7
# Data Processing
numpy==1.24.3
pandas==2.0.3
# Image Processing and Visualization
matplotlib==3.7.2
seaborn==0.12.2
# Utilities
PyYAML==6.0.1
requests==2.31.0
tqdm==4.66.1
pathlib2>=2.3.0;python_version<"3.4"
# Optional GPU support (uncomment if using CUDA)
# torch==2.0.1+cu118 --index-url https://download.pytorch.org/whl/cu118
# torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118