Spaces:
Sleeping
Sleeping
|
Download docs/USER_GUIDE.md from darshhh32/nutrivision-ai: direct link, hf CLI and curl.
- Browser
- Download file 3.09 kB
-
https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/docs/USER_GUIDE.md
- Command line
-
hf download hf://spaces/darshhh32/nutrivision-ai/docs/USER_GUIDE.md
-
curl -L -o USER_GUIDE.md https://huggingface.co/spaces/darshhh32/nutrivision-ai/resolve/main/docs/USER_GUIDE.md
3.09 kB
User Guide
This guide walks a non-technical user (e.g. a school inspector) through using the NutriVision AI dashboard.
1. Start the system
Ask your administrator to start the two services (see INSTALLATION.md):
uvicorn api.main:app --port 8000 # backend
streamlit run dashboard/app.py # dashboard
Then open the dashboard in your browser (usually http://localhost:8501).
2. Set the meal context (sidebar)
- Confirm the Backend URL shows "Backend online".
- Enter the School name and District.
- Choose the Compliance standard:
- Primary (Class IβV) β 450 kcal, 12 g protein
- Upper Primary (Class VIβVIII) β 700 kcal, 20 g protein
3. Analyze a meal β "π Analyze Meal" tab
- Click Browse and select a clear, top-down photo of the served plate. Good lighting and all items visible give the best results.
- (Optional) toggle Assess freshness and Generate PDF report.
- Click Analyze Meal.
You will see:
- The annotated image with detected items boxed and labelled.
- A Compliance badge (green = compliant, amber = partial, red = non-compliant) with calorie and protein percentages.
- A table of detected items (confidence, portion, calories, protein, freshness).
- Charts: calorie sources (protein/carbs/fat) and % of daily value.
- Recommendations to improve the meal.
- A β¬οΈ Download PDF Report button.
Tips for good photos
- Take the photo straight down over the plate.
- Ensure each food item is separated and visible.
- Avoid shadows and glare.
4. Monitor trends β "π Monitoring" tab
- KPI cards: total analyses, compliance rate, average calories/protein.
- Compliance breakdown pie chart.
- Most detected foods bar chart.
- School-wise performance table (analyses, average calories, compliance %).
5. Review past analyses β "π History" tab
- Browse all stored analyses (most recent first).
- Select an ID to view full details and download (or generate) its PDF report.
6. Reference β "π Nutrition DB" tab
View the nutrition values (per 100 g) used by the system for each food item.
Understanding the results
- Portion size is estimated from how much of the plate each item occupies; it is an approximation.
- Freshness is a supporting visual signal ("Fresh" / "Moderate" / "Potential Spoilage"), not a food-safety guarantee β always follow standard hygiene inspection procedures.
- Compliance compares the meal's total calories and protein against the official Mid-Day Meal norm for the selected category.
Frequently asked questions
No items were detected β why? The photo may be blurry/dark, or a custom model has not been trained yet. Try a clearer photo, or ask your administrator to train the model on real images.
Can it work offline? Yes β everything runs locally. Only the initial model download needs internet.
Where are reports saved?
Under outputs/reports/ on the server, and downloadable from the dashboard.