Skip to content

NadaRahali/Coin-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Euro Coin Detection

πŸ“Œ Course: BM40A1201 Digital Imaging and Image Preprocessing
πŸ“ LUT University
πŸ‘₯ Contributors: Tanjuma Haque, Nada Rahali


πŸ“– Overview

This project implements an imaging measurement system that detects and classifies Euro coins from images using a MATLAB-based solution.

The system performs:

  • Calibration of the imaging setup (bias, dark, and flat-field corrections).
  • Geometric calibration using checkerboard boxes.
  • Detection and classification of coins into six denominations (€2, €1, 50c, 20c, 10c, 5c).
  • Error evaluation of the detection process.

All images were provided by the professor and are not included in this repository.


πŸ“‚ Dataset Overview

The dataset was provided via Moodle and includes:

  • Bias images (sensor noise)
  • Dark images (long exposure noise)
  • Flat-field images (illumination correction)
  • Measurement images (coins with calibration checkerboard)

Note: Due to course policy, these datasets are not included in this repository.


πŸ“Š Results

The system was tested on 12 measurement images.

  • βœ… Average accuracy: 97.57%
  • 🎯 Exact matches: 10 out of 12 images
  • ⚠️ Misclassifications:
    • Case 1: One €2 coin misclassified as a 10c coin
      • Accuracy: 87.5%
      • MAE: 0.33
      • Misclassification: 12.5%
    • Case 2: One 20c coin misclassified as a 50c coin
      • Accuracy: 83.3%
      • MAE: 0.33
      • Misclassification: 16.7%

πŸ”Ž Limitations identified:

  • Sensitivity to image capturing distance
  • Difficulty with coins in close proximity or overlapping

βœ… Overall, the system performed robustly, achieving high reliability with minor errors.


πŸ“‚ Repository Structure

Digital-Imaging-PA/
β”‚
β”œβ”€β”€ src/                     # MATLAB source codes
β”‚   β”œβ”€β”€ main_script.m        # Main script to run the full process
β”‚   β”œβ”€β”€ estim_coins.m        # Function for detecting & classifying coins
β”‚   β”œβ”€β”€ compute_mean.m       # Helper for mean calibration images
β”‚   β”œβ”€β”€ compute_pixelToMMRatio.m   # Computes pixel-to-mm ratio
β”‚   └── measurement_error.m  # Evaluates detection accuracy and error
β”‚
β”œβ”€β”€ docs/
β”‚   └── PA_Digital_imaging_Final.pdf   # Final project report
β”‚
β”œβ”€β”€ README.md                # Project documentation
└── .gitignore               # Ignore MATLAB cache/temp files

License

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

About

Course project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages