File size: 2,348 Bytes
fe16bda
 
 
 
 
 
 
 
 
 
 
 
 
2ae3f7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---

title: IndiScan
emoji: πŸ”
colorFrom: green
colorTo: blue
sdk: streamlit
sdk_version: "1.31.0"
app_file: app.py
pinned: false
---


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# IndiScan: Indian Product Health Analyzer πŸ”

IndiScan is a comprehensive health analysis tool that helps users make informed decisions about food and cosmetic products by analyzing ingredients, providing health scores, and comparing prices across Indian e-commerce platforms.

## Features 🌟

- **Smart Product Analysis**
  - Barcode scanning
  - Image-based ingredient extraction
  - Manual ingredient entry
  - Health score calculation (0-1000)
  - Ingredient risk assessment
  - Nutrition information analysis

- **Price Comparison**
  - Real-time price tracking across:
    - Amazon India
    - Blinkit
    - Zepto
    - Swiggy Instamart

- **Admin Controls**
  - Product database management
  - CSV import/export
  - 60-day auto-refresh system

## Setup πŸ› οΈ

1. Install dependencies:
```bash

pip install -r requirements.txt

```

2. Run the application:
```bash

python app.py

```

The application will start both the backend API (port 8000) and the Streamlit frontend.

## Usage πŸ“±

1. **Scan Products**
   - Enter a barcode number
   - Upload a product image
   - Manually enter ingredients

2. **View Analysis**
   - Health score and explanation
   - Ingredient breakdown
   - Risk categories
   - Nutrition information
   - Price comparison

3. **Admin Features**
   - Login with admin credentials
   - Add/update product information
   - Export/import database
   - Monitor data freshness

## Technology Stack πŸ’»

- **Backend**: FastAPI
- **Frontend**: Streamlit
- **Database**: SQLite
- **Image Processing**: EasyOCR
- **Data Analysis**: Pandas, Plotly
- **Web Scraping**: aiohttp, BeautifulSoup4

## Contributing 🀝

Feel free to contribute to this project by:
1. Forking the repository
2. Creating a feature branch
3. Committing your changes
4. Opening a pull request

## License πŸ“„

This project is licensed under the MIT License - see the LICENSE file for details.

## Acknowledgments πŸ™

- Inspired by the Yuka app
- Uses OpenFoodFacts data
- Built with ❀️ for Indian consumers