Skip to content

Latest commit

 

History

History
75 lines (40 loc) · 2.93 KB

README.md

File metadata and controls

75 lines (40 loc) · 2.93 KB

Indian Currency Detection using opencv

This code is based on opencv orb feature detection. SURF and SIFT features can also be used to extract the notes features. You can change the value of number of features detected by changing n_features in detect.py. Further brute force matching is used for matching the templates with existing notes.

Further Details: pdf

Getting Started

The following instructions will get this project up and running on your local machine for development and testing purposes.

Prerequisites

Dataset: https://drive.google.com/open?id=1W3xMiVxuCWw58PRCZ3p8IOqROrXe0Y66

Note: Download the files folder on this drive

Installing

  1. Clone this repository: git clone https://github.com/shivamkumard107/CurrencyDetectServer.git

  2. Unzip the files folder downloaded from drive then Copy and Paste it in this cloned repository The "files" folder and the python file app.py should be in the same directory

  3. Making a virtual environment (Open Terminal):

    cd /path/to/this/repo/CurrencyDetectServer

    virtualenv env

    pip install -r requirements.txt

  4. Running the flask server:

    python app.py

Running the tests

After running app.py, the flask server will be running at port 4555.

Make Request through Postman

  1. In the body section of Postman, write key as "image" and select type as file

  2. Select a currency image in the value section

  3. Send a post request to localhost:4555/image

Android

There is an android app made to communicate with the server. Install the app via Android studio or install the apk given in repository README

Improving Accuracy

To get better results increase the number of images of each note type covering different image conditions like background lightning and angle. Concurrently change the dictionary in detect.py or if the dataset is very large you can use a for loop for creating dictionary using glob.

Demo: https://drive.google.com/open?id=1XNjrgGH8JMGXbBmHN6x6_YorIFbFAa2-

Built With

  • Flask - The server used
  • OpenCV - The ML implementation

Authors

See also the list of contributors who participated in this project.

License

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