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
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.
This project is entirely built with the following components and languages:
To get a local copy of the program up and running follow these simple steps.
Java Runtime Environment(JRE)>=8 and Apache Maven should be installed. After installation, check their versions using
java --version
mvn --version
- Clone the repo
git clone https://github.com/vijethph/credit-card-validation.git
- Open the downloaded folder
cd credit-card-validation
- Install the packages required using the following command:
mvn clean install
- 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
Once the application starts, perform the following steps:
- Select one of the available webcams in the dropdown list.
- Capture the image of credit card with its numbers properly displayed.
- Click "Perform OCR" to parse the digits.
- You can edit the number in case of an error, and check validity of credit card number.
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU GPL License.
Vijeth P H - @vijethph
Project Link: https://github.com/vijethph/credit-card-validation
If you like this project, please ⭐ this repo and share it with others 👍