File size: 1,766 Bytes
fb477c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7e31718
1fc9837
28fa4ff
fb477c2
 
 
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
---
title: Singtel Bill Scanner
emoji: πŸ“±
colorFrom: red
colorTo: red
sdk: streamlit
sdk_version: 1.28.0
app_file: app.py
pinned: false
tags:
  - computer-vision
  - ocr
  - trocr
  - bill-processing
  - singtel
  - document-ai
---

# Singtel Bill Scanner πŸ“±πŸ’‘

An AI-powered optical character recognition (OCR) system specifically designed for processing Singtel telecommunications bills.

## πŸš€ Try the Live Demo

Upload your Singtel bill image and get instant results!

## Features

- πŸ” **Text Extraction**: Uses Microsoft TrOCR for accurate OCR
- πŸ“Š **Bill Parsing**: Extracts amounts, dates, account numbers
- ⚑ **Fast Processing**: Real-time results
- 🎯 **Singtel Optimized**: Tailored for Singtel bill formats
- πŸ”’ **Privacy First**: Images processed locally, not stored

## How to Use

1. πŸ“Έ Take a clear photo of your Singtel bill
2. πŸ“€ Upload the image using the interface above
3. πŸ” Click "Extract Information"
4. πŸ“Š View the extracted data

## Technical Details

- **Model**: Microsoft TrOCR (microsoft/trocr-base-handwritten)
- **Framework**: Streamlit + Hugging Face Transformers
- **Processing**: ~3-5 seconds per image
- **Accuracy**: High for clear, well-lit images

## Local Installation

```bash
git clone https://huggingface.co/spaces/Cosmo125/Singtel_Bill_Scanner
cd Singtel_Bill_Scanner
pip install -r requirements.txt
streamlit run app.py
```

## API Usage

```python
from transformers import pipeline
from PIL import Image

# Load model
pipe = pipeline("image-to-text", model="microsoft/trocr-base-handwritten")

# Process image
image = Image.open("bill.jpg")
result = pipe(image)
text = result[0]['generated_text']
```

Team members
Ninette
Zi Xuan
Sai
Kamal
---

_Created for the Singtel community with ❀️_