Giter Club home page Giter Club logo

credit_card_digits_recognition's Introduction

Credit Card Digits Recognition

Detects and recognizes credit card digits (name, number, valid date, type: visa/mastercard) using AI and CV.

Getting Started

alt text

To see how I collected the dataset and trained my model please read the README in 'dataset' directory

After you train your model save it as "models/darknet-yolov3_best.weights"

I coudln't attache the dataset because of private details of the cards holders

Prerequisites

python >= 3.6

python libraries:

  • opencv-python (cv2)
  • flask
  • flask_restful
  • jsonpickle
  • numpy

Installing

Install libreries using pip3

pip3 install -r requirements.txt

Usage

  1. Standalone application
python3 main.py <image_path> 

Option: image_path = examples/1.jpg or image_path = examples/2.jpg

Image shold be credit card image with minimum background.

  1. Rest API - running https server
python3 REST_api.py

Optional:

python3 REST_api.py --host <host_ip> --port <port_number>

Default argument:

--host = 0.0.0.0

--port = 5000

clinet url should be POST method and looks like this: http://<host_ip>:<port_number>/pic

Attach to the request credit card image that filmed from Simplify application.

Acknowledgment

Dataset:

Training:

License

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

Authors

Shira Levy - Shira Star

"It is only with the heart that one can see rightly, what is essential is invisible to the eye" Le petit prince

credit_card_digits_recognition's People

Contributors

shirastarl 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.