vijethph / credit-card-validation

A JavaFX project to extract credit card numbers using Tesseract OCR, and validate them using Luhn Algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Status GitHub issues Contributors GitHub forks GitHub stars GitHub license forthebadge forthebadge


Logo

Credit Card Validation

A JavaFX program that captures credit card image from webcam, parse the numbers using Tesseract OCR, and uses it to determine the validity of credit card number.

Report Bug · Request Feature

Table of Contents

About The Project

Project working second screenshot

This is a JavaFX program that uses Sarxos Webcam Capture API and Tesseract OCR Engine to capture credit card image using webcam, parse the numbers in it, and then check the validity of these credit card numbers. It employs an implementation of Luhn's Algorithm to validate the credit card numbers.

Built With

This project is entirely built with the following components and languages:

Getting Started

To get a local copy of the program up and running follow these simple steps.

Prerequisites

Java Runtime Environment(JRE)>=8 and Apache Maven should be installed. After installation, check their versions using

java --version
mvn --version

Installation

  1. Clone the repo
git clone https://github.com/vijethph/credit-card-validation.git
  1. Open the downloaded folder
cd credit-card-validation
  1. Install the packages required using the following command:
mvn clean install
  1. Finally run the program using
mvn exec:java -Dexec.mainClass="WebcamAppLauncher"

You can also download the jar file in Releases section and run it by using:

java pkg.jar

Usage

Once the application starts, perform the following steps:

  1. Select one of the available webcams in the dropdown list.
  2. Capture the image of credit card with its numbers properly displayed.
  3. Click "Perform OCR" to parse the digits.
  4. You can edit the number in case of an error, and check validity of credit card number.

Contributing contributions welcome

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GPL License.

Contact

Vijeth P H - @vijethph

Project Link: https://github.com/vijethph/credit-card-validation

Thank You!

forthebadge

If you like this project, please ⭐ this repo and share it with others 👍

Acknowledgements

About

A JavaFX project to extract credit card numbers using Tesseract OCR, and validate them using Luhn Algorithm

License:GNU General Public License v2.0


Languages

Language:Java 100.0%