Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧾 AI_Image_Detection

Receipt Data Detection with YOLOv11

This project detects key information such as seller_name, seller_id, total_items, and amount from input receipt images using YOLOv11 and deep learning.


πŸ“ Project Structure

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

πŸ› οΈ Tools & Technologies

  • πŸ” Object Detection: YOLOv11
  • 🏷️ Labeling Tool: LabelMe
  • πŸ–ΌοΈ Input: Receipt images
  • πŸ“€ Output: Bounding boxes with classified receipt fields
  • πŸ’» Training: Google Colab (T4 GPU)
  • ☁️ Storage: Google Drive

πŸš€ How to Use

  1. Label your data using LabelMe and export as YOLO format.
  2. Organize your dataset into train, valid, and test folders under DataSets/.
  3. Train your model in Google Colab using T4 GPU and YOLOv11:
    • Use yolo11n.pt as the base weights.
  4. Run detection by executing main.py.
  5. Check results:
    • Predictions are saved in output_images/
    • Training performance is visualized in model/ with confusion matrix, precision-recall curve, and results log.

🧠 Sample Output

Predicted receipts will display bounding boxes labeled with:

  • Seller Name πŸͺ
  • Seller ID πŸ†”
  • Total Items πŸ“¦
  • Amount πŸ’΅

πŸ“Œ Notes

  • Make sure your Google Drive is mounted properly in Colab.
  • Adjust data.yaml to reflect your class names and path settings.
  • Keep main.py updated to use best.pt for accurate inference.

πŸ“« Contact

If you'd like to contribute or have questions, feel free to reach out or open an issue!


About

Image Detection Model with YoloV11

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages