An Android application that uses the camera and OpenCV to detect Colombian coins of 50, 100, and 200 pesos in real time. It identifies coins by detecting their circular shape and estimating their size ratio to determine their value. The app displays the quantity of each denomination and the total amount of money detected.
- 🔍 Real-time detection using OpenCV Hough Circle Transform
- 📸 Uses device camera to capture live video feed
- 💰 Classifies coins into 50, 100, or 200 peso categories based on size
- 🧮 Displays count and subtotal for each coin denomination
- 🧾 Calculates the total amount of money
- 🖥️ Clean, minimal UI with title and dynamic result display
- Kotlin
- OpenCV for Android
- Android SDK
- CameraBridgeViewBase / JavaCameraView
- Converts each frame to grayscale and applies a Gaussian blur.
- Detects circles using
Imgproc.HoughCircles
. - Calculates the radius of detected coins.
- Uses the ratio of each radius to the smallest one as a base to classify coin value:
r < 1.08 → 50
r < 1.27 → 100
else → 200
- Displays:
- Count of each coin
- Subtotal per denomination
- Total sum in pesos
It should always have a 50 peso coin in the image. However, more coins can be added as new ratios change.



This app requires the following permission:
- CAMERA: To access the device’s camera for real-time detection.
Make sure to grant permission when prompted or manually enable it in app settings.
Josh Sebastián López Murcia