https://github.com/mtrajk/real-time-coin-detection
Image Processing Project
https://github.com/mtrajk/real-time-coin-detection
android image-processing opencv
Last synced: 3 months ago
JSON representation
Image Processing Project
- Host: GitHub
- URL: https://github.com/mtrajk/real-time-coin-detection
- Owner: MTrajK
- License: gpl-2.0
- Created: 2015-12-04T14:30:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T14:11:15.000Z (almost 7 years ago)
- Last Synced: 2025-06-03T19:42:11.167Z (about 1 year ago)
- Topics: android, image-processing, opencv
- Language: Java
- Homepage:
- Size: 6.23 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real Time Coin Detection
An Android application which detects coins (circular objects) in real time, using the phone's camera.
Using [OpenCV 2.4](https://opencv.org/) library for image processing.
## Installing
1. Install and configure [Android SDK + Android IDE](http://www.androiddocs.com/sdk/index.html), after that install [OpenCV](https://opencv.org/android/) for Android SDK
2. [Build](https://docs.opencv.org/2.4/doc/tutorials/introduction/android_binary_package/android_dev_intro.html) the Android project located in [Coin Detection](https://github.com/MTrajK/real-time-coin-detection/tree/master/Coin%20Detection) directory (using [Android Studio](https://developer.android.com/studio), [IntelliJ IDEA](https://www.jetbrains.com/idea/), [Eclipse](https://www.eclipse.org/), etc).
3. Install [OpenCV Manager](https://docs.opencv.org/2.4/platforms/android/service/doc/index.html) on your phone ([Google Play link](https://play.google.com/store/apps/details?id=org.opencv.engine)).
4. Install the APK (from the second step) on your phone.
## Description
The coin detection algorithm is composed of 5 steps:
### Step 1
Get the original frame from the camera.

### Step 2
Convert frame to grayscale image (less colors == better object detection).

### Step 3
Apply a gaussian blur on the grayscale image (to reduce the noise).

### Step 4
The main step, edge detection.

### Step 5
Final step, mark coins.

## Results
A few results with different number of coins, different background and different lighting.






