This project detects key information such as seller_name, seller_id, total_items, and amount from input receipt images using YOLOv11 and deep learning.
My Model V11/
βββ main.py # π§ Main program for image detection
βββ best.pt # π Trained YOLOv11 model
βββ yolo11n.pt # βοΈ YOLOv11 base model used for training
βββ output_images/ # πΌοΈ Folder to save predicted images
βββ model/ # π Training outputs
β βββ confusion_matrix.png
β βββ P_curve.png
β βββ results.csv
β βββ weights/
β βββ best.pt
β βββ last.pt
βββ DataSets/ # π Dataset structure for training
β βββ data.yaml
β βββ train/
β βββ valid/
β βββ test/
βββ labelme/ # π·οΈ Labeling files created with LabelMe
- π Object Detection: YOLOv11
- π·οΈ Labeling Tool: LabelMe
- πΌοΈ Input: Receipt images
- π€ Output: Bounding boxes with classified receipt fields
- π» Training: Google Colab (T4 GPU)
- βοΈ Storage: Google Drive
- Label your data using LabelMe and export as YOLO format.
- Organize your dataset into
train,valid, andtestfolders underDataSets/. - Train your model in Google Colab using T4 GPU and YOLOv11:
- Use
yolo11n.ptas the base weights.
- Use
- Run detection by executing
main.py. - Check results:
- Predictions are saved in
output_images/ - Training performance is visualized in
model/with confusion matrix, precision-recall curve, and results log.
- Predictions are saved in
Predicted receipts will display bounding boxes labeled with:
- Seller Name πͺ
- Seller ID π
- Total Items π¦
- Amount π΅
- Make sure your Google Drive is mounted properly in Colab.
- Adjust
data.yamlto reflect your class names and path settings. - Keep
main.pyupdated to usebest.ptfor accurate inference.
If you'd like to contribute or have questions, feel free to reach out or open an issue!