Giter VIP home page Giter VIP logo

fashflash16 / bank-note-authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dark-art108/bank-note-authentication

0.0 0.0 0.0 6.18 MB

๐Ÿ’ธ Authenticate Bank Notes on the basis of Genuity and Forged using Sklearn and deployed on Heroku and FastAPI Server ๐Ÿ’ณ ๐Ÿ’ฒ

Home Page: https://bank-note-authe.herokuapp.com/

License: MIT License

Jupyter Notebook 75.24% Dockerfile 0.95% Python 22.53% Shell 1.29%

bank-note-authentication's Introduction

Authenticate Bank Notes Using Machine Learning ๐Ÿ’ต๐Ÿ’ณ

๐Ÿ“Œ Introduction

This Machine Learning Web Application uses a several features of Banknotes like variance, skewness, curtosis and entropy to predict the Authenticy of Banknotes weither it is Genuine or Forged with an accuracy of 99.02% using Random Forest Classifier.This Dataset is taken from UCI Repository and also available in Kaggle,Data were extracted from images that were taken from genuine and forged banknote-like specimens. For digitization, an industrial camera usually used for print inspection was used. The final images have 400x 400 pixels. Due to the object lens and distance to the investigated object gray-scale pictures with a resolution of about 660 dpi were gained. Wavelet Transform tool were used to extract features from images,In this ml model we are considering 0 for geniune bank note and 1 for forged bank note.

๐ŸŽฏ Purpose of the Project

Whether we pull out paper bills or swipe a credit card, most of the transactions we engage in daily use currency. Indeed, money is the lifeblood of economies around the world. Currency refers to paper money or coins that are in circulation. But currency is actually only a small piece of the monetary economy and just one consideration when looking at the total money supply.

Indeed, most money today exists as credit money or as electronic records stored in databases in banks or financial institutions. But still, the bread and butter of everyday transactions is currency, and that is what we will look more closely at here.

Why Bank Notes Genuinity is Important ๐Ÿ’ต?

As now a days many transactions take place using plastic money , But Bank Notes and Coins are still is in the use and used by more than 56% of Indians as surveyed in 2019 and the major transactions from buying daily households to spending money in various places to buy things in small commodities shop to Barber Shops and Groceries are taken place in notes and if the notes used by people of the country are forged or duplicate this will leads to unstable economy and rise of crimes in country with illegal transactions, so we need to autheticate notes so that it can leads to stable economy and leads towards a well development of country.

Our Model performs fairly well with an accuracy of 99% and an F1 Score of 95% and Recall Score of 92% as we have used Bagging Technique which is Random Forest Classifier with Sklearn library. This provides a handy tool to utilize the power of Machine Learning and Artificial Intelligence in Binary Classification Problems where time and accuracy is the paramount objective of classification.

๐Ÿ Technology Stack

๐Ÿƒโ€โ™‚๏ธ Local Installation

  1. Drop a โญ on the Github Repository.
  2. Clone the Repo by going to your local Git Client and pushing in the command:
https://github.com/DARK-art108/Bank-Note-Authentication-End-to-End-Project-1.git
  1. Install the Packages:
pip install -r requirements.txt

You need to install flask seperatly with a latest version to run the flask app in Postman.

Use FastAPI to Build a Fast API

image

Run the FastAPI using this CMD:

uvicorn app:app --reload

INFO: Uvicorn running on http://127.0.0.1:8000 / Or on your metioned PORT No

One of the best FastAPI feature is you will get Swagger UI a best testing enviroment for your API inbuilt. For acessing it :

Go to http://127.0.0.1:8000/docs and enjoy the application

Dockerize your Application

1.Create a Dockerfile to create a Docker Image.

FROM python:3.7-buster
COPY . /app
EXPOSE 5000
WORKDIR /app
RUN pip install -r requirements.txt
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]

2.Build the Docker Image

docker build -t {Name_of_your_Image}

3.Run your Docker Image

docker run -p 5000:5000 bank_auth

Note: bank_auth is a docker image name, you can name it anything!!

Now your Docker Container is running at http://127.0.0.1:8000/docs and this is the Swagger UI of FastAPI.

Frontend Using Streamlit

image

1.Run your Streamlit App

streamlit run {Name_of_Your_Streamlit_App}.py

For this Project Run this CMD:

streamlit run Streamlit_App.py

๐Ÿ“‹ Further Changes to be Done

  • Deploying the Web Application on Cloud.
    • AWS BeanStalk
    • Google Cloud Platform
    • Azure

๐Ÿ“œ LICENSE

MIT

๐Ÿ“Š Repo Stats

Repo Size License Forks Stars Maintenance Website perso.crans.org forthebadge made-with-python

bank-note-authentication's People

Contributors

dark-art108 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.